.footer-brand {
  display: block;
  width: min(100%, 250px);
  height: auto;
}

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.routing-entry .routing-entry-price { margin-top: .85rem; font-weight: 750; }

.routing-brand-mark {
  display: block;
  width: min(100%, 162px);
  height: auto;
  margin-bottom: 12px;
  border-radius: 4px;
}
.routing-card .routing-brand-mark { width: min(100%, 122px); }
.routing-hero > .routing-brand-mark { margin: 18px 0 10px; }

.routing-tasks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.routing-task {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 14px;
  font-size: .95rem;
  line-height: 1.3;
}
.routing-task[aria-current="true"] {
  border-color: var(--zs-accent-lt, #ffad73);
  box-shadow: inset 0 0 0 1px var(--zs-accent-lt, #ffad73);
}
.routing-price-note {
  max-width: 68ch;
  margin: 14px 0;
  color: #d2c5b7;
  font-size: .9rem;
  line-height: 1.5;
}
.routing-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid #514235;
  border-radius: 12px;
  background: #1a1612;
}
.routing-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: .9rem;
  color: #f3e9db;
}
.routing-toolbar select {
  min-height: 46px;
  width: 100%;
  min-width: 0;
  padding: 8px;
  border: 1px solid #776652;
  border-radius: 8px;
  background: #15110e;
  color: #f4ebe2;
  font-size: .9rem;
  color-scheme: dark;
}
.routing-toolbar button { justify-self: start; min-height: 44px; }
.routing-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 10px 0 0;
  padding: 8px 0;
}
.routing-status-bar p { margin: 0; font-size: .9rem; }
.routing-status-bar button { min-height: 44px; padding: 8px 12px; font-size: .9rem; }
.routing-status-bar button:disabled { opacity: .55; cursor: default; }
.routing-status-bar:has(button:not([disabled])) {
  position: sticky;
  top: 92px;
  z-index: 6;
  padding-inline: 8px;
  border-bottom: 1px solid #514235;
  background: #15110e;
}
.routing-series-copy { margin: 8px 0; max-width: 68ch; }
.routing-series { margin-bottom: 46px; }
.routing-card { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.routing-card .equipment-product-card { height: 100%; }
.routing-compare-toggle {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  gap: 9px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: .9rem;
  cursor: pointer;
}
.routing-compare-toggle input { width: 19px; height: 19px; accent-color: #ed7e35; }
.routing-compare-toggle:has(input:disabled) { opacity: .65; cursor: default; }
.routing-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.routing-configuration { margin-bottom: 32px; }
.routing-configuration h2 { margin: 0 0 10px; }
.routing-configuration p { margin: 0 0 24px; max-width: 68ch; }
.routing-dialog {
  width: min(calc(100% - 24px), 960px);
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: clamp(10px, 2.7vw, 24px);
  overflow-y: auto;
  border: 1px solid #85705a;
  border-radius: 12px;
  background: #1a1612;
  color: #f3e9db;
}
.routing-dialog::backdrop { background: #080604bb; }
.routing-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.routing-dialog-header h2 { margin: 0; font-size: clamp(1.12rem, 4vw, 1.7rem); }
.routing-dialog .zs-btn { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
.routing-comparison-scroll { max-width: 100%; overflow-x: auto; }
.routing-comparison-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: .9rem;
  line-height: 1.4;
}
.routing-comparison-table:has(th:nth-child(4)) { min-width: 550px; }
.routing-comparison-table :is(th, td) { padding: 10px; border: 1px solid #655248; text-align: left; }
.routing-comparison-table th { background: #2b211a; }
.routing-comparison-table a { color: #ffb275; }
.routing-clear-comparison { margin-top: 16px; }
.routing-scroll-hint { display: none; }

@media (max-width: 760px) {
  .routing-toolbar, .routing-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .routing-status-bar:has(button:not([disabled])) { top: 78px; }
}
@media (max-width: 420px) {
  .routing-toolbar { padding: 12px; gap: 10px; }
  .routing-tasks { gap: 8px; }
  .routing-task { padding: 9px; }
}
@media (max-width: 620px) {
  .routing-comparison-table {
    table-layout: fixed;
    min-width: 0;
    font-size: .8125rem;
  }
  .routing-comparison-table:has(th:nth-child(4)) { min-width: 440px; }
  .routing-comparison-table :is(th, td) { padding: 7px; overflow-wrap: anywhere; }
  .routing-comparison-table th:first-child { width: 28%; }
  .routing-comparison-table:has(th:nth-child(4)) th:first-child { position: sticky; left: 0; width: 104px; }
  .routing-scroll-hint { display: block; margin: 0 0 10px; font-size: .8125rem; color: #d2c5b7; }
}

.equipment-card {
  display: block;
  min-width: 0;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--border, #43352a);
  border-radius: 12px;
  background: var(--bg-card, #1a1510);
  color: var(--text, #f3eee6);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.equipment-card :is(h2, .equipment-product-name) {
  margin: 0 0 12px;
  color: var(--equipment-title, var(--zs-accent-lt, #ffad73));
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.equipment-card p {
  margin: 0;
  max-width: 42ch;
  font-size: 16px;
  line-height: 1.5;
}

.equipment-card:focus-visible {
  --equipment-title: currentColor;
  background: var(--button-hover-bg);
  border-color: var(--button-hover-bg);
  color: var(--button-hover-ink);
}

@media (hover: hover) {
  .equipment-card:hover {
    --equipment-title: currentColor;
    background: var(--button-hover-bg);
    border-color: var(--button-hover-bg);
    color: var(--button-hover-ink);
  }
}

.equipment-card:active,
.equipment-card.is-pressed {
  transition: none;
  --equipment-title: currentColor;
  background: var(--zs-accent-lt);
  border-color: var(--zs-accent-lt);
  color: var(--button-hover-ink);
}

.equipment-category .zs-btns {
  margin-top: 24px;
}

.equipment-category-card {
  padding: 0;
  overflow: hidden;
}

.equipment-category-copy {
  padding: clamp(16px, 3vw, 28px);
}

.equipment-category-copy .pipe-model-count {
  margin-top: .65rem;
  font-size: .875rem;
  font-weight: 700;
}

.pipe-family {
  margin-bottom: 16px;
}

.equipment-category-card .equipment-product-photo,
.equipment-category-layout .equipment-product-photo {
  aspect-ratio: 3 / 2;
}

.equipment-category-layout .equipment-product-photo {
  border: 1px solid var(--border, #43352a);
  border-radius: 12px;
}

.equipment-products {
  margin-bottom: 40px;
}

.equipment-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.equipment-price-label,
.equipment-image-caption {
  margin: .5rem 0;
  color: var(--industrial-muted, #556067);
  font-size: .875rem;
}

.equipment-product-series {
  margin-top: 32px;
}

.equipment-product-series h3 {
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
}

.equipment-product-card {
  padding: 0;
  overflow: hidden;
}

.equipment-product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #dedede;
}

.equipment-product-copy {
  padding: clamp(16px, 3vw, 28px);
}

.equipment-product-copy .equipment-product-name {
  font-size: clamp(20px, 2.5vw, 27px);
}

.equipment-prices {
  display: grid;
  gap: 10px;
  width: min(100%, 400px);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.equipment-prices li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
}

.equipment-prices strong {
  font-size: clamp(20px, 3vw, 27px);
  line-height: 1.2;
  white-space: nowrap;
}

.equipment-specs {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

.equipment-specs div {
  min-width: 0;
  border-top: 1px solid currentColor;
  padding: 10px 0;
}

.equipment-specs dd {
  margin: 0;
  font-weight: 650;
}

.equipment-specs-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 115px), 1fr));
  gap: 8px 16px;
}

.equipment-product-layout,
.equipment-category-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 48px);
  margin-top: 24px;
}

.equipment-main-photo {
  display: block;
  min-width: 0;
}

.equipment-product-layout .equipment-product-photo {
  border-radius: 12px;
}

.equipment-product-info .zs-h1 {
  font-size: clamp(29px, 4vw, 48px);
}

.equipment-product-info .zs-h2 {
  margin-top: 24px;
}

.equipment-specs-full div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.equipment-product-info .zs-btns {
  margin-top: 24px;
}

.equipment-gallery {
  margin: 48px 0;
}

.equipment-gallery-album {
  margin-top: 24px;
}

.equipment-gallery-album h3 {
  margin-bottom: 16px;
  font-size: clamp(18px, 2.4vw, 24px);
}

.equipment-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.equipment-gallery-item {
  min-width: 0;
  margin: 0;
}

.equipment-gallery-item a {
  display: block;
  border: 1px solid var(--border, #43352a);
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.equipment-gallery-item figcaption {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .equipment-product-layout,
  .equipment-category-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .equipment-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359px) {
  .equipment-gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 680px) {
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .pipe-family-grid {
    gap: 12px;
  }

  .pipe-family-grid .equipment-category-card {
    display: grid;
    grid-template-columns: minmax(78px, 31%) minmax(0, 1fr);
    align-items: center;
  }

  .pipe-family-grid .site-photo-frame {
    margin-left: 10px;
    border-radius: 3px;
  }

  .pipe-family-grid .site-photo-frame::after {
    height: 17px;
  }

  .pipe-family-grid .equipment-product-photo {
    aspect-ratio: 4 / 3;
  }

  .pipe-family-grid .equipment-category-copy {
    padding: 12px;
    min-width: 0;
  }

  .pipe-family-grid .equipment-category-copy h2 {
    margin-bottom: .4rem;
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }

  .pipe-family-grid .equipment-category-copy p {
    font-size: .875rem;
    line-height: 1.35;
  }

  .pipe-family-grid .pipe-model-count {
    margin-top: .4rem;
  }

  .equipment-product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.site-photo-frame {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  background: #161310;
  border-radius: 8px;
}
.site-photo-frame > img {
  display: block;
  max-width: 100%;
}
.home-machine .site-photo-frame > img {
  height: auto;
  object-fit: contain;
}
@media (min-width: 761px) {
  .home-hero-grid + .zs-kpi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.site-photo-frame::after {
  content: "";
  display: block;
  height: clamp(26px, 5vw, 35px);
  border-top: 1px solid #e68136;
  background: #0d0c0b url('/assets/brand/za-stankom-logo.jpg') center / auto 84% no-repeat;
}
.site-photo-dialog {
  width: min(960px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 3vw, 22px);
  overflow-y: auto;
  border: 1px solid #76604a;
  border-radius: 12px;
  background: #141210;
  color: #f7f1e9;
}
.site-photo-dialog::backdrop { background: #090605d9; }
.site-photo-dialog figure { margin: 0; }
.site-photo-dialog figcaption { margin-top: 9px; }
.site-photo-dialog-close { display: block; margin: 0 0 10px auto; }
.site-photo-dialog .site-photo-frame > img {
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 172px);
  min-height: 100px;
  object-fit: contain;
  background: #e6e3de;
}
