/* ============================================================
   МЕХАНИЗАТОРЫ - /shtukaturka/ (site-v3). Дизайн-система живого
   сайта клиента (mehanizatory.com, бандл entry.Ar43uqGk.css):
   - шрифт Gilroy (локальные woff2: Regular/Medium/Bold)
   - нейтрали шкалы zinc: #fafafa #f4f4f5 #e4e4e7 #71717b #18181b
   - главный цвет #f5b841 (янтарь) - кнопки с тёмным текстом,
     числа-герои, точки, ссылки. Диета: золото только в точках.
   Опоры подачи: КЕЙС-velight (воздух, секции-карточки, один
   герой-число на зону), ЕЗ-006 (анти-AI-дизайн).
   Коробки: ЛИБО рамка, ЛИБО тень - не вместе.
   ============================================================ */

@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("../fonts/Gilroy-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Gilroy", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* нейтрали клиента (zinc) */
  --ink: #18181b;        /* zinc-900 - текст и заголовки */
  --ink-2: #52525c;      /* zinc-600 - вторичный текст */
  --muted: #71717b;      /* zinc-500 - подписи */
  --line: #e4e4e7;       /* zinc-200 - линии */
  --line-input: #d4d4d8; /* zinc-300 - инпуты */
  --bg: #ffffff;
  --bg-soft: #fafafa;    /* zinc-50 - мягкие зоны */
  --bg-dark: #18181b;    /* zinc-900 - тёмные полосы (топбар, кейс, футер) */

  /* бренд клиента */
  --gold: #f5b841;       /* --ui-primary живого сайта */
  --gold-hover: #e9a52e; /* затемнение бренда для hover */
  --gold-ring: rgba(245, 184, 65, 0.22);

  --sh: 0 1px 3px rgba(24, 24, 27, 0.08), 0 1px 2px rgba(24, 24, 27, 0.05);
  --sh-lg: 0 8px 24px rgba(24, 24, 27, 0.1);
  --r-btn: 8px;
  --r-card: 12px;
  --r-xl: 16px;
}

* { box-sizing: border-box; }

/* страховка: атрибут hidden всегда прячет, даже если у класса свой display */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
}
h1 { font-size: clamp(38px, 4.8vw, 58px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
h3 { font-size: 21px; }

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.container--narrow { max-width: 920px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

/* ---------- Кнопки: золото + тёмный текст (как bg-primary/text-inverted клиента) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--r-btn);
  font-family: var(--font); font-weight: 700; font-size: 16px;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gold-ring); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--gold:active { transform: translateY(1px); }
.btn--lg { padding: 15px 30px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- Верхняя полоса (уровень 1, тёмная) ---------- */
.topbar {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}
.topbar__in {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-top: 9px; padding-bottom: 9px;
}
.topbar a { color: #fff; font-weight: 700; }
.topbar a:hover { text-decoration: none; color: var(--gold); }

/* ---------- Шапка (уровень 2, липкая) ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}
.header__in {
  display: flex; align-items: center; gap: 28px;
  min-height: 76px;
}
.brand { margin-right: auto; }
.brand__name {
  display: block; font-size: 21px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.15;
}
.brand__sub {
  display: block; font-size: 13px; color: var(--muted); line-height: 1.3;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 24px; }
.nav a { font-size: 16px; font-weight: 500; color: var(--ink-2); padding: 6px 0; }
.nav a:hover { color: var(--ink); text-decoration: none; }

.header__tel { font-size: 17px; font-weight: 700; white-space: nowrap; }
.header__tel:hover { color: var(--ink); text-decoration: none; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: var(--r-btn);
  padding: 10px; cursor: pointer;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); }

/* ---------- Секции: воздух без пустоты ---------- */
.section { padding: 76px 0; }
.section--tight { padding: 36px 0 76px; }
.section--soft { background: var(--bg-soft); }

.section-lead {
  font-size: 19px; color: var(--ink-2);
  max-width: 640px; margin: -2px 0 36px;
}
.section-note {
  margin-top: 28px; font-size: 16px; font-weight: 500; color: var(--ink);
  padding-top: 20px; border-top: 1px solid var(--line);
  max-width: 640px;
}
.media-cap { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* ЗАДЕЛ ПОД ВИДЕООБЛОЖКУ HERO (когда будет ролик):
   видео абсолютом ПОД контентом, затемнение двойным градиентом -
   плотнее слева, где текст (живой рецепт DortechPC, ЕЗ-008):
   .hero--cover::before { content:""; position:absolute; inset:0;
     background:
       linear-gradient(90deg, rgba(9,9,11,.78) 0%, rgba(9,9,11,.42) 55%, rgba(9,9,11,.14) 100%),
       linear-gradient(180deg, rgba(9,9,11,.40) 0%, rgba(9,9,11,.10) 45%, rgba(9,9,11,.55) 100%);
   }
   видео: autoplay muted loop playsinline disablepictureinpicture,
   текст hero переводится в светлый, сетка/линейка скрываются. */

/* ---------- 1. Первый экран: видеообложка (луп, пелена, сетка-призрак) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--bg-dark);
  padding: 88px 0 72px;
}
.hero-cover {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: translateZ(0); /* свой GPU-слой: шапка и оверлеи не пересобирают видео при скролле */
}
/* пелена: двойной градиент, плотнее слева где текст (рецепт DortechPC, ЕЗ-008) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(9, 9, 11, 0.94) 0%, rgba(9, 9, 11, 0.72) 55%, rgba(9, 9, 11, 0.46) 100%),
    linear-gradient(180deg, rgba(9, 9, 11, 0.42) 0%, rgba(9, 9, 11, 0.26) 45%, rgba(9, 9, 11, 0.55) 100%);
}
/* сетка-призрак поверх пелены - белая, едва видная */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 96px 96px;
}
.hero > .container { position: relative; z-index: 3; }
.hero h1 { color: #fff; }
/* первый экран: текст слева + знак справа (видеообложка займёт фон целиком) */
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 820px) 1fr;
  gap: 64px; align-items: center;
}
.hero__mark { justify-self: end; margin-right: 48px; }
.hero__mark img {
  width: clamp(200px, 21vw, 300px); height: auto;
  opacity: 0.92;
}
.hero__media { display: none; }

/* лого в шапке: знак + словесная часть */
.brand {
  margin-right: auto;
  display: flex; align-items: center; gap: 13px;
}
.brand__mark { width: 46px; height: 46px; flex: none; }
.brand__text { display: block; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 18px; font-weight: 600; color: #fff;
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: ""; flex: none; width: 44px; height: 3px;
  border-radius: 2px; background: var(--gold);
}
.hero__line { font-size: 19px; font-weight: 500; color: rgba(255, 255, 255, 0.92); margin: 18px 0 30px; max-width: 520px; }
.hero__cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero__second {
  font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px;
}
.hero__second:hover { color: #fff; text-decoration: none; border-color: #fff; }
.hero__note { margin-top: 20px; font-size: 14px; color: rgba(255, 255, 255, 0.75); max-width: 360px; }

/* видеообложка: постер + play (клик -> <video>, без автоплея - файл 25 МБ) */
.vblock__head { margin-bottom: 22px; max-width: 640px; }
.vblock__head h2 { margin-bottom: 8px; }
.vblock__head p { font-size: 17px; color: var(--ink-2); }
.vblock__box { aspect-ratio: 21 / 10; }
.video-box {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  aspect-ratio: 16 / 10; cursor: pointer;
  box-shadow: var(--sh-lg);
}
.video-box img { width: 100%; height: 100%; object-fit: cover; }
.video-box video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-box__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(24, 24, 27, 0.25);
  transition: transform 0.15s;
}
.video-box__play svg { margin-left: 4px; }
.video-box:hover .video-box__play { transform: translate(-50%, -50%) scale(1.06); }
.video-box:focus-visible { outline: none; box-shadow: var(--sh-lg), 0 0 0 4px var(--gold-ring); }

/* полоса пруфов на тёмной обложке: сетка, число сверху - подпись снизу */
.proofs {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px; margin: 44px 0 0; padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.proofs li { display: grid; gap: 6px; align-content: start; }
.proofs b {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.05; font-variant-numeric: tabular-nums; color: #fff;
}
.proofs span { font-size: 14px; color: rgba(255, 255, 255, 0.72); line-height: 1.45; }

/* ---------- Парная раскладка: текст слева + контент справа ---------- */
.duo {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 72px; align-items: start;
}
.duo .section-lead { margin-bottom: 28px; }
.duo .section-note { border-top: 0; padding-top: 0; margin-top: 22px; }
.duo .cta-line { max-width: none; border-top: 0; padding-top: 0; margin-top: 26px; }
.duo .wallcut { margin-top: 26px; }

/* ---------- Мягкие контейнеры: единый режим тени (без рамок) ---------- */
.sheet {
  background: var(--bg); border-radius: var(--r-xl);
  padding: 6px 36px; box-shadow: var(--sh);
}
.ladder { max-width: none; }
.ladder__row {
  display: grid; grid-template-columns: 220px 1fr; gap: 24px;
  align-items: baseline; padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.ladder__row:last-child { border-bottom: 0; }
.ladder__num {
  font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ladder__row p { font-size: 17px; color: var(--ink-2); }
.ladder__row--ours .ladder__num { color: var(--gold); font-size: 40px; }
.ladder__row--ours p b { color: var(--ink); }

/* ---------- Вертикальное видео процесса (2:3, автоплей без звука) ---------- */
.proc-video {
  display: block; width: 100%;
  aspect-ratio: 2 / 3; max-height: 78vh;
  object-fit: cover; border-radius: var(--r-card);
  background: var(--bg-dark);
}

/* ---------- Фотоконтент: единый ритм, никаких мелких квадратов ---------- */
.split__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-card);
}
.split__media--tall img { aspect-ratio: 4 / 5; }
.caseband__photos { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 0; }
.caseband__photos img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r-card);
}

/* ---------- Сплит-секции ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split--rev .split__media { order: 2; }
.split__media img { border-radius: var(--r-card); }
.img--frame { border: 1px solid var(--line); }

/* факты с золотыми точками (цветовая диета: золото в точках) */
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.points li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 17px; }
.points li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 9px; height: 9px; border-radius: 50%; background: var(--gold);
}
.points li b { color: var(--ink); font-weight: 700; }

/* пруф-карточка: один герой-число зоны + приборная шкала */
.proof-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  margin-top: 32px; padding: 24px 28px;
  background: var(--bg); border-radius: var(--r-card);
  box-shadow: var(--sh);
}
.proof-card__num {
  font-size: 54px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums;
}
.proof-card__main { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.proof-card__scale { display: grid; gap: 3px; justify-items: center; }
.proof-card__scale span { font-size: 12px; color: var(--muted); }
.proof-card p { margin: 0; font-size: 16px; color: var(--ink-2); max-width: 380px; }

/* ---------- Прайс с точечными лидерами: цена в одной колонке ---------- */
.prows { margin-top: 4px; padding: 10px 36px; }
.prow { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 15px 0 15px 20px; }
.prow__name { font-size: 17px; color: var(--ink-2); }
.prow__dots {
  flex: 1; min-width: 24px;
  border-bottom: 2px dotted var(--line-input);
  transform: translateY(-4px);
}
.prow__price {
  flex: none; width: 130px; text-align: right;
  font-size: 17px; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.prow--ours::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 3px; border-radius: 2px; background: var(--gold);
}
.prow--ours .prow__name { color: var(--ink); font-weight: 600; }
.prow--ours .prow__price { color: var(--gold); font-size: 19px; }

/* чертёж разреза: в парной колонке, по ширине контейнера */
.wallcut { margin: 0; }
.wallcut svg { width: min(560px, 100%); height: auto; }
.wallcut figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* ---------- Таймлайн шагов: крупные номера, вертикаль (не карточки) ---------- */
.timeline { list-style: none; counter-reset: step; margin: 30px 0 0; padding: 0; }
.timeline li {
  counter-increment: step; position: relative;
  padding: 0 0 26px 64px;
}
.timeline li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -2px;
  font-size: 26px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.timeline li::after {
  content: ""; position: absolute; left: 3px; top: 36px; bottom: 4px;
  width: 1px; background: var(--line);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline b { display: block; font-size: 18px; margin-bottom: 2px; }
.timeline p { margin: 0; font-size: 16px; color: var(--muted); }

/* ---------- Кейс: тёмная акцентная зона с чертёжной сеткой ---------- */
.caseband { position: relative; background: var(--bg-dark); color: #fff; padding: 76px 0; overflow: hidden; }
.caseband::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 45%, #000 55%, transparent 100%);
}
.caseband .container { position: relative; }
.caseband__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.caseband__tag { font-size: 14px; font-weight: 500; color: var(--gold); margin-bottom: 10px; }
.caseband h2 { color: #fff; }
.caseband p { color: rgba(255, 255, 255, 0.75); }
.caseband__num { margin: 22px 0 24px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.caseband__val {
  font-size: clamp(48px, 5.5vw, 68px); font-weight: 700; letter-spacing: -0.02em;
  line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums;
}
.caseband__cap { font-size: 17px; color: rgba(255, 255, 255, 0.75); }

/* паспорт объекта: непрозрачная подложка - сетка не просвечивает */
.passport {
  margin: 24px 0 28px;
  background: #222228;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-card);
  padding: 6px 26px;
}
.passport div {
  display: flex; gap: 28px; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.passport div:last-child { border-bottom: 0; }
.passport dt { flex: none; width: 150px; font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.passport dd { margin: 0; font-size: 15px; color: #fff; }

/* ---------- Лист договора: страховки как параграфы ---------- */
.doc {
  background: var(--bg); border-radius: var(--r-card);
  padding: 34px 40px 30px; box-shadow: var(--sh);
}
.doc__head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 16px; flex-wrap: wrap;
  padding-bottom: 18px; margin-bottom: 6px; border-bottom: 1px solid var(--ink);
}
.doc__head b { font-size: 21px; font-weight: 700; }
.doc__head span { font-size: 14px; color: var(--muted); }
.doc__row { display: flex; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.doc__row:last-of-type { border-bottom: 0; }
.doc__num {
  flex: none; width: 44px; font-size: 24px; font-weight: 700;
  color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.doc__row b { display: block; font-size: 17px; margin-bottom: 3px; }
.doc__row p { margin: 0; font-size: 15px; color: var(--muted); max-width: 560px; }
.doc__sign { display: flex; gap: 48px; padding-top: 26px; }
.doc__sign span {
  flex: 1; font-size: 13px; color: var(--muted);
  display: flex; flex-direction: column; gap: 20px;
}
.doc__sign i { display: block; height: 1px; background: var(--line-input); }
.trust-req { margin-top: 22px; font-size: 15px; color: var(--muted); max-width: 680px; }

/* ---------- Смена оси: сравнение сроков полосами ---------- */
.run { max-width: none; margin-top: 8px; }
.run__row {
  display: grid; grid-template-columns: 260px 1fr; gap: 32px;
  align-items: center; padding: 14px 0;
}
.run__meta b { display: block; font-size: 17px; margin-bottom: 1px; }
.run__meta span { font-size: 14px; color: var(--muted); }
.run__bar {
  height: 38px; border-radius: var(--r-btn);
  background: var(--bg); position: relative;
}
.run__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: var(--r-btn); }
.run__fill--long {
  width: 100%;
  background: repeating-linear-gradient(-45deg, #d4d4d8 0 10px, #e4e4e7 10px 20px);
}
.run__fill--short { width: 18%; background: var(--gold); }
.run__note { margin-top: 18px; font-size: 16px; color: var(--ink-2); max-width: 760px; }
.run__total {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-size: 17px; font-weight: 700; color: var(--ink);
}

/* ---------- Слайдер до / после: сплит с текстом, без пустых полей ---------- */
.ba-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center;
}
.ba-text .section-lead { margin-bottom: 26px; }
.ba {
  position: relative; --pos: 50%;
  aspect-ratio: 4 / 3; width: 100%;
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--sh-lg);
  touch-action: pan-y;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__img--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px;
  background: #fff; transform: translateX(-1px); pointer-events: none;
}
.ba__knob {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 14px rgba(24, 24, 27, 0.35);
}
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
  -webkit-appearance: none; appearance: none;
}
.ba__tag {
  position: absolute; bottom: 14px; pointer-events: none;
  font-size: 13px; font-weight: 600;
  background: rgba(24, 24, 27, 0.74); color: #fff;
  padding: 6px 13px; border-radius: 999px;
}
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; }

/* ---------- Услуги чернового этапа: карточки слайдером, стрелки по бокам ---------- */
.ssl {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 18px;
}
.ssl__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3);
  gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 12px;
  scrollbar-width: none;
}
.ssl__track::-webkit-scrollbar { display: none; }
.ssl__card {
  scroll-snap-align: start;
  background: var(--bg); border-radius: var(--r-card);
  border: 1px solid var(--line-input);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.ssl__card:hover {
  border-color: var(--gold);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}
/* карточка-ссылка целиком: текст внутри не подчёркивается при ховере
   (:hover в селекторе обязателен - иначе проигрывает специфичности a:hover) */
.ssl__card:hover,
.ssl__card:hover *,
.ssl__card:focus-visible,
.ssl__card:focus-visible * { text-decoration: none; }
.ssl__img { aspect-ratio: 4 / 3; overflow: hidden; }
.ssl__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.ssl__card:hover .ssl__img img { transform: scale(1.04); }
.ssl__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.ssl__body h3 { font-size: 19px; margin-bottom: 6px; }
.ssl__body > p { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.ssl__params { list-style: none; margin: 0 0 18px; padding: 0; flex: 1; }
.ssl__params li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.ssl__params li:last-child { border-bottom: 0; }
.ssl__params span { color: var(--muted); }
.ssl__params b { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.ssl__btn { align-self: stretch; }
.ssl__arrow {
  width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-input); background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.ssl__arrow:hover { border-color: var(--ink); transform: scale(1.05); }
.ssl__arrow:active { transform: scale(0.97); }
.ssl__arrow:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gold-ring); }

/* ---------- Слот "ЗАПРОСИТЬ У КЛИЕНТА" - убран со страницы,
   стиль оставлен на случай возврата ----------
.slot {
  display: block; background: rgba(245, 184, 65, 0.1);
  border: 1px dashed var(--gold); border-radius: var(--r-btn);
  padding: 12px 16px; font-size: 14px; color: var(--ink-2);
  margin-top: 22px; max-width: 560px;
} */
.caseband .slot { color: rgba(255, 255, 255, 0.75); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; font-size: 18px;
  list-style: none; position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 16px;
  font-size: 24px; font-weight: 400; color: var(--muted);
}
.faq details[open] summary::after { content: "-"; }
.faq details[open] summary { color: var(--ink); }
.faq details p { padding: 0 0 20px; max-width: 700px; color: var(--ink-2); font-size: 16px; }

/* ---------- Смета + контакты + форма ---------- */
.estimate {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px;
  align-items: center; margin-bottom: 80px;
}
.estimate__text p { max-width: 480px; font-size: 18px; color: var(--ink-2); }
.estimate__fig { margin: 0; max-width: 380px; justify-self: end; width: 100%; }
.estimate__fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-card); }

.lead__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.lead__contacts h3 { font-size: 22px; margin-bottom: 12px; }
.lead__kicker {
  font-size: 15px; font-weight: 600; color: var(--ink-2);
  margin: 0 0 10px;
}
.lead__contacts .lead__phone { margin: 0 0 12px; }
.lead__contacts .lead__phone a {
  font-size: clamp(28px, 2.8vw, 38px); font-weight: 700; color: var(--ink);
}
.lead__contacts .lead__phone a:hover { color: var(--ink); }
.lead__contacts .points { margin-top: 24px; max-width: 420px; }
.lead__contacts .lead-form__legal { margin-top: 26px; }
.muted2 { color: var(--muted); font-size: 16px; max-width: 400px; }

.lead-form {
  background: var(--bg); border-radius: var(--r-xl);
  padding: 40px 42px; box-shadow: var(--sh-lg);
}
.lead-form h3 { font-size: 24px; margin-bottom: 4px; }
.lead-form__sub { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  display: block; width: 100%; padding: 13px 15px;
  font-family: var(--font); font-size: 16px; color: var(--ink);
  border: 1px solid var(--line-input); border-radius: var(--r-btn);
  background: #fff; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-ring);
}
.lead-form .btn { margin-top: 10px; }

.check {
  position: relative; display: block; padding-left: 28px;
  font-size: 14px; color: var(--muted); margin-top: 16px;
  cursor: pointer;
}
/* квадрат рисуем сами (::before у текста), нативный инпут скрыт сверху:
   чекбокс всегда у первой строки текста, никакой браузерной лотереи */
.check input {
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; margin: 0;
  opacity: 0; cursor: pointer;
}
.check span { position: relative; display: block; line-height: 1.5; }
.check span::before {
  content: ""; position: absolute; left: -28px; top: 3px;
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--line-input); background: #fff;
}
.check input:checked + span::before { background: var(--gold); border-color: var(--gold); }
.check input:checked + span::after {
  content: ""; position: absolute; left: -23.5px; top: 5.5px;
  width: 5px; height: 8.5px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
}
.check input:focus-visible + span::before { box-shadow: 0 0 0 4px var(--gold-ring); }
/* тёмная панель: рамка и фон квадрата под тёмное */
.caseform .check span::before { border-color: rgba(255, 255, 255, 0.4); background: #18181b; }
.quiz__form .check span::before { border-color: rgba(255, 255, 255, 0.4); background: #18181b; }

.form-ok {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--r-btn);
  background: var(--bg-soft); border: 1px solid var(--gold);
  font-size: 15px; color: var(--ink-2);
}
.demo-out {
  margin-top: 12px; padding: 12px 14px; border-radius: var(--r-btn);
  background: var(--bg-soft); border: 1px dashed var(--line-input);
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  white-space: pre-wrap; word-break: break-word; color: var(--muted);
}
.lead-form__legal { margin-top: 18px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Точки входа в форму (строка-CTA между блоками) ---------- */
.cta-line {
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line);
  max-width: 880px;
}
.cta-line p { margin: 0; }
.cta-line b { display: block; font-size: 18px; margin-bottom: 2px; }
.cta-line span { font-size: 15px; color: var(--muted); }
.cta-line--dark { border-top-color: rgba(255, 255, 255, 0.16); }
.cta-line--dark b { color: #fff; }
.cta-line--dark span { color: rgba(255, 255, 255, 0.6); }

/* ---------- Поп-ап с формой ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(9, 9, 11, 0.55); }
.modal__panel {
  position: relative; width: 100%; max-width: 460px;
  background: var(--bg); border-radius: var(--r-xl);
  padding: 34px 32px 26px;
  box-shadow: 0 24px 64px rgba(9, 9, 11, 0.32);
  max-height: calc(100vh - 40px); overflow: auto;
}
.modal__panel h3 { font-size: 24px; margin-bottom: 4px; }
.modal__sub { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.modal__x {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.modal__x:hover { color: var(--ink); border-color: var(--line-input); }
.modal__x:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gold-ring); }

/* ---------- Липкая мобильная полоса ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; grid-template-columns: 1fr auto; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.25s;
}
.mbar.is-on { transform: translateY(0); }
.mbar__tel {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-input); border-radius: var(--r-btn);
  font-size: 15px; font-weight: 700; padding: 0 12px; min-height: 48px;
}
.mbar__tel:hover { text-decoration: none; border-color: var(--ink); }
.mbar__btn { min-height: 48px; }

/* ---------- Футер (тёмный) ---------- */
.footer { background: var(--bg-dark); color: rgba(255, 255, 255, 0.72); padding: 56px 0 32px; }
.footer__top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer__brand b { display: block; font-size: 19px; color: #fff; }
.footer__brand span { display: block; font-size: 14px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer__nav a { color: rgba(255, 255, 255, 0.72); font-size: 15px; }
.footer__nav a:hover { color: #fff; text-decoration: none; }
.footer__contacts { text-align: right; }
.footer__tel { display: block; font-size: 20px; font-weight: 700; color: #fff; }
.footer__tel:hover { color: var(--gold); text-decoration: none; }
.footer__contacts span { font-size: 14px; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; font-size: 13px; color: rgba(255, 255, 255, 0.5);
}
.footer__bottom p { margin: 0; max-width: 640px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 64px 0; }
  .section--tight { padding: 28px 0 64px; }
  .hero__grid, .split, .caseband__grid, .lead__grid, .ba-grid, .duo { grid-template-columns: 1fr; gap: 44px; }
  .hero__mark { display: none; }
  .estimate { grid-template-columns: 1fr; gap: 40px; margin-bottom: 56px; }
  .estimate__fig { justify-self: start; }
  /* услуги: на планшете и мобиле - по ОДНОЙ карточке на экран */
  .ssl__track { grid-auto-columns: 86%; }
  .ssl__arrow { width: 44px; height: 44px; }
  .vblock__box { aspect-ratio: 16 / 10; }
  .split--rev .split__media { order: 0; }
  .lead-form { justify-self: start; width: 100%; max-width: 520px; }
  .sheet { padding: 4px 24px; }
  .passport div { gap: 18px; }
  .passport dt { width: 120px; }
  .scards { grid-template-columns: repeat(2, 1fr); }
  .ba-text { max-width: 640px; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: none; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 6px 24px 14px;
  }
  .nav.nav--open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .header__tel { margin-left: auto; }
  .mbar { display: grid; }
  .footer { padding-bottom: 92px; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 44px; }
  /* квиз на мобиле: без фото мастера, панель на всю ширину */
  .quiz-owner { display: none; }
  .header__in { min-height: 64px; gap: 16px; }
  .header__tel { display: none; }  /* телефон живёт в topbar и mbar */
  .brand__mark { width: 38px; height: 38px; }
  .proofs { grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 40px; }
  .ladder__row { grid-template-columns: 1fr; gap: 6px; }
  .run__row { grid-template-columns: 1fr; gap: 8px; }
  .prow { flex-wrap: wrap; row-gap: 2px; }
  .prow__dots { display: none; }
  .prow__name { flex: 1; }
  .prow--ours { padding-left: 16px; }
  .mat-note { align-items: flex-start; }
  .ssl { grid-template-columns: 1fr; }
  .ssl__arrow { display: none; }
  .ssl__track { grid-auto-columns: 86%; }
  .doc { padding: 24px 20px 22px; }
  .doc__row { gap: 14px; }
  .doc__num { width: 34px; font-size: 20px; }
  .doc__sign { gap: 20px; }
  .ba__tag { font-size: 12px; }
  .proc-video { max-height: none; }
  .trust-card { padding: 26px 22px; }
  .lead-form { padding: 28px 22px; }
  .footer__contacts { text-align: left; }
  .topbar__in { justify-content: center; }
  /* анти-зум iOS: инпуты не меньше 16px */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   V4: блок оси со сплитом, квиз-заглушка, компактные полосы
   ============================================================ */
.axis { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.axis__vid h3 { font-size: 20px; margin-bottom: 14px; max-width: 440px; }
.axis .run__bar { height: 28px; }
.axis .run__meta { font-size: 15px; }
.axis .run__meta b { font-size: 16px; }
.video-box--tall { aspect-ratio: 2 / 3; }
.quiz-soon {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap; background: var(--bg); border-radius: var(--r-xl);
  padding: 28px 32px; box-shadow: var(--sh);
}
.quiz-soon p { margin: 0; max-width: 520px; font-size: 16px; color: var(--ink-2); }
.quiz-soon b { color: var(--ink); }
@media (max-width: 1024px) {
  .axis { grid-template-columns: 1fr; gap: 44px; }
}

/* ---------- V4: квиз (тёмный блок, панель чуть светлее - как у клиента) ---------- */
#quiz { background: #18181b; }
#quiz h2, #quiz .section-lead b { color: #fff; }
#quiz .section-lead { color: rgba(255,255,255,0.72); }
.quiz { background: #222228; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 34px 36px; max-width: 720px; }
.quiz__step { display: none; }
.quiz__step.is-on { display: block; }
.quiz__q { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 18px; }
.quiz__q b { color: var(--gold); font-variant-numeric: tabular-nums; }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.quiz__opts button {
  font-family: var(--font); font-size: 16px; font-weight: 500; color: rgba(255,255,255,0.85);
  background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  padding: 11px 20px; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.quiz__opts button:hover { border-color: rgba(255,255,255,0.5); }
.quiz__opts button.is-picked { border-color: var(--gold); color: #fff; background: rgba(245,184,65,0.1); }
.quiz__opts button.is-picked::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 9px; }
.quiz__hint { font-size: 14px; color: rgba(255,255,255,0.55); margin: 4px 0 0; }
.quiz__mess { display: flex; gap: 10px; margin-bottom: 14px; }
.quiz__mess button {
  font-family: var(--font); font-size: 16px; font-weight: 600; color: rgba(255,255,255,0.85);
  background: none; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px;
  padding: 11px 24px; cursor: pointer;
}
.quiz__mess button.is-picked { border-color: var(--gold); color: #fff; background: rgba(245,184,65,0.1); }
.quiz__form input[type="tel"] {
  display: block; width: 100%; margin-bottom: 14px; padding: 13px 15px;
  font-family: var(--font); font-size: 16px; color: #fff;
  background: #18181b; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px;
}
.quiz__form input[type="tel"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-ring); }
.quiz__form .check span, .quiz__form .lead-form__legal { color: rgba(255,255,255,0.55); }
.quiz__form .form-ok { background: #18181b; color: rgba(255,255,255,0.85); }
.quiz .btn--gold { color: #18181b; }
@media (max-width: 640px) { .quiz { padding: 24px 18px; } }
.quiz { max-width: none; }
.quiz__next { display: inline-flex; align-items: center; gap: 9px; }
.quiz__form select {
  display: block; width: 100%; margin-bottom: 14px; padding: 13px 15px;
  font-family: var(--font); font-size: 16px; font-weight: 600; color: #fff;
  background: #18181b; border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; cursor: pointer;
}
.quiz__form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-ring); }
.quiz__form select option { color: #18181b; }
.quiz__check { list-style: none; margin: 0 0 0; padding: 0; }
.quiz__check li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.quiz__check li:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.quiz__check label { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-size: 16px; color: rgba(255,255,255,0.85); cursor: pointer; user-select: none; }
.quiz__check input { width: 19px; height: 19px; flex: none; accent-color: var(--gold); cursor: pointer; }
.quiz__next { margin-top: 32px; }
.quiz-row { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; }
.quiz-owner { margin: 0; }
.quiz-owner img { width: 100%; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12); }
.quiz-owner figcaption { margin-top: 10px; font-size: 13px; color: rgba(255,255,255,0.55); }
.quiz__radio { list-style: none; margin: 0; padding: 0; }
.quiz__radio li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.quiz__radio li:first-child { border-top: 1px solid rgba(255,255,255,0.1); }
.quiz__radio button {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: none; border: 0; padding: 14px 4px; cursor: pointer;
  font-family: var(--font); font-size: 16px; color: rgba(255,255,255,0.85); text-align: left;
}
.quiz__radio button:hover { color: #fff; }
.quiz__radio i { flex: none; width: 19px; height: 19px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); position: relative; }
.quiz__radio .is-picked i { border-color: var(--gold); }
.quiz__radio .is-picked i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold); }
.quiz__back { background: none; border: 0; padding: 0 0 14px; font-family: var(--font); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.5); cursor: pointer; }
.quiz__back:hover { color: #fff; }
@media (max-width: 1024px) { .quiz-row { grid-template-columns: 1fr; } .quiz-owner { max-width: 380px; } }
.quiz { padding: 26px 30px; }
.quiz__nav { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.quiz__back { padding: 0; }
.quiz-row { grid-template-columns: 1fr 360px; gap: 24px; }
.quiz-owner img { border: 0; border-radius: 20px; }
.quiz-owner figcaption { display: none; }
.quiz__next.is-shake { animation: qshake 0.35s; }
@keyframes qshake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.quiz__back { min-height: 48px; padding: 0 6px; display: inline-flex; align-items: center; }
.quiz__nav .btn { min-height: 48px; }
.quiz__radio .is-off button { cursor: not-allowed; color: rgba(255,255,255,0.35); }
.quiz__radio .is-off i { border-color: rgba(255,255,255,0.18); border-style: dashed; }
.quiz__radio .is-off { background: rgba(255,255,255,0.03); }
.quiz__nav { align-items: stretch; }
.quiz__back, .quiz__nav .btn { height: 48px; min-height: 0; line-height: 1; font-size: 16px; padding-top: 0; padding-bottom: 0; display: inline-flex; align-items: center; }
.quiz__nav .btn--lg { font-size: 16px; }
.quiz__form select option { background: #ffffff; color: #18181b; }
.quiz__nav { align-items: center !important; }
.quiz__back, .quiz__nav .btn { height: auto; min-height: 0; padding-top: 13px; padding-bottom: 13px; line-height: 1.2; }
.quiz__nav .btn--lg { padding-top: 16px; padding-bottom: 16px; }
.quiz__back { padding-top: 0; padding-bottom: 0; }
.quiz__nav .quiz__next { margin-top: 0; }
.case2 { background: var(--bg-soft); padding: 64px 0; }
.case2:nth-of-type(even) { background: var(--bg); }
.case2__row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.case2__num { font-size: clamp(38px,4.5vw,56px); font-weight: 700; color: var(--gold); line-height: 1; margin: 6px 0 10px; }
.case2__num span { font-size: 17px; color: var(--ink-2); font-weight: 500; }
.case2__meta { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.case2__note { font-size: 17px; color: var(--ink-2); max-width: 480px; }
.case2__ph { display: grid; gap: 14px; margin: 0; }
.case2__ph img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; }
@media (max-width:1024px){ .case2__row { grid-template-columns: 1fr; } }
/* шахматный порядок кейсов: зеркалим через один */
.caseband--flip .caseband__grid .caseband__media { order: -1; }
/* галерея-слайдер в кейсе: БЛОК (не грид - грид рвал привязку стрелок),
   трек во всю ширину, фото во весь кадр 16:10, стрелки симметрично
   краёв фото: left/right 14px от casegal, casegal == трек по ширине */
.casegal { display: block; position: relative; width: 100%; }
.casegal .ssl__track { grid-auto-columns: 100%; padding: 0; width: 100%; }
.casegal .ssl__card { border: 0; background: none; box-shadow: none; aspect-ratio: 16 / 10; }
.casegal .ssl__card img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.casegal .ssl__card:hover { transform: none; box-shadow: none; }
.casegal .ssl__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  background: none; border: 0; color: #fff;
}
.casegal .ssl__arrow:hover { background: none; transform: translateY(-50%) scale(1.12); }
.casegal .ssl__arrow[data-dir="-1"] { left: 14px; }
.casegal .ssl__arrow[data-dir="1"] { right: 14px; }
.casegal .ssl__arrow svg { filter: drop-shadow(0 1px 6px rgba(9,9,11,0.65)); }
/* медиа-колонка кейса со слайдером: +20% к ширине */
.caseband__grid:has(.caseband__media) { grid-template-columns: 0.82fr 1.18fr; gap: 48px; }
/* ---------- V4: форма после кейсов - тёмная зона, слева смысл и телефон,
   справа форма на подчёркиваниях в серой панели (шейп как паспорт кейсов) ---------- */
.caseform-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px;
  align-items: center;
}
.caseform-grid h2 { color: #fff; margin-bottom: 12px; }
.caseform__sub { font-size: 18px; color: rgba(255, 255, 255, 0.72); max-width: 440px; margin-bottom: 28px; }
.caseform__phone { margin: 0 0 8px; }
.caseform__phone a { font-size: 28px; font-weight: 700; color: #fff; }
.caseform__phone a:hover { color: var(--gold); }
.caseform__note { font-size: 15px; color: rgba(255, 255, 255, 0.55); max-width: 380px; }
.caseform {
  background: #222228; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 32px 34px 30px;
}
.caseform .urow { position: relative; margin-bottom: 24px; }
.caseform .urow label {
  display: block; font-size: 13px; font-weight: 600;
  color: rgba(255, 255, 255, 0.55); margin-bottom: 4px;
}
.caseform input, .caseform select {
  display: block; width: 100%; padding: 8px 2px 12px;
  font-family: var(--font); font-size: 17px; color: #fff;
  background: none; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 0; transition: border-color 0.15s;
}
.caseform select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.caseform .selrow::after {
  content: ""; position: absolute; right: 6px; bottom: 20px;
  width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid rgba(255, 255, 255, 0.6); border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
}
.caseform input:focus, .caseform select:focus {
  outline: none; border-bottom-color: var(--gold);
}
.caseform input::placeholder { color: rgba(255, 255, 255, 0.35); }
.caseform select option { background: #fff; color: #18181b; }
.caseform .btn { margin-top: 4px; }
.caseform .check { margin-top: 18px; }
.caseform .check span { color: rgba(255, 255, 255, 0.55); }
.caseform .lead-form__legal { margin-top: 12px; color: rgba(255, 255, 255, 0.45); }
@media (max-width: 1024px) {
  .caseform-grid { grid-template-columns: 1fr; gap: 44px; }
  .caseform { max-width: 560px; }
}
/* слайдеры кейсов: медиа-колонка релатив для стрелок; flip-кейсы -
   широкая колонка МЕДИА (order:-1 ставит её первой, колонки меняем
   местами, иначе фото уезжает в узкую долю и рядом пустота) */
.caseband__media { position: relative; }
.caseband--flip .caseband__grid:has(.caseband__media) { grid-template-columns: 1.18fr 0.82fr; }
/* ссылка "все кейсы" в кейсбенде Сколково -> раздел /kseyisy/ */
.caseband__all { margin-top: 2px; }
.caseband__all a {
  font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4); padding-bottom: 2px;
}
.caseband__all a:hover { color: #fff; text-decoration: none; border-color: #fff; }
/* вертикальные видео: лёгкая обрезка кадров сверху/снизу зумом
   (шаги - примерно по 10px, механика и блок оси - по 20px при десктопе) */
#steps .split__media { overflow: hidden; border-radius: var(--r-card); }
#steps .proc-video { transform: scaleY(1.025); }
#mech .split__media { overflow: hidden; border-radius: var(--r-card); }
#mech .proc-video { transform: scaleY(1.05); }
#axis .video-box video { transform: scaleY(1.05); }
/* заголовок над видео "почему надо делать МШ" - общий для блока, по центру */
.axis__vid h3 { text-align: center; margin-left: auto; margin-right: auto; }
/* калькулятор-комната: iframe-виджет (демо до боя), высота по устройствам */
.calc-head { max-width: 720px; margin-bottom: 26px; }
.calc-frame {
  width: 100%; height: 1230px; display: block;
  border: 0; border-radius: var(--r-xl);
  background: var(--bg-dark); box-shadow: var(--sh-lg);
}
@media (max-width: 1024px) { .calc-frame { height: 1620px; } }
@media (max-width: 640px) { .calc-frame { height: 1720px; border-radius: var(--r-card); } }
/* вторая кнопка шапки: контурная "Проекты" (раздел кейсов /kseyisy/) */
.btn--ghost { background: none; color: var(--ink); border-color: var(--line-input); }
.btn--ghost:hover { background: none; border-color: var(--ink); }
/* выпадающий список услуг в шапке (един для всех страниц) */
.nav { align-items: center; }
.navdrop { position: relative; }
.navdrop__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; cursor: pointer; padding: 6px 0;
  min-height: 33px;
  font-family: var(--font); font-size: 16px; font-weight: 500;
  color: var(--ink-2); line-height: 1.65;
}
.navdrop__btn:hover { color: var(--ink); }
.navdrop__btn svg { transition: transform 0.15s; }
.navdrop__menu {
  position: absolute; top: 100%; left: -18px; z-index: 60;
  min-width: 300px; padding: 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  border-top-left-radius: 0;
  box-shadow: var(--sh-lg);
  display: none;
}
/* меню прилипает к кнопке вплотную (без зазора) - hover не рвётся */
.navdrop:hover .navdrop__menu,
.navdrop:focus-within .navdrop__menu { display: block; }
.navdrop:focus-within .navdrop__btn svg { transform: rotate(180deg); }
.navdrop__menu a {
  display: block; padding: 11px 20px;
  font-size: 15px; font-weight: 500; color: var(--ink-2);
}
.navdrop__menu a:hover { background: var(--bg-soft); color: var(--ink); text-decoration: none; }
/* карточки-ссылки услуг: хвост "Подробнее" вместо кнопки */
.ssl__more {
  margin-top: auto; align-self: flex-start;
  font-size: 15px; font-weight: 700; color: var(--gold-hover);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
}
.ssl__card:hover .ssl__more { border-color: var(--gold-hover); }
@media (max-width: 860px) {
  /* в бургере меню услуг раскрыто статично */
  .navdrop__btn { pointer-events: none; }
  .navdrop__menu {
    position: static; display: block; box-shadow: none; border: 0;
    padding: 0 0 6px 14px; min-width: 0; border-radius: 0;
  }
  .navdrop__menu a { padding: 10px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 1180px) {
  .header__in { gap: 18px; }
  .nav { gap: 16px; }
}
@media (max-width: 1024px) {
  .header__cta2 { display: none; }
}
/* линейка замера (возвращена): светлая версия поверх видеообложки */
.hero__ruler {
  position: absolute; left: 16px; top: 12%; bottom: 12%; z-index: 3;
  display: none; flex-direction: column; justify-content: space-between;
  border-left: 1px solid rgba(255,255,255,0.35); padding-left: 9px;
  font-family: ui-monospace, Consolas, monospace; font-size: 11px;
  color: rgba(255,255,255,0.55); line-height: 1;
}
.hero__ruler span { position: relative; }
.hero__ruler span::before {
  content: ""; position: absolute; left: -9px; top: 50%;
  width: 6px; height: 1px; background: rgba(255,255,255,0.45);
}
@media (min-width: 1320px) { .hero__ruler { display: flex; } }

/* мобайл/планшет: :has-вариант кейсбенда перебивает media 1024 по специфичности -
   дублируем одно-колоночную раскладку ПОСЛЕ базовых правил */
@media (max-width: 1024px) {
  .caseband__grid:has(.caseband__media),
  .caseband--flip .caseband__grid:has(.caseband__media) { grid-template-columns: 1fr; gap: 44px; }
  .caseband--flip .caseband__grid .caseband__media { order: -1; }
}
