:root {
  --bg: #f2f2f2;
  --white: #ffffff;
  --black: #000000;
  --text: #111111;
  --muted: #6e6e6e;
  --light: #a8a8a8;
  --radius: 20px;
  --radius-sm: 14px;
  --gap: 18px;
  --pad-x: clamp(72px, 8vw, 160px);
  --section-space: 88px;
  --section-space-lg: 112px;
  --section-space-md: 72px;
  --section-space-sm: 56px;
  --hero-grid-cols: 1fr 1fr 1.2fr;
  --header-h: 88px;
  --font: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.45s;
  --dark: #1a1a1a;
  --dark-muted: rgba(255, 255, 255, 0.55);

  /* Fluid type — compact below 1920px; scales up on large / 2K+ screens */
  --fs-hero: clamp(32px, 1.8vw + 1rem, 48px);
  --fs-display-xl: clamp(30px, 1.6vw + 0.85rem, 42px);
  --fs-display-lg: clamp(28px, 1.45vw + 0.8rem, 38px);
  --fs-display: clamp(26px, 1.3vw + 0.75rem, 36px);
  --fs-display-sm: clamp(22px, 1.1vw + 0.65rem, 30px);
  --fs-heading: clamp(24px, 1.2vw + 0.75rem, 34px);
  --fs-heading-sm: clamp(18px, 0.7vw + 0.65rem, 24px);
  --fs-body-lg: clamp(14px, 0.4vw + 0.7rem, 16px);
  --fs-body: clamp(13px, 0.35vw + 0.65rem, 15px);
  --fs-body-sm: clamp(12px, 0.3vw + 0.55rem, 14px);
  --fs-caption: clamp(11px, 0.25vw + 0.55rem, 13px);
  --fs-label: clamp(10px, 0.2vw + 0.5rem, 12px);
  --fs-stat: clamp(24px, 1.6vw + 0.45rem, 34px);
  --product-detail-grid: minmax(0, 1.45fr) minmax(0, 0.95fr) minmax(0, 0.85fr);
  /* hero = kitchens hero + half details; materials = half details; features = kitchens features */
  --furniture-media-grid: minmax(0, 1.925fr) minmax(0, 0.475fr) minmax(0, 0.85fr);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ≥16px prevents iOS zoom on focus */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
input:not([type]),
textarea,
select {
  font-size: 16px;
}

/* Honeypot — hide from humans, keep in DOM for bots */
.oknalip-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.js-oknalip-form {
  position: relative;
}

/* ── 12-column layout ── */
.layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  width: 100%;
  max-width: 100%;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }

main {
  padding-left: 32px;
  padding-right: 32px;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  background: var(--bg);
  padding: 16px 32px;
}

.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

.logo {
  display: inline-flex;
  line-height: 0;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.logo__img {
  width: 175px;
  max-width: 100%;
  height: auto;
  display: block;
}

.nav__link {
  font-size: 14px;
  color: var(--text);
  transition: transform var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  transform: translateY(-1px);
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__caret {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--text);
  border-radius: 8px;
  transition: transform 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.nav__caret svg {
  display: block;
  transition: transform 0.2s var(--ease-out);
}

.nav__item.is-open > .nav__caret svg,
.nav__item:hover > .nav__caret svg {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 10px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 95;
}

.nav__item:hover > .nav__dropdown,
.nav__item:focus-within > .nav__dropdown,
.nav__item.is-open > .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s var(--ease-out);
}

.nav__dropdown-link:hover,
.nav__dropdown-link.is-active {
  background: rgba(0, 0, 0, 0.05);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.header__phone {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--text);
  transition: transform var(--duration) var(--ease-out);
}

.header__phone:hover {
  transform: translateY(-1px);
}

.header__address {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 42px;
  justify-self: center;
}

.nav__mobile-top,
.nav__cta {
  display: none;
}

.btn-catalog {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  font-size: 13px;
  font-weight: 500;
  background: var(--black);
  color: #fff;
  border-radius: 100px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn-catalog:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-catalog[aria-expanded="true"] {
  background: var(--white);
  color: var(--text);
}

.btn-catalog[aria-expanded="true"]:hover {
  transform: none;
  box-shadow: none;
}

.header__actions .btn-catalog {
  display: none;
}

/* ── Catalog mega menu ── */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 89;
  padding: 0 32px 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.22s var(--ease-out),
    visibility 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.mega-menu.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.mega-menu__cats {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: #f7f7f7;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.mega-menu__cat {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  font: inherit;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.mega-menu__cat svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  opacity: 0.7;
}

.mega-menu__cat:hover {
  background: rgba(0, 0, 0, 0.04);
}

.mega-menu__cat.is-active {
  background: var(--black);
  color: #fff;
  font-weight: 600;
}

.mega-menu__cat.is-active:hover {
  background: var(--black);
}

.mega-menu__cat.is-active svg {
  opacity: 1;
}

.mega-menu__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.mega-menu__panel-bar {
  display: none;
}

.mega-menu__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: 0;
  cursor: pointer;
}

.mega-menu__panel-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.mega-menu__body {
  padding: 14px;
  min-width: 0;
}

.mega-menu__cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mega-menu__list {
  display: none;
}

.mega-menu__list-link {
  display: block;
  padding: 16px 0;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mega-menu__list-link:last-child {
  border-bottom: 0;
}

.mega-menu__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out);
}

.mega-menu__card:hover {
  transform: translateY(-2px);
}

.mega-menu__card-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #e8e8e8;
}

.mega-menu__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out);
}

.mega-menu__card:hover .mega-menu__card-media img {
  transform: scale(1.05);
}

.mega-menu__card-body {
  padding: 16px 12px 18px;
}

.mega-menu__card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1440px) and (min-width: 1025px) {
  .mega-menu__card-title {
    font-size: 14px;
  }
}

body.mega-open {
  overflow: hidden;
}

body.mega-open .header {
  z-index: 100;
}

.btn-menu {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--black);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn-menu:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-menu span {
  width: 16px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
}

/* ── First screen: hero + features ── */
.first-screen {
  --gap: 28px;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ── Hero ── */
.hero {
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
  align-items: stretch;
}

.hero__content {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero__tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 28px;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero__bottom {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: var(--hero-grid-cols);
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  height: 100%;
  min-height: 0;
}

.btn-play {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
}

.hero__description {
  font-size: var(--fs-body-lg);
  color: var(--text);
  line-height: 1.65;
  max-width: 90%;
  margin-bottom: 0;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  background: var(--black);
  padding: 8px 8px 8px 20px;
  border-radius: 100px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.btn-arrow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-arrow__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.btn-arrow:hover .btn-arrow__icon {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.24);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.link-arrow--dark { color: var(--text); }
.link-arrow:hover { gap: 14px; }

.category-card {
  position: relative;
  display: block;
  height: 100%;
  min-height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.55s var(--ease-out);
}

.category-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
}

.category-card:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.category-card--okna  { grid-column: 1; grid-row: 1 / 3; }
.category-card--dveri { grid-column: 2; grid-row: 1 / 3; }
.category-card--kuhni { grid-column: 3; grid-row: 1; }
.category-card--mebel { grid-column: 3; grid-row: 2; }

.category-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

.category-card:hover .category-card__img {
  transform: scale(1.06);
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.08) 38%,
    rgba(0, 0, 0, 0.35) 58%,
    rgba(0, 0, 0, 0.62) 78%,
    rgba(0, 0, 0, 0.78) 100%
  );
}

.category-card__content {
  position: absolute;
  inset: 0;
  padding: 22px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-card__num {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-bottom: 14px;
}

.category-card__title {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}

.category-card--okna .category-card__title,
.category-card--dveri .category-card__title {
  font-size: var(--fs-display-lg);
}

.category-card--kuhni .category-card__title,
.category-card--mebel .category-card__title {
  font-size: var(--fs-display-sm);
}

.category-card__desc {
  font-size: var(--fs-body-lg);
  font-weight: 400;
  line-height: 1.45;
  width: 80%;
  max-width: 80%;
  opacity: 0.95;
  align-self: flex-start;
  margin-top: auto;
  padding-bottom: 8px;
}

.category-card__btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.45s var(--ease-out), background 0.45s var(--ease-out), color 0.45s var(--ease-out);
}

.category-card:hover .category-card__btn {
  transform: scale(1.1) rotate(90deg);
  background: var(--black);
  color: var(--white);
}

/* ── Features row ── */
.features {
  flex-shrink: 0;
  padding: 0;
  align-items: stretch;
  min-height: 280px;
}

.features__grid {
  display: grid;
  grid-template-columns: var(--hero-grid-cols);
  gap: var(--gap);
  height: 100%;
  min-height: 280px;
  align-items: stretch;
}

/* About card */
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
  height: 100%;
  min-height: 280px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.about-card__image {
  position: relative;
  flex: 0 0 35%;
  width: auto;
  min-width: 0;
  min-height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-self: stretch;
}

.about-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.about-card:hover .about-card__image img {
  transform: scale(1.05);
}

.about-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px 6px 0;
}

.about-card__text {
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: var(--text);
}

.about-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text);
  align-self: flex-start;
  transition: gap var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

button.about-card__link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
}

.about-card__link:hover {
  gap: 14px;
  opacity: 0.7;
}

.about-card__link-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.about-card__link:hover .about-card__link-icon {
  transform: translateX(3px);
  background: var(--white);
}

@media (min-width: 1920px) {
  .about-card__image {
    flex: 1 1 0;
  }

  .about-card__body {
    flex: 1 1 0;
  }

  .service-item span {
    font-size: var(--fs-body);
  }

  .stat-item__label {
    font-size: var(--fs-body-sm);
  }
}

@media (max-width: 1680px) {
  .about-card {
    display: none;
  }

  .features__grid {
    grid-column: 1 / -1;
  }
}

/* Stats card */
.stats-card {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  height: 100%;
  padding: 24px 28px;
  min-height: 280px;
  background: var(--white);
  border-radius: var(--radius);
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.stats-card__services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}

.service-item__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.service-item span {
  display: block;
  font-size: var(--fs-caption);
  color: var(--text);
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  padding-top: 2px;
}

.stats-card__numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 28px;
}

.stat-item {
  padding: 0 20px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item:not(:first-child) {
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item__value {
  font-size: var(--fs-stat);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

.stat-item__label {
  font-size: var(--fs-label);
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.35;
  display: block;
}

/* CTA — text left, image right */
.cta-card {
  grid-column: 3;
  background: var(--black);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 280px;
  transition: transform var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out);
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

.cta-card__content {
  padding: 24px 20px 24px 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-card__title {
  font-size: clamp(16px, 0.5vw + 0.55rem, 20px);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
}

.cta-card__subtitle {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}

.cta-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  margin-top: 20px;
  color: #fff;
  transition: gap var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

button.cta-card__btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
}

.cta-card__btn:hover {
  gap: 14px;
  opacity: 0.85;
}

.cta-card__btn-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.cta-card__btn:hover .cta-card__btn-circle {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.22);
}

.cta-card__image {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.cta-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.cta-card:hover .cta-card__image img {
  transform: scale(1.06);
}

/* ── Projects ── */
.projects {
  padding: var(--section-space-md) 0 var(--section-space-lg);
  align-items: stretch;
}

.projects__sidebar {
  display: flex;
  flex-direction: column;
  padding-top: 60px; /* высота навигации (44px) + отступ до карточек (16px) */
  height: 100%;
}

.projects__sidebar .btn-arrow {
  align-self: flex-start;
  margin-top: auto;
}

.projects__title {
  font-size: var(--fs-heading);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.projects__desc {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: var(--muted);
  max-width: 90%;
  margin-bottom: 28px;
}

.projects__slider {
  min-width: 0;
}

.projects__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px 2px;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  background: var(--white);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-out), background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.carousel-btn svg {
  display: block;
  flex-shrink: 0;
  color: inherit;
  stroke: currentColor;
}

.carousel-btn:hover:not(:disabled) {
  transform: scale(1.08);
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.carousel-btn:disabled { opacity: .25; cursor: not-allowed; }

.projects__track-wrapper {
  overflow: hidden;
}

.is-swipeable {
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.is-swipeable.is-dragging {
  cursor: grabbing;
}

.is-swipeable a,
.is-swipeable img {
  -webkit-user-drag: none;
  user-drag: none;
}

.projects__track {
  display: flex;
  gap: var(--gap);
  transition: transform .5s ease;
}

.project-card {
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  min-width: 0;
}

.project-card__link,
.project-card__image {
  display: block;
  aspect-ratio: 1.2 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e4e4e4;
}

.project-card__link {
  cursor: zoom-in;
}

.project-card__link img,
.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.project-card:hover .project-card__link img,
.project-card:hover .project-card__image img {
  transform: scale(1.04);
}

.project-card__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 14px 2px 0;
}

.project-card__info h3 {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.4;
}

.project-card__info span {
  font-size: var(--fs-body);
  color: var(--light);
  flex-shrink: 0;
}

@media (min-width: 1920px) {
  .project-card__info h3,
  .project-card__info span {
    font-size: var(--fs-body-lg);
  }
}

@media (min-width: 2560px) {
  .project-card__info h3,
  .project-card__info span {
    font-size: clamp(17px, 1vw, 20px);
  }
}

/* ── Product sections ── */
.product-section {
  padding: 0 0 var(--section-space);
}

.product-section.layout {
  align-items: stretch;
}

.product-section__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 12px;
  height: 100%;
  align-self: stretch;
}

.product-section__sidebar .btn-arrow {
  align-self: flex-start;
  margin-top: auto;
}

.product-section__title {
  font-size: var(--fs-heading);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.product-section__desc {
  width: 85%;
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
}

.product-section__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-section__list li {
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}

.product-section__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--light);
}

.product-section__body {
  min-width: 0;
}

.product-section__media {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--gap);
  height: clamp(400px, 32vw, 480px);
  min-width: 0;
}

.product-section__media > * {
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.product-section__hero {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  position: relative;
  width: 100%;
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.product-section__hero img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Aside grids */
.product-aside-grid {
  display: grid;
  gap: var(--gap);
  height: 100%;
  min-height: 0;
  min-width: 0;
}

/* OKNA: spec on top, stack + tall image below */
.product-aside-grid--okna {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
}

.product-aside-grid--okna .spec-card {
  grid-column: 1 / -1;
}

.product-aside-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: var(--gap);
  min-height: 0;
}

.product-aside-stack > * {
  min-height: 0;
  overflow: hidden;
}

.product-aside-stack .swatch-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-aside-grid--okna .mini-card {
  grid-column: 2;
  grid-row: 2;
  min-height: 0;
  height: 100%;
}

/* DVERI: two equal columns */
.product-aside-grid--dveri {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.product-aside-grid--dveri .swatch-card,
.product-aside-grid--dveri .dark-card {
  height: 100%;
  min-height: 0;
}

.swatch-card--materials {
  display: flex;
  flex-direction: column;
}

.swatch-card--materials .swatch-card__grid {
  flex: 1;
  align-content: start;
}

/* KUKHNI & MEBEL: 3 small + 3 feature cards */
.product-aside-grid--split {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  grid-template-rows: repeat(3, 1fr);
}

.product-aside-grid--split .furniture-aside-materials {
  grid-column: 1;
  grid-row: 1 / 4;
  min-height: 0;
  height: 100%;
}

.product-aside-grid--split .feature-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.product-aside-grid--split .feature-card:nth-child(3) { grid-column: 2; grid-row: 2; }
.product-aside-grid--split .feature-card:nth-child(4) { grid-column: 2; grid-row: 3; }

.product-aside-grid--split .material-card,
.product-aside-grid--split .feature-card {
  height: 100%;
  min-height: 0;
  aspect-ratio: unset;
}

/* ── Windows section ── */
.product-section__list--dash li::before {
  content: '—';
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  top: 0;
  color: var(--light);
}

.windows-layout {
  display: grid;
  grid-template-columns: var(--product-detail-grid);
  gap: var(--gap);
  height: auto;
  max-height: none;
  align-items: stretch;
  min-width: 0;
}

.windows-layout > * {
  min-height: 0;
}

.windows-layout__hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 0;
  height: auto;
  align-self: stretch;
}

.windows-layout__hero-track {
  position: absolute;
  inset: 0;
  display: flex;
  height: auto;
  transition: transform 0.5s var(--ease-out);
}

.windows-layout__hero-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.windows-system {
  background: #f9f9f9;
  border-radius: var(--radius);
  padding: 20px 20px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.windows-system__viewport {
  flex: 0 0 auto;
  overflow: hidden;
  min-height: 0;
  height: auto;
}

.windows-system__track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.windows-system__slide {
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.windows-system__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.windows-system__label {
  font-size: 12px;
  font-weight: 400;
  color: var(--light);
}

.windows-system__name {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.windows-system__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.windows-tag {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: #efefef;
  padding: 6px 10px;
  border-radius: 100px;
  line-height: 1.3;
}

.windows-system__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding-top: 4px;
}

.windows-system__colors {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2px;
}

.windows-system__colors-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.windows-feature {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0;
  background: #ebebeb;
  border-radius: var(--radius-sm);
  padding: 0;
  align-items: stretch;
  overflow: hidden;
  min-height: 108px;
  margin-top: 2px;
}

.windows-feature__image {
  position: relative;
  width: 112px;
  min-height: 108px;
  align-self: stretch;
  overflow: hidden;
  background: #ddd;
}

.windows-feature__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.windows-feature__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px 16px 14px;
}

.windows-feature__title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.windows-feature__desc {
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--muted);
}

.windows-system__swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.windows-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 8px;
}

.windows-stat:not(:first-child) {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.windows-stat__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
}

.windows-stat__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.windows-stat__value {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.windows-stat__label {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
}

.color-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.color-dot--light {
  border-color: rgba(0, 0, 0, 0.12);
}

.color-dot--more {
  background: #efefef;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.windows-system__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.windows-system__dots {
  display: flex;
  gap: 6px;
}

.windows-system__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  padding: 0;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.windows-system__dot.is-active {
  background: var(--black);
  transform: scale(1.2);
}

.windows-system__arrows {
  display: flex;
  gap: 6px;
}

.windows-system__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.windows-system__btn:hover:not(:disabled) {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.windows-system__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.windows-promo {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: auto;
  align-self: stretch;
}

.windows-promo__title {
  font-size: var(--fs-body-lg);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.windows-promo__desc {
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--muted);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.windows-promo__image {
  position: relative;
  flex: 1 1 auto;
  min-height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.windows-promo__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Windows section tweaks */
.product-section--windows {
  padding: 0 0 var(--section-space);
}

.product-section--windows .product-section__sidebar {
  gap: 20px;
  padding-top: 4px;
}

.product-section--windows .product-section__body {
  display: flex;
  min-width: 0;
  align-items: stretch;
}

.product-section--windows .windows-layout {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  max-height: none;
  min-height: 0;
  align-self: stretch;
}

/* ── Doors section ── */
.product-section--doors .product-section__body {
  display: flex;
  min-width: 0;
}

.doors-layout {
  display: grid;
  grid-template-columns: var(--product-detail-grid);
  gap: var(--gap);
  align-items: stretch;
  min-width: 0;
  flex: 1;
  width: 100%;
  height: clamp(440px, 30vw, 500px);
  min-height: 0;
}

.doors-layout > * {
  min-height: 0;
}

.doors-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.doors-hero__viewport {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.doors-hero__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
}

.doors-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  height: 100%;
  min-height: 0;
}

.doors-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.doors-hero__panel {
  position: absolute;
  left: 16px;
  bottom: 58px;
  width: fit-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(36, 36, 36, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  z-index: 2;
}

.doors-hero__nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.doors-hero__dots {
  display: flex;
  gap: 6px;
}

.doors-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  border: none;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.doors-hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.doors-hero__arrows {
  display: flex;
  gap: 6px;
}

.doors-hero__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: #fff;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.doors-hero__btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.doors-hero__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.doors-hero__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.doors-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doors-hero__tag {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.doors-finishes {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.doors-finishes__top {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 0;
}

.doors-finishes__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.doors-finishes-viewport {
  overflow: hidden;
  min-height: 0;
}

.doors-finishes-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.doors-finishes-track > .doors-finishes-panel {
  flex: 0 0 100%;
  min-width: 0;
}

.doors-finishes__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.doors-finish {
  display: flex;
  align-items: center;
  gap: 12px;
}

.doors-swatch {
  flex: 0 0 72px;
  width: 72px;
  height: 34px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.doors-swatch--oak {
  background: linear-gradient(135deg, #4a3228 0%, #7a5a3a 45%, #3d2818 100%);
}

.doors-swatch--walnut {
  background: linear-gradient(135deg, #5c3a24 0%, #8b5a36 50%, #4a2e1c 100%);
}

.doors-swatch--ash {
  background: linear-gradient(135deg, #d8ccb4 0%, #f0e6d4 50%, #c8b898 100%);
}

.doors-swatch--enamel {
  background: #f0ece4;
}

.doors-swatch--concrete {
  background: linear-gradient(135deg, #b0b0b0 0%, #d0d0d0 40%, #9a9a9a 100%);
}

.doors-swatch--wall {
  background: linear-gradient(135deg, #e8e4dc 0%, #f5f2ec 50%, #d8d2c8 100%);
}

.doors-swatch--metal {
  background: linear-gradient(135deg, #8a8a8a 0%, #c8c8c8 45%, #6a6a6a 100%);
}

.doors-swatch--glass {
  background: linear-gradient(135deg, rgba(180, 210, 230, 0.5) 0%, rgba(220, 235, 245, 0.8) 50%, rgba(160, 190, 210, 0.4) 100%);
}

.doors-swatch--glass-frosted {
  background: linear-gradient(135deg, rgba(230, 235, 240, 0.9) 0%, rgba(245, 248, 250, 1) 50%, rgba(210, 218, 225, 0.85) 100%);
}

.doors-finish__name {
  font-size: 13px;
  line-height: 1.3;
  color: var(--text);
}

.doors-hardware {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-top: auto;
}

.doors-hardware__grid {
  display: flex;
  gap: 8px;
}

.doors-highlights-viewport {
  overflow: hidden;
}

.doors-highlights-track {
  display: flex;
  transition: transform 0.5s var(--ease-out);
}

.doors-highlights-track > .doors-highlights-panel {
  flex: 0 0 100%;
  min-width: 0;
  align-items: flex-start;
}

.doors-hardware__item {
  position: relative;
  flex: 1;
  min-width: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.doors-hardware__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.5) 100%);
}

.doors-hardware__item img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.doors-hardware__item .doors-hardware__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 500;
  color: #fff;
  z-index: 1;
}

.doors-custom {
  position: relative;
  background: var(--dark);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.doors-custom__title {
  font-size: var(--fs-body-lg);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.doors-custom__desc {
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--dark-muted);
  max-width: 92%;
}

.doors-custom__drawing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 12px 0 8px;
}

.doors-custom__drawing img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  display: block;
}

.doors-card__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--duration) var(--ease-out);
}

.doors-hero:hover .doors-card__btn,
.doors-custom:hover .doors-card__btn {
  transform: scale(1.08);
}

.doors-card__btn--outline {
  position: absolute;
  right: 18px;
  bottom: 16px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.doors-card__btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ── Kitchens section ── */
.product-section--kitchens .product-section__body {
  display: flex;
  min-width: 0;
}

.kitchens-layout {
  display: grid;
  grid-template-columns: var(--product-detail-grid);
  gap: var(--gap);
  align-items: stretch;
  min-width: 0;
  flex: 1;
  width: 100%;
  height: auto;
  min-height: 0;
}

.kitchens-layout > * {
  min-height: 0;
}

.kitchens-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 0;
}

.kitchens-hero__viewport {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.kitchens-hero__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
}

.kitchens-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  height: 100%;
  min-height: 0;
}

.kitchens-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kitchens-hero__panel {
  position: absolute;
  left: 16px;
  bottom: 58px;
  width: fit-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(36, 36, 36, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  z-index: 2;
}

.kitchens-hero__nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.kitchens-hero__dots {
  display: flex;
  gap: 6px;
}

.kitchens-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  border: none;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.kitchens-hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.kitchens-hero__arrows {
  display: flex;
  gap: 6px;
}

.kitchens-hero__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: #fff;
  transition: transform var(--duration) var(--ease-out), opacity var(--duration) var(--ease-out);
}

.kitchens-hero__btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.kitchens-hero__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.kitchens-hero__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.kitchens-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kitchens-hero__tag {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.kitchens-card__btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  display: grid;
  place-items: center;
  transition: transform var(--duration) var(--ease-out);
}

.kitchens-hero:hover .kitchens-card__btn {
  transform: scale(1.08);
}

.kitchens-details {
  background: var(--white);
  border-radius: var(--radius);
  height: auto;
  min-height: 0;
  align-self: start;
  overflow: hidden;
}

.kitchens-details-viewport {
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.kitchens-details-track {
  display: flex;
  height: auto;
  transition: transform 0.5s var(--ease-out);
}

.kitchens-details-panel {
  flex: 0 0 100%;
  min-width: 0;
  height: auto;
  padding: 18px 18px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px 10px;
  align-content: start;
}

.kitchens-details__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 8px;
  flex-shrink: 0;
}

.kitchens-detail--materials {
  grid-column: 1 / -1;
  grid-row: 1;
  min-height: 0;
}

.kitchens-details-panel > .kitchens-detail--grow:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.kitchens-details-panel > .kitchens-detail--grow:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.kitchens-detail--grow {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.kitchens-materials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.kitchens-material {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.kitchens-material img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kitchens-detail__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.kitchens-detail__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kitchens-features {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-height: 0;
}

.kitchens-feature {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}

.kitchens-feature__thumb {
  flex: 0 0 128px;
  width: 128px;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
}

.kitchens-feature__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.kitchens-feature__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px 12px 0;
}

.kitchens-feature__title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 4px;
}

.kitchens-feature__desc {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: var(--light);
}

@media (min-width: 1920px) {
  .kitchens-feature__title {
    font-size: var(--fs-body-lg);
  }

  .kitchens-feature__desc {
    font-size: var(--fs-body);
  }
}

@media (min-width: 2560px) {
  .kitchens-feature__title {
    font-size: clamp(17px, 1vw, 20px);
  }

  .kitchens-feature__desc {
    font-size: var(--fs-body-lg);
  }
}

@media (min-width: 1101px) {
  .kitchens-hero,
  .kitchens-features {
    height: var(--kitchens-sync-height, auto);
  }
}

/* Mid-desktop: drop tertiary columns so layouts fit */
@media (max-width: 1586px) and (min-width: 1101px) {
  :root {
    --product-detail-grid: minmax(0, 1.55fr) minmax(0, 1fr);
    --furniture-media-grid: minmax(0, 1.7fr) minmax(0, 1fr);
  }

  .windows-layout {
    height: auto;
    min-height: 0;
  }

  .doors-layout {
    height: auto;
    min-height: 420px;
  }

  .doors-finishes {
    overflow: visible;
    height: auto;
  }

  .product-section--furniture .product-section__media {
    height: clamp(420px, 32vw, 480px);
  }

  .windows-promo,
  .doors-custom,
  .kitchens-features,
  .product-section--furniture .product-aside-grid--split .feature-card {
    display: none;
  }

  .windows-system {
    overflow: visible;
    height: auto;
  }

  .kitchens-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  }

  .kitchens-features {
    display: none;
  }

  /* Keep hero panels inside the frame */
  .doors-hero__panel,
  .kitchens-hero__panel,
  .furniture-hero__panel {
    left: 14px;
    bottom: 52px;
    max-width: min(300px, calc(100% - 28px));
    padding: 10px 12px;
    gap: 8px;
  }

  .doors-hero__nav,
  .kitchens-hero__nav,
  .furniture-hero__nav {
    bottom: 12px;
  }
}

/* ── Furniture section ── */
.furniture-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.furniture-hero__viewport {
  overflow: hidden;
  height: 100%;
  min-height: 0;
}

.furniture-hero__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
}

.furniture-hero__slide {
  flex: 0 0 100%;
  min-width: 0;
  position: relative;
  height: 100%;
  min-height: 0;
}

.furniture-hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.furniture-hero__panel {
  position: absolute;
  left: 16px;
  bottom: 58px;
  width: fit-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-radius: var(--radius-sm);
  background: rgba(36, 36, 36, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  z-index: 2;
}

.furniture-hero__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.32);
}

.furniture-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.furniture-hero__tag {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.furniture-card__btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  display: grid;
  place-items: center;
}

.furniture-hero__nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
}

.furniture-hero__dots {
  display: flex;
  gap: 6px;
}

.furniture-hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  padding: 0;
  border: none;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.furniture-hero__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

.furniture-hero__arrows {
  display: flex;
  gap: 6px;
}

.furniture-hero__btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: #fff;
  transition: opacity var(--duration) var(--ease-out);
}

.furniture-hero__btn:hover:not(:disabled) {
  opacity: 0.85;
}

.furniture-hero__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.furniture-aside-materials {
  min-height: 0;
  height: 100%;
}

.furniture-materials-viewport {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.furniture-materials-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s var(--ease-out);
}

.furniture-materials-panel {
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
}

/* Furniture — hero fills remaining width; materials = half of kitchens details column */
.product-section--furniture .product-section__media {
  grid-template-columns: var(--furniture-media-grid);
  grid-template-rows: repeat(3, 1fr);
  height: clamp(440px, 30vw, 500px);
}

.product-section--furniture .product-aside-grid--split {
  display: contents;
}

.product-section--furniture .furniture-hero {
  grid-column: 1;
  grid-row: 1 / -1;
}

.product-section--furniture .furniture-aside-materials {
  grid-column: 2;
  grid-row: 1 / -1;
}

.product-section--furniture .product-aside-grid--split .feature-card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

.product-section--furniture .product-aside-grid--split .feature-card:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

.product-section--furniture .product-aside-grid--split .feature-card:nth-child(4) {
  grid-column: 3;
  grid-row: 3;
}

/* Spec card */
.spec-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.spec-card__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 6px;
}

.spec-card__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.spec-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.spec-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text);
}

/* Swatch card */
.swatch-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.swatch-card__label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 14px;
}

.swatch-card__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.swatch-card__grid--rect {
  grid-template-columns: repeat(3, 1fr);
}

.swatch {
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.swatch--white { background: #f5f5f0; }
.swatch--anthracite { background: #3a3a3a; }
.swatch--oak { background: #c4a574; }
.swatch--walnut { background: #6b4c35; }
.swatch--ash { background: #b8a88a; }
.swatch--wenge { background: #4a3228; }

/* Profile card */
.profile-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  min-height: 0;
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 11px;
  font-weight: 500;
  color: #fff;
  z-index: 1;
}

.profile-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

/* Mini card */
.mini-card {
  position: relative;
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 0;
}

.mini-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
}

.mini-card__title {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 48px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  z-index: 1;
}

.mini-card__btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: transform var(--duration) var(--ease-out);
}

.mini-card:hover .mini-card__btn {
  transform: scale(1.1);
}

/* Dark card */
.dark-card {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.dark-card__label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.dark-card__drawing {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  padding: 12px 0;
}

.dark-card__drawing svg {
  width: 80px;
  height: auto;
}

.dark-card__link {
  font-size: 12px;
  color: var(--dark-muted);
  transition: color var(--duration) var(--ease-out);
}

.dark-card__link:hover {
  color: #fff;
}

/* Material card */
.material-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 0;
}

.material-card img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

.material-card__label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  z-index: 1;
}

.material-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.5) 100%);
}

/* Feature card */
.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 0;
}

.feature-card img {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.feature-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.55) 100%);
}

.feature-card__title {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 44px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  z-index: 1;
}

.feature-card__btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  display: grid;
  place-items: center;
  z-index: 1;
  transition: transform var(--duration) var(--ease-out);
}

.feature-card:hover .feature-card__btn {
  transform: scale(1.1);
}

.feature-card:hover img {
  transform: scale(1.06);
}

/* ── Process ── */
.process {
  background: var(--dark);
  color: #fff;
  padding: 72px 0;
  margin: 0;
  border-radius: var(--radius);
}

.process__inner {
  align-items: start;
}

.process__inner.layout,
.contact__inner.layout {
  --pad-x: clamp(16px, 2vw, 32px);
  gap: clamp(24px, 2.5vw, 40px);
}

.process__tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.process__title,
.contact__title {
  font-size: var(--fs-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.process__desc {
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: var(--dark-muted);
  margin-bottom: 0;
  max-width: 70%;
}

.process__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding-top: 8px;
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.process-step:first-child {
  border-left: none;
  padding-left: 0;
}

.process-step__num {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.process-step__title {
  font-size: var(--fs-body-sm);
  font-weight: 500;
  line-height: 1.4;
  flex: 1;
}

.process-step__icon {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.55);
  margin-top: auto;
}

.process-step__icon svg {
  width: 32px;
  height: 32px;
}

@media (min-width: 1920px) {
  .process__steps {
    gap: 24px;
  }

  .process-step {
    gap: 24px;
    padding: 28px 24px;
  }

  .process-step__num {
    font-size: 15px;
  }

  .process-step__title {
    font-size: clamp(16px, 1vw, 20px);
  }

  .process-step__icon svg {
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 2560px) {
  .process__steps {
    gap: 28px;
  }

  .process-step {
    gap: 28px;
    padding: 32px 28px;
  }

  .process-step__num {
    font-size: 16px;
  }

  .process-step__title {
    font-size: clamp(18px, 1.1vw, 22px);
  }

  .process-step__icon svg {
    width: 52px;
    height: 52px;
  }
}

/* ── Contact ── */
.contact {
  position: relative;
  margin: 28px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.contact__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
}

.contact__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  align-items: start;
}

.contact__intro {
  padding-right: 8px;
}

.contact__desc {
  font-size: var(--fs-body-sm);
  line-height: 1.65;
  color: #ffffff;
  max-width: 70%;
}

.contact__desc p {
  margin: 0 0 0.85em;
}

.contact__desc p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1920px) {
  .process__title,
  .contact__title {
    font-size: clamp(34px, 2.6vw, 44px);
  }

  .process__desc,
  .contact__desc {
    font-size: var(--fs-body-lg);
  }
}

@media (min-width: 2560px) {
  .process__title,
  .contact__title {
    font-size: clamp(40px, 3vw, 52px);
  }

  .process__tagline {
    font-size: 12px;
  }

  .process__desc,
  .contact__desc {
    font-size: clamp(16px, 0.9vw, 18px);
  }
}

.contact__form {
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-self: start;
}

.contact__form-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: rgba(48, 48, 48, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.contact__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.contact__field {
  display: block;
}

.contact__field--wide {
  grid-column: 1 / -1;
}

.contact__field input,
.contact__field textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  min-height: 52px;
  outline: none;
  transition: border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
  resize: vertical;
}

.contact__field textarea {
  min-height: 112px;
  padding-top: 16px;
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.38);
}

.contact__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  align-self: flex-start;
  padding: 10px 10px 10px 18px;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  transition: background var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.contact__submit:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.contact__submit-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
  padding-left: 0;
  max-width: 280px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-info-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.contact-info-item__value {
  display: block;
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  transition: opacity var(--duration) var(--ease-out);
}

a.contact-info-item__value:hover {
  opacity: 0.7;
}

.contact-info-item__note {
  display: block;
  font-size: var(--fs-body-sm);
  color: var(--dark-muted);
  margin-top: 4px;
}

/* ── Footer ── */
.footer {
  padding: 56px 32px 40px;
  margin-top: 28px;
  width: 100%;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(0, 1fr)) max-content;
  gap: 32px clamp(24px, 2.5vw, 48px);
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.footer__inner.layout {
  --pad-x: 0;
  padding-left: 0;
  padding-right: 0;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(0, 1fr)) max-content;
}

.footer__inner .col-2,
.footer__inner .col-3 {
  grid-column: auto;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 260px;
}

.footer__copy {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 4px;
}

.footer__nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--duration) var(--ease-out);
}

.footer__nav a:hover {
  color: var(--text);
}

.footer__social {
  justify-self: end;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer__privacy {
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
  transition: color var(--duration) var(--ease-out);
}

.footer__privacy:hover {
  color: var(--text);
}

.footer__social-links {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.footer__social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.footer__social-links a img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  transition: filter var(--duration) var(--ease-out);
}

.footer__social-links a[aria-label="ВКонтакте"] img {
  width: 20px;
  height: 11px;
}

.footer__social-links a[aria-label="MAX"] img,
.footer__social-links a[aria-label="Telegram"] img {
  width: 18px;
  height: 18px;
}

.footer__social-links a:hover {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

.footer__social-links a:hover img {
  filter: brightness(0) invert(1);
}

/* ── Responsive ── */
@media (max-width: 1100px) and (min-width: 769px) {
  .hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: clamp(24px, 4vw, 48px);
    row-gap: 16px;
    align-items: start;
    height: auto;
  }

  .hero__tagline {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }

  .hero__title {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.08;
  }

  .hero__bottom {
    margin-top: 0;
  }

  .hero__text {
    gap: 28px;
  }

  .hero__description {
    max-width: none;
  }
}

@media (max-width: 1100px) {
  :root {
    --pad-x: clamp(20px, 3.5vw, 40px);
    --gap: 14px;
  }

  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header {
    padding: 12px 20px;
  }

  .first-screen {
    min-height: auto;
  }

  .hero {
    flex: none;
  }

  .col-3, .col-4, .col-5, .col-6, .col-8, .col-9 { grid-column: span 12; }
  .hero__grid { min-height: 460px; }
  .col-2, .col-3, .col-7, .col-10 { grid-column: span 12; }
  .features__grid {
    grid-template-columns: 1fr;
  }
  .stats-card,
  .cta-card {
    grid-column: auto;
  }
  .stats-card__services,
  .stats-card__numbers {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .stat-item {
    border-left: none !important;
    padding: 0 !important;
  }
  .service-item span {
    font-size: var(--fs-caption);
  }
  .stat-item__label {
    font-size: var(--fs-label);
  }
  .cta-card__title {
    font-size: clamp(16px, 0.5vw + 0.55rem, 20px);
  }
  .cta-card__subtitle {
    font-size: var(--fs-body);
  }
  .cta-card {
    grid-template-columns: 1fr 1fr;
  }
  .projects__sidebar {
    padding-top: 0;
  }

  .page-hero {
    min-height: 420px;
    height: 52vh;
    margin-bottom: var(--section-space-sm);
  }

  .page-intro__grid,
  .page-catalog__grid,
  .page-projects__grid,
  .page-seo__faq-list {
    grid-template-columns: 1fr 1fr;
  }

  .page-intro__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-cards,
  .detail-bar {
    grid-template-columns: 1fr 1fr;
  }

  .detail-card {
    aspect-ratio: 2 / 3;
  }

  .page-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 22px;
  }

  .page-section-head__desc {
    max-width: none;
    text-align: left;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) {
    grid-template-columns: 1fr 1fr;
  }

  .page-benefits__panel {
    padding: 36px 28px 32px;
  }

  .page-benefits__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .page-benefits__desc {
    text-align: left;
    max-width: none;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item {
    padding: 24px 24px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:not(:first-child) {
    padding-left: 24px;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(n + 3) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(n + 3):not(:first-child) {
    padding-top: 24px;
  }

  .page-seo__grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-seo__inner {
    padding: 36px 28px 40px;
  }

  .projects__sidebar .btn-arrow {
    margin-top: 0;
  }
  .project-card { flex: 0 0 calc((100% - var(--gap)) / 2); }

  .product-section__body {
    grid-column: span 12;
  }

  .product-section__media {
    grid-template-columns: 1fr;
    height: auto;
    width: 100%;
  }

  .product-section__media > * {
    height: auto;
  }

  .product-section--furniture .product-section__media {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
    width: 100%;
    height: auto;
    gap: var(--gap);
  }

  .product-section--furniture .product-aside-grid--split {
    display: contents;
  }

  .product-section--furniture .furniture-hero,
  .product-section--furniture .furniture-aside-materials,
  .product-section--furniture .product-aside-grid--split .feature-card:nth-child(2),
  .product-section--furniture .product-aside-grid--split .feature-card:nth-child(3),
  .product-section--furniture .product-aside-grid--split .feature-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .product-section--furniture .furniture-hero {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  .product-section--furniture .furniture-aside-materials {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .product-section--furniture .furniture-materials-viewport,
  .product-section--furniture .furniture-materials-track,
  .product-section--furniture .furniture-materials-panel {
    height: auto;
  }

  .product-section--furniture .furniture-materials-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
  }

  .product-section--furniture .furniture-materials-panel .material-card {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .windows-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .doors-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .product-section.layout {
    row-gap: 32px;
  }

  .product-section__sidebar .btn-arrow {
    margin-top: 0;
  }

  .windows-promo,
  .doors-custom,
  .kitchens-features,
  .product-section--furniture .product-aside-grid--split .feature-card {
    display: none;
  }

  .doors-hero,
  .kitchens-hero,
  .furniture-hero {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    min-height: auto;
    height: auto;
  }

  .windows-layout__hero {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 5 / 2;
    max-height: 200px;
    min-height: auto;
    height: auto;
  }

  .windows-layout__hero-track {
    width: 100%;
    height: 100%;
  }

  .windows-layout__hero-track img {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .doors-finishes {
    min-height: auto;
  }

  .kitchens-layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: auto;
  }

  .kitchens-hero,
  .kitchens-features {
    height: auto;
  }

  .kitchens-details,
  .kitchens-features {
    min-height: auto;
  }

  .kitchens-feature {
    min-height: 88px;
  }

  .furniture-aside-materials {
    min-height: auto;
  }

  .windows-system {
    min-height: auto;
    height: auto;
  }

  .windows-promo__image {
    aspect-ratio: 3 / 4;
    max-height: 280px;
  }

  .product-section__hero {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: none;
    height: auto;
  }

  .product-aside-grid--okna,
  .product-aside-grid--dveri,
  .product-aside-grid--split {
    height: auto;
    min-height: 0;
  }

  .product-aside-grid--okna .mini-card {
    grid-column: auto;
    grid-row: auto;
    min-height: 160px;
  }

  /* Compact overlay panels on tablet */
  .doors-hero__panel,
  .kitchens-hero__panel,
  .furniture-hero__panel {
    left: 14px;
    bottom: 52px;
    max-width: min(360px, calc(100% - 28px));
    padding: 12px;
    gap: 10px;
  }

  .product-aside-stack {
    grid-template-rows: auto auto;
  }

  .process {
    margin: 0;
    border-radius: 0;
  }

  .process__steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-step:nth-child(4) {
    border-left: none;
    padding-left: 0;
  }

  .contact {
    margin: 0;
    border-radius: 0;
  }

  .contact__fields {
    grid-template-columns: 1fr 1fr;
  }

  .contact__field--wide {
    grid-column: 1 / -1;
  }
}


@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }

  .header {
    padding: 10px 16px;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .header__contacts,
  .header__address {
    display: none;
  }

  .logo__img {
    width: 132px;
  }

  .btn-menu {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .nav .btn-catalog {
    display: none;
  }

  .header__actions .btn-catalog {
    display: flex;
    font-size: 0;
    gap: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .header__actions .btn-catalog svg {
    width: 16px;
    height: 16px;
  }

  .mega-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    bottom: auto;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: calc(100dvh - 100%);
    z-index: 95;
    padding: 0;
    max-height: none;
    overflow: hidden;
    transform: none;
    background: var(--white);
  }

  .mega-menu.is-open {
    transform: none;
  }

  .mega-menu__inner {
    position: relative;
    display: block;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    background: var(--white);
  }

  .mega-menu__cats {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    height: 100%;
    padding: 16px 16px 28px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: none;
    border-bottom: none;
    background: var(--white);
  }

  .mega-menu__cat {
    flex: 0 0 auto;
    width: 100%;
    padding: 16px 18px;
    font-size: 18px;
    white-space: normal;
    border-radius: 14px;
  }

  .mega-menu__cat span {
    flex: 1;
  }

  .mega-menu__cat::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
    opacity: 0.35;
  }

  .mega-menu__cat svg {
    width: 24px;
    height: 24px;
  }

  .mega-menu__panel {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.32s var(--ease-out);
  }

  .mega-menu.is-drill .mega-menu__panel {
    transform: translateX(0);
  }

  .mega-menu__panel-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .mega-menu__body {
    flex: 1;
    min-height: 0;
    padding: 4px 16px 28px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mega-menu__cards {
    display: none;
  }

  .mega-menu__list {
    display: flex;
    flex-direction: column;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    height: 100dvh;
    margin: 0;
    padding: 16px 28px 28px;
    gap: 0;
    background: var(--white);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 105;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__mobile-top {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    padding-bottom: 20px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav__phone {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
  }

  .nav__address {
    font-size: 13px;
    line-height: 1.35;
    color: var(--muted);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav__item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .nav__item > .nav__link {
    border-bottom: none;
    padding-right: 8px;
  }

  .nav__caret {
    display: flex;
  }

  .nav__item.is-open > .nav__caret {
    background: rgba(0, 0, 0, 0.05);
  }

  .nav__dropdown {
    position: static;
    left: auto;
    transform: none;
    min-width: 0;
    width: 100%;
    grid-column: 1 / -1;
    padding: 0 0 10px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .nav__item.is-open > .nav__dropdown {
    display: flex;
    transform: none;
  }

  .nav__dropdown-link {
    padding: 10px 0 10px 4px;
    font-size: 16px;
    white-space: normal;
    border-radius: 0;
    color: var(--muted);
  }

  .nav__dropdown-link:hover,
  .nav__dropdown-link.is-active {
    background: transparent;
    color: var(--text);
  }

  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: auto;
    padding: 16px 22px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    background: var(--black);
    border-radius: 100px;
    text-align: center;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header {
    z-index: 110;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .hero__title {
    font-size: clamp(38px, 7.5vw, 48px);
    line-height: 1.08;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 16px;
    --gap: 12px;
    --radius: 14px;
    --radius-sm: 12px;
    --header-h: 72px;
  }

  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header {
    padding: 10px 16px;
  }

  .hero__bottom {
    margin-top: 24px;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .header__contacts {
    display: none;
  }

  .logo__img {
    width: 132px;
  }

  .btn-menu {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .header__actions .btn-catalog {
    font-size: 0;
    gap: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .header__actions .btn-catalog svg {
    width: 16px;
    height: 16px;
  }

  .mega-menu__cats {
    padding: 16px 16px 28px;
  }

  .mega-menu__panel-bar {
    padding: 14px 16px;
  }

  .mega-menu__body {
    padding: 4px 16px 28px;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    height: 100dvh;
    margin: 0;
    padding: 16px 28px 40px;
    gap: 0;
    background: var(--white);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 105;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header {
    z-index: 110;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
  }

  .hero__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 180px 180px;
    height: auto;
  }
  .category-card--okna  { grid-column: 1; grid-row: 1 / 3; }
  .category-card--dveri { grid-column: 2; grid-row: 1 / 3; }
  .category-card--kuhni { grid-column: 1 / -1; grid-row: 3; }
  .category-card--mebel { grid-column: 1 / -1; grid-row: 4; }
  .stats-card__services,
  .stats-card__numbers {
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .project-card { flex: 0 0 85%; }

  .page-projects .project-card {
    flex: none;
  }

  .page-intro {
    padding-bottom: var(--section-space-sm);
  }

  .page-intro__grid,
  .directions-grid,
  .page-catalog__grid,
  .page-benefits__grid:not(.page-benefits__grid--5),
  .page-projects__grid,
  .page-seo__grid,
  .page-seo__faq-list,
  .detail-cards,
  .detail-bar,
  .page-intro__facts {
    grid-template-columns: 1fr;
  }

  .directions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-seo__inner {
    padding: 24px 18px 28px;
  }

  .page-seo__intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .page-directions,
  .page-catalog,
  .page-benefits,
  .page-materials,
  .page-projects,
  .page-seo {
    padding-bottom: var(--section-space-sm);
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item {
    padding: 22px 0 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:not(:first-child) {
    padding-left: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 24px;
    padding-top: 22px;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item__num {
    margin-bottom: 16px;
  }

  .page-benefits__panel {
    padding: 24px 18px 22px;
  }

  .page-benefits__title {
    font-size: var(--fs-heading);
  }

  .catalog-card__body {
    padding: 18px 16px 20px;
  }

  .catalog-card__stats {
    margin-bottom: 16px;
  }

  .catalog-card__stat {
    padding: 0 6px;
  }

  .catalog-card__stat:first-child {
    padding-left: 0;
  }

  .catalog-card__stat-value {
    font-size: var(--fs-body-lg);
  }

  .catalog-card__body .btn-arrow {
    width: 100%;
    justify-content: space-between;
  }

  .page-hero {
    min-height: 340px;
    height: 48vh;
    margin-bottom: 28px;
    border-radius: var(--radius);
  }

  .page-hero__inner {
    padding: 24px 18px 28px;
    gap: 12px;
  }

  .page-hero__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .page-hero__lead {
    font-size: var(--fs-body);
    margin-bottom: 4px;
  }

  .detail-card {
    aspect-ratio: 3 / 4;
  }

  .detail-bar {
    padding: 18px;
    gap: 16px;
  }

  .detail-bar__item {
    gap: 12px;
  }

  .page-projects .project-card__image {
    aspect-ratio: 4 / 3;
  }

  .contact {
    margin: 16px 0 0;
    border-radius: var(--radius);
  }

  .contact__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .contact__desc {
    max-width: none;
  }

  .contact__form-panel {
    padding: 20px;
  }

  .footer {
    padding: 40px 16px 32px;
  }

  .product-section {
    padding: 0 0 var(--section-space-sm);
  }

  .product-section__sidebar {
    gap: 20px;
  }

  .doors-hero,
  .kitchens-hero,
  .furniture-hero,
  .windows-layout__hero,
  .product-section__hero {
    max-height: none;
    height: auto;
    aspect-ratio: auto;
  }

  .doors-hero,
  .kitchens-hero,
  .furniture-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .doors-hero__viewport,
  .kitchens-hero__viewport,
  .furniture-hero__viewport {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: none;
    height: auto;
    border-radius: var(--radius);
  }

  .windows-layout__hero {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 2 / 1;
    max-height: 240px;
    height: auto;
    border-radius: var(--radius);
  }

  /* Compact overlay panel — keep on image, hide + button */
  .doors-hero__panel,
  .kitchens-hero__panel,
  .furniture-hero__panel {
    position: absolute;
    left: 12px;
    bottom: 52px;
    max-width: min(280px, calc(100% - 24px));
    width: fit-content;
    margin: 0;
    padding: 10px 12px;
    gap: 8px;
    border-radius: var(--radius-sm);
    background: rgba(36, 36, 36, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .doors-card__btn,
  .kitchens-card__btn,
  .furniture-card__btn {
    display: none;
  }

  .doors-hero__nav,
  .kitchens-hero__nav,
  .furniture-hero__nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 12px;
  }

  .kitchens-hero__tags,
  .furniture-hero__tags,
  .doors-hero__tags {
    display: flex;
  }

  .doors-hero__title,
  .kitchens-hero__title,
  .furniture-hero__title {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 14px;
  }

  .doors-hero__tag,
  .kitchens-hero__tag,
  .furniture-hero__tag {
    font-size: 9px;
    padding: 4px 8px;
  }

  .windows-promo,
  .doors-custom,
  .kitchens-features,
  .product-section--furniture .product-aside-grid--split .feature-card {
    display: none;
  }

  .product-aside-grid--split {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .product-section--furniture .product-aside-grid--split {
    display: contents;
  }

  .product-section--furniture .furniture-hero,
  .product-section--furniture .furniture-aside-materials,
  .product-section--furniture .product-aside-grid--split .feature-card:nth-child(2),
  .product-section--furniture .product-aside-grid--split .feature-card:nth-child(3),
  .product-section--furniture .product-aside-grid--split .feature-card:nth-child(4) {
    grid-column: auto;
    grid-row: auto;
  }

  .product-aside-grid--split .furniture-aside-materials {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
  }

  .product-aside-grid--split .material-card,
  .product-aside-grid--split .feature-card {
    aspect-ratio: 4 / 3;
    height: auto;
  }

  .furniture-materials-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: none;
  }

  .product-aside-grid--dveri {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: auto;
  }

  .doors-finishes__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .doors-finish {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    max-width: 72px;
  }

  .doors-swatch {
    flex: none;
  }

  .doors-finish__name {
    font-size: 11px;
    text-align: center;
    width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .product-aside-grid--okna {
    min-height: auto;
  }

  .process__steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-step {
    border-left: none;
    padding-left: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .contact__fields {
    grid-template-columns: 1fr;
  }

  .footer__inner,
  .footer__inner.layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .footer__social {
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }

  .footer__social-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    height: auto;
  }

  .category-card--okna,
  .category-card--dveri,
  .category-card--kuhni,
  .category-card--mebel {
    grid-column: auto;
    grid-row: auto;
    min-height: 240px;
  }

  .cta-card {
    grid-template-columns: 1fr;
  }

  .cta-card__image {
    height: 180px;
  }

  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-intro__facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-bar {
    grid-template-columns: 1fr;
  }

  .footer__inner,
  .footer__inner.layout {
    grid-template-columns: 1fr;
  }

  .catalog-card__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-card__stat {
    padding: 0;
  }

  .catalog-card__stat:not(:first-child) {
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .process__steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1400px) {
  .stats-card {
    padding: 28px 36px;
  }

  .service-item__icon {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 1920px) {
  :root {
    --fs-hero: clamp(44px, 3.2vw, 64px);
    --fs-display-xl: clamp(34px, 2.6vw, 48px);
    --fs-display-lg: clamp(32px, 2.4vw, 44px);
    --fs-display: clamp(30px, 2.2vw, 42px);
    --fs-display-sm: clamp(26px, 1.9vw, 34px);
    --fs-heading: clamp(30px, 2.4vw, 40px);
    --fs-heading-sm: clamp(20px, 1.2vw, 26px);
    --fs-body-lg: clamp(15px, 0.65vw, 17px);
    --fs-body: clamp(14px, 0.55vw, 16px);
    --fs-body-sm: clamp(13px, 0.45vw, 15px);
    --fs-stat: clamp(32px, 2.6vw, 44px);
  }
}

@media (min-width: 2560px) {
  :root {
    --fs-hero: clamp(56px, 4.5vw, 80px);
    --fs-display-xl: clamp(38px, 3.2vw, 56px);
    --fs-display-lg: clamp(36px, 3vw, 50px);
    --fs-display: clamp(34px, 2.8vw, 46px);
    --fs-display-sm: clamp(30px, 2.4vw, 40px);
    --fs-heading: clamp(34px, 2.8vw, 48px);
    --fs-heading-sm: clamp(22px, 1.4vw, 28px);
    --fs-body-lg: clamp(16px, 0.85vw, 18px);
    --fs-body: clamp(15px, 0.75vw, 17px);
    --fs-body-sm: clamp(14px, 0.65vw, 16px);
    --fs-stat: clamp(36px, 3.2vw, 52px);
  }
}

/* ── Category page (internal) ── */
.page-category {
  padding-bottom: 0;
}

.page-wrap {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.page-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(68vh, 720px);
  height: clamp(480px, 58vh, 720px);
  display: flex;
  align-items: flex-end;
  margin-bottom: var(--section-space-md);
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 12, 12, 0.12) 0%,
    rgba(12, 12, 12, 0.28) 42%,
    rgba(12, 12, 12, 0.72) 100%
  );
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(920px, 100%);
  padding: 40px 28px 44px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.page-hero__crumb {
  font-size: var(--fs-caption);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero__crumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-hero__crumb a:hover {
  color: #fff;
}

.page-hero__crumb-sep {
  margin: 0 0.35em;
  opacity: 0.55;
}

.page-hero__title {
  font-size: clamp(40px, 5vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
}

.page-hero__lead {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
  margin-bottom: 8px;
}

.page-hero__lead p {
  margin: 0 0 0.85em;
}

.page-hero__lead p:last-child {
  margin-bottom: 0;
}

.btn-arrow--light {
  background: #fff;
  color: var(--black);
}

.btn-arrow--light:hover {
  background: #f3f3f3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-arrow--light .btn-arrow__icon {
  background: rgba(0, 0, 0, 0.06);
}

.btn-arrow--light:hover .btn-arrow__icon {
  background: rgba(0, 0, 0, 0.1);
}

.page-intro {
  padding-bottom: var(--section-space);
}

.page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.page-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-intro__copy p {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: #5a5a5a;
  max-width: 40em;
  margin: 0 0 0.85em;
}

.page-intro__copy p:last-child {
  margin-bottom: 0;
}

.page-intro__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
}

.page-intro__fact {
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.page-intro__fact dt {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 6px;
}

.page-intro__fact dd {
  font-size: var(--fs-body-sm);
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.page-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-top: 8px;
  padding-bottom: 28px;
}

.page-section-head__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 10px;
}

.page-section-head__title {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-section-head__desc {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: #5a5a5a;
  max-width: 32em;
}

.page-section-head__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.page-directions {
  padding-bottom: var(--section-space);
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.direction-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.direction-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.direction-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.direction-card:hover .direction-card__media img {
  transform: scale(1.05);
}

.direction-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px 22px;
}

.direction-card__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.3;
}

.direction-card__text {
  font-size: var(--fs-body-sm);
  line-height: 1.5;
  color: #5a5a5a;
}

.page-catalog {
  padding-bottom: var(--section-space);
}

.page-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.catalog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

.catalog-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.catalog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.catalog-card:hover .catalog-card__media img {
  transform: scale(1.04);
}

.catalog-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 24px 28px;
  flex: 1;
}

.catalog-card__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.catalog-card__title {
  font-size: var(--fs-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-top: -4px;
}

.catalog-card__text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #5a5a5a;
  max-width: 38em;
}

.catalog-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.catalog-card__stat {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 0 12px;
  min-width: 0;
}

.catalog-card__stat:first-child {
  padding-left: 0;
}

.catalog-card__stat:not(:first-child) {
  border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.catalog-card__stat-value {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.catalog-card__stat-label {
  font-size: var(--fs-caption);
  line-height: 1.35;
  color: var(--muted);
}

.catalog-card__body .btn-arrow {
  align-self: flex-start;
  margin-top: auto;
}

/* Без блока статистики — зазор до кнопки как у margin-bottom у stats */
.catalog-card__body:not(:has(.catalog-card__stats)) > :nth-last-child(2) {
  margin-bottom: 12px;
}

/* Compact cards — direction template pages */
.page-catalog__grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-catalog__grid--compact .catalog-card__media {
  aspect-ratio: 16 / 10;
}

@media (min-width: 1920px) {
  .page-catalog__grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-catalog__grid--compact .catalog-card__media {
    aspect-ratio: 5 / 4;
  }
}

.page-catalog__grid--compact .catalog-card__body {
  gap: 8px;
  padding: 16px 16px 18px;
}

.page-catalog__grid--compact .catalog-card__title {
  font-size: var(--fs-heading-sm);
  margin-top: 0;
}

.page-catalog__grid--compact .catalog-card__body:not(:has(.catalog-card__stats)) > :nth-last-child(2) {
  margin-bottom: 8px;
}

.page-catalog__grid--compact .catalog-card__stats {
  margin-top: 4px;
  margin-bottom: 16px;
  padding-top: 10px;
}

.page-catalog__grid--compact .catalog-card__stat {
  gap: 2px;
  padding: 0 8px;
}

.page-catalog__grid--compact .catalog-card__stat-value {
  font-size: var(--fs-body);
}

.page-catalog__grid--compact .catalog-card__stat-label {
  font-size: var(--fs-label);
}

.page-benefits {
  padding-bottom: var(--section-space);
}

.page-benefits__panel {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px 40px 44px;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.page-benefits__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.page-benefits__title {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0;
  min-width: 0;
}

.page-benefits__desc {
  font-size: var(--fs-body);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 22em;
  text-align: right;
  margin: 0;
  flex-shrink: 1;
}

.page-benefits__grid {
  display: grid;
  grid-template-columns: repeat(var(--benefit-cols, 4), minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  width: 100%;
  min-width: 0;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 28px 0 0;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
  box-sizing: border-box;
}

.benefit-item:last-child {
  border-right: none;
  padding-right: 0;
}

.benefit-item:not(:first-child) {
  padding-left: 28px;
}

.benefit-item__num {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.benefit-item__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 12px;
}

.benefit-item__text {
  font-size: var(--fs-body-sm);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 28px;
}

.benefit-item__text p {
  margin: 0;
}

.benefit-item__icon {
  display: flex;
  align-items: center;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.45);
}

.benefit-item__icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.page-materials {
  padding-bottom: var(--section-space);
}

.detail-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.detail-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}

.detail-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 2 / 3;
  height: auto;
  background: #e4e4e4;
}

.detail-card__media {
  position: absolute;
  inset: 0;
}

.detail-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(228, 228, 228, 0.97) 0%,
    rgba(228, 228, 228, 0.82) 16%,
    rgba(228, 228, 228, 0.4) 32%,
    rgba(228, 228, 228, 0) 48%
  );
  pointer-events: none;
  z-index: 1;
}

.detail-card__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  height: 128px;
  padding: 0 56px 18px 18px;
}

.detail-card__title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

.detail-card__text {
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: #3f3f3f;
  margin: 0;
  max-width: 18em;
}

.detail-card__btn {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--black);
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.detail-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: center;
  background: #e8e8e8;
  border-radius: var(--radius);
  padding: 26px 28px;
}

.detail-bar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.detail-bar__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--black);
  display: grid;
  place-items: center;
}

.detail-bar__title {
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
}

.detail-bar__text {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: #5a5a5a;
}

.page-projects {
  padding-bottom: var(--section-space);
}

.page-projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

@media (max-width: 1400px) {
  .page-projects__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.page-projects .project-card {
  flex: none;
  width: auto;
  min-width: 0;
}

.page-projects .project-card__image {
  aspect-ratio: 4 / 5;
}

.page-seo {
  padding-bottom: var(--section-space-lg);
}

.page-seo__inner {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px 52px;
}

.page-seo__intro {
  max-width: 42em;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.page-seo__title {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.page-seo__lead {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: #5a5a5a;
  margin: 0;
}

.page-seo__lead p,
.page-seo__block p,
.page-seo__faq-item dd p {
  margin: 0 0 0.85em;
}

.page-seo__lead p:last-child,
.page-seo__block p:last-child,
.page-seo__faq-item dd p:last-child {
  margin-bottom: 0;
}

.page-seo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
  margin-bottom: 40px;
}

.page-seo__heading {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.page-seo__block p,
.page-seo__faq-item dd {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: #5a5a5a;
  margin: 0;
}

.page-seo__faq {
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.page-seo__faq > .page-seo__heading {
  margin-bottom: 20px;
}

.page-seo__faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 32px;
  margin: 0;
}

.page-seo__faq-item dt {
  font-size: var(--fs-body-lg);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}

.page-seo__faq-item dd {
  margin: 0;
}

/* ── Reveal animations ── */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  animation: reveal-up 0.8s var(--ease-out) forwards;
}

.hero .reveal {
  animation: reveal-up 0.8s var(--ease-out) forwards;
}

.hero .reveal--delay-1 { animation-delay: 0.1s; }
.hero .reveal--delay-2 { animation-delay: 0.2s; }
.hero .reveal--delay-3 { animation-delay: 0.3s; }

.reveal--delay-1.is-visible { animation-delay: 0.1s; }
.reveal--delay-2.is-visible { animation-delay: 0.2s; }
.reveal--delay-3.is-visible { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal.is-visible,
  .hero .reveal {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Category page responsive (must stay AFTER page-* base rules) ── */
@media (max-width: 1100px) {
  :root {
    --pad-x: clamp(20px, 3.5vw, 40px);
    --gap: 14px;
  }

  main {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header {
    padding: 12px 20px;
  }

  .page-hero {
    min-height: 420px;
    height: 52vh;
    margin-bottom: var(--section-space-sm);
  }

  .page-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 22px;
  }

  .page-section-head__desc {
    max-width: none;
    text-align: left;
  }

  .page-intro__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .page-intro__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-catalog__grid {
    grid-template-columns: 1fr;
  }

  .page-catalog__grid--compact {
    grid-template-columns: 1fr 1fr;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) {
    grid-template-columns: 1fr 1fr;
  }

  .page-benefits__panel {
    padding: 36px 28px 32px;
  }

  .page-benefits__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 22px;
  }

  .page-benefits__desc {
    text-align: left;
    max-width: none;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item {
    padding: 24px 24px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:not(:first-child) {
    padding-left: 24px;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(n + 3) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(n + 3):not(:first-child) {
    padding-top: 24px;
  }

  .detail-cards,
  .detail-bar {
    grid-template-columns: 1fr 1fr;
  }

  .page-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-seo__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-seo__faq-list {
    grid-template-columns: 1fr 1fr;
  }

  .page-seo__inner {
    padding: 36px 28px 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 16px;
    --gap: 12px;
    --radius: 14px;
    --radius-sm: 12px;
    --header-h: 72px;
  }

  main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header {
    padding: 10px 16px;
  }

  .header__inner {
    grid-template-columns: 1fr auto;
  }

  .logo__img {
    width: 132px;
  }

  .btn-menu {
    display: flex;
    width: 44px;
    height: 44px;
  }

  .header__actions .btn-catalog {
    font-size: 0;
    gap: 0;
    padding: 0;
    width: 44px;
    height: 44px;
    justify-content: center;
  }

  .nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-self: stretch;
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    height: 100dvh;
    margin: 0;
    padding: 16px 28px 28px;
    gap: 0;
    background: var(--white);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.12);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    z-index: 105;
    overflow-y: auto;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .header {
    z-index: 110;
  }

  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 100;
  }

  .page-hero {
    min-height: 340px;
    height: 48vh;
    margin-bottom: 28px;
    border-radius: var(--radius);
  }

  .page-hero__inner {
    padding: 24px 18px 28px;
    gap: 12px;
  }

  .page-hero__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .page-hero__lead {
    font-size: var(--fs-body);
    margin-bottom: 4px;
  }

  .page-intro,
  .page-directions,
  .page-catalog,
  .page-benefits,
  .page-materials,
  .page-projects,
  .page-seo {
    padding-bottom: var(--section-space-sm);
  }

  .page-intro__grid,
  .page-intro__facts,
  .page-catalog__grid,
  .page-benefits__grid:not(.page-benefits__grid--5),
  .page-seo__grid,
  .page-seo__faq-list,
  .detail-cards,
  .detail-bar {
    grid-template-columns: 1fr;
  }

  .page-projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-catalog__grid--compact {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .directions-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-benefits__panel {
    padding: 24px 18px 22px;
  }

  .page-benefits__title {
    font-size: var(--fs-heading);
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item {
    padding: 22px 0 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:not(:first-child) {
    padding-left: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(2n) {
    border-right: none;
    padding-right: 0;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:nth-child(n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 24px;
    padding-top: 22px;
  }

  .page-benefits__grid:not(.page-benefits__grid--5) .benefit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .catalog-card__body {
    padding: 18px 16px 20px;
  }

  .catalog-card__stats {
    margin-bottom: 16px;
  }

  .catalog-card__stat {
    padding: 0 6px;
  }

  .catalog-card__stat:first-child {
    padding-left: 0;
  }

  .catalog-card__stat-value {
    font-size: var(--fs-body-lg);
  }

  .catalog-card__body .btn-arrow {
    width: 100%;
    justify-content: space-between;
  }

  .detail-card {
    aspect-ratio: 3 / 4;
  }

  .detail-bar {
    padding: 18px;
    gap: 16px;
  }

  .page-projects .project-card__image {
    aspect-ratio: 4 / 3;
  }

  .page-seo__inner {
    padding: 24px 18px 28px;
  }

  .page-seo__intro {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .contact {
    margin: 16px 0 0;
    border-radius: var(--radius);
  }

  .contact__inner {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .contact__desc {
    max-width: none;
  }

  .contact__fields {
    grid-template-columns: 1fr;
  }

  .contact__form-panel {
    padding: 20px;
  }

  .footer {
    padding: 40px 16px 32px;
  }

  .footer__inner,
  .footer__inner.layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

@media (max-width: 480px) {
  .directions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-catalog__grid--compact {
    grid-template-columns: 1fr;
  }

  .page-intro__facts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-bar {
    grid-template-columns: 1fr;
  }

  .footer__inner,
  .footer__inner.layout {
    grid-template-columns: 1fr;
  }

  .catalog-card__stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .catalog-card__stat {
    padding: 0;
  }

  .catalog-card__stat:not(:first-child) {
    border-left: none;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
}


/* compact-direction-cards-responsive */
@media (max-width: 1100px) {
  .page-catalog__grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .page-catalog__grid--compact {
    grid-template-columns: 1fr;
  }

  .page-catalog__grid--compact .catalog-card__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .page-catalog__grid--compact .catalog-card__stat:not(:first-child) {
    border-top: none;
    padding-top: 0;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
  }
}


/* ── Layout blocks (ACF-ready page constructor) ── */
.layout-block {
  padding-bottom: var(--section-space);
}

.layout-block--contacts {
  padding-bottom: var(--section-space);
}

.layout-content {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px 52px;
}

.layout-content__title {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 28em;
}

.layout-content__body {
  columns: 2;
  column-gap: 40px;
}

.layout-content__body p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: #5a5a5a;
  margin: 0 0 14px;
  break-inside: avoid;
}

.layout-content__body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .layout-content {
    padding: 28px 20px 32px;
  }

  .layout-content__body {
    columns: 1;
  }
}

.layout-text {
  width: 100%;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px 52px;
  box-sizing: border-box;
}

.layout-text__title {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
  max-width: 28em;
}

.layout-text__body {
  max-width: 100%;
}

.layout-text__body p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: #5a5a5a;
  margin: 0 0 14px;
}

.layout-text__body p:last-child {
  margin-bottom: 0;
}

/* Rich text: headings + lists in WYSIWYG blocks */
:is(
  .layout-text__body,
  .layout-content__body,
  .layout-content-photos__desc,
  .layout-about__extended,
  .layout-about__aside-text,
  .layout-contacts__lead,
  .layout-contacts__form-desc,
  .page-intro__copy,
  .page-seo__lead,
  .page-seo__block,
  .page-seo__faq-item dd,
  .contact__desc,
  .detail-card__text,
  .benefit-item__text
) {
  :is(h1, h2, h3, h4, h5):not(.page-seo__heading) {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 10px;
  }

  h1:not(.page-seo__heading) { font-size: var(--fs-display); }
  h2:not(.page-seo__heading) { font-size: var(--fs-display-sm); }
  h3:not(.page-seo__heading) { font-size: var(--fs-heading); }
  h4:not(.page-seo__heading) { font-size: var(--fs-heading-sm); }
  h5:not(.page-seo__heading) { font-size: var(--fs-body-lg); }

  :is(ul, ol) {
    font-size: var(--fs-body);
    line-height: 1.75;
    color: #5a5a5a;
    margin: 0 0 14px;
    padding-left: 1.5em;
    list-style-position: outside;
  }

  ul { list-style-type: disc; }
  ol { list-style-type: decimal; }

  li {
    margin: 0 0 8px;
    padding-left: 0.35em;
  }

  li:last-child { margin-bottom: 0; }

  li > :is(ul, ol) {
    margin-top: 8px;
    margin-bottom: 0;
  }

  ul ul { list-style-type: circle; }
  ul ul ul { list-style-type: square; }
}

@media (max-width: 768px) {
  .layout-text {
    padding: 28px 20px 32px;
  }
}

.layout-content-photos {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
}

.layout-content-photos__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding-top: 4px;
  height: 100%;
  align-self: stretch;
}

.layout-content-photos__title {
  font-size: var(--fs-heading);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}

.layout-content-photos__desc {
  font-size: var(--fs-body-lg);
  line-height: 1.7;
  color: #5a5a5a;
  max-width: 36em;
}

.layout-content-photos__desc p {
  margin: 0 0 12px;
}

.layout-content-photos__desc p:last-child {
  margin-bottom: 0;
}

.layout-content-photos__text .btn-arrow {
  align-self: flex-start;
  margin-top: auto;
}

.layout-content-photos__grid {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}

.layout-content-photos__grid--1 {
  grid-template-columns: minmax(0, 1fr);
}

.layout-content-photos__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-content-photos__grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.layout-content-photos__item {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e8e8;
  aspect-ratio: 4 / 5;
  cursor: zoom-in;
}

.layout-content-photos__grid--1 .layout-content-photos__item {
  aspect-ratio: auto;
  width: 100%;
  height: 60svh;
  max-height: 60svh;
}

.layout-content-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.layout-content-photos__item:hover img {
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  .layout-content-photos {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .layout-content-photos__grid--3 {
    gap: 10px;
  }

  .layout-content-photos__grid--2 {
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .layout-content-photos__grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-content-photos__grid--3 .layout-content-photos__item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 10;
  }
}

.layout-contacts {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 40px 44px;
}

.layout-contacts__intro {
  max-width: 40em;
  margin-bottom: 32px;
}

.layout-contacts__title {
  font-size: var(--fs-display-sm);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 12px;
}

.layout-contacts__lead {
  font-size: var(--fs-body-lg);
  line-height: 1.65;
  color: #5a5a5a;
  margin: 0;
}

.layout-contacts__lead p {
  margin: 0 0 0.85em;
}

.layout-contacts__lead p:last-child {
  margin-bottom: 0;
}

.layout-contacts__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 36px;
}

.layout-contacts__info {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 8px 8px 8px 0;
}

.layout-contacts__item-label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.layout-contacts__item-value {
  display: block;
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

a.layout-contacts__item-value:hover {
  opacity: 0.65;
}

.layout-contacts__item-note {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: var(--muted);
}

.layout-contacts__map {
  border-radius: var(--radius-sm);
  overflow: hidden;
  min-height: 360px;
  background: #e8e8e8;
}

.layout-contacts__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}

.layout-contacts__form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.layout-contacts__form-intro {
  padding-top: 4px;
}

.layout-contacts__form-title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 12px;
}

.layout-contacts__form-desc {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: #5a5a5a;
  margin: 0;
  max-width: 28em;
}

.layout-contacts__form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.layout-contacts__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.layout-contacts__field {
  display: block;
  min-width: 0;
}

.layout-contacts__field--wide {
  grid-column: 1 / -1;
}

.layout-contacts__field input,
.layout-contacts__field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  outline: none;
  resize: vertical;
  transition: border-color var(--duration) var(--ease-out), background var(--duration) var(--ease-out);
}

.layout-contacts__field textarea {
  min-height: 120px;
  resize: none;
}

.layout-contacts__field input:focus,
.layout-contacts__field textarea:focus {
  border-color: rgba(0, 0, 0, 0.35);
  background: #fff;
}

.layout-contacts__field input::placeholder,
.layout-contacts__field textarea::placeholder {
  color: var(--muted);
}

.layout-contacts__form .btn-arrow {
  align-self: flex-start;
  width: auto;
}

/* Consent checkbox — shared for all forms */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  font-size: var(--fs-body-sm);
  line-height: 1.45;
  color: #5a5a5a;
  cursor: pointer;
  user-select: none;
}

.form-consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--black);
  cursor: pointer;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  opacity: 0.7;
}

.form-consent--light {
  color: rgba(255, 255, 255, 0.7);
  margin: 4px 0 0;
}

.form-consent--light a {
  color: #fff;
}

/* About layout — строгая сетка 50/50, одинаковый gutter
   1) [label+title+aside] | [principles]
   2) stats на всю ширину
   3) [extended] | [photo в высоту текста]
   4) directions */
.layout-about {
  --about-gap: 40px;
  --about-row: var(--section-space);
  display: flex;
  flex-direction: column;
  gap: var(--about-row);
}

.layout-about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--about-gap);
  align-items: stretch;
}

.layout-about__col {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.layout-about__label {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.layout-about__title {
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.layout-about__aside {
  display: flex;
  flex-direction: column;
}

.layout-about__aside .btn-arrow {
  align-self: flex-start;
}

.layout-about__aside-text,
.layout-about__principle-text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #5a5a5a;
}

.layout-about__aside-text {
  margin: 0 0 12px;
}

.layout-about__aside-text p {
  margin: 0 0 0.85em;
}

.layout-about__aside-text p:last-child {
  margin-bottom: 0;
}

.layout-about__aside-text:last-of-type {
  margin-bottom: 20px;
}

.layout-about__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 28px 0;
  background: var(--dark);
  border-radius: var(--radius);
  color: #fff;
}

.layout-about__stat {
  padding: 0 var(--about-gap);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.layout-about__stat:last-child {
  border-right: none;
}

.layout-about__stat dt {
  font-size: clamp(36px, 3.8vw, 60px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 10px;
}

.layout-about__stat dd {
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  color: var(--dark-muted);
  margin: 0;
}

.layout-about__extended {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.layout-about__heading {
  font-size: clamp(32px, 3.6vw, 56px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.layout-about__extended p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: #5a5a5a;
  margin: 0;
}

.layout-about__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: #e4e4e4;
  height: 100%;
  min-height: 240px;
}

.layout-about__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Photo follows text column height on wide screens */
.layout-about__row--story .layout-about__col--media {
  position: relative;
  min-height: 280px;
}

.layout-about__row--story .layout-about__photo {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}

.layout-about__row--story .layout-about__photo img {
  position: absolute;
  inset: 0;
}

.layout-about__principles {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  height: 100%;
  counter-reset: about-principle;
}

.layout-about__principle {
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.layout-about__principle:first-child {
  padding-top: 0;
  border-top: none;
}

.layout-about__principle:last-child {
  padding-bottom: 0;
}

.layout-about__principle-num {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}

.layout-about__principle-num::before {
  counter-increment: about-principle;
  content: counter(about-principle, decimal-leading-zero);
}

.layout-about__principle-title {
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.layout-about__principle-text {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #5a5a5a;
  margin: 0;
}

.layout-about__principle-text p {
  margin: 0 0 0.85em;
}

.layout-about__principle-text p:last-child {
  margin-bottom: 0;
}

.layout-about__directions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.layout-about__directions .category-card {
  grid-column: auto;
  grid-row: auto;
  height: auto;
  aspect-ratio: 3 / 4;
  min-height: 280px;
}

.layout-about__directions .category-card__title {
  font-size: var(--fs-display-sm);
}

.layout-about__directions .category-card__desc {
  font-size: var(--fs-body-sm);
  width: 90%;
  max-width: 90%;
  padding-bottom: 4px;
  padding-right: 36px;
}

.layout-about__directions .category-card__content {
  padding: 18px 16px;
}

.layout-about__directions .category-card__btn {
  bottom: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
}

.layout-about__directions .category-card__num {
  margin-bottom: 10px;
}

.page-benefits__grid--3 {
  --benefit-cols: 3;
}

.page-benefits__grid--5 {
  --benefit-cols: 5;
}

.page-benefits__grid--5 .benefit-item {
  padding: 0 16px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-top: none;
}

.page-benefits__grid--5 .benefit-item:not(:first-child) {
  padding-left: 16px;
}

.page-benefits__grid--5 .benefit-item:last-child {
  border-right: none;
  padding-right: 0;
}

.projects-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.projects-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.projects-filter__btn {
  font: inherit;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 100px;
  padding: 10px 18px;
  cursor: pointer;
  transition: color var(--duration) var(--ease-out), background var(--duration) var(--ease-out), border-color var(--duration) var(--ease-out);
}

.projects-filter__btn:hover {
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.28);
}

.projects-filter__btn.is-active {
  color: #fff;
  background: var(--black);
  border-color: var(--black);
}

.projects-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.projects-gallery__item {
  min-width: 0;
}

.projects-gallery__item.is-hidden {
  display: none;
}

.projects-gallery__link {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e4e4e4;
  cursor: zoom-in;
}

.projects-gallery__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.projects-gallery__item:hover .projects-gallery__link img {
  transform: scale(1.04);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  justify-items: center;
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  padding: max(56px, calc(12px + env(safe-area-inset-top, 0px))) 0 env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), visibility 0.25s var(--ease-out);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0 72px 12px;
  box-sizing: border-box;
}

.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close {
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  z-index: 2;
  background: #fff;
  color: #111;
}

.lightbox__close:hover {
  background: #f0f0f0;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  z-index: 2;
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__footer {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 8px 20px max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  box-sizing: border-box;
}

.lightbox__counter {
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.04em;
  text-align: center;
}

.lightbox__thumbs {
  display: flex;
  justify-content: safe center;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding: 4px 0 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lightbox__thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox__thumb {
  flex: 0 0 auto;
  width: 112px;
  height: 84px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox__thumb:hover {
  opacity: 0.85;
}

.lightbox__thumb.is-active {
  opacity: 1;
  border-color: #fff;
}

.lightbox--single .lightbox__prev,
.lightbox--single .lightbox__next,
.lightbox--single .lightbox__thumbs {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox {
    padding-top: max(52px, calc(8px + env(safe-area-inset-top, 0px)));
  }

  .lightbox__stage {
    padding: 0 48px 8px;
  }

  .lightbox__footer {
    padding: 4px 12px max(12px, env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
  }

  .lightbox__prev {
    left: 6px;
  }

  .lightbox__next {
    right: 6px;
  }

  .lightbox__close {
    top: max(8px, env(safe-area-inset-top, 0px));
    right: max(8px, env(safe-area-inset-right, 0px));
    width: 40px;
    height: 40px;
  }

  .lightbox__thumb {
    width: 64px;
    height: 48px;
    border-radius: 8px;
  }
}

@media (max-width: 1400px) {
  .projects-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-benefits__grid--5 {
    --benefit-cols: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-benefits__grid--5 .benefit-item {
    padding: 0 20px 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    border-top: none;
  }

  .page-benefits__grid--5 .benefit-item:nth-child(3n + 1) {
    padding-left: 0;
  }

  .page-benefits__grid--5 .benefit-item:not(:nth-child(3n + 1)) {
    padding-left: 20px;
  }

  .page-benefits__grid--5 .benefit-item:nth-child(3n) {
    border-right: none;
    padding-right: 0;
  }

  .page-benefits__grid--5 .benefit-item:nth-child(n + 4) {
    border-bottom: none;
    padding-bottom: 0;
    padding-top: 28px;
  }

  .page-benefits__grid--5 .benefit-item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

@media (max-width: 1100px) {
  .layout-about {
    --about-gap: 28px;
    --about-row: var(--section-space-md);
  }

  .layout-about__row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .layout-about__row--story .layout-about__col--media {
    position: static;
    min-height: 0;
  }

  .layout-about__row--story .layout-about__photo {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }

  .layout-about__row--story .layout-about__photo img {
    position: absolute;
    inset: 0;
  }

  .layout-about__title,
  .layout-about__heading {
    font-size: clamp(28px, 5.5vw, 44px);
  }

  .layout-about__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px 0;
  }

  .layout-about__stat {
    padding: 12px var(--about-gap);
  }

  .layout-about__stat:nth-child(2) {
    border-right: none;
  }

  .layout-about__stat:nth-child(1),
  .layout-about__stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .layout-about__stat dt {
    font-size: clamp(32px, 5.5vw, 48px);
  }

  .layout-about__directions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout-about__directions .category-card {
    min-height: 240px;
  }

  .layout-contacts {
    padding: 32px 28px 36px;
  }

  .layout-contacts__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .layout-contacts__form-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .layout-contacts__info {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }

  .layout-contacts__map {
    min-height: 300px;
  }

  .layout-contacts__map iframe {
    min-height: 300px;
  }

  .page-benefits__grid--5 {
    --benefit-cols: 3;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  :root {
    --section-space: 64px;
    --section-space-lg: 80px;
    --section-space-md: 56px;
    --section-space-sm: 48px;
  }

  .layout-block {
    padding-bottom: var(--section-space-sm);
  }

  .layout-about {
    --about-gap: 20px;
    --about-row: var(--section-space-sm);
  }

  .layout-about__directions {
    grid-template-columns: 1fr;
  }

  .layout-about__directions .category-card {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }

  .layout-about__stat dt {
    font-size: clamp(30px, 9vw, 42px);
  }

  .layout-about__photo {
    min-height: 200px;
  }

  .layout-contacts {
    padding: 24px 20px 28px;
  }

  .layout-contacts__info {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .layout-contacts__fields {
    grid-template-columns: 1fr;
  }

  .layout-contacts__map,
  .layout-contacts__map iframe {
    min-height: 260px;
  }

  .page-benefits__grid--5 {
    --benefit-cols: 1;
    grid-template-columns: 1fr;
  }

  .page-benefits__grid--5 .benefit-item {
    padding: 20px 0;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .page-benefits__grid--5 .benefit-item:not(:first-child) {
    padding-left: 0;
  }

  .page-benefits__grid--5 .benefit-item:first-child {
    padding-top: 0;
  }

  .page-benefits__grid--5 .benefit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .page-benefits__grid--5 .benefit-item__num {
    margin-bottom: 12px;
  }

  .page-benefits__grid--5 .benefit-item__title {
    margin-bottom: 8px;
  }

  .page-benefits__grid--5 .benefit-item__text {
    margin-bottom: 0;
  }

  .benefit-item__icon {
    margin-top: 16px;
  }

  .projects-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects-gallery__link {
    aspect-ratio: 4 / 3;
  }
}

/* Lead form modal */
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}

.lead-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 12, 0);
  transition: background-color 0.35s var(--ease-out);
}

/* Blur must not sit under an opacity fade — browsers delay it otherwise. */
.lead-modal.is-open .lead-modal__backdrop {
  background: rgba(12, 12, 12, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 36px 32px 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
}

.lead-modal.is-open .lead-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.lead-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.lead-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.lead-modal__header {
  margin-bottom: 28px;
  padding-right: 36px;
}

.lead-modal__eyebrow {
  margin: 0 0 10px;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
}

.lead-modal__title {
  margin: 0 0 10px;
  font-size: var(--fs-heading-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead-modal__desc {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--muted);
}

.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead-modal__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lead-modal__field--wide {
  grid-column: 1 / -1;
}

.lead-modal__field input,
.lead-modal__field textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: #f7f7f7;
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  font-family: inherit;
  resize: vertical;
}

.lead-modal__field textarea {
  min-height: 96px;
}

.lead-modal__field input::placeholder,
.lead-modal__field textarea::placeholder {
  color: var(--light);
}

.lead-modal__field input:focus,
.lead-modal__field textarea:focus {
  border-color: rgba(0, 0, 0, 0.35);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.lead-modal__form .btn-arrow {
  align-self: flex-start;
  margin-top: 4px;
}

.lead-modal__form .form-consent {
  margin: 0;
}

body.lead-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .lead-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .lead-modal__dialog {
    width: 100%;
    max-height: 92vh;
    padding: 28px 20px 24px;
    border-radius: 20px 20px 12px 12px;
    transform: translateY(40px);
  }

  .lead-modal.is-open .lead-modal__dialog {
    transform: translateY(0);
  }

  .lead-modal__fields {
    grid-template-columns: 1fr;
  }
}
