/* Генерические блоки конструктора (CVL-набор), портированы из макета на ТОКЕНЫ темы.
   Имена CSS-переменных generic (--accent/--text/--panel/--link…). Загружается ПОСЛЕ
   site.css. Компоненты используют собственные классы — не конфликтуют с портфолио-блоками.
   Тени/сетка-стекло/ease — константы дизайн-системы (не бренд-ручки), light-оверрайд ниже. */

:root {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --z-header: 100; --z-sticky: 120; --z-lightbox: 300;
  --shadow: 0 34px 70px -36px rgba(0, 0, 0, .8);
  --shadow-soft: 0 20px 44px -28px rgba(0, 0, 0, .7);
}
:root[data-theme="light"] {
  --shadow: 0 30px 60px -34px rgba(20, 26, 34, .28);
  --shadow-soft: 0 18px 40px -26px rgba(20, 26, 34, .18);
}

/* Широкий контейнер (1200) — рядом с базовым .container (1120) из site.css */
.container--wide { width: min(1200px, 100% - 3rem); margin-inline: auto; }

/* Модификаторы фона секций. Мотив-тайл НЕ зашит в CSS: он приходит из темы
   (--pattern-tile / --pattern-opacity из ../theme.css?v=a01aecbc, библиотека config/patterns.json).
   На «стеклянной» секции фона нет — там виден общий слой body::before (site.css);
   surface/panel перекрывают его своим фоном, поэтому тайл повторяем слоем ::before.
   theme.pattern = none → переменная none → чистый фон. */
.section--glass { overflow: clip; }
.section--surface { background-color: var(--surface); overflow: clip; }
.section--panel { background-color: var(--panel); overflow: clip; }
.section--surface::before, .section--panel::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--pattern-tile, none); background-repeat: repeat;
  opacity: var(--pattern-opacity, 0);
}
/* Контент секции — поверх слоя мотива и уголкового орнамента. */
.section > .container { position: relative; z-index: 1; }

/* Надзаголовок / заголовок секции / лид */
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent-bright); font-weight: 600; font-size: .86rem; letter-spacing: .04em; margin: 0 0 1rem; }
.eyebrow .icon { width: 18px; height: 18px; }
.h-sec { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; font-size: clamp(1.8rem, 4vw, 2.95rem); color: var(--text); max-width: 20ch; margin: 0 0 .5em; text-wrap: balance; }
.h-sec--center { max-width: 24ch; margin-inline: auto; text-align: center; }
.lead { color: var(--text-soft); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 60ch; margin: .4rem 0 0; text-wrap: pretty; }
.lead--center { margin-inline: auto; text-align: center; }
.section-head { max-width: 640px; }
.section-head--center { max-width: 640px; margin-inline: auto; text-align: center; }

/* Декор под заголовком секции (theme.headingDeco → --heading-deco* из ../theme.css?v=a01aecbc).
   Форма — маска (мазок кисти из config/patterns.json), цвет — акцент темы.
   rule/dot идут без маски: прямоугольник/круг задаются размерами и скруглением.
   headingDeco=none → нулевые размеры → на странице ничего нет. */
.section-head h2::after, .section__head h2::after {
  content: ""; display: block;
  width: var(--heading-deco-w, 0); height: var(--heading-deco-h, 0);
  margin-top: .5em; background: var(--accent); border-radius: var(--heading-deco-r, 0);
  -webkit-mask-image: var(--heading-deco, none); mask-image: var(--heading-deco, none);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
.section-head--center h2::after { margin-inline: auto; }
.disclaimer { color: var(--text-dim); font-size: .84rem; line-height: 1.5; }
/* Перенос строки в заголовке по маркеру [br] (render.js accentize) — только на широких экранах:
   на телефоне строки и так короткие, принудительный перенос дал бы «лесенку». */
.br-wide { display: none; }
@media (min-width: 1024px) { .br-wide { display: inline; } }

/* Уголковый гекс-орнамент (только на широких экранах, декоративный) */
.hex { position: absolute; pointer-events: none; color: var(--accent2); opacity: .15; display: none; z-index: 0; }
@media (min-width: 1200px) { .hex { display: block; } }
.hex--tr { top: 30px; right: 34px; width: 120px; height: 132px; }
.hex--bl { bottom: 30px; left: 34px; width: 120px; height: 132px; }

/* Призрачная кнопка (в дополнение к .btn--primary/.btn--outline из site.css) */
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }

/* ── Полоса фактов (marquee) ─────────────────────────────── */
.marquee { background: color-mix(in srgb, var(--bg) 70%, #000 8%); border-block: 1px solid var(--line); }
@supports not (color: color-mix(in srgb, red, red)){.marquee{background: rgba(var(--bg-rgb), 1); border-block: 1px solid var(--line)}}
/* Полоса фактов: одна строка равных ячеек на десктопе (без сирот 3+1), 2 колонки на планшете, 1 на телефоне.
   Текст в ячейке переносится (minmax(0,1fr)), поэтому на промежуточных ширинах ничего не обрезается. */
.marquee__row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); justify-items: center; align-items: center; gap: .8rem 1.6rem; padding: 1.25rem 0; }
.marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--text-soft); white-space: normal; min-width: 0; text-align: left; line-height: 1.3; }
.marquee__item .icon { width: 20px; height: 20px; color: var(--accent-bright); flex: none; }
.marquee__item b { color: var(--text); font-weight: 700; font-family: var(--font-display); font-size: .92em; white-space: nowrap; }
@media (max-width: 1023px) { .marquee__row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1.2rem; } }
@media (max-width: 560px) { .marquee__row { grid-template-columns: 1fr; gap: .7rem; } .marquee__item { text-align: center; justify-content: center; } }

/* ── Витрина карточек-товаров ────────────────────────────── */
.vitrina { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.car { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.car:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.car:hover{border-color: rgba(var(--accent-rgb), 0.4)}}
.car__media { position: relative; padding: 10px 10px 0; }
.car__frame { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #0A0C10; box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
.car__frame img { width: 100%; aspect-ratio: 16/11; object-fit: cover; transition: transform .5s var(--ease); }
.car:hover .car__frame img { transform: scale(1.04); }
.car__frame-blank { aspect-ratio: 16/11; display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 50%, var(--text-dim)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 26%, var(--panel)), var(--panel)); }
@supports not (color: color-mix(in srgb, red, red)){.car__frame-blank{color: rgba(var(--accent-rgb), 1); background: linear-gradient(135deg, rgba(var(--accent2-rgb), 0.26), var(--panel))}}
.car__type { position: absolute; left: .7rem; top: .7rem; background: rgba(10, 12, 16, .82); backdrop-filter: blur(4px); color: var(--link); font-size: .75rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; letter-spacing: .02em; }
.car__type i { font-style: inherit; } /* текст бейджа в <i> (для стиля ink) — без UA-курсива */
.car__type--ev { color: #8FE6C4; }
.car__type--hyb { color: var(--accent2); }
.car__body { padding: 1.1rem 1.25rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.car__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; color: var(--text); margin: 0 0 .1rem; line-height: 1.16; }
.car__year { color: var(--text-dim); font-size: .86rem; margin: 0 0 .8rem; }
.car__specs { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.car__specs li { background: var(--panel-2); color: var(--text-soft); font-size: .78rem; padding: .3rem .62rem; border-radius: 999px; border: 1px solid var(--line); }
.car__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.car__price { line-height: 1; }
.car__price b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.34rem; color: var(--text); white-space: nowrap; }
.car__price span { color: var(--text-dim); font-size: .75rem; }
.vitrina__foot { margin-top: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap; }
@media (max-width: 900px) { .vitrina { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vitrina { grid-template-columns: 1fr; } }

/* ── Сравнение цен / тарифов ─────────────────────────────── */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; position: relative; overflow: hidden; }
.price-card__model { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--text); margin: 0 0 1.1rem; }
.price-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.price-card__row span { color: var(--text-dim); font-size: .9rem; }
.price-card__row s { color: var(--text-soft); text-decoration-color: var(--accent); font-size: 1rem; font-weight: 500; white-space: nowrap; }
.price-card__row b { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; white-space: nowrap; }
.price-card__row--accent { border-bottom: 0; margin-top: 1rem; align-items: center; }
.price-card__row--accent span { color: var(--text-soft); }
.price-card__row--accent b { color: var(--accent2); }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }

/* ── Hero-обложка (лендинг): локация + акцент в заголовке + 2 CTA + сцена ─ */
.hero-cover { position: relative; display: flex; flex-direction: column; overflow: hidden;
  background:
    radial-gradient(120% 82% at 64% 6%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 44%),
    radial-gradient(90% 66% at 50% 98%, color-mix(in srgb, var(--link) 10%, transparent), transparent 56%); }
@supports not (color: color-mix(in srgb, red, red)){.hero-cover{background: radial-gradient(120% 82% at 64% 6%, rgba(var(--accent-rgb), 0.14) 0%, transparent 44%), radial-gradient(90% 66% at 50% 98%, rgba(var(--link-rgb), 0.1), transparent 56%)}}
.hero-cover__content { position: relative; z-index: 5; padding: clamp(4.8rem, 11vh, 7rem) 0 0; max-width: 850px; }
.hero-cover__loc { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent2); font-weight: 600; font-size: .9rem; margin: 0 0 1rem; }
.hero-cover__loc .icon { width: 16px; height: 16px; }
.hero-cover h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.15rem, 4.4vw, 3.6rem); color: var(--text); letter-spacing: -.03em; line-height: 1.07; margin: 0 0 .45em; text-wrap: balance; }
.accent { color: var(--accent-bright); }
.hero-cover h1 .accent { color: var(--accent-bright); }
/* Per-theme свой цвет: .tc + инлайн-переменные --tc-d (тёмная) / --tc-l (светлая).
   !important — чтобы явно заданный клиентом цвет перебивал спец. CSS элемента
   (.bill__example b, .bill__row i, .car__type и т.п.), иначе two-hex «не применялся». */
.tc { color: var(--tc-d) !important; }
[data-theme="light"] .tc { color: var(--tc-l) !important; }
/* Подсказка после копирования заявки в буфер (форма → Telegram). */
.lead-form__copied { margin: .7rem 0 0; font-size: .85rem; color: var(--accent2); font-weight: 500; }
.hero-cover__sub { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--text-soft); max-width: 34em; margin: 0 0 1.8rem; }
.hero-cover__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-cover__stage { position: relative; margin-top: clamp(.4rem, 3vh, 2.2rem); width: 100%; z-index: 1; pointer-events: none; line-height: 0; }
.hero-cover__art { width: 100%; height: auto; display: block; aspect-ratio: 1600/800; object-fit: cover; object-position: 50% 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 17%); mask-image: linear-gradient(to bottom, transparent 0, #000 17%); }
@media (max-width: 900px) { .hero-cover__art { aspect-ratio: 3/2; } }
@media (max-width: 640px) { .hero-cover__content { max-width: none; } .hero-cover__art { aspect-ratio: 5/4; } }

/* ── Hero с фоновым видео ────────────────────────────────────────────────── */
/* Медиа — absolute-fill (object-fit:cover), текст в обычном потоке поверх.
   Постер всегда в DOM и виден сразу; видео проявляется по canplay (класс is-ready).
   Кроп постера едет CSS-переменными (--hv-poster-*): у <picture> один <img>, а кропа
   два (десктоп/мобила), поэтому media-query подменяет переменные, а не style-атрибут. */
.hero-video { position: relative; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; overflow: hidden; min-height: var(--hv-min, 100svh); padding: clamp(6rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5.5rem); background: var(--bg); }
@supports not (height: 1svh){.hero-video{min-height: var(--hv-min-vh, 100vh); padding: clamp(6rem, 14vh, 9rem) 0 clamp(3rem, 8vh, 5.5rem); background: var(--bg)}}
.hero-video__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video__poster, .hero-video__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-video__poster { z-index: 1; object-position: var(--hv-poster-pos, 50% 50%); transform: scale(var(--hv-poster-scale, 1)); transform-origin: center; transition: opacity .6s var(--ease); }
.hero-video__video { z-index: 2; opacity: 0; transition: opacity .6s var(--ease); }
.hero-video__media.is-ready .hero-video__video { opacity: 1; }
.hero-video__media.is-ready .hero-video__poster { opacity: 0; }
.hero-video__overlay { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(var(--hv-ov-rgb, 0, 0, 0), calc(var(--hv-ov-a, .4) * .6)) 0%, rgba(var(--hv-ov-rgb, 0, 0, 0), var(--hv-ov-a, .4)) 100%); }
.hero-video__inner { position: relative; z-index: 4; }
/* Колонка 1080px: строка «Автомобили из Японии, Кореи и Китая» (Alumni 59px = 725px, Tektur = 939px)
   живёт целиком — с [br] редактор решает, где переносить. Подзаголовок ограничен отдельно (34em). */
.hero-video__content { max-width: 1080px; }
.hero-video--center .hero-video__content { margin-inline: auto; text-align: center; }
.hero-video--center .hero-video__cta { justify-content: center; }
.hero-video__loc { display: inline-flex; align-items: center; gap: .5rem; color: var(--accent2); font-weight: 600; font-size: .9rem; margin: 0 0 1rem; }
.hero-video__loc .icon { width: 16px; height: 16px; }
.hero-video h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.05rem, 4.8vw, 3.7rem); color: var(--text); letter-spacing: -.03em; line-height: 1.07; margin: 0 0 .45em; text-wrap: balance; }
.hero-video__sub { font-size: clamp(1.04rem, 1.6vw, 1.26rem); color: var(--text-soft); max-width: 34em; margin: 0 0 1.8rem; }
/* На больших экранах заголовок крупнее: 3.7rem в 1200-контейнере на 1920+ терялся. */
@media (min-width: 1600px) { .hero-video h1 { font-size: 4.1rem; } }
.hero-video--center .hero-video__sub { margin-inline: auto; }
.hero-video__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
/* Контраст поверх медиа: цвет текста задаёт ОВЕРЛЕЙ, а не тема — затемнённое видео
   в светлой теме иначе получало тёмный текст на тёмном кадре (нечитаемо).
   Приём тот же, что у .find__panel: элемент на фиксированном фоне держит свой набор. */
.hero-video--ov-dark h1, .hero-video--ov-dark .hero-video__sub, .hero-video--ov-dark .hero-video__loc, .hero-video--ov-dark .hero-video__hint { color: #FBF8F4; }
.hero-video--ov-dark .hero-video__sub { color: rgba(251, 248, 244, .86); }
.hero-video--ov-dark .hero-video__loc, .hero-video--ov-dark .hero-video__hint { color: rgba(251, 248, 244, .78); }
.hero-video--ov-dark .btn--ghost { color: #FBF8F4; box-shadow: inset 0 0 0 1.5px rgba(251, 248, 244, .45); }
.hero-video--ov-dark .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #FBF8F4; }
/* Акцент H1 и цифры табло над тёмным оверлеем — не зависят от темы (LESSONS §11: над медиа красит
   оверлей, а не тема): в светлой палитре accentBright темнее (#A80D27) и сливался с красным кадром.
   Берём accentBright ТЁМНОЙ палитры (--accent-on-dark из ../theme.css?v=a01aecbc) — тот же оттенок, что у всех акцентов
   в тёмной теме (единая семья с кнопками), плюс мягкая тень у h1 и левый скрим. */
.hero-video--ov-dark { --hv-accent: var(--accent-on-dark, var(--accent-bright)); }
.hero-video--ov-dark h1 { text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.hero-video--ov-dark h1 .accent { color: var(--hv-accent); }
/* Левый скрим под текстовой колонкой (только при тексте слева): кадр остаётся открытым справа. */
.hero-video--left.hero-video--ov-dark .hero-video__overlay { background: linear-gradient(180deg, rgba(var(--hv-ov-rgb, 0, 0, 0), calc(var(--hv-ov-a, .4) * .6)) 0%, rgba(var(--hv-ov-rgb, 0, 0, 0), var(--hv-ov-a, .4)) 100%), linear-gradient(90deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .28) 42%, rgba(0, 0, 0, 0) 72%); }
.hero-video--ov-light h1, .hero-video--ov-light .hero-video__sub, .hero-video--ov-light .hero-video__loc, .hero-video--ov-light .hero-video__hint { color: #15161A; }
.hero-video--ov-light .hero-video__sub { color: rgba(21, 22, 26, .82); }
.hero-video--ov-light .hero-video__loc, .hero-video--ov-light .hero-video__hint { color: rgba(21, 22, 26, .7); }
.hero-video--ov-light .btn--ghost { color: #15161A; box-shadow: inset 0 0 0 1.5px rgba(21, 22, 26, .3); }
.hero-video--ov-light .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #15161A; }
/* Шапка над затемнённой видео-обложкой до скролла прозрачная — значит её текст тоже
   должен быть светлым в ОБЕИХ темах (иначе в светлой теме тёмный логотип на тёмном кадре).
   Работает только при таком hero и только пока шапка не «scrolled» (после скролла у неё
   появляется свой фон). Бургер-меню не трогаем — у него собственный фон var(--surface). */
body.has-hero-ov-dark .site-header:not(.scrolled) .brand,
body.has-hero-ov-dark .site-header:not(.scrolled) .brand__name small,
body.has-hero-ov-dark .site-header:not(.scrolled) .theme-toggle { color: rgba(251, 248, 244, .92); }
body.has-hero-ov-dark .site-header:not(.scrolled) .theme-toggle { border-color: rgba(251, 248, 244, .34); }
@media (min-width: 1080px) {
  body.has-hero-ov-dark .site-header:not(.scrolled) .site-nav a:not(.site-nav__cta),
  body.has-hero-ov-dark .site-header:not(.scrolled) .site-header__phone { color: rgba(251, 248, 244, .82); }
}
/* Симметрично для светлого оверлея («бумага»): текст шапки тёмный в обеих темах —
   иначе в тёмной теме светлый телефон/тумблер пропадают на светлом кадре. */
body.has-hero-ov-light .site-header:not(.scrolled) .brand,
body.has-hero-ov-light .site-header:not(.scrolled) .brand__name small,
body.has-hero-ov-light .site-header:not(.scrolled) .theme-toggle { color: rgba(21, 22, 26, .92); }
body.has-hero-ov-light .site-header:not(.scrolled) .theme-toggle { border-color: rgba(21, 22, 26, .3); }
@media (min-width: 1080px) {
  body.has-hero-ov-light .site-header:not(.scrolled) .site-nav a:not(.site-nav__cta),
  body.has-hero-ov-light .site-header:not(.scrolled) .site-header__phone { color: rgba(21, 22, 26, .82); }
}
/* Верхний градиент-скрим под шапкой: до скролла шапка ПОЛНОСТЬЮ прозрачная (без фона и
   размытия — размытая полоса «обрезала» кадр), читаемость логотипа/меню держит скрим.
   Цвет — по оверлею (как и цвет текста), а не по теме. Без оверлея скрима нет. */
.hero-video__scrim { position: absolute; left: 0; right: 0; top: 0; height: 160px; z-index: 4; pointer-events: none; }
.hero-video--ov-dark .hero-video__scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 100%); }
.hero-video--ov-light .hero-video__scrim { background: linear-gradient(180deg, rgba(255, 255, 255, .65) 0%, rgba(255, 255, 255, 0) 100%); }

.hero-video__hint { position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0; color: var(--text-dim); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; animation: hint-drift 2.6s ease infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hero-video__hint { animation: none; } .hero-video__poster, .hero-video__video { transition: none; } }
@media (max-width: 640px) {
  /* мобильный кроп постера (вертикальный файл) — подменяем переменные, не style-атрибут */
  .hero-video__media { --hv-poster-pos: var(--hv-poster-m-pos, 50% 50%); --hv-poster-scale: var(--hv-poster-m-scale, 1); }
  .hero-video { padding: clamp(5rem, 16vh, 7rem) 0 3.4rem; }
  .hero-video__content { max-width: none; }
  .hero-video__hint { display: none; }
}

/* ── Вкладки (фильтр карточек витрины по метке) ──────────────────────────── */
/* Без JS фильтровать нечем → панель скрыта, видны все карточки (fail-safe). */
.tabs { display: none; }
.js .tabs { display: flex; gap: clamp(1rem, 3vw, 2.2rem); align-items: baseline; margin-top: 2.2rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
/* Тап-цель ≥ 44px: min-height + минимальная ширина (короткая вкладка «Все» была 22px). */
.tabs__btn { flex: none; cursor: pointer; border: 0; background: transparent; padding: .3rem 0 .55rem; min-height: 44px; min-width: 44px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.1; letter-spacing: -.02em; text-transform: uppercase; color: var(--text-dim); white-space: nowrap; border-bottom: 3px solid transparent; transition: color .18s, border-color .18s; }
.tabs__btn:hover { color: var(--text-soft); }
.tabs__btn.is-on { color: var(--text); border-bottom-color: var(--accent); }
.tabs__btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; }
.tabs + .vitrina { margin-top: 1.8rem; }

/* ── Фоновое фото секции (например у «Этапов») ───────────────────────────── */
.section--has-bg { position: relative; overflow: hidden; }
.section-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.section-bg__veil { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, var(--bg-veil, 0)); }
[data-theme="light"] .section-bg__veil { background: rgba(10, 12, 16, var(--bg-veil, 0)); }
.section--has-bg > .container { position: relative; z-index: 2; }
/* Карточки шагов поверх фото — на НЕпрозрачной панели (контраст текста не зависит от фото) */
.section--has-bg .step-row__body { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.1rem; }
.section--has-bg .step-row__body h3 { margin-top: 0; }
.section--has-bg .section-head { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 640px; }

/* ── Этапы/процесс (вертикальный таймлайн с коннектором + pay-бейдж) ────── */
.steps-flow { margin-top: 2.8rem; display: grid; gap: 0; }
.step-row { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding-bottom: 2rem; position: relative; }
.step-row:last-child { padding-bottom: 0; }
.step-row__num { position: relative; z-index: 1; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--panel); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--accent-bright); }
.step-row:not(:last-child)::before { content: ""; position: absolute; left: 26px; top: 52px; bottom: -4px; width: 1px; background: linear-gradient(var(--line-strong), transparent); }
.step-row__body h3 { font-size: 1.16rem; color: var(--text); margin: .3rem 0 .35rem; font-family: var(--font-display); font-weight: 600; }
.step-row__body p { color: var(--text-soft); margin: 0; max-width: 56ch; }
.step-row__pay { display: inline-flex; align-items: center; gap: .4rem; margin-top: .7rem; background: color-mix(in srgb, var(--accent2) 12%, transparent); color: var(--accent2); border: 1px solid color-mix(in srgb, var(--accent2) 30%, transparent); font-size: .82rem; font-weight: 600; padding: .32rem .75rem; border-radius: 999px; }
@supports not (color: color-mix(in srgb, red, red)){.step-row__pay{background: rgba(var(--accent2-rgb), 0.12); color: var(--accent2); border: 1px solid rgba(var(--accent2-rgb), 0.3); font-size: .82rem; font-weight: 600; padding: .32rem .75rem; border-radius: 999px}}
.step-row__pay .icon { width: 15px; height: 15px; }
@media (max-width: 560px) { .step-row { gap: 1rem; } .step-row__num { width: 46px; height: 46px; } .step-row:not(:last-child)::before { left: 23px; top: 46px; } }

/* ── Этапы, вид «Редакционный»: фото-колонка слева (sticky) + шаги справа ── */
/* Шаги БЕЗ карточек-коробок и без боковых цветных полос: крупный номер дисплейным
   шрифтом, текст и тонкая линия-разделитель. На мобиле фото сверху, шаги ниже. */
.steps-ed { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: 2.8rem; align-items: start; }
.steps-ed > * { min-width: 0; }
.steps-ed__media { margin: 0; }
.steps-ed__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-radius: var(--radius-lg); }
.steps-ed__cap { margin: .7rem 0 0; color: var(--text-dim); font-size: .82rem; line-height: 1.5; }
.steps-ed__list { list-style: none; margin: 0; padding: 0; }
.steps-ed__step { display: flex; align-items: flex-start; gap: clamp(1rem, 2.4vw, 1.8rem); padding: clamp(1.3rem, 2.6vw, 1.9rem) 0; border-top: 1px solid var(--line); }
.steps-ed__step:first-child { border-top: 0; padding-top: 0; }
.steps-ed__num { flex: none; min-width: 1.5em; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: .9; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps-ed__body { min-width: 0; }
.steps-ed__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--text); margin: .15rem 0 .4rem; }
.steps-ed__body p { margin: 0; color: var(--text-soft); max-width: 56ch; }
@media (min-width: 1024px) {
  .steps-ed { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
  .steps-ed__media { position: sticky; top: 96px; }
  .steps-ed__img { aspect-ratio: 3/4; }
}

/* ── Блок доверия/реквизитов: сетка БЕЗ сирот по числу пунктов (data-n из рендера) ──
   3 → 3 в ряд, на планшете сразу 1 колонка (не 2+1); 4 → 4/2/1; 2 → 2/1; 5–6 → 3/2/1.
   minmax(0,1fr) — ячейки сжимаются, длинный текст не растягивает сетку. */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem; margin-top: 2.6rem; }
.trust[data-n="1"] { grid-template-columns: 1fr; max-width: 720px; }
.trust[data-n="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trust[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust[data-n="5"], .trust[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .trust[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .trust[data-n="3"] { grid-template-columns: 1fr; } .trust[data-n="5"], .trust[data-n="6"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.trust__item { display: flex; gap: 1rem; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.trust__item .icon { width: 26px; height: 26px; color: var(--accent-bright); flex: none; margin-top: .15rem; }
.trust__item h3 { font-size: 1.06rem; color: var(--text); margin: 0 0 .3rem; font-family: var(--font-display); font-weight: 600; }
.trust__item p { margin: 0; color: var(--text-soft); font-size: .92rem; }
.trust__item a { color: var(--link); }
@media (max-width: 720px) { .trust, .trust[data-n] { grid-template-columns: 1fr; } }

/* ── Услуги-чипы (иконка + текст, пилюли) ────────────────────────────────── */
.svc-chips { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.svc-chip { display: inline-flex; align-items: center; gap: .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.1rem; color: var(--text); font-size: .94rem; font-weight: 500; }
.svc-chip .icon { width: 19px; height: 19px; color: var(--accent2); flex: none; }

/* ── Инфо-карточки со статистикой (иконка + число + текст) ────────────────── */
.infocards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.infocard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.infocard .icon { width: 30px; height: 30px; color: var(--link); margin-bottom: .9rem; }
.infocard b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--text); line-height: 1; margin-bottom: .5rem; }
.infocard b .u { font-size: .94rem; color: var(--text-soft); font-weight: 500; }
.infocard p { margin: 0; color: var(--text-soft); font-size: .94rem; }
@media (max-width: 820px) { .infocards { grid-template-columns: 1fr; } }

/* ── Раскладка цены (bill) + пояснение (spoiler) + глоссарий ───────────────── */
.breakdown { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; margin-top: 2.6rem; }
.bill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.7rem; box-shadow: var(--shadow-soft); }
.bill__example { color: var(--text-dim); font-size: .86rem; margin: 0 0 1rem; }
.bill__example b { color: var(--accent2); font-family: var(--font-display); font-weight: 600; }
.bill__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); color: var(--text-soft); font-size: .96rem; }
.bill__row i { font-style: normal; color: var(--text); font-weight: 600; font-family: var(--font-display); white-space: nowrap; }
.bill__row .gift { color: var(--accent2); }
.bill__total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-strong); }
.bill__total span { color: var(--text); font-weight: 600; }
.bill__total b { color: var(--text); font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; white-space: nowrap; }
.bill__seal { margin-top: 1.2rem; display: flex; gap: .7rem; align-items: flex-start; background: color-mix(in srgb, var(--accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 12px; padding: .9rem 1.1rem; color: var(--text-soft); font-size: .9rem; }
@supports not (color: color-mix(in srgb, red, red)){.bill__seal{background: rgba(var(--accent-rgb), 0.09); border: 1px solid rgba(var(--accent-rgb), 0.28); border-radius: 12px; padding: .9rem 1.1rem; color: var(--text-soft); font-size: .9rem}}
.bill__seal .icon { width: 20px; height: 20px; color: var(--accent-bright); flex: none; margin-top: .1rem; }
/* Вид «Полосы долей»: та же смета читается как инфографика (длина полосы = доля
   строки в сумме). Цвет полосы — акцент; «в подарок» — второй акцент. */
.bill--bars .bill__bar { padding: .75rem 0; border-bottom: 1px dashed var(--line); }
.bill--bars .bill__bar:last-of-type { border-bottom: 0; }
.bill__bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; color: var(--text-soft); font-size: .96rem; }
.bill__bar-head i { font-style: normal; color: var(--text); font-weight: 600; font-family: var(--font-display); white-space: nowrap; }
.bill__bar-head .gift { color: var(--accent2); }
.bill__bar-track { display: block; height: 8px; margin-top: .55rem; border-radius: 999px; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
@supports not (color: color-mix(in srgb, red, red)){.bill__bar-track{background: rgba(var(--text-rgb), 0.09); overflow: hidden}}
.bill__bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.bill__bar-fill--gift { background: var(--accent2); }
.bill--bars .bill__total { margin-top: 1.4rem; }
.bill--bars .bill__total b { font-size: 1.95rem; }
@media (max-width: 560px) { .bill--bars .bill__total b { font-size: 1.55rem; } }

.spoiler { margin-top: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.spoiler > summary { cursor: pointer; list-style: none; padding: 1.05rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler > summary::after { content: "▾"; color: var(--accent-bright); transition: transform .25s; }
.spoiler[open] > summary::after { transform: rotate(180deg); }
.spoiler__body { padding: 0 1.4rem 1.4rem; color: var(--text-soft); font-size: .95rem; }
.spoiler__body p { margin: .4rem 0 .8rem; }
.spoiler__body b { color: var(--text); }
.glossary { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.glossary details { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; }
.glossary summary { list-style: none; cursor: pointer; padding: .44rem .9rem; font-size: .84rem; font-weight: 600; color: var(--accent2); }
.glossary summary::-webkit-details-marker { display: none; }
.glossary details[open] { border-radius: 12px; padding-bottom: .7rem; }
.glossary details[open] summary { color: var(--text); }
.glossary p { margin: .1rem .9rem 0; color: var(--text-soft); font-size: .86rem; max-width: 44ch; }
@media (max-width: 820px) { .breakdown { grid-template-columns: 1fr; } }

/* Фиксы переполнения на узких экранах (грид-элементы должны сжиматься) */
.breakdown > * { min-width: 0; }
@media (max-width: 560px) {
  .bill { padding: 1.3rem 1.2rem; }
  .bill__total b { font-size: 1.45rem; }
}

/* ── Галерея фото (сетка 3 кол + лайтбокс) ────────────────────────────────── */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.4rem; }
.gallery .shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #0A0C10; box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
.gallery .shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.gallery .shot:hover img { transform: scale(1.05); }
.shot__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem .9rem .7rem; background: linear-gradient(transparent, rgba(8, 10, 14, .9)); color: #fff; font-size: .82rem; font-weight: 500; }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ── Услуга с фото: текст слева + мозаика фото справа ─────────────────────── */
/* Фото — те же .shot/[data-zoom] внутри [data-gallery]: лайтбокс общий (site.js). */
.feature-gallery { display: grid; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.feature-gallery > * { min-width: 0; }
.feature-gallery__text h2 { margin-bottom: .45em; }
.feature-gallery__lead { color: var(--text-soft); }
.feature-gallery__lead p { margin: 0 0 .8rem; }
.feature-gallery__lead p:last-child { margin-bottom: 0; }
.feature-gallery__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
/* Чип — одной строкой: при сужении колонки текст не ломается внутри пилюли (иначе двухстрочные
   пилюли разной высоты и формы). На самых узких экранах длинный чип переносится с обычным скруглением. */
.feature-gallery__chips .svc-chip { white-space: nowrap; max-width: 100%; line-height: 1.2; }
@media (max-width: 420px) { .feature-gallery__chips .svc-chip { white-space: normal; border-radius: 16px; } }
/* Заголовок блока в .section-head — тот же декор (мазок/линия/точка), что у всех секций. */
.feature-gallery__text .section-head { margin-bottom: 1rem; }
.feature-gallery__cta { display: flex; margin-top: 1.7rem; }
.feature-gallery__media { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.feature-gallery__media .shot { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); cursor: zoom-in; }
/* height:100% — соседнее фото добирает высоту ряда (иначе под ним оставалась пустота:
   крупное фото 2/3 ширины выше, чем маленькое 1/3 при том же aspect-ratio). */
.feature-gallery__media .shot img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.feature-gallery__media .shot:hover img { transform: scale(1.05); }
/* Первое фото — крупное: 2 колонки из 3 (2/3 ширины колонки). */
.feature-gallery__media .shot--lead { grid-column: span 2; }
/* Ровно 3 фото: ведущее занимает 2 колонки × 2 строки, два малых — столбиком справа (без дыры во втором ряду). */
.feature-gallery__media .shot--lead:nth-last-child(3) { grid-row: span 2; }
.feature-gallery__media .shot--lead:nth-last-child(3) img { aspect-ratio: auto; height: 100%; position: absolute; inset: 0; }
.feature-gallery__media .shot--lead:nth-last-child(3) { min-height: 100%; }
@media (min-width: 1024px) { .feature-gallery { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
/* На мобиле — текст, затем горизонтальная лента фото со scroll-snap. */
@media (max-width: 1023px) {
  .feature-gallery__media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .feature-gallery__media .shot { flex: 0 0 min(80%, 340px); scroll-snap-align: start; }
}

/* ── Отзывы: рейтинг-бейдж + лента цитат scroll-snap (свайп + стрелки), как в прототипе ─ */
.reviews__badge { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem 1.7rem; box-shadow: var(--shadow-soft); margin-top: 2.4rem; }
.reviews__score { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; color: var(--accent2); line-height: 1; }
.reviews__stars { color: var(--accent2); font-size: 1.05rem; letter-spacing: .14em; }
.reviews__meta { color: var(--text-soft); font-size: .92rem; margin-top: .2rem; }
.reviews__badge .btn { margin-left: auto; }
/* Два рейтинг-бейджа рядом (напр. 2ГИС + Яндекс), одинаковой высоты. */
.reviews__badges { display: grid; gap: 1rem; margin-top: 2.4rem; }
.reviews__badges .reviews__badge { margin-top: 0; height: 100%; }
@media (min-width: 720px) { .reviews__badges { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.quotes-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.quotes-hint { color: var(--text-soft); font-size: .9rem; margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.quotes-hint .icon { width: 17px; height: 17px; color: var(--accent2); flex: none; }
.quotes-nav { display: flex; gap: .5rem; flex: none; }
.qbtn { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: .18s; }
.qbtn:hover { border-color: var(--accent2); color: var(--accent2); }
.qbtn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.quotes { display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: .9rem; padding: .3rem .3rem 1.2rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.quotes::-webkit-scrollbar { height: 7px; }
.quotes::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.quote { scroll-snap-align: start; flex: 0 0 min(82%, 370px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; }
.quote__mark { color: var(--accent); font-family: var(--font-display); font-size: 2rem; line-height: .6; height: 1rem; }
.quote p { color: var(--text); font-size: 1rem; margin: .6rem 0 1rem; flex: 1; }
.quote__who { color: var(--text-dim); font-size: .86rem; }
.quote__who b { color: var(--accent2); font-weight: 600; display: block; }
@media (max-width: 640px) { .reviews__badge .btn { margin-left: 0; } }

/* ── Видео (poster + <video>) ─────────────────────────────────────────────── */
.video-figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #07080B; aspect-ratio: 16/9; max-width: 900px; margin: 2.4rem auto 0; border: 1px solid var(--line); }
.video-figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-figure iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video__badge { position: absolute; left: 1rem; top: 1rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; background: rgba(10, 12, 16, .82); backdrop-filter: blur(4px); color: #fff; font-size: .82rem; font-weight: 500; padding: .42rem .85rem; border-radius: 999px; pointer-events: none; }
.video__badge .icon { width: 15px; height: 15px; color: var(--accent-bright); }
/* Фасад видео: обложка + play, iframe грузится по клику (быстрый первый экран). */
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #07080B; cursor: pointer; display: block; }
.video-facade__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 999px; background: rgba(10, 12, 16, .72); display: grid; place-items: center; transition: background .15s ease, transform .15s ease; }
.video-facade__play svg { width: 30px; height: 30px; color: #fff; margin-left: 3px; }
.video-facade:hover .video-facade__play, .video-facade:focus-visible .video-facade__play { background: var(--accent); transform: translate(-50%, -50%) scale(1.06); }

/* ── Команда / персона ────────────────────────────────────────────────────── */
.team-list { display: grid; gap: 1.3rem; margin-top: 2.4rem; }
.team { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.4rem, 4vw, 2.6rem); align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-soft); }
.team__ava { width: 112px; height: 112px; border-radius: 20px; overflow: hidden; background: linear-gradient(150deg, var(--panel-2), color-mix(in srgb, var(--panel) 60%, #000)); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--accent2); flex: none; }
@supports not (color: color-mix(in srgb, red, red)){.team__ava{background: linear-gradient(150deg, var(--panel-2), rgba(var(--panel-rgb), 1)); border: 1px solid var(--line-strong); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--accent2); flex: none}}
.team__ava img { width: 100%; height: 100%; object-fit: cover; }
.team__body h3 { font-size: 1.3rem; color: var(--text); margin: 0 0 .1rem; font-family: var(--font-display); }
.team__role { color: var(--accent-bright); font-weight: 600; font-size: .92rem; margin: 0 0 .8rem; }
.team__body p { color: var(--text-soft); margin: 0 0 1rem; max-width: 56ch; }
.team__links { display: flex; gap: .7rem; flex-wrap: wrap; }
@media (max-width: 560px) { .team { grid-template-columns: 1fr; text-align: center; } .team__ava { margin-inline: auto; } .team__links { justify-content: center; } .team__body p { margin-inline: auto; } }

/* ── Контакты: карточка «как найти» + визуальная форма → мессенджер ────────── */
/* Колонки не растягиваются друг под друга: длинная встроенная форма растягивала фото «как найти» на 1400px.
   Карточка держит свою пропорцию (4:5, потолок 640px) и прилипает при прокрутке формы. */
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; margin-top: 2.4rem; }
.find { border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 88px; aspect-ratio: 4 / 5; max-height: 640px; min-height: 340px; border: 1px solid var(--line); background: var(--panel); }
.find img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.find__panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; background: linear-gradient(transparent, rgba(8, 10, 14, .94) 60%); color: #fff; }
.find__panel h3 { font-size: 1.2rem; margin: 0 0 .3rem; font-family: var(--font-display); }
.find__panel p { margin: 0 0 .9rem; color: rgba(255, 255, 255, .85); font-size: .94rem; }
.find__msgrs { display: flex; gap: .6rem; flex-wrap: wrap; }
.find__msgrs a { display: inline-flex; align-items: center; gap: .45rem; background: rgba(20, 24, 32, .85); border: 1px solid var(--line-strong); color: #fff; font-size: .88rem; font-weight: 600; padding: .5rem .9rem; border-radius: 10px; }
.find__msgrs a:hover { text-decoration: none; border-color: var(--accent2); }
.find__msgrs .icon { width: 16px; height: 16px; color: var(--accent2); }
.lead-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column; }
.lead-form h3 { font-size: 1.3rem; margin: 0 0 .4rem; color: var(--text); font-family: var(--font-display); }
.lead-form > p { color: var(--text-soft); font-size: .94rem; margin: 0 0 1.2rem; }
.lead-form .field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.lead-form .field > label { font-size: .88rem; color: var(--text-soft); font-weight: 500; }
.lead-form input[type="text"], .lead-form input[type="tel"] { box-sizing: border-box; width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: .7rem .85rem; }
.lead-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.budget { display: flex; flex-wrap: wrap; gap: .5rem; }
.budget label { display: inline-flex; cursor: pointer; position: relative; }
.budget input { position: absolute; opacity: 0; width: 0; height: 0; }
.budget span { display: inline-block; padding: .55rem .95rem; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text-soft); font-size: .86rem; font-weight: 500; transition: .18s; }
.budget label:hover span { border-color: var(--accent2); }
.budget input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.budget input:focus-visible + span { outline: 2px solid var(--accent-bright); outline-offset: 2px; }
.lead-form .btn--block { width: 100%; margin-top: .4rem; }
.lead-form__note { margin-top: .5rem; color: var(--text-dim); font-size: .82rem; }
/* Форма-соло (отдельный блок «только форма») — по центру секции. */
.lead-form--solo { max-width: 560px; margin-inline: auto; margin-top: 2.4rem; }
/* Встроенная форма сервиса (Яндекс/Google Формы): без рамки. Высота — стартовая из настройки
   блока, для Яндекс Форм site.js подгоняет её под контент по postMessage (иначе под формой висела
   пустота). Цветовая схема — параметром ?theme= в src (render.js), а не color-scheme: iframe чужого
   домена наших переменных не видит, а prefers-color-scheme форма игнорирует.
   Посадка: панель красится в цвет фона самой формы (замерено по пикселю без зерна: тёмная #121212, светлая #ffffff),
   иначе виден шов «форма в форме», а кнопка «Отправить» и полоса «Яндекс 360» режут на границе. */
:root { --embed-bg: #FFFFFF; }
:root[data-theme="dark"] { --embed-bg: #121212; }
.lead-form--embed { max-width: 760px; background: var(--embed-bg); }
.lead-form--embed h3, .lead-form--embed > p { padding-inline: .5rem; }
.form-embed-wrap { width: 100%; padding: .4rem .5rem 0; box-sizing: border-box; }
.form-embed { display: block; width: 100%; height: var(--form-embed-h, 800px); border: 0; background: transparent; transition: height .25s ease; }
/* Яндекс: две копии формы (light/dark) в одной ячейке — видна та, что совпадает с темой; скрытая
   остаётся в потоке (visibility, не display), поэтому грузится заранее и высота ячейки не схлопывается
   при переключении темы (раньше перезагрузка iframe сжимала соседнее фото контактов). */
.form-embed-wrap--themed { display: grid; }
.form-embed-wrap--themed > .form-embed { grid-area: 1 / 1; }
.form-embed--dark { visibility: hidden; }
:root[data-theme="dark"] .form-embed--light { visibility: hidden; }
:root[data-theme="dark"] .form-embed--dark { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .form-embed { transition: none; } }
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; } .find { position: relative; top: auto; aspect-ratio: 4 / 3; min-height: 260px; } }

/* ── Тень шапки при скролле + мобильная sticky-панель CTA ─────────────────── */
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), var(--shadow-soft); }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky); display: none; gap: .6rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(120%); transition: transform .32s var(--ease); }
@supports not (color: color-mix(in srgb, red, red)){.sticky-cta{background: rgba(var(--bg-rgb), 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(120%); transition: transform .32s var(--ease)}}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-cta .btn { flex: 1; }
.sticky-cta .btn--ghost { flex: none; }
.sticky-cta .btn .icon { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (max-width: 720px) { .sticky-cta { display: flex; } body { padding-bottom: 4.6rem; } }
/* Sticky на ПК (опционально, meta.stickyCta.desktop) — компактная плавающая пилюля справа-снизу. */
@media (min-width: 721px) {
  .sticky-cta--desktop { display: flex; left: auto; right: 1.5rem; bottom: 1.5rem; width: auto; max-width: 380px; gap: .5rem; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); }
  .sticky-cta--desktop .btn { flex: none; }
}

/* CTA-кнопка блока (опциональна у любого блока). Пресеты позиции: лево/центр/право/во всю ширину. */
.block-cta { display: flex; margin-top: 1.8rem; }
.block-cta--left { justify-content: flex-start; }
.block-cta--center { justify-content: center; }
.block-cta--right { justify-content: flex-end; }
.block-cta--full { display: block; }
.block-cta--full .btn { display: flex; width: 100%; justify-content: center; }
@media (max-width: 560px) { .block-cta:not(.block-cta--full) { justify-content: center; } }

/* ═══ FIDELITY 1:1 с прототипом (01-toggle.html) ═══════════════════════════ */
/* База под макет (перекрывает портфолио-значения из site.css для этого сайта) */
.container { width: min(1200px, 100% - 3rem); }
.section { padding: clamp(3.6rem, 8vw, 7rem) 0; position: relative; overflow: clip; }
/* Стык секций с РАЗНЫМ фоном (glass → surface/panel и обратно, после cover-экрана продукта или сцены):
   на широких экранах заголовку нужно больше воздуха над видимой границей (Kinfolk: 135–170px на ≥1440),
   иначе он «прилипает» к кромке предыдущего блока. Внутри одного фона ритм прежний. */
@media (min-width: 1024px) {
  .section--glass + .section--surface, .section--glass + .section--panel,
  .section--surface + .section--glass, .section--panel + .section--glass,
  .section--surface + .section--panel, .section--panel + .section--surface,
  .product--cover + .section, .scene + .section, .hero-video + .section, .hero-poster + .section { padding-top: clamp(6rem, 9.5vw, 10rem); }
}
.btn { border-radius: 11px; padding: .92rem 1.6rem; min-height: 48px; }
.btn--small { padding: .62rem 1.15rem; font-size: .92rem; min-height: 44px; border-radius: 11px; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--accent) 85%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.btn--primary{box-shadow: 0 14px 30px -14px rgba(var(--accent-rgb), 0.85)}}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, #fff); }
@supports not (color: color-mix(in srgb, red, red)){.btn--primary:hover{background: rgba(var(--accent-rgb), 1)}}

/* Точечные оверрайды светлой темы (как в макете): элементы на фиксированном
   тёмном фоне должны сохранять светлый текст независимо от темы. */
[data-theme="light"] .site-header.scrolled { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 0 var(--line), 0 10px 26px -20px rgba(23, 38, 56, .35); }
[data-theme="light"] .hero-cover { background: radial-gradient(120% 82% at 64% 4%, rgba(218, 59, 47, .09) 0%, transparent 46%), radial-gradient(90% 60% at 50% 100%, rgba(20, 24, 30, .04), transparent 62%), linear-gradient(180deg, #FFFFFF 0%, #FAFBFD 55%, #F5F8FC 100%); }
[data-theme="light"] .marquee { background: var(--surface); }
[data-theme="light"] .car__type { background: rgba(10, 14, 20, .82); color: #EAF3F5; }
[data-theme="light"] .car__type--hyb { color: #F0C58C; }
[data-theme="light"] .step-row__pay { background: rgba(79, 97, 114, .1); color: var(--accent2-deep); border-color: rgba(79, 97, 114, .28); }
[data-theme="light"] .team__ava { background: linear-gradient(150deg, var(--panel-2), #CFDAE3); }
[data-theme="light"] .find__msgrs .icon { color: #DBE1E8; }
[data-theme="light"] .sticky-cta { background: rgba(255, 255, 255, .95); box-shadow: 0 -8px 24px -18px rgba(23, 38, 56, .4); }

/* Шапка 1:1 с макетом: логотип + название + подзаголовок + телефон */
.brand { display: flex; align-items: center; gap: .62rem; margin-right: auto; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; line-height: 1; max-width: none; -webkit-line-clamp: none; overflow: visible; flex: none; }
/* Лого не обязано быть квадратным: фиксируем высоту, ширину считает браузер. */
.brand__logo { height: 40px; width: auto; max-width: 160px; flex: none; border-radius: 10px; }
/* Отдельный логотип для тёмной темы (meta.logoDark). Задан → в тёмной теме показываем
   его вместо основного. Не задан (:has не сработал) → основной виден в обеих темах. */
.brand__logo--dark, .footer__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--dark, [data-theme="dark"] .footer__logo--dark { display: block; }
[data-theme="dark"] .brand.brand--dark-logo .brand__logo:not(.brand__logo--dark),
[data-theme="dark"] .footer__brand.footer__brand--dark-logo .footer__logo:not(.footer__logo--dark) { display: none; }
.brand__name { display: flex; flex-direction: column; }
.brand__name small { font-family: var(--font); font-weight: 400; font-size: .75rem; color: var(--text-dim); letter-spacing: .01em; margin-top: .2rem; white-space: nowrap; } /* ≥12px */
.site-header__phone { font-family: var(--font-display); font-weight: 500; font-size: .9rem; color: var(--text); white-space: nowrap; margin-left: .2rem; text-decoration: none; }
.site-header__phone:hover { color: var(--accent-bright); text-decoration: none; }
@media (max-width: 1080px) { .site-header__phone { display: none; } }
/* Несколько телефонов в шапке: основной + выпадающий список (наведение на ПК, тап на тач). */
.hdr-phones { position: relative; display: inline-flex; align-items: center; gap: 0; margin-left: .4rem; }
.hdr-phones .site-header__phone { margin-left: 0; }
.hdr-phones__toggle { border: 0; background: transparent; color: var(--text-soft); cursor: pointer; padding: .25rem .35rem; font-size: .8rem; line-height: 1; border-radius: 6px; }
.hdr-phones__toggle:hover { color: var(--accent-bright); }
.hdr-phones__menu { position: absolute; top: calc(100% + .4rem); right: 0; min-width: 230px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; display: none; z-index: 130; }
.hdr-phones:hover .hdr-phones__menu, .hdr-phones.is-open .hdr-phones__menu { display: block; }
.hdr-phones__menu a { display: flex; flex-direction: column; gap: .05rem; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; }
.hdr-phones__menu a:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.hdr-phones__menu a:hover{background: rgba(var(--text-rgb), 0.08)}}
.hdr-phones__menu b { font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--text); white-space: nowrap; }
.hdr-phones__lbl { font-size: .75rem; color: var(--text-soft); }
/* На мобиле номера в шапке прячем (доступны в нижней панели/контактах) — правило ПОСЛЕ базовых. */
@media (max-width: 1080px) { .hdr-phones { display: none; } }
/* Список телефонов в футере (колонка «Связь»). */
.footer__phones { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .7rem; }
.footer__phones a { color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 500; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: baseline; }
.footer__phones a:hover { color: var(--accent-bright); }
.footer__phones-lbl { color: var(--text-dim); font-weight: 400; font-family: var(--font); font-size: .82rem; }
@media (max-width: 520px) { .brand__name small { display: none; } .brand { font-size: .98rem; } .site-header__inner { gap: .6rem; } }
/* Шапка-CTA на телефоне СКРЫТА (1:1 с прототипом): иначе кнопка в полный размер выталкивает
   тему+бургер за экран. Мобильный CTA закрывает нижняя sticky-панель. */
@media (max-width: 600px) { .site-header__cta { display: none; } }

/* Свап hero-сцен по теме (машина одна, меняется подложка-сцена) */
:root:not([data-theme="light"]) .hero-cover__art.theme-light { display: none !important; }
[data-theme="light"] .hero-cover__art.theme-dark { display: none !important; }

/* ═══ FIDELITY 1:1 (доп.): шапка / иконка темы / подвал ═══════════════════ */
/* Hex-соты как в макете — тонко/деликатно (вернули по правке заказчика) */
@media (min-width: 1200px) { .hex { opacity: .1; } }

/* Шапка фиксированная и ПОЛНОСТЬЮ прозрачная над hero: ни фона, ни размытия, ни линии
   (backdrop-filter из site.css гасим — иначе над видео-обложкой шапка шла размытой
   полосой и «обрезала» кадр). Фон+блюр появляются при скролле (.scrolled, порог 40px). */
.site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; border-bottom: 0; backdrop-filter: none; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(12, 14, 18, .82); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
[data-theme="light"] .site-header { background: transparent; }
html { scroll-padding-top: 76px; }

/* Иконка тумблера как в макете: dark → луна, light → солнце */
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
[data-theme="light"] .theme-toggle__sun { display: block; }
[data-theme="light"] .theme-toggle__moon { display: none; }

/* Подвал 1:1 с макетом (grid: бренд+реквизиты | колонка ссылок; дисклеймер на всю ширину) */
.site-footer { background: #0A0C10; color: var(--text-soft); padding: 2.6rem 0 3.6rem; font-size: .9rem; border-top: 1px solid var(--line); text-align: left; }
[data-theme="light"] .site-footer { background: var(--panel-2); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.6rem; }
.footer__brand { display: flex; align-items: center; gap: .6rem; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: .7rem; }
.footer__logo { height: 34px; width: auto; max-width: 140px; flex: none; border-radius: 9px; }
.footer__req { color: var(--text-dim); line-height: 1.7; font-size: .85rem; margin: 0; }
.footer__col h4 { color: var(--text); font-size: .9rem; margin: 0 0 .7rem; font-family: var(--font-display); font-weight: 600; }
.footer__col a { display: block; color: var(--text-soft); margin-bottom: .5rem; text-decoration: none; }
.footer__col a:hover { color: var(--text); text-decoration: none; }
/* подвал с доп. колонками (footer.cols): бренд шире, колонки ровно; строка о компании под логотипом */
.site-footer .container[data-cols] { grid-template-columns: minmax(0, 1.6fr) repeat(calc(var(--fc, 2)), minmax(0, 1fr)); column-gap: clamp(1.6rem, 3vw, 3rem); }
.site-footer .container[data-cols="2"] { --fc: 2; } .site-footer .container[data-cols="3"] { --fc: 3; } .site-footer .container[data-cols="4"] { --fc: 4; } /* data-cols — число колонок ссылок (основная + доп.) */
@media (max-width: 860px) { .site-footer .container[data-cols] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .container[data-cols] > div:first-child { grid-column: 1 / -1; } }
.footer__tag { max-width: 26em; margin: 0 0 .8rem; color: var(--text-soft); line-height: 1.55; }
.footer__disc { grid-column: 1 / -1; color: var(--text-dim); font-size: .8rem; border-top: 1px solid var(--line); padding-top: 1.2rem; margin: .4rem 0 0; }
@media (max-width: 640px) { .site-footer .container { grid-template-columns: 1fr; } }

/* ═══ FIDELITY 1:1 (доп.2): faq / hero-hint / галерея+отзывы одной секцией ═══ */
.faq { max-width: 820px; margin-inline: auto; }
.faq-section .faq__list { margin-top: 2.2rem; }

.hero-cover__hint { position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); z-index: 6; color: var(--text-dim); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; animation: hint-drift 2.6s ease infinite alternate; }
@keyframes hint-drift { from { transform: translate(-50%, 0); } to { transform: translate(-50%, 5px); } }
@media (prefers-reduced-motion: reduce) { .hero-cover__hint { animation: none; } }
@media (max-width: 640px) { .hero-cover__hint { display: none; } }

/* «Живые отзывы и реальные выдачи»: галерея (#gallery) и отзывы (#reviews) —
   одна визуальная секция (оба section--glass, склеиваем отступы, между ними лента-бант).
   ТОЛЬКО когда галерея стоит прямо перед отзывами (CVL): голое `#reviews { padding-top: 0 }` било по
   любому паку с блоком reviews — заголовок «Рейтинг и гарантии» ПП-02 прилипал к кромке предыдущей секции. */
@supports selector(:has(a)) { #gallery:has(+ #reviews) { padding-bottom: 0; } }
#gallery + #reviews { padding-top: 0; }
.ribbon-rule { position: relative; display: flex; align-items: center; justify-content: center; height: 92px; margin: 2.4rem 0 .4rem; }
.ribbon-rule::before { content: ""; position: absolute; left: 0; right: 0; top: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 22%, var(--line-strong) 78%, transparent); }
.ribbon-rule svg { position: relative; width: 132px; height: 92px; display: block; overflow: visible; }

/* ═══ FIDELITY 1:1 (доп.3): правки по замечаниям заказчика ═══════════════ */
/* 1. Тумблер темы — квадратный и прозрачный (фон hero виден сквозь него) */
.theme-toggle { width: 44px; height: 44px; border-radius: 11px; background: transparent; border: 1.5px solid var(--line-strong); }
.theme-toggle:hover { transform: none; border-color: var(--accent2); color: var(--accent2); }
/* 1b. Шапка чуть плотнее по начертанию */
.site-nav a:not(.site-nav__cta) { font-weight: 600; }

/* 3. Бейджи витрины — единые цвета в ОБЕИХ темах (на всегда-тёмной плашке) */
.car__type { color: #CFE2F6; }              /* Бензин — голубоватый */
.car__type--ev { color: #7FE3B6; }          /* Электро — зелёный */
.car__type--hyb { color: #E0AC5C; }         /* Гибрид — янтарь (един) */
[data-theme="light"] .car__type { background: rgba(10, 14, 20, .82); color: #CFE2F6; }
[data-theme="light"] .car__type--ev { color: #7FE3B6; }
[data-theme="light"] .car__type--hyb { color: #E0AC5C; }

/* 4. «Ваша выгода» — крупнее сумма (как в макете). Шрифт — дисплейный Unbounded (как всё в
   макете): теперь глиф ₽ есть в latin-ext сабсете (см. fonts.css), поэтому цифры И ₽ — оба
   чанковый Unbounded одного веса, как в прототипе. */
.price-card__row--accent b { font-size: 1.5rem; font-weight: 700; }

/* 6. Глоссарий — не растягивать соседние пилюли при открытии одной */
.glossary { align-items: flex-start; }

/* 10. Сервис-чипы — плотнее (жирнее) */
.svc-chip { font-weight: 600; }

/* 11. EV-иконки по смыслу: снежинка синяя, батарея красная, заправка зелёная.
   Таргетим .icon (а не svg): .infocard .icon{color:var(--link)} имеет специфичность
   (0,2,0) и раньше перебивал (0,1,1)-правила `svg` → все иконки уходили в --link
   (голубоватый в тёмной). Теперь тон-правила = (0,2,0) и идут ниже → выигрывают. */
.infocard--tone-blue .icon { color: #9FD0F0; }
[data-theme="light"] .infocard--tone-blue .icon { color: #3F86C4; }
.infocard--tone-red .icon { color: var(--accent-bright); }
[data-theme="light"] .infocard--tone-red .icon { color: var(--accent-bright); }
.infocard--tone-green .icon { color: #7FE3B6; }
[data-theme="light"] .infocard--tone-green .icon { color: #3FA372; }

/* 12. Кнопки — текст по центру; тень не наезжает на текст-примечание ниже:
   больше отступ + мягче нижняя тень у кнопок внутри форм. */
.btn { justify-content: center; text-align: center; }
/* Спецификация должна перебить `.lead-form > p` (0,1,1), который зануляет margin-top
   у примечания (это и была причина, что прошлый фикс отступа не срабатывал). */
.lead-form .lead-form__note { margin-top: 1.9rem; }
.lead-form .btn--primary { box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.lead-form .btn--primary{box-shadow: 0 8px 18px -12px rgba(var(--accent-rgb), 0.7)}}

/* 7. Ссылка в карточке «как вы защищены» (Образец договора) — только цвет-акцент, БЕЗ подчёркивания (как в прототипе) */
.trust__item a { color: var(--accent-bright); text-decoration: none; }
.trust__item a:hover { color: var(--accent); }

/* 13. Брендовая подпись в футере (designed by arromantsov) — мельче */
.footer__sign { grid-column: 1 / -1; justify-self: end; margin-top: .2rem; font-family: var(--font-display); font-size: .75rem; letter-spacing: .04em; color: var(--text-dim); text-decoration: none; opacity: .85; transition: opacity .18s, color .18s; }
.footer__sign:hover { opacity: 1; color: var(--accent-bright); text-decoration: none; }
.footer__sign b { font-weight: 700; color: var(--text-soft); }
@media (max-width: 640px) { .footer__sign { justify-self: start; } }

/* B. Лайтбокс-карусель (клик по фото → листаемый просмотр ←/→), как в прототипе.
   JS переключает атрибут hidden — нужен явный [hidden]{display:none}, т.к. .lightbox{display:grid}. */
.lightbox[hidden] { display: none; }
.lightbox { background: rgba(6, 8, 11, .96); touch-action: pan-y; cursor: default; }
.lightbox__img { max-width: 94vw; max-height: 82vh; }
.lightbox__btn { position: fixed; width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer; background: rgba(233, 238, 245, .14); color: #F3F5F8; font-size: 1.7rem; line-height: 1; display: grid; place-items: center; transition: background .15s; }
.lightbox__btn:hover { background: rgba(233, 238, 245, .28); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__counter { position: fixed; bottom: 1.1rem; left: 50%; transform: translateX(-50%); color: var(--text-soft); font-size: .92rem; letter-spacing: .1em; }
.lightbox--solo .lightbox__prev, .lightbox--solo .lightbox__next, .lightbox--solo .lightbox__counter { display: none; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { display: none; } }
[data-theme="light"] .lightbox__counter { color: #C9D2DC; }

/* ── Прелоадер (фича preloader; только вместе с блоком heroVideo) ────────── */
/* Слой приходит из рендера с hidden — без JS его не видно (fail-safe).
   Скролл блокируется классом .is-preloading на <html>, снимает его site.js. */
:root { --z-preloader: 400; }
html.is-preloading, html.is-preloading body { overflow: hidden; }
.preloader { position: fixed; inset: 0; z-index: var(--z-preloader); display: grid; place-items: center; background: var(--bg); color: var(--text); transition: opacity .4s ease; }
.preloader[hidden] { display: none; }
.preloader.is-done { opacity: 0; pointer-events: none; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; }
.preloader__text { margin: 0; color: var(--text-dim); font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }
.preloader__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 12vw, 6rem); line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.preloader__num::after { content: "%"; font-size: .32em; color: var(--text-dim); margin-left: .1em; vertical-align: super; }
/* Стиль «brand»: кольцо-солнце, заполняется по stroke-dashoffset (r=54 → длина 339.3) */
.preloader__ring { position: relative; width: clamp(140px, 34vw, 200px); aspect-ratio: 1; display: grid; place-items: center; }
.preloader__ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.preloader__track, .preloader__arc { fill: none; stroke-width: 4; }
.preloader__track { stroke: var(--line-strong); }
.preloader__arc { stroke: var(--pre-accent, var(--accent)); stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset .12s linear; }
.preloader--brand .preloader__num { font-size: clamp(1.5rem, 5vw, 2.2rem); }
.preloader--brand .preloader__num::after { font-size: .42em; }
/* Стиль «minimal»: тонкая полоса прогресса сверху */
.preloader--minimal .preloader__bar { position: fixed; left: 0; top: 0; width: 100%; height: 3px; background: color-mix(in srgb, var(--text) 12%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.preloader--minimal .preloader__bar{background: rgba(var(--text-rgb), 0.12)}}
.preloader__bar-fill { display: block; height: 100%; width: 0; background: var(--pre-accent, var(--accent)); transition: width .12s linear; }
@media (prefers-reduced-motion: reduce) { .preloader, .preloader__arc, .preloader__bar-fill { transition: none; } }
/* Режим «по факту» (wait=screen, у слоя data-delay-ms): пока html.is-preloading, слой виден сразу при разборе — не ждём тика
   скрипта (из тёплого кэша браузер успевал нарисовать страницу, и пустой слой мигал поверх) — и «тихий»: фон страницы без
   анимации; всё успело загрузиться → слой уходит незаметно. .is-awake (загрузка дольше delayMs) включает анимацию стиля с начала
   (до этого содержимое display:none). Без JS класса is-preloading нет — слой остаётся hidden. */
html.is-preloading .preloader[data-delay-ms][hidden] { display: grid; }
.preloader[data-delay-ms]:not(.is-awake) { background: var(--bg); }
.preloader[data-delay-ms]:not(.is-awake) .preloader__inner { display: none; }
.preloader[data-delay-ms] { transition: opacity .4s ease, background-color .3s ease; }
@media (prefers-reduced-motion: reduce) { .preloader[data-delay-ms] { transition: none; } }

/* ═══ ЭВОЛЮЦИЯ «ПРАВОГО ПУТИ» (сессия 4, 2026-09-17): материал темы, hero-постер, статы, сцены ═══
   Всё ниже — генерики: включаются параметрами темы (sectionEdge/grain) и селектами блоков
   (layout/cardStyle/statsStyle/reveal). Каждая механика: мобильный фолбэк + reduced-motion → статика. */

/* ── Материал темы: зерно поверх страницы (theme.grain) ────────────────────────────────────
   Тайл feTurbulence приходит из ../theme.css?v=a01aecbc (--grain-tile), 0 % → none. multiply на светлой теме
   только затемняет (бумага), screen на тёмной только высветляет (плёнка). Слой выше всего,
   клики не ловит. */
body::after { content: ""; display: var(--grain-display, none); position: fixed; inset: 0; z-index: 2000; pointer-events: none; background-image: var(--grain-tile, none); background-size: 240px 240px; opacity: var(--grain-opacity, 0); mix-blend-mode: multiply; }
[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: calc(var(--grain-opacity, 0) * .75); }

/* ── Материал темы: нижний край секций (theme.sectionEdge none|brush|wave) ────────────────
   Значение маски целиком приходит из ../theme.css?v=a01aecbc (--section-mask: два слоя — сплошной верх + полоса
   SVG-края внизу) или none: при «ровном» крае секции не получают маску и лишний GPU-слой.
   Применяется к секциям с фоном (surface/panel), cover-экранам и живой sticky-сцене. */
.section--surface, .section--panel, .product--cover, .scene--live .scene__sticky {
  -webkit-mask: var(--section-mask, none);
  mask: var(--section-mask, none);
}

/* ── Хореография первого экрана после прелоадера (preloader.js → html.is-revealing) ─────────
   Пока слой прелоадера открыт (html.is-preloading), дети контейнера data-stagger скрыты;
   по финалу — по очереди (--i). rise — снизу; ink — проявление маской слева направо (только
   текст: у кнопок маска срезала бы тень). Без прелоадера классов нет → обычный .reveal. */
.js.is-preloading .hero-stagger > * { opacity: 0; }
.js.is-preloading .hero-stagger.reveal, .js.is-revealing .hero-stagger.reveal { opacity: 1; transform: none; transition: none; }
.js.is-revealing .hero-stagger--rise > *, .js.is-revealing .hero-stagger--ink > :not(h1):not(p) { animation: hero-rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms + 60ms); }
.js.is-revealing .hero-stagger--ink > :is(h1, p) { animation: hero-ink 1.2s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 150ms); -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-image: linear-gradient(100deg, #000 42%, transparent 58%); -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.js.is-revealing .hero-stagger--none > * { opacity: 1; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes hero-ink { from { opacity: .001; -webkit-mask-position: 100% 0; mask-position: 100% 0; } 30% { opacity: 1; } to { opacity: 1; -webkit-mask-position: 0 0; mask-position: 0 0; } }

/* ── Цифры-факты: печати-ханко (seals) ────────────────────────────────────────────────────
   Круглый штамп с двойным кольцом, чуть повёрнут (каждый по-своему через --i), подпись рядом. */
.seals { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; }
.seals__cell { display: flex; align-items: center; gap: .9rem; }
.seals .icon { display: none; }
.seals__num { flex: none; width: 82px; height: 82px; border-radius: 50%; border: 2.5px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; position: relative; transform: rotate(calc(-7deg + var(--i, 0) * 4deg)); white-space: nowrap; padding-top: .05em; }
.seals__num::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.seals__num::after{border: 1px solid rgba(var(--accent-rgb), 0.6)}}
.seals__cap { font-size: .9rem; line-height: 1.3; color: var(--text-soft); max-width: 11em; }

/* ── Цифры-факты: табло (board) — крупные цифры, подписи капителью, flip при появлении ──── */
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.6rem; }
.board[data-n="1"] { grid-template-columns: 1fr; } .board[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board[data-n="3"], .board[data-n="5"], .board[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.board__cell { display: flex; flex-direction: column; gap: .4rem; padding-top: .9rem; border-top: 1px solid var(--line-strong); min-width: 0; perspective: 700px; }
.board .icon { display: none; }
.board__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.8rem); line-height: 1; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; text-wrap: balance; transform-origin: 50% 100%; }
.board__cap { font-size: .78rem; line-height: 1.35; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.board-section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; border-block: 1px solid var(--line); }
@keyframes board-flip { 0% { transform: rotateX(-88deg); opacity: 0; } 60% { transform: rotateX(14deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
.js .board.reveal .board__num { opacity: 0; }
.js .board.reveal.is-visible .board__num { animation: board-flip .8s var(--ease) both; animation-delay: calc(var(--i, 0) * 120ms); }
.js.is-revealing .hero-stats.board .board__num { animation: board-flip .8s var(--ease) both; animation-delay: calc(560ms + var(--i, 0) * 120ms); }
@media (max-width: 720px) { .board, .board[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .board__num { font-size: clamp(1.9rem, 9vw, 2.6rem); } }
@media (max-width: 360px) { .board, .board[data-n] { grid-template-columns: 1fr; } }

/* ── Обложка-постер (без медиа): фон темы, крупный заголовок, декор за текстом ───────────── */
.hero-poster { position: relative; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: hidden; min-height: var(--hp-min, 100svh); padding: clamp(6rem, 14vh, 9rem) 0 clamp(3.4rem, 8vh, 5.5rem); background: var(--bg); }
@supports not (height: 1svh){.hero-poster{min-height: var(--hp-min-vh, 100vh); padding: clamp(6rem, 14vh, 9rem) 0 clamp(3.4rem, 8vh, 5.5rem); background: var(--bg)}}
.hero-poster__inner { position: relative; z-index: 2; }
.hero-poster__content { max-width: 1080px; }
.hero-poster--center .hero-poster__content { margin-inline: auto; text-align: center; }
.hero-poster--center .hero-poster__cta, .hero-poster--center .seals, .hero-poster--center .board { justify-content: center; }
.hero-poster--center .board { display: flex; flex-wrap: wrap; }
.hero-poster--center .board__cell { flex: 0 1 200px; align-items: center; text-align: center; }
.hero-poster__loc { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-dim); font-weight: 600; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1.3rem; }
.hero-poster__loc .icon { width: 16px; height: 16px; }
/* Кегль: строка «Автомобили из Японии, Кореи и Китая» (Alumni 59px = 725px) должна жить целиком в колонке 1080px → ≤ 88px. */
.hero-poster h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.7rem, 6.8vw, 5.5rem); line-height: .98; letter-spacing: -.03em; color: var(--text); margin: 0 0 .32em; text-wrap: balance; }
.hero-poster__sub { font-size: clamp(1.06rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 36em; margin: 0 0 1.9rem; }
.hero-poster--center .hero-poster__sub { margin-inline: auto; }
.hero-poster__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-poster__stats { margin-top: clamp(2.2rem, 6vh, 3.6rem); }
.hero-poster--center .hero-poster__stats { display: flex; justify-content: center; }
/* Декор (энсо/солнце): цвет — акцент темы; за текстом (z-index 1), параллакс двигает transform (site.js),
   базовое положение — отдельным свойством translate, чтобы не спорить с параллаксом. */
/* Декор — «размыв туши» за текстом, не заливка: при .18 чёрный и красный текст читаются поверх кольца. */
.hero-poster__art { position: absolute; z-index: 1; pointer-events: none; color: var(--accent); width: clamp(340px, 46vw, 700px); aspect-ratio: 1; top: 50%; opacity: .18; }
[data-theme="dark"] .hero-poster__art { opacity: .28; }
.hero-poster__art svg { width: 100%; height: 100%; display: block; }
.hero-poster__art--right { right: 6vw; translate: 0 -56%; }
@supports not (translate: 0){.hero-poster__art--right{transform: translate(0, -56%)}}
.hero-poster__art--left { left: 6vw; translate: 0 -56%; }
@supports not (translate: 0){.hero-poster__art--left{transform: translate(0, -56%)}}
.hero-poster__art--center { left: 50%; translate: -50% -56%; }
@supports not (translate: 0){.hero-poster__art--center{transform: translate(-50%, -56%)}}
.hero-poster__hint { position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0; color: var(--text-dim); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; animation: hint-drift 2.6s ease infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hero-poster__hint { animation: none; } }
@media (max-width: 640px) {
  .hero-poster { padding: 5.6rem 0 3.2rem; min-height: auto; }
  .hero-poster h1 { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .hero-poster__art { width: 80vw; opacity: .16; top: 30%; }
  [data-theme="dark"] .hero-poster__art { opacity: .24; }
  .hero-poster__hint { display: none; }
  /* Печати на телефоне — столбиком (штамп слева, подпись справа): три в ряд не помещаются, 2+1 — сирота. */
  .seals { flex-direction: column; align-items: stretch; gap: .9rem; width: max-content; max-width: 100%; margin-inline: auto; }
  .seals__num { width: 64px; height: 64px; font-size: 1.35rem; } .seals__cap { font-size: .88rem; max-width: 14em; }
  .hero-poster--center .seals__cell { text-align: left; }
}

/* ── Hero-видео: виньетка + цифры-факты внутри обложки ─────────────────────────────────── */
.hero-video__vignette { position: absolute; inset: 0; z-index: 3; pointer-events: none; background: radial-gradient(ellipse 72% 62% at 50% 46%, transparent 38%, rgba(0, 0, 0, var(--hv-vignette, .45)) 100%); }
.hero-video__stats { margin-top: clamp(1.8rem, 4.5vh, 2.8rem); max-width: 900px; }
.hero-video--center .hero-video__stats { margin-inline: auto; }
.hero-video .board__num { font-size: clamp(1.9rem, 3.4vw, 3rem); }
.hero-video--ov-dark .board__num { color: var(--hv-accent, var(--accent-bright)); }
.hero-video--ov-dark .board__cap, .hero-video--ov-dark .seals__cap { color: rgba(251, 248, 244, .74); }
.hero-video--ov-dark .board__cell { border-top-color: rgba(251, 248, 244, .3); }
.hero-video--ov-light .board__num { color: var(--accent); }
.hero-video--ov-light .board__cap, .hero-video--ov-light .seals__cap { color: rgba(21, 22, 26, .72); }
.hero-video--ov-light .board__cell { border-top-color: rgba(21, 22, 26, .28); }

/* ── Продуктовый экран: одна машина, цена, факт, две кнопки ────────────────────────────── */
.product__inner { display: grid; gap: clamp(1.6rem, 4vw, 3.6rem); align-items: center; }
.product__inner > * { min-width: 0; }
.product__title { font-size: clamp(2.3rem, 4.8vw, 3.8rem); max-width: 16ch; margin: 0 0 .3em; }
.product__price { margin: 0 0 1.1rem; display: flex; flex-direction: column; }
.product__price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.05; color: var(--text); white-space: nowrap; }
.product__price span { color: var(--text-dim); font-size: .9rem; margin-top: .3rem; }
.product__lead { color: var(--text-soft); font-size: clamp(1.02rem, 1.4vw, 1.14rem); max-width: 50ch; margin: 0 0 1.1rem; }
.product__fact { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1.7rem; color: var(--text); font-weight: 500; font-size: .96rem; max-width: 46ch; }
.product__fact .icon { color: var(--accent); flex: none; margin-top: .1rem; }
.product__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.product__note { margin: 1rem 0 0; color: var(--text-dim); font-size: .8rem; }
.product__media { margin: 0; }
.product--split .product__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
@media (min-width: 900px) {
  .product--split .product__inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .product--media-left .product__text { order: 2; }
}
/* Вид cover: фото на всю ширину, текст поверх нижнего градиента — светлый в обеих темах. */
.product--cover { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: min(92svh, 880px); padding: clamp(5rem, 12vh, 8rem) 0 clamp(2.8rem, 6vh, 4.2rem); background: #0A0C10; }
@supports not (height: 1svh){.product--cover{min-height: min(92vh, 880px); padding: clamp(5rem, 12vh, 8rem) 0 clamp(2.8rem, 6vh, 4.2rem); background: #0A0C10}}
.product--cover .product__media { position: absolute; inset: 0; z-index: 0; }
.product__bg { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Два скрима: снизу (под кнопки) и слева (под текст) — фото остаётся открытым справа-сверху. */
.product__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 14, .1) 0%, rgba(8, 10, 14, .16) 40%, rgba(8, 10, 14, .86) 100%), linear-gradient(90deg, rgba(8, 10, 14, .72) 0%, rgba(8, 10, 14, .42) 38%, rgba(8, 10, 14, 0) 68%); }
.product--cover .product__text { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.product--cover .product__inner { position: relative; z-index: 1; display: block; }
.product--cover .product__text { max-width: 640px; }
.product--cover .product__title, .product--cover .product__price b, .product--cover .product__fact { color: #FBF8F4; }
.product--cover .product__lead { color: rgba(251, 248, 244, .86); }
.product--cover .product__price span, .product--cover .product__note { color: rgba(251, 248, 244, .68); }
/* Метка страны/канала на cover-экране — крупнее обычного eyebrow, капс с трекингом, как метка на табло. */
.product--cover .eyebrow { color: var(--accent-on-dark, var(--accent-bright)); font-family: var(--font-display); font-size: clamp(1rem, 1.3vw, 1.2rem); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.product--cover .product__fact .icon { color: var(--accent-on-dark, var(--accent-bright)); }
.product--cover .btn--ghost { color: #FBF8F4; box-shadow: inset 0 0 0 1.5px rgba(251, 248, 244, .5); }
.product--cover .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #FBF8F4; }
.product--blank { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
/* Телефон: фото над текстом (4:3), текст на тёмной панели — поверх кузова на узком экране он не читался. */
@media (max-width: 640px) {
  .product--cover { display: block; min-height: auto; padding: 0; }
  .product--cover .product__media { position: relative; aspect-ratio: 4/3; }
  .product--cover .product__veil { background: linear-gradient(180deg, transparent 55%, #0A0C10 100%); }
  .product--cover .product__inner { padding: .6rem 0 2.4rem; }
  .product--cover .product__text { max-width: none; text-shadow: none; }
}

/* ── Вводный блок: крупная фраза + подпись + метки (перед серией продуктовых экранов) ───────── */
.intro__body { max-width: 1000px; }
.intro--center .intro__body { margin-inline: auto; text-align: center; }
.intro__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; color: var(--text); margin: 0 0 .5em; text-wrap: balance; }
.intro--xl .intro__title { font-size: clamp(2.1rem, 4.4vw, 3.9rem); line-height: 1.06; }
.intro__lead { color: var(--text-soft); font-size: clamp(1.02rem, 1.4vw, 1.16rem); max-width: 58ch; margin: 0; }
.intro--center .intro__lead { margin-inline: auto; }
.intro__chips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.intro--center .intro__chips { justify-content: center; }
.intro__chip { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; padding: .5rem 1rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }

/* ── Офис и часовые пояса (location): фото + табло живых часов + адрес + пункты ─────────────── */
.loc { display: grid; gap: clamp(1.6rem, 4vw, 3rem); margin-top: 2.4rem; align-items: start; }
.loc > * { min-width: 0; }
.loc__photo { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.loc__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.loc__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.2rem .9rem; color: rgba(251, 248, 244, .86); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(transparent, rgba(8, 10, 14, .82)); }
.loc__body { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
/* Табло часов: цифры табличные (не «прыгают» при смене минуты), смещение UTC — мелкой меткой под городом. */
.board--clocks { gap: 1.2rem 1.6rem; }
.board--clocks .board__num { font-variant-numeric: tabular-nums; }
.board--clocks .board__cap em { display: block; font-style: normal; color: var(--text-dim); letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; margin-top: .15rem; }
.loc__address { border-top: 1px solid var(--line-strong); padding-top: 1.2rem; }
.loc__address h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 0 0 .3rem; color: var(--text); }
.loc__address p { color: var(--text-soft); margin: 0 0 1rem; max-width: 56ch; }
.loc__address .btn .icon { width: 16px; height: 16px; }
.loc__items { display: grid; gap: 1.1rem 1.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loc__item { display: flex; gap: .8rem; align-items: flex-start; padding-top: 1rem; border-top: 1px solid var(--line); }
.loc__item .icon { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: .1rem; }
.loc__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin: 0 0 .25rem; color: var(--text); }
.loc__item p { margin: 0; color: var(--text-soft); font-size: .93rem; }
@media (min-width: 900px) { .loc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .loc--no-photo { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .loc__items { grid-template-columns: 1fr; } .loc__photo img { aspect-ratio: 4 / 3; } }

/* ── Галерея, вид «бортжурнал»: фото на всю карточку, номер записи, подпись + метка на градиенте ── */
.logbook { display: grid; gap: 1rem; margin-top: 2.4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.logbook[data-n="2"], .logbook[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.log { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: #0A0C10; isolation: isolate; }
.log img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; cursor: zoom-in; transition: transform .6s var(--ease); }
.log:hover img { transform: scale(1.04); }
.log__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.2rem 1.1rem 1rem; display: grid; gap: .15rem; background: linear-gradient(transparent, rgba(8, 10, 14, .88)); pointer-events: none; }
.log__idx { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; color: var(--accent-on-dark, var(--accent-bright)); }
.log__cap b { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: #FBF8F4; line-height: 1.2; }
.log__meta { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(251, 248, 244, .72); }
@media (max-width: 900px) { .logbook, .logbook[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logbook, .logbook[data-n] { grid-template-columns: 1fr; } }

/* ── FAQ, вид «терминал»: шапка слева, номера 01–NN, вопрос display-шрифтом, широкая колонка ─── */
.faq--terminal { max-width: none; }
.faq--terminal .faq__list { max-width: 980px; }
.faq--terminal .faq__item { border-radius: 0; border: 0; border-top: 1px solid var(--line-strong); background: transparent; padding: 0; }
.faq--terminal .faq__item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq--terminal .faq__item summary { display: grid; grid-template-columns: 3.2rem 1fr auto; align-items: baseline; gap: 1rem; padding: 1.15rem 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.faq--terminal .faq__idx { font-weight: 700; font-size: .85rem; letter-spacing: .14em; color: var(--accent-bright); }
.faq--terminal .faq__answer { padding: 0 0 1.3rem 4.2rem; }
@media (max-width: 640px) { .faq--terminal .faq__item summary { grid-template-columns: 2.4rem 1fr auto; } .faq--terminal .faq__answer { padding-left: 0; } }

/* ── Команда, вид «экипаж»: карточки в ряд, роль меткой над именем ─────────────────────────── */
.team-list--crew { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.team-list--crew[data-n="2"], .team-list--crew[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-list--crew .team { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 1.2rem; }
.team-list--crew .team__ava { width: 96px; height: 96px; border-radius: var(--radius); }
.team-list--crew .team__role { font-family: var(--font-display); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .35rem; }
.team-list--crew .team__body h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.team-list--crew .team__body p { font-size: .95rem; }
@media (max-width: 900px) { .team-list--crew, .team-list--crew[data-n] { grid-template-columns: 1fr; } }

/* ── Обещание / гарантии: заголовок-колонка (sticky) + пункты без сирот ────────────────── */
.promise { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); }
.promise > * { min-width: 0; }
.promise .section-head { margin-bottom: 0; }
.promise__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem 2rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.promise__list[data-n="1"], .promise__list[data-n="3"], .promise__list[data-n="5"] { grid-template-columns: 1fr; }
.promise__item { display: flex; gap: 1rem; align-items: flex-start; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); }
.promise__icon { flex: none; width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.promise__icon{background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.28)}}
.promise__icon .icon { width: 22px; height: 22px; }
.promise__idx { flex: none; min-width: 2ch; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--accent); }
.promise__item h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.22rem; margin: 0 0 .35rem; color: var(--text); }
.promise__item p { margin: 0; color: var(--text-soft); font-size: .95rem; max-width: 42ch; }
.promise__note { margin: 1.8rem 0 0; color: var(--text-dim); font-size: .84rem; max-width: 72ch; }
@media (min-width: 900px) { .promise { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; } .promise .section-head { position: sticky; top: 96px; } }
@media (max-width: 640px) { .promise__list, .promise__list[data-n] { grid-template-columns: 1fr; } }

/* ── Sticky-сцена: по умолчанию вертикальная последовательность «фото + подпись» ───────── */
.scene__stage { margin-top: 2.4rem; }
.scene__item { margin: 0 auto 2.4rem; width: min(1200px, 100% - 3rem); }
.scene__item:last-of-type { margin-bottom: 0; }
.scene__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; border-radius: var(--radius-lg); }
.scene__cap { padding: 1rem 0 0; max-width: 60ch; }
.scene__idx { display: block; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: .9rem; letter-spacing: .12em; margin-bottom: .45rem; }
.scene__cap h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 0 0 .4rem; color: var(--text); }
.scene__cap p { margin: 0; color: var(--text-soft); }
.scene__progress { display: none; }
.scene__note { margin: 1.6rem 0 0; }
/* Живая сцена (site.js: ≥1024px, без reduced-motion): прилипший экран, кадры absolute, кроссфейд по классу
   (детерминированно в обе стороны), а ДВИЖЕНИЕ внутри кадра — функция прогресса (site.js пишет --fp 0…1 внутри
   кадра, --enter 0…1 при въезде сцены в экран, --cap для подписи): каждый щелчок колеса что-то меняет, нет
   «мёртвого скролла», кадр ≈ 38vh (2–3 щелчка), состояние обратимо. Высота сцены = экран + (кадров − 1) × шаг. */
.scene--live .scene__stage { height: calc(100vh + (var(--n, 3) - 1) * 38vh); margin-top: 1.6rem; }
.scene--short.scene--live .scene__stage { height: calc(100vh + (var(--n, 3) - 1) * 28vh); }
.scene--long.scene--live .scene__stage { height: calc(100vh + (var(--n, 3) - 1) * 52vh); }
.scene--live .scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0A0C10; }
@supports not (height: 1svh){.scene--live .scene__sticky{height: 100vh; overflow: hidden; background: #0A0C10}}
.scene--live .scene__frame { position: absolute; inset: 0; }
.scene--live .scene__item { position: absolute; inset: 0; margin: 0; width: 100%; opacity: 0; transition: opacity .55s var(--ease); }
.scene--live .scene__item.is-on { opacity: 1; z-index: 1; }
/* Кадр: лёгкий вертикальный параллакс по --fp (+2 % → −2 %) и приближение при въезде (1.12 → 1.06 по --enter). */
.scene--live .scene__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; transform: translate3d(0, calc((.5 - var(--fp, 0)) * 4%), 0) scale(calc(1.12 - var(--enter, 1) * .06)); will-change: transform; }
.scene--live .scene__cap { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; padding: 11rem max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem)) clamp(3rem, 7vh, 4.6rem); background: linear-gradient(transparent 0%, rgba(8, 10, 14, .45) 38%, rgba(8, 10, 14, .9) 100%); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); transform: translateY(calc((1 - var(--cap, 1)) * 26px)); opacity: var(--cap, 1); }
.scene--live .scene__cap h3 { color: #FBF8F4; font-size: clamp(1.7rem, 3vw, 2.7rem); max-width: 22ch; }
.scene--live .scene__cap p { color: rgba(251, 248, 244, .86); max-width: 58ch; font-size: 1.06rem; }
.scene--live .scene__idx { color: var(--accent-on-dark, var(--accent-bright)); }
/* Прогресс-полоса — внизу, над рваным краем (сверху её закрывала бы фиксированная шапка). */
.scene--live .scene__progress { display: block; position: absolute; left: 0; right: 0; bottom: var(--section-edge-h, 0px); height: 4px; background: rgba(255, 255, 255, .22); z-index: 3; }
.scene__progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
/* Режим «окно» (по умолчанию): кадр 16:9 в контейнере со скруглением cover-карточек, по центру прилипшего
   экрана на фоне секции. Full-bleed с фото <1920px «шакалит» — окно держит резкость. */
.scene--window.scene--live .scene__sticky { display: grid; place-items: center; background: transparent; padding: 0 1.5rem; box-sizing: border-box; }
.scene--window.scene--live .scene__frame { position: relative; inset: auto; width: min(1200px, 100%, calc((100svh - 10rem) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0A0C10; box-shadow: var(--shadow-soft); }
@supports not (height: 1svh){.scene--window.scene--live .scene__frame{width: min(1200px, 100%, calc((100vh - 10rem) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0A0C10; box-shadow: var(--shadow-soft)}}
.scene--window.scene--live .scene__cap { padding: 7rem clamp(1.4rem, 3.5vw, 3rem) clamp(1.6rem, 3.5vh, 2.4rem); }
.scene--window.scene--live .scene__cap h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); }
.scene--window.scene--live .scene__cap p { font-size: 1rem; max-width: 52ch; }
.scene--window.scene--live .scene__progress { bottom: 0; }

/* ── Лента маршрута: по умолчанию вертикальный таймлайн (точки на пунктирной линии) ───── */
/* Шапка секции — внутри .route__sticky (одна разметка для обоих режимов); метки «откуда»/«куда» —
   элементы трека с точкой на линии, а не отдельная строка с длинным пунктиром. */
.route__stage { margin-top: 0; }
.route__head .section-head { margin-bottom: 2.2rem; }
.route__track { position: relative; display: grid; gap: 1.8rem; width: min(1200px, 100% - 3rem); margin-inline: auto; padding-left: 2.4rem; }
.route__track::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; border-left: 2px dashed var(--line-strong); }
.route__stop { position: relative; display: grid; gap: .5rem; max-width: 60ch; align-content: start; }
.route__dot { position: absolute; left: -2.4rem; top: .1rem; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-sizing: border-box; }
.route__dot--end { background: var(--accent); }
.route__num { font-family: var(--font-display); font-weight: 700; color: var(--accent); letter-spacing: .1em; font-size: .9rem; line-height: 1.4; }
.route__img { width: 100%; max-width: 440px; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: var(--radius); }
.route__stop h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; margin: 0; color: var(--text); }
.route__stop p { margin: 0; color: var(--text-soft); }
.route__meta { color: var(--text-dim); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.route__end { position: relative; display: grid; gap: .25rem; align-content: start; }
.route__end b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.15; color: var(--text); }
.route__dist { color: var(--text-dim); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; max-width: 26ch; }
.route__note { margin: 1.6rem 0 0; }
/* Живая лента (site.js: ≥1024px, без reduced-motion): прилипший экран с шапкой секции наверху и треком под
   ней (всё вместе центрировано по вертикали — экран не пустует), линия сверху трека, трек едет по
   прогрессу (transform из JS), высоту сцены задаёт JS по длине трека. */
/* Шапка прижата к ВЕРХУ прилипшего экрана (не центр: центрирование давало пустоту над заголовком у стыка с предыдущей
   секцией); верхний отступ секции в живом режиме обнулён — его роль играет padding самого sticky, который одновременно
   оставляет место под фиксированную шапку сайта, когда экран прилип. */
.section.route--live { padding-top: 0; } /* .section — перебить правило стыков (.section--x + .section--y) по специфичности */
.route--live .route__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(1.4rem, 4vh, 2.8rem); padding-top: clamp(5.5rem, 11vh, 8rem); box-sizing: border-box; overflow: hidden; }
@supports not (height: 1svh){.route--live .route__sticky{height: 100vh; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(1.4rem, 4vh, 2.8rem); padding-top: clamp(5.5rem, 11vh, 8rem); box-sizing: border-box; overflow: hidden}}
.route--live .route__head .section-head { margin-bottom: 0; }
.route--live .route__track { display: flex; gap: 0; width: max-content; margin: 0; padding: 0 40vw 0 max(1.5rem, calc((100vw - 1200px) / 2 + 1.5rem)); will-change: transform; }
.route--live .route__track::before { left: 0; right: 0; top: 9px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line-strong); }
.route--live .route__stop { flex: 0 0 auto; width: clamp(300px, 27vw, 420px); margin-right: clamp(2.4rem, 6vw, 6rem); padding-top: 2.2rem; }
.route--live .route__dot { left: 0; top: 0; }
/* Фото в ленте — 16:10 с потолком по высоте экрана: шапка + карточка с фото и 4 строками текста обязаны
   уместиться в прилипший экран 1024×768 без обрезки снизу. */
.route--live .route__img { max-width: none; aspect-ratio: 16 / 10; max-height: 30vh; }
.route--live .route__end { flex: 0 0 auto; width: max-content; max-width: 17rem; margin-right: clamp(2.4rem, 6vw, 6rem); padding-top: 2.2rem; }

/* ── Витрина, стиль ink: фото на бумаге, плашка-кисть под ценой, цветные плашки характеристик ─ */
.vitrina--ink .car { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.vitrina--ink .car:hover { transform: none; }
.vitrina--ink .car__media { padding: 0; }
.vitrina--ink .car__frame { border-radius: 6px; box-shadow: 0 0 0 1px var(--line), var(--shadow-soft); background: var(--panel); }
.vitrina--ink .car:hover .car__frame img { transform: scale(1.03); }
.vitrina--ink .car__type { left: .65rem; top: .65rem; border-radius: 3px; background: currentColor; backdrop-filter: none; padding: .3rem .6rem; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.vitrina--ink .car__type i { color: #fff; font-style: normal; }
.vitrina--ink .car__body { padding: 1.1rem 0 0; }
.vitrina--ink .car__name { font-size: 1.55rem; }
.vitrina--ink .car__specs li { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-deep); border: 0; border-radius: 3px; font-weight: 600; }
@supports not (color: color-mix(in srgb, red, red)){.vitrina--ink .car__specs li{background: rgba(var(--accent-rgb), 0.1); color: var(--accent-deep); border: 0; border-radius: 3px; font-weight: 600}}
[data-theme="dark"] .vitrina--ink .car__specs li { color: var(--accent-bright); background: color-mix(in srgb, var(--accent) 18%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){[data-theme="dark"] .vitrina--ink .car__specs li{background: rgba(var(--accent-rgb), 0.18)}}
.vitrina--ink .car__price b { display: inline-block; background: var(--text); color: var(--bg); padding: .5rem 1rem .42rem; font-size: 1.3rem; -webkit-mask: var(--ink-plate, none) center / 100% 100% no-repeat; mask: var(--ink-plate, none) center / 100% 100% no-repeat; }
.vitrina--ink .car__price span { display: block; margin-top: .4rem; }
.vitrina--ink .car__foot { align-items: flex-end; }

/* ── Витрина, стиль cover: фото на всю карточку, текст поверх градиента; на телефоне — лента ─ */
.vitrina--cover .car { position: relative; border: 0; border-radius: var(--radius-lg); background: #0A0C10; aspect-ratio: 4/5; display: block; }
.vitrina--cover .car__media { position: absolute; inset: 0; padding: 0; }
.vitrina--cover .car__frame { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }
.vitrina--cover .car__frame img { width: 100%; height: 100%; aspect-ratio: auto; }
.vitrina--cover .car:hover .car__frame img { transform: scale(1.05); }
.vitrina--cover .car__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 4.5rem 1.3rem 1.3rem; background: linear-gradient(transparent, rgba(8, 10, 14, .55) 35%, rgba(8, 10, 14, .94)); pointer-events: none; }
.vitrina--cover .car__body .btn { pointer-events: auto; }
.vitrina--cover .car__name { color: #FBF8F4; font-size: 1.35rem; }
.vitrina--cover .car__year { color: rgba(251, 248, 244, .72); }
.vitrina--cover .car__specs li { background: rgba(251, 248, 244, .12); color: #FBF8F4; border-color: rgba(251, 248, 244, .22); }
.vitrina--cover .car__price b { color: #FBF8F4; }
.vitrina--cover .car__price span { color: rgba(251, 248, 244, .68); }
.vitrina--cover .car__foot .btn--ghost { color: #FBF8F4; box-shadow: inset 0 0 0 1.5px rgba(251, 248, 244, .5); }
.vitrina--cover .car__foot .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #FBF8F4; }
@media (max-width: 640px) {
  .vitrina--cover { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .9rem; padding-bottom: .6rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .vitrina--cover .car { flex: 0 0 82%; scroll-snap-align: start; }
}

/* ── Sticky-полоса с ценой (meta.stickyCta.price) ──────────────────────────────────────── */
.sticky-cta__price { display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; min-width: 0; line-height: 1.15; padding-left: .2rem; }
.sticky-cta__price b { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text); white-space: nowrap; }
.sticky-cta__price small { color: var(--text-dim); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ≥12px */
.sticky-cta--price .btn--primary { flex: 0 0 auto; }
@media (min-width: 721px) { .sticky-cta--desktop.sticky-cta--price { max-width: 480px; padding-left: 1.1rem; } }

/* ── Прячущаяся при скролле шапка (meta.headerHideOnScroll → data-hide-on-scroll, класс из site.js) ─ */
.site-header { transition: background .3s, box-shadow .3s, backdrop-filter .3s, transform .38s var(--ease); }
.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); box-shadow: none; } /* запас под тень кнопки */

/* ── Пятна света в фоне (theme.glow → --glow-a/b/c из ../theme.css?v=a01aecbc; библиотека glows) ──────────
   Слой html::before под всем контентом (body::before — тайл мотива, лежит выше). Три radial-gradient
   «солнце» + «отсвет» + «море»; на десктопе без reduced-motion медленно дрейфуют (только background-position,
   слой один и фиксированный — без пересчёта раскладки). glow=none → display:none, слоя нет. */
html::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  display: var(--glow-display, none);
  background:
    radial-gradient(ellipse 70vw 60vh at 12% 8%, color-mix(in srgb, var(--glow-a) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 60vw 50vh at 88% 22%, color-mix(in srgb, var(--glow-b) 50%, transparent), transparent 70%),
    radial-gradient(ellipse 70vw 40vh at 50% 100%, color-mix(in srgb, var(--glow-c) 34%, transparent), transparent 72%);
  background-size: 130% 130%;
  background-position: 0% 0%, 100% 0%, 50% 100%;
}
@supports not (color: color-mix(in srgb, red, red)){html::before{background: radial-gradient(ellipse 70vw 60vh at 12% 8%, rgba(var(--glow-a-rgb), 0.55), transparent 70%), radial-gradient(ellipse 60vw 50vh at 88% 22%, rgba(var(--glow-b-rgb), 0.5), transparent 70%), radial-gradient(ellipse 70vw 40vh at 50% 100%, rgba(var(--glow-c-rgb), 0.34), transparent 72%); background-size: 130% 130%; background-position: 0% 0%, 100% 0%, 50% 100%}}
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  html::before { animation: glow-drift 28s ease-in-out infinite alternate; }
}
@keyframes glow-drift { to { background-position: 30% 20%, 70% 30%, 50% 80%; } }

/* ── Стиль появления при скролле (theme.reveal → html[data-reveal]) ───────────────────────────
   rise — как раньше (site.css). clip — текст только проявляется, а фото внутри .reveal раскрываются
   маской слева направо и «садятся» из scale 1.08 (Lusion/ony: двойное движение = дорогое раскрытие).
   fade — только проявление. reduced-motion (site.css) снимает всё. */
html.js[data-reveal="clip"] .reveal, html.js[data-reveal="fade"] .reveal { transform: none; transition: opacity .7s ease; }
html.js[data-reveal="clip"] .reveal img:not(.section-bg):not(.product__bg) { clip-path: inset(0 100% 0 0); scale: 1.08; transition: clip-path .9s var(--ease), scale 1.1s var(--ease), transform .5s var(--ease); }
html.js[data-reveal="clip"] .reveal.is-visible img:not(.section-bg):not(.product__bg) { clip-path: inset(0 0 0 0); scale: 1; }
html.js.is-preloading[data-reveal="clip"] .reveal img:not(.section-bg):not(.product__bg) { clip-path: inset(0 100% 0 0); scale: 1.08; transition: none; } /* за прелоадером не доигрывать — раскрытие после закрытия слоя */
@media (prefers-reduced-motion: reduce) { html.js[data-reveal="clip"] .reveal img { clip-path: none !important; scale: none !important; transition: none !important; } }

/* ── Обложка-маршрутизатор (heroTiles): H1 слева, тайлы-маршруты с ценой (Porsche + Polestar) ─── */
.hero-tiles { position: relative; display: flex; flex-direction: column; justify-content: center; isolation: isolate; overflow: clip; min-height: var(--ht-min, 80svh); padding: clamp(6rem, 13vh, 8.5rem) 0 clamp(2.6rem, 6vh, 4rem); }
@supports not (height: 1svh){.hero-tiles{min-height: var(--ht-min-vh, 80vh); padding: clamp(6rem, 13vh, 8.5rem) 0 clamp(2.6rem, 6vh, 4rem)}}
.hero-tiles__inner { position: relative; z-index: 2; }
.hero-tiles__content { max-width: 1200px; } /* вся широкая колонка: H1 «Авто из Кореи, Китая и Японии» 78px = 1177px (мерили canvas) */
.hero-tiles__loc { display: inline-flex; align-items: center; gap: .5rem; color: var(--text-dim); font-weight: 600; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1.2rem; }
.hero-tiles__loc .icon { width: 16px; height: 16px; }
.hero-tiles h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.9rem); line-height: 1; letter-spacing: -.03em; color: var(--text); margin: 0 0 .36em; text-wrap: balance; }
.hero-tiles__sub { font-size: clamp(1.06rem, 1.55vw, 1.28rem); color: var(--text-soft); max-width: 34em; margin: 0 0 1.7rem; }
.hero-tiles__cta { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-tiles__routes { margin-top: clamp(2.4rem, 6vh, 4rem); }
.hero-tiles__label { margin: 0 0 .9rem; color: var(--text-dim); font-weight: 600; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 1.1rem; }
.tiles[data-n="1"] { --n: 1; max-width: 560px; } .tiles[data-n="2"] { --n: 2; } .tiles[data-n="3"] { --n: 3; } .tiles[data-n="4"] { --n: 4; }
.tile-cell { min-width: 0; }
/* Тайл горизонтальный (фото слева ~42 %, текст справа): первый экран «одна мысль» умещается в вьюпорт 1280×800,
   на телефоне три тайла стоят стопкой и видны без свайпа. */
.tile { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
a.tile:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){a.tile:hover{border-color: rgba(var(--accent-rgb), 0.4)}}
.tile__media { display: block; position: relative; height: 100%; min-height: 128px; overflow: hidden; background: #0A0C10; }
.tile__media img { position: absolute; inset: 0; } /* фото заполняет колонку по высоте текста, не диктует ширину (aspect-ratio тут дал бы наезд на текст) */
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.tile:hover .tile__media img { transform: scale(1.04); }
.tile__media--blank { display: grid; place-items: center; color: color-mix(in srgb, var(--accent) 50%, var(--text-dim)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 26%, var(--panel)), var(--panel)); }
@supports not (color: color-mix(in srgb, red, red)){.tile__media--blank{color: rgba(var(--accent-rgb), 1); background: linear-gradient(135deg, rgba(var(--accent2-rgb), 0.26), var(--panel))}}
.tile__body { display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: .9rem 1rem .9rem 1.05rem; min-width: 0; }
.tile__title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text); line-height: 1.15; }
.tile__price { display: flex; flex-direction: column; line-height: 1.1; }
.tile__price b { font-family: var(--font-display); font-weight: 800; font-size: 1.28rem; color: var(--accent-deep); white-space: nowrap; }
.tile__price small { color: var(--text-dim); font-size: .76rem; margin-top: .25rem; line-height: 1.35; }
[data-theme="dark"] .tile__price b { color: var(--accent-bright); }
.tile__meta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .25rem; color: var(--text-soft); font-size: .84rem; font-weight: 500; }
.tile__meta .icon { width: 16px; height: 16px; color: var(--accent); }
.hero-tiles__hint { position: absolute; bottom: .55rem; left: 50%; transform: translateX(-50%); z-index: 5; margin: 0; color: var(--text-dim); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; animation: hint-drift 2.6s ease infinite alternate; }
@media (prefers-reduced-motion: reduce) { .hero-tiles__hint { animation: none; } }
@media (max-width: 1023px) { .tiles, .tiles[data-n] { --n: 1; gap: .8rem; } .tiles[data-n="4"] { --n: 2; } }
@media (max-width: 720px) {
  .hero-tiles { padding: 5.4rem 0 2.4rem; min-height: auto; }
  .hero-tiles h1 { font-size: clamp(2.3rem, 10.5vw, 3.1rem); }
  .hero-tiles__hint { display: none; }
  .hero-tiles__routes { margin-top: 2rem; }
  .tiles, .tiles[data-n] { --n: 1; gap: .7rem; }
  .tile { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); }
  .tile__media { min-height: 112px; }
  .tile__body { padding: .7rem .8rem .7rem .9rem; }
}

/* ── Цифра-якорь (keyfact): одна цифра крупно + фраза + ссылка ─────────────────────────────── */
.keyfact-section { padding: clamp(2.2rem, 5vw, 4rem) 0; }
.keyfact { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.keyfact__num { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.2rem, 8vw, 6.4rem); line-height: .9; letter-spacing: -.04em; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.keyfact__body { min-width: 0; }
.keyfact__label { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.1vw, 1.6rem); line-height: 1.25; color: var(--text); max-width: 26ch; text-wrap: balance; }
.keyfact__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .6rem; font-weight: 600; color: var(--accent-deep); }
[data-theme="dark"] .keyfact__link { color: var(--accent-bright); }
.keyfact__link .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.keyfact__link:hover .icon { transform: translateX(3px); }
.keyfact--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 720px) { .keyfact { grid-template-columns: 1fr; gap: .6rem; } .keyfact__num { font-size: clamp(2.8rem, 15vw, 4rem); white-space: normal; } }

/* ── Витрина-лента (cardStyle=lane): одна строка scroll-snap, «вёсла» ‹ › у вкладок (Apple) ──── */
.tabs-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.tabs-row .tabs { flex: 1 1 auto; margin-top: 0; }
.lane-nav { display: none; gap: .5rem; flex: none; padding-bottom: .55rem; }
.js .lane-nav { display: flex; }
.vitrina--lane { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1.1rem; padding: .3rem .3rem 1.2rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; scroll-padding-inline: .3rem; }
.vitrina--lane::-webkit-scrollbar { height: 7px; }
.vitrina--lane::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; }
.tabs-row + .vitrina--lane, .lane-nav + .vitrina--lane { margin-top: 1.4rem; }
.js .lane-nav:not(.tabs-row > *) { margin-top: 2rem; justify-content: flex-end; } /* лента без вкладок: «вёсла» справа над лентой */
.vitrina--lane .car { flex: 0 0 clamp(270px, 29.5%, 360px); scroll-snap-align: start; } /* 3 карточки + край четвёртой: видно, что лента продолжается */
.vitrina--lane .car__frame img { aspect-ratio: 4/3; }
@media (max-width: 720px) { .tabs-row { flex-direction: column; align-items: stretch; } .lane-nav { display: none !important; } .vitrina--lane .car { flex-basis: 80%; } }

/* ── Этапы-таймлайн (steps.layout=timeline): дата слева, линия с точками, фото прилипает ───── */
.steps-tl { display: grid; gap: clamp(1.6rem, 4vw, 3.2rem); margin-top: 2.8rem; align-items: start; }
.steps-tl > * { min-width: 0; }
.steps-tl__media { margin: 0; }
.steps-tl__img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; border-radius: var(--radius-lg); }
.steps-tl__cap { margin: .7rem 0 0; color: var(--text-dim); font-size: .82rem; line-height: 1.5; }
.steps-tl__list { list-style: none; margin: 0; padding: 0; position: relative; }
.steps-tl__list::before { content: ""; position: absolute; top: .6rem; bottom: .6rem; left: calc(var(--tl-date, 9.5rem) + 1.2rem + .525rem - 1px); width: 2px; background: linear-gradient(var(--line-strong), var(--line-strong) 60%, transparent); border-radius: 2px; }
.steps-tl__step { position: relative; display: grid; grid-template-columns: var(--tl-date, 9.5rem) 1.05rem minmax(0, 1fr); gap: 0 1.2rem; align-items: start; padding: .2rem 0 clamp(1.4rem, 3vw, 2.2rem); }
.steps-tl__step:last-child { padding-bottom: 0; }
.steps-tl__date { display: inline-flex; align-items: center; gap: .4rem; justify-content: flex-end; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent-deep); text-align: right; padding-top: .15rem; white-space: nowrap; }
[data-theme="dark"] .steps-tl__date { color: var(--accent-bright); }
.steps-tl__date .icon { width: 16px; height: 16px; }
.steps-tl__dot { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-sizing: border-box; margin-top: .35rem; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.steps-tl__dot{box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.14)}}
.steps-tl__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--text); margin: .15rem 0 .35rem; }
.steps-tl__body p { margin: 0; color: var(--text-soft); max-width: 56ch; }
@media (min-width: 1024px) {
  .steps-tl--media { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .steps-tl--media .steps-tl__media { position: sticky; top: 6rem; }
}
@media (max-width: 720px) {
  .steps-tl { --tl-date: 0px; }
  .steps-tl__list::before { left: calc(.525rem - 1px); }
  .steps-tl__step { grid-template-columns: 1.05rem minmax(0, 1fr); gap: 0 1rem; }
  .steps-tl__date { grid-column: 2; justify-content: flex-start; text-align: left; order: -1; padding-top: 0; margin-bottom: .2rem; }
  .steps-tl__dot { grid-column: 1; grid-row: 1 / span 2; }
  .steps-tl__body { grid-column: 2; }
  .steps-tl__img { aspect-ratio: 16/10; }
}

/* ── Пилюля-навигация внизу экрана (meta.navStyle=pill; Pinkman) ────────────────────────────── */
.pill-nav { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: var(--z-sticky); display: flex; align-items: center; gap: .1rem; padding: .35rem; max-width: calc(100% - 1.4rem); overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--panel) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg); }
@supports not (color: color-mix(in srgb, red, red)){.pill-nav{background: rgba(var(--panel-rgb), 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-lg)}}
/* Один язык форм: пункты и кнопка — одинаковые капсулы 44px (radius 999px, как у самой пилюли), кнопка с тем же
   внутренним зазором от рамки, что и подсветка активного пункта; .btn ядра даёт radius 11px — переопределяем. */
.pill-nav a:not(.btn) { color: var(--text-soft); font-family: var(--font); font-weight: 600; font-size: .9rem; padding: 0 .85rem; border-radius: 999px; white-space: nowrap; height: 44px; display: inline-flex; align-items: center; transition: color .18s, background .18s; }
.pill-nav a:not(.btn):hover, .pill-nav a:not(.btn).is-on { color: var(--text); background: color-mix(in srgb, var(--accent) 12%, transparent); text-decoration: none; }
@supports not (color: color-mix(in srgb, red, red)){.pill-nav a:not(.btn):hover, .pill-nav a:not(.btn).is-on{background: rgba(var(--accent-rgb), 0.12); text-decoration: none}}
.pill-nav__cta { margin-left: .35rem; height: 44px; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; white-space: nowrap; font-family: var(--font); font-size: .9rem; box-shadow: none; }
.pill-nav__cta:hover { transform: none; box-shadow: 0 6px 16px -8px var(--accent); }
.site-header--pill .site-nav a:not(.site-nav__cta) { display: none; } /* строка меню — в пилюле; на мобиле бургер оставляем */
body.has-pill { padding-bottom: 5.4rem; } /* класс ставит сервер (navStyle=pill) — без :has */
body.has-pill .sticky-contacts { bottom: 5.6rem; } /* колонка мессенджеров — над пилюлей, не поверх её кнопки */
body.has-pill .hero-tiles__hint, body.has-pill .hero-poster__hint, body.has-pill .hero-video__hint, body.has-pill .hero-cover__hint { display: none; } /* подсказка прокрутки под пилюлей не видна — не рисуем */
@media (max-width: 1079px) { .site-header--pill .site-nav a:not(.site-nav__cta) { display: block; } } /* в бургере пункты нужны */
/* Телефон: та же компактная капсула по центру (не растягиваем на всю ширину — пункты «разъезжались»), кегль ≥ 12px */
@media (max-width: 480px) {
  .pill-nav { gap: 0; padding: .3rem; }
  .pill-nav a:not(.btn) { font-size: .78rem; padding: 0 .55rem; }
  .pill-nav__cta { margin-left: .2rem; font-size: .8rem; padding: 0 .8rem; }
}
@media (max-width: 380px) { .pill-nav a:not(.btn) { font-size: .75rem; padding: 0 .4rem; } .pill-nav__cta { font-size: .76rem; padding: 0 .6rem; } }

/* ── Reduced motion: всё новое — статика ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-stagger > *, .board__num, .js .board.reveal .board__num { animation: none !important; opacity: 1 !important; -webkit-mask-image: none !important; mask-image: none !important; transform: none !important; }
  .scene__item, .scene__img, .scene__cap, .site-header, .route__track { transition: none !important; }
  .hero-poster__art { transform: none !important; }
  /* без свойства translate центр декора держит transform (запасной слой) — «none» выше его не должен сбить */
  @supports not (translate: 0) {
    .hero-poster__art--left, .hero-poster__art--right { transform: translate(0, -56%) !important; }
    .hero-poster__art--center { transform: translate(-50%, -56%) !important; }
  }
  html::before { animation: none !important; }
  .tile, .tile__media img, .keyfact__link .icon { transition: none !important; }
}

/* ══ Сессия ZA AUTO (A «P-2»): обложка-боксы, машино-места, указатели, боковой рельс, зажигание, свет, неоновый разделитель ══ */

/* ── Обложка-боксы (heroBays): сцена тёмная в обеих темах; боксы в ряд, между ними светящиеся линии акцента ── */
/* Ряд боксов — сверху в потоке и забирает свободную высоту экрана; текст — под ним (машины в нижней половине кадров
   не уходят под заголовок). Затемнение на самом ряду: сверху под шапку, снизу растворение в сцену. */
.hero-bays { --hb-ink: #FBF8F4; --hb-glow: var(--accent-on-dark, var(--accent-bright)); --hb-stage: #09090B; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; min-height: var(--hb-min, 100svh); padding: 0 0 clamp(2rem, 5vh, 3.6rem); background: var(--hb-stage); color: var(--hb-ink); }
@supports not (color: color-mix(in srgb, red, red)){.hero-bays{--hb-ink-rgb: 251, 248, 244; --hb-glow-rgb: var(--accent-on-dark-rgb, var(--accent-bright-rgb))}}
@supports not (height: 1svh){.hero-bays{min-height: var(--hb-min-vh, 100vh); padding: 0 0 clamp(2rem, 5vh, 3.6rem); background: var(--hb-stage); color: var(--hb-ink)}}
.hero-bays__row { position: relative; z-index: 0; display: flex; flex: 1 1 auto; min-height: clamp(340px, 52svh, 760px); }
@supports not (height: 1svh){.hero-bays__row{min-height: clamp(340px, 52vh, 760px)}}
.hero-bays__row::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .56) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 66%, var(--hb-stage) 100%); }
.bay { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; display: block; color: inherit; text-decoration: none; outline: none; transition: flex-grow .7s var(--ease); }
.bay__media { position: absolute; inset: 0; }
.bay__poster, .bay__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bay__video { opacity: 0; transition: opacity .6s var(--ease); }
.bay__video.is-ready { opacity: 1; }
.bay::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .16); transition: background .5s var(--ease); pointer-events: none; }
.bay + .bay::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; z-index: 3; background: var(--hb-glow); box-shadow: 0 0 10px 1px var(--hb-glow), 0 0 28px 3px color-mix(in srgb, var(--hb-glow) 50%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.bay + .bay::before{box-shadow: 0 0 10px 1px var(--hb-glow), 0 0 28px 3px rgba(var(--hb-glow-rgb), 0.5)}}
.bay__label, .bay__cap { position: absolute; left: 1.1rem; z-index: 4; pointer-events: none; }
.bay__label { top: clamp(5.4rem, 11vh, 6.8rem); font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1; padding: .38rem .55rem; border: 1px solid rgba(251, 248, 244, .38); border-radius: 3px; background: rgba(9, 9, 11, .34); backdrop-filter: blur(4px); }
.bay__cap { top: calc(clamp(5.4rem, 11vh, 6.8rem) + 2.2rem); right: 1.1rem; display: grid; gap: .15rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.bay__cap b { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.bay__cap small { font-size: .84rem; color: rgba(251, 248, 244, .8); }
.hero-bays__shade { display: none; } /* затемнение теперь на ряду (::after); элемент оставлен для совместимости разметки */
.hb-stories { display: none; } /* полоски «по одной» (mobileTile=story) — только на телефоне */
.hero-bays__inner { position: relative; z-index: 2; margin-top: clamp(-4.5rem, -6vh, -2rem); pointer-events: none; }
.hero-bays__content { max-width: 1000px; pointer-events: auto; }
.hero-bays__loc { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; font-size: .9rem; font-weight: 600; color: rgba(251, 248, 244, .8); }
.hero-bays__loc .icon { width: 16px; height: 16px; }
.hero-bays h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.005em; margin: 0 0 .38em; color: var(--hb-ink); text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.hero-bays h1 .accent { color: var(--hb-glow); text-shadow: 0 0 22px color-mix(in srgb, var(--hb-glow) 45%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.hero-bays h1 .accent{text-shadow: 0 0 22px rgba(var(--hb-glow-rgb), 0.45)}}
.hero-bays__sub { max-width: 36em; margin: 0 0 1.7rem; font-size: clamp(1.04rem, 1.5vw, 1.22rem); color: rgba(251, 248, 244, .86); }
.hero-bays__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-bays .btn--ghost { color: #FBF8F4; box-shadow: inset 0 0 0 1.5px rgba(251, 248, 244, .45); }
.hero-bays .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #FBF8F4; }
.hero-bays__hint { position: absolute; left: 50%; bottom: .6rem; z-index: 3; margin: 0; transform: translateX(-50%); font-size: .75rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(251, 248, 244, .6); animation: hint-drift 2.6s ease infinite alternate; }
@media (hover: hover) and (min-width: 768px) {
  .hero-bays__row:hover .bay { flex-grow: .78; }
  .hero-bays__row .bay:hover, .hero-bays__row .bay:focus-visible { flex-grow: 1.75; }
  .hero-bays__row:hover .bay::after { background: rgba(0, 0, 0, .44); }
  .hero-bays__row .bay:hover::after, .hero-bays__row .bay:focus-visible::after { background: rgba(0, 0, 0, 0); }
}
.bay:focus-visible { box-shadow: inset 0 0 0 2px var(--hb-glow); }
@media (min-width: 1600px) { .hero-bays h1 { font-size: 5.6rem; } }
/* Телефон: ряд боксов — лента scroll-snap под шапкой, текст ниже на тёмной сцене (не поверх движущихся кадров). */
@media (max-width: 767px) {
  .hero-bays { min-height: 0; padding: 0 0 2.4rem; }
  .hero-bays__row { flex: none; min-height: 0; height: min(66svh, 560px); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
@supports not (height: 1svh){.hero-bays__row{height: min(66vh, 560px); gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none}}
  .hero-bays__row::after { display: none; }
  .hero-bays__row::-webkit-scrollbar { display: none; }
  .bay { flex: 0 0 82%; scroll-snap-align: center; }
  .bay + .bay::before { display: none; }
  .bay::after { background: rgba(0, 0, 0, .1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hb-glow) 55%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.bay::after{box-shadow: inset 0 0 0 1px rgba(var(--hb-glow-rgb), 0.55)}}
  .bay__label { top: 4.9rem; }
  .bay__cap { top: auto; bottom: 1rem; }
  .hero-bays__shade { display: block; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 96px; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, 0) 100%); }
  .hero-bays__inner { margin-top: 0; padding-top: 1.5rem; }
  .hero-bays h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .hero-bays__hint { display: none; }
  /* mobileTile=half — боксы на половину экрана: кнопка первого экрана видна без прокрутки; mobileCta=wide — кнопки во всю ширину */
  .hero-bays[data-m-tile="half"] .hero-bays__row { height: min(50svh, 440px); }
@supports not (height: 1svh){.hero-bays[data-m-tile="half"] .hero-bays__row{height: min(50vh, 440px)}}
  /* в низком боксе подпись поверх кадра ложилась на номер машины — подпись под кадром, кадр сдвинут к низу (номер виден, крыша не уходит под шапку) */
  .hero-bays[data-m-tile="half"] .bay { display: flex; flex-direction: column; }
  .hero-bays[data-m-tile="half"] .bay::after { display: none; }
  .hero-bays[data-m-tile="half"] .bay__media { position: relative; flex: 1 1 auto; overflow: hidden; outline: 1px solid color-mix(in srgb, var(--hb-glow) 55%, transparent); outline-offset: -1px; }
@supports not (color: color-mix(in srgb, red, red)){.hero-bays[data-m-tile="half"] .bay__media{outline: 1px solid rgba(var(--hb-glow-rgb), 0.55); outline-offset: -1px}}
  .hero-bays[data-m-tile="half"] :is(.bay__poster, .bay__video) { object-position: 50% 88%; }
  .hero-bays[data-m-tile="half"] .bay__cap { position: static; padding: .7rem 1.1rem 0; text-shadow: none; }
  .hero-bays[data-m-cta] .hero-bays__cta { display: grid; gap: .6rem; }
  .hero-bays[data-m-cta] .hero-bays__cta .btn { width: 100%; justify-content: center; }
  /* first — кнопки над пояснением: порядок и очередь появления сверху вниз (inline --i перекрываем) */
  .hero-bays[data-m-cta="first"] .hero-bays__content { display: flex; flex-direction: column; }
  .hero-bays[data-m-cta="first"] .hero-bays__loc { order: 0; }
  .hero-bays[data-m-cta="first"] .hero-bays__content h1 { order: 1; }
  .hero-bays[data-m-cta="first"] .hero-bays__cta { order: 2; margin-bottom: 1.4rem; --i: 2 !important; }
  .hero-bays[data-m-cta="first"] .hero-bays__sub { order: 3; margin-bottom: 0; --i: 3 !important; }
  /* mobileTile=story (сессия 8) — один бокс крупно, смена сама (site.js): кадры стопкой, виден текущий, мягкий наплыв. Кадр ниже
     «половины» почти на высоту полосок — кнопка первого экрана остаётся видна (fold.mjs: SE 375×553 — с запасом). Без JS — первый бокс. */
  .hero-bays[data-m-tile="story"] .hero-bays__row { display: block; position: relative; overflow: hidden; scroll-snap-type: none; height: calc(min(50svh, 440px) - 2.4rem); }
@supports not (height: 1svh){.hero-bays[data-m-tile="story"] .hero-bays__row{height: calc(min(50vh, 440px) - 2.4rem)}}
  .hero-bays[data-m-tile="story"] .bay { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .9s ease; }
  .hero-bays[data-m-tile="story"] .bay.is-on, .hero-bays[data-m-tile="story"]:not(.hb-live) .bay:first-child { opacity: 1; z-index: 1; }
  /* тап — к боксу, что виден больше: «попадание» (is-hit) site.js переносит на середине наплыва */
  .hero-bays[data-m-tile="story"] .bay.is-hit, .hero-bays[data-m-tile="story"]:not(.hb-live) .bay:first-child { pointer-events: auto; }
  /* без JS: только первый бокс (остальные вне фокуса), полоски без скрипта ничего не делают — не показываем */
  .hero-bays[data-m-tile="story"]:not(.hb-live) .bay:not(:first-child) { visibility: hidden; }
  .hero-bays[data-m-tile="story"]:not(.hb-live) .hb-stories { display: none; }
  .hero-bays[data-m-tile="story"] .bay::after { display: none; }
  .hero-bays[data-m-tile="story"] .bay__media { outline: 1px solid color-mix(in srgb, var(--hb-glow) 55%, transparent); outline-offset: -1px; }
@supports not (color: color-mix(in srgb, red, red)){.hero-bays[data-m-tile="story"] .bay__media{outline: 1px solid rgba(var(--hb-glow-rgb), 0.55); outline-offset: -1px}}
  .hero-bays[data-m-tile="story"] :is(.bay__poster, .bay__video) { object-position: 50% 88%; }
  .hero-bays[data-m-tile="story"] .bay__cap { display: none; }
  .hero-bays[data-m-tile="story"] .hb-stories { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(var(--hb-n, 3), minmax(0, 1fr)); gap: 10px; padding-top: .65rem; }
  /* flex-столбик сверху вниз: у <button> содержимое по умолчанию по центру высоты — короткое название (Audi Q5L в одну строку)
     вместе с полоской съезжало ниже соседних в две строки (телефон пользователя, 19.10) */
  .hb-stories__btn { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; appearance: none; background: none; border: 0; margin: 0; padding: 0 0 .2rem; text-align: left; cursor: pointer; color: color-mix(in srgb, var(--hb-ink) 52%, transparent); font: 600 .86rem/1.2 var(--font-body, inherit); transition: color .4s; -webkit-tap-highlight-color: transparent; }
@supports not (color: color-mix(in srgb, red, red)){.hb-stories__btn{color: rgba(var(--hb-ink-rgb), 0.52); font: 600 .86rem/1.2 var(--font-body, inherit); transition: color .4s; -webkit-tap-highlight-color: transparent}}
  .hb-stories__btn small { display: block; margin-top: .15rem; font-weight: 500; font-size: .78rem; color: color-mix(in srgb, var(--hb-ink) 44%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.hb-stories__btn small{color: rgba(var(--hb-ink-rgb), 0.44)}}
  .hb-stories__btn.is-on { color: var(--hb-ink); }
  .hb-stories__btn:focus-visible { outline: 2px solid var(--hb-glow); outline-offset: 3px; border-radius: 2px; }
  .hb-stories__bar { display: block; height: 2px; margin-bottom: .5rem; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--hb-ink) 20%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.hb-stories__bar{background: rgba(var(--hb-ink-rgb), 0.2)}}
  .hb-stories__bar b { display: block; height: 100%; background: var(--hb-ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
  .hb-stories__btn.is-done .hb-stories__bar b { transform: scaleX(1); opacity: .55; }
}
@media (prefers-reduced-motion: reduce) { .bay, .bay::after, .bay__video, .hero-bays[data-m-tile="story"] .bay { transition: none; } .hero-bays__hint { animation: none; } }

/* ── Машино-места (showcase cardStyle=bay): вертикальный кадр, номер места, видео при наведении, линия света снизу ── */
.vitrina--bay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem 1.1rem; }
.vitrina--bay .car { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.vitrina--bay .car:hover { transform: none; }
.vitrina--bay .car__media { padding: 0; }
.vitrina--bay .car__frame { aspect-ratio: 4 / 5; border-radius: var(--radius); background: #0E0F12; box-shadow: none; }
.vitrina--bay .car__frame img, .vitrina--bay .car__video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.vitrina--bay .car__video { z-index: 1; opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.vitrina--bay .car.is-playing .car__video.is-ready { opacity: 1; }
/* Переход по якорю карточки (ссылка из обложки): карточка ниже шапки с запасом под заголовок секции, белая рамка гаснет
   (красный — только у кнопок, разбор 15.10). reduced-motion — рамка без анимации. */
.car[id] { scroll-margin-top: 3rem; }
.car:target { outline: 2px solid transparent; outline-offset: 6px; animation: car-target 2.6s var(--ease) both; }
.vitrina--lane .car:target { outline-offset: -2px; } /* лента scroll-snap обрезает выступ рамки — рисуем внутри */
@keyframes car-target { 0%, 50% { outline-color: var(--text); } 100% { outline-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .car:target { animation: none; outline-color: var(--text); } }
.vitrina--bay .car__frame::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; background: var(--accent-on-dark, var(--accent-bright)); box-shadow: 0 0 12px 1px var(--accent-on-dark, var(--accent-bright)); opacity: .5; transition: opacity .35s var(--ease); pointer-events: none; }
.vitrina--bay .car:hover .car__frame::after { opacity: 1; }
.vitrina--bay .car__type { left: auto; right: .7rem; z-index: 2; }
.car__stall { position: absolute; left: .7rem; top: .7rem; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: .78rem; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: #FBF8F4; padding: .36rem .52rem; border: 1px solid rgba(251, 248, 244, .34); border-radius: 3px; background: rgba(9, 9, 11, .5); backdrop-filter: blur(4px); pointer-events: none; }
.vitrina--bay .car__body { padding: .95rem .1rem 0; }
@media (max-width: 1199px) { .vitrina--bay { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) { .vitrina--bay { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .vitrina--bay { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .vitrina--bay .car { flex: 0 0 76%; scroll-snap-align: start; }
  .vitrina--bay .car:target { outline-offset: -2px; } /* лента обрезает выступ рамки */
}
@media (prefers-reduced-motion: reduce) { .vitrina--bay .car__video { display: none; } }

/* ── Указатели (facts layout=signs): табличка навигации паркинга; цвета фиксированные в обеих темах ── */
.signs { --signs-cols: 4; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--signs-cols), minmax(0, 1fr)); gap: 1rem; }
.signs[data-n="1"] { --signs-cols: 1; } .signs[data-n="2"] { --signs-cols: 2; } .signs[data-n="3"] { --signs-cols: 3; } .signs[data-n="5"], .signs[data-n="6"] { --signs-cols: 3; }
.sign { display: flex; align-items: stretch; min-height: 112px; overflow: hidden; border-radius: var(--radius); background: #111215; color: #F4F4F5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.sign__pict { flex: 0 0 auto; width: 74px; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.sign__pict .icon { width: 32px; height: 32px; stroke-width: 2; }
.sign__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: .9rem 1.1rem; }
.sign__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1; letter-spacing: -.005em; white-space: nowrap; }
.sign__cap { margin-top: .4rem; font-size: .92rem; line-height: 1.35; color: rgba(244, 244, 245, .74); }
@media (max-width: 1023px) { .signs { --signs-cols: 2; } .signs[data-n="3"] { --signs-cols: 1; } }
@media (max-width: 560px) { .signs, .signs[data-n] { --signs-cols: 1; } .sign { min-height: 96px; } }

/* ── Боковой рельс разделов (meta.navStyle=rail): индексы уровней у левого края, подпись — при наведении/текущий ── */
.rail-nav { display: none; }
@media (min-width: 1360px) {
  .site-header--rail .site-nav a:not(.site-nav__cta) { display: none; }
  .rail-nav { position: fixed; left: 18px; top: 50%; z-index: var(--z-header); display: flex; flex-direction: column; gap: 6px; transform: translateY(-50%); }
  .rail-nav a { position: relative; display: flex; align-items: center; height: 44px; color: var(--text-soft); text-decoration: none; }
  .rail-nav__idx { display: grid; place-items: center; min-width: 48px; height: 34px; padding: 0 .5rem; border-radius: 4px; font-family: var(--font-display); font-weight: 700; font-size: .84rem; letter-spacing: .06em; background: color-mix(in srgb, var(--bg) 80%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(6px); transition: color .3s, background .3s, box-shadow .3s; }
@supports not (color: color-mix(in srgb, red, red)){.rail-nav__idx{background: rgba(var(--bg-rgb), 0.8); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(6px); transition: color .3s, background .3s, box-shadow .3s}}
  .rail-nav__lbl { position: absolute; left: calc(100% + 8px); white-space: nowrap; padding: .38rem .7rem; border-radius: 4px; font-size: .86rem; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(6px); opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity .25s, transform .25s; }
@supports not (color: color-mix(in srgb, red, red)){.rail-nav__lbl{background: rgba(var(--bg-rgb), 0.92); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(6px); opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity .25s, transform .25s}}
  .rail-nav a:hover .rail-nav__lbl, .rail-nav a:focus-visible .rail-nav__lbl { opacity: 1; transform: none; }
  .rail-nav a:hover .rail-nav__idx { color: var(--text); }
  .rail-nav a.is-on .rail-nav__idx { color: #FFFFFF; background: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 18px -2px var(--accent-on-dark, var(--accent-bright)); }
}
@media (min-width: 1600px) { .rail-nav a.is-on .rail-nav__lbl { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rail-nav__idx, .rail-nav__lbl { transition: none; } }

/* ── Прелоадер «Зажигание» (style=ignite): логотип и трубка разгораются с мерцанием на тёмной сцене ── */
.preloader--ignite { background: #08080A; color: #F4F4F5; }
.preloader--ignite .preloader__inner { display: grid; justify-items: center; gap: 1.2rem; }
.preloader__logo { width: min(260px, 58vw); height: auto; opacity: 0; animation: ignite-logo 1.3s linear forwards; }
.preloader__tube { display: block; width: min(320px, 72vw); height: 3px; border-radius: 3px; background: var(--pre-accent, var(--accent-on-dark, var(--accent-bright))); box-shadow: 0 0 10px 1px var(--pre-accent, var(--accent-on-dark, var(--accent-bright))), 0 0 30px 4px color-mix(in srgb, var(--pre-accent, var(--accent-on-dark, var(--accent-bright))) 50%, transparent); opacity: 0; animation: ignite-tube 1.1s linear forwards; }
@supports not (color: color-mix(in srgb, red, red)){.preloader__tube{box-shadow: 0 0 10px 1px var(--pre-accent, var(--accent-on-dark, var(--accent-bright))), 0 0 30px 4px rgba(var(--pre-accent-rgb, var(--accent-on-dark-rgb, var(--accent-bright-rgb))), 0.5); opacity: 0; animation: ignite-tube 1.1s linear forwards}}
@keyframes ignite-tube { 0% { opacity: 0; } 7% { opacity: .9; } 11% { opacity: .1; } 19% { opacity: .85; } 23% { opacity: .2; } 33%, 100% { opacity: 1; } }
@keyframes ignite-logo { 0%, 28% { opacity: 0; } 33% { opacity: .85; } 37% { opacity: .15; } 46%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .preloader__logo, .preloader__tube { animation: none; opacity: 1; } }

/* ── Появление «светом» (theme.reveal=light): блок выходит из темноты и размытия в резкость, без движения по оси ── */
html.js[data-reveal="light"] .reveal { transform: none; filter: brightness(.3) blur(5px); transition: opacity .8s ease, filter 1.1s var(--ease); }
html.js[data-reveal="light"] .reveal.is-visible { filter: none; }
@media (prefers-reduced-motion: reduce) { html.js[data-reveal="light"] .reveal { filter: none; transition: none; } }

/* ── Неоновый разделитель секций (theme.divider=neon): светящаяся линия акцента на стыке секций (::before занят мотивом) ── */
html[data-divider="neon"] main > section + section { position: relative; }
html[data-divider="neon"] main > section + section::after { content: ''; position: absolute; top: 0; left: 50%; z-index: 2; width: min(1200px, 100% - 3rem); height: 1px; transform: translateX(-50%); pointer-events: none; background: linear-gradient(90deg, transparent 0%, var(--accent-on-dark, var(--accent-bright)) 16%, var(--accent-on-dark, var(--accent-bright)) 84%, transparent 100%); box-shadow: 0 0 10px 0 color-mix(in srgb, var(--accent-on-dark, var(--accent-bright)) 70%, transparent); opacity: .62; }
@supports not (color: color-mix(in srgb, red, red)){html[data-divider="neon"] main > section + section::after{box-shadow: 0 0 10px 0 rgba(var(--accent-on-dark-rgb, var(--accent-bright-rgb)), 0.7); opacity: .62}}

/* ── Ролики в ряд (блок reels): вертикальные кадры 9:16, метка, подпись; hover — превью без звука, click — со звуком ── */
.reels { --reels-cols: 5; display: grid; grid-template-columns: repeat(var(--reels-cols), minmax(0, 1fr)); gap: 1.1rem; }
.reels[data-n="2"] { --reels-cols: 2; } .reels[data-n="3"] { --reels-cols: 3; } .reels[data-n="4"] { --reels-cols: 4; } .reels[data-n="6"] { --reels-cols: 3; }
.reel { margin: 0; min-width: 0; }
.reel__frame { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--radius); background: #0E0F12; box-shadow: inset 0 0 0 1px var(--line); }
.reel__poster, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__video { z-index: 1; opacity: 0; transition: opacity .4s var(--ease); }
.reel.is-playing .reel__video.is-ready { opacity: 1; }
.reel__label { position: absolute; left: .65rem; top: .65rem; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: .76rem; line-height: 1; letter-spacing: .14em; text-transform: uppercase; color: #FBF8F4; padding: .34rem .5rem; border-radius: 3px; background: rgba(9, 9, 11, .55); border: 1px solid rgba(251, 248, 244, .3); backdrop-filter: blur(4px); pointer-events: none; }
.reel__play { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: #FFFFFF; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent), 0 8px 24px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), box-shadow .3s; }
@supports not (color: color-mix(in srgb, red, red)){.reel__play{box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.28), 0 8px 24px rgba(0, 0, 0, .35); transition: transform .3s var(--ease), box-shadow .3s}}
.reel__play .icon { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; stroke-width: 1.5; }
.reel__play:hover, .reel__play:focus-visible { transform: scale(1.06); box-shadow: 0 0 0 9px color-mix(in srgb, var(--accent) 30%, transparent), 0 8px 24px rgba(0, 0, 0, .35); }
@supports not (color: color-mix(in srgb, red, red)){.reel__play:hover, .reel__play:focus-visible{box-shadow: 0 0 0 9px rgba(var(--accent-rgb), 0.3), 0 8px 24px rgba(0, 0, 0, .35)}}
.reel.is-watching .reel__play, .reel.is-watching .reel__label { display: none; }
.reel.is-watching .reel__video { opacity: 1; }
.reel__cap { display: grid; gap: .3rem; padding: .85rem .1rem 0; }
.reel__cap b { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; line-height: 1.2; color: var(--text); }
.reel__cap span { font-size: .93rem; line-height: 1.45; color: var(--text-soft); }
@media (max-width: 1023px) {
  .reels, .reels[data-n] { display: flex; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .reel { flex: 0 0 clamp(200px, 38%, 260px); scroll-snap-align: start; }
}
@media (max-width: 560px) { .reel { flex-basis: 66%; } }
@media (prefers-reduced-motion: reduce) { .reel__video, .reel__play { transition: none; } }

/* ── Логотип-вордмарк (meta.brandMode=logo): своя высота и ширина, без скругления и подписи ── */
.brand--wordmark .brand__logo { height: 22px; max-width: 200px; border-radius: 0; }
.brand.brand--wordmark { min-height: 44px; } /* низкий вордмарк, а зона нажатия ссылки — 44 px (картинка по центру) */
.footer__brand--wordmark .footer__logo { height: 26px; width: auto; max-width: 220px; border-radius: 0; }
@media (max-width: 520px) { .brand--wordmark .brand__logo { height: 18px; } }

/* Шапка над тёмной сценой обложки-боксов до скролла: светлый текст в обеих темах (как над тёмным видео-оверлеем).
   Логотип: если задан вариант для тёмной темы — над тёмной сценой показываем его и в светлой теме. */
body.has-hero-bays .site-header:not(.scrolled) .brand,
body.has-hero-bays .site-header:not(.scrolled) .brand__name small,
body.has-hero-bays .site-header:not(.scrolled) .theme-toggle { color: rgba(251, 248, 244, .92); }
body.has-hero-bays .site-header:not(.scrolled) .theme-toggle { border-color: rgba(251, 248, 244, .34); }
@media (min-width: 1080px) {
  body.has-hero-bays .site-header:not(.scrolled) .site-nav a:not(.site-nav__cta),
  body.has-hero-bays .site-header:not(.scrolled) .site-header__phone { color: rgba(251, 248, 244, .82); }
}
:is(body.has-hero-bays, body.has-hero-ov-dark) .site-header:not(.scrolled) .brand.brand--dark-logo .brand__logo:not(.brand__logo--dark) { display: none; }
:is(body.has-hero-bays, body.has-hero-ov-dark) .site-header:not(.scrolled) .brand__logo--dark { display: block; }

/* Машино-места без сирот (правило 17): 3, 6, 9 мест — по три в ряд на широком экране (data-n из рендера). */
@media (min-width: 900px) { .vitrina--bay[data-n="3"], .vitrina--bay[data-n="6"], .vitrina--bay[data-n="9"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Рельс разделов не заслоняет первый экран: проявляется, когда обложка уходит (site.js ставит .is-shown).
   Без JS рельс виден сразу (fail-safe). */
@media (min-width: 1360px) {
  html.js .rail-nav { opacity: 0; visibility: hidden; transform: translate(-10px, -50%); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; }
  html.js .rail-nav.is-shown { opacity: 1; visibility: visible; transform: translateY(-50%); pointer-events: auto; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
}
@media (prefers-reduced-motion: reduce) { html.js .rail-nav { transition: none; } }
/* Указатели — полоса фактов, а не тематическая секция: меньше воздуха по вертикали. Имя модели на машино-месте крупнее
   (узкий дисплейный шрифт при 1.12rem выглядит подписью). */
.signs-section { padding-block: clamp(2.2rem, 5vw, 3.6rem); }
.vitrina--bay .car__name { font-size: clamp(1.2rem, 1.5vw, 1.45rem); }
.reels-section .section-head + .reels { margin-top: clamp(1.4rem, 2.6vw, 2.2rem); }
/* Указатель-ссылка: ячейка сетки — <li>, табличка внутри (span или a); ссылка подсвечивается светом акцента. */
.sign-cell { display: block; min-width: 0; }
.sign-cell > .sign { height: 100%; }
/* цвет — как у плашки .sign (она тёмная в обеих темах); inherit давал тёмный текст темы на тёмной плашке в светлой теме */
a.sign { color: #F4F4F5; text-decoration: none; transition: box-shadow .3s var(--ease); }
a.sign:hover, a.sign:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-on-dark, var(--accent-bright)), 0 0 24px -6px var(--accent-on-dark, var(--accent-bright)); }
.signs-section--head { padding-block: clamp(4rem, 8vw, 6.5rem); }
@media (prefers-reduced-motion: reduce) { a.sign { transition: none; } }
.signs-section .section-head + .signs { margin-top: clamp(1.4rem, 2.6vw, 2.2rem); }

/* ══ Сессия ZA AUTO (B «Сколько стоит?»): обложка-ценник, прайс-лист, заявка-мастер, меню на весь экран ══ */

/* ── Обложка-ценник (heroPrice): сплит — заголовок и ценник слева, фото 4:5 справа; цифры моноширинным (--font-mono) ── */
.hero-price { position: relative; display: flex; align-items: center; min-height: var(--hpr-min, 90svh); padding: clamp(6.5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem); background: var(--bg); }
@supports not (height: 1svh){.hero-price{min-height: var(--hpr-min-vh, 90vh); padding: clamp(6.5rem, 12vh, 8rem) 0 clamp(2.5rem, 6vh, 4rem); background: var(--bg)}}
.hero-price__inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero-price__text { min-width: 0; }
.hero-price__loc { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.hero-price__loc .icon { width: 16px; height: 16px; }
/* Заголовок-вопрос скромнее цены: при 3 строках на десктопе ценник и кнопки остаются на первом экране ноутбука */
.hero-price h1 { margin: 0 0 .45em; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 3.3vw, 3rem); line-height: 1.04; letter-spacing: -.025em; color: var(--text); text-wrap: balance; }
.hero-price h1 .accent { color: var(--accent); }
.hero-price__sub { max-width: 34em; margin: 0 0 1.8rem; font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--text-soft); }
.hero-price__ticket { display: grid; gap: .4rem; margin: 0 0 1rem; padding: 1.2rem 0; border-block: 1px solid var(--line-strong); }
/* Модель — как пишет марка (550e, X2 25i, Q5L): без капса, он ломает обозначения */
.hero-price__model { font-family: var(--font-mono); font-size: .9rem; letter-spacing: .03em; color: var(--text-dim); }
/* Разряды цены моно-шрифтом: пробел в моно шириной в цифру — ужимаем до тонкого */
.hero-price__value { font-family: var(--font-mono); font-weight: 500; font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1; letter-spacing: -.035em; word-spacing: -.3em; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-price__note { font-size: .92rem; color: var(--text-soft); }
.hero-price__nav { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.8rem; }
.hero-price__count { min-width: 4.5em; text-align: center; font-family: var(--font-mono); font-size: .9rem; letter-spacing: .06em; color: var(--text-dim); }
.hero-price__count b { font-weight: 500; color: var(--text); }
.hero-price__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-price__media { position: relative; justify-self: end; width: 100%; max-width: 560px; aspect-ratio: 4 / 5; max-height: 76svh; overflow: hidden; border-radius: var(--radius-lg); background: var(--panel2); touch-action: pan-y; }
@supports not (height: 1svh){.hero-price__media{max-height: 76vh; overflow: hidden; border-radius: var(--radius-lg); background: var(--panel2); touch-action: pan-y}}
.hero-price__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.hero-price__slide.is-on { opacity: 1; }
.hero-price__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 900px) {
  .hero-price { min-height: 0; padding-top: 5.4rem; }
  .hero-price__inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero-price__media { order: -1; justify-self: stretch; max-width: none; aspect-ratio: 1 / 1; max-height: 60svh; }
@supports not (height: 1svh){.hero-price__media{max-height: 60vh}}
}
/* узкий экран: две кнопки не помещаются в ряд — ровной колонкой во всю ширину, а не лесенкой разной длины */
@media (max-width: 480px) { .hero-price__cta .btn { flex: 1 1 100%; justify-content: center; } }
@media (prefers-reduced-motion: reduce) { .hero-price__slide { transition: none; } }

/* ── Прайс-лист (showcase cardStyle=table): шапка колонок над строками, фото — превью за курсором ── */
/* сумма минимумов + зазоры + поля ≈ 950 px — строка влезает в контейнер 1024-го экрана и с полосой прокрутки */
.ptable__head, .vitrina--table .car--row { display: grid; grid-template-columns: 56px minmax(160px, 1.5fr) minmax(110px, .9fr) minmax(110px, .9fr) minmax(130px, 1fr) minmax(140px, 1.1fr) 132px; column-gap: 1rem; align-items: center; }
.ptable__head { margin-top: 1.6rem; padding: 0 .5rem .7rem; border-bottom: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.ptable__head { word-spacing: -.2em; }
.ptable__head span:first-child { grid-column: 2; }
.vitrina--table { display: block; }
.ptable__head + .vitrina--table { margin-top: 0; }
.vitrina--table .car--row { padding: .85rem .5rem; overflow: visible; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; transition: background .2s ease; }
/* ячейки строки — без отступов карточного стиля (у .car__year был margin-bottom → год «подпрыгивал» над строкой) */
.vitrina--table .car--row > * { margin: 0; }
.vitrina--table .car--row:hover { transform: none; background: color-mix(in srgb, var(--accent) 5%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.vitrina--table .car--row:hover{background: rgba(var(--accent-rgb), 0.05)}}
.car__thumb { width: 56px; height: 42px; overflow: hidden; border-radius: 4px; background: var(--panel2); }
.car__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car--row .car__name { margin: 0; font-size: 1.04rem; }
.car__cell { font-size: .92rem; line-height: 1.35; color: var(--text-soft); }
.car--row .car__price { display: grid; gap: .1rem; }
.car--row .car__price b { font-family: var(--font-mono); font-size: 1.06rem; font-weight: 500; word-spacing: -.3em; color: var(--text); white-space: nowrap; }
.car--row .car__price span { font-size: .8rem; color: var(--text-dim); }
.car--row .car__cta { justify-self: end; }
.row-preview { position: fixed; left: 0; top: 0; z-index: 70; width: 300px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--panel2); box-shadow: 0 18px 44px rgba(0, 0, 0, .22); pointer-events: none; opacity: 0; transition: opacity .18s ease; }
.row-preview.is-on { opacity: 1; }
.row-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 1023px) {
  .ptable__head { display: none; }
  .vitrina--table .car--row { grid-template-columns: 76px minmax(0, 1fr) auto; grid-template-areas: "thumb name price" "thumb meta price" "thumb from cta"; row-gap: .25rem; }
  .car--row .car__thumb { grid-area: thumb; width: 76px; height: 76px; align-self: start; }
  .car--row .car__name { grid-area: name; } .car--row .car__year { grid-area: meta; } .car--row .car__from { grid-area: from; }
  .car--row .car__spec { display: none; } .car--row .car__price { grid-area: price; text-align: right; align-self: start; } .car--row .car__cta { grid-area: cta; }
}
/* Телефон: цена и кнопка в одну строку под моделью — строка вдвое ниже, прайс не растягивается на три экрана */
@media (max-width: 480px) {
  .vitrina--table .car--row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb name name" "thumb meta meta" "thumb from from" "thumb price cta"; column-gap: .9rem; row-gap: .15rem; }
  .car--row .car__thumb { width: 64px; height: 64px; }
  .car--row .car__price { text-align: left; align-self: center; padding-top: .45rem; }
  .car--row .car__cta { justify-self: end; align-self: center; margin-top: .45rem; }
}
/* самые узкие (≤374): цена и кнопка в одну строку не помещаются (цена налезала на кнопку) — кнопка строкой ниже */
@media (max-width: 374px) {
  .vitrina--table .car--row { grid-template-areas: "thumb name name" "thumb meta meta" "thumb from from" "thumb price price" "thumb cta cta"; }
  .car--row .car__cta { justify-self: start; margin-top: .35rem; }
}

/* ── Заявка-мастер (leadWizard): шаги по одному (JS .is-live), без JS — все поля; выбор — пилюлями ── */
.wizard-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.wizard-wrap > .section-head { margin: 0; }
.wizard { padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--panel); }
.wizard__step { min-width: 0; margin: 0 0 1.4rem; padding: 0; border: 0; }
.wizard.is-live .wizard__step:not(.is-on) { display: none; }
.wizard__q { display: flex; align-items: baseline; gap: .8rem; margin: 0 0 1rem; padding: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.15; color: var(--text); }
.wizard__n { font-family: var(--font-mono); font-size: .9rem; font-weight: 500; color: var(--accent); }
.wizard__input { width: 100%; height: 56px; padding: 0 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); color: var(--text); font: inherit; font-size: 1.05rem; }
.wizard__input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.wizard__choices { display: flex; flex-wrap: wrap; gap: .6rem; }
.wizard__choice { position: relative; }
.wizard__choice input { position: absolute; opacity: 0; pointer-events: none; }
.wizard__choice span { display: inline-flex; align-items: center; height: 48px; padding: 0 1.2rem; border: 1px solid var(--line-strong); border-radius: 999px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.wizard__choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.wizard__choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.wizard__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.wizard__progress { margin-right: auto; font-family: var(--font-mono); font-size: .9rem; color: var(--text-dim); }
.wizard__progress b { font-weight: 500; color: var(--text); }
.wizard:not(.is-live) .wizard__next, .wizard:not(.is-live) .wizard__back, .wizard:not(.is-live) .wizard__progress { display: none; }
.wizard__submit[hidden], .wizard__next[hidden], .wizard__back[hidden] { display: none; }
.wizard__note { margin: 1rem 0 0; font-size: .86rem; color: var(--text-dim); }
@media (max-width: 900px) { .wizard-wrap { grid-template-columns: 1fr; } }

/* ── Меню на весь экран (meta.navStyle=overlay): кнопка «Меню» на всех ширинах, разделы крупно поверх страницы ── */
.site-header--overlay .nav-toggle { display: grid; }
.site-header--overlay .site-nav { display: none; }
.site-header.site-header--overlay.nav-open .site-nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .2rem; max-height: none; padding: 6.5rem max(1.5rem, calc((100vw - 1200px) / 2)) 3rem; overflow-y: auto; background: var(--bg); border: 0; box-shadow: none; }
/* только пункты разделов (прямые потомки): телефон внутри .site-nav__phones — не размером пункта меню */
.site-header.site-header--overlay.nav-open .site-nav > a:not(.site-nav__cta) { padding: .15rem 0; border: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5.2vw, 4rem); line-height: 1.12; letter-spacing: -.02em; color: var(--text); }
.site-header.site-header--overlay.nav-open .site-nav > a:not(.site-nav__cta):hover { color: var(--accent); }
.site-header.site-header--overlay.nav-open .site-nav__cta { display: inline-flex; margin-top: 1.6rem; }
.site-header.site-header--overlay.nav-open .site-nav__phones { display: flex; flex-direction: column; gap: .2rem; margin-top: 1.4rem; padding: 0; }
.site-header.site-header--overlay.nav-open .site-nav__phones a { padding: .3rem 0; border: 0; font-family: var(--font-mono); font-weight: 500; font-size: 1.12rem; letter-spacing: .01em; color: var(--text); }
/* в шапке уже есть кнопка заявки (видна шире 600px) — в оверлее её не дублируем */
@media (min-width: 601px) { .site-header.site-header--overlay.nav-open .site-nav__cta { display: none; } }
/* backdrop-filter/transform прокрученной шапки делают её контейнером для position:fixed — оверлей сжимался
   до полосы шапки, если открыть меню не в самом верху страницы. У открытого оверлея шапка без них (и без перехода). */
.site-header.site-header--overlay.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; filter: none; transition: none; }
/* пока открыт оверлей, страница под ним не прокручивается; место полосы прокрутки держим — шапка не прыгает */
html.nav-overlay-open { overflow: hidden; scrollbar-gutter: stable; }
/* липкая полоса (z-index выше шапки) не перекрывает открытое меню — в нём своя кнопка заявки */
html.nav-overlay-open .sticky-cta { display: none; }
/* страховка от горизонтальной прокрутки: длинное слово с привязанным предлогом в крупном заголовке на 320 px */
h1, h2, h3, .h-sec { overflow-wrap: break-word; }
.site-header.site-header--overlay.nav-open .site-nav { overscroll-behavior: contain; }
/* Связь рядом с мастером: адрес и ссылки под шапкой секции (левая колонка) */
.wizard__side > .section-head { margin: 0; }
.wizard__contacts { margin-top: clamp(1.4rem, 3vw, 2.2rem); font-style: normal; color: var(--text-soft); }
.wizard__contacts p { margin: 0 0 1rem; line-height: 1.55; }
.wizard__links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.wizard__links a { display: flex; align-items: center; gap: .8rem; min-height: 52px; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; transition: color .2s; }
.wizard__links a:hover { color: var(--accent); }
.wizard__links .icon { width: 20px; height: 20px; flex: none; color: var(--accent); }
/* Телефон: сначала форма, потом адрес и ссылки — кнопка «Рассчитать» ведёт сюда, форма не должна уезжать вниз */
@media (max-width: 900px) {
  .wizard__side { display: contents; }
  .wizard__contacts { order: 1; margin-top: 0; }
}

/* ── Кнопка меню: «список» ↔ «закрыть» по состоянию ── */
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* ── Вкладки-указатель (showcase tabsStyle=index): шрифт цифр, капс, число позиций; переносятся, а не уезжают ── */
.js .tabs.tabs--index { flex-wrap: wrap; overflow: visible; gap: 0 clamp(1.2rem, 2.6vw, 2.2rem); margin-top: 1.8rem; }
.tabs--index .tabs__btn { padding: .75rem 0 .55rem; font-family: var(--font-mono); font-weight: 500; font-size: .86rem; letter-spacing: .1em; word-spacing: -.2em; border-bottom-width: 2px; }
.tabs__n { margin-left: .45em; font-size: .76em; letter-spacing: 0; line-height: 0; vertical-align: super; color: var(--text-dim); }
.tabs__btn.is-on .tabs__n { color: var(--accent); }
.tabs--index + .ptable__head { margin-top: 1.2rem; }
/* телефон: пять вкладок в одну строку от края до края (360–480 px), без «сироты» на второй строке */
@media (max-width: 480px) { .js .tabs.tabs--index { justify-content: space-between; gap: 0 .7rem; } .tabs--index .tabs__btn { font-size: .78rem; letter-spacing: .06em; } }

/* ── Шапка сбоку (steps/faq layout=side): заголовок слева прилипает, содержимое справа; колонки как у мастера ── */
.side-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.side-split__head { align-self: stretch; } /* колонка во всю высоту ряда — иначе шапке не к чему прилипать */
.side-split__head > .section-head { margin: 0; position: sticky; top: 6.5rem; }
.side-split__body { min-width: 0; }
/* шапка + карточка «Не нашли ответ?» прилипают вместе (FAQ side, askTitle) */
.side-split__stick { position: sticky; top: 6.5rem; display: grid; gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.side-split__stick > .section-head { position: static; margin: 0; }
.ask { display: grid; gap: .8rem; max-width: 26rem; padding: clamp(1.2rem, 2.2vw, 1.6rem); border-radius: 18px; background: color-mix(in srgb, var(--text) 4%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.ask{background: rgba(var(--text-rgb), 0.04); box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.1)}}
.ask__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 2vw, 1.7rem); line-height: 1.05; color: var(--text); }
.ask__text { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-soft); }
.ask__acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.ask__acts .btn { flex: 1 1 auto; justify-content: center; }
.steps-side { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.steps-side__step { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem 0 1.45rem; border-bottom: 1px solid var(--line); }
.steps-side__n { padding-top: .2rem; font-family: var(--font-mono); font-size: .88rem; font-weight: 500; letter-spacing: .06em; color: var(--accent); }
.steps-side__body h3 { margin: 0 0 .35rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.25; color: var(--text); }
.steps-side__body p { margin: 0; color: var(--text-soft); max-width: 56ch; }
.faq-section--side .faq__list { display: block; margin-top: 0; border-top: 1px solid var(--line-strong); }
.faq-section--side .faq__item { padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
/* вопрос — основным шрифтом: узкие дисплейные (вывесочные) гарнитуры для строки-вопроса слишком тесные */
.faq-section--side .faq__item summary { gap: 1.5rem; padding: 1.3rem 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.3; }
.faq-section--side .faq__answer { padding: 0 2.5rem 1.4rem 0; color: var(--text-soft); }
@media (max-width: 900px) {
  .side-split { grid-template-columns: 1fr; gap: 1.6rem; }
  .side-split__head > .section-head { position: static; }
  .side-split__head.side-split__head--stick, .side-split__stick { display: contents; } /* на телефоне карточка — после вопросов */
  .side-split .ask { order: 2; max-width: none; }
}
@media (max-width: 560px) { .steps-side__step { grid-template-columns: 2.4rem minmax(0, 1fr); gap: .7rem; } .faq-section--side .faq__answer { padding-right: 0; } }

/* ── Строгие кнопки (theme.buttons=flat): без цветной тени, скругление — как у карточек темы; та же форма у
   переключателей шапки, стрелок и вариантов в мастере (одна семья форм) ── */
html[data-buttons="flat"] .btn--primary { box-shadow: none; }
html[data-buttons="flat"] .btn--primary:hover { box-shadow: none; background: var(--accent-deep); }
html[data-buttons="flat"] .btn, html[data-buttons="flat"] .btn--small, html[data-buttons="flat"] .qbtn,
html[data-buttons="flat"] .theme-toggle, html[data-buttons="flat"] .nav-toggle, html[data-buttons="flat"] .wizard__choice span { border-radius: var(--radius-lg); }

/* ══ Сессия ZA AUTO 3 (A «P-2»): панель лифта, ролики поп-апом, знаки уровней, свет трубок, неон, лак, выключатель,
   рамка номера как ценник. Физические объекты (панель, табло, выключатель, рамка) — фиксированных цветов в обеих темах. ══ */

/* ── Табло этажа (общая часть: панель лифта, шапка, кнопка меню): чёрное стекло, красные LED-цифры ── */
.lift__display { --lift-neon: var(--accent-on-dark, var(--accent-bright)); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; overflow: hidden; flex: none; border-radius: 6px; background: #050506; color: var(--lift-neon); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 2px 10px rgba(0, 0, 0, .9); font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: .05em; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px color-mix(in srgb, var(--lift-neon) 75%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.lift__display{--lift-neon-rgb: var(--accent-on-dark-rgb, var(--accent-bright-rgb)); text-shadow: 0 0 10px rgba(var(--lift-neon-rgb), 0.75)}}
.lift__code { display: block; font-style: normal; font-weight: 800; }
.lift__arrow { flex: none; width: 0; height: 0; border-left: .3em solid transparent; border-right: .3em solid transparent; border-top: .4em solid currentColor; }
.lift__display[data-dir="up"] .lift__arrow { border-top: 0; border-bottom: .4em solid currentColor; }
.lift__display:not([data-dir]) .lift__arrow { display: none; } /* в покое (обложка) табло без стрелки, «—» по центру */
.lift__display.is-flip .lift__code { animation: lift-in-down .4s var(--ease) both; }
.lift__display[data-dir="up"].is-flip .lift__code { animation-name: lift-in-up; }
.lift__display.is-flip .lift__arrow { animation: lift-arrow .5s steps(2, jump-none) 2; }
@keyframes lift-in-down { from { transform: translateY(-90%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lift-in-up { from { transform: translateY(90%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lift-arrow { 50% { opacity: .2; } }
/* кнопка уровня: стальная «таблетка» с кольцом; текущий уровень — кольцо горит неоном, как у кнопки лифта */
.lift__btn, .site-nav__idx { display: grid; place-items: center; flex: none; border-radius: 50%; font-family: var(--font-display); font-weight: 800; letter-spacing: .03em; line-height: 1; color: rgba(244, 244, 245, .86); background: radial-gradient(circle at 50% 32%, #30333A 0%, #1A1C21 72%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .16), inset 0 -2px 4px rgba(0, 0, 0, .5); transition: box-shadow .3s var(--ease), color .3s; }
.lift a.is-on .lift__btn, .site-nav > a.is-on .site-nav__idx { --lift-neon: var(--accent-on-dark, var(--accent-bright)); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--lift-neon), 0 0 0 3px color-mix(in srgb, var(--lift-neon) 24%, transparent), 0 0 18px -2px var(--lift-neon); }
@supports not (color: color-mix(in srgb, red, red)){.lift a.is-on .lift__btn, .site-nav > a.is-on .site-nav__idx{--lift-neon-rgb: var(--accent-on-dark-rgb, var(--accent-bright-rgb)); box-shadow: inset 0 0 0 1.5px var(--lift-neon), 0 0 0 3px rgba(var(--lift-neon-rgb), 0.24), 0 0 18px -2px var(--lift-neon)}}

/* Вертикальная панель у левого края — только на ≥1440 (поле слева от контейнера 1200 ≥ 120 px) и после обложки */
.lift { display: none; }
@media (min-width: 1440px) {
  .lift { position: fixed; left: 14px; top: 50%; z-index: var(--z-header); display: flex; flex-direction: column; gap: 3px; width: 94px; padding: 8px; border-radius: 14px; color: rgba(244, 244, 245, .74); background: linear-gradient(180deg, #1D1F24 0%, #121317 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .07), 0 22px 44px -22px rgba(0, 0, 0, .8); transform: translateY(-50%); }
  /* спрятанная панель уходит и из порядка Tab (visibility — с задержкой, чтобы гасла плавно) */
  html.js .lift { opacity: 0; visibility: hidden; transform: translate(-12px, -50%); pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; }
  html.js .lift.is-shown { opacity: 1; visibility: visible; transform: translateY(-50%); pointer-events: auto; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s; }
  .lift__display--panel { height: 46px; margin-bottom: 5px; font-size: 1.4rem; }
  .lift a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 2px 8px; border-radius: 10px; color: inherit; text-decoration: none; transition: background .25s var(--ease), color .25s; }
  .lift a:hover { background: rgba(255, 255, 255, .05); color: #F4F4F5; }
  .lift a:focus-visible { outline: 2px solid var(--accent-on-dark, var(--accent-bright)); outline-offset: 1px; }
  .lift a.is-on { color: #FFFFFF; }
  .lift__btn { width: 40px; height: 40px; font-size: .82rem; }
  .lift__lbl { font-size: .8rem; font-weight: 600; line-height: 1.15; text-align: center; }
  /* после обложки навигация уходит из шапки на панель (шапка дальше прячется при прокрутке как обычно) */
  html.lift-docked .site-header--lift .site-nav { display: none; } /* вся плашка: пустая рамка без пунктов не нужна */
  html.lift-docked .site-header--lift .site-header__phone { display: inline; } /* revert откатывал к значению браузера, а не blocks.css */
  html.lift-docked .site-header--lift .hdr-phones { display: inline-flex; }
}
/* очень широкий экран: поле ≥ 240 px — подпись справа от кнопки, крупнее (как гравировка у кнопок лифта) */
@media (min-width: 1680px) {
  .lift { width: 196px; padding: 10px; }
  .lift a { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 6px 10px; }
  .lift__lbl { font-size: .95rem; text-align: left; }
  .lift__display--panel { height: 52px; font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) { html.js .lift { transition: none; } .lift__display.is-flip .lift__code, .lift__display.is-flip .lift__arrow { animation: none; } }

/* Та же панель в шапке (≥1080): табло + кнопки уровней с подписями на тёмной стальной плашке; телефон шапки уступает место */
@media (min-width: 1080px) {
  .site-header--lift .site-nav { gap: 2px; padding: 3px; border-radius: 12px; background: rgba(13, 14, 17, .76); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 10px 26px -18px rgba(0, 0, 0, .7); backdrop-filter: blur(8px); }
  .site-header--lift .site-nav > a:not(.site-nav__cta) { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 5px; border-radius: 9px; color: rgba(244, 244, 245, .8); font-size: .9rem; font-weight: 600; text-decoration: none; transition: background .2s, color .2s; }
  .site-header--lift .site-nav > a:not(.site-nav__cta):hover { background: rgba(255, 255, 255, .07); color: #FFFFFF; }
  html .site-header.site-header--lift .site-nav > a.is-on:not(.site-nav__cta) { color: #FFFFFF; }
  .site-header--lift .site-nav__idx { width: 30px; height: 30px; font-size: .7rem; }
  .lift__display--nav { height: 44px; min-width: 66px; padding: 0 10px; margin-right: 3px; font-size: 1.1rem; }
  .site-header--lift .site-header__phone, .site-header--lift .hdr-phones { display: none; }
}
/* 1080–1279: коды уходят в табло (подписи видны всегда — правило «навигация без догадок») */
@media (min-width: 1080px) and (max-width: 1279px) {
  .site-header--lift .site-nav__idx { display: none; }
  .site-header--lift .site-nav > a:not(.site-nav__cta) { padding: 0 11px; }
  /* без кода-кольца текущий уровень держит подсветка клавиши и неоновая черта снизу */
  html .site-header.site-header--lift .site-nav > a.is-on:not(.site-nav__cta) { background: rgba(255, 255, 255, .08); box-shadow: inset 0 -2px 0 var(--accent-on-dark, var(--accent-bright)); }
}
/* Телефон и планшет: бургер показывает табло текущего уровня и его подпись; в меню у пунктов — коды уровней */
@media (max-width: 1079px) {
  .site-header--lift .site-nav > .lift__display--nav { display: none; }
  .nav-toggle.nav-toggle--lift { display: inline-flex; align-items: center; gap: .5rem; width: auto; min-width: 44px; padding: 0 .65rem 0 .4rem; }
  .lift__display--chip { height: 30px; min-width: 50px; padding: 0 .45rem; font-size: .95rem; }
  .nav-toggle__lbl { max-width: 7.6em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .86rem; font-weight: 600; }
  .site-header--lift .site-nav > a:not(.site-nav__cta) { display: flex; align-items: center; gap: .8rem; }
  .site-header--lift .site-nav__idx { width: 34px; height: 34px; font-size: .74rem; }
  .site-header--lift .site-nav > a.is-on:not(.site-nav__cta) { color: var(--text); }
}
@media (max-width: 400px) { .nav-toggle__lbl { display: none; } .nav-toggle.nav-toggle--lift { padding-right: .5rem; } }

/* ── Ролики поп-апом (reels play=modal): <dialog> на весь экран, ролик 9:16 крупно, пропорции сохраняются ── */
.reel-modal { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vh, 2.4rem) clamp(.6rem, 5vw, 5rem); border: 0; background: transparent; color: #F4F4F5; overflow: hidden; }
@supports not (height: 1svh){.reel-modal{height: 100vh; max-width: none; max-height: none; margin: 0; padding: clamp(1rem, 4vh, 2.4rem) clamp(.6rem, 5vw, 5rem); border: 0; background: transparent; color: #F4F4F5; overflow: hidden}}
.reel-modal[open] { display: grid; place-items: center; }
.reel-modal::backdrop { background: rgba(5, 5, 7, .88); backdrop-filter: blur(6px); }
.reel-modal__box { margin: 0; display: grid; justify-items: center; gap: .75rem; }
.reel-modal__video { display: block; width: auto; height: min(84dvh, 980px); max-width: calc(100vw - 9rem); aspect-ratio: 9 / 16; object-fit: contain; border-radius: var(--radius); background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); }
@supports not (height: 1svh){.reel-modal__video{height: min(84vh, 980px); max-width: calc(100vw - 9rem); aspect-ratio: 9 / 16; object-fit: contain; border-radius: var(--radius); background: #000; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08)}}
.reel-modal__cap { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em; color: rgba(244, 244, 245, .86); }
.reel-modal__close { position: fixed; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #FFFFFF; cursor: pointer; transition: background .2s; }
.reel-modal__close:hover, .reel-modal__close:focus-visible { background: var(--accent); }
.reel-modal__close .icon { width: 22px; height: 22px; }
.reel-modal__nav { position: fixed; top: 50%; transform: translateY(-50%); }
.reel-modal__nav--prev { left: max(14px, env(safe-area-inset-left)); }
.reel-modal__nav--next { right: max(14px, env(safe-area-inset-right)); }
html.reel-modal-open { overflow: hidden; }
@media (max-width: 640px) {
  .reel-modal { padding: 0; }
  .reel-modal__video { width: 100vw; height: auto; max-width: 100vw; max-height: calc(100dvh - 8.5rem); border-radius: 0; }
@supports not (height: 1svh){.reel-modal__video{max-height: calc(100vh - 8.5rem); border-radius: 0}}
  .reel-modal__nav { top: auto; bottom: max(14px, env(safe-area-inset-bottom)); transform: none; }
}
a.reel__play { text-decoration: none; }

/* ── Знак уровня (meta.levelSigns=yes): код P-N над заголовком раздела, как табличка уровня на колонне паркинга ── */
.level-sign { display: grid; width: max-content; place-items: center; min-width: 3.6rem; height: 2.3rem; padding: 0 .7rem; margin: 0 0 1rem; border-radius: 6px; background: var(--accent); color: #FFFFFF; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1; letter-spacing: .05em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 10px 26px -12px var(--accent-on-dark, var(--accent-bright)); }
.section-head--center .level-sign { margin-inline: auto; }

/* ── Свет уровней (theme.divider=tubes): на стыке секций — ряд LED-трубок потолка паркинга; трубки загораются по очереди,
   когда секция входит в кадр (site.js → .is-lit), с мерцанием. Светлая тема — «день»: та же линия как разметка пола. ── */
html[data-divider="tubes"] main > section + section { position: relative; --tube-n: 7; --tube-gap: 2.6rem; }
html[data-divider="tubes"] main > section + section::after { content: ''; position: absolute; top: 0; left: 50%; z-index: 2; width: min(1200px, 100% - 3rem); height: 3px; border-radius: 3px; transform: translateX(-50%); pointer-events: none;
  background: repeating-linear-gradient(90deg, #F2F5FA 0 calc((100% - (var(--tube-n) - 1) * var(--tube-gap)) / var(--tube-n)), transparent 0 calc((100% - (var(--tube-n) - 1) * var(--tube-gap)) / var(--tube-n) + var(--tube-gap)));
  filter: drop-shadow(0 0 4px rgba(235, 242, 255, .9)) drop-shadow(0 0 14px rgba(196, 212, 255, .45)); }
[data-theme="light"][data-divider="tubes"] main > section + section::after { background: repeating-linear-gradient(90deg, rgba(14, 15, 18, .22) 0 calc((100% - (var(--tube-n) - 1) * var(--tube-gap)) / var(--tube-n)), transparent 0 calc((100% - (var(--tube-n) - 1) * var(--tube-gap)) / var(--tube-n) + var(--tube-gap))); filter: none; }
@property --tubes { syntax: '<percentage>'; inherits: false; initial-value: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html.js[data-divider="tubes"] main > section + section::after { --tubes: 0%; -webkit-mask: linear-gradient(90deg, #000 var(--tubes), transparent 0); mask: linear-gradient(90deg, #000 var(--tubes), transparent 0); }
  html.js[data-divider="tubes"] main > section + section.is-lit::after { animation: tubes-on 1.15s steps(var(--tube-n), end) forwards, tubes-flicker 1.4s linear; }
  /* свет уже загорелся (site.js → .is-lit-done): анимация снята, иначе смена списка анимаций при щелчке выключателя
     перезапускала загорание — трубки гасли и загорались заново */
  html.js[data-divider="tubes"] main > section + section.is-lit-done::after { animation: none; --tubes: 100%; }
  html.is-switching[data-divider="tubes"] main > section + section.is-lit-done::after { animation: tubes-flicker .8s linear; }
}
@keyframes tubes-on { from { --tubes: 0%; } to { --tubes: 100%; } }
@keyframes tubes-flicker { 0%, 100% { opacity: 1; } 7% { opacity: .3; } 11% { opacity: 1; } 38% { opacity: .55; } 42% { opacity: 1; } 71% { opacity: .75; } 74% { opacity: 1; } }
@media (max-width: 640px) { html[data-divider="tubes"] main > section + section { --tube-n: 4; --tube-gap: 1.6rem; } }

/* ── Неоновая вывеска (theme.neon=flicker): знак уровня и акцент заголовка загораются один раз с мерцанием; фокус — неоном ── */
@keyframes neon-on { 0% { opacity: .12; } 6% { opacity: .95; } 10% { opacity: .2; } 17% { opacity: 1; } 21% { opacity: .45; } 30%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
  html.js[data-neon="flicker"] .section-head.is-visible .level-sign { animation: neon-on 1.3s linear both; }
  html.js[data-neon="flicker"] .section-head.is-visible .h-sec .accent, html.js[data-neon="flicker"] .hero-bays__content.is-visible h1 .accent { animation: neon-on 1.5s linear .15s both; }
}
:where(html[data-neon="flicker"]) :where(a, button, summary, input, select, textarea):focus-visible { /* :where — не перебивает фокус компонентов */ outline: 2px solid var(--accent-on-dark, var(--accent-bright)); outline-offset: 3px; box-shadow: 0 0 16px -4px var(--accent-on-dark, var(--accent-bright)); }

/* ── Лак (theme.sheen=lacquer): при наведении по кадру машино-места, ролику и рамке-ценнику проходит блик ── */
html[data-sheen="lacquer"] .vitrina--bay .car__frame::before, html[data-sheen="lacquer"] .reel__frame::before, html[data-sheen="lacquer"] .vitrina--plate .car__price::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, .3) 50%, rgba(255, 255, 255, .12) 55%, transparent 64%); transform: translateX(-130%); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  html[data-sheen="lacquer"] .vitrina--bay .car:hover .car__frame::before, html[data-sheen="lacquer"] .reel:hover .reel__frame::before, html[data-sheen="lacquer"] .vitrina--plate .car:hover .car__price::after { transform: translateX(130%); transition: transform 1.1s var(--ease); }
}

/* ── Выключатель света (theme.toggle=switch): настенная клавиша; «день» — клавиша вверху, «ночь» — внизу и светится
   индикатор, как у выключателя с подсветкой ── */
.theme-toggle.theme-toggle--switch { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.theme-toggle.theme-toggle--switch:hover { transform: none; }
.switch { position: relative; display: block; width: 24px; height: 34px; border-radius: 5px; background: linear-gradient(180deg, #F3F3F0, #D6D6D1); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), 0 2px 5px rgba(0, 0, 0, .45); }
.switch__key { position: absolute; inset: 3px; border-radius: 3px; background: linear-gradient(180deg, #FFFFFF 0%, #F1F1EE 47%, #C9C9C3 53%, #E4E4E0 100%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); transition: background .2s; }
[data-theme="dark"] .switch__key { background: linear-gradient(0deg, #FFFFFF 0%, #F1F1EE 47%, #C9C9C3 53%, #E4E4E0 100%); }
.switch__key::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-on-dark, var(--accent-bright)); box-shadow: 0 0 7px 1px var(--accent-on-dark, var(--accent-bright)); opacity: 0; transition: opacity .3s; }
[data-theme="dark"] .switch__key::after { opacity: 1; }
.theme-toggle--switch:focus-visible .switch { outline: 2px solid var(--accent-on-dark, var(--accent-bright)); outline-offset: 3px; }

/* ── Рамка номера как ценник (showcase priceStyle=plate): тёмная табличка с белой каймой и «шурупами» — как рамка
   ZA AUTO на каждой машине; цифры дисплейным шрифтом, подпись капителью ── */
.vitrina--plate .car__price { position: relative; overflow: hidden; display: inline-grid; justify-items: center; gap: .2rem; padding: .48rem 1.25rem .42rem; border-radius: 5px; background: #0C0C0E; color: #F7F7F5; box-shadow: inset 0 0 0 1.5px rgba(247, 247, 245, .86), inset 0 0 0 3.5px #0C0C0E, inset 0 0 0 4.5px rgba(247, 247, 245, .16), 0 8px 18px -12px rgba(0, 0, 0, .85); }
.vitrina--plate .car__price b { color: #F7F7F5; font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.vitrina--plate .car__price span { color: rgba(247, 247, 245, .6); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; }
.vitrina--plate .car__price::before { content: ''; position: absolute; top: 50%; left: .5rem; right: .5rem; height: 5px; margin-top: -2.5px; pointer-events: none; background: radial-gradient(circle at 2.5px 50%, #8C8C8A 0 1.6px, #3A3A3C 1.7px 2.5px, transparent 2.6px) left / 5px 5px no-repeat, radial-gradient(circle at 2.5px 50%, #8C8C8A 0 1.6px, #3A3A3C 1.7px 2.5px, transparent 2.6px) right / 5px 5px no-repeat; }

/* ══ Сессия ZA AUTO 4 (показ A «P-2»): крупные цифры вместо пиктограмм, клавиша бренда, финальный экран-призыв.
   Каждый приём — отдельным видом блока или параметром темы; без них разметка и вид паков прежние. ══ */

/* ── Крупные цифры (facts layout=figures): факты без пиктограмм — журнальная подача. Над числом короткая черта акцента,
   число дисплейным шрифтом, единица («дней») капителью под ним, подпись ниже; колонки разделены тонкими линиями.
   Появление — штатный .reveal по очереди (--i). На телефоне — столбиком, без линий. ── */
.figures-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.figures { --fig-cols: 3; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--fig-cols), minmax(0, 1fr)); }
.figures[data-n="1"] { --fig-cols: 1; } .figures[data-n="2"] { --fig-cols: 2; } .figures[data-n="4"] { --fig-cols: 4; }
.figure { min-width: 0; padding: .2rem clamp(1rem, 2.4vw, 2.2rem) .4rem; border-left: 1px solid var(--line-strong); }
.figure:first-child, .figures[data-n="5"] .figure:nth-child(3n+1), .figures[data-n="6"] .figure:nth-child(3n+1) { padding-left: 0; border-left: 0; }
.figures[data-n="5"] .figure:nth-child(n+4), .figures[data-n="6"] .figure:nth-child(n+4) { margin-top: 2rem; }
.figure::before { content: ''; display: block; width: 28px; height: 2px; margin-bottom: 1.1rem; background: var(--accent-on-dark, var(--accent-bright)); }
.figure__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 6vw, 5.2rem); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: break-word; color: var(--text); }
.figure__unit { display: block; margin-top: .45rem; font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); }
.figure__cap { margin: .9rem 0 0; font-size: 1.02rem; color: var(--text-soft); }
/* html.js — специфичнее, чем html.js[data-reveal=…] .reveal { transition: … }: иначе шорткат обнулял задержку и все цифры
   появлялись разом */
html.js .figures > .figure.reveal { transition-delay: calc(var(--i, 0) * 120ms); }
/* четыре цифры на планшете — 2 × 2: в четыре колонки «90–120» рвалось внутри числа (ZA AUTO, 19.10) */
@media (min-width: 761px) and (max-width: 1023px) {
  .figures[data-n="4"] { --fig-cols: 2; }
  .figures[data-n="4"] .figure:nth-child(3) { padding-left: 0; border-left: 0; }
  .figures[data-n="4"] .figure:nth-child(n+3) { margin-top: 2rem; }
}
@media (max-width: 760px) {
  .figures, .figures[data-n] { --fig-cols: 1; gap: 1.6rem; }
  .figure, .figure:first-child { padding: 0; border-left: 0; }
  .figures[data-n="5"] .figure:nth-child(n+4), .figures[data-n="6"] .figure:nth-child(n+4) { margin-top: 0; }
  /* mobileLayout=rows — строка: цифра слева, единица и подпись справа (столбик занимал экран ради трёх фактов) */
  .figures[data-m="rows"] { gap: 0; }
  .figures[data-m="rows"] .figure { display: grid; grid-template-columns: minmax(7.6rem, auto) 1fr; column-gap: 1rem; align-items: center; padding: 1rem 0; border-top: 1px solid var(--line); }
  .figures[data-m="rows"] .figure::before { display: none; }
  .figures[data-m="rows"] .figure__num { grid-row: 1 / 3; font-size: clamp(2.2rem, 10vw, 2.6rem); }
  .figures[data-m="rows"] .figure__unit { grid-column: 2; margin-top: 0; }
  .figures[data-m="rows"] .figure__cap { grid-column: 2; margin: .2rem 0 0; }
}


/* ── Клавиша бренда (theme.toggle=key): тот же выключатель света, но не белый пластик, а чёрный анодированный металл:
   рамка с фаской, клавиша-качелька с гравировкой (theme.toggleMark) и неоновая щель-индикатор — «ночью» горит, «днём»
   гаснет; перекидывается вместе с темой. Одинакова в обеих темах (физический объект). ── */
.theme-toggle.theme-toggle--key { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.theme-toggle.theme-toggle--key:hover { transform: none; }
.rocker { position: relative; display: block; width: 28px; height: 38px; border-radius: 6px; background: linear-gradient(180deg, #3A3D44 0%, #1B1C21 46%, #0D0E11 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .5); transition: transform .12s var(--ease), box-shadow .25s; }
.rocker__key { position: absolute; inset: 4px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 4px 0 5px; border-radius: 3px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 2px), linear-gradient(180deg, #363940 0%, #23252B 47%, #111215 53%, #1C1D22 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .14); }
[data-theme="dark"] .rocker__key { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 2px), linear-gradient(0deg, #363940 0%, #23252B 47%, #111215 53%, #1C1D22 100%); }
.rocker__mark { font-family: var(--font-display); font-weight: 800; font-size: 9px; line-height: 1; letter-spacing: .1em; color: rgba(255, 255, 255, .5); text-shadow: 0 -1px 0 rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .1); }
.rocker__slit { display: block; width: 12px; height: 3px; margin-top: auto; border-radius: 2px; background: color-mix(in srgb, var(--accent) 22%, #050506); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .85); transition: background .3s, box-shadow .3s; }
@supports not (color: color-mix(in srgb, red, red)){.rocker__slit{background: rgba(5, 5, 6, 1); box-shadow: inset 0 1px 1px rgba(0, 0, 0, .85); transition: background .3s, box-shadow .3s}}
[data-theme="dark"] .rocker__slit { background: var(--accent-on-dark, var(--accent-bright)); box-shadow: 0 0 5px 1px var(--accent-on-dark, var(--accent-bright)), 0 0 12px 2px color-mix(in srgb, var(--accent-on-dark, var(--accent-bright)) 45%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){[data-theme="dark"] .rocker__slit{box-shadow: 0 0 5px 1px var(--accent-on-dark, var(--accent-bright)), 0 0 12px 2px rgba(var(--accent-on-dark-rgb, var(--accent-bright-rgb)), 0.45)}}
.theme-toggle--key:hover .rocker { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24), inset 0 1px 0 rgba(255, 255, 255, .26), 0 0 0 1px rgba(0, 0, 0, .55), 0 3px 10px rgba(0, 0, 0, .55); }
.theme-toggle--key:active .rocker { transform: scale(.95); }
.theme-toggle--key:focus-visible .rocker { outline: 2px solid var(--accent-on-dark, var(--accent-bright)); outline-offset: 3px; }
.theme-toggle.theme-toggle--key:focus-visible, .theme-toggle.theme-toggle--switch:focus-visible { outline: none; } /* кольцо фокуса — одно, на самой клавише */
@media (prefers-reduced-motion: reduce) { .rocker, .rocker__slit { transition: none; } }

/* ── Финальный экран-призыв (блок cta, layout=final): выгода в заголовке, две крупные кнопки-действия и строка офиса —
   последний экран перед подвалом. Кнопки видны кликабельными без наведения (заливка/плашка, стрелка); вторая — тёмная
   плашка в обеих темах. Офис — типографикой между двумя линиями (адрес крупно, подпись, ссылка на карту), без иконки.
   На телефоне — в столбик во всю ширину. ── */
.final-section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.final__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: clamp(1.4rem, 2.6vw, 2.2rem); }
.final__acts[data-n="1"] { grid-template-columns: minmax(0, 1fr); }
.final__act { display: flex; align-items: center; gap: 1rem; min-width: 0; min-height: 84px; padding: .9rem 1.5rem .9rem 1.6rem; border-radius: var(--radius-lg); text-decoration: none; transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s; }
.final__act.final__act--ic { padding-left: 1.1rem; }
.final__act--primary { background: var(--accent); color: #FFFFFF; box-shadow: 0 16px 36px -18px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .18); }
@supports not (color: color-mix(in srgb, red, red)){.final__act--primary{box-shadow: 0 16px 36px -18px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, .18)}}
.final__act--primary:hover, .final__act--primary:focus-visible { background: color-mix(in srgb, var(--accent) 88%, #FFFFFF); box-shadow: 0 18px 44px -16px color-mix(in srgb, var(--accent) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .24); }
@supports not (color: color-mix(in srgb, red, red)){.final__act--primary:hover, .final__act--primary:focus-visible{background: rgba(var(--accent-rgb), 1); box-shadow: 0 18px 44px -16px rgba(var(--accent-rgb), 0.9), inset 0 1px 0 rgba(255, 255, 255, .24)}}
html[data-buttons="flat"] .final__act--primary, html[data-buttons="flat"] .final__act--primary:is(:hover, :focus-visible) { box-shadow: none; } /* плоские кнопки — без цветной тени, как .btn--primary */
.final__act--second { background: linear-gradient(180deg, #17181C 0%, #0E0F12 100%); color: #F4F4F5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.final__act--second:hover, .final__act--second:focus-visible { box-shadow: inset 0 0 0 1px var(--accent-on-dark, var(--accent-bright)), 0 0 26px -8px var(--accent-on-dark, var(--accent-bright)); }
.final__ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; }
.final__ic .icon { width: 32px; height: 32px; }
.final__txt { display: grid; gap: .3rem; min-width: 0; }
.final__txt b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1; letter-spacing: .005em; }
.final__txt small { font-size: .95rem; line-height: 1.2; font-variant-numeric: tabular-nums; opacity: .78; }
.final__act--primary .final__txt small { opacity: .92; } /* на красном .78 давало контраст ниже 4,5:1 */
.final__arr { flex: none; width: 26px; height: 26px; margin-left: auto; transition: transform .3s var(--ease); }
.final__act:hover .final__arr, .final__act:focus-visible .final__arr { transform: translateX(4px); }
.final__act:active { transform: translateY(1px); }
/* кнопки и строка офиса — ссылки-плашки: глобальное a:hover { underline } им не нужно (подчёркивал весь текст) */
.final__act:is(:hover, :focus-visible), .final__office:is(:hover, :focus-visible) { text-decoration: none; }
.final__office { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.6rem; padding: 1.4rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); color: inherit; text-decoration: none; }
.final__addr { min-width: 0; }
.final__addr b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1; color: var(--text); }
.final__addr span { display: block; margin-top: .4rem; font-size: .95rem; color: var(--text-soft); }
.final__go { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; white-space: nowrap; color: var(--text); transition: color .25s; }
.final__go .icon { width: 1.15em; height: 1.15em; transition: transform .3s var(--ease); }
a.final__office:hover .final__go, a.final__office:focus-visible .final__go { color: var(--accent-bright); }
a.final__office:hover .final__go .icon, a.final__office:focus-visible .final__go .icon { transform: translateX(4px); }
@media (max-width: 760px) { .final__office { flex-wrap: wrap; gap: .9rem 1.5rem; } .final__go { margin-left: 0; } }
@media (max-width: 640px) {
  .final__acts { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .final__act { min-height: 76px; padding-right: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) { .final__act, .final__arr, .final__go, .final__go .icon { transition: none; } }
/* Финальный экран с формой заявки (formMode=demo): слева выгода, кнопки столбиком и офис, справа карточка формы
   (язык карточки калькулятора «студия»: токены темы, кольцо фокуса без акцента, красный — только у кнопки). */
.final__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(1.8rem, 4vw, 4.4rem); align-items: start; }
@media (max-width: 960px) { .final__grid { grid-template-columns: minmax(0, 1fr); } }
.final-section--form .final__acts { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.apply { position: relative; margin: 0; padding: clamp(1.4rem, 2.6vw, 2.1rem); border-radius: 22px; background: linear-gradient(180deg, color-mix(in srgb, var(--text) 7%, var(--bg)) 0%, color-mix(in srgb, var(--text) 3%, var(--bg)) 100%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent), 0 40px 90px -50px rgba(0, 0, 0, .6); }
@supports not (color: color-mix(in srgb, red, red)){.apply{background: linear-gradient(180deg, rgba(var(--text-rgb), 0.07) 0%, rgba(var(--text-rgb), 0.03) 100%); box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.1), 0 40px 90px -50px rgba(0, 0, 0, .6)}}
.apply::before { content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--text) 32%, transparent), transparent); pointer-events: none; }
@supports not (color: color-mix(in srgb, red, red)){.apply::before{background: linear-gradient(90deg, transparent, rgba(var(--text-rgb), 0.32), transparent); pointer-events: none}}
.apply__body { display: grid; gap: 1.1rem; }
.apply__body[hidden], .apply__done[hidden] { display: none; }
.apply__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.05; color: var(--text); }
.apply__lead { margin: -.5rem 0 .2rem; font-size: 1rem; line-height: 1.5; color: var(--text-soft); }
.apply__field { display: grid; gap: .5rem; }
.apply__lbl { font-size: .9375rem; font-weight: 500; color: var(--text-dim); }
.apply__box { display: flex; align-items: center; height: 56px; padding: 0 1.1rem; border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 11%, transparent); transition: box-shadow .2s ease, background-color .2s ease; }
@supports not (color: color-mix(in srgb, red, red)){.apply__box{background: rgba(var(--text-rgb), 0.05); box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.11); transition: box-shadow .2s ease, background-color .2s ease}}
.apply__box:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 20%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.apply__box:hover{box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.2)}}
.apply__box:focus-within { background: color-mix(in srgb, var(--text) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 50%, transparent), 0 0 0 4px color-mix(in srgb, var(--text) 9%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.apply__box:focus-within{background: rgba(var(--text-rgb), 0.07); box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.5), 0 0 0 4px rgba(var(--text-rgb), 0.09)}}
.apply__field.is-bad .apply__box { box-shadow: inset 0 0 0 1px color-mix(in srgb, #FF6B5E 80%, transparent), 0 0 0 4px color-mix(in srgb, #FF6B5E 14%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.apply__field.is-bad .apply__box{box-shadow: inset 0 0 0 1px rgba(255, 107, 94, 0.8), 0 0 0 4px rgba(255, 107, 94, 0.14)}}
.apply__input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; color: var(--text); font: 500 1.1rem/1 var(--font); font-variant-numeric: tabular-nums; outline: none; }
.apply__input:focus, .apply__input:focus-visible { outline: none; box-shadow: none; } /* кольцо — у обёртки */
.apply__input::placeholder { color: var(--text-dim); opacity: .7; }
.apply__err { min-height: 0; font-size: .875rem; color: #FF8B80; }
.apply__err:empty { display: none; }
.apply__send { position: relative; min-height: 56px; margin-top: .3rem; }
.apply__spin { position: absolute; top: 50%; left: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #FFFFFF; opacity: 0; }
.apply.is-sending .apply__send span { opacity: 0; }
.apply.is-sending .apply__spin { opacity: 1; animation: apply-spin .7s linear infinite; }
@keyframes apply-spin { to { transform: rotate(360deg); } }
.apply__consent { margin: -.2rem 0 0; font-size: .875rem; line-height: 1.45; text-align: center; color: var(--text-dim); }
.apply__done { display: grid; justify-items: center; gap: 1rem; padding: 1.6rem 0 1rem; text-align: center; outline: none; }
.apply__done .apply__lead { margin: -.3rem 0 0; max-width: 26em; }
.apply__check { width: 64px; height: 64px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.apply__check circle { stroke: color-mix(in srgb, var(--text) 28%, transparent); stroke-dasharray: 151; stroke-dashoffset: 151; }
@supports not (color: color-mix(in srgb, red, red)){.apply__check circle{stroke: rgba(var(--text-rgb), 0.28); stroke-dasharray: 151; stroke-dashoffset: 151}}
.apply__check path { stroke-dasharray: 36; stroke-dashoffset: 36; }
.apply.is-done .apply__check circle { animation: apply-draw .7s cubic-bezier(.16, 1, .3, 1) forwards; }
.apply.is-done .apply__check path { animation: apply-draw .45s cubic-bezier(.16, 1, .3, 1) .45s forwards; }
.apply.is-done .apply__done > :not(svg) { animation: apply-rise .6s cubic-bezier(.16, 1, .3, 1) .35s both; }
@keyframes apply-draw { to { stroke-dashoffset: 0; } }
@keyframes apply-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* уведомление внизу экрана (site.js siteToast) — над липкими панелями телефона */
.site-toast { position: fixed; left: 50%; bottom: calc(1.4rem + env(safe-area-inset-bottom)); z-index: calc(var(--z-sticky, 60) + 5); width: max-content; max-width: min(calc(100vw - 32px), 30rem); padding: .9rem 1.2rem; border-radius: 14px; background: color-mix(in srgb, var(--bg) 88%, var(--text) 12%); color: var(--text); font-size: .9375rem; line-height: 1.45; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 16%, transparent), 0 22px 50px -20px rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translate(-50%, 160%); opacity: 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; pointer-events: none; }
@supports not (color: color-mix(in srgb, red, red)){.site-toast{background: rgba(var(--bg-rgb), 1); color: var(--text); font-size: .9375rem; line-height: 1.45; box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.16), 0 22px 50px -20px rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transform: translate(-50%, 160%); opacity: 0; transition: transform .5s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; pointer-events: none}}
.site-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 720px) { .site-toast { bottom: calc(5.4rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) {
  .apply__box, .site-toast { transition: none; }
  .apply.is-sending .apply__spin { animation: none; }
  .apply.is-done :is(.apply__check circle, .apply__check path) { animation: none; stroke-dashoffset: 0; }
  .apply.is-done .apply__done > :not(svg) { animation: none; }
}

/* ── Моушн-система (2026-10-13): характер движения theme.motion → html[data-motion], токены --m-* из ../theme.css?v=a01aecbc ──────
   Появление: длительность, кривая, сдвиг и размытие из пресета библиотеки motions. Каскад ставит site.js инлайн-задержкой;
   здесь только longhand-свойства transition-* — transition-delay не перебиваем (своя очередь figures, урок ZA AUTO-4).
   После появления .is-settled: transform на пружине (linear() из ../theme.css?v=a01aecbc), остальное коротко — отклик, а не «вплывание».
   Кнопки: упругий нажим (быстро вниз, пружиной обратно). Без data-motion ни одно правило ниже не срабатывает. */
html.js[data-motion][data-reveal="rise"] .reveal:not(.is-visible) { transform: translateY(var(--m-shift, 18px)); filter: var(--m-filter, none); }
html.js[data-motion][data-reveal="fade"] .reveal:not(.is-visible) { filter: var(--m-filter, none); }
html.js[data-motion]:is([data-reveal="rise"], [data-reveal="fade"]) .reveal { transition-property: opacity, transform, filter; transition-duration: var(--m-dur, .6s); transition-timing-function: var(--m-ease, ease); }
html.js[data-motion][data-reveal="clip"] .reveal { transition-property: opacity; transition-duration: var(--m-dur, .7s); transition-timing-function: var(--m-ease, ease); }
html.js[data-motion][data-reveal="clip"] .reveal img:not(.section-bg):not(.product__bg) { transition-duration: calc(var(--m-dur, .8s) * 1.1), calc(var(--m-dur, .8s) * 1.25), .5s; transition-timing-function: var(--m-ease, ease); }
html.js[data-motion][data-reveal="light"] .reveal { transition-property: opacity, filter; transition-duration: var(--m-dur, .8s), calc(var(--m-dur, .8s) * 1.3); transition-timing-function: ease, var(--m-ease, ease); }
/* Под прелоадером контейнер hero не движется сам — хореографию ведут дети (.hero-stagger > *), иначе двойное движение.
   Специфичность (0,5,1) = правилу :not(.is-visible) выше — побеждает порядком; .is-settled ниже побеждает его. */
html.js[data-motion]:is(.is-preloading, .is-revealing) .hero-stagger.reveal { transform: none; filter: none; transition-property: none; }
html.js[data-motion] .reveal.is-visible.is-settled { transition-property: transform, box-shadow, border-color, background-color, opacity; transition-duration: var(--m-spring-dur, .3s), .3s, .3s, .3s, .3s; transition-timing-function: var(--m-spring, ease), ease, ease, ease, ease; }
html[data-motion] .btn { transition-property: transform, box-shadow, background-color, opacity; transition-duration: var(--m-spring-dur, .2s), .25s, .25s, .2s; transition-timing-function: var(--m-spring, ease), ease, ease, ease; }
html[data-motion] .btn:active { transform: translateY(0) scale(.97); transition-duration: 90ms, .25s, .25s, .2s; transition-timing-function: ease-out; }
@media (prefers-reduced-motion: reduce) {
  html.js[data-motion] .reveal { filter: none !important; transition: none !important; }
  html.js[data-motion] .reveal img { transition: none !important; }
  html[data-motion] .btn { transition: none; }
  html[data-motion] .btn:active { transform: translateY(0); }
}

/* ── Движение по прокрутке (theme.scrollFx → html[data-scroll-fx]): CSS scroll-driven animations ─────────────────────
   Прогресс привязан к прокрутке напрямую: каждый щелчок колеса двигает кадр, назад — обратно (урок ПП-4: не «мёртвый
   скролл»). Только внутри @supports и без reduced-motion; без поддержки страница статична (исходное состояние = конечное).
   Анимации висят на ОБЁРТКАХ без своих анимаций (__inner, __media, __stage) — с .reveal и хореографией прелоадера на
   детях не конфликтуют. Медиа-эффекты — только ≥1024 (закон мобилы, плейбук §6). Zoom-out кадра не используем
   (разбор ПП-4: «скучен») — фото отстаёт от страницы (параллакс) или раскрывается из окна.
   depth: обложка уходит (текст уходит вверх быстрее страницы и гаснет во второй трети, фон отстаёт и чуть приближается —
   разные скорости слоёв дают глубину; текст вниз «тонуть» не пускаем: наезжал на подсказку и висел мутным над кадром),
   фото cover-экранов отстают от страницы. cinema: depth + cover-экраны раскрываются из окна на всю ширину + крупные
   фразы (.sfx-fill) заливаются цветом. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1024px) {
    html[data-scroll-fx] :is(.hero-video, .hero-poster, .hero-cover) { view-timeline: --sfx-hero block; view-timeline-inset: 0px; } /* inset auto = scroll-padding под шапку — сдвигал покой */
    html[data-scroll-fx] :is(.hero-video__inner, .hero-poster__inner, .hero-cover > .container) { animation: sfx-hero-text linear both; animation-duration: 1ms; animation-timeline: --sfx-hero; animation-range: exit-crossing 0% exit-crossing 80%; }
    html[data-scroll-fx] :is(.hero-video__media, .hero-cover__stage) { animation: sfx-hero-media linear both; animation-duration: 1ms; animation-timeline: --sfx-hero; animation-range: exit-crossing 0% exit-crossing 100%; }
    /* Подсказка «листайте» гаснет первой (своё покачивание hint-drift сохраняем — вторая анимация в списке). */
    html[data-scroll-fx] :is(.hero-video__hint, .hero-poster__hint, .hero-cover__hint) { animation: hint-drift 2.6s ease infinite alternate, sfx-fade-out linear both; animation-duration: 2.6s, 1ms; animation-timeline: auto, --sfx-hero; animation-range: normal, exit-crossing 0% exit-crossing 12%; }
    html[data-scroll-fx] .product--cover { view-timeline: --sfx-cover block; view-timeline-inset: 0px; }
    html[data-scroll-fx] .product--cover .product__bg { animation: sfx-drift linear both; animation-duration: 1ms; animation-timeline: --sfx-cover; animation-range: cover 0% cover 100%; }
    html[data-scroll-fx="cinema"] .product--cover:not(.product--blank) { background: var(--bg); }
    html[data-scroll-fx="cinema"] .product--cover .product__media { animation: sfx-open linear both; animation-duration: 1ms; animation-timeline: --sfx-cover; animation-range: entry 0% entry 100%; }
  }
}
@supports (animation-timeline: view()) and ((-webkit-background-clip: text) or (background-clip: text)) {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* Заливка строчного элемента: фон строчного бокса идёт сквозь строки (box-decoration-break: slice), поэтому
       граница заливки движется в порядке чтения — строка за строкой. Акцент и свой цвет горят сразу (свой цвет).
       Безопасный отказ: в покое фон — полный цвет, тусклое состояние только в кадре from (fill both держит его до
       начала диапазона); не применилась анимация (печать, браузер без строчного subject у view()) — текст полный. */
    html[data-scroll-fx="cinema"] .sfx-fill:not(.sfx-fill--static) {
      -webkit-text-fill-color: transparent;
      background-image: linear-gradient(90deg, currentColor 0 46%, color-mix(in srgb, currentColor 28%, transparent) 54% 100%);
      background-size: 220% 100%; background-repeat: no-repeat; background-position: 0 0;
      -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: slice; box-decoration-break: slice;
      animation: sfx-fill linear both; animation-duration: 1ms; animation-timeline: view(); animation-range: cover 10% cover 45%;
    }
@supports not (color: color-mix(in srgb, red, red)){html[data-scroll-fx="cinema"] .sfx-fill:not(.sfx-fill--static){background-size: 220% 100%; background-repeat: no-repeat; background-position: 0 0; -webkit-background-clip: text; background-clip: text; -webkit-box-decoration-break: slice; box-decoration-break: slice; animation: sfx-fill linear both; animation-duration: 1ms; animation-timeline: view(); animation-range: cover 10% cover 45%}}
    html[data-scroll-fx="cinema"] .sfx-fill:not(.sfx-fill--static) span { -webkit-text-fill-color: currentColor; }
  }
}
@keyframes sfx-hero-text { 30% { opacity: 1; } to { translate: 0 -12vh; opacity: 0; } }
@keyframes sfx-fade-out { to { opacity: 0; } }
@keyframes sfx-hero-media { to { translate: 0 20%; scale: 1.06; } }
@keyframes sfx-drift { from { scale: 1.1; translate: 0 -4%; } to { scale: 1.1; translate: 0 4%; } }
@keyframes sfx-open { from { clip-path: inset(6% 7% round 28px); } to { clip-path: inset(0 0 round 0); } }
@keyframes sfx-fill { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ── Дисциплина акцента (theme.accentUse=cta → html[data-accent="cta"], разбор ZA AUTO 15.10) ─────────────────────
   Цвет акцента остаётся только у кнопок (.btn--primary, финальные кнопки) и у акцентного слова заголовка (.accent).
   Всё остальное, что было акцентным, — нейтрально: выбранное получает белую рамку (видно, но не спорит с кнопкой),
   ссылки в тексте — цветом текста с подчёркиванием, чёрточки/плюсики/play/свет разделителей — белым/серым.
   Штамп талона — графитовыми «чернилами» (льготный остаётся синим: два состояния различимы). */
html[data-accent="cta"] .meter__panel { --m-neon: #F2F3F5; }
@supports not (color: color-mix(in srgb, red, red)){html[data-accent="cta"] .meter__panel{--m-neon-rgb: 242, 243, 245}}
html[data-accent="cta"] .meter__cur { text-shadow: none; }
html[data-accent="cta"] .ticket__row--warn dd, html[data-accent="cta"] .ticket__meta b { color: inherit; }
html[data-accent="cta"] .ticket__stamp:not(.ticket__stamp--benefit) { color: #2B2E33; }
html[data-accent="cta"] .hero-bays { --hb-glow: rgba(251, 248, 244, .5); }
@supports not (color: color-mix(in srgb, red, red)){html[data-accent="cta"] .hero-bays{--hb-glow-rgb: 251, 248, 244}}
html[data-accent="cta"] .hero-bays h1 .accent { color: var(--accent-on-dark, var(--accent-bright)); text-shadow: 0 0 22px color-mix(in srgb, var(--accent-on-dark, var(--accent-bright)) 45%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){html[data-accent="cta"] .hero-bays h1 .accent{text-shadow: 0 0 22px rgba(var(--accent-on-dark-rgb, var(--accent-bright-rgb)), 0.45)}}
html[data-accent="cta"] .vitrina--bay .car__frame::after { background: rgba(251, 248, 244, .45); box-shadow: none; }
html[data-accent="cta"] .figure::before { background: var(--line-strong); }
html[data-accent="cta"] .faq__item summary::after { color: var(--text-dim); }
html[data-accent="cta"] .reel__play { color: #111216; background: #F2F3F5; box-shadow: 0 0 0 6px rgba(242, 243, 245, .16), 0 8px 24px rgba(0, 0, 0, .35); }
html[data-accent="cta"] .reel__play:hover, html[data-accent="cta"] .reel__play:focus-visible { box-shadow: 0 0 0 9px rgba(242, 243, 245, .22), 0 8px 24px rgba(0, 0, 0, .35); }
html[data-accent="cta"] main :is(p, li, dd, figcaption, .lead) a:not([class]) { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 55%, transparent); text-underline-offset: .2em; }
@supports not (color: color-mix(in srgb, red, red)){html[data-accent="cta"] main :is(p, li, dd, figcaption, .lead) a:not([class]){text-underline-offset: .2em}}
html[data-accent="cta"] main :is(p, li, dd, figcaption, .lead) a:not([class]):hover { text-decoration-color: currentColor; }
/* ссылки только без классов: оформленные ссылки-карточки (a.tile и т.п.) не перекрашиваем */
html[data-accent="cta"] :is(a.final__office:hover, a.final__office:focus-visible) .final__go { color: inherit; }
html[data-accent="cta"] .footer__sign:hover { color: var(--text); }
html[data-accent="cta"] .bay:focus-visible { box-shadow: inset 0 0 0 2px #FBF8F4; }

/* ── Шкала кеглей (theme.typeScale=seven → html[data-type-scale="seven"], разбор ZA AUTO 15.10) ────────────────────
   7 ступеней: 14 · 16 · 20 · 24 · 32 · 47 · 83 px; шрифты темы прежние. Мелкий текст ≥ 14 px (было 12–13 px у 31 % текста),
   узкий дисплейный на 17 px читался мелко → 20. Заголовки секций (47) и обложки (83) не трогаем. Гравировка клавиши — исключение. */
html[data-type-scale="seven"] :is(.reel__label, .meter__lbl, .car__price span, .ticket__row small, .ticket__rate, .meter__key small, .ticket__meta time, .ticket__meta span, .ticket__total span, .ticket__head span, .footer__sign, .footer__sign b) { font-size: .875rem; }
html[data-type-scale="seven"] :is(.calc__disclaimer, .ticket__row dt, .ticket__row dd, .footer__disc, .meter__hint, .bay__cap small, .hb-stories__btn, .hb-stories__btn small, .figure__unit, .footer__phones-lbl, .meter__note, .footer__col a, .footer__phones a, .footer__col h4) { font-size: .875rem; }
html[data-type-scale="seven"] :is(.reel__cap span, .btn, .final__addr span, .ticket__route, .ticket__stamp, .final__txt small, .site-nav a, .site-header__phone) { font-size: 1rem; }
html[data-type-scale="seven"] :is(.reel__cap b, .meter__key b, .bay__cap b, .faq__item summary, .lead, .hero-bays__sub) { font-size: 1.25rem; }
html[data-type-scale="seven"] :is(.car__price b, .ticket__head b, .car__name) { font-size: 1.5rem; }
html[data-type-scale="seven"] :is(.final__txt b, .ticket__total b, .final__addr b) { font-size: 2rem; }
/* Талон в шкале «7 ступеней»: подпись итога не рвётся; на телефоне талон шире на 20 px и сумма — ступень 24 (32 не помещалась
   рядом с «Итого под ключ» и ломала подпись на две строки). */
html[data-type-scale="seven"] .ticket__total span { white-space: nowrap; letter-spacing: .08em; }
@media (max-width: 480px) {
  html[data-type-scale="seven"] .meter__feed { width: calc(100% - 8px); }
  html[data-type-scale="seven"] .ticket { padding-left: .85rem; padding-right: .85rem; }
  html[data-type-scale="seven"] .ticket__total b { font-size: 1.5rem; }
}
@media (max-width: 360px) { html[data-type-scale="seven"] .ticket__total { flex-wrap: wrap; row-gap: .35rem; } html[data-type-scale="seven"] .ticket__total b { margin-left: auto; } }
/* Ревью 15.10: подпись «МОЩНОСТЬ, Л.С.» на 360–374 переносится — поля пары выравниваем по низу; на узких — ступенью ниже
   «старше 5 лет» на клавишах (≤ 374) и кнопка финального экрана (≤ 480: 32 → 24, иначе две строки на 320). */
html[data-type-scale="seven"] .meter__pair { align-items: end; }
@media (max-width: 480px) { html[data-type-scale="seven"] .final__txt b { font-size: 1.5rem; } }
@media (max-width: 374px) { html[data-type-scale="seven"] .meter__key b { font-size: 1rem; } }
/* Узкие экраны (сессия 7, разбор 18.10: «заголовок меньше кнопок и почти как описание»): заголовок секции ядра упирался в
   минимум 29 px — узкий дисплейный шрифт такого кегля «весит» как обычный 20 px описания, а надпись больших кнопок финала была
   32. Лестница < 900 px: заголовок 36–44 (между ступенями 32 и 47), описание 17, надписи больших кнопок и адрес 24. */
@media (max-width: 899px) {
  html[data-type-scale="seven"] .h-sec { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 2.75rem); }
  html[data-type-scale="seven"] :is(p.lead, p.hero-bays__sub) { font-size: 1.0625rem; } /* p. — :is() базового правила весит как «.reel__cap b» */
  html[data-type-scale="seven"] :is(.final__txt b, .final__addr b) { font-size: 1.5rem; } /* адрес — ступень кнопок, ниже заголовка */
}
/* ── конец секции «арт-разбор ZA AUTO 15.10» (тест: все правила выше — под data-accent / data-type-scale) ── */

/* ── Ролики «сцена + список» (reels layout=feature, сессия 6 ZA — ритм страницы) ──────────────────────────────────
   Сцена — крупный кадр 3:4 (вертикальные ролики обрезаются сверху/снизу), кадры стопкой: активный проявляется, видео
   поверх постера — когда реально играет. Список — пункты-кнопки: неактивные приглушены, текст раскрывается только у
   активного (grid-rows 0fr → 1fr), полоса прогресса ролика под ним. Акцент не используется (красный — у CTA). */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.6rem, 4.4vw, 4.6rem); align-items: center; margin-top: clamp(1.4rem, 2.6vw, 2.4rem); }
.feat__stage { position: relative; aspect-ratio: 3 / 4; max-height: min(78svh, 720px); width: 100%; justify-self: center; border-radius: var(--radius-lg, 14px); overflow: hidden; background: color-mix(in srgb, var(--text) 6%, var(--bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent), 0 40px 90px -50px rgba(0, 0, 0, .6); }
@supports not (color: color-mix(in srgb, red, red)){.feat__stage{background: rgba(var(--text-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.1), 0 40px 90px -50px rgba(0, 0, 0, .6)}}
@supports not (height: 1svh){.feat__stage{max-height: min(78vh, 720px); width: 100%; justify-self: center; border-radius: var(--radius-lg, 14px); overflow: hidden; background: rgba(var(--text-rgb), 0.06); box-shadow: inset 0 0 0 1px rgba(var(--text-rgb), 0.1), 0 40px 90px -50px rgba(0, 0, 0, .6)}}
.feat__media { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.feat__media.is-on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease), visibility 0s; }
.feat__poster, .feat__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feat__video { opacity: 0; transition: opacity .5s ease; }
.feat__video.is-ready { opacity: 1; }
.feat__media.is-on .feat__poster { animation: feat-in 1.2s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes feat-in { from { transform: scale(1.035); } to { transform: none; } }
.feat__list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.feat__list{border-top: 1px solid rgba(var(--text-rgb), 0.1)}}
.feat__item { border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.feat__item{border-bottom: 1px solid rgba(var(--text-rgb), 0.1)}}
.feat__btn { position: relative; display: grid; grid-template-columns: 1fr; gap: 0 1.2rem; width: 100%; min-height: 64px; padding: 1.1rem 0 1.2rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.feat__list--num .feat__btn { grid-template-columns: 2.6rem 1fr; }
.feat__num { padding-top: .25rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--text-dim); transition: color .3s ease; }
.feat__txt { display: grid; gap: .25rem; min-width: 0; }
.feat__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 2.2vw, 1.9rem); line-height: 1.08; color: var(--text); opacity: .5; transition: opacity .3s ease; }
.feat__label { font-size: .9375rem; color: var(--text-dim); }
.feat__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.16, 1, .3, 1); }
.feat__text { min-height: 0; overflow: hidden; font-size: 1.0625rem; line-height: 1.55; color: var(--text-soft); opacity: 0; transition: opacity .35s ease; }
.feat__item.is-on .feat__more { grid-template-rows: 1fr; }
.feat__item.is-on .feat__text { padding-top: .45rem; opacity: 1; transition-delay: .12s; }
.feat__item.is-on .feat__title, .feat__btn:hover .feat__title, .feat__btn:focus-visible .feat__title { opacity: 1; }
.feat__item.is-on .feat__num { color: var(--text); }
.feat__btn:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; border-radius: 6px; }
.feat__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.feat__bar > i { display: block; height: 100%; background: var(--text); transform: scaleX(0); transform-origin: left center; }
.feat--modal .feat__bar { display: none; }
/* отзывы: цитата крупнее, в «ёлочках» из данных */
.feat--modal .feat__text { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--text); }
@media (max-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: start; }
  .feat__stage { aspect-ratio: 4 / 5; max-height: 62svh; }
@supports not (height: 1svh){.feat__stage{max-height: 62vh}}
}
@media (prefers-reduced-motion: reduce) {
  .feat__media, .feat__media.is-on, .feat__video, .feat__more, .feat__text, .feat__title { transition: none; }
  .feat__media.is-on .feat__poster { animation: none; }
}

/* ══ Сессия 7 ZA AUTO (2026-10-18): «уровень дорогих студий» — генерики, все opt-in (без настройки вывод прежний) ══ */

/* ── Вид роликов и фото «плёнка» (theme.mediaLook=film → html[data-media-look]) ──────────────────────────────────
   Один «look» на кадры из разных съёмок: фильтр на видео/фото + слои внутри кадра (site.js добавляет .ml-tone/.ml-grain
   сразу за картинкой — подписи, кнопки и метки рисуются поверх, зерна на тексте нет). Тон — multiply светлым тёплым:
   чёрное остаётся нейтральным (soft-light красил тени в коричневый), синева уходит из светлого; виньетка — тем же слоем.
   Зерно — overlay на самом слое (с z-index слой — свой контекст наложения: blend у ::before смешивался бы с пустотой → вуаль),
   шум в sRGB (в linearRGB «середина» светлее 50 % и overlay поднимает тени) — тайл в patterns.json (mediaGrain), не в CSS.
   Телефон и reduced-motion — зерно без анимации. */
html[data-media-look="film"] :is(.bay__video, .bay__poster, .car__frame img, .car__video, .feat__poster, .feat__video, .reel__poster, .reel__video, .reel-modal__video) { filter: contrast(1.1) brightness(.95) saturate(.84) sepia(.06); }
html[data-media-look="film"] :is(.bay__media, .car__frame, .feat__media, .reel__frame) { isolation: isolate; }
/* Своё тёмное дно кадра: тон (multiply) смешивается с ним, а не с пустотой. Без него кадр, чьё фото/видео не загрузилось
   (обрыв сети), становился сплошной бежевой плашкой цвета тона (урок 19.10, Note 4). Медиа кадр закрывает целиком (cover) —
   при загруженном виде не меняется. У .car__frame дно своё. */
html[data-media-look="film"] :is(.bay__media, .feat__media, .reel__frame) { background-color: #0A0C10; }
.ml-tone, .ml-grain { position: absolute; inset: 0; pointer-events: none; }
.ml-tone { z-index: 1; mix-blend-mode: multiply; background: radial-gradient(120% 90% at 50% 46%, transparent 58%, rgba(0, 0, 0, .3) 100%), rgb(255, 243, 226); }
.ml-grain { z-index: 2; overflow: hidden; mix-blend-mode: overlay; opacity: .18; }
.ml-grain::before { content: ''; position: absolute; inset: -50%; background-image: var(--ml-grain-tile, none); background-size: 180px 180px; animation: ml-grain .8s steps(1) infinite; } /* тайл — config/patterns.json mediaGrain */
@keyframes ml-grain { /* зерно «живёт» ~12 раз в секунду, как плёнка, а не плывёт */
  0% { transform: translate(0, 0); } 10% { transform: translate(-7%, 4%); } 20% { transform: translate(5%, -9%); } 30% { transform: translate(-3%, 11%); }
  40% { transform: translate(9%, 2%); } 50% { transform: translate(-10%, -5%); } 60% { transform: translate(4%, 8%); } 70% { transform: translate(-6%, -11%); }
  80% { transform: translate(11%, 6%); } 90% { transform: translate(-2%, -3%); } }
@media (hover: none), (prefers-reduced-motion: reduce) { .ml-grain::before { animation: none; } }

/* ── Первый экран: заголовок-постер (heroBays titleStyle=poster → .hero-bays[data-title="poster"]) ─────────────────
   ПК: кегль от ширины сетки (cqi) и от высоты окна (svh) — кнопки остаются в первом экране и на 1366×768; переносы — [br]
   автора, длинное — само уходит в строку ниже (balance). Строки выходят из-под маски (site.js режет на .pl > .pl__in
   по реальным строкам после загрузки шрифтов; до этого заголовок скрыт — без прелоадера иначе мигнул бы целиком).
   Телефон: кегль прежний, только маска; подвал заголовка «растворяется» (display: contents) — порядок кнопок задаёт ядро. */
.hero-bays[data-title="poster"] .hero-bays__content { container-type: inline-size; }
.js .hero-bays[data-title="poster"] h1:not(.pl-ready) { visibility: hidden; }
.js.is-revealing .hero-bays[data-title="poster"] .hero-stagger--rise > h1, .js .hero-bays[data-title="poster"] .hero-stagger--rise > h1 { animation: none; opacity: 1; }
.hero-bays[data-title="poster"] .pl { display: block; overflow: hidden; padding: 0 .06em .12em; margin: 0 -.06em -.12em; }
.hero-bays[data-title="poster"] .pl__in { display: block; transform: translateY(108%); }
.hero-bays[data-title="poster"].pl-go .pl__in { transform: none; transition: transform 1.2s cubic-bezier(.19, 1, .22, 1); transition-delay: calc(var(--l, 0) * 140ms + 60ms); }
.hero-bays[data-title="poster"].pl-done .pl { overflow: visible; } /* после проявления маска не режет тень текста */
@media (min-width: 768px) {
  .hero-bays[data-title="poster"] .hero-bays__content { max-width: none; }
  .hero-bays[data-title="poster"] h1 { font-size: min(10cqi, 13.5svh); line-height: .9; letter-spacing: -.012em; margin-bottom: .34em; }
@supports not (height: 1svh){.hero-bays[data-title="poster"] h1{font-size: min(10vw, 13.5vh); line-height: .9; letter-spacing: -.012em; margin-bottom: .34em}}
@supports not (width: 1cqi){.hero-bays[data-title="poster"] h1{font-size: min(10vw, 13.5vh); line-height: .9; letter-spacing: -.012em; margin-bottom: .34em}}
  .hero-bays__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2.5rem; }
  .hero-bays__foot .hero-bays__sub { margin: 0; max-width: 31em; }
  .hero-bays__foot .hero-bays__cta { flex: none; }
}
@media (max-width: 767px) { .hero-bays__foot { display: contents; } }
@media (prefers-reduced-motion: reduce) { .hero-bays[data-title="poster"] .pl__in { transform: none !important; transition: none !important; } }

/* ── Витрина-лента на ПК (showcase layout=ribbon → section[data-ribbon], site.js добавляет .is-ribbon, обёртку, счётчик) ──
   Секция встаёт на экран (sticky), карточки едут вбок за прокруткой — сдвиг и высоту секции считает site.js. Только
   ПК с мышью ≥ 1024 px; телефон и планшет — раскладка стиля карточек (у «машино-мест» — лента scroll-snap). */
.ribbon-count { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--text); white-space: nowrap; }
.ribbon-count span { color: var(--text-dim); }
.section-head.has-count { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; max-width: none; } /* счётчик справа от заголовка на любой ширине */
.ribbon-bar { display: none; }
@media (min-width: 1024px) and (hover: hover) {
  [data-ribbon].is-ribbon { padding-top: 0; padding-bottom: 0; }
  [data-ribbon].is-ribbon .ribbon-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  [data-ribbon].is-ribbon .section-head { margin-bottom: 0; }
  [data-ribbon].is-ribbon .vitrina { display: flex; flex-wrap: nowrap; gap: 1.5rem; width: max-content; margin-top: clamp(1.4rem, 3.5vh, 2.4rem); transform: translate3d(var(--rx, 0px), 0, 0); will-change: transform; }
  [data-ribbon].is-ribbon .vitrina > .car { flex: none; width: calc(min(62vh, 640px) * .8); }
  [data-ribbon].is-ribbon .vitrina > .car[hidden] { display: none; }
  [data-ribbon].is-ribbon .ribbon-bar { display: block; position: relative; height: 2px; margin-top: clamp(1.2rem, 3vh, 2rem); background: var(--line); }
  [data-ribbon].is-ribbon .ribbon-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--rp, 0) * 100%); background: var(--text); }
}

/* ── Отклик кнопок «магнит» (theme.buttonFx=magnet → html[data-button-fx]): сдвиг ≤ 3 px (--mx/--my) ставит site.js; возврат
   без пружины («пластилин» — разбор 18.10). Через переменные, а не инлайн-transform: нажатие (:active) остаётся своим. ── */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html[data-button-fx="magnet"] .btn { transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .2s, border-color .2s, color .2s, box-shadow .25s, opacity .2s; }
  html[data-button-fx="magnet"] .btn.is-mag:not(:active) { transform: translate(var(--mx, 0px), var(--my, 0px)); transition-duration: .12s, .2s, .2s, .2s, .25s, .2s; transition-timing-function: linear, ease, ease, ease, ease, ease; }
}

/* ── Надпись курсора ([data-cursor] у боксов обложки, фото витрины, сцены роликов): табличка с действием вместо курсора.
   Не кружок (штамп) — прямоугольник в радиусе и шрифте сайта; только мышь на ПК; догоняет курсор с лёгкой задержкой (site.js). */
@media (hover: hover) and (pointer: fine) {
  .has-cursor-tag [data-cursor], .has-cursor-tag [data-cursor] * { cursor: none !important; }
  .cursor-tag { position: fixed; left: 0; top: 0; z-index: 3000; pointer-events: none; padding: .62rem .9rem .58rem; border-radius: var(--radius, 6px);
    font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1; white-space: nowrap;
    color: #F2F3F5; background: rgba(10, 11, 13, .78); box-shadow: inset 0 0 0 1px rgba(242, 243, 245, .22); backdrop-filter: blur(6px);
    opacity: 0; transform: translate(-50%, -50%) scale(.7); transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); }
  .cursor-tag.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@media (hover: none), (pointer: coarse), (pointer: none) { .cursor-tag { display: none; } }

/* ── Логотип крупно в подвале (footer.wordmark=top → figure.footer__wm): по ширине сетки колонок, «чтобы глаза не резало» —
   тон приглушён (0,72: белый → мягкий светло-серый в тон второстепенного текста; 0,5 уже грязно). Поднимается из-под кромки
   вместе с прокруткой (--wm ставит site.js; назад — уходит обратно). ── */
.footer__wm { position: relative; overflow: hidden; grid-column: 1 / -1; margin: 0 0 clamp(2rem, 4vw, 3.2rem); padding-bottom: clamp(2rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line); }
.footer__wm-img { display: block; width: 100%; height: auto; opacity: .72; transform: translateY(calc(var(--wm, 0) * 34%)); will-change: transform; }
.footer__wm-img--dark { display: none; }
[data-theme="light"] .footer__wm-img { opacity: .78; }
[data-theme="dark"] .footer__wm.footer__wm--dark-logo .footer__wm-img:not(.footer__wm-img--dark) { display: none; }
[data-theme="dark"] .footer__wm-img--dark { display: block; }
@media (prefers-reduced-motion: reduce) { .footer__wm-img { transform: none; } }

/* ── Фон перетекает (theme.bgFlow=flow → html[data-bg-flow], тёмная тема): цвет фона страницы ведёт site.js (--flow) по
   оттенкам секций [data-flow-tint]; секции прозрачные, чтобы сцену красил общий фон. Светлая тема — как была. ── */
html[data-bg-flow][data-theme="dark"].flow-on body { background-color: var(--flow); }
html[data-bg-flow][data-theme="dark"].flow-on main > section:not(.hero-bays) { background-color: transparent; }

/* ── Переключатель темы «полудиск» (theme.toggle=eclipse, сессия 7 ZA 18.10) ─────────────────────────────────────────
   Форма, материал и поведение — как у кнопки меню рядом (одна семья элементов шапки, правило 39), поверх тёмной обложки —
   тоже как она (а не «прозрачный с белой рамкой»). Знак — кольцо и закрашенная половина: при смене темы поворачивается на 180°. */
.theme-toggle.theme-toggle--eclipse { width: 44px; height: 44px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); background: var(--surface); color: var(--text); transition: border-color .2s, color .2s; }
@supports not (color: color-mix(in srgb, red, red)){.theme-toggle.theme-toggle--eclipse{border: 1px solid rgba(var(--text-rgb), 0.14); background: var(--surface); color: var(--text); transition: border-color .2s, color .2s}}
:is(body.has-hero-bays, body.has-hero-ov-dark, body.has-hero-ov-light) .site-header:not(.scrolled) .theme-toggle.theme-toggle--eclipse { color: var(--text); border-color: color-mix(in srgb, var(--text) 14%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){:is(body.has-hero-bays, body.has-hero-ov-dark, body.has-hero-ov-light) .site-header:not(.scrolled) .theme-toggle.theme-toggle--eclipse{border-color: rgba(var(--text-rgb), 0.14)}}
html[data-buttons="flat"] .theme-toggle.theme-toggle--eclipse { border-radius: var(--radius-lg); }
.theme-toggle.theme-toggle--eclipse:hover { transform: none; color: var(--text); border-color: color-mix(in srgb, var(--text) 34%, transparent); }
@supports not (color: color-mix(in srgb, red, red)){.theme-toggle.theme-toggle--eclipse:hover{border-color: rgba(var(--text-rgb), 0.34)}}
.theme-toggle--eclipse .eclipse { width: 20px; height: 20px; display: block; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
[data-theme="light"] .theme-toggle--eclipse .eclipse { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .theme-toggle--eclipse .eclipse { transition: none; } }
