@import url('../fonts/onest.css');

/* ============================================================
   Чистый поток
   Белое поле, тёплый песочный, глубокий изумрудный.
   Фотографии показываются как есть: без фильтров, тонирования
   и заливок поверх кадра.
   ============================================================ */

:root {
  --white:        #FFFFFF;
  --sand:         #F4F1E8;
  --sand-deep:    #EAE5D6;
  --emerald:      #075543;
  --emerald-dark: #0B3931;
  --emerald-lift: #0A6B53;
  --mint:         #CFE3D2;

  --ink:          #1B2C24;
  --ink-soft:     #5D6D64;
  --ink-faint:    #9AA69E;
  --on-dark:      #F1F5F0;
  --on-dark-soft: #A9C0B4;

  --line:         #E3E1D7;
  --line-dark:    rgba(255, 255, 255, .18);

  --shell:        1280px;
  --gutter:       clamp(20px, 5vw, 72px);
  --section-y:    clamp(22px, 1.9vw, 36px);

  --t-display:    clamp(2.35rem, 4vw, 3.6rem);
  --t-h2:         clamp(2rem, 3.4vw, 3.1rem);
  --t-body:       clamp(1rem, 1.1vw, 1.125rem);
  --t-small:      clamp(.875rem, .95vw, .9375rem);
  --t-micro:      .6875rem;

  --radius:       18px;
  --radius-lg:    28px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

/* ---------- сброс ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--emerald); text-decoration: none; }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 3px; }
.section--emerald :focus-visible, .finale__aside :focus-visible { outline-color: var(--mint); }

.shell {
  width: 100%;
  max-width: calc(var(--shell) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--emerald); color: var(--white);
  padding: 12px 20px; border-radius: 10px; transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 16px; color: var(--white); }

/* ---------- типографика ---------- */

.display {
  font-size: var(--t-display);
  font-weight: 700; line-height: 1.04; letter-spacing: -.035em;
}
.display span { display: block; }

.h2 {
  font-size: var(--t-h2);
  font-weight: 700; line-height: 1.06; letter-spacing: -.032em;
}
.h2 span { display: block; }

.accent { color: var(--emerald); }
.accent--light { color: var(--mint); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--emerald);
}
.eyebrow--dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
.eyebrow--light { color: var(--on-dark-soft); }

.note { font-size: var(--t-small); line-height: 1.55; color: var(--ink-faint); text-wrap: pretty; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--emerald); color: var(--white);
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  transition: background .35s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--emerald-lift); color: var(--white); transform: translateY(-1px); }
.btn:active { transform: none; }

.btn--lg { min-height: 62px; padding: 0 10px 0 30px; font-size: 1rem; gap: 20px; }
/* главная кнопка формы — крупнее остальных */
.form .btn--lg { min-height: 76px; padding-left: 38px; font-size: 1.125rem; letter-spacing: -.01em; }
.btn__circle {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  transition: transform .35s var(--ease);
}
.btn:hover .btn__circle { transform: rotate(45deg); }
.btn--lg:not(:has(.btn__circle)) { padding-right: 30px; }

.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); }

.btn--light { background: var(--mint); color: var(--emerald-dark); }
.btn--light:hover { background: var(--white); color: var(--emerald-dark); }
.btn--light .btn__circle { background: rgba(11, 57, 49, .12); }

.btn--block { width: 100%; justify-content: space-between; }

.link-arrow {
  appearance: none; background: none; border: 0; padding: 0 0 8px; cursor: pointer; font: inherit;
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  min-height: 44px; font-weight: 600; font-size: .9375rem;
  color: var(--emerald);
  border-bottom: 1px solid currentColor;
  transition: gap .25s var(--ease);
}
.link-arrow:hover { gap: 18px; }
.ico-arrow { flex: none; }

/* ---------- шапка ---------- */

.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.header[data-stuck='true'] { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: clamp(16px, 3vw, 44px); min-height: 74px; }

.brand { flex: none; }
.brand img { width: clamp(210px, 16.5vw, 252px); }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); font-size: .9375rem; font-weight: 500;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 1.5px;
  background: var(--emerald); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link[aria-current='true'] { color: var(--emerald); }
.nav__link:hover::after, .nav__link[aria-current='true']::after { transform: scaleX(1); }

.header__aside { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); flex: none; }
.header__phone { color: var(--ink); font-weight: 600; white-space: nowrap; letter-spacing: -.02em; }
.header__phone:hover { color: var(--emerald); }
.header__cta { min-height: 48px; }

.burger {
  display: none; width: 46px; height: 46px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.burger__bars { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.burger__bars::before, .burger__bars::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease);
}
.burger__bars::before { top: -6px; }
.burger__bars::after { top: 6px; }
.burger[aria-expanded='true'] .burger__bars { background: transparent; }
.burger[aria-expanded='true'] .burger__bars::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mnav { display: none; border-top: 1px solid var(--line); background: var(--white); }
.mnav[data-open='true'] { display: block; }
.mnav__list { padding: 8px 0 20px; }
.mnav__link {
  display: flex; align-items: center; min-height: 56px;
  font-size: 1.25rem; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mnav__foot { display: grid; gap: 10px; padding-bottom: 26px; }

/* ---------- каркас секции ---------- */

.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--emerald { background: var(--emerald-dark); color: var(--on-dark); }

.section__tag {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: clamp(16px, 1.8vw, 24px);
}
.section__tag-num { color: var(--emerald); }
.section__tag-num::after { content: ' /'; color: var(--ink-faint); }
.section--emerald .section__tag { color: var(--on-dark-soft); }
.section--emerald .section__tag-num { color: var(--mint); }
.section--emerald .section__tag-num::after { color: rgba(241, 245, 240, .35); }

.section__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  margin-top: clamp(14px, 1.4vw, 20px);
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-faint);
}
.section--emerald .section__foot { color: rgba(241, 245, 240, .42); }

/* заголовок слева, короткий лид справа */
.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end; gap: clamp(20px, 3vw, 56px);
  margin-bottom: clamp(10px, 1.1vw, 15px);
}
.split-head__lead {
  justify-self: end; text-align: right; max-width: 34ch;
  color: var(--ink-soft); line-height: 1.6;
}
.section--emerald .split-head__lead { color: var(--on-dark-soft); }
.split-head--compare { align-items: center; }
.split-head--compare .link-arrow { justify-self: end; align-self: center; }

/* ============================================================
   01 — первый экран
   ============================================================ */

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 44px);
  padding-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
}

.hero__copy {
  display: grid; align-content: center; gap: clamp(18px, 2vw, 28px);
  padding-block: clamp(26px, 3vw, 44px);
  max-width: 34rem;
}
.hero__lead { color: var(--ink-soft); font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); line-height: 1.6; }
.hero__actions { margin-top: 2px; }
.hero__note { font-size: var(--t-small); color: var(--ink-faint); margin-top: -2px; }

.hero__fact {
  display: flex; align-items: center; gap: 18px;
  margin-top: clamp(10px, 1.6vw, 22px);
}
.hero__fact b {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 700;
  letter-spacing: -.04em; line-height: 1; color: var(--emerald);
}
.hero__fact span {
  font-size: var(--t-small); color: var(--ink-soft); line-height: 1.35;
  padding-left: 18px; border-left: 1px solid var(--line);
}

/* единственный выразительный изгиб на сайте */
.hero__figure {
  position: relative; overflow: hidden;
  border-radius: clamp(90px, 13vw, 200px) 0 0 clamp(90px, 13vw, 200px) / 50% 0 0 50%;
  background: var(--sand);
  min-height: clamp(320px, 40vw, 560px);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; display: block; }

/* Станция «скрыта», потом раскрывается, и больше не закрывается.
   Снизу — всегда чёткое фото целиком (ничего не вырезается и не пропадает).
   Сверху — та же самая картинка, размытая, играет роль «непрозрачной земли»:
   она растворяется один раз и открывает станцию. Никакой перерисовки —
   только обработка (blur) того же кадра, без нового содержимого. */
.hero__reveal { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero__reveal img { position: absolute; inset: 0; }
.hero__veil {
  filter: blur(26px) saturate(0.9);
  transform: scale(1.12);   /* прячет размытую кромку кадра */
}
@keyframes heroVeilFade {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.js .hero__veil {
  animation: heroVeilFade 1.1s var(--ease) 1.3s both;
}

.hero__foot {
  max-width: calc(var(--shell) + var(--gutter) * 2); margin-inline: auto;
  padding: 14px var(--gutter) 0;
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.hero__foot span { display: inline-flex; align-items: center; gap: 12px; }

/* ============================================================
   02 — участок и монтаж
   ============================================================ */

.ground {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: stretch;
}

.shot { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 4% 58%; }
/* Кадр второго экрана оставляем чётким: без затухания по нижнему краю. */

.ground__side { display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 2.4vw, 32px); }
.points { display: grid; }
.point {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 6px 16px;
  padding-block: clamp(14px, 1.7vw, 22px);
  border-top: 1px solid var(--line);
}
.point:first-child { border-top: 0; padding-top: 0; }
.point__n { font-size: var(--t-micro); font-weight: 600; color: var(--ink-faint); padding-top: 9px; letter-spacing: .1em; }
.point__title { font-size: clamp(1.25rem, 1.8vw, 1.625rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.15; }
.point__title span { display: block; }
.point__text { grid-column: 2; color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; text-wrap: pretty; }

/* ============================================================
   03 — выбор станции
   ============================================================ */

.tabs { display: flex; flex-wrap: wrap; gap: clamp(18px, 3vw, 46px); border-bottom: 1px solid var(--line); }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer;
  position: relative; display: inline-flex; align-items: flex-start; gap: 7px;
  min-height: 48px; padding: 0 0 12px;
  font-size: clamp(1.0625rem, 1.35vw, 1.25rem); font-weight: 600; letter-spacing: -.02em;
  color: var(--ink-faint);
  transition: color .3s var(--ease);
}
.tab i { font-style: normal; font-size: var(--t-micro); font-weight: 600; opacity: .7; letter-spacing: .08em; }
.tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--emerald); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected='true'] { color: var(--emerald); }
.tab[aria-selected='true']::after { transform: scaleX(1); }

.product {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  padding-top: clamp(4px, .7vw, 10px);
}
.product__body { display: grid; gap: 8px; align-content: center; justify-items: start; }
.product__purpose { font-size: var(--t-small); color: var(--ink-soft); }
.product__name { font-size: clamp(2rem, 3vw, 2.85rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.product__short { color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }
.product__short span { display: block; }

.specs { display: flex; gap: clamp(26px, 3vw, 50px); margin-top: 2px; }
.specs dd { font-size: clamp(1.4rem, 2vw, 1.875rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.specs dt { font-size: var(--t-small); color: var(--ink-soft); margin-top: 1px; }

.product__price { display: grid; gap: 3px; margin-top: 6px; }
.product__price-eyebrow {
  font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.product__price b {
  font-size: clamp(1.4rem, 2vw, 1.875rem); font-weight: 600; letter-spacing: -.03em; color: var(--ink);
}

/* товар без карточки: крупно, на песочном фоне, с выходом к правому краю */
.product__figure { position: relative; margin-right: calc(var(--gutter) * -1); }
.product__figure img { display: block; }
.product__figure img, .stage__figure img { transition: opacity .35s var(--ease); }
.product__figure[data-swapping='true'] img,
.stage__figure[data-swapping='true'] img { opacity: 0; }
/* Рендеры линеек — с прозрачным фоном и в общем кадре, поэтому белой плашки
   на песочной секции нет и растворять маской больше нечего. Все три занимают
   одинаковое место: текст и кнопка слева не сдвигаются при переключении. */
.product__figure img { width: 100%; height: auto; max-width: min(100%, 700px); margin-left: auto; }
.product__figure figcaption {
  margin-top: 6px; padding-right: var(--gutter);
  font-size: var(--t-small); color: var(--ink-faint); text-align: right;
}

.stations__foot { display: grid; gap: 8px; margin-top: clamp(8px, 1.1vw, 16px); }
.disclosures { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 4vw, 64px); }
.disclosures .disclosure[open] { grid-column: 1 / -1; }
.compare { border-top: 1px solid var(--line); padding-top: 24px; }

.disclosure { border-top: 1px solid var(--line); }
.disclosure > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; font-weight: 600; font-size: .9375rem; cursor: pointer; list-style: none;
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure__sign { flex: none; width: 18px; height: 18px; position: relative; }
.disclosure__sign::before, .disclosure__sign::after {
  content: ''; position: absolute; inset: 8px 0 auto; height: 2px; background: currentColor;
  opacity: .55; border-radius: 2px;
}
.disclosure__sign::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.disclosure[open] .disclosure__sign::after { transform: rotate(0); }
.disclosure__body { padding-bottom: 26px; display: grid; gap: 14px; }
.disclosure__sub { font-size: 1rem; font-weight: 600; margin-top: 14px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 520px; }
table.data th, table.data td {
  text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data th {
  font-weight: 600; color: var(--ink-soft); font-size: var(--t-micro);
  letter-spacing: .1em; text-transform: uppercase;
}
table.data td:last-child { font-weight: 600; }

/* ============================================================
   04 — как проходят работы
   ============================================================ */

.steptabs { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-dark); }
.steptab {
  appearance: none; background: none; border: 0; cursor: pointer;
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 0 clamp(20px, 4vw, 64px) 14px 0;
  color: var(--on-dark-soft); font-size: .9375rem; font-weight: 500; letter-spacing: -.01em;
  transition: color .3s var(--ease);
}
.steptab i { font-style: normal; font-size: var(--t-micro); opacity: .65; letter-spacing: .1em; }
.steptab::after {
  content: ''; position: absolute; left: 0; right: clamp(20px, 4vw, 64px); bottom: -1px; height: 2px;
  background: var(--white); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.steptab:hover { color: var(--on-dark); }
.steptab[aria-selected='true'] { color: var(--white); }
.steptab[aria-selected='true']::after { transform: scaleX(1); }

.stage {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding-top: clamp(18px, 2.2vw, 32px);
}
.stage__body { display: grid; gap: 16px; align-content: center; justify-items: start; }
.stage__num {
  font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 600; line-height: 1;
  letter-spacing: -.04em; color: rgba(207, 227, 210, .5);
}
.stage__title { font-size: clamp(1.5rem, 2.3vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stage__title span { display: block; }
/* Высота абзаца фиксирована по самому длинному этапу: заголовок, текст и кнопка
   стоят на одном месте при переключении вкладок, ничто не прыгает. */
.stage__text {
  color: var(--on-dark-soft); max-width: 42ch; line-height: 1.6;
  font-size: clamp(1rem, 1.2vw, 1.0625rem);
  min-height: calc(1.6em * 4);
}
.stage__body .btn { margin-top: 6px; }

.stage__figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.stage__figure img { width: 100%; aspect-ratio: 16 / 9.4; object-fit: cover; }
/* Нижний край кадра мягко уходит в цвет секции, без резкой границы.
   Верх и середина фотографии не тронуты. */
.stage__figure::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 57, 49, 0) 54%, rgba(11, 57, 49, .58) 78%, rgba(11, 57, 49, .94) 100%),
    /* общее лёгкое затемнение, чтобы светлые кадры не выбивались из изумрудной секции */
    linear-gradient(rgba(6, 34, 28, .2), rgba(6, 34, 28, .2));
  pointer-events: none;
}
/* подпись — узкая полоса по нижнему краю, кадр остаётся нетронутым */
.stage__figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 46px 22px 16px;
  color: rgba(255, 255, 255, .94); font-size: var(--t-small);
}

/* Мобильный список этапов: всё видно сразу, без клика по вкладкам или раскрытию. */
.stages-list { display: none; }

/* ============================================================
   05 — заявка
   ============================================================ */

.finale {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  /* ровно один экран под шапкой; фото — фон колонки, поэтому ширина
     больше не тянет высоту вверх на широких мониторах */
  min-height: min(calc(100svh - 68px), 880px);
}

/* Фотография — фон всей колонки, как на утверждённом макете: заголовок сверху,
   контакт снизу, кадр не режется отдельной полосой и не добавляет высоты секции. */
.finale__aside {
  --aside-pad-left: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  --aside-pad-right: clamp(28px, 4vw, 64px);
  position: relative; overflow: hidden;
  background: var(--emerald-dark); color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(16px, 1.8vw, 24px);
  padding: var(--section-y) var(--aside-pad-right) var(--section-y) var(--aside-pad-left);
}
.finale__media { position: absolute; inset: 0; z-index: 0; }
.finale__aside-inner, .finale__contact { position: relative; z-index: 1; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 62%; display: block; }
/* Затемнение только там, где лежит текст. Середина и правая часть кадра —
   дом, газон, люки — остаются без заливки, цвет фотографии не меняется. */
.finale__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 28, 20, .80) 0%, rgba(4, 28, 20, .40) 30%, rgba(4, 28, 20, 0) 54%),
    linear-gradient(0deg, rgba(11, 57, 49, .96) 0%, rgba(11, 57, 49, .62) 14%, rgba(9, 44, 36, .24) 30%, rgba(9, 44, 36, 0) 46%),
    linear-gradient(90deg, rgba(4, 28, 20, .46) 0%, rgba(4, 28, 20, .16) 46%, rgba(4, 28, 20, 0) 72%);
}
.finale__aside-inner { display: grid; gap: clamp(10px, 1.2vw, 16px); }
.finale__aside .h2 { font-size: clamp(2.3rem, 3.6vw, 3.5rem); line-height: 1.04; }
.finale__aside .section__tag { color: var(--on-dark-soft); }
.finale__aside .section__tag-num { color: var(--mint); }
.finale__aside .section__tag-num::after { color: rgba(241, 245, 240, .35); }
.finale__sub { color: rgba(255, 255, 255, .9); line-height: 1.6; }
.finale__contact { display: grid; gap: 6px; margin-top: auto; padding-top: clamp(24px, 4vw, 56px); }
.finale__aside .eyebrow--light, .finale__aside .eyebrow { color: rgba(255, 255, 255, .78); }
.finale__phone {
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.035em; color: var(--white);
}
.finale__phone:hover { color: var(--mint); }
.finale__person { font-size: var(--t-small); color: rgba(255, 255, 255, .8); }

.finale__main {
  background: var(--white);
  padding: var(--section-y) max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)))
           var(--section-y) clamp(28px, 4vw, 64px);
  /* форма стоит по центру колонки: сверху и снизу остаётся поровну воздуха */
  display: flex; flex-direction: column; justify-content: center;
}
.finale__main-inner { display: grid; align-content: start; gap: 10px; max-width: 34rem; width: 100%; }

.form__title { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 700; letter-spacing: -.032em; line-height: 1.08; }
.form__title span { display: block; }
.form__sub { color: var(--ink-soft); line-height: 1.6; }

.form { display: grid; gap: 10px; margin-top: clamp(4px, .8vw, 8px); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; }
.field__label { font-size: var(--t-small); color: var(--ink-soft); }
.field__hint { color: var(--ink-faint); }

/* поля с подчёркиванием, без рамок-коробок */
.control {
  width: 100%; min-height: 44px; padding: 9px 0;
  background: transparent; color: var(--ink);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  font-size: 1rem;
  transition: border-color .25s var(--ease);
}
.control::placeholder { color: var(--ink-faint); }
.control:hover { border-bottom-color: var(--ink-faint); }
.control:focus { outline: none; border-bottom-color: var(--emerald); border-bottom-width: 2px; padding-bottom: 9px; }
textarea.control { min-height: 88px; resize: vertical; line-height: 1.5; }
select.control {
  appearance: none; padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='8' fill='none'%3E%3Cpath d='M1 1l5.5 5.5L12 1' stroke='%235D6D64' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center;
}

.field[data-invalid='true'] .control { border-bottom-color: #B4413A; border-bottom-width: 2px; }
.field__error { font-size: var(--t-small); color: #B4413A; }

.comment-toggle {
  appearance: none; background: none; border: 0; cursor: pointer; font: inherit;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; min-height: 46px; padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
  color: var(--emerald); font-weight: 600; font-size: .9375rem;
}
.comment-toggle span { font-size: 1.125rem; line-height: 1; }

.consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; }
.consent input {
  appearance: none; width: 20px; height: 20px; margin: 2px 0 0;
  border: 1px solid var(--line); border-radius: 5px; background: var(--white); cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.consent input:hover { border-color: var(--ink-faint); }
.consent input:checked {
  background: var(--emerald) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' fill='none'%3E%3Cpath d='M1 4.6l3.3 3.3L11 1.2' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
  border-color: var(--emerald);
}
.consent__text { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.5; }
.consent__text a { text-decoration: underline; text-underline-offset: 3px; }
.consent .field__error { grid-column: 1 / -1; }
.consent[data-invalid='true'] input { border-color: #B4413A; }


.form-result { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); background: var(--sand); }
.form-result[data-kind='error'] { background: #FBEEEC; }
.form-result__title { font-weight: 700; font-size: 1.125rem; }
.form-result__text { font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- появление ---------- */

.js [data-reveal] {
  opacity: 0; transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal][data-shown='true'] { opacity: 1; transform: none; }

/* ============================================================
   адаптация
   ============================================================ */

@media (max-width: 1100px) {
  .hero__grid { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
  .split-head { grid-template-columns: minmax(0, 1fr); }
  .split-head__lead { justify-self: start; text-align: left; }
  .split-head--compare { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .split-head--compare .link-arrow { justify-self: end; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  .header__inner { min-height: 64px; }
  .nav, .header__phone, .header__cta { display: none; }
  .header__aside { margin-left: auto; }
  .burger { display: inline-flex; }

  /* сначала заголовок и кнопка, потом сцена */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-left: var(--gutter); padding-right: var(--gutter);
  }
  .hero__copy { padding-block: 30px 0; max-width: none; }
  .hero__figure {
    margin-inline: calc(var(--gutter) * -1);
    min-height: 0; aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
  }
  .hero__foot { display: none; }

  .ground { grid-template-columns: minmax(0, 1fr); }
  .shot img { aspect-ratio: 4 / 3; }

  .product { grid-template-columns: minmax(0, 1fr); }
  .product__figure { order: -1; margin-right: 0; }
  .product__figure img { max-height: 42vh; }
  .product__figure figcaption { text-align: left; padding-right: 0; }

  .steptabs, .stage { display: none; }
  .stages-list {
    display: grid;
  }
  .stage-flat {
    display: grid; gap: 12px;
    padding-block: 28px;
    border-top: 1px solid var(--line-dark);
  }
  .stage-flat:last-child { border-bottom: 1px solid var(--line-dark); }
  .stage-flat__num {
    font-size: var(--t-micro); color: var(--on-dark-soft); letter-spacing: .12em;
  }
  .stage-flat__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.025em; color: var(--white); }
  .stage-flat__text { color: var(--on-dark-soft); font-size: .9375rem; line-height: 1.6; }
  .stage-flat__figure { border-radius: var(--radius); overflow: hidden; margin-top: 6px; position: relative; }
  .stage-flat__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
  .stage-flat__figure figcaption {
    padding: 10px 2px 0; font-size: var(--t-micro); color: rgba(241, 245, 240, .45);
  }

  .finale { grid-template-columns: minmax(0, 1fr); }
  .finale__aside {
    order: 2; --aside-pad-left: var(--gutter); --aside-pad-right: var(--gutter);
    min-height: 74vw; justify-content: flex-end; gap: clamp(20px, 6vw, 36px);
  }
  .finale__main { order: 1; padding: var(--section-y) var(--gutter); }
  .finale__main-inner { max-width: none; }
  .finale__contact { margin-top: 0; padding-top: 0; }
}

@media (max-width: 620px) {
  .brand img { width: 198px; }
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .point { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .point__text { grid-column: 1; }
  .point__n { padding-top: 0; }
  .specs { gap: 22px; }
  .btn--lg { width: 100%; justify-content: space-between; padding-left: 24px; }
  .tabs { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__veil { animation: none; opacity: 0; }
}

/* ============================================================
   Живая станция на первом экране
   Слой лежит ПОВЕРХ фотографии и повторяет её кадр: JS выставляет
   --img-* по правилам object-fit: cover, поэтому пузырьки попадают
   в камеры при любой ширине окна. Сама фотография не перерисована.
   ============================================================ */

.hero__life {
  position: absolute;
  left: var(--img-x, 0); top: var(--img-y, 0);
  width: var(--img-w, 100%); height: var(--img-h, 100%);
  pointer-events: none;
  /* пузырьки видны сразу вместе с картинкой (эффект размытия убран 19.11.2026) */
  animation: lifeIn .25s var(--ease) both;
}
@keyframes lifeIn { from { opacity: 0; } to { opacity: 1; } }

/* три камеры в процентах от кадра фотографии (hero.jpg) */
.hero__life .tank { position: absolute; overflow: hidden; border-radius: 0 0 14% 14% / 0 0 22% 22%; }
.tank--1 { left: 22.7%; top: 67.2%; width: 19.2%; height: 14.2%; }
.tank--2 { left: 43.6%; top: 68.6%; width: 19.6%; height: 14.6%; }
.tank--3 { left: 64.8%; top: 70.1%; width: 16%;   height: 14.4%; }
.hero__ripple { left: 92.5%; top: 94.5%; }

/* кадр телефона (hero-m.jpg) обрезан слева — свои координаты */
@media (max-width: 900px) {
  /* hero-m.jpg = вырезка из hero.jpg (x 218–1658, y 260–1430): центральная крышка станции ровно посередине */
  .tank--1 { left: 12.4%; top: 67.8%; width: 23.2%; height: 19%; }
  .tank--2 { left: 37.7%; top: 69.7%; width: 23.7%; height: 19.6%; }
  .tank--3 { left: 63.3%; top: 71.7%; width: 19.4%; height: 19.3%; }
  .hero__ripple { display: none; }   /* лужи справа внизу в этом кадре нет */
}

/* Пузырёк: <i> — колонна высотой с камеру, сам пузырёк — её ::before у дна.
   Колонна поднимается на свою высоту, пузырёк покачивается. */
.hero__life .tank i {
  position: absolute; left: var(--x); bottom: 0;
  width: var(--w); height: 100%;
  animation: rise var(--dur) linear var(--delay) infinite;
  will-change: transform, opacity;
}
.hero__life .tank i::before {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: var(--w); height: var(--w); border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .7);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .95) 0 18%, rgba(255, 255, 255, .22) 40%, rgba(255, 255, 255, .05) 70%);
  box-shadow: 0 0 4px rgba(255, 255, 255, .35);
  animation: sway calc(var(--dur) / 2.2) ease-in-out var(--delay) infinite alternate;
}
@keyframes rise {
  0%   { transform: translateY(6%);   opacity: 0; }
  10%  {                               opacity: .9; }
  80%  {                               opacity: .8; }
  100% { transform: translateY(-96%); opacity: 0; }
}
@keyframes sway {
  from { transform: translateX(-3px) scale(.75); }
  to   { transform: translateX(3px)  scale(1.1); }
}
/* камера отстоя — мутная вода, пузырьков мало и они тусклее */
.tank--1 i::before { border-color: rgba(255, 244, 220, .45); background: radial-gradient(circle at 32% 30%, rgba(255, 248, 230, .7) 0 18%, rgba(255, 248, 230, .12) 50%, transparent 72%); box-shadow: none; }

/* аэратор: мягкий столб воздуха под трубкой в средней камере */
.tank__jet {
  position: absolute; left: 41%; top: 0; width: 14%; height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, .22), rgba(255, 255, 255, .02));
  filter: blur(6px);
  animation: jet 2.4s ease-in-out infinite alternate;
}
@keyframes jet { from { opacity: .35; transform: scaleX(.8); } to { opacity: .8; transform: scaleX(1.15); } }

/* блик по поверхности чистой воды */
.hero__glint {
  position: absolute; left: 64.8%; top: 70.4%; width: 16%; height: 1.6%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  background-size: 40% 100%; background-repeat: no-repeat;
  filter: blur(1px);
  animation: glint 5.5s ease-in-out infinite;
}
@media (max-width: 900px) { .hero__glint { left: 63.3%; top: 72.1%; width: 19.4%; height: 2.1%; } }
@keyframes glint { 0% { background-position: -60% 0; opacity: 0; } 20% { opacity: 1; } 60%, 100% { background-position: 160% 0; opacity: 0; } }

/* круги по воде в приямке справа */
.hero__ripple {
  position: absolute; width: 9%; aspect-ratio: 3.4 / 1; margin-left: -4.5%;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
  opacity: 0;
  animation: ripple 3.4s ease-out infinite;
}
.hero__ripple--2 { animation-delay: 1.7s; }
@keyframes ripple {
  0%   { transform: scale(.25); opacity: 0; }
  20%  {                        opacity: .6; }
  100% { transform: scale(1.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__life { display: none !important; }
}

/* ============================================================
   Сдержанная анимация
   Ничего не мигает и не прыгает: только плавное появление при
   прокрутке, лёгкое приближение фотографий и отклик на наведение.
   Всё выключается при prefers-reduced-motion.
   ============================================================ */

/* фотография чуть «подаётся» вперёд, пока блок появляется */
.js [data-reveal] .shot img,
.js [data-reveal] .stage__figure img,
.js [data-reveal] .product__figure img {
  transform: scale(1.04);
  transition: transform 1.1s var(--ease), opacity .35s var(--ease);
}
.js [data-reveal][data-shown='true'] .shot img,
.js [data-reveal][data-shown='true'] .stage__figure img,
.js [data-reveal][data-shown='true'] .product__figure img { transform: none; }

/* карточка с фотографией слегка приподнимается под курсором */
.shot, .stage__figure { transition: transform .5s var(--ease); }
.shot:hover, .stage__figure:hover { transform: translateY(-4px); }

/* кнопка: кружок со стрелкой сдвигается по направлению перехода */
.btn__circle { transition: transform .35s var(--ease), background-color .35s var(--ease); }
.btn:hover .btn__circle { transform: translate(3px, -3px); }
.link-arrow svg, .link-arrow i { transition: transform .35s var(--ease); }
.link-arrow:hover svg, .link-arrow:hover i { transform: translate(3px, -3px); }

/* подчёркивание в меню растёт из центра */
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0);
  transition: transform .35s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }

/* цифра опыта набирается при первом появлении */
.hero__fact b { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .shot img,
  .js [data-reveal] .stage__figure img,
  .js [data-reveal] .product__figure img { transform: none; transition: none; }
  .shot, .stage__figure, .btn__circle, .nav__link::after { transition: none; }
  .shot:hover, .stage__figure:hover { transform: none; }
}

/* ---------- ещё немного движения ---------- */

/* содержимое появившегося блока проявляется по очереди, с небольшой задержкой */
.js [data-reveal] .points > *,
.js [data-reveal] .specs > *,
.js [data-reveal] .form__row,
.js [data-reveal] .field,
.js [data-reveal] .comment-toggle {
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal][data-shown='true'] .points > *,
.js [data-reveal][data-shown='true'] .specs > *,
.js [data-reveal][data-shown='true'] .form__row,
.js [data-reveal][data-shown='true'] .field,
.js [data-reveal][data-shown='true'] .comment-toggle { opacity: 1; transform: none; }
.js [data-reveal][data-shown='true'] .points > *:nth-child(2),
.js [data-reveal][data-shown='true'] .specs > *:nth-child(2) { transition-delay: .09s; }
.js [data-reveal][data-shown='true'] .points > *:nth-child(3),
.js [data-reveal][data-shown='true'] .specs > *:nth-child(3) { transition-delay: .18s; }
.js [data-reveal][data-shown='true'] .field:nth-of-type(2) { transition-delay: .06s; }
.js [data-reveal][data-shown='true'] .field:nth-of-type(3) { transition-delay: .12s; }

/* текст этапа и карточки товара слегка подъезжает при переключении вкладки */
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.js .tabpanel:not([hidden]) .stage__body > *,
.js .tabpanel:not([hidden]) .product__body > * { animation: panelIn .5s var(--ease) both; }
.js .tabpanel:not([hidden]) .stage__body > *:nth-child(2),
.js .tabpanel:not([hidden]) .product__body > *:nth-child(2) { animation-delay: .05s; }
.js .tabpanel:not([hidden]) .stage__body > *:nth-child(3),
.js .tabpanel:not([hidden]) .product__body > *:nth-child(3) { animation-delay: .1s; }
.js .tabpanel:not([hidden]) .stage__body > *:nth-child(4),
.js .tabpanel:not([hidden]) .product__body > *:nth-child(4) { animation-delay: .15s; }
.js .tabpanel:not([hidden]) .stage__body > *:nth-child(5),
.js .tabpanel:not([hidden]) .product__body > *:nth-child(5) { animation-delay: .2s; }

/* кнопка чуть проседает при нажатии */
.btn:active { transform: translateY(1px); }
.btn { transition: transform .15s var(--ease), background-color .3s var(--ease), color .3s var(--ease); }

/* линия под полем растёт от левого края при фокусе */
.field { position: relative; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--emerald); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.control:focus { border-bottom-width: 1px; padding-bottom: 9px; }

/* стрелка-подсказка внизу первого экрана мягко покачивается */
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}
.js .hero__foot svg { animation: nudge 2.4s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .points > *,
  .js [data-reveal] .specs > *,
  .js [data-reveal] .form__row,
  .js [data-reveal] .field,
  .js [data-reveal] .comment-toggle { opacity: 1; transform: none; transition: none; }
  .js .tabpanel:not([hidden]) .stage__body > *,
  .js .tabpanel:not([hidden]) .product__body > *,
  .js .hero__foot svg { animation: none; }
  .btn, .field::after { transition: none; }
}

/* ============================================================
   Доработка 12.11.2026: партнёрство, три правила, команда,
   вопросы, нижняя панель связи на телефоне
   ============================================================ */

.hero__partner {
  display: flex; align-items: center; gap: 10px;
  font-size: var(--t-small); font-weight: 500; color: var(--emerald); line-height: 1.4;
}
.hero__partner svg { flex: none; }

/* ---------- три правила ---------- */

.promises {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(26px, 3vw, 44px) 0 0; padding: 0; list-style: none;
  border-top: 1px solid var(--sand-deep);
}
.promise {
  display: grid; align-content: start; gap: 10px;
  padding: clamp(24px, 2.6vw, 38px) clamp(20px, 2.6vw, 40px) clamp(10px, 1vw, 16px);
  border-left: 1px solid var(--sand-deep);
}
.promise:first-child { border-left: 0; padding-left: 0; }
.promise__big {
  font-size: clamp(2.6rem, 4.6vw, 4.25rem); font-weight: 700; line-height: 1;
  letter-spacing: -.045em; color: var(--emerald); white-space: nowrap;
}
.promise__cap { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.4; min-height: 2.8em; }
.promise__title {
  margin-top: clamp(10px, 1.4vw, 22px);
  font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.15;
}
.promise__text { color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; text-wrap: pretty; max-width: 36ch; }
.promises__link { margin-top: clamp(22px, 2.4vw, 34px); }

/* ---------- команда и завод ---------- */

.team {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px); align-items: start;
  margin-top: clamp(20px, 2.4vw, 34px);
}
.people { display: grid; }
.person {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px;
  padding-block: clamp(16px, 1.7vw, 22px);
  border-top: 1px solid var(--line);
}
.person:first-child { border-top: 0; padding-top: 0; }
.person__mono {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--sand); color: var(--emerald);
  font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em;
}
.person:first-child .person__mono { background: var(--emerald); color: var(--white); }
.person__body { display: grid; gap: 4px; }
.person__name { font-size: clamp(1.25rem, 1.6vw, 1.4rem); font-weight: 700; letter-spacing: -.028em; line-height: 1.2; }
.person__role { font-size: var(--t-micro); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--emerald); }
.person__text { color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; margin-top: 4px; text-wrap: pretty; }
.person__phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; justify-self: start;
  font-weight: 600; color: var(--emerald); letter-spacing: -.01em;
}
.person__phone:hover { color: var(--emerald-lift); }

.factory { display: grid; gap: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--emerald-dark); color: var(--on-dark); }
.factory__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 45%; }
.factory__body { display: grid; gap: 18px; padding: clamp(22px, 2.4vw, 34px); }
.factory__title { font-size: var(--t-micro); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.factory__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.factory__stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.factory__stats dd { margin: 0; font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--white); }
.factory__stats dt { font-size: var(--t-small); color: var(--on-dark-soft); line-height: 1.35; }
.factory__cap { font-size: var(--t-micro); color: rgba(241, 245, 240, .45); }

/* ---------- вопросы ---------- */

.faq {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 96px); align-items: start;
}
.faq__head { display: grid; gap: clamp(16px, 1.8vw, 24px); position: sticky; top: 110px; }
.faq__lead { color: var(--ink-soft); line-height: 1.6; }
.faq__head .link-arrow { justify-self: start; }
.faq__list { border-bottom: 1px solid var(--sand-deep); }
.faq__item { border-top-color: var(--sand-deep); }
.faq__item > summary {
  min-height: 72px; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); font-weight: 600;
  letter-spacing: -.015em; line-height: 1.35; padding-block: 14px;
}
.faq__item > summary:hover { color: var(--emerald); }
.faq__item .disclosure__body { padding-bottom: 22px; }
.faq__item .disclosure__body p { color: var(--ink-soft); line-height: 1.65; max-width: 60ch; text-wrap: pretty; }

/* появление по очереди */
.js [data-reveal] .promise, .js [data-reveal] .person {
  opacity: 0; transform: translateY(10px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal][data-shown='true'] .promise, .js [data-reveal][data-shown='true'] .person { opacity: 1; transform: none; }
.js [data-reveal][data-shown='true'] .promise:nth-child(2), .js [data-reveal][data-shown='true'] .person:nth-child(2) { transition-delay: .09s; }
.js [data-reveal][data-shown='true'] .promise:nth-child(3), .js [data-reveal][data-shown='true'] .person:nth-child(3) { transition-delay: .18s; }
.js [data-reveal][data-shown='true'] .person:nth-child(4) { transition-delay: .27s; }

/* ---------- нижняя панель связи (только телефон) ---------- */

.callbar { display: none; }

@media (max-width: 1100px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
}

@media (max-width: 900px) {
  .promises { grid-template-columns: minmax(0, 1fr); border-top: 0; }
  .promise { border-left: 0; padding: 22px 0; border-top: 1px solid var(--sand-deep); }
  .promise__cap { min-height: 0; }
  .team { grid-template-columns: minmax(0, 1fr); }
  .factory { order: -1; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: transform .35s var(--ease);
  }
  .callbar[data-hidden='true'] { transform: translateY(110%); }
  .callbar__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; border-radius: 999px;
    background: var(--emerald); color: var(--white); font-weight: 600; font-size: .9375rem;
  }
  .callbar__btn--call { background: var(--sand); color: var(--emerald-dark); }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .factory__stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .factory__stats div:last-child { grid-column: 1 / -1; }
  .person { grid-template-columns: 46px minmax(0, 1fr); gap: 14px; }
  .person__mono { width: 46px; height: 46px; font-size: 1.125rem; }
  .faq__item > summary { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] .promise, .js [data-reveal] .person { opacity: 1; transform: none; transition: none; }
  .callbar { transition: none; }
}
.hero__fact b { white-space: nowrap; }

/* ============================================================
   Правка 12.11.2026 (2): каждый экран — ровно на высоту окна,
   мелкий текст крупнее и контрастнее
   ============================================================ */

:root {
  --ink-faint: #6F7D75;
  --t-micro: .75rem;
  --t-small: clamp(.9375rem, 1vw, 1rem);
}

@media (min-width: 901px) and (min-height: 620px) {
  .hero, .section, .finale {
    min-height: calc(100svh - 74px);
    display: flex; flex-direction: column; justify-content: center;
  }
  .hero > .hero__grid { flex: 1 1 auto; }
  .section > .shell { width: 100%; }
  .finale { display: grid; }
  /* кадр этапа подстраивается под высоту окна, чтобы экран не переполнялся */
  .stage__figure img { max-height: calc(100svh - 74px - 330px); width: 100%; object-fit: cover; }
  .shot { max-height: calc(100svh - 74px - 260px); aspect-ratio: auto; }
  .shot img { height: 100%; }
  .product__figure img { max-height: calc(100svh - 74px - 340px); object-fit: contain; }
}

/* читаемость */
.note { color: var(--ink-soft); }
.hero__note { color: var(--ink-soft); }
.section__foot { color: var(--ink-faint); }
.section--emerald .section__foot { color: rgba(241, 245, 240, .62); }
.point__text, .stage__text, .stage-flat__text { font-size: 1rem; }
.split-head__lead { font-size: clamp(1rem, 1.15vw, 1.125rem); }
.stage__figure figcaption, .stage-flat__figure figcaption { font-size: .8125rem; color: rgba(241, 245, 240, .8); }
.product__purpose, .specs dt { color: var(--ink-soft); }
.field__label, .consent__text { font-size: .9375rem; }

@media (min-width: 901px) and (max-height: 780px) {
  :root { --t-display: clamp(2.2rem, 3.4vw, 3.1rem); --t-h2: clamp(1.9rem, 3vw, 2.6rem); }
  .hero__copy { gap: 14px; padding-block: 18px; }
  .hero__fact { margin-top: 4px; }
  .hero__foot { display: none; }
  .btn--lg { min-height: 54px; }
  .product__figure img { max-height: calc(100svh - 74px - 380px); }
}
@media (min-width: 901px) and (max-height: 780px) {
  .section { padding-block: 14px; }
  .tabs { margin-bottom: 4px; }
}

/* телефон: кадр hero-m.jpg, в 16:11 держим в кадре дом и станцию целиком */
@media (max-width: 900px) {
  .hero__figure { aspect-ratio: 1 / 1; }
  .hero__figure img { object-position: 50% 60%; }
}

/* Монтаж: фото чистые — без затемнения и подписи */
.stage__figure::after { content: none; }
.stage__figure figcaption, .stage-flat__figure figcaption { display: none; }

/* ============================================================
   Связаться: вместо формы — три большие кнопки
   ============================================================ */
.reach { display: grid; gap: 12px; margin-top: clamp(14px, 2vw, 24px); }
.reach__btn {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding: 12px 24px 12px 14px;
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em;
  transition: transform .2s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.reach__btn:hover { transform: translateY(-2px); }
.reach__btn:active { transform: translateY(1px); }
.reach__btn .ico-arrow { margin-left: auto; flex: none; transition: transform .3s var(--ease); }
.reach__btn:hover .ico-arrow { transform: translate(3px, -3px); }
.reach__ico {
  flex: none; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
}
.reach__label { display: grid; gap: 2px; line-height: 1.2; }
.reach__label small { font-size: .875rem; font-weight: 500; opacity: .75; letter-spacing: 0; }

.reach__btn--wa { background: var(--emerald); color: var(--white); }
.reach__btn--wa:hover { background: var(--emerald-lift); color: var(--white); }
.reach__btn--wa .reach__ico { background: rgba(255, 255, 255, .16); }

.reach__btn--tg, .reach__btn--call { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.reach__btn--tg:hover, .reach__btn--call:hover { background: var(--sand); color: var(--ink); }
.reach__btn--tg .reach__ico, .reach__btn--call .reach__ico { background: var(--sand); color: var(--emerald); }

.reach__note { margin-top: 8px; font-size: var(--t-small); color: var(--ink-soft); }

/* нижняя панель на телефоне: иконка WhatsApp слева от слова */
.callbar__btn svg { flex: none; }

/* ============================================================
   18.11.2026 — номера без нулей, текст крупнее, телефон проще
   ============================================================ */

/* единый размер описаний по всему сайту — как подзаголовок первого экрана */
.split-head__lead { font-size: clamp(1.0625rem, 1.25vw, 1.25rem); max-width: 38ch; }
.point__text, .stage__text, .stage-flat__text { font-size: clamp(1.0625rem, 1.2vw, 1.1875rem); }
.section--emerald .split-head__lead, .stage__text { color: rgba(241, 245, 240, .82); }

/* номера: просто цифра, читаемая */
.point__n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: rgba(7, 85, 67, .08); color: var(--emerald);
  font-size: 1rem; font-weight: 700; letter-spacing: 0;
}
.tab i { font-size: .8125rem; letter-spacing: 0; }
.steptab { font-size: 1.0625rem; gap: 10px; }
.steptab i { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; opacity: .55; }
.section__foot { font-size: .8125rem; letter-spacing: .12em; }

.reach__person { display: none; margin-top: 4px; font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  /* шапка уезжает вместе со страницей, ничего не висит поверх */
  html { scroll-padding-top: 0; }
  .header { position: relative; }
  body { padding-bottom: 0; }

  /* меньше мелочей: только главное */
  .hero .eyebrow, .hero__note, .section__foot,
  .split-head--compare .link-arrow, .disclosures, .tab i { display: none; }
  .hero__lead br, .split-head__lead br, .finale__sub br { display: none; }
  .split-head, .split-head--compare { grid-template-columns: minmax(0, 1fr); }

  .hero__copy { gap: 18px; }
  .hero__fact { margin-top: 0; }

  /* этапы: без фото, с крупной цифрой — коротко и понятно */
  .stage-flat__figure { display: none; }
  .stage-flat {
    grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; row-gap: 6px;
    padding-block: 22px;
  }
  .stage-flat__num {
    grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(207, 227, 210, .14); color: var(--mint);
    font-size: 1.0625rem; font-weight: 700; letter-spacing: 0;
  }
  .stage-flat__title { align-self: center; }
  .stage-flat__text { grid-column: 2; }

  /* контакты: один блок, без повторов номера */
  .finale__aside { display: none; }
  .finale { min-height: 0; }
  .finale__main { padding-top: 56px; padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
  .form__sub br { display: none; }
  .reach__person { display: block; }

  /* на телефоне блоки сразу видны — без проявления при прокрутке */
  .js [data-reveal],
  .js [data-reveal] .shot img, .js [data-reveal] .stage__figure img, .js [data-reveal] .product__figure img,
  .js [data-reveal] .points > *, .js [data-reveal] .specs > * { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   19.11.2026 — блок «Расскажите о вашем участке» выше
   ============================================================ */

/* На компьютере кнопки связи стоят посередине колонки, а не весь блок целиком:
   снизу невидимый запас на высоту заголовка. Он берёт только свободное место
   (не больше 170px) и не растягивает экран. На невысоком экране свободного места
   нет, и верх блока встаёт вровень с заголовком слева. */
@media (min-width: 901px) {
  .finale__main::after { content: ""; flex: 1 1 0; max-height: 170px; }
}

/* ============================================================
   19.11.2026 — «Станции» в один экран на невысоких ноутбуках
   ============================================================ */

/* На экранах до 780px по высоте раздел был выше экрана на 15–90px.
   Описание станции — в одну строку, отступы в карточке плотнее. */
@media (min-width: 901px) and (max-height: 780px) {
  .product__short span { display: inline; }
  .product__short span + span::before { content: " "; }
  .product__body { gap: 5px; }
  .product__name { font-size: 2rem; }
  .specs { margin-top: 0; }
  .product__price { margin-top: 2px; }
  .tab { min-height: 40px; padding-bottom: 10px; }
}
/* Совсем невысокий экран: убираем подпись внизу раздела —
   то же самое («без монтажа») уже сказано строкой выше. */
@media (min-width: 901px) and (max-height: 700px) {
  #stancii .section__foot { display: none; }
}

/* «Монтаж» и «Наш подход» в один экран на невысоких ноутбуках:
   плотнее отступы в этапе монтажа; на ширине 901–1100px заголовок
   и пояснение снова в две колонки, а не друг под другом. */
@media (min-width: 901px) and (max-height: 780px) {
  .stage { padding-top: 12px; }
  .stage__body { gap: 10px; }
}
@media (min-width: 901px) and (max-width: 1100px) and (max-height: 780px) {
  .split-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .split-head__lead { justify-self: end; text-align: right; }
  .ground__side { gap: 16px; }
  .point { padding-block: 10px; }
  .point__text { font-size: 1rem; }
}

/* ============================================================
   19.11.2026 — кнопка первого экрана крупнее, номер этапа в строку
   ============================================================ */

/* Под кнопкой больше нет подписи — сама кнопка крупнее. */
.hero__actions .btn--lg { min-height: 80px; padding: 0 14px 0 42px; font-size: 1.25rem; gap: 34px; }
.hero__actions .btn__circle { width: 56px; height: 56px; }
@media (min-width: 901px) and (max-height: 780px) {
  .hero__actions .btn--lg { min-height: 70px; }
  .hero__actions .btn__circle { width: 50px; height: 50px; }
}
@media (max-width: 620px) {
  .hero__actions .btn--lg { min-height: 68px; padding-left: 26px; font-size: 1.125rem; }
}

/* Этапы монтажа: «3 Ставим станцию…» — номер в одной строке с заголовком,
   а не отдельной строкой над ним. */
@media (min-width: 901px) {
  .stage__body { grid-template-columns: auto minmax(0, 1fr); column-gap: .45em; }
  .stage__body > * { grid-column: 1 / -1; }
  .stage__num, .stage__title { grid-row: 1; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; }
  .stage__num { grid-column: 1; }
  .stage__title { grid-column: 2; }
}

/* ============================================================
   19.11.2026 — ТЕЛЕФОН: меньше прокрутки, плотнее, главное крупнее.
   Всё ниже — только до 620px. Компьютер и планшет не меняются.
   ============================================================ */

/* полный текст на компьютере, короткий на телефоне (см. dual() в build.py) */
.t-short { display: none; }

@media (max-width: 620px) {
  .t-full { display: none; }
  .t-short { display: inline; }

  /* без «хвостов» из одного слова в последней строке */
  p, li { text-wrap: pretty; }
  h1, h2, h3 { text-wrap: balance; }

  /* шапка ниже */
  .header__inner { min-height: 56px; }
  .brand img { width: 180px; }

  /* --- 01. Первый экран целиком в телефоне: текст, кнопка, факты и картинка.
         Картинка занимает остаток экрана; сверху срезана крыша, станция целиком. */
  .hero { display: flex; flex-direction: column; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); }
  .hero__grid { display: flex; flex-direction: column; gap: 14px; flex: 1 1 auto; }
  .hero__copy { padding-block: 14px 0; gap: 12px; }
  .hero .display { font-size: 2.25rem; }
  .hero__lead { font-size: 1rem; line-height: 1.5; }
  .hero__fact { gap: 14px; }
  .hero__fact b { font-size: 1.75rem; }
  .hero__fact span { font-size: .875rem; padding-left: 14px; }
  .hero__partner { font-size: .875rem; line-height: 1.35; }
  .hero__figure { flex: 1 1 0; aspect-ratio: auto; min-height: 240px; max-height: 360px; }
  .hero__figure img { object-position: 50% 100%; }   /* сверху газон, станция целиком и по центру, снизу гравий */
  /* без размытия при загрузке: на телефоне картинка сразу чёткая */
  .hero__veil, .js .hero__veil { display: none; animation: none; }

  /* --- общие отступы разделов */
  .split-head { gap: 8px; margin-bottom: 12px; }
  #podhod .split-head__lead, #montazh .split-head__lead { display: none; }

  /* --- 02. Наш подход: фото ниже, номер в строку с заголовком, текст на всю ширину */
  .ground { gap: 14px; }
  .shot, .shot img { aspect-ratio: 16 / 9; }
  .ground__side { gap: 8px; }
  .point {
    grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 6px;
    padding-block: 14px;
  }
  .point__n { grid-row: 1; grid-column: 1; width: 32px; height: 32px; font-size: .9375rem; align-self: center; }
  .point__title { grid-row: 1; grid-column: 2; align-self: center; font-size: 1.1875rem; }
  .point__text { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; }
  .point:last-child { padding-bottom: 6px; }
  .ground__side { gap: 2px; }
  .ground__side .link-arrow { min-height: 0; padding: 6px 0 6px; }
  #podhod { padding-bottom: 14px; }

  /* --- 03. Станции: в один экран — описание в строку, картинка станции ниже */
  .product__body { gap: 6px; }
  .product__short span { display: inline; }
  .product__short span + span::before { content: " "; }
  .product__figure img { max-height: 150px; object-fit: contain; }
  .stations__foot .note { font-size: .875rem; }

  /* --- 04. Монтаж: все четыре этапа на одном экране */
  .stage-flat {
    grid-template-columns: 32px minmax(0, 1fr); column-gap: 12px; row-gap: 6px;
    padding-block: 14px;
  }
  .stage-flat__num { grid-row: 1; width: 32px; height: 32px; font-size: .9375rem; }
  .stage-flat__title { grid-column: 2; align-self: center; font-size: 1.125rem; }
  .stage-flat__text { grid-column: 1 / -1; font-size: 1rem; line-height: 1.5; }
  /* «Монтаж» — ровно один экран телефона: следующий блок не выглядывает снизу */
  #montazh { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
  #montazh > .shell { width: 100%; }

  /* --- 05. Контакты: в конце страницы — целый белый экран, текст крупнее */
  .finale { min-height: 100vh; min-height: 100svh; }
  .finale__main {
    min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  }
  .finale__main-inner { gap: 12px; }
  .finale__main .eyebrow { font-size: .8125rem; }
  .form__title { font-size: 2.375rem; }
  .form__sub { font-size: 1.0625rem; line-height: 1.55; }
  .reach { gap: 12px; margin-top: 14px; }
  .reach__btn { min-height: 78px; font-size: 1.1875rem; }
  .reach__ico { width: 50px; height: 50px; }
  .reach__label small { font-size: .9375rem; }
  .reach__note, .reach__person { font-size: 1rem; }
  .form__sub, .reach__note { text-wrap: balance; }   /* строки одной длины, без коротких «хвостов» */

  /* Контакты на телефоне — как на компьютере: фоном фото вечернего сада,
     сверху глубокий зелёный градиент (книзу темнее), текст белый. */
  .finale { position: relative; background: var(--emerald-dark); }
  .finale__aside { display: block; position: absolute; inset: 0; padding: 0; min-height: 0; z-index: 0; }
  .finale__aside-inner, .finale__contact { display: none; }
  .finale__media img { object-position: 32% 55%; }
  .finale__media::after {
    background: linear-gradient(180deg,
      rgba(5, 32, 25, .50) 0%, rgba(5, 32, 25, .80) 22%,
      rgba(5, 32, 25, .95) 42%, rgba(5, 32, 25, .98) 100%);
  }
  .finale__main { position: relative; z-index: 1; background: transparent; color: var(--white); }
  .finale__main .eyebrow { color: var(--mint); }
  .form__title { color: var(--white); }
  .form__sub, .reach__note { color: rgba(241, 245, 240, .9); }
  .reach__person { color: rgba(241, 245, 240, .78); }
  .reach__btn--wa { background: var(--mint); color: var(--emerald-dark); }
  .reach__btn--wa:hover { background: var(--white); color: var(--emerald-dark); }
  .reach__btn--wa .reach__ico { background: rgba(11, 57, 49, .1); }
  .reach__btn--tg, .reach__btn--call {
    background: rgba(255, 255, 255, .07); color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  }
  .reach__btn--tg:hover, .reach__btn--call:hover { background: rgba(255, 255, 255, .14); color: var(--white); }
  .reach__btn--tg .reach__ico, .reach__btn--call .reach__ico { background: rgba(255, 255, 255, .12); color: var(--mint); }
}
