/* Казимир — лендинг. Mobile-first, контрольные точки 768 и 1200. */

/* ---------- Шрифты ---------- */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* latin-ext нужен ради знака ₽ (U+20BD) */
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(../fonts/golos-text-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(../fonts/golos-text-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(../fonts/golos-text-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Трафарет — только для цифр и кодов мест, как краска на бетоне паркинга */
@font-face { font-family: "Stencil"; font-weight: 700; font-display: swap; src: url(../fonts/big-shoulders-stencil-display-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013, U+2212; }
@font-face { font-family: "Stencil"; font-weight: 800; font-display: swap; src: url(../fonts/big-shoulders-stencil-display-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2013, U+2212; }

/* ---------- Токены ---------- */
:root {
  --graphite: #23272B;
  --graphite-2: #2E3338;   /* поверхность на графите */
  --graphite-line: #444B52;
  --concrete: #E8EAEA;
  --slab: #F6F7F7;
  --marking: #F2C230;
  --marking-press: #DDAE1D;
  --lamp: #2E9E62;
  --lamp-glow: #58D18E;
  --ink: #23272B;
  --ink-muted: #545B61;
  --on-dark: #F1F2F2;
  --on-dark-muted: #B4BABF;
  --rule: #CDD1D2;

  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: "Stencil", "Golos Text", system-ui, sans-serif;

  --gutter: 16px;
  --section: 64px;
  --r-btn: 6px;
  --r-card: 10px;
  --header-h: 60px;
}
@media (min-width: 768px) { :root { --gutter: 32px; --section: 88px; --header-h: 68px; } }
@media (min-width: 1200px) { :root { --section: 112px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1200px) { body { font-size: 17px; } }
img, svg, video { display: block; max-width: 100%; }
video { height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.stats :focus-visible, .concierge :focus-visible, .final :focus-visible, .dock :focus-visible { outline-color: var(--marking); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--marking); color: var(--ink); font-weight: 700; border-radius: var(--r-btn); }
.skip-link:focus { top: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }

.h2 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
@media (min-width: 768px) { .h2 { font-size: 34px; } }
@media (min-width: 1200px) { .h2 { font-size: 42px; } }
.lead { font-size: 17px; line-height: 1.55; max-width: 34em; }
@media (min-width: 1200px) { .lead { font-size: 19px; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: var(--r-btn);
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn__icon { width: 20px; height: 20px; flex: none; }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 15px; gap: 8px; }
.btn--sm .btn__icon { width: 18px; height: 18px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.btn--block { width: 100%; }
.btn--marking { background: var(--marking); color: var(--ink); }
.btn--marking:hover { background: var(--marking-press); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--slab); }
.btn--outline-light { border-color: var(--on-dark); color: var(--on-dark); }
.btn--outline-light:hover { background: var(--on-dark); color: var(--graphite); }

/* ---------- 1. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(232, 234, 234, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 36px; height: 36px; flex: none; }
.logo__word { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.header__nav { display: none; }
@media (max-width: 380px) { .header .btn--sm { padding: 8px 10px; font-size: 14px; } .logo__word { font-size: 18px; } }
@media (min-width: 960px) {
  .header__nav { display: flex; gap: 28px; margin-left: auto; margin-right: 8px; }
  .header__nav a { white-space: nowrap; text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
  .header__nav a:hover { border-bottom-color: var(--marking); }
}

/* ---------- 2. Hero ---------- */
.hero { padding: 28px 0 72px; }
.hero__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .hero { padding: 48px 0 96px; } }
@media (min-width: 1200px) {
  .hero { padding: 72px 0 112px; }
  .hero__grid { grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
}

.switch {
  display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 24px;
  background: var(--graphite); border-radius: 8px;
}
.switch__btn {
  min-height: 44px; padding: 8px 18px; border: 0; border-radius: 5px; background: transparent;
  color: var(--on-dark-muted); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
}
.switch__btn:hover { color: var(--on-dark); }
.switch__btn[aria-selected="true"] { background: var(--marking); color: var(--ink); font-weight: 700; }
.switch__btn:focus-visible { outline-color: var(--marking); }

.hero__place { margin-bottom: 16px; font-size: 15px; color: var(--ink-muted); }
.hero__place a { margin-left: 8px; white-space: nowrap; }

.hero__title {
  font-size: 36px; line-height: 1.06; font-weight: 700; letter-spacing: -0.025em;
  text-wrap: balance; max-width: 12em;
}
@media (min-width: 768px) { .hero__title { font-size: 52px; } }
@media (min-width: 1200px) { .hero__title { font-size: 62px; } }
.hero__lead { margin-top: 18px; font-size: 17px; max-width: 30em; color: var(--ink-muted); }
@media (min-width: 1200px) { .hero__lead { font-size: 19px; margin-top: 22px; } }
.hero__panel { min-height: 0; }
.hero__actions { margin-top: 28px; display: grid; gap: 14px; justify-items: start; }
@media (max-width: 767px) { .hero__actions > .btn { width: 100%; } }

.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 7px 16px 7px 12px;
  border: 1.5px solid var(--ink); border-radius: var(--r-btn);
  text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.1;
  --bg-on: var(--concrete);
}
.store small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-muted); }
.store__icon { width: 22px; height: 22px; flex: none; }
.store:hover { background: var(--slab); }

/* Схема паркинга */
.hero__visual { position: relative; margin-bottom: 104px; max-width: 620px; }
@media (min-width: 768px) { .hero__visual { margin-bottom: 48px; } }
@media (min-width: 1200px) { .hero__visual { margin: 0 24px 40px 0; } }
.plan { width: 100%; height: auto; background: var(--graphite); }
.plan__floor { fill: var(--graphite); }
.plan__lines path { stroke: #D9DCDD; stroke-width: 2; fill: none; }
.plan__wall { stroke: #5C646B; stroke-width: 6; }
.plan__num text { font: 800 15px var(--font-num); fill: #8B949B; text-anchor: middle; letter-spacing: .04em; }
.plan__num .plan__num--active { fill: var(--marking); }
.plan__pillar rect { fill: #59616A; }
.plan__pillar-label text { font: 700 10px var(--font-num); fill: #8B949B; }
.plan__lane { stroke: var(--marking); stroke-width: 2; stroke-dasharray: 14 10; opacity: .55; }
.plan__arrow path { stroke: #9AA2A8; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plan__level { font: 800 26px var(--font-num); fill: #6B747B; }
.car__body { fill: #4A5259; }
.car__glass { fill: #2F353A; }
.plan__spot { fill: rgba(242, 194, 48, .08); stroke: var(--marking); stroke-width: 3; stroke-dasharray: 8 6; }
.plan__lamp-core { fill: var(--lamp-glow); }
.plan__lamp-glow { fill: var(--lamp-glow); opacity: .28; }
.plan__tag rect { fill: var(--marking); }
.plan__tag-text { font: 700 12px var(--font); fill: var(--ink); text-anchor: middle; }
.plan__rented { opacity: 0; transform: translateY(70px); transition: opacity .35s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.plan__tag-text--own { display: none; }
.plan__spot, .plan__lamp circle { transition: fill .3s, stroke .3s, opacity .3s; }

/* Состояние «Сдаю»: в месте 212 стоит арендатор, лампа гаснет в янтарный «занято» */
.hero[data-role="own"] .plan__rented { opacity: 1; transform: none; }
.hero[data-role="own"] .plan__rented .car__body { fill: #6A7279; }
.hero[data-role="own"] .plan__spot { stroke-dasharray: none; fill: rgba(242, 194, 48, .14); }
.hero[data-role="own"] .plan__lamp-core, .hero[data-role="own"] .plan__lamp-glow { fill: #F08A4B; }
.hero[data-role="own"] .plan__tag-text--seek { display: none; }
.hero[data-role="own"] .plan__tag-text--own { display: inline; }

/* Единственная непрошеная анимация: лампа места загорается при загрузке */
@media (prefers-reduced-motion: no-preference) {
  .plan__lamp { animation: lamp-on 1.1s steps(1, end) 1.1s both; }
  .plan__tag { animation: tag-in .4s ease 2s both; }
}
@keyframes lamp-on { 0% { opacity: 0; } 30% { opacity: 1; } 45% { opacity: .2; } 60%, 100% { opacity: 1; } }
@keyframes tag-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .plan__rented { transition: none; } }

/* Телефон */
.phone {
  position: absolute; right: 10px; top: 52%; width: 46%; max-width: 236px;
  padding: 7px; border-radius: 22px; background: #15181B;
  box-shadow: 0 18px 40px -12px rgba(20, 24, 27, .55);
  font-size: clamp(9px, 2.5vw, 12px);
}
@media (min-width: 1200px) { .phone { right: -24px; } }
.phone__screen { border-radius: 16px; background: var(--slab); overflow: hidden; min-height: 21em; }
.phone__bar { display: flex; align-items: center; gap: .6em; padding: .9em 1em .7em; font-weight: 700; border-bottom: 1px solid var(--rule); }
.phone__ava { width: 2.2em; height: 2.2em; border-radius: 50%; }
.chat { display: grid; gap: .55em; padding: .8em; }
.msg { justify-self: start; max-width: 90%; padding: .55em .75em; border-radius: .9em .9em .9em .25em; background: #fff; line-height: 1.3; border: 1px solid #E1E4E5; }
.msg--me { justify-self: end; background: var(--graphite); color: var(--on-dark); border-color: var(--graphite); border-radius: .9em .9em .25em .9em; }
.msg--ok { background: #E3F3EA; border-color: #BFE3CF; }
.offer { display: flex; justify-content: space-between; gap: .5em; padding: .55em .75em; border-radius: .5em; background: #fff; border: 1px solid #E1E4E5; line-height: 1.25; }
.offer b { white-space: nowrap; }
.offer--pick { border: 2px solid var(--marking); background: #FFF8DF; }
.chat--own { display: none; }
.hero[data-role="own"] .chat--seek { display: none; }
.hero[data-role="own"] .chat--own { display: grid; }

/* ---------- 3. Цифры ---------- */
.stats { background: var(--graphite); color: var(--on-dark); }
.stats__list { display: grid; grid-template-columns: 1fr 1fr; }
.stats__list li { display: flex; flex-direction: column; gap: 4px; padding: 28px 0 28px 16px; border-left: 3px solid var(--marking); margin: 0; }
.stats__list li:nth-child(n+3) { padding-top: 0; }
.stats__num { font: 800 48px/1 var(--font-num); letter-spacing: .01em; color: var(--on-dark); }
.stats__label { color: var(--on-dark-muted); font-size: 14px; line-height: 1.35; max-width: 10em; }
@media (min-width: 768px) {
  .stats__list { grid-template-columns: repeat(4, 1fr); }
  .stats__list li, .stats__list li:nth-child(n+3) { padding: 40px 16px 40px 20px; }
  .stats__num { font-size: 60px; }
  .stats__label { font-size: 15px; }
}
@media (min-width: 1200px) { .stats__num { font-size: 76px; } }

/* ---------- 4. Как это работает ---------- */
.how__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.tabs { display: inline-flex; border: 2px solid var(--ink); border-radius: 8px; padding: 3px; }
.tabs__btn { min-height: 42px; padding: 8px 16px; border: 0; border-radius: 5px; background: transparent; font-weight: 500; font-size: 15px; cursor: pointer; }
.tabs__btn[aria-selected="true"] { background: var(--ink); color: var(--slab); font-weight: 700; }
.tabs__btn:not([aria-selected="true"]):hover { background: var(--slab); }

/* Шаги — как места на разметке: жёлтые линии по бокам, трафаретный номер */
.bays { display: grid; counter-reset: none; }
.bay { position: relative; padding: 22px 0 22px 22px; border-left: 4px solid var(--marking); }
.bay + .bay { border-top: 1px solid var(--rule); }
.bay__code { display: block; font: 800 40px/1 var(--font-num); letter-spacing: .02em; margin-bottom: 10px; }
.bay p { font-size: 18px; line-height: 1.4; max-width: 22em; }
@media (min-width: 768px) {
  .bays { grid-template-columns: repeat(3, 1fr); border-right: 4px solid var(--marking); }
  .bay { padding: 28px 24px 36px; min-height: 220px; }
  .bay + .bay { border-top: 0; }
  .bay__code { font-size: 56px; margin-bottom: 18px; }
}
.how__note { margin-top: 28px; max-width: 36em; padding: 14px 16px; background: var(--slab); border-radius: var(--r-card); font-size: 16px; }
.js .how__panel[hidden] { display: none; }

/* Видео-демо бота: телефон уже нарисован в самом ролике, поэтому без своей рамки */
.how__video { margin: 36px auto 0; width: min(78%, 300px); }
.how__video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #8CC4EE; border-radius: var(--r-card); }
.how__video figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-muted); text-align: center; }
@media (min-width: 1200px) {
  .how__panel { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
  .how__video { width: auto; margin: 0; }
  /* Рядом с видео шаги снова идут столбиком */
  .how__steps .bays { grid-template-columns: none; border-right: 0; }
  .how__steps .bay { min-height: 0; padding: 22px 0 26px 28px; }
  .how__steps .bay + .bay { border-top: 1px solid var(--rule); }
}

/* ---------- 5. Консьерж ---------- */
.concierge { background: var(--graphite); color: var(--on-dark); }
.concierge__grid { display: grid; gap: 40px; }
@media (min-width: 1200px) { .concierge__grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.concierge .lead { margin-top: 18px; color: var(--on-dark-muted); }
.concierge__income { margin: 28px 0; font-size: 18px; }
.concierge__income strong { display: block; font: 800 64px/1 var(--font-num); color: var(--marking); margin: 6px 0 2px; }
@media (min-width: 768px) { .concierge__income strong { font-size: 80px; } }
.modes { display: grid; gap: 14px; }
@media (min-width: 768px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { padding: 24px; background: var(--graphite-2); border: 1px solid var(--graphite-line); border-radius: var(--r-card); display: flex; flex-direction: column; gap: 10px; }
.mode__title { font-size: 22px; font-weight: 700; }
.mode p { color: var(--on-dark-muted); }
/* Мини-график цены по часам: ровная у «Ручного», меняется по спросу у «Умного» */
.mode__meter { display: flex; align-items: end; gap: 5px; height: 56px; margin-top: auto; padding-top: 12px; }
.mode__meter i { flex: 1; background: var(--marking); border-radius: 2px 2px 0 0; height: 50%; }
.mode__meter i:nth-child(1) { height: 30%; } .mode__meter i:nth-child(2) { height: 45%; } .mode__meter i:nth-child(3) { height: 80%; }
.mode__meter i:nth-child(4) { height: 100%; } .mode__meter i:nth-child(5) { height: 70%; } .mode__meter i:nth-child(6) { height: 40%; } .mode__meter i:nth-child(7) { height: 55%; }
.mode__meter--flat i, .mode__meter--flat i:nth-child(n) { height: 55%; background: var(--on-dark-muted); }

/* ---------- 6. Цены ---------- */
.tariffs { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 768px) { .tariffs { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.tariff { position: relative; padding: 24px 22px 26px; background: var(--slab); border-radius: var(--r-card); border-top: 6px solid var(--graphite); }
.tariff__term { font-size: 18px; font-weight: 700; }
.tariff__price { margin-top: 14px; font-weight: 700; font-size: 22px; line-height: 1; }
.tariff__price small { display: block; font-size: 14px; font-weight: 400; color: var(--ink-muted); margin-bottom: 4px; }
.tariff__num { font: 800 72px/.9 var(--font-num); letter-spacing: .01em; }
.tariff__hint { margin-top: 16px; font-size: 15px; color: var(--ink-muted); }
.prices__note { margin-top: 24px; max-width: 44em; color: var(--ink-muted); }

/* ---------- 7. Знаки доверия ---------- */
.trust { background: var(--slab); }
.signs { display: grid; gap: 28px; margin-top: 36px; }
@media (min-width: 768px) { .signs { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
@media (min-width: 1200px) { .signs { grid-template-columns: repeat(3, 1fr); gap: 44px 48px; } }
.sign { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; row-gap: 6px; align-items: start; }
.sign__icon { grid-row: span 2; width: 52px; height: 52px; padding: 8px; background: var(--graphite); color: var(--on-dark); border-radius: 6px; }
.sign h3 { font-size: 18px; font-weight: 700; line-height: 1.3; padding-top: 2px; }
.sign p { color: var(--ink-muted); font-size: 16px; }

/* ---------- 8. Отзывы ---------- */
.reviews__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.reviews__nav { display: none; gap: 8px; }
@media (min-width: 768px) { .js .reviews__nav { display: flex; } }
.round-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover:not(:disabled) { background: var(--ink); color: var(--slab); }
.round-btn:disabled { opacity: .35; cursor: default; }
.reel {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 4px var(--gutter) 16px; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--rule) transparent;
}
@media (min-width: 1240px) { .reel { padding-left: calc((100vw - 1240px) / 2 + var(--gutter)); scroll-padding-left: calc((100vw - 1240px) / 2 + var(--gutter)); } }
.reel:focus-visible { outline-offset: -3px; }
.review {
  flex: 0 0 min(86%, 360px); scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px; padding: 22px; background: var(--slab); border-radius: var(--r-card);
}
.review__who { display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; align-items: center; }
.review__who img { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 20%; background: var(--rule); }
.review__who b { font-size: 17px; }
.review__who b:last-child { grid-row: span 2; }
.review__zk { font-size: 14px; color: var(--ink-muted); }
.review p { font-size: 15px; line-height: 1.55; }

/* ---------- 9–10. Плашки ---------- */
.plaques { padding-top: 0; }
.plaques__grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .plaques__grid { grid-template-columns: 1fr 1fr; gap: 16px; } }
.plaque { display: flex; flex-direction: column; align-items: start; gap: 12px; padding: 28px 24px; background: var(--slab); border-radius: var(--r-card); }
.plaque p { max-width: 30em; color: var(--ink-muted); margin-bottom: 8px; }
.plaque .btn { margin-top: auto; }
.plaque--dashed { background: transparent; border: 2px dashed var(--ink-muted); }
.plaque__title { font-size: 22px; line-height: 1.25; font-weight: 700; }

/* ---------- 11. FAQ ---------- */
.faq { padding-top: 24px; }
.faq__grid { display: grid; gap: 28px; }
@media (min-width: 1200px) { .faq__grid { grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; } .faq .h2 { position: sticky; top: calc(var(--header-h) + 32px); } }
.accordion { border-top: 2px solid var(--ink); }
.acc { border-bottom: 1px solid var(--rule); }
.acc__h { font-size: inherit; font-weight: inherit; }
.acc__btn {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border: 0; background: none; text-align: left; cursor: pointer;
  font-size: 17px; font-weight: 500; line-height: 1.35;
}
@media (min-width: 768px) { .acc__btn { font-size: 19px; padding: 22px 0; } }
.acc__btn::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--slab) no-repeat center / 14px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 1v12M1 7h12' stroke='%2323272B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .2s;
}
.acc__btn[aria-expanded="true"]::after { transform: rotate(45deg); background-color: var(--marking); }
.acc__btn:hover { color: #000; }
.acc__body { display: grid; grid-template-rows: 1fr; color: var(--ink-muted); max-width: 46em; }
.acc__inner { overflow: hidden; min-height: 0; }
.acc__inner p { padding: 0 44px 22px 0; }
.acc__body a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* Ответ раскрывается плавно: высота строки сетки 0fr → 1fr; visibility прячет ссылки от Tab в закрытом ответе */
.js .acc__body { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.js .acc__body.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .js .acc__body, .js .acc__body.is-open { transition: none; } }

/* ---------- 12. Финал ---------- */
.final { background: var(--graphite); color: var(--on-dark); padding: var(--section) 0; text-align: center; position: relative; }
.final::before, .final::after { content: ""; position: absolute; top: 0; bottom: 0; width: 4px; background: var(--marking); }
.final::before { left: var(--gutter); } .final::after { right: var(--gutter); }
.final__inner { display: grid; justify-items: center; gap: 32px; }
.final__title { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; max-width: 16em; text-wrap: balance; padding: 0 12px; }
@media (min-width: 768px) { .final__title { font-size: 44px; } }
@media (min-width: 1200px) { .final__title { font-size: 54px; } }
.final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; padding: 0 12px; }
@media (max-width: 767px) { .final__actions .btn { flex: 1 1 100%; } }

/* ---------- 13. Подвал ---------- */
.footer { padding: 48px 0 40px; font-size: 15px; color: var(--ink-muted); }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .footer__grid { grid-template-columns: 1fr 1.3fr 1.1fr; } }
.footer .logo { color: var(--ink); margin-bottom: 16px; }
.footer__contacts { line-height: 1.9; }
.footer__contacts a { color: var(--ink); text-decoration: none; font-weight: 500; }
.footer__contacts a:hover, .footer__docs a:hover { text-decoration: underline; }
.footer__h { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.footer__req p { line-height: 1.7; }
.footer__docs li { margin-bottom: 6px; }
.footer__docs a { text-decoration: none; }
.pay { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--rule); }
.pay li { padding: 5px 8px; border: 1px solid var(--rule); border-radius: 6px; color: var(--ink); background: var(--slab); }
.pay svg { width: 54px; height: 20px; }
@media (min-width: 768px) { .pay svg { width: 64px; height: 24px; } }

/* ---------- Нижняя закреплённая кнопка (мобильный) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--graphite);
  transform: translateY(110%); transition: transform .25s ease;
}
.dock.is-shown { transform: none; }
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }
@media (min-width: 768px) { .dock { display: none; } }
@media (max-width: 767px) { body.has-dock { padding-bottom: 76px; } }

/* ---------- Анимация «Живой паркинг» ----------
   Всё движение — только при prefers-reduced-motion: no-preference.
   Скрытые начальные состояния — только при html.js: без JS контент виден сразу.
   --i (порядковый номер в группе) проставляет main.js. */
.btn:active { transform: translateY(1px); }
.plan__drive { display: none; } /* без движения машине в проезде делать нечего */

@media (prefers-reduced-motion: no-preference) {
  /* Hero: разметка прорисовывается, машины паркуются, номера проявляются */
  .plan__lines path { transform-box: fill-box; animation: draw-y .7s cubic-bezier(.3,.7,.3,1) .1s both; }
  .plan__lines path:first-child { transform-origin: 50% 0; }
  .plan__lines path:last-child { transform-origin: 50% 100%; }
  .plan__lane { transform-box: fill-box; transform-origin: 0 50%; animation: draw-x .9s cubic-bezier(.3,.7,.3,1) .3s both; }
  .plan__num text { animation: fade .4s ease both; animation-delay: calc(.5s + var(--i, 0) * 50ms); }
  .plan__cars use { animation: park-down .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.6s + var(--i, 0) * 90ms); }
  .plan__cars use:nth-child(n+4) { animation-name: park-up; }

  /* Машина медленно проезжает по нижней полосе проезда, справа налево */
  .plan__drive { display: inline; animation: drive 11s linear 3s infinite both; }
  .hero.is-off .plan__drive { animation-play-state: paused; }

  /* Телефон выезжает, сообщения бота приходят по одному.
     --base: при загрузке ждём сцену паркинга, после переключения роли — почти сразу */
  .phone { --base: 1.5s; animation: rise .6s cubic-bezier(.2,.7,.2,1) 1.1s both; }
  .chat > * { animation: msg-in .35s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--base) + var(--i, 0) * .35s); }
  .chat .offer--pick { animation: msg-in .35s cubic-bezier(.2,.7,.2,1) both, pick 1s ease-out 2; animation-delay: calc(var(--base) + var(--i, 0) * .35s), calc(var(--base) + 1.9s); }

  /* Смена панели (hero и вкладки шагов) — короткое проявление */
  .hero__panel, .how__panel { animation: fade-up .3s ease both; }

  /* Появление при прокрутке */
  .js [data-anim] .bay::before { content: ""; position: absolute; left: -4px; top: 0; bottom: 0; width: 4px; background: var(--marking); transform-origin: 50% 0; transform: scaleY(0); transition: transform .6s cubic-bezier(.3,.7,.3,1); transition-delay: calc(var(--i, 0) * .18s); }
  .js [data-anim] .bay { border-left-color: transparent; }
  .js [data-anim] .bay > * { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(.15s + var(--i, 0) * .18s); }
  .js [data-anim].is-in .bay::before { transform: none; }
  .js [data-anim].is-in .bay > * { opacity: 1; transform: none; }

  .js .stats__list[data-anim] .stats__label { opacity: 0; transition: opacity .5s ease .5s; }
  .js .stats__list.is-in .stats__label { opacity: 1; }

  .js .tariffs[data-anim] > li, .js .signs[data-anim] > li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * .1s); }
  .js .signs[data-anim] .sign__icon { transform: scale(.85); transition: transform .5s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(.15s + var(--i, 0) * .1s); }
  .js .tariffs.is-in > li, .js .signs.is-in > li, .js .signs.is-in .sign__icon { opacity: 1; transform: none; }

  /* «Умный» тариф: цена живёт вместе со спросом; «Ручной» стоит ровно */
  .mode__meter:not(.mode__meter--flat) i { transform-origin: 50% 100%; animation: demand 2.8s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -.5s); }
  [data-loop].is-off .mode__meter i { animation-play-state: paused; }

  /* Финальный блок: боковые линии разметки прорисовываются сверху вниз */
  .js .final[data-anim]::before, .js .final[data-anim]::after { transform-origin: 50% 0; transform: scaleY(0); transition: transform 1s cubic-bezier(.3,.7,.3,1); }
  .js .final.is-in::before, .js .final.is-in::after { transform: none; }

  /* Блик на главной кнопке */
  @media (hover: hover) {
    .btn--marking { position: relative; overflow: hidden; }
    .btn--marking::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); pointer-events: none; }
    .btn--marking:hover::after { animation: shine .7s ease; }
  }
}

@keyframes fade { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes park-down { from { opacity: 0; transform: translateY(26px); } }
@keyframes park-up { from { opacity: 0; transform: translateY(-26px); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes pick { 0% { box-shadow: 0 0 0 0 rgba(242, 194, 48, .7); } 100% { box-shadow: 0 0 0 .7em rgba(242, 194, 48, 0); } }
@keyframes drive { 0% { transform: translateX(440px); } 55%, 100% { transform: translateX(-60px); } }
@keyframes demand { from { transform: scaleY(.55); } to { transform: scaleY(1.08); } }
@keyframes shine { to { left: 130%; } }
