/* ------------------------------------------------------------------
   Автоинструктор Олег Васильевич — лендинг, тёмная тема.
   На устройствах Apple текст набран системным SF Pro,
   на остальных — Inter (лежит в assets/fonts).
------------------------------------------------------------------- */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+20A0-20AB, U+20AD-20C0;
}

:root {
  --bg: #000;
  --s1: #111113;          /* поверхность карточек */
  --s2: #1C1C1E;
  --line: rgba(255, 255, 255, .12);
  --text: #F5F5F7;
  --muted: #A1A1A6;
  --dim: #3A3A3C;         /* ещё не проявившиеся слова */
  --yellow: #FFD60A;
  --yellow-press: #E8C200;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --pad: clamp(16px, 2.6vw, 44px);
  --r-card: 28px;
  --gap-block: clamp(96px, 12vw, 180px);
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

h1, h2, h3 { font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 650; }
p { text-wrap: pretty; }
.muted { color: var(--muted); }
strong { font-weight: 650; }

::selection { background: var(--yellow); color: #000; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--pad); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 60;
  background: var(--yellow); color: #000; padding: 12px 16px; border-radius: 12px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  background: var(--yellow); color: #000;
  font: inherit; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; text-align: center; white-space: nowrap;
  border: 0; border-radius: 999px; cursor: pointer;
  transition: background-color .25s var(--ease-out), transform .35s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.btn:hover { background: var(--yellow-press); }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 60px; padding: 0 34px; font-size: 1.1875rem; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .32); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn[data-call]::before { /* трубка телефона */
  content: ""; width: 18px; height: 18px; flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn--sm[data-call]::before { width: 15px; height: 15px; }
.btn[data-call].is-profi::before { display: none; }

/* ---------- Навигация: стекло, как у Apple ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--nav-h);
  background: rgba(0, 0, 0, .64);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), background-color .4s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(0, 0, 0, .78); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 30px; height: 28px; }
.brand__name { font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; }
.nav__links { position: relative; display: flex; gap: 4px; font-size: .9375rem; }
.nav__links a {
  position: relative; z-index: 1; padding: 7px 14px; border-radius: 999px;
  color: var(--muted); text-decoration: none; transition: color .3s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__phone { font-weight: 600; font-size: .9375rem; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .25s; }
.nav__phone:hover { color: var(--yellow); }
.nav__pill { /* подсветка активного раздела, плавно переезжает */
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: 0;
  border-radius: 999px; background: rgba(255, 255, 255, .1); opacity: 0;
  transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), opacity .3s var(--ease-out);
}

/* ---------- Первый экран ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + clamp(32px, 6vh, 80px)) 0 clamp(24px, 4vh, 48px);
  display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vh, 56px);
  overflow: hidden;
}
.hero::before { /* студийный свет над машиной */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 70% 46%, rgba(255, 255, 255, .085), transparent 70%),
    radial-gradient(90% 70% at 70% 60%, #151517, #000 75%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px clamp(24px, 3vw, 56px); align-items: center; }

.hero__kicker { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9375rem; font-weight: 500; letter-spacing: 0; }
.hero__dash { width: 26px; height: 5px; border-radius: 3px; background: var(--yellow); flex: none; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(3.25rem, min(7.2vw, 12vh), 8rem); line-height: .93; letter-spacing: -0.05em; font-weight: 700;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line--u { padding-bottom: .34em; margin-bottom: -.3em; } /* место под подчёркивание, слово при этом скрыто до появления */
.hero__title .line > span { display: inline-block; position: relative; }
.swoosh {
  position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .24em; overflow: visible;
  fill: none; stroke: var(--yellow); stroke-width: 5; stroke-linecap: round;
}
.swoosh path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__lead { margin-top: clamp(26px, 3.4vh, 40px); max-width: 26em; font-size: clamp(1.0625rem, 1.35vw, 1.3125rem); line-height: 1.45; color: var(--muted); }

/* появление текста */
.js [data-hero-in] { opacity: 0; transform: translateY(24px); }
.js .hero__title [data-hero-in] { opacity: 1; transform: translateY(105%); }
.js .hero__title .line--u [data-hero-in] { transform: translateY(140%); }
.js .swoosh path { stroke-dashoffset: 1; }
.js.is-loaded [data-hero-in], .js.is-loaded .hero__title [data-hero-in] {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 80ms + 80ms);
}
.js.is-loaded .swoosh path { stroke-dashoffset: 0; transition: stroke-dashoffset .9s cubic-bezier(.6, 0, .2, 1) 1s; }

/* витрина с машиной */
.hero__show { position: relative; }
.showcase { position: relative; aspect-ratio: 1136 / 640; }
.showcase__floor { /* тень на полу */
  position: absolute; left: 4%; right: 2%; bottom: 3%; height: 22%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .95), rgba(0, 0, 0, .6) 55%, transparent);
  filter: blur(6px);
}
.showcase__floor::after { /* отблеск света на полу */
  content: ""; position: absolute; inset: -60% -10% -30%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .07), transparent);
  z-index: -1;
}
.mover { position: absolute; inset: 0; will-change: transform; }
.carbody { position: absolute; left: 0; right: 0; bottom: 6%; transform-origin: 50% 100%; will-change: transform; }
.carbody__img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.wheel { position: absolute; aspect-ratio: 1; transform: rotate(var(--ang)) scale(var(--sx), var(--sy)); pointer-events: none; }
.wheel__spin { position: absolute; inset: 0; will-change: transform; }
.wheel__spin img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wheel__blur { opacity: 0; }
.showcase__lamp { /* фара моргает, когда машина встала */
  position: absolute; left: 34.5%; top: 38%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 252, 235, .85), rgba(255, 214, 10, .18) 45%, transparent);
  mix-blend-mode: screen; opacity: 0; pointer-events: none;
}
@keyframes lamp { 0%, 100% { opacity: 0; } 12%, 30% { opacity: 1; } 21% { opacity: .15; } 60% { opacity: .55; } }
.showcase.is-parked .showcase__lamp { animation: lamp 1.3s ease-out .15s both; }
.js .mover { transform: translate3d(110vw, -6vw, 0) scale(.86); }

/* нижняя полоса с фактами, как строка поиска в референсе */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: stretch;
  background: var(--s2); border-radius: 22px; padding: 8px; gap: 0;
  border: 1px solid rgba(255, 255, 255, .06);
}
.facts__cell { display: grid; gap: 2px; align-content: center; padding: 10px 22px; text-decoration: none; border-radius: 14px; transition: background-color .3s var(--ease-out); }
.facts__cell + .facts__cell { box-shadow: inset 1px 0 0 var(--line); }
.facts__cell:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }
.facts__cell:hover + .facts__cell { box-shadow: none; }
.facts__k { font-size: .8125rem; color: var(--muted); }
.facts__v { font-weight: 600; letter-spacing: -0.015em; }
.facts__call { border-radius: 16px; margin-left: 8px; }

/* ---------- Строка, проявляющаяся при прокрутке ---------- */
.statement { padding-top: clamp(40px, 8vw, 120px); }
.statement__text {
  font-size: clamp(2rem, 4.6vw, 4.25rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650;
  max-width: 19em;
}
.statement__text .w { color: var(--dim); transition: color .25s linear; }
.statement__text .w.is-lit { color: var(--text); }
.statement__text .w.is-num.is-lit { color: var(--yellow); }

/* ---------- Блоки ---------- */
.block { padding-top: var(--gap-block); }
.block > h2 { margin-bottom: clamp(32px, 4vw, 64px); }
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 64px); }
.split-head p { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); max-width: 30em; justify-self: end; }

/* появление при прокрутке */
.js [data-reveal] { opacity: 0; transform: translateY(32px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
}

/* С чем приходят */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile {
  background: var(--s1); border-radius: var(--r-card); padding: clamp(28px, 2.6vw, 44px);
  display: grid; align-content: space-between; gap: 40px; min-height: 260px;
  border: 1px solid rgba(255, 255, 255, .06);
}
.tile p { color: var(--muted); max-width: 34em; }
.tile--wide { grid-column: span 2; background: var(--s2); }
.tile--wide h3 { font-size: clamp(2rem, 3.6vw, 3.5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; color: var(--yellow); }
.tile--wide p { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); color: var(--text); }

/* Шаги: рельс заполняется при прокрутке */
.steps-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: start; }
.steps-block__head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 20px; }
.steps-block__head p { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); max-width: 26em; }
.steps { position: relative; display: grid; gap: clamp(40px, 5vw, 72px); padding-left: 76px; }
.steps__rail { position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: var(--yellow); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; display: grid; gap: 10px; }
.step__n {
  position: absolute; left: -76px; top: -4px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 1.1875rem;
  background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 2px var(--dim);
  transition: background-color .4s var(--ease-out), color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step.is-passed .step__n { background: var(--yellow); color: #000; box-shadow: inset 0 0 0 2px var(--yellow); }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; }
.step p { color: var(--muted); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 30em; }

/* Машины и цены */
.cars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.car-card {
  background: var(--s1); border: 1px solid rgba(255, 255, 255, .06); border-radius: var(--r-card);
  padding: clamp(28px, 2.6vw, 44px); display: flex; flex-direction: column;
  transition: background-color .4s var(--ease-out), transform .6s var(--ease-spring);
}
.car-card:hover { background: var(--s2); }
.gear { width: 72px; height: 72px; margin-bottom: 36px; color: var(--muted); overflow: visible; }
.gear__knob { fill: var(--yellow); }
.car-card h3 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); letter-spacing: -0.03em; font-weight: 700; }
.car-card__box { margin-top: 4px; color: var(--yellow); font-weight: 600; }
.car-card__price { margin-top: 32px; font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.car-card__per { margin-top: 8px; color: var(--muted); }
.car-card__note { margin-top: auto; padding-top: 28px; color: var(--muted); font-size: .9375rem; }
.extra { margin-top: 28px; display: grid; gap: 4px; }

/* рычаг переключает передачи, когда карточки появились и при наведении */
@keyframes shift-h { 0%, 100% { transform: none; } 22% { transform: translate(0, 36px); } 34% { transform: translate(0, 18px); } 46% { transform: translate(18px, 18px); } 58%, 78% { transform: translate(18px, 0); } 88% { transform: translate(18px, 18px); } 95% { transform: translate(0, 18px); } }
@keyframes shift-h2 { 0%, 100% { transform: none; } 22% { transform: translate(0, 36px); } 34% { transform: translate(0, 18px); } 46% { transform: translate(18px, 18px); } 58%, 78% { transform: translate(18px, 0); } 88% { transform: translate(18px, 18px); } 95% { transform: translate(0, 18px); } }
@keyframes shift-a { 0%, 18% { transform: translateY(-38px); } 34%, 44% { transform: translateY(-25px); } 60%, 70% { transform: translateY(-12px); } 86%, 100% { transform: none; } }
@keyframes shift-a2 { 0%, 18% { transform: translateY(-38px); } 34%, 44% { transform: translateY(-25px); } 60%, 70% { transform: translateY(-12px); } 86%, 100% { transform: none; } }
.cars.is-seen .gear__knob--h { animation: shift-h 2.6s var(--ease-io) .5s 1 both; }
.cars.is-seen .car-card:nth-child(3) .gear__knob--h { animation-delay: .8s; }
.cars.is-seen .gear__knob--a { animation: shift-a 2.2s var(--ease-io) .7s 1 both; }
.car-card:hover .gear__knob--h { animation: shift-h2 2.6s var(--ease-io) 1 both; }
.car-card:hover .gear__knob--a { animation: shift-a2 2.2s var(--ease-io) 1 both; }

/* Отзывы */
.reviews { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.score__num { font-size: clamp(6rem, 15vw, 13rem); font-weight: 700; line-height: .82; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.score__stars { margin-top: 40px; color: var(--muted); }
.score__stars .stars { font-size: 1.375rem; margin-right: 8px; }
.bars { margin-top: 28px; width: 100%; max-width: 440px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bars th { width: 1.4em; text-align: left; font-weight: 600; padding: 6px 0; }
.bars td:last-child { width: 3em; text-align: right; color: var(--muted); }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--s2); overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--v) / 207 * 100%); background: var(--yellow); border-radius: 3px; transform-origin: left; transition: transform 1.2s var(--ease-out); }
.bars.is-wait .bar i { transform: scaleX(0); }
.score__src { margin-top: 20px; font-size: .9375rem; max-width: 30em; }
.voices h3 { margin-bottom: 20px; }
.themes { display: grid; gap: 16px; max-width: 38em; }
.themes li { padding-left: 28px; position: relative; color: var(--muted); }
.themes li strong { color: var(--text); }
.themes li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.quote { margin: 44px 0 36px; }
.quote blockquote { font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 650; line-height: 1.1; letter-spacing: -0.03em; max-width: 18em; }
.quote figcaption { margin-top: 14px; color: var(--muted); font-size: .9375rem; }

/* Галерея-карусель: активное фото по центру, соседние меньше и приглушены */
.gal { margin-top: clamp(64px, 8vw, 120px); }
.gal__head { text-align: center; display: grid; gap: 8px; justify-items: center; margin-bottom: 12px; }
.gal__head h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -0.035em; font-weight: 700; }
.cr { --h: clamp(280px, 30vw, 460px); margin-inline: calc(50% - 50vw); position: relative; }
.cr__track {
  position: relative; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding-block: 36px 28px; scrollbar-width: none; cursor: grab;
  -webkit-mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
          mask: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.cr__track::-webkit-scrollbar { display: none; }
.cr__track:focus-visible { outline: none; }
.cr__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.cr__slide { flex: none; height: var(--h); scroll-snap-align: center; }
.gal__item {
  display: block; height: 100%; border-radius: 26px; overflow: hidden; background: var(--s1);
  box-shadow: 0 0 0 1px rgba(255, 214, 10, .2);
  transform-origin: 50% 50%; will-change: transform, opacity;
  transition: box-shadow .5s var(--ease-out);
  -webkit-user-drag: none; user-select: none;
}
.gal__item img { display: block; height: 100%; width: auto; max-width: none; pointer-events: none; }
.cr__slide.is-active .gal__item { box-shadow: 0 0 0 2px var(--yellow), 0 20px 70px rgba(255, 214, 10, .22); cursor: zoom-in; }
.cr__track:focus-visible .cr__slide.is-active .gal__item { box-shadow: 0 0 0 3px var(--yellow), 0 0 0 7px rgba(255, 214, 10, .25); }
.gal__item:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.cr__cap { text-align: center; font-weight: 600; letter-spacing: -0.015em; min-height: 1.5em; transition: opacity .25s ease; }
.cr__cap.is-swap { opacity: 0; }
.cr__ctrl { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.cr__btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: var(--text);
  background: var(--s2); transition: background-color .25s, color .25s, transform .4s var(--ease-spring), opacity .25s;
}
@media (hover: hover) { .cr__btn:hover { background: var(--yellow); color: #000; } }
.cr__btn:active { transform: scale(.92); }
.cr__btn:disabled { opacity: .35; pointer-events: none; }
.cr__btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -3px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }
.cr__next::before { margin-left: -7px; transform: rotate(-135deg); }
.cr__dots { display: flex; gap: 8px; }
.cr__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--dim); cursor: pointer; transition: width .45s var(--ease-spring), background-color .3s; }
.cr__dot.is-on { width: 26px; background: var(--yellow); }
.cr__dot:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Просмотр фото */
.lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--text); overflow: hidden;
}
.lb::backdrop { background: rgba(0, 0, 0, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s var(--ease-out); }
.lb.is-open::backdrop { opacity: 1; }
.lb__fig { position: absolute; inset: 64px clamp(16px, 7vw, 120px) 72px; display: flex; align-items: center; justify-content: center; margin: 0; }
.lb__img {
  max-width: 100%; max-height: 100%; width: auto; height: auto; min-width: 0; min-height: 0; object-fit: contain; border-radius: 18px; display: block;
  box-shadow: 0 0 0 2px rgba(255, 214, 10, .55), 0 24px 80px rgba(0, 0, 0, .6);
  transform-origin: 0 0;
}
.lb__cap {
  position: absolute; left: 0; right: 0; bottom: -48px; display: flex; justify-content: center; gap: 14px;
  font-weight: 600; font-size: 1rem; opacity: 0; transition: opacity .3s ease .15s;
}
.lb.is-open .lb__cap { opacity: 1; }
html.lb-lock { overflow: hidden; }
html.lb-lock .dock { opacity: 0; pointer-events: none; }
.lb__count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.lb__btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: var(--text);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .25s, transform .4s var(--ease-spring), opacity .3s;
  opacity: 0;
}
.lb.is-open .lb__btn { opacity: 1; }
.lb__btn:hover { background: var(--yellow); color: #000; }
.lb__btn:active { transform: scale(.92); }
.lb__btn::before, .lb__btn::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; border-radius: 2px; }
.lb__close { top: 12px; right: 12px; }
.lb__close::before, .lb__close::after { width: 18px; height: 2px; margin: -1px 0 0 -9px; transform: rotate(45deg); }
.lb__close::after { transform: rotate(-45deg); }
.lb__prev { left: 16px; top: 50%; margin-top: -24px; }
.lb__next { right: 16px; top: 50%; margin-top: -24px; }
.lb__prev::before, .lb__next::before { width: 11px; height: 11px; margin: -6px 0 0 -4px; background: none; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); border-radius: 0; }
.lb__next::before { margin-left: -7px; transform: rotate(-135deg); }
.lb__btn:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }

/* Об инструкторе */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 80px; }
.about__text { display: grid; gap: 18px; align-content: start; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.42; }
.creds li { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.creds li:last-child { border-bottom: 1px solid var(--line); }
.creds strong { color: var(--yellow); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.creds span { color: var(--muted); }

/* Дипломы: карточки с описанием и документами веером */
.proofs { margin-top: clamp(64px, 8vw, 120px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.proofs__head { display: grid; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 44em; }
.proofs__head h3 { font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -0.035em; font-weight: 700; }
.proofs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.proof {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--s1); border: 1px solid rgba(255, 255, 255, .06);
  display: grid; grid-template-rows: auto 1fr;
  transition: border-color .5s var(--ease-out), background-color .5s var(--ease-out);
}
.proof::before { /* мягкий жёлтый свет над документами */
  content: ""; position: absolute; left: 50%; top: -30%; width: 90%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 214, 10, .14), transparent); pointer-events: none;
  opacity: .6; transition: opacity .6s var(--ease-out);
}
.proof:hover { border-color: rgba(255, 214, 10, .35); }
.proof:hover::before { opacity: 1; }

.proof__stack { position: relative; height: clamp(230px, 20vw, 300px); margin: clamp(24px, 2.6vw, 40px) clamp(24px, 2.6vw, 40px) 0; }
.proof__doc {
  position: absolute; bottom: 0; display: block; height: 88%; border-radius: 12px; overflow: hidden; cursor: zoom-in;
  box-shadow: 0 0 0 1px rgba(255, 214, 10, .3), 0 18px 40px rgba(0, 0, 0, .55);
  transition: transform .7s var(--ease-spring), box-shadow .4s var(--ease-out);
}
.proof__doc img { display: block; height: 100%; width: auto; }
.proof__doc--front { left: 4%; z-index: 2; transform: rotate(-3deg); }
.proof__doc--back { right: 6%; z-index: 1; height: 92%; transform: rotate(6deg) translateY(-4%); filter: brightness(.82); transition: transform .7s var(--ease-spring), box-shadow .4s, filter .4s; }
.proof:hover .proof__doc--front { transform: rotate(-1deg) translate(-4%, -3%); }
.proof:hover .proof__doc--back { transform: rotate(9deg) translate(8%, -8%); filter: none; }
.proof__doc:hover, .proof__doc:focus-visible { outline: none; z-index: 3; box-shadow: 0 0 0 2px var(--yellow), 0 22px 50px rgba(0, 0, 0, .6); }

.proof__body { position: relative; padding: clamp(24px, 2.6vw, 40px); display: grid; gap: 18px; align-content: start; }
.proof__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.proof__chips li { padding: 6px 12px 5px; border-radius: 999px; font-size: .8125rem; font-weight: 600; background: rgba(255, 214, 10, .12); color: var(--yellow); }
.proof__title { font-size: clamp(1.375rem, 2vw, 1.875rem); line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; margin: 0; }
.proof__facts { margin: 0; display: grid; gap: 0; }
.proof__facts div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.proof__facts dt { color: var(--muted); font-size: .9375rem; }
.proof__facts dd { margin: 0; font-size: .9375rem; }
.proof__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.proof__btn {
  min-height: 40px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: .9375rem; font-weight: 600;
  color: var(--text); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
  transition: background-color .25s, box-shadow .25s, color .25s, transform .35s var(--ease-spring);
}
.proof__btn::before { content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; border: 1.6px solid currentColor; border-radius: 3px; box-sizing: border-box; }
.proof__btn:hover { background: var(--yellow); color: #000; box-shadow: none; }
.proof__btn:active { transform: scale(.96); }
.nowrap { white-space: nowrap; }
.creds__link { color: var(--text); text-underline-offset: 3px; }
.creds__link:hover { color: var(--yellow); }

/* Вопросы: высота раскрывается плавно (JS), значок поворачивается */
.faq-block { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 80px; align-items: start; }
.faq-block__head { position: sticky; top: calc(var(--nav-h) + 40px); display: grid; gap: 20px; justify-items: start; }
.faq-block__head p { font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); max-width: 22em; }
.faq { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0; font-size: clamp(1.1875rem, 1.9vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25;
  transition: color .3s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--yellow); }
.faq summary:focus-visible { outline-offset: 6px; }
.faq__icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--s2); transition: background-color .35s var(--ease-out), transform .5s var(--ease-spring); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--text); border-radius: 2px; transition: transform .5s var(--ease-spring), background-color .35s; }
.faq__icon::after { transform: rotate(90deg); }
.faq details.is-open .faq__icon { background: var(--yellow); transform: rotate(180deg); }
.faq details.is-open .faq__icon::before, .faq details.is-open .faq__icon::after { background: #000; }
.faq details.is-open .faq__icon::after { transform: rotate(0); }
.faq__body { overflow: hidden; }
.faq__body p { padding: 0 64px 28px 0; color: var(--muted); font-size: clamp(1.0625rem, 1.4vw, 1.25rem); max-width: 40em; }

/* Связь */
.call {
  position: relative; overflow: hidden; text-align: center;
  display: grid; justify-items: center; gap: 22px;
  padding: clamp(64px, 9vw, 140px) clamp(24px, 4vw, 64px);
  border-radius: 40px; background: var(--s1);
  border: 1px solid rgba(255, 255, 255, .06);
}
.call::before { /* мягкое свечение фар */
  content: ""; position: absolute; left: 50%; top: -40%; width: 120%; height: 100%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 214, 10, .16), transparent);
  pointer-events: none;
}
.call > * { position: relative; }
.call h2 { max-width: 14em; }
.call__lead { color: var(--muted); font-size: clamp(1.125rem, 1.6vw, 1.5rem); max-width: 28em; }
.call__phone { white-space: nowrap; font-size: clamp(1.9rem, 8.6vw, 5rem); font-weight: 700; letter-spacing: -0.04em; color: var(--yellow); text-decoration: none; font-variant-numeric: tabular-nums; line-height: 1; }
.call__phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.call__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.call__alt { font-size: .9375rem; }
.call__alt a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Подвал ---------- */
.foot { margin-top: var(--gap-block); position: relative; padding: 56px 0 48px; border-top: 1px solid var(--line); }
.foot__road { position: absolute; left: 0; right: 0; top: 20px; height: 3px; background: repeating-linear-gradient(90deg, rgba(255, 214, 10, .5) 0 46px, transparent 46px 108px); }
.foot__seo { margin-top: 14px; font-size: .8125rem; color: #6e6e73; max-width: 60em; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; font-size: .9375rem; color: var(--muted); }
.foot a { color: var(--text); text-underline-offset: 3px; }

/* ---------- Кнопка «Наверх» ---------- */
.totop {
  position: fixed; z-index: 44; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  display: grid; place-items: center; color: var(--text);
  background: rgba(28, 28, 30, .78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .5s var(--ease-spring), background-color .25s, color .25s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .4s var(--ease-spring); }
@media (hover: hover) { .totop:hover { background: var(--yellow); color: #000; } .totop:hover svg { transform: translateY(-2px); } }
.totop.is-on:active { transform: scale(.92); }
html.lb-lock .totop { opacity: 0; pointer-events: none; }

/* ---------- Кнопка звонка внизу на телефоне ---------- */
.dock { display: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--wide { grid-column: span 2; }
}

@media (max-width: 1100px) and (min-width: 641px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .facts__cell:nth-child(3) { box-shadow: none; }
  .facts__cell:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--line); }
  .facts__call { grid-row: 1 / span 2; grid-column: 3; }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { justify-content: flex-start; }
  .split-head, .steps-block, .reviews, .about, .faq-block, .proofs__grid { grid-template-columns: 1fr; }
  .faq-block__head { position: static; }
  .split-head p { justify-self: start; }
  .steps-block__head { position: static; }
  .cars { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 52px; --r-card: 24px; }
  body { font-size: 1rem; }
  .nav .btn--sm, .nav__phone { display: none !important; }
  .hero__title { font-size: clamp(3.25rem, 15vw, 4.5rem); }
  .facts { grid-template-columns: 1fr 1fr; padding: 6px; }
  .facts__cell { padding: 10px 14px; }
  .facts__cell:nth-child(3) { box-shadow: none; }
  .facts__cell:nth-child(n+3) { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
  .facts__call { grid-column: 1 / -1; margin: 6px 0 0; }
  .showcase { margin-right: -14%; margin-left: -2%; }
  .proof__facts div { grid-template-columns: 1fr; gap: 2px; }
  .proof__stack { height: 210px; }
  .proof__doc--front { height: 78%; left: 0; }
  .proof__doc--back { right: 0; }
  .cr { --h: min(320px, 66vw); }
  .gal__item { border-radius: 20px; }
  .cr__track { -webkit-mask: none; mask: none; padding-block: 28px 22px; }
  .lb__fig { inset: 60px 12px 84px; }
  .lb__prev, .lb__next { top: auto; bottom: 14px; margin: 0; }
  .lb__prev { left: calc(50% - 60px); } .lb__next { right: calc(50% - 60px); }
  .lb__cap { bottom: auto; top: -48px; left: 12px; right: 64px; flex-direction: column; align-items: flex-start; gap: 0; font-size: .9375rem; }
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tile { min-height: 0; gap: 20px; }
  .steps { padding-left: 64px; }
  .steps__rail { left: 19px; }
  .step__n { left: -64px; width: 40px; height: 40px; font-size: 1rem; }
  .faq__body p { padding-right: 0; }
  .faq summary { padding: 22px 0; }
  .call { border-radius: 28px; }
  .call__actions { width: 100%; }
  .call__actions .btn { flex: 1 1 100%; }
  .foot { padding-bottom: 104px; }

  .totop { width: 48px; height: 48px; right: 16px; bottom: calc(82px + env(safe-area-inset-bottom)); }
  .dock {
    display: flex; position: fixed; z-index: 45; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 54px; box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    transform: translateY(160%); transition: transform .6s var(--ease-spring), background-color .25s;
  }
  .dock.is-on { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-hero-in], .js [data-reveal], .js .hero__title [data-hero-in] { opacity: 1; transform: none; }
  .js .mover { transform: none; }
  .js .swoosh path { stroke-dashoffset: 0; }
  .statement__text .w { color: var(--text); }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

@media print {
  .nav, .dock { display: none; }
}
