/**
 * Mobile-first responsive layer (loads after styles.css).
 * Breakpoints: 768 tablet | 1024 desktop | 1440 wide (Figma 1492)
 */

:root {
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-wide: 1440px;
  --page-max: 1492px;
  /* Side padding at 1492px viewport = 150px; scales linearly below that */
  --gutter-max: 150px;
  --gutter: 16px;
  --panel-inset: var(--gutter);
  --section-gap: 40px;
  --font-family-base: Inter, sans-serif;
}

/* ── Layout base (mobile) ─────────────────────── */

.container {
  max-width: none;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Mobile top bar */
.site-header__mobile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 23px var(--gutter) 8px;
  border-bottom: 1px solid var(--line, #d9d9d9);
}

.site-header__mobile-row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header__mobile-tagline {
  margin: 0 0 25px;
  font-size: 10px;
  font-weight: 300;
  line-height: 12px;
  color: #000;
}

.site-header__mobile-row--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-header__mobile .logo {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.site-header__mobile .logo-icon {
  height: 25px;
  width: auto;
}

.site-header__mobile .logo-word {
  height: 25px;
  width: auto;
}

.site-header__mobile-phone {
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
  color: #111;
  text-decoration: none;
  white-space: nowrap;
}

.site-header__menu-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.site-header__menu-toggle-bars {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 18px;
}

.site-header__menu-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

.site-header__menu-toggle-bars span:nth-child(1) { top: 0; }
.site-header__menu-toggle-bars span:nth-child(2) { top: 8px; }
.site-header__menu-toggle-bars span:nth-child(3) { top: 16px; }

.site-header__menu-toggle-label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-bars span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.site-header__menu-toggle[aria-expanded="true"] .site-header__menu-toggle-bars span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

.site-header__mobile-city {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.site-header__mobile-city .city-dropdown-home__toggle {
  font-size: 14px;
  font-weight: 400;
  padding: 0 0 0 20px;
}

.site-header__mobile-socials {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header__mobile-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.site-header__mobile-socials img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Desktop chrome hidden on mobile */
.site-header__desktop {
  display: none;
}

/* Mobile nav drawer */
.site-header__drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}

.site-header__drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.site-header__drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.site-header__drawer.is-open .site-header__drawer-backdrop {
  opacity: 1;
}

.site-header__drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 320px);
  height: 100%;
  background: #fff;
  padding: 20px 16px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -8px 0 24px rgb(0 0 0 / 15%);
}

.site-header__drawer.is-open .site-header__drawer-panel {
  transform: translateX(0);
}

.site-header__drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.site-header__drawer-nav a {
  display: block;
  padding: 12px 8px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
  border-radius: 8px;
}

.site-header__drawer-nav a:hover,
.site-header__drawer-nav a.active {
  background: #f4f4f4;
}

.site-header__drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fb1600 0%, #d30200 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

body.nav-drawer-open,
body.works-lightbox-open {
  overflow: hidden;
}

/* Hero (mobile Figma) */
.hero,
.container.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding-block: 24px var(--section-gap);
  padding-inline: var(--gutter);
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  text-align: left;
}

.hero-left h1,
.hero .hero-left h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-align: left;
}

.hero-left h1 .hero-title-line1,
.hero-left h1 .hero-title-line2 {
  display: block;
  line-height: 1.2;
}

.hero-left p {
  font-size: 16px;
  line-height: 1.4;
  margin: 12px 0 0;
  max-width: 100%;
  text-align: left;
}

.hero-left p .hero-subtitle-break {
  display: none;
}

.hero-left .consult-link {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-inline: 0;
  margin-top: 16px;
  justify-content: flex-start;
  padding: 0 9px 0 26px;
  gap: 10px;
}

@media (min-width: 1024px) {
  .hero-left .consult-link {
    margin-inline: 0;
  }
}

.hero-left .hero-cta-wrap {
  display: block;
  width: 100%;
  margin-top: 16px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.hero-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Calculator / ceilings */
.ceilings-layout,
.double-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calculator-card--figma .calc-row--params {
  grid-template-columns: 1fr;
}

.calculator-card--figma .calc-submit,
.ceiling-intro__button {
  width: 100%;
  max-width: none;
  min-width: 0;
}

@media (max-width: 1023px) {
  .ceilings-body {
    max-width: none;
    width: 100%;
    align-items: stretch;
  }

  .ceilings-catalog-btn {
    width: 100%;
    max-width: none;
    white-space: normal;
  }
}

/* Grids */
.catalog-grid__inner,
.kp-list-grid,
.works-grid,
.portfolio-grid,
.home_solutions .catalog-grid__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Footer */
.site-footer-v2__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.site-footer-v2__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Mega menus off-canvas only via drawer on mobile */
.catalog-mega-menu,
.prices-mega-menu,
.company-mega-menu {
  display: none !important;
}

/* ── Hero banner carousel (mobile stack) ──────── */

.hero-banner-section {
  padding-block: 16px 0;
}

/* Figma: 48px between hero banner and ceilings */
.hero-banner-section.section + .ceilings.section,
.hero-banner-section + #ceilings {
  margin-top: 48px;
}

@media (max-width: 1023px) {
  .hero,
  .container.hero,
  .container.hero#home {
    padding-bottom: 0;
  }

  .hero-banner-section,
  .hero-banner-section.section {
    margin-top: 24px;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.hero-banner-section .container {
  padding-inline: var(--gutter);
}

.hero-banner {
  max-width: 100%;
  margin-inline: 0;
  border-radius: 16px;
  background: #efefef;
}

@media (max-width: 1023px) {
  /* Mobile: text → image → carousel controls (three separate blocks) */
  .hero-banner {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
  }

  .hero-banner > .hero-banner-text {
    order: 1;
    position: static;
    display: block;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0 0 16px;
    padding: 0;
    box-sizing: border-box;
    pointer-events: auto;
    background: transparent;
    border-radius: 0;
  }

  .hero-banner > .hero-banner-text .hero-banner-title,
  .hero-banner > .hero-banner-text .hero-banner-subtitle,
  .hero-banner > .hero-banner-text .hero-banner-points,
  .hero-banner > .hero-banner-text .hero-banner-actions {
    max-width: none;
  }

  .hero-banner > .hero-banner-media {
    order: 2;
    position: relative;
    display: block;
    height: auto;
    margin: 0 0 12px;
    overflow: hidden;
    background: #efefef;
    border-radius: 16px;
  }

  .hero-banner-media::before {
    display: none;
  }

  .hero-banner > .hero-banner-media > img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 220;
    object-fit: cover;
    border-radius: 16px;
  }

  .hero-banner > .hero-banner-controls {
    order: 3;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .hero-banner-controls .hero-banner-arrow.prev,
  .hero-banner-controls .hero-banner-arrow.next {
    display: none !important;
  }

  .hero-banner-arrows-row {
    justify-content: center;
    gap: 0;
  }

  .hero-banner-dots-wrap {
    flex: 0 0 auto;
    padding: 0;
  }

  /* Legacy cached markup: text nested inside .hero-banner-media */
  .hero-banner-media {
    display: flex;
    flex-direction: column;
    height: auto !important;
    gap: 16px;
    background: transparent;
    border-radius: 0;
  }

  .hero-banner-media .hero-banner-text {
    order: 1;
    position: static;
    display: block;
    transform: none;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border-radius: 0;
  }

  .hero-banner-media > img {
    order: 2;
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 390 / 220;
    object-fit: cover;
    background: #efefef;
    border-radius: 16px;
  }
}

.hero-banner-text h3,
.hero-banner-title {
  font-size: 22px;
  line-height: 1.2;
}

.hero-banner-subtitle {
  font-size: 14px;
}

.hero-banner-text p,
.hero-banner-points li {
  font-size: 15px;
}

.hero-banner-points {
  padding-left: 20px;
}

.hero-banner-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.hero-banner-action {
  width: 100%;
  min-height: 48px;
  font-size: 16px;
  justify-content: center;
}

.hero-banner-action--secondary {
  min-height: auto;
  padding-block: 8px;
}

.hero-banner-controls {
  padding: 12px 16px 16px;
}

@media (max-width: 1023px) {
  .hero-banner-controls {
    padding: 0;
    min-height: 0;
  }
}

.hero-banner-arrows-row {
  gap: 24px;
  width: 100%;
}

.hero-banner-dots-wrap {
  min-width: 0;
  min-height: 0;
  flex: 1;
  padding: 0 12px;
  background: transparent;
}

.hero-banner-dots {
  gap: 7px;
}

.hero-banner-dot {
  width: 10px;
  height: 10px;
}

.hero-banner-dot.active {
  background: #d60501;
}

.hero-banner-controls .hero-banner-arrow {
  width: 44px;
  height: 44px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.hero-banner-controls .hero-banner-arrow.prev {
  background: var(--kp-carousel-left, url("/upload/carousel_left.png")) center / contain no-repeat;
}

.hero-banner-controls .hero-banner-arrow.next {
  background: var(--kp-carousel-right, url("/upload/carousel_right.png")) center / contain no-repeat;
}

/* Template <img>; hide legacy cached <span>‹› markup */
.hero-banner-controls .hero-banner-arrow .hero-banner-arrow-icon {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hero-banner-controls .hero-banner-arrow:has(img.hero-banner-arrow-icon) {
  background-image: none;
  filter: none;
}

.hero-banner-controls .hero-banner-arrow:has(img.hero-banner-arrow-icon) .hero-banner-arrow-icon {
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.25));
}

.hero-banner-controls .hero-banner-arrow span.hero-banner-arrow-icon {
  display: none !important;
}

@media (max-width: 1023px) {
  .hero-banner[data-slide="tracks"] .hero-banner-text,
  .hero-banner[data-slide="bauf"] .hero-banner-text,
  .hero-banner[data-slide="production"] .hero-banner-text {
    left: auto;
    width: 100%;
    text-align: left;
    transform: none;
  }

  .hero-banner[data-slide="tracks"] .hero-banner-actions {
    justify-content: stretch;
  }

  .hero-banner[data-slide="tracks"] .hero-banner-action {
    flex: 1 1 auto;
  }
}

/* ── Prices (#price) ─────────────────────────── */

#price {
  padding-block: var(--section-gap);
}

#price > h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.prices-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.prices-tab {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 3px solid transparent;
  border-radius: 12px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(180deg, #fb1600 0%, #d30200 100%) border-box;
  color: #454545;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.prices-tab.active {
  background: linear-gradient(180deg, #fb1600 0%, #d30200 100%);
  border-color: #e80d00;
  color: #fff;
}

.prices-table-wrap {
  display: none;
  margin-top: 16px;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #363636;
  border: 1px solid #5b5b5b;
  border-radius: 4px;
}

.prices-table-wrap.active {
  display: block;
}

.prices-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  table-layout: fixed;
}

.prices-table th,
.prices-table td {
  border: 1px solid #5b5b5b;
  padding: 10px 8px;
  font-size: 14px;
  line-height: 1.25;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}

.prices-table thead th {
  background: #404040;
  color: #ffe3e3;
  font-weight: 600;
}

.prices-table tbody tr {
  background: #d9d9d9;
}

.prices-table tbody td {
  color: #000;
}

/* ── Portfolio / works + lightbox ─────────────── */

.works-section,
#works {
  max-width: none;
  padding-block: var(--section-gap);
}

#works > h2,
.works-section > h2 {
  margin: 0 0 20px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  text-align: left;
}

.works-grid {
  margin-top: 0;
  gap: 12px;
}

.works-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
}

.works-card:focus-visible {
  outline: 2px solid #d60501;
  outline-offset: 2px;
}

.works-grid img,
.works-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.works-card:hover img,
.works-card:focus-visible img {
  transform: scale(1.01);
  box-shadow: 0 6px 20px rgb(0 0 0 / 18%);
}

.portfolio-filters {
  justify-content: flex-start;
  overflow-x: auto;
  flex-wrap: nowrap;
  padding-bottom: 4px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.portfolio-filter {
  flex-shrink: 0;
  font-size: 16px;
  padding: 8px 14px;
}

.section-more-link {
  margin-top: 20px;
  text-align: center;
  font-size: 16px;
}

/* Lightbox — mobile: image + bottom controls */
.works-lightbox {
  padding: 12px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.works-lightbox__image {
  max-width: 100%;
  max-height: min(72vh, calc(100dvh - 140px));
  width: auto;
  height: auto;
}

.works-lightbox__close {
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  width: 44px;
  height: 44px;
  font-size: 26px;
  z-index: 2;
}

.works-lightbox__nav {
  top: auto;
  bottom: max(20px, env(safe-area-inset-bottom));
  transform: none;
  width: 48px;
  height: 48px;
  font-size: 20px;
}

.works-lightbox__nav--prev {
  left: 12px;
}

.works-lightbox__nav--next {
  right: 12px;
}

/* ── Tablet: 768+ ───────────────────────────── */

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --section-gap: 48px;
  }

  .catalog-grid__inner,
  .kp-list-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .calculator-card--figma .calc-row--params {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-right {
    flex-direction: row;
  }

  .hero-card {
    flex: 1;
  }

  .hero-banner-media > img {
    aspect-ratio: 768 / 280;
  }

  .hero-banner-text h3,
  .hero-banner-title {
    font-size: 26px;
  }

  .prices-tabs {
    flex-flow: row wrap;
    justify-content: center;
    gap: 10px;
  }

  .prices-tab {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 5px);
    width: auto;
    font-size: 17px;
  }

  .prices-table th,
  .prices-table td {
    font-size: 16px;
    padding: 10px 12px;
  }

  #price > h2,
  #works > h2,
  .works-section > h2 {
    font-size: 34px;
    margin-bottom: 28px;
  }
}

/* ── Desktop: 1024+ ─────────────────────────── */

@media (min-width: 1024px) {
  :root {
    --gutter: clamp(
      24px,
      calc(var(--gutter-max) * 100vw / var(--page-max)),
      var(--gutter-max)
    );
    --panel-inset: var(--gutter);
    --section-gap: 56px;
  }

  .container {
    max-width: var(--page-max);
    margin-inline: auto;
  }

  .site-header__mobile,
  .site-header__drawer {
    display: none !important;
  }

  .site-header__desktop {
    display: block;
  }

  .catalog-grid__inner,
  .kp-list-grid,
  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .ceilings-layout,
  .double-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 32px;
    align-items: start;
  }

  .ceilings-section .ceilings-title {
    text-align: center;
  }

  .calculator-card--figma .calc-field--desktop-hidden {
    display: none;
  }

  .calculator-card--figma {
    min-height: 637px;
  }

  .hero,
  .container.hero {
    display: grid;
    /* 1fr keeps hero-right at the container end; left copy width capped on .hero-left */
    grid-template-columns: minmax(0, 1fr) 538px;
    align-items: start;
    gap: 24px;
    padding-block: 24px 0;
    padding-inline: var(--gutter);
    overflow-x: clip;
  }

  .container-8592 .container.hero {
    overflow-x: clip !important;
  }

  .hero-right {
    overflow: hidden;
  }

  /* H1 top: 13px below card-left; button bottom: 28px below card-right (316 + 28 = 344) */
  .hero-left {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 344px;
    max-width: 520px;
    width: 100%;
    justify-self: start;
    padding-top: 13px;
    box-sizing: border-box;
    align-items: start;
    text-align: left;
  }

  .hero-left h1,
  .hero .hero-left h1 {
    grid-row: 1;
    font-size: clamp(28px, 2.8vw, 42px);
    line-height: 1.2;
    margin: 0;
    text-align: left;
  }

  .hero-left h1 .hero-title-line1,
  .hero-left h1 .hero-title-line2 {
    display: block;
    line-height: 1.2;
  }

  /* p sits above button; 24px gap; button row stays at bottom */
  .hero-left p {
    grid-row: 2;
    align-self: end;
    max-width: 460px;
    margin-top: 32px;
    margin-bottom: 24px;
    margin-inline: 0;
    text-align: left;
  }

  .hero-left p .hero-subtitle-break {
    display: block;
  }

  .hero-left .consult-link {
    grid-row: 3;
    margin-top: 0;
    margin-bottom: 0;
    align-self: start;
    justify-content: flex-start;
  }

  .hero-right {
    position: relative;
    display: block;
    flex: none;
    width: 100%;
    max-width: 538px;
    height: 316px;
    justify-self: end;
  }

  .hero-card {
    position: absolute;
    flex: none;
    overflow: hidden;
    border-radius: 20px;
  }

  .hero-card.card-left {
    left: 0;
    top: 0;
    width: 254px;
    height: 227px;
  }

  .hero-card.card-right {
    left: 271px; /* card-left 254px + 17px horizontal gap */
    right: auto;
    top: 90px;
    width: 267px;
    height: 226px;
  }

  .hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
  }

  .site-footer-v2__inner {
    display: grid;
    grid-template-columns: 1.2fr repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .catalog-mega-menu,
  .prices-mega-menu,
  .company-mega-menu {
    display: grid !important;
  }

  /* Hero banner — desktop: text overlays image (sibling of .hero-banner-media) */
  .hero-banner {
    width: 100%;
    max-width: 100%;
    position: relative;
    overflow: visible;
    background: transparent;
  }

  .hero-banner-section .hero-banner-media {
    position: relative;
    display: block;
    height: 297px;
    border-radius: 20px;
    box-shadow: 0 4px 43px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    isolation: isolate;
  }

  .hero-banner-section .hero-banner-media::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    display: block;
    width: min(58%, 680px);
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      #fff 0%,
      rgb(255 255 255 / 90%) 50%,
      rgb(255 255 255 / 0%) 100%
    );
  }

  .hero-banner-section .hero-banner-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    z-index: 0;
  }

  /* Desktop: text overlays image (.hero-banner-media is image-only) */
  .hero-banner-section .hero-banner > .hero-banner-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 297px;
    margin: 0;
    padding: 0 48px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow-x: visible;
    overflow-y: auto;
    z-index: 2;
    pointer-events: none;
    transform: none;
    background: transparent;
    scrollbar-width: thin;
  }

  .hero-banner-section .hero-banner > .hero-banner-text > * {
    pointer-events: auto;
  }

  .hero-banner-section .hero-banner > .hero-banner-text {
    max-width: 100%;
  }

  /* Default: compact copy width; .hero-banner-text--wide only when content overflows (JS) */
  .hero-banner-section .hero-banner-text .hero-banner-title,
  .hero-banner-section .hero-banner-text .hero-banner-subtitle,
  .hero-banner-section .hero-banner-text .hero-banner-points,
  .hero-banner-section .hero-banner-text .hero-banner-actions {
    width: 100%;
    max-width: min(610px, 58%);
  }

  .hero-banner-section .hero-banner-text--wide .hero-banner-title,
  .hero-banner-section .hero-banner-text--wide .hero-banner-subtitle,
  .hero-banner-section .hero-banner-text--wide .hero-banner-points,
  .hero-banner-section .hero-banner-text--wide .hero-banner-actions {
    max-width: min(820px, 78%);
  }

  .hero-banner-section .hero-banner-title {
    overflow-wrap: break-word;
  }

  .hero-banner-section .hero-banner:has(.hero-banner-text--wide) .hero-banner-media::before {
    width: min(82%, 920px);
  }

  .hero-banner-text h3,
  .hero-banner-title {
    font-size: 35px;
  }

  .hero-banner-subtitle {
    margin-top: 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    color: #000;
  }

  .hero-banner-text p,
  .hero-banner-points li {
    font-size: 20px;
  }

  .hero-banner-points {
    list-style: none;
    margin-top: 10px;
    padding-left: 0;
  }

  .hero-banner-points li {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
  }

  .hero-banner-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-banner-action {
    width: auto;
    min-height: 40px;
  }

  .hero-banner[data-slide="cornice"] .hero-banner-actions {
    display: none;
  }

  .hero-banner[data-slide="production"] .hero-banner-subtitle {
    color: #ff0000;
    font-weight: 500;
  }

  /* Carousel controls — dots row, arrows row (Figma) */
  .hero-banner-controls {
    padding: 14px 0 0;
    background: transparent;
  }

  .hero-banner-arrows-row {
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 14px 20px;
  }

  .hero-banner-dots-wrap {
    flex: 0 0 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .hero-banner-controls .hero-banner-arrow.prev,
  .hero-banner-controls .hero-banner-arrow.next {
    order: 2;
    margin: 0;
    width: 44px;
    height: 44px;
    box-shadow: none;
  }

  .hero-banner-dots {
    gap: 7px;
  }

  .hero-banner-dot {
    width: 10px;
    height: 10px;
    background: #d9d9d9;
  }

  .hero-banner-dot.active {
    background: #d60501;
  }

  /* 85px from hero consult-link row to banner media (Figma) */
  .container.hero,
  .container.hero#home {
    padding-bottom: 0;
  }

  .hero-banner-section.section {
    margin-top: 85px;
    padding-top: 0;
  }

  .hero-banner[data-slide="tracks"] > .hero-banner-text {
    align-items: center;
    text-align: center;
    padding-inline: 24px;
  }

  .hero-banner[data-slide="tracks"] .hero-banner-text--wide .hero-banner-title,
  .hero-banner[data-slide="tracks"] .hero-banner-text--wide .hero-banner-subtitle,
  .hero-banner[data-slide="tracks"] .hero-banner-text--wide .hero-banner-points,
  .hero-banner[data-slide="tracks"] .hero-banner-text--wide .hero-banner-actions {
    max-width: min(760px, 76%);
  }

  .hero-banner[data-slide="tracks"] .hero-banner-actions {
    justify-content: center;
  }

  .hero-banner[data-slide="bauf"] .hero-banner-text--wide .hero-banner-title,
  .hero-banner[data-slide="bauf"] .hero-banner-text--wide .hero-banner-subtitle,
  .hero-banner[data-slide="bauf"] .hero-banner-text--wide .hero-banner-points,
  .hero-banner[data-slide="bauf"] .hero-banner-text--wide .hero-banner-actions {
    max-width: min(900px, 84%);
  }

  .hero-banner[data-slide="production"] .hero-banner-text--wide .hero-banner-title,
  .hero-banner[data-slide="production"] .hero-banner-text--wide .hero-banner-subtitle,
  .hero-banner[data-slide="production"] .hero-banner-text--wide .hero-banner-points,
  .hero-banner[data-slide="production"] .hero-banner-text--wide .hero-banner-actions {
    max-width: min(860px, 82%);
  }

  .hero-banner[data-slide="production"] .hero-banner-text h3 {
    font-size: 36px;
  }

  .prices-tabs {
    flex-wrap: nowrap;
  }

  .prices-tab {
    flex: 0 0 auto;
    width: 267px;
    min-height: 52px;
    font-size: 20px;
  }

  .prices-table {
    min-width: 0;
  }

  .prices-table th,
  .prices-table td {
    font-size: 18px;
    white-space: nowrap;
  }

  #price > h2,
  #works > h2,
  .works-section > h2 {
    font-size: 42px;
    margin-bottom: 40px;
  }

  .works-grid {
    gap: 19px 16px;
    margin-top: 24px;
  }

  .works-lightbox {
    padding: 40px;
  }

  .works-lightbox__image {
    max-width: 92vw;
    max-height: 88vh;
  }

  .works-lightbox__close {
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .works-lightbox__nav {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .works-lightbox__nav--prev {
    left: 24px;
  }

  .works-lightbox__nav--next {
    right: 24px;
  }
}

/* ── Wide: 1440+ (Figma desktop) ─────────────── */

@media (min-width: 1440px) {
  .container {
    max-width: var(--page-max);
    margin-inline: auto;
  }

  .hero,
  .container.hero {
    grid-template-columns: minmax(0, 1fr) 538px;
    gap: 32px;
    padding-block: 32px 0;
    padding-inline: var(--gutter);
  }

  .ceilings-layout,
  .double-layout {
    grid-template-columns: minmax(0, 1fr) 575px;
    gap: 48px;
  }

  .ceilings-section {
    gap: 50px;
  }

  .catalog-grid__inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .works-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1364px;
    margin-inline: auto;
  }

  .hero-banner-section.section {
    margin-top: 85px;
    padding-block: 0;
  }
}
