/* ============================================================
   АвтоВыкуп — тёмная тема. Многостраничный сайт.
   Глубокий графит + оранжевый акцент + мягкие свечения.
   Mobile-first. Лёгкие «вау»-анимации.
   ============================================================ */

:root {
  --bg: #0a0f18;            /* фон страницы (почти чёрный) */
  --bg-2: #0c121d;          /* альтернативная секция */
  --surface: #121b2a;       /* карточки/поверхности */
  --surface-2: #16202f;     /* приподнятые элементы */
  --ink: #eef2f8;           /* основной текст */
  --muted: #9aa6b8;         /* вторичный текст */
  --muted-2: #6c7689;       /* подписи */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.16);

  --accent: #ff7a18;
  --accent-dark: #e8650a;
  --accent-soft: rgba(255,122,24,.14);
  --green: #2bd07f;
  --green-soft: rgba(43,208,127,.14);

  --font-body: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", var(--font-body);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --glow: 0 0 0 1px var(--line), 0 18px 50px rgba(0,0,0,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 18px; }
.accent { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border: 1.5px solid transparent; border-radius: 999px;
  font-family: var(--font-body); font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(255,122,24,.32); }
.btn--primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(255,122,24,.45); }
.btn--primary:active { transform: translateY(0) scale(.97); }
.btn--secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: rgba(255,255,255,.04); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn__spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Шапка + меню ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,15,24,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--accent); border-radius: 11px; box-shadow: 0 6px 16px rgba(255,122,24,.4); transition: transform .2s var(--ease); font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #fff; letter-spacing: -.03em; }
.logo__mark svg { width: 22px; height: 22px; display: block; }
.logo:hover .logo__mark { transform: rotate(-6deg) scale(1.05); }
.logo__text { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: #fff; }
.logo__text b { color: var(--accent); font-weight: 700; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 15px; position: relative; padding: 6px 0; transition: color .15s ease; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s var(--ease); }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after, .main-nav a.is-active::after { right: 0; }
.main-nav a.is-active { color: #fff; }

.header__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header__phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.header__phone-icon { color: var(--accent); }
.header__cta { display: inline-flex; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: 48px 0 58px; background:
  radial-gradient(900px 460px at 78% -8%, rgba(255,122,24,.20), transparent 60%),
  radial-gradient(700px 500px at 8% 110%, rgba(43,123,255,.10), transparent 55%),
  var(--bg); }
.hero__glow { position: absolute; top: -140px; right: -90px; width: 540px; height: 540px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,24,.18), transparent 65%); pointer-events: none; will-change: transform; }
.hero__grid { display: grid; gap: 30px; position: relative; z-index: 1; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--muted); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px,4.2vw,34px); line-height: 1.14; letter-spacing: -.02em; color: #fff; }
.hero__subtitle { margin-top: 16px; color: var(--muted); font-size: clamp(14px,2.2vw,16px); max-width: 540px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__stats { list-style: none; padding: 0; margin-top: 28px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.hero__stats li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color .2s ease, transform .2s var(--ease); }
.hero__stats li:hover { border-color: var(--line-2); transform: translateY(-3px); }
.hero__stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: #fff; }
.hero__stats b .accent, .hero__stats b span { color: var(--accent); }
.hero__stats > li > span { font-size: 13px; color: var(--muted-2); }

/* ---------- Форма ---------- */
.hero__form-wrap { display: flex; }
.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 20px 20px; box-shadow: var(--glow); width: 100%; border: 1px solid var(--line); }
.lead-form__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; color: #fff; }
.lead-form__sub { color: var(--muted); font-size: 14px; margin: 6px 0 18px; }
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-family: var(--font-body); font-size: 16px; color: var(--ink); background: rgba(255,255,255,.04); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.field input::placeholder { color: var(--muted-2); }
.field input:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.06); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.is-invalid input { border-color: #ef5b50; box-shadow: 0 0 0 4px rgba(239,91,80,.14); }
.field__error { display: none; color: #ff8079; font-size: 12.5px; margin-top: 6px; }
.field.is-invalid .field__error, .field__error.is-visible { display: block; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin-top: 4px; }
.consent input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.lead-form__note { font-size: 12px; color: var(--muted-2); text-align: center; margin-top: 12px; }
.lead-form .btn { margin-top: 16px; }
.form-result { margin-top: 16px; padding: 16px; border-radius: var(--r-sm); font-size: 14.5px; text-align: center; }
.form-result.is-success { background: var(--green-soft); color: #8ef0c0; border: 1px solid rgba(43,208,127,.35); }
.form-result.is-error { background: rgba(239,91,80,.12); color: #ff9a93; border: 1px solid rgba(239,91,80,.35); }
.form-result b { display: block; font-size: 16px; margin-bottom: 2px; color: #fff; }

/* ---------- Секции ---------- */
.section { padding: 52px 0; }
.section--alt { background: var(--bg-2); }
.section__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(23px,5vw,34px); letter-spacing: -.02em; text-align: center; line-height: 1.15; color: #fff; }
.section__title--left { text-align: left; }
.section__sub { text-align: center; color: var(--muted); margin-top: 10px; }

/* Выгоды */
.benefits__grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; transition: transform .2s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.bcard:hover { transform: translateY(-5px); border-color: rgba(255,122,24,.4); box-shadow: 0 18px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(255,122,24,.2); }
.bcard__icon { width: 50px; height: 50px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid rgba(255,122,24,.3); border-radius: 14px; font-size: 24px; margin-bottom: 16px; transition: transform .2s var(--ease); }
.bcard:hover .bcard__icon { transform: scale(1.12) rotate(-4deg); }
.bcard h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: #fff; }
.bcard p { color: var(--muted); font-size: 14.5px; }

/* Как это работает */
.how__steps { list-style: none; padding: 0; margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; transition: transform .2s var(--ease), border-color .2s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--line-2); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 700; border-radius: 12px; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(255,122,24,.35); }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 5px; color: #fff; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Кому подходит */
.fits__inner { display: grid; gap: 26px; }
.fits__lead { color: var(--muted); font-size: 17px; margin-top: 12px; }
.fits__list { list-style: none; padding: 0; display: grid; gap: 12px; }
.fits__list li { position: relative; padding: 15px 16px 15px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 15.5px; }
.fits__list li::before { content: "✓"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); border: 1px solid rgba(43,208,127,.4); border-radius: 50%; font-size: 14px; font-weight: 700; }

/* Тизер калькулятора */
.calc-teaser { position: relative; overflow: hidden; background:
  radial-gradient(600px 300px at 80% 0%, rgba(255,122,24,.16), transparent 60%), var(--surface);
  border: 1px solid var(--line); color: #fff; border-radius: var(--r-lg); padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.calc-teaser h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px,4vw,30px); }
.calc-teaser p { color: var(--muted); max-width: 520px; }
.calc-teaser__big { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px,6vw,44px); color: var(--accent); }

/* Калькулятор (страница) */
.calc__card { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--glow); overflow: hidden; display: grid; grid-template-columns: 1fr; }
.calc__controls { padding: 28px 24px; }
.calc__row { margin-bottom: 26px; }
.calc__row:last-child { margin-bottom: 0; }
.calc__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.calc__value { float: right; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; }
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin-top: 18px; background: rgba(255,255,255,.10); border-radius: 999px; outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 4px 14px rgba(255,122,24,.5); cursor: pointer; transition: transform .12s var(--ease); }
.slider::-webkit-slider-thumb:active { transform: scale(1.2); }
.slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); cursor: pointer; }
.calc__result { background: radial-gradient(500px 300px at 50% 0%, rgba(255,122,24,.18), transparent 60%), var(--surface-2); border-left: 1px solid var(--line); padding: 34px 24px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.calc__result-label { color: var(--muted); font-size: 14px; }
.calc__daily { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px,9vw,52px); margin: 6px 0 2px; letter-spacing: -.02em; color: #fff; }
.calc__monthly { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.calc__cta { margin-bottom: 12px; }
.calc__disclaimer { font-size: 12px; color: var(--muted-2); }

/* FAQ */
.faq__inner { max-width: 760px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 12px; overflow: hidden; transition: border-color .2s ease; }
.faq__item[open] { border-color: var(--line-2); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 50px 18px 20px; font-weight: 600; font-size: 16px; position: relative; color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); transition: transform .25s var(--ease); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__answer { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; }

/* Финальный CTA */
.cta-final__inner { display: grid; gap: 26px; }
.cta-final__copy h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px,5vw,34px); letter-spacing: -.02em; color: #fff; }
.cta-final__copy p { color: var(--muted); margin-top: 12px; font-size: 16px; }
.cta-final__small { font-size: 12px; color: var(--muted-2); margin-top: 4px !important; }

/* Заглушка */
.stub { min-height: 56vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.stub__icon { font-size: 46px; margin-bottom: 14px; }
.stub h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px,6vw,40px); letter-spacing: -.02em; color: #fff; }
.stub p { color: var(--muted); margin: 12px auto 22px; max-width: 460px; }

/* Подвал */
.site-footer { background: #070b12; border-top: 1px solid var(--line); color: var(--muted); padding: 44px 0 24px; margin-bottom: 64px; }
.footer__inner { display: grid; gap: 28px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer__col a { display: block; color: var(--muted); text-decoration: none; margin-bottom: 8px; font-size: 14.5px; transition: color .15s ease; }
.footer__col a:hover { color: var(--accent); }
.logo--footer { margin-bottom: 14px; }
.footer__company { color: #fff; font-weight: 600; margin-bottom: 10px; }
.footer__disclaimer { font-size: 12.5px; color: var(--muted-2); max-width: 420px; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted-2); }

/* Липкая кнопка (моб.) */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--accent); color: #fff; text-align: center; padding: 16px; border-radius: 999px; font-weight: 600; text-decoration: none; box-shadow: 0 12px 28px rgba(255,122,24,.5); }

/* Анимации появления (играют независимо от системной настройки «без анимации») */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ============ Адаптив ============ */
@media (min-width: 680px) {
  .header__phone { font-size: 15px; }
  .hero__stats { grid-template-columns: repeat(4,1fr); }
  .benefits__grid { grid-template-columns: repeat(2,1fr); }
  .how__steps { grid-template-columns: repeat(2,1fr); }
  .calc__card { grid-template-columns: 1.3fr 1fr; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .fits__list { grid-template-columns: repeat(2,1fr); }
  .sticky-cta { display: none; }
  .site-footer { margin-bottom: 0; }
}

@media (max-width: 899px) {
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 18px 16px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .2s ease; }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .main-nav a::after { display: none; }
  .nav-toggle { display: flex; }
  .header__phone span:last-child { display: none; }
}
@media (min-width: 900px) { .nav-toggle { display: none; } .header__cta { display: inline-flex; } }

@media (min-width: 960px) {
  .section { padding: 80px 0; }
  .hero { padding: 70px 0 86px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 50px; }
  .benefits__grid { grid-template-columns: repeat(4,1fr); }
  .how__steps { grid-template-columns: repeat(4,1fr); }
  .fits__inner { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .fits__list { grid-template-columns: 1fr; }
  .cta-final__inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ---------- Премиальные штрихи ---------- */
.site-header.is-scrolled { background: rgba(7,11,18,.94); box-shadow: 0 8px 30px rgba(0,0,0,.45); }
@media (prefers-reduced-motion: no-preference) {
  .hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 320px at 18% 28%, rgba(255,122,24,.10), transparent 60%); pointer-events: none; z-index: 0; animation: drift 16s ease-in-out infinite alternate; }
  @keyframes drift { to { transform: translate3d(46px,-26px,0) scale(1.12); } }
  .reveal { transform: translateY(24px) scale(.985); }
  .reveal.is-in { transform: none; }
}

/* ---------- Едущая машина в герое ---------- */
.hero__track { position: relative; height: 56px; margin: 22px 0 16px; }
.hero__road { position: absolute; left: 4px; right: 4px; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,122,24,.5) 20%, rgba(255,122,24,.5) 80%, transparent); }
.hero__road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.20) 0 9px, transparent 9px 22px); }
.hero__car { position: absolute; left: 0; bottom: 1px; width: 92px; }
.hero__car svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 10px rgba(255,122,24,.25)); }
.hero__car.is-driving { left: calc(100% - 92px); }
.hero__stats li.is-lit { border-color: rgba(255,122,24,.55); box-shadow: 0 0 0 1px rgba(255,122,24,.35), 0 12px 28px rgba(0,0,0,.45); }
.hero__stats li.is-lit b { color: var(--accent); }
.lead-form.is-target { box-shadow: 0 0 0 2px rgba(255,122,24,.55), var(--glow); }
@media (prefers-reduced-motion: no-preference) {
  .hero__car { transition: left 3.2s cubic-bezier(.45,.05,.25,1); }
  .hero__car.is-driving { left: calc(100% - 92px); }
  .hero__car.is-driving svg { animation: carbob .5s ease-in-out infinite alternate; }
  @keyframes carbob { to { transform: translateY(-2px); } }
  .hero__stats li.is-lit { animation: statpop .5s var(--ease); }
  @keyframes statpop { 40% { transform: translateY(-5px) scale(1.05); } }
  .lead-form.is-target { animation: targetpulse 1s ease 2; }
  @keyframes targetpulse { 50% { box-shadow: 0 0 0 5px rgba(255,122,24,.45), 0 0 44px rgba(255,122,24,.35); } }
}

/* ---------- Карта-маршрут с машиной ---------- */
.hero__scene { margin: 18px 0 4px; background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; overflow: hidden; }
.hero__map { width: 100%; height: auto; display: block; overflow: visible; }
.map-grid line { stroke: rgba(255,255,255,.04); stroke-width: 1; }
.ru-shape { fill: rgba(255,122,24,.06); stroke: rgba(255,122,24,.40); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
#routeTrail { stroke-dasharray: 3000; stroke-dashoffset: 3000; }
#carG { filter: drop-shadow(0 4px 8px rgba(255,122,24,.4)); }
.pin__dot { fill: var(--surface); stroke: rgba(255,255,255,.35); stroke-width: 3; transition: fill .35s ease, stroke .35s ease; }
.pin__stem { stroke: var(--line-2); stroke-width: 2; transition: stroke .35s ease; }
.pin__box { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; transition: fill .35s ease, stroke .35s ease; }
.pin__val { font-family: var(--font-display); font-weight: 700; font-size: 14px; fill: var(--muted); transition: fill .35s ease; }
.pin__cap { font-family: var(--font-body); font-size: 10px; fill: var(--muted-2); transition: fill .35s ease; }
.pin.is-lit .pin__dot { fill: var(--accent); stroke: var(--accent); }
.pin.is-lit .pin__stem { stroke: var(--accent); }
.pin.is-lit .pin__box { fill: rgba(255,122,24,.16); stroke: var(--accent); }
.pin.is-lit .pin__val { fill: #fff; }
.pin.is-lit .pin__cap { fill: var(--accent); }
@media (max-width: 640px) {
  .pin__cap { display: none; }
  .hero__scene { margin-top: 14px; }
}

/* ---------- Авто в наличии ---------- */
.cars__filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 26px 0 4px; }
.filter-chip { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--muted); font-size: 14px; font-weight: 500; font-family: var(--font-body); cursor: pointer; transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.filter-chip:hover { color: #fff; border-color: var(--accent); }
.filter-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cars__grid { margin-top: 26px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.car-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.car-card:hover { transform: translateY(-5px); border-color: rgba(255,122,24,.4); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.car-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0c121d; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.car-card:hover .car-card__media img { transform: scale(1.06); }
.car-card__year { position: absolute; top: 10px; left: 10px; background: rgba(10,15,24,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.car-card__body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-card__title { font-size: 17px; font-weight: 700; color: #fff; }
.car-card__specs { display: flex; flex-wrap: wrap; gap: 8px; }
.car-card__specs span { font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.car-card__price { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); margin-top: auto; }
.car-card__price small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 11.5px; color: var(--muted-2); letter-spacing: 0; }
.car-card .btn { margin-top: 4px; }
.cars__note { text-align: center; color: var(--muted-2); font-size: 13px; margin-top: 28px; max-width: 600px; margin-inline: auto; }
@media (min-width: 560px) { .cars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) { .cars__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1120px) { .cars__grid { grid-template-columns: repeat(4, 1fr); } }
