/* ==========================================================================
   РОБСИЛА — VILLARTEC. Дизайн-система
   ========================================================================== */
:root {
  --bg: #FFFFFF;
  --accent: #F08019;
  --accent-hover: #D96E12;
  --dark: #1A1F16;
  --muted: #5C6358;

  --font-heading: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --header-h: 72px;
  /* Единая шкала вертикальных отступов */
  --section-pad: 96px;   /* вертикальный padding секций (десктоп) */
  --gap-heading: 16px;   /* H2 → подзаголовок */
  --gap-block: 44px;     /* подзаголовок/заголовок → контент */
  --radius: 20px;
  --radius-lg: 24px;
  --shadow-soft: 0 12px 32px rgba(26, 31, 22, .10);
  --shadow-card: 0 16px 40px rgba(26, 31, 22, .12);
  --ease: 0.25s ease;
  --border: #EEEEEE;
  --tint-green: #F4F8F2;   /* мягкий зелёно-белый фон тонированных секций */
  --scene-green: #5E8C4A;  /* глубокий зелёный сцены — иконки в тонированных секциях */
  --grass-fallback: #3C7B1D; /* тёмная зона травы (пипетка из grass-2560) — фолбэк, пока фон грузится */
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Страховка от случайного горизонтального выезда (основные причины устранены min-width:0) */
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Отступ якорей под фиксированную шапку */
section[id] { scroll-margin-top: var(--header-h); }

/* ==========================================================================
   БЛОК 1 — ШАПКА
   ========================================================================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow var(--ease), border-color var(--ease);
  will-change: transform;
}
.header.is-scrolled {
  border-bottom-color: transparent;
  box-shadow: var(--shadow-soft);
}
/* Умное скрытие при скролле вниз */
.header.is-hidden { transform: translateY(-100%); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
/* Десктоп: лого крупнее (+~27%); высота шапки фиксирована (--header-h),
   flex центрирует — шапка не растёт. На 1024–1200 clamp чуть ужимает,
   чтобы меню не переносилось. */
@media (min-width: 1024px) {
  .logo { font-size: clamp(27px, 1.9vw + 8px, 31px); }
}
.logo__dark { color: var(--dark); }
.logo__accent { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav__link {
  font-weight: 500;
  font-size: 16px;
  color: var(--dark);
  transition: color var(--ease);
}
.nav__link:hover { color: var(--accent); }

.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--ease), transform var(--ease);
}
.btn-phone:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-phone__icon { flex-shrink: 0; }

/* Бургер */
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  background: #FFFFFF;
  padding: 40px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu__link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--dark);
  padding: 10px 0;
  transition: color var(--ease);
}
.mobile-menu__link:hover { color: var(--accent); }
.btn-phone--mobile {
  align-self: flex-start;
  margin-top: 24px;
  font-size: 18px;
  padding: 14px 28px;
}

/* ==========================================================================
   БЛОК 2 — ГЕРОЙ
   ========================================================================== */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  /* Кроп вшитого в ролик letterbox (полосы 6.9% сверху/снизу):
     зум выталкивает полосы за края при любом соотношении контейнера */
  transform: scale(1.16);
  transform-origin: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Виньетка за текстом (тёмный центр) поверх базового затемнения */
  background:
    radial-gradient(ellipse 70% 65% at center, rgba(10, 15, 8, .35) 0%, rgba(10, 15, 8, 0) 62%),
    linear-gradient(rgba(10, 15, 8, .68), rgba(10, 15, 8, .48));
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 40px;
  padding-bottom: 96px; /* маркеры доверия не касаются стрелки скролла */
  text-shadow: 0 1px 8px rgba(0, 0, 0, .35); /* тонкая страховка читаемости белого текста */
}
.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  /* min 26px: длинное неразрывное «ГАЗОНОКОСИЛКИ» влезает на 375px без обрезки */
  font-size: clamp(26px, 3.9vw, 56px);
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FFFFFF;
}
/* 3.9vw/56px: одна строка на десктопе занимает ~70% ширины (Unbounded — широкий шрифт) */
.hero__subtitle {
  margin: 18px 0 0;
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 34px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__lead {
  margin: 18px 0 0;
  max-width: 680px;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 500;
  color: rgba(255, 255, 255, .94);
}
.hero__lead-line { display: block; }
.hero__actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #FFFFFF;
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, .85);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }

/* Бейдж-eyebrow над заголовками блоков */
.badge {
  display: flex;
  width: fit-content;
  margin: 0 auto 18px;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E5E0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
/* Вариант для тёмного фона (плашка в герое) */
.badge--dark {
  background: rgba(10, 15, 8, .45); /* fallback-подложка, если blur не поддержан */
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-color: rgba(255, 255, 255, .35);
  color: #FFFFFF;
  text-shadow: none;   /* своя тёмная подложка — тень не нужна */
  white-space: nowrap; /* всегда одна строка */
}
.hero__badge { margin-bottom: 22px; font-size: 14px; } /* до H1: 20–24px десктоп; 14px — название компании заметнее */
.badge__brand { font-weight: 700; }

/* Маркеры доверия — строго одна строка на десктопе */
.trust {
  margin-top: 36px;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .96);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
/* Точка-разделитель ПЕРЕД каждым пунктом, кроме первого (без хвостовой точки) */
.trust__item + .trust__item::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  flex-shrink: 0;
}
.trust__icon {
  width: 19px; height: 19px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Стрелка-приглашение к скроллу */
.scroll-hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
}
.scroll-hint__mouse {
  display: block;
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 999px;
  position: relative;
}
.scroll-hint__mouse::after {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: #FFFFFF;
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);   opacity: 1; }
  70%  { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0);   opacity: 0; }
}

/* ==========================================================================
   БЛОК 3 — «ЗНАКОМО?»
   ========================================================================== */
.problem {
  background: var(--tint-green); /* мягкая зелёная тонировка (согласовано с заказчиком) */
  padding-block: var(--section-pad);
}
.problem__title {
  margin: 0 auto var(--gap-block);
  max-width: 820px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: var(--dark);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.pain-card {
  background: #FFFFFF; /* на тонированном фоне серый #F5F5F5 сливается */
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.pain-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--scene-green);
  color: #FFFFFF;
  margin-bottom: 20px;
}
.pain-card__icon svg { width: 24px; height: 24px; }
.pain-card__title {
  margin: 0 0 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 19px;
  color: var(--dark);
}
.pain-card__text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.problem__cta {
  margin-top: var(--gap-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.problem__cta-text {
  margin: 0;
  max-width: 760px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.2;
  color: var(--dark);
}
.problem__arrow {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  transition: background var(--ease), transform var(--ease);
  animation: arrowBounce 2s ease-in-out infinite;
}
.problem__arrow:hover { background: var(--accent-hover); }
.problem__arrow svg { width: 26px; height: 26px; }
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ==========================================================================
   БЛОК 4 — «КАК ЭТО РАБОТАЕТ» (интерактивная сцена)
   ========================================================================== */
.how { background: var(--bg); padding-block: var(--section-pad); }
.how__title {
  margin: 0 auto var(--gap-heading);
  max-width: 820px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: var(--dark);
}
.how__subtitle {
  margin: 0 auto var(--gap-block);
  text-align: center;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

.how__scene { position: relative; }
.how__inner { width: 100%; }

/* Полоса-газон: базовый слой — «не стрижено» (тёмная зелень, вертикальные штрихи) */
.how__track {
  position: relative;
  height: 120px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: repeating-linear-gradient(90deg,
    #5E8C4A 0, #5E8C4A 5px, #55813F 5px, #55813F 8px);
  box-shadow: inset 0 0 0 1px rgba(26, 31, 22, .05);
}
/* «Подстрижено» — светлый слой поверх, полосы покоса под углом; ширину режет JS */
.how__mowed {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg,
    #A8CF8E 0, #A8CF8E 22px, #9AC77D 22px, #9AC77D 44px);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}

/* Полоса-обёртка: даёт роботу вылезать за верх полосы, не обрезаясь */
.how__strip {
  position: relative;
  /* Вертикальная посадка робота — подобрано под текущий кадр (робот занимает
     ~центр, снизу ~22% прозрачного поля). Если заменят файл с другим
     кадрированием (напр. плотная обрезка) — правятся только эти 3 переменные. */
  --robot-h: 116px;        /* высота фото на полосе */
  --robot-seat: -24px;     /* опускаем фото: колёса — на линию низа полосы */
  --robot-shadow-y: 26px;  /* тень «посадки» под колёсами */
}

/* Робот (фото) — отдельный слой над полосой */
.how__robot {
  position: absolute;
  left: 0;
  bottom: var(--robot-seat);
  transform: translateX(0);
  will-change: transform;
  z-index: 2;
}
.how__robot-inner { animation: howBob 2.6s ease-in-out infinite; }
.how__robot-img {
  display: block;
  height: var(--robot-h);
  width: auto;               /* пропорции фото сохраняются */
}
/* Мягкая тень «посадки» — отдельный элемент (НЕ фильтр на фото) */
.how__robot-shadow {
  position: absolute;
  left: 50%;
  bottom: var(--robot-shadow-y);
  width: 56%;
  height: 16px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(20, 23, 15, 1) 0%, rgba(20, 23, 15, 0) 70%);
  opacity: .25;
  filter: blur(4px);
  z-index: -1;               /* под фото робота */
  pointer-events: none;
}
@keyframes howBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

/* Шаги вдоль пути */
.how__steps {
  list-style: none;
  margin: var(--gap-block) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.how__step {
  position: relative;
  text-align: left;
  opacity: .35;
  transition: opacity .45s ease, transform .45s ease;
}
.how__step.is-active { opacity: 1; transform: translateY(-4px); }
/* пунктирная «ниточка» от полосы к шагу */
.how__step::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 22px;
  width: 0;
  height: 20px;
  border-left: 2px dashed #CBD9BC;
}
.how__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #E4E7E0;
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
  transition: background .45s ease, color .45s ease;
}
.how__step.is-active .how__step-num { background: var(--accent); color: #FFFFFF; }
.how__step-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
}
.how__step-text { margin: 0; font-size: 15px; color: var(--muted); }

/* Мостик + CTA */
.how__bridge {
  margin-top: var(--gap-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  opacity: .35; /* «награда» приглушена до конца сцены (progress >= 0.9) */
  transition: opacity .5s ease, transform .5s ease;
}
.how__bridge.is-reward { opacity: 1; }
.how__bridge-text {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.2;
  color: var(--dark);
}
.how__cta { padding: 13px 28px; font-size: 15px; }

/* Сцена #how — обычная секция (автоспектакль по IntersectionObserver, без pinning) */

/* ==========================================================================
   БЛОК 5 — «ВЫГОДЫ ВЛАДЕЛЬЦА» (bento)
   ========================================================================== */
.benefits { background: var(--bg); padding-block: var(--section-pad); }
.benefits__title {
  margin: 0 auto var(--gap-heading);
  max-width: 820px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
  color: var(--dark);
}
.benefits__subtitle {
  margin: 0 auto var(--gap-block);
  text-align: center;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

/* Bento-сетка: мобайл 1 кол → планшет 2 → десктоп 4 */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Карточка */
.benefit {
  background: #F5F5F5;
  border-radius: var(--radius-lg);
  padding: 28px;
  min-width: 0; /* grid-элемент: не раздуваться под min-content контента (календарь) */
  /* Появление — ТОЛЬКО opacity (без translateY): карточка не «уезжает» под пальцем,
     тап по вложенным элементам не промахивается. */
  opacity: 0;
  transition: opacity .4s ease, box-shadow .25s ease;
}
.benefit.is-in { opacity: 1; }
.benefit.is-in:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

/* Компактные */
.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  margin-bottom: 18px;
}
.benefit__icon svg { width: 22px; height: 22px; }
.benefit__title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 19px;
  color: var(--dark);
}
.benefit__text { margin: 0; font-size: 15px; color: var(--muted); }

/* Крупные */
.benefit--large {
  display: flex;
  flex-direction: column;
  padding: 34px 36px;
}
.benefit--large .benefit__title { font-size: clamp(22px, 2vw, 26px); margin-bottom: 12px; }
.benefit--large .benefit__body { margin-bottom: 26px; }

/* Визуал A — интерактивная шкала шума («звук» через scaleX, без layout) */
.vol { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.vol-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.vol-num {
  display: inline-block;
  min-width: 2ch;              /* цифры не дёргают текст при счёте */
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--dark);
}
.vol-row--robot .vol-num { color: var(--accent); }

/* Дорожка (grey) — общий масштаб; длина полосы = финальный scaleX заливки */
.vol-bar {
  position: relative;
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #E4E7E0;
  overflow: hidden;
}
.vol-bar__fill { position: absolute; top: -1px; bottom: -1px; left: 0; right: 0; } /* обёртка вибрации */
.vol-bar__grow {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);                       /* стартовое/сброшенное состояние */
  will-change: transform;
}
.vol-row--loud  .vol-bar__grow { background: var(--dark);   --to: .95; }
.vol-row--robot .vol-bar__grow { background: var(--accent); --to: .55; }

/* Финальная подпись «тише в 2,5 раза» */
.vol-note { margin: 2px 0 0; font-size: 12px; color: var(--muted); opacity: 0; }
.vol-note__accent { color: var(--accent); font-weight: 700; }

/* ---- Сценарий (запускается классом .vol--play, снимается на сбросе) ---- */
/* Бензокосилка: агрессивный рост рывками + overshoot, затем «работающий мотор» */
.vol--play .vol-row--loud .vol-bar__grow {
  animation: loudGrow .8s both, loudIdle .16s .8s infinite;
}
.vol--play .vol-row--loud .vol-bar__fill {
  animation: loudShake .07s linear 11;        /* вертикальная вибрация ~0.77s */
}
/* Робот: один идеально плавный рост, затем полная неподвижность */
.vol--play .vol-row--robot .vol-bar__grow {
  animation: robotGrow .8s cubic-bezier(.22, .61, .36, 1) 1.2s both;
}
/* Подпись — после остановки робота (0.8 рост + 0.4 пауза + 0.8 робот = 2.0s) */
.vol--play .vol-note { animation: noteIn .5s 2s both; }

@keyframes loudGrow {
  0%   { transform: scaleX(0);                       animation-timing-function: cubic-bezier(.2, .85, .3, 1); }
  44%  { transform: scaleX(calc(var(--to) * .72));   animation-timing-function: linear; }              /* быстрый выброс ~70% */
  63%  { transform: scaleX(calc(var(--to) * .72));   animation-timing-function: cubic-bezier(.5, 0, .4, 1); } /* микропауза */
  85%  { transform: scaleX(calc(var(--to) * 1.04)); }                                                  /* дожим с перелётом */
  100% { transform: scaleX(var(--to)); }                                                               /* возврат */
}
@keyframes loudIdle {
  0%, 100% { transform: scaleX(var(--to)); }
  50%      { transform: scaleX(calc(var(--to) - .006)); } /* ~±2px «мотор» */
}
@keyframes loudShake {
  0%, 100% { transform: translateY(.5px); }
  50%      { transform: translateY(-.5px); }
}
@keyframes robotGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(var(--to)); }
}
@keyframes noteIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Визуал B — календарь недели */
.cal { margin-top: auto; }
.cal-week {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.cal-day { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.cal-day__mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(26, 31, 22, .08);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .3s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.cal-day__mark svg { width: 17px; height: 17px; }
.benefit.is-in .cal-day__mark {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--d) * 60ms); /* галочки по очереди */
}
.cal-day__name { font-size: 12px; color: var(--muted); }
.cal-note { margin: 0; font-size: 13px; color: var(--muted); }
.cal-note__seq { color: #A2A89A; letter-spacing: 2px; white-space: nowrap; }
/* ≤480px: 7 кружков-дней делаем сжимаемыми, чтобы min-content колонки календаря
   влезал в карточку и на 375px, и на 360px (кружок vw-зависимый, гэп меньше) */
@media (max-width: 480px) {
  .cal-week { gap: 6px; }
  .cal-day__mark { width: min(34px, 8vw); height: min(34px, 8vw); }
}

/* Планшет: 2 колонки, крупные на всю ширину */
@media (min-width: 768px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit--large { grid-column: span 2; }
}
/* Десктоп: 4 колонки, крупные по 2 (bento) */
@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   АДАПТИВ
   ========================================================================== */
/* Смежные белые секции удваивали бы --section-pad. У секции, идущей за другой,
   убираем верхний паддинг → между блоками ровно один --section-pad (на всех ширинах;
   models/podbor уже имеют padding-top:0).
   #how исключён: он идёт за тонированным #problem и несёт свой верхний отступ,
   иначе бейдж прилипает к цветовой границе (та же пара отступов, что у #service). */
.benefits { padding-top: 0; }

/* Маркеры доверия: держим одну строку — ужимаем на 769–1280px */
@media (min-width: 769px) and (max-width: 1280px) {
  .trust { gap: 12px; font-size: 13px; }
  .trust__icon { width: 16px; height: 16px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav { gap: 20px; }
  .nav__link { font-size: 15px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
    --section-pad: 56px; /* меньше на мобайле */
    --gap-heading: 12px;
    --gap-block: 32px;
  }
  .nav { display: none; }
  .header .btn-phone { display: none; } /* прячем только кнопку в шапке, не в меню */
  .burger { display: flex; }

  /* Герой: усиленное затемнение видео + виньетка, плотный капс H1 */
  .hero__overlay {
    background:
      radial-gradient(ellipse 80% 60% at center, rgba(10, 15, 8, .35) 0%, rgba(10, 15, 8, 0) 65%),
      linear-gradient(rgba(10, 15, 8, .72), rgba(10, 15, 8, .52));
  }
  /* Мобайл: высоту меряем по реальному видимому вьюпорту (svh), контент — от верха
     с гарантированным зазором под шапкой. Плашка не касается шапки, маркеры не у кромки;
     контент не центрируется → не выдавливается за края и не режется overflow'ом. */
  .hero {
    align-items: flex-start;
    min-height: calc(100vh - var(--header-h));  /* fallback для старых браузеров */
    min-height: calc(100svh - var(--header-h));
  }
  .hero__title { line-height: 1.03; }
  /* .hero .hero__content — специфичность выше .container, чтобы верт. паддинги
     не сбрасывались правилом .container{padding:0 18px} на ≤480px.
     padding-bottom 110px: маркеры доверия отстоят от стрелки-«мышки» на ~44px
     (gap = padding-bottom − 66; стрелка bottom:24 + высота 42). Ничего не режется —
     контент прижат к верху (flex-start), герой при нехватке высоты растёт вниз. */
  .hero .hero__content { padding-top: 40px; padding-bottom: 110px; }
  /* Плашка компании: компактнее, одна строка; отступ до H1 поджат (вертикаль впритык) */
  .hero__badge {
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    gap: 6px;
  }
  /* сжимаем вертикаль, размеры текста не трогаем */
  .hero__subtitle { margin-top: 12px; }
  .hero__lead { margin-top: 12px; }

  /* Кнопки героя — в столбик на всю ширину, главная сверху */
  .hero__actions {
    width: 100%;
    max-width: 420px;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }
  .hero__actions .btn {
    width: 100%;
    height: 52px;
    padding: 0 24px;
  }
  /* Вторичная кнопка — легче */
  .hero__actions .btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .6);
    font-weight: 500;
  }

  /* Маркеры доверия — все 4, столбиком; иконки в ровную вертикальную линию */
  .trust {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* строки по левому краю */
    width: fit-content;
    margin-inline: auto;       /* сам столбик — по центру героя */
    gap: 13px;                 /* расстояние между строками маркеров */
    font-size: 16px;
    font-weight: 500;
  }
  .trust__item {
    display: flex;
    align-items: flex-start;   /* иконка сверху, текст с висячим отступом при переносе */
    gap: 10px;
    white-space: normal;
    text-align: left;
  }
  .trust__item + .trust__item::before { display: none; } /* без точек-разделителей */
  .trust__icon { width: 23px; height: 23px; flex-shrink: 0; margin-top: 1px; }

  /* «Как это работает» — полоса горизонтально сверху, шаги в столбик */
  .how__track { height: 92px; border-radius: 18px; }
  .how__strip { --robot-h: 76px; --robot-seat: -15px; --robot-shadow-y: 17px; }
  .how__steps {
    grid-template-columns: 1fr;
    row-gap: 22px;
    margin-top: var(--gap-block);
  }
  .how__step {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
    align-items: start;
  }
  .how__step-num { margin-bottom: 0; grid-row: 1 / span 2; }
  .how__step-title { align-self: center; }
  .how__step::before { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .pain-grid { grid-template-columns: 1fr; }
  /* На узких экранах плашка — короткий текст (одна строка без переноса) */
  .badge__pre { display: none; }
}

/* Уважение к пользовательским настройкам движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint__mouse::after,
  .problem__arrow,
  .how__robot-inner { animation: none; }

  /* Сцена #how: награда сразу видна (робот/шаги ставит JS applyEndState) */
  .how__bridge { opacity: 1; }

  /* Выгоды: всё видно сразу, без анимаций */
  .benefit { opacity: 1; transform: none; transition: none; }
  /* Шкала шума: обе полосы в финальной длине, подпись видна, без анимаций */
  .vol-bar__grow { transform: scaleX(var(--to)); animation: none; }
  .vol-bar__fill { animation: none; }
  .vol-note { opacity: 1; animation: none; }
  .cal-day__mark { opacity: 1; transform: none; transition: none; }

  /* Узел захвата: без пульсации и анимаций появления */
  .fab__btn { animation: none; }
  .fab, .fab__menu, .fab__ic, .lead, .lead__card { transition: none; }
  .model-card { transition: none; }
  .svc-card { transition: none; }
  .mpop, .mpop__card { transition: none; }
  .vlb, .vlb__card, .video-card__play { transition: none; }
  .wz__step.is-current { animation: none; }
  .wz__result { animation: none; }
  .wz__spinner { animation: none; }
  .wz-show__img { transition: none; } /* витрина — мгновенная смена без фейда */
}

/* ==========================================================================
   УЗЕЛ РАННЕГО ЗАХВАТА — строка-триггер, попап, FAB
   ========================================================================== */
/* Строка-триггер в герое (второстепенная) */
.hero__trigger {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}
.hero__trigger-arrow { color: var(--accent); }
.lead-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: color var(--ease), text-decoration-color var(--ease);
}
.lead-link:hover { color: #F7A45A; text-decoration-color: #F7A45A; }

/* ---- Попап заявки ---- */
.lead {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.lead.is-open { opacity: 1; visibility: visible; }
.lead__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 8, .6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lead__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(10, 15, 8, .35);
  transform: scale(.96);
  opacity: .5;
  transition: transform .25s ease, opacity .25s ease;
}
.lead.is-open .lead__card { transform: none; opacity: 1; }
/* Крестик закрытия — sticky: всегда виден при скролле карточки (моб всегда; десктоп —
   когда контент скроллится). Прижат вправо (margin-left:auto), белая подложка 40px + тень. */
.lead__close {
  position: sticky;
  top: 12px;
  margin: 0 0 -40px auto;      /* вправо + отрицательный низ → не толкает контент вниз */
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--dark);
  cursor: pointer;
  display: flex;               /* блочный флекс → margin-left:auto прижимает вправо */
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(10, 15, 8, .18);
  z-index: 6;                  /* выше содержимого карточки */
  transition: background var(--ease);
}
.lead__close::before { content: ""; position: absolute; inset: -3px; } /* тап-область ≥44px */
.lead__close:hover { background: #ECECEA; }
.lead__close svg { width: 18px; height: 18px; }
.lead__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.15;
  color: var(--dark);
  padding-right: 34px;
}
.lead__sub { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
/* Чип выбранной модели (не редактируется) */
.lead__chip {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #FFF3E8;
  border: 1px solid #F5D9BE;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}
.lead__chip[hidden] { display: none; }
.lead__chip span { font-weight: 700; color: var(--accent-hover); }
.lead__form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.lead__field { display: flex; flex-direction: column; gap: 6px; }
.lead__label { font-size: 13px; font-weight: 500; color: var(--muted); }
.lead__input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  padding: 12px 14px;
  border: 1px solid #E0E0DB;
  border-radius: 12px;
  background: #FFFFFF;
  transition: border-color var(--ease);
}
.lead__input::placeholder { color: #AEB2A6; }
.lead__input:focus { outline: none; border-color: var(--accent); }
.lead__textarea { resize: vertical; min-height: 56px; }
.lead__field--err .lead__input { border-color: #D9483B; }
.lead__err { font-size: 12px; color: #D9483B; }
.lead__err:empty { display: none; }
.lead__submit { width: 100%; margin-top: 4px; }
.lead__alt { margin: 16px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.lead__alt a { color: var(--accent); font-weight: 500; }
.lead__consent { margin: 12px 0 0; font-size: 11px; color: #9AA093; text-align: center; line-height: 1.4; }
/* Состояние успеха */
.lead__success-state { text-align: center; padding: 8px 0 4px; }
.lead__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  margin-bottom: 18px;
}
.lead__check svg { width: 32px; height: 32px; }
.lead__ok { width: 100%; margin-top: 20px; }

/* Мобайл: bottom-sheet снизу на всю ширину */
@media (max-width: 560px) {
  .lead { align-items: flex-end; padding: 0; }
  .lead__card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    transform: translateY(24px);
  }
  .lead.is-open .lead__card { transform: none; }
}

/* ---- Плавающая кнопка (FAB) ---- */
.fab {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--cookie-h, 0px)); /* приподнимаемся над cookie-баннером, пока он виден */
  z-index: 150; /* ниже оверлея попапа (200) */
  transition: bottom .25s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  /* КРИТИЧНО: контейнер FAB высокий (свёрнутое меню занимает разметку) и лежит поверх
     контента (z-index 150). Без этого его прозрачная зона над кнопкой съедала тапы по
     нижне-правым элементам под ним (плитки визарда «до 20 соток» / «есть заметные уклоны»).
     Тапы ловят только сама кнопка и пункты меню — пустые зоны прозрачны для касаний. */
  pointer-events: none;
}
.fab.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab__btn, .fab__item { pointer-events: auto; }
.fab.is-hidden-by-modal { opacity: 0; visibility: hidden; } /* спрятан, пока попап открыт */
.fab__btn {
  position: relative;
  width: 56px; height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(240, 128, 25, .40);
  transition: background var(--ease);
  animation: fabPulse 4s ease-in-out infinite;
}
.fab__btn:hover { background: var(--accent-hover); }
.fab__ic {
  position: absolute;
  width: 26px; height: 26px;
  transition: opacity .2s ease, transform .2s ease;
}
.fab__ic--close { opacity: 0; transform: rotate(-90deg); }
.fab.is-menu-open .fab__ic--main { opacity: 0; transform: rotate(90deg); }
.fab.is-menu-open .fab__ic--close { opacity: 1; transform: none; }
@keyframes fabPulse {
  0%      { box-shadow: 0 8px 22px rgba(240, 128, 25, .40), 0 0 0 0 rgba(240, 128, 25, .35); }
  70%, 100% { box-shadow: 0 8px 22px rgba(240, 128, 25, .40), 0 0 0 14px rgba(240, 128, 25, 0); }
}
/* Меню FAB — раскрывается вверх */
.fab__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(.98);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.fab.is-menu-open .fab__menu { opacity: 1; visibility: visible; transform: none; }
.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--dark);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(10, 15, 8, .15);
  transition: transform var(--ease);
}
.fab__item:hover { transform: translateX(-3px); }
.fab__item-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  flex-shrink: 0;
}
.fab__item-ic svg { width: 15px; height: 15px; }

@media (max-width: 768px) {
  .fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom) + var(--cookie-h, 0px)); } /* поднят над жестовой зоной и cookie-баннером */
}

/* ==========================================================================
   БЛОК 5.5 — ВИДЕО «РОБОТЫ В РАБОТЕ» (#videos: сетка постеров + лайтбокс)
   ========================================================================== */
.videos { background: var(--bg); padding-top: 0; padding-bottom: var(--section-pad); }
.videos__title {
  margin: 0 auto var(--gap-heading);
  max-width: 820px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.videos__subtitle {
  margin: 0 auto var(--gap-block);
  text-align: center; color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}
.videos-grid { display: grid; grid-template-columns: 1fr; gap: 28px 24px; }
@media (min-width: 700px) { .videos-grid { grid-template-columns: repeat(2, 1fr); } }

/* Карточка: кнопка-постер + название */
.video-card__media {
  position: relative;
  display: block; width: 100%;
  padding: 0; border: 0; background: #F5F5F5;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.video-card__media:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-card__poster { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute; left: 50%; top: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #FFFFFF; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(10, 15, 8, .28);
  transition: transform var(--ease);
}
.video-card__play svg { width: 24px; height: 24px; margin-left: 2px; } /* оптический центр треугольника */
.video-card__media:hover .video-card__play,
.video-card__media:focus-visible .video-card__play { transform: translate(-50%, -50%) scale(1.06); }
.video-card__title {
  margin: 14px 2px 0;
  font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Лайтбокс: паттерн .mpop (оверлей + карточка), но карточка — просто рамка 16:9 */
.vlb {
  position: fixed; inset: 0; z-index: 190;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.vlb.is-open { opacity: 1; visibility: visible; }
.vlb__overlay { position: absolute; inset: 0; background: rgba(10, 15, 8, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vlb__card {
  position: relative; z-index: 1;
  /* ширина ≤960px и не выше вьюпорта: 16:9 от (100vh − отступы − место под крестик) */
  width: 100%; max-width: min(960px, calc((100vh - 96px) * 16 / 9));
  transform: scale(.97); opacity: .5;
  transition: transform .25s ease, opacity .25s ease;
}
.vlb.is-open .vlb__card { transform: none; opacity: 1; }
.vlb__frame {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 15, 8, .45);
}
.vlb__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Крестик над видео справа-сверху — не перекрывает кадр; на мобайле уходит внутрь рамки */
.vlb__close {
  position: absolute; right: 0; top: -52px; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #FFFFFF; color: var(--dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(10, 15, 8, .18);
  transition: background var(--ease);
}
.vlb__close::before { content: ""; position: absolute; inset: -3px; } /* тап-область ≥44px */
.vlb__close:hover { background: #ECECEA; }
.vlb__close svg { width: 18px; height: 18px; }
@media (max-width: 560px) {
  .vlb { padding: 12px; }
  .vlb__close { top: 8px; right: 8px; } /* поверх видео: снаружи места нет, крестик всегда виден */
}

/* ==========================================================================
   БЛОК 6 — МОДЕЛИ (сетка карточек + попапы моделей)
   ========================================================================== */
.models { background: var(--bg); padding-top: 0; padding-bottom: var(--section-pad); }
.models__title {
  margin: 0 auto var(--gap-heading);
  max-width: 820px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.models__subtitle {
  margin: 0 auto var(--gap-block);
  text-align: center; color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}
.models-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px)  { .models-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .models-grid { grid-template-columns: repeat(3, 1fr); } }

/* Карточка модели */
.model-card {
  position: relative;
  display: flex; flex-direction: column;
  background: #F5F5F5;
  border-radius: var(--radius-lg);
  padding: 16px 20px 22px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.model-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.model-card__photo {
  position: relative;
  height: 220px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.model-card__photo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.model-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--accent); color: #FFFFFF;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 5px 12px; border-radius: 999px;
}
/* Бейдж «Беспроводной» — графит (--dark), визуально отличен от оранжевого «Хит».
   Тот же угол; конфликта нет (на одной модели только один из бейджей). */
.model-card__badge--wireless { background: var(--dark); }
.model-card__area {
  align-self: flex-start;
  background: var(--accent); color: #FFFFFF;
  font-size: 14px; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
  margin-bottom: 12px;
}
.model-card__title { margin: 0 0 14px; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--dark); }
.model-card__specs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.model-card__specs li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.model-card__ic { display: inline-flex; width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.model-card__ic svg { width: 100%; height: 100%; }
.model-card__price { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--dark); margin-top: auto; margin-bottom: 16px; }
.model-card__actions { display: flex; gap: 10px; }
.model-card__actions > * { flex: 1; }
.model-card__actions .btn { padding: 13px 16px; font-size: 15px; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 16px; border-radius: 999px;
  border: 1px solid #D6D8D1; background: #FFFFFF; color: var(--dark);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  transition: border-color var(--ease), background var(--ease);
}
.btn-outline:hover { border-color: var(--dark); background: #FAFAF9; }

/* ---- Попап модели ---- */
.mpop {
  position: fixed; inset: 0; z-index: 190; /* ниже попапа заявки (200) */
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.mpop.is-open { opacity: 1; visibility: visible; }
.mpop__overlay { position: absolute; inset: 0; background: rgba(10, 15, 8, .6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mpop__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 880px; max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #FFFFFF; border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(10, 15, 8, .35);
  transform: scale(.97); opacity: .5;
  transition: transform .25s ease, opacity .25s ease;
}
.mpop.is-open .mpop__card { transform: none; opacity: 1; }
/* Крестик модели — sticky: виден при скролле длинной карточки (MI 2002 и т.п.).
   Карточка без padding → инсеты 12px через margin; margin-left:auto прижимает вправо. */
.mpop__close {
  position: sticky; top: 12px; z-index: 6;
  margin: 12px 12px -52px auto;   /* top/right 12; bottom -(40+12) → не толкает контент */
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #FFFFFF; color: var(--dark); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(10, 15, 8, .18);
  transition: background var(--ease);
}
.mpop__close::before { content: ""; position: absolute; inset: -3px; } /* тап-область ≥44px */
.mpop__close:hover { background: #ECECEA; }
.mpop__close svg { width: 18px; height: 18px; }

/* Шапка попапа: галерея + инфо */
.mpop__head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px; }
/* grid-ячейки не раздуваются под min-content: лента превью получает overflow-x:auto,
   а не распирает карточку (MI 2002 — 12 фото) */
.mpop__gallery, .mpop__info { min-width: 0; }
.gal__stage {
  position: relative; height: 300px;
  border-radius: 16px; overflow: hidden; background: #F5F5F5;
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
}
.gal__main { max-width: 90%; max-height: 90%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.gal__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--dark); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(10, 15, 8, .18);
  transition: background var(--ease);
}
.gal__nav:hover { background: #FFFFFF; }
.gal__prev { left: 10px; } .gal__next { right: 10px; }
.gal__nav svg { width: 20px; height: 20px; }
.gal__count { position: absolute; right: 12px; bottom: 12px; background: rgba(26, 31, 22, .65); color: #FFFFFF; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.gal__thumb { flex: 0 0 auto; width: 62px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #F5F5F5; cursor: pointer; overflow: hidden; }
.gal__thumb.is-active { border-color: var(--accent); }
.gal__thumb img { width: 100%; height: 100%; object-fit: contain; }

.mpop__info { display: flex; flex-direction: column; align-items: flex-start; }
.mpop__area { background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 14px; padding: 5px 14px; border-radius: 999px; }
.mpop__title { margin: 12px 0 0; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--dark); }
.mpop__price { font-family: var(--font-heading); font-weight: 700; font-size: 30px; color: var(--dark); margin: 14px 0 20px; }
.mpop__order { width: 100%; }

/* Тело попапа */
.mpop__body { padding: 4px 28px 28px; }
.mpop__lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.mpop__section-title { font-family: var(--font-heading); font-weight: 600; font-size: 15px; color: var(--dark); margin: 24px 0 12px; }
.mtiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mtile { display: flex; align-items: center; gap: 10px; background: #F5F5F5; border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--dark); }
.mtile__ic { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #FFFFFF; align-items: center; justify-content: center; flex-shrink: 0; }
.mtile__ic svg { width: 15px; height: 15px; }

.mpop__specs { border: 1px solid #EEEEEE; border-radius: 16px; overflow: hidden; }
.mspec__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; font-size: 14px; }
.mspec__row:nth-child(odd) { background: #FAFAF9; }
.mspec__k { color: var(--muted); }
.mspec__v { color: var(--dark); font-weight: 500; text-align: right; }
.mpop__specs:not(.is-expanded) .mspec__row--extra { display: none; }
.mpop__more { width: 100%; border: 0; border-top: 1px solid #EEEEEE; background: #FFFFFF; color: var(--accent); font: inherit; font-weight: 700; font-size: 14px; padding: 12px; cursor: pointer; }
.mpop__more:hover { background: #FFF6EE; }

.mkit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; }
.mkit li { position: relative; padding-left: 18px; font-size: 14px; color: var(--dark); }
.mkit li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.mpop__foot { margin-top: 26px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mpop__foot .mpop__order { max-width: 360px; }
.mpop__hint { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Планшет: шапка попапа в одну колонку */
@media (max-width: 880px) {
  .mpop__head { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}
/* Мобайл: bottom-sheet */
@media (max-width: 560px) {
  .mpop { align-items: flex-end; padding: 0; }
  .mpop__card { max-width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; transform: translateY(24px); }
  .mpop.is-open .mpop__card { transform: none; }
  .mpop__head { padding: 22px 16px; }
  .mpop__body { padding: 4px 16px 22px; }
  .gal__stage { height: 240px; }
  .mtiles, .mkit { grid-template-columns: 1fr; }
}

/* ==========================================================================
   БЛОК 7 — ПОДБОР (визард)
   ========================================================================== */
.podbor { background: var(--bg); padding-top: 0; padding-bottom: var(--section-pad); }
.podbor__title {
  margin: 0 auto var(--gap-heading);
  max-width: 820px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.podbor__subtitle {
  margin: 0 auto var(--gap-block);
  text-align: center; color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
}

.wizard {
  max-width: 960px; margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #EEEEEE;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 44px rgba(26, 31, 22, .08);
  display: flex;
  flex-direction: column; /* мобайл: витрина полосой сверху, шаги снизу */
}
/* min-height = высота самого высокого состояния (мобайл: шаг 1 с 6 плитками ≈424px)
   → переходы между шагами/результатом не дёргают высоту страницы. Контент прижат
   к верху единообразно; на коротком шаге 2 снизу остаётся пустое место — это норма.
   Десктоп высоту берёт от витрины (align-items:stretch) и так стабилен. */
.wz__main { padding: 24px 20px 26px; order: 2; min-height: 440px; }

/* ---- Витрина ---- */
.wz__show { display: flex; align-items: center; gap: 14px; padding: 14px 16px; order: 1; }
.wz-show__stage {
  position: relative;
  flex: 0 0 128px; height: 116px;
  border-radius: 18px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  /* CSS-«газон»: вертикальный градиент зелёных сцены #how + едва заметные полосы покоса */
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 22px, rgba(255, 255, 255, 0) 22px 44px),
    linear-gradient(180deg, #A8CF8E 0%, #7BA860 52%, #5E8C4A 100%);
}
.wz-show__shadow {
  position: absolute; left: 50%; bottom: 14%; z-index: 0;
  width: 52%; height: 16px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(20, 23, 15, .55), rgba(20, 23, 15, 0) 70%);
  opacity: .3; filter: blur(5px);
}
.wz-show__img {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  transform: translate(-50%, -52%);
  max-width: 70%; max-height: 78%; object-fit: contain;
  -webkit-user-drag: none; user-select: none;
  opacity: 0; transition: opacity .35s ease;
}
.wz-show__img.is-on { opacity: 1; }
.wz-show__cap { flex: 1; min-width: 0; min-height: 44px; text-align: left; }
.wz-show__hint { font-size: 14px; font-weight: 500; color: var(--muted); }
.wz-show__name { display: block; font-weight: 700; font-size: 15px; line-height: 1.25; color: var(--dark); }
.wz-show__area { display: inline-block; background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
/* flex-wrap: цена переносится на свою строку, если не влезает рядом с плашкой площади
   (иначе на узком мобайле «104 990 ₽» вылезала за правый край карточки/экрана) */
.wz-show__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 6px; }
.wz-show__meta b { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--dark); white-space: nowrap; }

/* Десктоп: две колонки — вопросы слева, витрина справа (~40%) */
@media (min-width: 1024px) {
  .wizard { display: grid; grid-template-columns: 1.5fr 1fr; align-items: stretch; }
  .wz__main { order: 0; padding: 30px 34px 34px; }
  .wz__show { order: 0; flex-direction: column; align-items: stretch; gap: 14px; padding: 30px 30px 30px 8px; }
  .wz-show__stage { flex: 1 1 auto; height: auto; min-height: 320px; border-radius: 20px; }
  .wz-show__cap { flex: none; text-align: center; }
  .wz-show__meta { justify-content: center; }
}

/* Прогресс */
.wz__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.wz__back { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: color var(--ease); }
.wz__back:hover { color: var(--accent); }
.wz__back[hidden] { display: none; }
.wz__count { font-size: 14px; font-weight: 500; color: var(--muted); }
.wz__dots { display: flex; gap: 6px; margin-left: auto; }
.wz__dot { width: 8px; height: 8px; border-radius: 50%; background: #DADED3; transition: background var(--ease); }
.wz__dot.is-active { background: var(--accent); }

/* Шаги */
.wz__step { display: none; }
.wz__step.is-current { display: block; animation: wzIn .3s ease; }
/* Появление шага/результата — ТОЛЬКО opacity (без translateX): плитки и кнопки
   («Заказать», «Пройти заново») не «уезжают» под пальцем → тап срабатывает сразу. */
@keyframes wzIn { from { opacity: 0; } to { opacity: 1; } }
.wz__q { margin: 0 0 18px; text-align: center; font-family: var(--font-heading); font-weight: 600; font-size: clamp(20px, 2.4vw, 26px); color: var(--dark); }
.wz__tiles { display: grid; gap: 12px; }
.wz__tiles--area, .wz__tiles--3 { grid-template-columns: repeat(3, 1fr); }
.wz__tiles--2 { grid-template-columns: repeat(2, 1fr); }
.wz__tile {
  min-height: 56px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 14px 16px; text-align: center;
  border: 1.5px solid #E0E2DC; border-radius: 14px;
  background: #FFFFFF; color: var(--dark);
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  /* без transform в переходе → нет «хвостов» промежуточных состояний при смене шага */
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.wz__tile:hover { border-color: var(--accent); }
.wz__tile small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
/* is-picked — только цвет (без transform), чтобы плитка не двигалась при выборе */
.wz__tile.is-picked { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.wz__tile.is-picked small { color: rgba(255, 255, 255, .85); }
.wz__hint { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

/* Загрузка */
.wz__loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 52px 0; font-size: 16px; color: var(--muted); }
.wz__loading[hidden] { display: none; }
.wz__spinner { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #E4E7E0; border-top-color: var(--accent); animation: wzSpin .7s linear infinite; }
@keyframes wzSpin { to { transform: rotate(360deg); } }

/* Результат */
.wz__result[hidden] { display: none; }
.wz__result { animation: wzIn .3s ease; }
.wz-res__label { margin: 0 0 14px; font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--dark); }
.wz-res__note { margin: 0 0 14px; font-size: 14px; color: var(--dark); background: #FFF3E8; border: 1px solid #F5D9BE; border-radius: 12px; padding: 10px 14px; }
/* Инфо-блок результата (фото — в витрине) */
.wz-res__info { background: #F5F5F5; border-radius: 16px; padding: 16px 18px; }
.wz-mini { display: flex; gap: 18px; align-items: center; background: #F5F5F5; border-radius: 18px; padding: 18px; }
.wz-mini__photo { flex: 0 0 130px; height: 120px; background: #FFFFFF; border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wz-mini__photo img { max-width: 86%; max-height: 86%; object-fit: contain; }
.wz-mini__info { flex: 1; min-width: 0; }
.wz-mini__area { display: inline-block; background: var(--accent); color: #FFFFFF; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.wz-mini__title { margin: 8px 0 0; font-weight: 700; font-size: 17px; color: var(--dark); }
.wz-mini__specs { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.wz-mini__specs li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.wz-mini__ic { display: inline-flex; width: 16px; height: 16px; color: var(--accent); }
.wz-mini__ic svg { width: 100%; height: 100%; }
.wz-mini__price { font-family: var(--font-heading); font-weight: 700; font-size: 22px; color: var(--dark); margin-top: 10px; }
.wz-res__actions { display: flex; gap: 12px; margin-top: 20px; }
.wz-res__actions > * { flex: 1; }
.wz-res__reserve { margin-top: 16px; font-size: 14px; color: var(--muted); background: #FAFAF9; border-radius: 12px; padding: 12px 16px; }
.wz-res__reserve-tag { display: inline-block; font-weight: 700; color: var(--accent); margin-right: 4px; }
.wz-res__restart { display: block; margin: 20px auto 0; padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; }
.wz-res__restart:hover { color: var(--accent); }

@media (max-width: 768px) {
  .wizard { padding: 22px 18px 26px; }
  .wz__tiles--area { grid-template-columns: repeat(2, 1fr); } /* 2x3 */
  .wz__tiles--3 { grid-template-columns: 1fr; }
  .wz-mini { flex-direction: column; align-items: stretch; text-align: center; }
  .wz-mini__photo { flex: none; width: 100%; height: 150px; }
  .wz-mini__specs { justify-content: center; }
  .wz-res__actions { flex-direction: column; }
}
@media (max-width: 480px) {
  .wz__tiles--2 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   БЛОК 8 — СЕРВИС
   ========================================================================== */
/* Тонированная секция несёт свой верхний отступ (сосед сверху даёт 0):
   белый низ подбора + зелёный верх сервиса = та же пара отступов, что у how/benefits */
.service { background: var(--tint-green); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.service__title {
  margin: 0 auto var(--gap-heading);
  max-width: 860px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.service__subtitle {
  margin: 0 auto 12px;
  max-width: 760px; text-align: center;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 20px);
}
.service__lead {
  margin: 0 auto var(--gap-block);
  max-width: 720px; text-align: center;
  color: var(--muted); font-size: 15px; line-height: 1.55;
}

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px)  { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc-card {
  background: #FFFFFF; /* на тонированном фоне серый #F5F5F5 сливается */
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.svc-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--scene-green); color: #FFFFFF; margin-bottom: 20px;
}
.svc-card__icon svg { width: 24px; height: 24px; }
.svc-card__title { margin: 0 0 10px; font-weight: 700; font-size: 19px; color: var(--dark); }
.svc-card__text { margin: 0; font-size: 15px; color: var(--muted); }

/* Акцентная карточка — тёмный фон, белый текст, оранжевые детали (смотрится дороже) */
.svc-card--accent {
  background: var(--dark);
  box-shadow: 0 14px 40px rgba(26, 31, 22, .26);
}
.svc-card--accent:hover { box-shadow: 0 18px 50px rgba(26, 31, 22, .34); }
.svc-card--accent .svc-card__title { color: #FFFFFF; }
.svc-card--accent .svc-card__text { color: rgba(255, 255, 255, .78); }
.svc-card--accent .svc-card__icon { background: var(--accent); color: #FFFFFF; }

/* Низ блока — адрес + кнопка */
.svc-foot {
  margin-top: var(--gap-block);
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center;
}
.svc-foot__addr {
  margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--dark);
}
.svc-foot__addr svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

@media (max-width: 768px) {
  .svc-card { padding: 24px; }
  .svc-foot__addr { font-size: 15px; }
}

/* ==========================================================================
   БЛОК 9 — О КОМПАНИИ
   ========================================================================== */
/* Свой верхний отступ: секция идёт за тонированным #service (как #how за #problem) */
.about { background: var(--bg); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.about__title {
  margin: 0 auto var(--gap-heading);
  max-width: 860px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.about__subtitle {
  margin: 0 auto var(--gap-block);
  max-width: 720px; text-align: center;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 20px);
}

/* Часть А — текст + факты */
.about__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) {
  .about__grid { grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: start; }
}
.about__text { display: flex; flex-direction: column; gap: 16px; }
.about__text p {
  margin: 0;
  font-size: 16px; line-height: 1.6; color: var(--muted);
}

.about__facts { display: flex; flex-direction: column; gap: 16px; }
.fact {
  display: flex; align-items: flex-start; gap: 16px;
  background: #F5F5F5;
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: transform var(--ease), box-shadow var(--ease);
}
.fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.fact__icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
}
.fact__icon svg { width: 22px; height: 22px; }
.fact__body { min-width: 0; }
.fact__title { margin: 0 0 4px; font-weight: 700; font-size: 17px; color: var(--dark); }
.fact__text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* Часть Б — полоса бренда VILLARTEC (тёмный фон) */
.brand {
  margin-top: var(--gap-block);
  display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center;
  /* Фактурная травяная подложка + тёмный оверлей: текст остаётся читаемым, --dark — фолбэк */
  background:
    linear-gradient(rgba(10, 15, 8, .78), rgba(10, 15, 8, .66)),
    url("../media/bg/grass-2560.webp") top center / 2560px auto repeat,
    var(--grass-fallback);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 14px 40px rgba(26, 31, 22, .26);
}
@media (min-width: 768px) {
  .brand { grid-template-columns: 1.4fr .8fr; gap: 32px; padding: 44px 48px; }
}
.brand__title {
  margin: 0 0 14px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; color: #FFFFFF;
}
.brand__title::after {
  content: ""; display: block;
  width: 48px; height: 3px; margin-top: 14px;
  background: var(--accent); border-radius: 2px;
}
.brand__text { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.brand__media { order: 2; }
.brand__media img {
  display: block; width: 100%; height: auto;
  max-width: 320px; margin: 0 auto;
  aspect-ratio: 1 / 1; object-fit: contain;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .4));
}
@media (min-width: 768px) {
  .brand__body { order: 1; }
  .brand__media { order: 2; max-width: none; }
}

@media (max-width: 768px) {
  .brand__media img { max-width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .fact { transition: none; }
}

/* ==========================================================================
   БЛОК 10 — ОТЗЫВЫ
   ========================================================================== */
.reviews { background: var(--bg); padding-top: 0; padding-bottom: var(--section-pad); }
.reviews__title {
  margin: 0 auto var(--gap-heading);
  max-width: 860px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.reviews__subtitle {
  margin: 0 auto var(--gap-block);
  max-width: 720px; text-align: center;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 20px);
}

/* Плашка рейтинга Яндекс Карт */
.rating-plate {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
  background: #F5F5F5; border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 40px;
}
.rating-plate__info { display: flex; flex-direction: column; gap: 6px; }
.rating-plate__label { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rating-plate__row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rating-plate__score {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--dark);
}
.rating-plate__stars { display: inline-flex; gap: 3px; color: var(--accent); }
.rating-plate__stars svg { width: 22px; height: 22px; }
.rating-plate__count { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  .rating-plate { flex-direction: column; align-items: flex-start; padding: 24px; }
  .rating-plate__btn { width: 100%; }
}

/* Сетка карточек отзывов */
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }
.review-card {
  display: flex; flex-direction: column;
  background: #F5F5F5; border-radius: var(--radius-lg); padding: 26px 24px;
}
.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card__avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  font-weight: 700; font-size: 18px;
}
.review-card__name { font-weight: 700; font-size: 16px; color: var(--dark); }
.review-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.review-card__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.review-card__stars svg { width: 14px; height: 14px; }
.review-card__date { font-size: 12px; color: var(--muted); }
.review-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.review-card__link {
  margin-top: auto; padding-top: 14px;
  font-size: 13px; color: var(--accent); text-decoration: none; width: fit-content;
}
.review-card__link:hover { text-decoration: underline; }

/* ==========================================================================
   БЛОК 11 — КАК МЫ РАБОТАЕМ (лента шагов)
   ========================================================================== */
.steps { background: var(--bg); padding-top: 0; padding-bottom: var(--section-pad); }
.steps__title {
  margin: 0 auto var(--gap-heading);
  max-width: 860px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.steps__subtitle {
  margin: 0 auto var(--gap-block);
  max-width: 720px; text-align: center;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 20px);
}

/* Лента: базово — вертикальная (мобайл), линия слева */
.steps-track { position: relative; display: flex; flex-direction: column; gap: 28px; }

.steps-line { position: absolute; z-index: 0; left: 23px; top: 24px; bottom: 24px; width: 2px; }
.steps-line__fill {
  position: absolute; inset: 0;
  width: 100%; height: 0;
  background-image: repeating-linear-gradient(180deg, var(--accent) 0 7px, transparent 7px 15px);
  transition: width .9s ease, height .9s ease;
}
.steps-track.is-drawn .steps-line__fill { height: 100%; }

.step {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; gap: 18px;
  /* Появление — ТОЛЬКО opacity (без translateY): узел не двигается, тап не промахивается */
  opacity: 0;
  transition: opacity .4s ease;
}
.step.is-in { opacity: 1; }
.step__node {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF;
  font-family: var(--font-heading); font-weight: 600; font-size: 20px;
  box-shadow: 0 0 0 6px var(--bg); /* чистый разрыв пунктира под узлом */
}
.step__body { padding-top: 4px; }
.step__title { margin: 0 0 6px; font-weight: 700; font-size: 18px; color: var(--dark); }
.step__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 44ch; }

.steps__cta { margin-top: var(--gap-block); text-align: center; }

/* Десктоп/планшет — горизонтальная лента, линия по центрам узлов */
@media (min-width: 768px) {
  .steps-track { flex-direction: row; align-items: flex-start; gap: 16px; }
  .step { flex: 1; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .step__body { padding-top: 0; }
  .step__title { font-size: 17px; }
  .step__text { font-size: 14px; max-width: 24ch; margin: 0 auto; }

  .steps-line { left: 10%; right: 10%; top: 24px; bottom: auto; width: auto; height: 2px; }
  .steps-line__fill {
    width: 0; height: 100%;
    background-image: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
  }
  .steps-track.is-drawn .steps-line__fill { width: 100%; }
}

@media (min-width: 1024px) {
  .steps-track { gap: 20px; }
  .step__title { font-size: 18px; }
  .step__text { font-size: 15px; max-width: 26ch; }
}

/* Reduced-motion — всё статично, линия сразу нарисована */
@media (prefers-reduced-motion: reduce) {
  .step { opacity: 1; transform: none; transition: none; }
  .steps-line__fill { transition: none; }
}

/* ==========================================================================
   БЛОК 12 — ЭКОНОМИКА (зелёный остров: белая карта на травяном фоне)
   ========================================================================== */
.economy {
  /* Своя верхняя и нижняя рамка зелени вокруг карты — по общей шкале --section-pad.
     Боковые 16px — гарантированный отступ карты от краёв экрана на 375. */
  padding: var(--section-pad) 16px;
  /* Травяной фон + лёгкий тёмный оверлей для глубины; НЕ fixed (ломается на iOS).
     grass-2560.webp — бесшовная плитка (зеркальный период), масштаб 2560px общий с #final */
  background:
    linear-gradient(rgba(10, 15, 8, .25), rgba(10, 15, 8, .25)),
    url("../media/bg/grass-2560.webp") top center / 2560px auto repeat,
    var(--grass-fallback);
}
.economy__card {
  max-width: 1080px; margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(26, 31, 22, .28);
  padding: clamp(28px, 5vw, 64px);
}
.economy__title {
  margin: 0 auto var(--gap-heading);
  max-width: 760px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.economy__subtitle {
  margin: 0 auto var(--gap-block);
  max-width: 640px; text-align: center;
  color: var(--muted); font-size: clamp(16px, 1.6vw, 20px);
}

/* Сравнение — две колонки */
.econ-compare { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .econ-compare { grid-template-columns: 1fr 1fr; gap: 24px; } }
.econ-col {
  background: #F5F5F5;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column;
}
.econ-col--robot {
  background: #FFF7F0;                 /* лёгкий оранжевый тон — акцентная */
  border: 1.5px solid var(--accent);
  padding: 26.5px;                     /* компенсация 1.5px рамки → высоты колонок совпадают */
}
.econ-col__title {
  margin: 0 0 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(19px, 2vw, 22px); color: var(--dark);
}
.econ-list { list-style: none; margin: 0 0 18px; padding: 0; }
.econ-list__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 11px 0; border-bottom: 1px solid rgba(26, 31, 22, .08);
}
.econ-list__row span { font-size: 15px; color: var(--muted); }
.econ-list__row b { flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--dark); text-align: right; }
.econ-col--robot .econ-list__row { border-bottom-color: rgba(240, 128, 25, .18); }
.econ-col__total {
  margin: auto 0 0;                    /* прижат к низу колонки — итоги на одной линии */
  padding-top: 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.25; color: var(--dark);
}
.econ-col--robot .econ-col__total { color: var(--accent-hover); }

.econ-note-mid {
  margin: 24px auto 0; max-width: 620px; text-align: center;
  font-size: 15px; line-height: 1.55; color: var(--muted);
}

/* Мини-шкала окупаемости */
.econ-timeline { margin-top: var(--gap-block); }
.econ-tl__track {
  position: relative; height: 14px; border-radius: 999px;
  background: #ECEFEA; overflow: hidden;
}
.econ-tl__fill {
  position: absolute; top: 0; bottom: 0;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s ease;
}
.econ-tl__fill--paid { left: 0; width: 66.6%; background: var(--accent); }
.econ-tl__fill--save { left: 66.6%; right: 0; background: #4E9A3D; transition-delay: .5s; }
.econ-timeline.is-drawn .econ-tl__fill { transform: scaleX(1); }
.econ-tl__marks {
  display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 8px;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
.econ-tl__marks span { text-align: center; }
.econ-tl__legend {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 14px;
  font-size: 13px;
}
.econ-tl__leg { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.econ-tl__leg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.econ-tl__leg--paid::before { background: var(--accent); }
.econ-tl__leg--save::before { background: #4E9A3D; }

.econ-disclaimer {
  margin: 28px 0 0; text-align: center;
  font-size: 12px; line-height: 1.5; color: var(--muted);
}
.economy__cta { margin-top: var(--gap-block); text-align: center; }

@media (max-width: 768px) {
  .econ-col, .econ-col--robot { padding: 22px; }
  .econ-list__row { flex-direction: column; gap: 2px; }
  .econ-list__row b { text-align: left; }
}

/* Reduced-motion — шкала статична (сразу заполнена) */
@media (prefers-reduced-motion: reduce) {
  .econ-tl__fill { transform: scaleX(1); transition: none; }
}

/* ==========================================================================
   БЛОК 13 — ГАРАНТИИ
   ========================================================================== */
/* padding-top НЕ 0: секция идёт после ЗЕЛЁНОГО #economy (у его нижнего паддинга фон зелёный),
   поэтому нужен свой белый отступ сверху — как белый зазор перед зелёным островом. */
.warranty { background: var(--bg); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.warranty__title {
  margin: 0 auto var(--gap-block);
  max-width: 820px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.warr-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .warr-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.warr-card { background: #F5F5F5; border-radius: var(--radius-lg); padding: 28px; }
.warr-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #FFFFFF; margin-bottom: 18px;
}
.warr-card__icon svg { width: 24px; height: 24px; }
.warr-card__title { margin: 0 0 10px; font-weight: 700; font-size: 19px; color: var(--dark); }
.warr-card__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ==========================================================================
   БЛОК 14 — FAQ (аккордеон)
   ========================================================================== */
.faq { background: var(--bg); padding-top: 0; padding-bottom: var(--section-pad); }
.faq__title {
  margin: 0 auto var(--gap-block);
  max-width: 820px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #F5F5F5; border-radius: var(--radius-lg); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; margin: 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-body); font-weight: 700; color: var(--dark);
  font-size: clamp(16px, 1.8vw, 18px); line-height: 1.35;
}
.faq-q:hover .faq-q__text { color: var(--accent-hover); }
.faq-q__ic { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.faq-q__ic::before, .faq-q__ic::after {
  content: ""; position: absolute; background: var(--accent); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.faq-q__ic::before { top: 9px; left: 2px; right: 2px; height: 2px; }
.faq-q__ic::after  { left: 9px; top: 2px; bottom: 2px; width: 2px; }
.faq-item.is-open .faq-q__ic::after { transform: scaleY(0); opacity: 0; }
/* Плавная высота без измерения: 0fr → 1fr; контент остаётся в DOM (для SEO).
   Короткая длительность (.25s) → меньше окно, когда открытие одного вопроса
   сдвигает нижние и тап по ним может промахнуться. Сами кнопки-вопросы статичны. */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .25s ease; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a__inner p { margin: 0; padding: 0 24px 22px; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ==========================================================================
   БЛОК 15 — ФИНАЛЬНАЯ ФОРМА (трава + тёмный оверлей)
   ========================================================================== */
.final {
  padding-block: var(--section-pad);
  /* Оверлей ослаблен (.42/.35): трава фактурная, как в #economy; файл и масштаб — те же */
  background:
    linear-gradient(rgba(10, 15, 8, .42), rgba(10, 15, 8, .35)),
    url("../media/bg/grass-2560.webp") top center / 2560px auto repeat,
    var(--grass-fallback);
}
.final__inner { text-align: center; }
.final__title {
  margin: 0 auto var(--gap-heading); max-width: 720px;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: #FFFFFF;
}
.final__subtitle {
  margin: 0 auto; max-width: 600px;
  color: rgba(255, 255, 255, .86); font-size: clamp(16px, 1.6vw, 20px); line-height: 1.5;
}
.final__card {
  max-width: 520px; margin: var(--gap-block) auto 0;
  background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10, 15, 8, .4);
  padding: clamp(24px, 4vw, 40px); text-align: left;
}
.final__card .lead__form { margin-top: 0; }
.final__alt { margin: 8px 0 0; color: #FFFFFF; font-size: 14px; }
.final__card + .final__alt { margin-top: 20px; }
.final__alt a { color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   БЛОК 16 — КОНТАКТЫ
   ========================================================================== */
/* padding-top НЕ 0: секция идёт после ЗЕЛЁНОГО #final — нужен свой белый отступ сверху. */
.contacts { background: var(--bg); padding-top: var(--section-pad); padding-bottom: var(--section-pad); }
.contacts__title {
  margin: 0 auto var(--gap-block);
  max-width: 820px; text-align: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px); line-height: 1.12; color: var(--dark);
}
.contacts__grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: stretch; }
@media (min-width: 768px) { .contacts__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.contacts__addr {
  margin: 0; display: flex; align-items: flex-start; gap: 10px;
  font-weight: 700; font-size: clamp(18px, 2vw, 22px); color: var(--dark); line-height: 1.3;
}
.contacts__addr svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.contacts__desc { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.contacts__list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.contacts__list a { color: var(--dark); font-weight: 500; font-size: 16px; text-decoration: none; }
.contacts__list a:hover { color: var(--accent); }
.contacts__route { margin-top: 24px; }
@media (max-width: 768px) {
  /* на мобайле кнопка «Построить маршрут» — по центру колонки */
  .contacts__route { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
}
/* Встроенная Яндекс.Карта */
.contacts__map {
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #F5F5F5; /* подложка, пока iframe грузится */
}
.contacts__map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 768px) {
  .contacts__map { height: 260px; }
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer { position: relative; background: var(--dark); color: rgba(255, 255, 255, .7); padding: 52px 0 32px; }
/* Тонкая полоса травы сверху как «земля» */
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px;
  /* Срез плитки в её натуральном масштабе — кромка резкая, без растягивания */
  background: url("../media/bg/grass-2560.webp") top center / 2560px auto repeat var(--grass-fallback);
}
.footer__inner { display: flex; flex-direction: column; gap: 24px; }
.footer__logo { font-family: var(--font-heading); font-weight: 700; font-size: 24px; text-decoration: none; width: fit-content; }
.footer__logo-a { color: #FFFFFF; }
.footer__logo-b { color: var(--accent); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__nav a { color: rgba(255, 255, 255, .75); text-decoration: none; font-size: 15px; }
.footer__nav a:hover { color: #FFFFFF; }
.footer__contacts p { margin: 3px 0; font-size: 14px; color: rgba(255, 255, 255, .7); }
.footer__contacts a { color: rgba(255, 255, 255, .82); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 20px; }
.footer__copy { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .62); }
.footer__note { margin: 6px 0 0; font-size: 12px; color: rgba(255, 255, 255, .45); }

/* FAB на мобайле не должен перекрывать поля финальной формы */
@media (max-width: 768px) {
  .final { padding-bottom: calc(var(--section-pad) + 76px); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a { transition: none; }
  .faq-q__ic::before, .faq-q__ic::after { transition: none; }
}

/* ==========================================================================
   Формы: мягкое сообщение об ошибке отправки (сеть/сервер)
   ========================================================================== */
/* Яндекс SmartCaptcha в лид-формах: виджет не шире формы, без скачков макета */
.lead__captcha { margin: 2px 0 4px; overflow: hidden; }
.lead__captcha-widget {
  width: 100%;
  max-width: 100%;
  min-height: 100px; /* высота стандартного виджета — резервируем место до загрузки */
  overflow: hidden;
  border-radius: 12px;
}
.lead__captcha-widget iframe { display: block; width: 100% !important; max-width: 100% !important; }
.lead__err--captcha { display: block; margin-top: 6px; }

/* Чекбокс согласия с политикой ПДн (перед кнопкой отправки) */
.lead__agree { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 2px; cursor: pointer; }
.lead__agree-box {
  width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.lead__agree-text { font-size: 13px; line-height: 1.45; color: var(--muted); }
.lead__agree-text a { color: var(--accent); }
.lead__err--agree { display: block; margin-bottom: 4px; }

/* Cookie-баннер: плашка снизу, ниже попапов (200) и FAB (150) */
/* ВАЖНО: авторский display:flex перебивает UA-правило [hidden]{display:none} —
   без этой строки атрибут hidden не прячет баннер визуально */
.cookiebar[hidden] { display: none; }
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--dark);
  box-shadow: 0 -8px 30px rgba(26, 31, 22, .25);
}
.cookiebar__text { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85); max-width: 720px; }
.cookiebar__text a { color: var(--accent); }
.cookiebar__btn { padding: 10px 28px; border: 0; } /* сброс UA-стиля button (2px outset) — на тёмном фоне давал белёсую грань */
@media (max-width: 640px) {
  /* нижний паддинг с запасом от жестовой зоны браузера + вырез iPhone */
  .cookiebar { padding: 12px 16px calc(18px + env(safe-area-inset-bottom)); gap: 10px; }
  .cookiebar__text { font-size: 13px; }
  .cookiebar__btn { width: 100%; padding: 12px 28px; }
}

.lead__formerr {
  margin: 12px 0 0; text-align: center;
  font-size: 13px; line-height: 1.45; color: #D9483B;
}
.lead__formerr a { color: #D9483B; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   КЛИКАБЕЛЬНОСТЬ: дети интерактивных элементов не перехватывают тап —
   событие всегда достаётся самой кнопке/ссылке (её обработчику).
   Внутри этих элементов нет вложенных настоящих интерактивов (проверено).
   ========================================================================== */
.wz__tile *, .faq-q *, .fab__item *, .fab__btn *, .gal__thumb *, .gal__nav *,
.lead__close *, .mpop__close *, .burger *, .scroll-hint *, .mpop__more *,
.wz__back *, .wz-res__restart *, .btn > *, .btn-outline > *, .lead-link *,
.hero__trigger .lead-link *, [data-lead-open] > *, [data-model-open] > *,
[data-order] > *, [data-podbor] > *, [data-final-reset] > *, [data-max-link] > * {
  pointer-events: none;
}

/* Тап-область стрелок галереи ≥44×44 (визуал 40px не меняем) */
.gal__nav::before { content: ""; position: absolute; inset: -2px; }

/* ==========================================================================
   ФИКС «мёртвой нижней зоны» тапов на мобайле — страховки по касаниям
   ========================================================================== */
/* touch-action: manipulation — убирает 300ms-двусмысленность двойного тапа и
   помогает браузеру классифицировать жест как тап (без задержки/поглощения). */
button, a, [role="button"], summary, label,
.wz__tile, .faq-q, .lead__close, .mpop__close, .gal__thumb, .gal__nav,
.fab__item, .fab__btn, .burger, .lead-link, .mpop__more, .wz__back, .wz-res__restart,
[data-lead-open], [data-lead-close], [data-model-open], [data-mpop-close],
[data-order], [data-podbor], [data-wz-restart], [data-final-reset], [data-max-link] {
  touch-action: manipulation;
}

/* Запас под жестовую зону снизу: важные кнопки не липнут к самой кромке экрана.
   env(safe-area-inset-bottom) = 0 на большинстве Android → влияет только там, где
   ОС сообщает инсет (жестовая панель / вырез). overscroll-behavior НЕ трогаем. */
@media (max-width: 768px) {
  .problem, .how, .benefits, .models, .podbor, .service, .about, .reviews,
  .steps, .economy, .warranty, .faq, .contacts {
    padding-bottom: calc(var(--section-pad) + env(safe-area-inset-bottom));
  }
  .final { padding-bottom: calc(var(--section-pad) + 76px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
}
