/* ==========================================================================
   YES AUTO — дизайн-система
   Шрифт: TT Firs Text (как на референсе debritour.ru, нужна лицензия TypeType),
   до покупки лицензии подставляется Onest из Google Fonts.
   ========================================================================== */

:root {
  --bg: #F2F2EF;
  --surface: #FFFFFF;
  --surface-2: #F7F7F5;
  --ink: #16171A;
  --ink-2: #5C5F66;
  --ink-3: #8D9097;
  --line: #E4E4E0;
  --accent: #FFDF00;          /* фирменный жёлтый YES AUTO */
  --accent-2: #F5D000;
  --accent-ink: #16171A;
  --dark: #0F1012;
  --dark-2: #18191C;
  --dark-3: #232428;
  --dark-line: rgba(255, 255, 255, .09);
  --ok: #1F9D55;
  --warn: #E08A00;

  --font: "TT Firs Text", "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --wrap: 1320px;
  --gut: 16px;
  --header-h: 72px;
  color-scheme: light;
}

@media (min-width: 768px) { :root { --gut: 32px; } }
@media (min-width: 1280px) { :root { --gut: 40px; --header-h: 84px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.dark :focus-visible, .hero :focus-visible { outline-color: var(--accent); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- типографика ---------- */
.h1 { font-size: clamp(40px, 7.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 500; }
.h2 { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.04em; font-weight: 500; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.025em; font-weight: 500; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.dark .muted, .hero .muted { color: rgba(255, 255, 255, .62); }

/* [ Метка ] — из референса Morecar */
.eyebrow {
  display: inline-flex; align-items: center; gap: .35em;
  font-size: 14px; letter-spacing: .01em; color: var(--ink-2);
  margin-bottom: 20px;
}
.eyebrow::before { content: "["; }
.eyebrow::after { content: "]"; }
.dark .eyebrow { color: rgba(255, 255, 255, .55); }

.sec { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.sec--tight { padding: clamp(56px, 7vw, 96px) 0; }
.sec-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 5vw, 64px); }
@media (min-width: 1024px) {
  .sec-head--split { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 40px; }
  .sec-head--split .lead { justify-self: end; }
}
.dark { background: var(--dark); color: #fff; }
.dark .lead { color: rgba(255, 255, 255, .64); }

/* ---------- кнопки ---------- */
.btn {
  --h: 56px;
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 26px;
  border-radius: var(--r-sm);
  font-weight: 500; font-size: 16px; line-height: 1.1; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 10px 30px -10px rgba(255, 223, 0, .6); }
/* блик по кнопке — анимация с debritour */
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -75%; z-index: -1;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.btn--primary:hover::after { animation: shine .9s var(--ease); }
@keyframes shine { 0% { left: -75%; opacity: 0; } 20% { opacity: 1; } 100% { left: 125%; opacity: 0; } }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2B30; }
.btn--ghost { border: 1px solid currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--glass:hover { background: rgba(255, 255, 255, .2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); }
.btn--sm { --h: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.btn .arr {
  display: grid; place-items: center; width: 28px; height: 28px; margin-right: -10px;
  border-radius: 8px; background: rgba(0, 0, 0, .08);
  transition: transform .3s var(--ease);
}
.btn--dark .arr, .btn--glass .arr { background: rgba(255, 255, 255, .12); }
.btn:hover .arr { transform: translateX(3px); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translate(3px, -3px); }

/* ---------- иконки ---------- */
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- анимация появления (как на debritour.ru) ---------- */
[data-anim] {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
}
.is-inview [data-anim], [data-anim].is-inview { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
}

/* ==========================================================================
   ШАПКА
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
  color: #fff;
}
.header.is-solid, .header--light { background: rgba(255, 255, 255, .88); color: var(--ink); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); box-shadow: 0 1px 0 var(--line); }
.header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: var(--accent); color: var(--ink); font-weight: 800; font-size: 15px; letter-spacing: -.04em;
}
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font-weight: 700; font-size: 18px; letter-spacing: -.03em; }
.logo__txt small { font-size: 11px; opacity: .6; margin-top: 3px; letter-spacing: .01em; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { padding: 10px 12px; border-radius: 10px; font-size: 15px; transition: background-color .25s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(127, 127, 127, .14); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header__phone { display: none; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.header__phone b { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.header__phone small { font-size: 12px; opacity: .6; }
.msgs { display: flex; gap: 6px; }
.msg {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px;
  background: rgba(127, 127, 127, .14); transition: background-color .25s var(--ease), color .25s var(--ease);
  font-size: 11px; font-weight: 700; letter-spacing: -.02em;
}
.msg:hover { background: var(--accent); color: var(--ink); }
.msg .i { width: 18px; height: 18px; }
.header__icons { display: flex; gap: 6px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(127, 127, 127, .14); }
.icon-btn:hover { background: rgba(127, 127, 127, .24); }
.icon-btn .count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.icon-btn .count:empty, .icon-btn .count[data-n="0"] { display: none; }
.burger { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(127, 127, 127, .14); }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px; position: relative; transition: transform .3s var(--ease); }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.header .msgs, .header .header__icons { display: none; }
@media (min-width: 768px) { .header .msgs { display: flex; } .header .header__icons { display: flex; } }
@media (min-width: 1100px) { .header__phone { display: flex; } }
@media (min-width: 1280px) { .nav { display: flex; } .burger { display: none; } }

/* мобильное меню */
.mnav {
  position: fixed; inset: 0; z-index: 49; background: var(--dark); color: #fff;
  padding: calc(var(--header-h) + 16px) var(--gut) 120px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.menu-open .mnav { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.menu-open .header { background: var(--dark); color: #fff; box-shadow: none; }
.mnav a.mnav__l { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 26px; letter-spacing: -.03em; border-bottom: 1px solid var(--dark-line); }
.mnav__foot { margin-top: 28px; display: grid; gap: 14px; }
.mnav__foot .msgs .msg { width: auto; padding: 0 16px; height: 48px; font-size: 14px; font-weight: 500; background: var(--dark-3); color: #fff; }

/* липкая нижняя панель на мобильных */
.mbar {
  position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 48;
  display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px; padding: 6px;
  background: rgba(15, 16, 18, .92); border-radius: 18px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .5);
  transform: translateY(calc(100% + 16px)); transition: transform .5s var(--ease);
}
.mbar.is-on { transform: none; }
.mbar a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 13px; color: #fff; font-size: 14px; font-weight: 500; background: var(--dark-3); }
.mbar a.mbar__main { background: var(--accent); color: var(--ink); }
@media (min-width: 1024px) { .mbar { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 76px; } }

/* ==========================================================================
   ПЕРВЫЙ ЭКРАН
   ========================================================================== */
.hero {
  position: relative; color: #fff; background: var(--dark);
  min-height: 100svh; display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 24px);
  overflow: hidden; isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg-item {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.4s var(--ease), transform 7s linear;
}
.hero__bg-item.is-active { opacity: 1; transform: scale(1); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, .92) 0%, rgba(10, 11, 13, .72) 42%, rgba(10, 11, 13, .25) 100%),
    linear-gradient(0deg, rgba(10, 11, 13, .95) 0%, rgba(10, 11, 13, 0) 45%);
}
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(180deg, rgba(10, 11, 13, .55) 0%, rgba(10, 11, 13, .82) 40%, rgba(10, 11, 13, .97) 100%); }
}
.hero__main { flex: 1; display: grid; align-content: center; gap: 28px; padding-bottom: 32px; }
.hero__loc { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.hero__loc .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 223, 0, .2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255, 223, 0, 0); } }
.hero h1 { max-width: 11.5em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: rgba(255, 255, 255, .72); max-width: 32em; }

/* быстрый поиск */
.qs {
  display: grid; gap: 8px; padding: 8px; max-width: 760px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
}
@media (min-width: 768px) { .qs { grid-template-columns: 1fr 1fr auto; } }
.qs__f { position: relative; }
.qs__f label { position: absolute; left: 18px; top: 9px; font-size: 12px; color: rgba(255, 255, 255, .55); pointer-events: none; }
.qs select {
  width: 100%; height: 60px; padding: 22px 40px 0 18px; border-radius: 14px; border: 0;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 16px; font-weight: 500; appearance: none; -webkit-appearance: none;
  transition: background-color .25s var(--ease);
}
.qs select:hover { background: rgba(255, 255, 255, .14); }
.qs select option { color: var(--ink); }
.qs__f::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border: solid rgba(255, 255, 255, .7); border-width: 0 1.6px 1.6px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.qs .btn { --h: 60px; border-radius: 14px; }

.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.hero__ctas .link-arrow { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .3); padding-bottom: 3px; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact {
  padding: 16px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.fact b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.fact span { display: block; margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .62); line-height: 1.3; }

.hero__bottom { display: grid; gap: 16px; padding-bottom: 28px; }
@media (min-width: 1024px) { .hero__bottom { grid-template-columns: 1fr 300px; align-items: end; gap: 24px; } }

/* карточка слайдера — как на debritour */
.hslide {
  display: none; grid-template-columns: 96px 1fr; gap: 14px; align-items: center;
  padding: 10px; border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
@media (min-width: 1024px) { .hslide { display: grid; } }
.hslide__img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.hslide__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s var(--ease); }
.hslide__img img.is-active { opacity: 1; }
.hslide__txt { position: relative; min-height: 60px; }
.hslide__t { position: absolute; inset: 0; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hslide__t.is-active { opacity: 1; transform: none; }
.hslide__t b { display: block; font-weight: 500; font-size: 15px; line-height: 1.25; }
.hslide__t small { font-size: 13px; color: rgba(255, 255, 255, .55); }
.hslide__dots { display: flex; gap: 6px; margin-top: 10px; grid-column: 1 / -1; padding: 0 4px 2px; }
.hslide__dot { position: relative; flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.hslide__dot::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hslide__dot.is-active::after { animation: dotfill 6.5s linear forwards; }
.hslide__dot.is-done::after { transform: scaleX(1); }
@keyframes dotfill { to { transform: scaleX(1); } }

/* ==========================================================================
   БЕГУЩАЯ СТРОКА
   ========================================================================== */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   СЦЕНАРИИ
   ========================================================================== */
.scen { display: grid; gap: 12px; }
@media (min-width: 768px) { .scen { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .scen { grid-template-columns: repeat(4, 1fr); } }
.scard {
  position: relative; display: flex; flex-direction: column; min-height: 380px;
  padding: 22px; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.scard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.scard__top { display: flex; justify-content: space-between; align-items: center; }
.num { display: inline-flex; padding: 4px 8px; border-radius: 7px; background: var(--surface-2); font-size: 12px; color: var(--ink-2); }
.dots { display: flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--ink); }
.scard__img { position: relative; margin: 18px -22px; height: 170px; overflow: hidden; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.06); }
.scard h3 { margin-top: auto; }
.scard p { margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.scard .btn { margin-top: 20px; }
.scard--accent { background: var(--accent); }
.scard--accent .num { background: rgba(0, 0, 0, .08); color: var(--ink); }
.scard--accent p { color: rgba(22, 23, 26, .72); }
.scard--dark { background: var(--dark-2); color: #fff; }
.scard--dark p { color: rgba(255, 255, 255, .62); }
.scard--dark .num { background: var(--dark-3); color: rgba(255, 255, 255, .7); }
.scard--dark .dots i { background: var(--dark-3); } .scard--dark .dots i.on { background: var(--accent); }

/* ==========================================================================
   КАРТОЧКА АВТО
   ========================================================================== */
.car {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.car:hover { box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .3); transform: translateY(-3px); }
.car__media { position: relative; aspect-ratio: 4 / 3; background: #DADAD6; overflow: hidden; }
.car__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.car:hover .car__media img { transform: scale(1.04); }
.car__badges { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 70px); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px;
  border-radius: 8px; background: rgba(255, 255, 255, .92); color: var(--ink);
  font-size: 12px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge .i { width: 14px; height: 14px; }
.badge--ok { color: var(--ok); }
.badge--new { background: var(--accent); }
.badge--dark { background: rgba(15, 16, 18, .8); color: #fff; }
.car__acts { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.car__act {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255, 255, 255, .92); color: var(--ink); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.car__act:hover { transform: scale(1.06); }
.car__act[aria-pressed="true"] { background: var(--accent); }
.car__act[aria-pressed="true"] .i-heart { fill: currentColor; }
.car__body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.car__name { font-weight: 500; font-size: 18px; letter-spacing: -.02em; line-height: 1.25; }
.car__meta { font-size: 14px; color: var(--ink-2); }
.car__price { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.car__price b { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.car__price small { font-size: 13px; color: var(--ink-2); }
.car__link { position: absolute; inset: 0; z-index: 1; }
.car__acts, .car__badges { z-index: 2; }

/* карусель */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px var(--gut) 24px; margin: 0 calc(var(--gut) * -1);
  scroll-padding: 0 var(--gut);
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail__track { grid-auto-columns: calc((100% - 12px * 1) / 2.15); } }
@media (min-width: 1024px) { .rail__track { grid-auto-columns: calc((100% - 12px * 2) / 3.2); } }
@media (min-width: 1280px) { .rail__track { grid-auto-columns: calc((100% - 12px * 3) / 4); padding: 4px 0 24px; margin: 0; } }
.rail__nav { display: flex; gap: 8px; }
.round {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.round:hover { background: var(--accent); border-color: var(--accent); }
.round:disabled { opacity: .35; pointer-events: none; }
.rail-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* ==========================================================================
   ПРОВЕРКА
   ========================================================================== */
.check { display: grid; gap: 40px; }
@media (min-width: 1024px) { .check { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } .check__aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.steps { display: grid; gap: 12px; counter-reset: s; }
.step {
  display: grid; grid-template-columns: 1fr; gap: 0; border-radius: var(--r-lg); background: var(--surface); overflow: hidden;
}
@media (min-width: 640px) { .step { grid-template-columns: 1fr 240px; } }
.step__txt { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step__n { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.step__n .ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ink); }
.step h3 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.step p { font-size: 15px; color: var(--ink-2); }
.step ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.step li { padding: 5px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.step__img { position: relative; min-height: 180px; }
.step__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-note {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 7px;
  background: rgba(15, 16, 18, .7); color: #fff; font-size: 11px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* отчёт — мини-превью */
.report { margin-top: 32px; padding: 22px; border-radius: var(--r-lg); background: var(--dark); color: #fff; }
.report__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.report__head b { font-weight: 500; }
.report__row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--dark-line); font-size: 14px; }
.report__row span:first-child { color: rgba(255, 255, 255, .62); }
.okmark { display: inline-flex; align-items: center; gap: 6px; color: #7BE3A4; }
.okmark .i { width: 16px; height: 16px; }

/* ==========================================================================
   14 ДНЕЙ
   ========================================================================== */
.days {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl); background: var(--accent); color: var(--ink);
  padding: clamp(28px, 5vw, 64px); display: grid; gap: 28px;
}
@media (min-width: 1024px) { .days { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.days__num {
  font-size: clamp(160px, 28vw, 380px); line-height: .78; font-weight: 600; letter-spacing: -.08em;
  position: relative;
}
.days__num small { display: block; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; margin-top: 18px; font-weight: 500; line-height: 1.1; }
.days .lead { color: rgba(22, 23, 26, .78); }
.days__list { display: grid; gap: 10px; margin: 24px 0 28px; }
.days__list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.days__list .i { margin-top: 2px; }
.days__stamp {
  position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; z-index: -1; opacity: .18;
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   КРЕДИТ
   ========================================================================== */
.credit { display: grid; gap: 12px; }
@media (min-width: 1024px) { .credit { grid-template-columns: 1.25fr 1fr; } }
.panel { background: var(--surface); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
.panel--dark { background: var(--dark); color: #fff; }
.range { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.range:first-child { padding-top: 0; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range__top label { color: var(--ink-2); font-size: 15px; }
.range__top output { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--p), var(--line) var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 3px solid var(--ink); cursor: grab; }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.pay { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.pay__sum { font-size: clamp(44px, 6vw, 72px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.pay__sum small { font-size: .38em; letter-spacing: -.02em; color: rgba(255, 255, 255, .6); }
.pay__rows { display: grid; gap: 0; }
.pay__rows div { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--dark-line); font-size: 15px; }
.pay__rows span { color: rgba(255, 255, 255, .6); }
.pay .btn { margin-top: auto; }
.fine { font-size: 12px; line-height: 1.45; color: var(--ink-3); }
.panel--dark .fine { color: rgba(255, 255, 255, .4); }
.banks { margin-top: 12px; }
.bank {
  display: grid; place-items: center; min-width: 170px; height: 72px; padding: 0 24px;
  border-radius: var(--r-md); background: var(--surface); border: 1px dashed #CFCFCA;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
}
.cr-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.cr-fact { padding: 16px; border-radius: var(--r-md); background: var(--surface-2); }
.cr-fact b { display: block; font-size: 26px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.cr-fact span { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.3; }

/* ==========================================================================
   КВИЗ
   ========================================================================== */
.quiz-wrap { display: grid; gap: 12px; }
@media (min-width: 1024px) { .quiz-wrap { grid-template-columns: 1fr 1.35fr; } }
.quiz-side { position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 360px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(22px, 3vw, 36px); isolation: isolate; }
.quiz-side > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quiz-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 11, 13, .92), rgba(10, 11, 13, .1) 70%); }
.quiz-side ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.quiz-side li { padding: 7px 12px; border-radius: 9px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 14px; }
.quiz { position: relative; display: flex; flex-direction: column; min-height: 520px; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.quiz__bar { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-bottom: 32px; }
.quiz__bar i { display: block; height: 100%; width: 20%; background: var(--ink); border-radius: 2px; transition: width .6s var(--ease); }
.qstep { display: none; flex-direction: column; gap: 20px; flex: 1; animation: qin .6s var(--ease); }
.qstep.is-active { display: flex; }
@keyframes qin { from { opacity: 0; transform: translateX(24px); } }
.qstep h3 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-weight: 500;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.quiz__nav { margin-top: auto; padding-top: 24px; display: flex; gap: 10px; }
.quiz__nav .btn--ghost { border-color: var(--line); }
.drop {
  display: grid; place-items: center; gap: 6px; padding: 28px; border: 1.5px dashed #CFCFCA; border-radius: var(--r-md);
  text-align: center; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.drop:hover { border-color: var(--ink); background: var(--surface-2); }
.drop b { color: var(--ink); font-weight: 500; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }

/* ==========================================================================
   ФОРМЫ
   ========================================================================== */
.field { position: relative; display: block; }
.field input, .field select, .field textarea {
  width: 100%; height: 60px; padding: 24px 18px 8px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface); font-size: 16px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.field textarea { height: 110px; resize: vertical; padding-top: 28px; }
.field span { position: absolute; left: 19px; top: 19px; font-size: 16px; color: var(--ink-3); pointer-events: none; transition: all .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22, 23, 26, .06); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select + span { top: 9px; font-size: 12px; }
.field--sel::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border: solid var(--ink-2); border-width: 0 1.6px 1.6px 0; transform: translateY(-50%) rotate(45deg); pointer-events: none; }
.field.is-err input { border-color: #D33; animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.dark .field input, .dark .field select, .dark .field textarea, .panel--dark .field input { background: var(--dark-2); border-color: var(--dark-line); color: #fff; }
.dark .field span, .panel--dark .field span { color: rgba(255, 255, 255, .45); }
.dark .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 223, 0, .12); }
.form { display: grid; gap: 10px; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.dark .check-line, .panel--dark .check-line { color: rgba(255, 255, 255, .55); }
.check-line input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 6px; border: 1.5px solid currentColor; display: grid; place-items: center; cursor: pointer; }
.check-line input:checked { background: var(--accent); border-color: var(--accent); }
.check-line input:checked::after { content: ""; width: 9px; height: 5px; border: solid var(--ink); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check-line a { text-decoration: underline; text-underline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.dark .seg { background: var(--dark-2); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: grid; place-items: center; height: 44px; border-radius: 11px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s var(--ease); }
.seg input:checked + span { background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.dark .seg input:checked + span { background: var(--dark-3); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.hp { position: absolute; left: -9999px; }

/* ==========================================================================
   ПОД ЗАКАЗ — тёмная сцена (элемент из присланного скрина)
   ========================================================================== */
.stage { position: relative; }
.stage__car { position: relative; margin: 0 auto; max-width: 1100px; aspect-ratio: 16 / 8; }
.stage__car img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl); -webkit-mask: radial-gradient(ellipse 70% 75% at 50% 50%, #000 55%, transparent 100%); mask: radial-gradient(ellipse 70% 75% at 50% 50%, #000 55%, transparent 100%); }
.stage__glow { position: absolute; left: 50%; bottom: 8%; width: 60%; height: 30%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255, 223, 0, .18), transparent 70%); filter: blur(30px); pointer-events: none; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px;
  border-radius: 999px; background: rgba(35, 36, 40, .72); border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .78); font-size: 15px; white-space: nowrap;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7);
}
.pill b { color: #fff; font-weight: 500; }
.pill .i { color: var(--accent); }
.stage__pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 24px; position: relative; z-index: 2; }
@media (min-width: 1024px) {
  .stage__pills { display: block; margin: 0; }
  .stage__pills .pill { position: absolute; animation: float 6s ease-in-out infinite; }
  .stage__pills .pill:nth-child(1) { left: 6%; top: 10%; }
  .stage__pills .pill:nth-child(2) { right: 5%; top: 6%; animation-delay: -2s; }
  .stage__pills .pill:nth-child(3) { left: 1%; top: 44%; animation-delay: -4s; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
.dcards { display: grid; gap: 12px; position: relative; z-index: 2; }
@media (min-width: 640px) { .dcards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .dcards { grid-template-columns: repeat(4, 1fr); margin-top: -90px; } }
.dcard {
  display: flex; flex-direction: column; min-height: 220px; padding: 24px;
  border-radius: var(--r-lg); background: rgba(28, 29, 33, .78); border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.dcard:hover { border-color: rgba(255, 223, 0, .4); transform: translateY(-4px); }
.dcard__flag { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.dcard__flag b { font-size: 22px; font-weight: 500; color: #fff; letter-spacing: -.02em; }
.dcard p { font-size: 16px; line-height: 1.4; color: rgba(255, 255, 255, .78); }
.dcard dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 14px; }
.dcard dt { color: rgba(255, 255, 255, .45); }
.dcard dd { margin: 0; color: #fff; text-align: right; }
.dcard__link { margin-top: auto; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; color: var(--accent); font-weight: 500; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.dcard__link svg { transition: transform .3s var(--ease); }
.dcard:hover .dcard__link svg { transform: translate(3px, -3px); }

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.rev-top { display: grid; gap: 12px; margin-bottom: 12px; }
@media (min-width: 1024px) { .rev-top { grid-template-columns: 1fr 2fr; } }
.ymap-rate { display: flex; flex-direction: column; gap: 8px; }
.ymap-rate__n { font-size: 72px; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.stars { display: flex; gap: 3px; color: var(--accent-2); }
.stars .i { width: 20px; height: 20px; }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .counters { grid-template-columns: repeat(3, 1fr); } }
.counter { padding: 22px; border-radius: var(--r-lg); background: var(--surface); }
.counter b { display: block; font-size: clamp(36px, 4.4vw, 60px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.counter span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.counter small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.reviews { display: grid; gap: 12px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.rev { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.rev__img { position: relative; aspect-ratio: 16 / 10; }
.rev__img img { width: 100%; height: 100%; object-fit: cover; }
.rev__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rev__who { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rev__who b { font-weight: 500; }
.rev__who small { display: block; color: var(--ink-3); font-size: 13px; }
.rev p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rev__car { margin-top: auto; font-size: 13px; color: var(--ink-3); }
.vids { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
@media (min-width: 1024px) { .vids { grid-template-columns: repeat(4, 1fr); } }
.vid { position: relative; aspect-ratio: 9 / 12; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 16px; isolation: isolate; }
.vid img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.vid:hover img { transform: scale(1.05); }
.vid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(0, 0, 0, .8), transparent 60%); }
.vid__play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(255, 255, 255, .2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: grid; place-items: center; transition: background-color .3s var(--ease), transform .3s var(--ease); }
.vid:hover .vid__play { background: var(--accent); color: var(--ink); transform: scale(1.08); }
.vid b { font-weight: 500; font-size: 15px; line-height: 1.3; }
.vid small { display: block; font-size: 12px; opacity: .7; margin-top: 4px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq { grid-template-columns: 1fr 1.6fr; gap: 64px; } .faq__aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); transition: background-color .3s var(--ease), transform .4s var(--ease); }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.acc summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.acc details[open] .pm { background: var(--accent); transform: rotate(180deg); }
.acc details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
.acc__a { padding: 0 56px 26px 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.acc__a p + p { margin-top: 10px; }

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */
.contact { display: grid; gap: 12px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1.1fr; } }
.contact__form { display: flex; flex-direction: column; gap: 24px; }
.contact__map { position: relative; min-height: 420px; border-radius: var(--r-lg); overflow: hidden; background: var(--dark-2); }
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.contact__card {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
  padding: 18px; border-radius: 18px; background: rgba(15, 16, 18, .9); color: #fff;
  display: grid; gap: 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 768px) { .contact__card { grid-template-columns: 1fr auto; align-items: center; left: 16px; right: auto; bottom: 16px; max-width: 520px; } }
.contact__card b { font-weight: 500; font-size: 18px; }
.contact__card small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; margin-top: 3px; }
.clist { display: grid; gap: 0; margin-top: 8px; }
.clist a, .clist div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--dark-line); }
.clist span { color: rgba(255, 255, 255, .55); font-size: 14px; }
.clist b { font-weight: 500; }
.dark .msgs .msg { width: auto; height: 48px; padding: 0 18px; gap: 8px; display: inline-flex; font-size: 14px; font-weight: 500; background: var(--dark-3); color: #fff; }
.dark .msgs .msg:hover { background: var(--accent); color: var(--ink); }

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer { background: var(--dark); color: rgba(255, 255, 255, .6); padding: 64px 0 32px; font-size: 14px; }
.footer__big { font-size: clamp(64px, 17vw, 260px); font-weight: 600; letter-spacing: -.07em; line-height: .8; color: #fff; margin: 40px 0 36px; white-space: nowrap; }
.footer__big span { color: var(--accent); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { color: #fff; font-weight: 500; font-size: 15px; margin-bottom: 14px; }
.footer li + li { margin-top: 9px; }
.footer a:hover { color: var(--accent); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--dark-line); display: grid; gap: 10px; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, .4); }
@media (min-width: 1024px) { .footer__legal { grid-template-columns: 1fr auto; } }
.socials { display: flex; gap: 6px; margin-top: 16px; }
.socials a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--dark-3); color: #fff; font-size: 12px; font-weight: 600; }
.socials a:hover { background: var(--accent); color: var(--ink); }

/* ==========================================================================
   МОДАЛКИ, ТОСТЫ, COOKIE
   ========================================================================== */
.modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
@media (min-width: 640px) { .modal { align-items: center; padding: 24px; } }
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .35s var(--ease); }
.modal__bg { position: absolute; inset: 0; background: rgba(10, 11, 13, .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__card {
  position: relative; width: 100%; max-width: 560px; max-height: 92svh; overflow-y: auto;
  background: var(--surface); border-radius: 28px 28px 0 0; padding: 36px 22px 24px;
  transform: translateY(24px); transition: transform .5s var(--ease);
}
@media (min-width: 640px) { .modal__card { border-radius: 28px; padding: 48px 44px 36px; transform: scale(.96) translateY(12px); } }
.modal.is-open .modal__card { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.modal__close:hover { background: var(--accent); }
.modal h3 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; margin-bottom: 10px; padding-right: 40px; }
.modal .muted { margin-bottom: 24px; }
.modal--dark .modal__card { background: var(--dark-2); color: #fff; }
.modal--dark .modal__close { background: var(--dark-3); }
.modal--dark .field input { background: var(--dark); border-color: var(--dark-line); color: #fff; }
.modal--dark .field span { color: rgba(255, 255, 255, .45); }
.modal--dark .check-line { color: rgba(255, 255, 255, .55); }
.modal--dark .seg { background: var(--dark); } .modal--dark .seg input:checked + span { background: var(--dark-3); }
.thanks-steps { display: grid; gap: 10px; margin: 20px 0 24px; counter-reset: t; }
.thanks-steps li { counter-increment: t; display: flex; gap: 14px; align-items: flex-start; }
.thanks-steps li::before { content: counter(t); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--ink); font-weight: 600; font-size: 14px; }

.cookie {
  position: fixed; left: 8px; right: 8px; bottom: 92px; z-index: 60; max-width: 440px;
  display: flex; gap: 14px; align-items: center; padding: 14px 14px 14px 18px; border-radius: 16px;
  background: var(--dark-2); color: rgba(255, 255, 255, .75); font-size: 13px; line-height: 1.4;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5);
  transform: translateY(20px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease);
}
.cookie.is-on { transform: none; opacity: 1; }
.cookie a { color: #fff; text-decoration: underline; }
@media (min-width: 1024px) { .cookie { left: auto; right: 24px; bottom: 24px; } }

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 110; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px;
  transition: transform .4s var(--ease), opacity .4s var(--ease); pointer-events: none; white-space: nowrap;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

/* переключатель вариантов первого экрана — для согласования с заказчиком */
.variants {
  position: fixed; right: 12px; top: calc(var(--header-h) + 12px); z-index: 45;
  display: none; align-items: center; gap: 4px; padding: 5px 5px 5px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .95); color: var(--ink); font-size: 12px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
}
@media (min-width: 1024px) { .variants.is-on { display: flex; } }
.variants button { min-width: 30px; height: 30px; border-radius: 8px; font-weight: 600; }
.variants button[aria-pressed="true"] { background: var(--accent); }
.variants .x { color: var(--ink-3); font-weight: 400; }

/* ==========================================================================
   КАТАЛОГ
   ========================================================================== */
.page-head { padding: calc(var(--header-h) + 40px) 0 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a:hover { color: var(--ink); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--ink-3); }
.cat { display: grid; gap: 24px; padding-bottom: 96px; }
@media (min-width: 1100px) { .cat { grid-template-columns: 300px 1fr; align-items: start; } }
.filters { display: none; }
@media (min-width: 1100px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; } }
.filters.is-open { display: block; position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow-y: auto; padding: 16px var(--gut) 110px; max-height: none; }
.fpanel { background: var(--surface); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 18px; }
.fgroup { display: grid; gap: 8px; }
.fgroup > b { font-size: 14px; font-weight: 500; }
.fgroup .chips { gap: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.inp {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface-2); font-size: 15px;
  appearance: none; -webkit-appearance: none;
}
.inp:focus { outline: none; border-color: var(--ink); background: var(--surface); }
select.inp { background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.toggle { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 500; }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; cursor: pointer; transition: background-color .25s var(--ease); margin: 0; }
.toggle input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .25s var(--ease); }
.toggle input:checked { background: var(--ink); }
.toggle input:checked::after { transform: translateX(18px); background: var(--accent); }
.filters__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
@media (min-width: 1100px) { .filters__top .round { display: none; } }
.filters__apply { position: fixed; left: var(--gut); right: var(--gut); bottom: 16px; z-index: 71; }
@media (min-width: 1100px) { .filters__apply { display: none; } }
.filters:not(.is-open) .filters__apply { display: none; }

.cat__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cat__count { font-size: 15px; color: var(--ink-2); }
.cat__count b { color: var(--ink); font-weight: 500; }
.cat__tools { display: flex; gap: 8px; align-items: center; }
.cat__tools .inp { width: auto; height: 44px; }
.ffab { display: inline-flex; }
@media (min-width: 1100px) { .ffab { display: none; } }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-bottom: 16px; }
.quick::-webkit-scrollbar { display: none; }
.quick .chip { flex: none; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.empty { grid-column: 1 / -1; display: grid; gap: 24px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--dark); color: #fff; }
@media (min-width: 900px) { .empty { grid-template-columns: 1fr 1fr; align-items: center; } }
.more { display: flex; justify-content: center; margin-top: 24px; }
.active-f { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.active-f button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 13px; }
.active-f button::after { content: "×"; font-size: 16px; line-height: 1; opacity: .6; }

.cmpbar {
  position: fixed; left: 50%; bottom: 92px; z-index: 47; transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14px;
  transition: transform .5s var(--ease); white-space: nowrap;
}
.cmpbar.is-on { transform: translate(-50%, 0); }
@media (min-width: 1024px) { .cmpbar { bottom: 24px; } }

/* ==========================================================================
   КАРТОЧКА АВТОМОБИЛЯ (страница)
   ========================================================================== */
.pdp { display: grid; gap: 24px; padding-bottom: 32px; }
@media (min-width: 1100px) { .pdp { grid-template-columns: 1.55fr 1fr; align-items: start; gap: 32px; } .pdp__side { position: sticky; top: calc(var(--header-h) + 16px); } }
.gal { display: grid; gap: 8px; }
.gal__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: #DADAD6; }
.gal__main img { width: 100%; height: 100%; object-fit: cover; }
.gal__nav { position: absolute; inset: auto 12px 12px auto; display: flex; gap: 6px; }
.gal__nav .round { width: 44px; height: 44px; background: rgba(255, 255, 255, .9); border: 0; }
.gal__cnt { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 9px; background: rgba(15, 16, 18, .7); color: #fff; font-size: 13px; }
.gal__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.gal__thumbs button { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; opacity: .55; transition: opacity .2s var(--ease); outline-offset: -2px; }
.gal__thumbs button[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); }
.gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { display: grid; gap: 16px; }
.buy__price { font-size: clamp(36px, 4vw, 48px); font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.buy__sub { display: flex; flex-wrap: wrap; gap: 8px; }
.buy__sub span { padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.buy__sub b { font-weight: 600; }
.buy__btns { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.buy__btns .btn:first-child { grid-column: 1 / -1; }
.guarantee { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-md); background: var(--accent); }
.guarantee b { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--accent); font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.guarantee span { font-size: 14px; line-height: 1.35; }
.specs { display: grid; grid-template-columns: 1fr; }
@media (min-width: 640px) { .specs { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--ink-2); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.rep-grid { display: grid; gap: 12px; }
@media (min-width: 900px) { .rep-grid { grid-template-columns: 1fr 1fr; } }
.rep-item { display: flex; gap: 14px; padding: 18px; border-radius: var(--r-md); background: var(--surface-2); }
.rep-item .ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #DDF3E6; color: var(--ok); }
.rep-item b { display: block; font-weight: 500; }
.rep-item span { font-size: 14px; color: var(--ink-2); }
.body-map { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .body-map { grid-template-columns: 1.2fr 1fr; } }
.legend { display: grid; gap: 8px; font-size: 14px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; }
.honest { display: grid; gap: 12px; }
@media (min-width: 768px) { .honest { grid-template-columns: repeat(3, 1fr); } }
.honest figure { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.honest img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.honest figcaption { padding: 14px; font-size: 14px; }
.honest figcaption b { display: block; font-weight: 500; margin-bottom: 2px; }
.tabs-anchors { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 20; padding: 10px 0; background: var(--bg); margin: 8px 0 12px; }
.tabs-anchors::-webkit-scrollbar { display: none; }
.pblock { margin-top: 12px; }
.pblock .panel h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.03em; margin-bottom: 20px; }

/* защита от горизонтального скролла на узких экранах */
.credit > *, .quiz-wrap > *, .contact > *, .check > *, .faq > *, .pdp > *, .cat > *, .days > *, .rev-top > *, .hero__bottom > *, .sec-head > * { min-width: 0; }
main, .sec, .footer { overflow-x: clip; }
@media (max-width: 767px) { .stage__car { aspect-ratio: 4 / 3; } }
