/* =========================================================
   УралАвтоПраво - стили сайта
   Цвета и размеры - в :root. Шрифты локальные (OFL), без Google Fonts.
   ========================================================= */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Golos Text";
  src: url("../fonts/golos-text.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060607;
  --bg-2: #0c0c0e;
  --card: #121215;
  --card-2: #18181c;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f6;
  --muted: #9b9ba4;
  --muted-2: #6d6d76;
  --accent: #ffd60a;
  --accent-ink: #0b0b0c;
  --red: #ff3b30;
  --radius: 28px;
  --radius-sm: 18px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Montserrat", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.is-locked { overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 24px; height: 24px; flex: none; --dot: var(--accent); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); }
.h2 {
  font: 600 clamp(28px, 4.2vw, 54px)/1.08 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.h2 .dim { color: var(--muted-2); }
.lead { color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 640px; }
.section { position: relative; padding: clamp(52px, 6vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 52px) 0; }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 860px; }
.section__head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 18px;
  font: 600 16px/1.1 var(--body); letter-spacing: .005em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .35s var(--ease);
  isolation: isolate; overflow: hidden;
}
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -12px rgba(255, 214, 10, .55); }
.btn--accent:hover { box-shadow: 0 14px 50px -10px rgba(255, 214, 10, .75); }
.btn--accent::after { /* блик по кнопке */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--accent:hover::after { transform: translateX(120%); }
.btn--glass { background: rgba(255, 255, 255, .07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn--glass:hover { background: rgba(255, 255, 255, .12); }
/* MAX - фирменный градиент мессенджера, плавно переливается */
.btn--max {
  background-image: linear-gradient(110deg, #4e7bff 0%, #7a5cff 25%, #b05cff 50%, #7a5cff 75%, #4e7bff 100%);
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 12px 44px -16px rgba(122, 92, 255, .8);
  animation: maxFlow 9s linear infinite;
}
.btn--max::before {
  content: ""; position: absolute; inset: -30% -60%; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .34) 50%, transparent 60%);
  transform: translateX(-60%);
  animation: maxSheen 7s ease-in-out infinite;
}
.btn--max:hover {
  animation-duration: 3.2s;
  box-shadow: 0 16px 54px -14px rgba(132, 92, 255, .95);
}
.btn--max:hover::before { animation-duration: 2.2s; }
.btn--max .ic, .icon-btn--max .ic { --dot: #fff; }
.icon-btn--max {
  background-image: linear-gradient(130deg, #4e7bff 0%, #8b5bff 45%, #b05cff 70%, #4e7bff 100%);
  background-size: 220% 100%;
  color: #fff;
  animation: maxFlow 9s linear infinite;
}
.icon-btn--max:hover { filter: brightness(1.06); animation-duration: 3.4s; }
@keyframes maxFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes maxSheen {
  0%, 55% { transform: translateX(-60%); }
  85%, 100% { transform: translateX(60%); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--max, .icon-btn--max { animation: none; }
  .btn--max::before { display: none; }
}
.btn--light { background: #fff; color: var(--accent-ink); }
.btn--light:hover { background: #ececee; }
.btn--lg { min-height: 64px; padding: 0 32px; font-size: 17px; border-radius: 20px; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: transform .45s var(--ease), background-color .3s, box-shadow .3s;
}
.header::before { content: ""; position: absolute; inset: 0; background: rgba(6, 6, 7, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); opacity: 0; transition: opacity .3s; box-shadow: inset 0 -1px 0 var(--line); }
.header.is-solid::before { opacity: 1; }
/* Шапка всегда на виду. Правило .is-hidden оставлено только для совместимости,
   но нигде не включается: раньше она пряталась при прокрутке вниз и дёргалась. */
.header.is-hidden { transform: none; }
.header__inner { position: relative; height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: 0; }
.nav a { padding: 10px 10px; border-radius: 12px; font-size: 15px; color: #d4d4d8; transition: color .2s, background-color .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header__phone { display: grid; text-align: right; line-height: 1.2; }
.header__phone b { font: 600 16px/1.2 var(--body); letter-spacing: .01em; white-space: nowrap; }
.header__phone span { font-size: 12.5px; color: var(--muted); }
.icon-btn { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .13); }
.burger { display: none; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 24px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 42%; }
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-playing { opacity: 1; }
/* «Дыхание» фар на заставке, если видео не запустилось */
.hero__glow { position: absolute; left: 36%; top: 47%; width: 26vw; height: 12vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); filter: blur(18px); mix-blend-mode: screen; animation: breathe 4s ease-in-out infinite; pointer-events: none; }
.hero.has-video .hero__glow { display: none; }
@keyframes breathe { 0%, 100% { opacity: .15; } 50% { opacity: .55; } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(6, 6, 7, .75) 0%, rgba(6, 6, 7, 0) 22%, rgba(6, 6, 7, 0) 48%, rgba(6, 6, 7, .78) 76%, var(--bg) 100%),
  linear-gradient(90deg, rgba(6, 6, 7, .94) 0%, rgba(6, 6, 7, .78) 28%, rgba(6, 6, 7, .2) 52%, rgba(6, 6, 7, 0) 66%); }
@media (min-width: 981px) { .hero__poster, .hero__video { transform: scale(1.1) translateX(11%); transform-origin: 50% 45%; } }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 32px 56px; align-items: end; }
.hero__title {
  margin: 18px 0 20px;
  font: 700 clamp(34px, 5.1vw, 78px)/1 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero__title .hl { color: var(--accent); }
.hero__title .chrome { background: linear-gradient(180deg, #ffffff 8%, #c9c9d1 46%, #6f6f78 58%, #e6e6ea 92%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero__title .sub { display: block; margin-top: 18px; font-weight: 500; font-size: clamp(18px, 2.1vw, 30px); letter-spacing: -.01em; line-height: 1.2; color: #d9d9de; }
.hero__title .sub b { color: var(--accent); font-weight: 600; }
.hero__lead { color: #c4c4cb; font-size: clamp(16px, 1.35vw, 19px); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 15px; font-weight: 500; }
.chip .ic { width: 20px; height: 20px; }
.hero__side { display: grid; gap: 12px; }
.hero__contacts { display: grid; gap: 4px; margin-top: 8px; padding: 18px 20px; border-radius: 20px; background: rgba(12, 12, 14, .55); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 14.5px; color: var(--muted); }
.hero__contacts a.tel { font: 600 22px/1.3 var(--body); color: #fff; letter-spacing: .01em; }
.hero__contacts .row { display: flex; align-items: center; gap: 8px; }
.hero__contacts .ic { width: 16px; height: 16px; }
.promo-pill { position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 20px); display: flex; align-items: center; gap: 14px; max-width: 360px; padding: 14px 18px 14px 14px; border-radius: 20px; background: rgba(12, 12, 14, .6); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .35); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; line-height: 1.35; transition: transform .3s var(--ease); }
.promo-pill:hover { transform: translateY(-2px); }
.promo-pill__ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: none; --dot: var(--accent-ink); }
.promo-pill b { display: block; font-weight: 600; color: #fff; }
.promo-pill span { color: var(--muted); }
.scroll-hint { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Бегущая строка ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--bg-2); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 40s linear infinite; }
.ticker__item { display: flex; align-items: center; gap: 48px; font: 500 clamp(15px, 1.6vw, 20px)/1 var(--display); letter-spacing: -.01em; white-space: nowrap; color: #d4d4d8; }
.ticker__item::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Акция ---------- */
.promo { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: clamp(24px, 3.4vw, 44px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.promo::before { content: ""; position: absolute; right: -60px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 1.5px solid rgba(0, 0, 0, .12); box-shadow: 0 0 0 60px rgba(0, 0, 0, .03), 0 0 0 120px rgba(0, 0, 0, .025); }
.promo__ic { position: relative; width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-ink); color: var(--accent); }
.promo__ic .ic { width: 38px; height: 38px; --dot: #fff; }
.promo__label { font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.promo__title { margin: 10px 0 8px; font: 700 clamp(22px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.promo__desc { font-size: 16px; opacity: .8; }
.promo__right { position: relative; display: grid; gap: 12px; justify-items: end; text-align: right; }
.countdown { display: flex; gap: 8px; }
.countdown div { min-width: 70px; padding: 10px 10px 8px; border-radius: 14px; background: rgba(0, 0, 0, .08); text-align: center; }
.countdown b { display: block; font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; opacity: .7; }
.btn--ink { background: var(--accent-ink); color: #fff; }
.btn--ink:hover { background: #222226; }

/* ---------- Скролл-сцены (кадры видео по прокрутке) ---------- */
.scene { position: relative; }
.scene__sticky { position: relative; height: 78vh; height: 78svh; min-height: 520px; max-height: 820px; overflow: hidden; display: grid; }
.scene__media { position: absolute; inset: 0; }
.scene__media canvas, .scene__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene__poster { transition: opacity .6s; }
.scene.is-ready .scene__poster { opacity: 0; }
.scene__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 6, 7, .55) 14%, rgba(6, 6, 7, 0) 30%, rgba(6, 6, 7, 0) 70%, var(--bg) 100%); }
.scene__fade--side { background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 6, 7, 0) 16%, rgba(6, 6, 7, 0) 70%, var(--bg) 100%), linear-gradient(90deg, rgba(6, 6, 7, .92) 0%, rgba(6, 6, 7, .4) 40%, rgba(6, 6, 7, 0) 60%); }
.scene__ui { position: relative; z-index: 2; height: 100%; display: grid; align-content: space-between; padding-top: clamp(32px, 5vh, 64px); padding-bottom: clamp(24px, 3vh, 40px); }
.scene__head, .cta-box { text-shadow: 0 2px 24px rgba(0, 0, 0, .7); }
.scene__head { display: grid; gap: 16px; max-width: 760px; }
.scene__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--line); }
.scene__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* сцена 1 - цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { position: relative; padding: 22px 22px 20px; border-radius: 24px; background: rgba(14, 14, 17, .62); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: .25; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .6s; }
.stat.is-on { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .4); }
.stat b { display: block; font: 700 clamp(34px, 4.4vw, 64px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; letter-spacing: 0; color: var(--accent); }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.35; }

/* сцена 2 - скан */
.scan-tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 760px; }
.scan-tag { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 16px; background: rgba(14, 14, 17, .66); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.scan-tag.is-on { opacity: 1; transform: none; }
.scan-tag .ic { width: 20px; height: 20px; }

/* сцена 3 - дорога / этапы */
.road-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.road-step { position: relative; padding: 22px; border-radius: 24px; background: rgba(10, 12, 16, .66); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: .35; transition: opacity .6s var(--ease), box-shadow .6s, transform .6s var(--ease); transform: translateY(10px); }
.road-step.is-on { opacity: 1; transform: none; box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .45); }
.road-step__n { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--display); letter-spacing: .1em; color: var(--accent); }
.road-step__n::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 214, 10, .5), transparent); }
.road-step h3 { margin: 14px 0 8px; font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.road-step p { color: #c0c0c8; font-size: 15px; line-height: 1.45; }

/* сцена 4 - фара / финальный призыв */
.cta-scene .scene__sticky { height: auto; min-height: clamp(420px, 58svh, 700px); max-height: none; }
.cta-scene .scene__ui { align-content: center; padding-top: clamp(20px, 3vh, 40px); padding-bottom: clamp(16px, 2.4vh, 32px); }
.cta-box { max-width: 640px; display: grid; gap: 20px; opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.cta-box.is-on { opacity: 1; transform: none; }
.cta-box .h2 { font-size: clamp(30px, 4.4vw, 60px); }
.cta-phone { font: 700 clamp(28px, 3.6vw, 46px)/1.1 var(--display); letter-spacing: -.02em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.manager { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.manager__ava { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 16px/1 var(--display); color: var(--accent); }
.manager b { display: block; color: #fff; font-weight: 600; }

/* ---------- Карточки «Почему выбирают нас» ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.card { position: relative; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s; }
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.card::after { /* световое пятно за курсором */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 214, 10, .08), transparent 60%);
}
.card:hover::after { opacity: 1; }
.bento .card { grid-column: span 2; min-height: 260px; display: flex; flex-direction: column; }
.bento .card--wide { grid-column: span 3; }
.bento .card--accent { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.bento .card--accent p { color: rgba(11, 11, 12, .72); }
.bento .card--accent .tile { background: var(--accent-ink); color: var(--accent); --dot: #fff; }
.tile { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; margin-bottom: auto; }
.tile .ic { width: 28px; height: 28px; }
.card h3 { margin: 28px 0 10px; font: 600 clamp(18px, 1.6vw, 22px)/1.2 var(--display); letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 16px; }
.card .card__big { font: 700 clamp(44px, 5vw, 72px)/.9 var(--display); letter-spacing: -.04em; margin-bottom: auto; color: var(--accent-ink); }
.card__big small { font-size: .45em; letter-spacing: 0; }

/* ---------- Ситуации (нумерованный список) ---------- */
.sits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; counter-reset: sit; }
.sit { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.sit:hover { padding-left: 10px; }
.sit__n { font: 600 28px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .35); letter-spacing: -.02em; transition: color .3s, -webkit-text-stroke-color .3s; }
.sit:hover .sit__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.sit__t { font-size: 17px; line-height: 1.4; }
.sit__go { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); opacity: .5; transition: opacity .3s, background-color .3s, color .3s, transform .3s var(--ease); }
.sit:hover .sit__go { opacity: 1; background: var(--accent); color: var(--accent-ink); transform: rotate(-45deg); }
.sit__go .ic { width: 18px; height: 18px; }

/* ---------- Аккордеон «Чем можем помочь» ---------- */
.help { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.help__aside { position: sticky; top: 110px; display: grid; gap: 22px; }
.acc { display: grid; gap: 10px; }
.acc__item { border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .3s, box-shadow .3s; }
.acc__item[open] { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.acc__item summary { list-style: none; display: grid; grid-template-columns: 44px 1fr 36px; gap: 16px; align-items: center; padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.35; }
.acc__item summary::-webkit-details-marker { display: none; }
.acc__n { font: 600 14px/1 var(--display); color: var(--muted-2); }
.acc__item[open] .acc__n { color: var(--accent); }
.acc__pm { position: relative; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.acc__pm::before, .acc__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.acc__pm::after { transform: rotate(90deg); }
.acc__item[open] .acc__pm { background: var(--accent); color: var(--accent-ink); }
.acc__item[open] .acc__pm::after { transform: rotate(0); }
.acc__body { padding: 0 20px 22px 80px; color: #c2c2ca; }
.acc__body p + p { margin-top: 10px; }
.acc__body .btn { margin-top: 16px; }

/* ---------- Цены ---------- */
.prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-items: start; }
.price { border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .3s, background-color .3s; }
.price[open] { background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(255, 214, 10, .35); }
.price summary { list-style: none; display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 22px; cursor: pointer; }
.price summary::-webkit-details-marker { display: none; }
.price__name { font: 600 clamp(17px, 1.5vw, 20px)/1.25 var(--display); letter-spacing: -.01em; }
.price__from { display: block; margin-top: 6px; font: 500 14px/1.2 var(--body); color: var(--muted); }
.price__toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .3s, color .3s; }
.price__toggle .ic { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.price[open] .price__toggle { background: var(--accent); color: var(--accent-ink); }
.price[open] .price__toggle .ic { transform: rotate(180deg); }
.price__toggle .when-open { display: none; }
.price[open] .price__toggle .when-open { display: inline; }
.price[open] .price__toggle .when-closed { display: none; }
.price__list { padding: 0 22px 22px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px dashed var(--line-2); font-size: 16px; }
.price-row b { flex: none; font-weight: 600; text-align: right; white-space: nowrap; }
.price-row--free b { color: var(--accent); }
.price-row--bullet span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 2px; border-radius: 50%; background: var(--accent); }
.price__note { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 214, 10, .08); color: #e9e2b8; font-size: 15px; }
.price__cta { margin-top: 14px; }
.price-foot { margin-top: 18px; color: var(--muted-2); font-size: 14px; }

/* ---------- «Почему мы» лента ---------- */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 80px); }
.why__item { display: grid; gap: 14px; padding: 22px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)); box-shadow: inset 0 0 0 1px var(--line); }
.why__item .ic { width: 28px; height: 28px; }
.why__item p { color: #cfcfd6; font-size: 15.5px; line-height: 1.45; }

/* ---------- Тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.plan:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 60px -30px #000; }
.plan__num { font: 600 64px/.8 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .18); letter-spacing: -.04em; }
.plan__name { margin-top: 26px; font: 600 20px/1.2 var(--display); letter-spacing: -.015em; }
.plan__type { margin-top: 6px; color: var(--muted); font-size: 15px; }
.plan__price { margin-top: 22px; font: 700 34px/1 var(--display); letter-spacing: -.03em; }
.plan__price-note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.plan__list { display: grid; gap: 10px; margin: 22px 0 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; }
.plan__list li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; line-height: 1.4; }
.plan__list .ic { width: 20px; height: 20px; color: var(--accent); }
.plan .btn { margin-top: auto; }
.plan--hot { background: var(--accent); color: var(--accent-ink); box-shadow: 0 30px 80px -30px rgba(255, 214, 10, .5); }
.plan--hot .plan__num { -webkit-text-stroke-color: rgba(0, 0, 0, .25); }
.plan--hot .plan__type, .plan--hot .plan__price-note { color: rgba(11, 11, 12, .7); }
.plan--hot .plan__list { border-color: rgba(0, 0, 0, .12); }
.plan--hot .plan__list .ic { color: var(--accent-ink); }
.plan__badge { position: absolute; top: 22px; right: 22px; padding: 8px 12px; border-radius: 10px; background: var(--accent-ink); color: var(--accent); font: 600 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

/* ---------- Блог-карточки ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/* после карточек блога к блоку консультации - минимум воздуха */
#blog { padding-bottom: clamp(16px, 2.4vw, 28px); }
.post { display: flex; flex-direction: column; gap: 14px; min-height: 250px; padding: 26px; border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.post:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2); }
.post__cat { align-self: flex-start; padding: 7px 12px; border-radius: 10px; background: rgba(255, 214, 10, .1); color: var(--accent); font: 600 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.post__t { font: 600 19px/1.3 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.post__d { color: var(--muted); font-size: 15px; line-height: 1.5; }
.post__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.post__more .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.post:hover .post__more .ic { transform: translateX(4px); }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 14px; }
/* перед подвалом оставляем минимум воздуха */
#contacts { padding-bottom: clamp(10px, 1.6vw, 16px); }
.contacts__card { display: grid; gap: 6px; align-content: start; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.c-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.c-row:last-of-type { border-bottom: 0; }
.c-row .tile { width: 48px; height: 48px; border-radius: 14px; margin: 0; }
.c-row .tile .ic { width: 22px; height: 22px; }
.c-row small { display: block; color: var(--muted); font-size: 13.5px; }
.c-row b { font-weight: 600; font-size: 17px; }
.contacts__card .btn { margin-top: 14px; }
.map { position: relative; min-height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--card) url("../img/map-stub.svg") center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map__stub { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; font-weight: 600; }
.map__stub .tile { margin: 0; background: var(--accent); color: var(--accent-ink); --dot: #fff; }

/* ---------- Подвал ---------- */
.footer { position: relative; padding: clamp(28px, 3.2vw, 44px) 0 calc(28px + env(safe-area-inset-bottom)); background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.footer__giant { pointer-events: none; user-select: none; margin-top: clamp(40px, 6vw, 72px); font: 700 clamp(26px, 7.6vw, 104px)/.8 var(--display); overflow: hidden; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1); white-space: nowrap; text-align: center; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand img { height: 28px; width: auto; }
.footer__slogan { margin: 16px 0 22px; font: 500 15px/1.4 var(--display); color: var(--muted); }
.footer__h { margin-bottom: 14px; font: 600 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.footer__col { display: grid; gap: 10px; align-content: start; font-size: 15px; color: #c6c6cd; }
.footer__col a:hover { color: #fff; }
.footer__phone { font: 600 20px/1.2 var(--body); color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13.5px; }
.footer__req summary { cursor: pointer; color: #c6c6cd; list-style: none; }
.footer__req summary::-webkit-details-marker { display: none; }
.footer__req summary::after { content: " ↓"; color: var(--muted-2); }
.footer__req[open] summary::after { content: " ↑"; }
.footer__req div { margin-top: 10px; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- Машинка-спутник (едет по дороге вместе с прокруткой) ---------- */
.companion { position: fixed; z-index: 40; left: 22px; top: 18vh; bottom: 18vh; width: 22px; pointer-events: none; opacity: 0; transition: opacity .6s; }
.companion.is-visible { opacity: 1; }
.companion__road { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .22) 0 10px, transparent 10px 20px); background-position: 0 var(--road-shift, 0px); }
.companion__trail { position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; height: calc(var(--p, 0) * 100%); background: linear-gradient(180deg, rgba(255, 214, 10, 0), var(--accent)); box-shadow: 0 0 10px rgba(255, 214, 10, .6); }
.companion__stop { position: absolute; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); transition: background-color .3s, box-shadow .3s; }
.companion__stop.is-passed { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.companion__stop span { position: absolute; left: 18px; top: 50%; translate: 0 -50%; white-space: nowrap; font: 500 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: 0; transition: opacity .3s; display: none; }
.companion__stop.is-current span { opacity: 1; color: #fff; }
@media (min-width: 1640px) { .companion__stop span { display: block; } }
.companion__car { position: absolute; left: 50%; top: calc(var(--p, 0) * 100%); width: 22px; height: 40px; margin: -20px 0 0 -11px; transition: transform .3s var(--ease); transform: rotate(var(--steer, 0deg)); }
.companion__car .beam { opacity: 0; transition: opacity .4s; }
.companion.is-lights .companion__car .beam { opacity: 1; }
.companion .hazard { opacity: 0; }
.companion.is-parked .hazard { animation: hazard 1s steps(1) infinite; }
@keyframes hazard { 0% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- Мобильная панель ---------- */
.mbar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: none; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(18, 18, 21, .82); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 40px -10px #000; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transform: translateY(140%); transition: transform .45s var(--ease); }
.mbar.is-visible { transform: none; }
.mbar .btn { flex: 1; min-height: 52px; font-size: 15px; padding: 0 14px; }

/* ---------- Мобильное меню ---------- */
.mnav { position: fixed; z-index: 49; inset: 0; padding: calc(var(--header-h) + 16px) var(--gutter) 28px; background: rgba(6, 6, 7, .97); display: grid; align-content: start; gap: 8px; overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav a.mnav__link { padding: 14px 0; font: 600 26px/1.15 var(--display); letter-spacing: -.02em; border-bottom: 1px solid var(--line); }
.mnav__phone { margin: 20px 0 8px; font: 600 24px/1.2 var(--body); }
.mnav .btn { margin-top: 8px; }

/* ---------- Cookies ---------- */
.cookie { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: 440px; display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px; background: rgba(22, 22, 26, .94); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -20px #000; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); font-size: 14px; color: #cfcfd6; }
.cookie[hidden] { display: none; }
.cookie a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) var(--d, 0s); }
.split.is-visible .w > span { transform: none; }

/* ---------- Страницы-документы и блог ---------- */
.page { padding: calc(var(--header-h) + clamp(24px, 4vw, 48px)) 0 clamp(16px, 2.4vw, 28px); }
/* страница блога: после карточек к подвалу минимум воздуха */
.page--blog { padding-bottom: clamp(16px, 2vw, 24px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { color: var(--muted-2); }
.doc { max-width: 820px; min-width: 0; overflow-wrap: break-word; }
.doc h1 { font: 700 clamp(30px, 4.6vw, 56px)/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; margin-bottom: 14px; }
.doc .doc-meta { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
.doc h2 { margin: 34px 0 12px; font: 600 clamp(21px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -.015em; }
.doc h3 { margin: 24px 0 8px; font: 600 19px/1.3 var(--display); }
.doc p, .doc li { color: #cfcfd6; font-size: 17.5px; line-height: 1.7; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin: 14px 0; padding-left: 4px; display: grid; gap: 8px; }
.doc ul li { position: relative; padding-left: 22px; }
.doc ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.doc ol { counter-reset: ol; }
.doc ol li { position: relative; padding-left: 36px; counter-increment: ol; }
.doc ol li::before { content: counter(ol); position: absolute; left: 0; top: .15em; width: 24px; height: 24px; border-radius: 8px; background: rgba(255, 214, 10, .12); color: var(--accent); font: 600 13px/24px var(--display); text-align: center; }
.doc a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.doc strong, .doc b { color: #fff; }
.doc blockquote { margin: 24px 0; padding: 20px 22px; border-radius: 18px; background: rgba(255, 214, 10, .07); box-shadow: inset 3px 0 0 var(--accent); }
.doc blockquote p { color: #ece6c4; }
.doc table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 16px; display: block; overflow-x: auto; }
.doc th, .doc td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.doc th { color: #fff; font-weight: 600; background: var(--card); }
.doc .note, .doc .req { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.doc .req p { margin: 0; font-size: 16px; }
.article-cta { margin-top: 48px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); display: grid; gap: 14px; }
.article-cta h2 { margin: 0; font: 700 clamp(22px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -.02em; }
.article-cta p { color: rgba(11, 11, 12, .75) !important; margin: 0 !important; }
.article-cta .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.article-cta .btn--ink, .article-cta .btn--light { text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.article-aside { position: sticky; top: 100px; display: grid; gap: 14px; }
.aside-card { padding: 22px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.aside-card h3 { font: 600 17px/1.25 var(--display); }
.aside-card p { color: var(--muted); font-size: 15px; }
.toc { display: grid; gap: 8px; font-size: 14.5px; }
.toc a { color: var(--muted); }
.toc a:hover { color: #fff; }
.aside-card--toc { gap: 10px; }
.aside-time {
  display: flex; align-items: center; gap: 8px;
  font: 500 13.5px/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
}
.aside-time .ic { width: 16px; height: 16px; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.blog-filter button { padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14.5px; font-weight: 500; }
.blog-filter button.is-active { background: var(--accent); color: var(--accent-ink); }
.doc-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(6, 6, 7, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 -1px 0 var(--line); }

/* ---------- Адаптив ---------- */
@media (max-width: 1360px) {
  .header__cta { display: none; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .companion { left: 10px; }
  .companion__stop span { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .hero__grid { grid-template-columns: 1fr; }
  .promo-pill { display: none; }
  .header__phone { display: none; }
  .header__cta { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card--wide { grid-column: span 1; min-height: 220px; }
  .sits { grid-template-columns: 1fr; }
  .help, .faq { grid-template-columns: 1fr; }
  .help__aside { position: static; }
  .prices { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .road-steps { grid-template-columns: repeat(2, 1fr); }  .posts { grid-template-columns: 1fr 1fr; }
  .contacts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: auto 1fr; }
  .promo__right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .mbar { display: flex; }
  .cookie { bottom: 92px; right: 16px; }
}

@media (max-width: 980px) {
  /* сцены на телефоне: видео фоном на весь блок, заголовок сверху и плашки снизу поверх видео */
  .scene__sticky { height: auto; min-height: 0; max-height: none; }
  .scene__ui { min-height: 0; display: grid; grid-template-rows: auto clamp(220px, 62vw, 460px) auto; align-content: start; gap: 0; padding-top: 40px; padding-bottom: 32px; }
  .scene__head { grid-row: 1; }
  .stats, .scan-tags, .road-steps, .cta-box { grid-row: 3; }
  /* блок консультации на телефоне: без пустой полосы на пол экрана */
  .cta-scene .scene__sticky { height: auto; min-height: 0; max-height: none; }
  .cta-scene .scene__ui { height: auto; grid-template-rows: auto 0 auto; padding-top: 8px; padding-bottom: 30px; }
  .cta-scene .cta-box { margin-top: clamp(48px, 12vw, 88px); }
  .scene__poster { object-fit: contain; transform: scale(1.6); }
  .scene__fade, .scene__fade--side { background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 6, 7, .78) 14%, rgba(6, 6, 7, .2) 40%, rgba(6, 6, 7, .1) 55%, rgba(6, 6, 7, .7) 80%, var(--bg) 100%); }
  .stat, .scan-tag, .road-step { background: rgba(10, 10, 12, .62); }
  .scene__bar { display: none; }
  /* на телефоне карточки с цифрами подтягиваем ближе к колёсам */
  #about .stats { margin-top: -36px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { height: 21px; }
  .icon-btn { width: 44px; height: 44px; }
  /* Первый экран на телефоне: заголовок сверху, машина по центру, кнопки снизу */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: calc(var(--header-h) + 18px) 0 28px; }
  .hero__top { order: 1; }
  .hero__media { position: relative; inset: auto; height: 47vw; margin: 14px 0 10px; order: 2; overflow: hidden; }
  .hero__bottom { order: 3; display: grid; gap: 14px; }
  .hero__side { order: 4; }
  .hero__poster, .hero__video { inset: auto; left: -11.5vw; top: -13.5vw; width: 123vw; height: 69.2vw; max-width: none; object-fit: fill; }
  .hero__shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(6, 6, 7, 0) 12%, rgba(6, 6, 7, 0) 82%, var(--bg) 100%); }
  .hero__glow { width: 34vw; height: 14vw; left: 20vw; top: 15vw; }
  .hero__inner { display: contents; }
  .hero__grid { display: contents; }
  .hero__main { display: contents; }
  .hero__top { padding: 0 var(--gutter); }
  .hero__title { margin: 14px 0 0; font-size: clamp(26px, 8.1vw, 40px); letter-spacing: -.03em; }
  .section__head--row { grid-template-columns: 1fr; align-items: start; }
  .cookie { left: 10px; right: 10px; bottom: 84px; padding: 14px 16px; gap: 10px; font-size: 12.5px; max-width: none; }
  .cookie .btn--sm { min-height: 40px; font-size: 13.5px; padding: 0 14px; }
  .hero__title .sub { margin-top: 12px; font-size: 18px; }
  .hero__bottom { padding: 0 var(--gutter); }
  .hero__lead { font-size: 15.5px; }
  .chips { margin-top: 0; gap: 8px; }
  .chip { font-size: 13.5px; padding: 8px 12px 8px 10px; }
  .hero__side { padding: 0 var(--gutter); margin-top: 16px; }
  .hero__contacts { font-size: 14px; }
  .scroll-hint { display: none; }
  .btn--lg { min-height: 58px; font-size: 16px; }
  .ticker { padding: 16px 0; }
  .promo { grid-template-columns: 1fr; gap: 18px; }
  .promo__ic { width: 60px; height: 60px; border-radius: 18px; }
  .countdown div { min-width: 62px; }
  .bento { grid-template-columns: 1fr; }
  .bento .card, .bento .card--wide { min-height: 0; }
  .card h3 { margin-top: 22px; }
  .sit { grid-template-columns: 46px 1fr 36px; gap: 12px; padding: 18px 0; }
  .sit__n { font-size: 22px; }
  .sit__t { font-size: 16px; }
  .acc__item summary { grid-template-columns: 30px 1fr 32px; gap: 10px; padding: 16px; font-size: 16px; }
  .acc__body { padding: 0 16px 18px 16px; font-size: 15.5px; }
  .price summary { grid-template-columns: 48px 1fr; padding: 18px; gap: 14px; }
  .price summary .tile { width: 48px; height: 48px; border-radius: 14px; }
  .price__toggle { grid-column: 1 / -1; justify-content: center; }
  .price__list { padding: 0 18px 18px; }
  .price-row { font-size: 15px; }
  .why { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .map { min-height: 320px; }
  /* сцены на телефоне: кадр по центру, текст сверху и снизу */
  .scene__head .h2 { font-size: 26px; }
  .scene__head .lead { font-size: 15px; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat { padding: 12px 14px; border-radius: 16px; }
  .stat b { font-size: 28px; }
  .stat span { font-size: 12.5px; margin-top: 4px; }
  .road-steps { gap: 8px; }
  .road-step { padding: 14px; border-radius: 18px; }
  .road-step h3 { font-size: 14.5px; margin: 10px 0 4px; }
  .road-step p { font-size: 13px; line-height: 1.4; }
  .scan-tags { gap: 8px; }
  .scan-tag { padding: 9px 12px 9px 10px; font-size: 14px; border-radius: 12px; }

  .companion { left: auto; right: 4px; width: 14px; top: 22vh; bottom: 24vh; }
  .companion__car { width: 14px; height: 26px; margin: -13px 0 0 -7px; }
  .companion__stop { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
  .footer__giant { -webkit-text-stroke-width: .6px; }
}

@media (hover: none) {
  .card:hover, .plan:hover, .post:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .split .w > span { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ---------- Внутренние страницы ---------- */
.inner-page .header::before { opacity: 1; }
.doc .table-wrap { overflow-x: auto; margin: 20px 0; }
.doc .table-wrap table { display: table; margin: 0; min-width: 520px; }
.doc img { border-radius: 18px; margin: 20px 0; }
.doc hr { border: 0; height: 1px; background: var(--line-2); margin: 36px 0; }
/* Образцы документов: длинные строки не должны растягивать страницу на телефоне. */
.doc pre {
  max-width: 100%; margin: 20px 0; padding: 18px 20px; border-radius: 18px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #cfcfd6; text-align: left;
  white-space: pre-wrap; overflow-wrap: break-word; word-break: break-word;
  overflow-x: auto;
}
.doc pre code { font: inherit; color: inherit; background: none; padding: 0; }
.err { min-height: 70vh; display: grid; align-content: center; gap: 22px; }
.err__code { font: 700 clamp(90px, 18vw, 220px)/.8 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 214, 10, .7); }

/* цвет акцентной точки иконок на жёлтом фоне */
.promo-pill__ic .ic, .map__stub .tile .ic, .btn--accent .ic, .plan--hot .ic { --dot: var(--accent-ink); }
.bento .card--accent .tile .ic { --dot: var(--accent); }
@media (min-width: 981px) { .cookie { max-width: 400px; font-size: 13.5px; } }

/* ---------- Первый экран: меньше воздуха между шапкой и текстом ---------- */
@media (min-width: 981px) {
  .hero { padding-bottom: calc(clamp(64px, 9vh, 112px) + 33px); }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(var(--header-h) + 10px); }
}

/* ---------- Иллюстрации в статьях ---------- */
.doc-cover { margin: 0 0 26px; }
.doc-figure { margin: 24px 0; }
.doc-cover img, .doc-figure img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 20px; margin: 0; background: #111;
}
.doc-cover figcaption, .doc-figure figcaption {
  margin-top: 10px; font-size: 12.5px; line-height: 1.4; letter-spacing: .04em;
  color: var(--muted-2); text-transform: lowercase;
}

/* ---------- Обложки на карточках блога ---------- */
.post__img {
  display: block; margin: -8px -8px 2px; border-radius: 18px; overflow: hidden;
  aspect-ratio: 16 / 9; background: #111;
}
.post__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Шрифт заголовков: Montserrat, заглавными ---------- */
.hero__title { font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; font-size: clamp(30px, 4.6vw, 70px); }
.hero__title .sub { text-transform: none; }
.h2 { font-weight: 800; text-transform: uppercase; letter-spacing: -.01em; font-size: clamp(26px, 3.4vw, 46px); }
.eyebrow, .promo__label, .footer__h, .plan__badge, .post__cat { letter-spacing: .12em; }
@media (max-width: 640px) {
  .hero__title { font-size: 28px; }
  .h2 { font-size: 24px; }
  .scene__head .h2 { font-size: 24px; }
}



/* ---------- Перелинковка внутри статьи ---------- */
.article-related {
  margin: 34px 0 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
}
.article-related__title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.article-related__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.article-related__list li { position: relative; padding-left: 18px; line-height: 1.5; }
.article-related__list li::before { content: '→'; position: absolute; left: 0; top: 0; color: var(--accent); }
.article-related__list a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.article-related__list a:hover { border-color: var(--accent); }
.article-related__hub { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--accent); text-decoration: none; }
.article-related__hub:hover { text-decoration: underline; }

/* ---------- Автор материала ---------- */
.article-author {
  display: flex; gap: 14px; align-items: center;
  margin: 30px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line);
}
.article-author__badge {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 13px; letter-spacing: .02em;
}
.article-author__body { min-width: 0; }
.article-author__name { margin: 0 0 4px; font-weight: 600; }
.article-author__role { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.article-author__role a { color: var(--accent); text-decoration: none; }

/* ---------- Рубрики блога ---------- */
.blog-hubs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.blog-hubs a {
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 13px; color: var(--text); text-decoration: none;
}
.blog-hubs a:hover, .blog-hubs a:focus-visible { border-color: var(--accent); color: var(--accent); }

/* ---------- Страницы рубрик ---------- */
.hub-page .section__head { max-width: 880px; }
.hub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.hub-section { max-width: 760px; margin: 0 0 32px; }
.hub-section h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 12px; }
.hub-section h3 { font-size: 17px; margin: 20px 0 6px; }
.hub-section p, .hub-section li { color: var(--muted); line-height: 1.7; }
.hub-section ul, .hub-section ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 7px; }
.hub-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside-links { display: grid; gap: 8px; margin: 10px 0 14px; }
.aside-links a, .aside-links span { color: var(--muted); text-decoration: none; font-size: 14px; }
.aside-links a:hover { color: var(--accent); }
.aside-links span { color: var(--accent); }
.aside-more { color: var(--accent); font-size: 13px; text-decoration: none; }
@media (max-width: 900px) {
  .hub-layout { grid-template-columns: 1fr; gap: 24px; }
  .hub-aside { position: static; }
}


/* ---------- Списки на страницах рубрик ---------- */
.hub-section ul { list-style: none; padding-left: 0; }
.hub-section ul li { position: relative; padding-left: 20px; }
.hub-section ul li::before {
  content: ''; position: absolute; left: 0; top: .68em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.hub-section ol { list-style: none; padding-left: 0; counter-reset: hubstep; }
.hub-section ol li { position: relative; padding-left: 30px; counter-increment: hubstep; }
.hub-section ol li::before {
  content: counter(hubstep); position: absolute; left: 0; top: .12em;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
}
