/* ============================================================
   AutoTTC — site design system (light theme, brand blue)
   ============================================================ */

:root {
  --blue:      #0060e0;   /* logo blue */
  --blue-600:  #0052c4;
  --blue-700:  #0043a3;
  --blue-300:  #5b9bff;   /* blue on dark surfaces */
  --blue-100:  #d6e6ff;
  --blue-50:   #edf4ff;

  --navy:      #0b2259;   /* brand mark navy */
  --navy-800:  #0a1c48;
  --navy-900:  #061433;

  --bg:        #f4f7fb;
  --surface:   #ffffff;
  --surface-2: #edf2f8;
  --line:      #e1e7ef;
  --line-2:    #cbd5e1;

  --ink:       #0b1426;
  --ink-2:     #465266;
  --ink-3:     #7c879a;

  --ink-strong: var(--navy);   /* big numbers, strong labels */
  --blue-ink:  #0060e0;        /* blue text and links */
  --header-bg: rgba(255, 255, 255, .97);
  --placeholder: #a3adbd;
  --line-hover: #b3bfcf;
  --prose:     #1f2a3d;
  --warn-bg:   #fff7ea;
  --warn-line: #f5dfb5;
  --warn-icon-bg: #fdebc8;
  --warn-ink:  #b7791f;

  --ok:        #12a150;
  --warn:      #e09a2d;
  --danger:    #e5484d;

  /* Onest has no CJK glyphs: Chinese falls back to the system CJK fonts */
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  color-scheme: light;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  --shadow-1: 0 1px 2px rgba(11, 20, 38, .06), 0 1px 1px rgba(11, 20, 38, .04);
  --shadow-2: 0 14px 36px -16px rgba(11, 20, 38, .22);
  --shadow-3: 0 30px 70px -24px rgba(6, 20, 51, .45);

  --header-h: 72px;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── Dark theme (toggle in the header; /js/prefs.js applies it before paint) ── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0b1220;
  --surface:   #131c2e;
  --surface-2: #1a2539;
  --line:      #263350;
  --line-2:    #34435f;
  --line-hover: #4a5b7d;

  --ink:       #e8eef7;
  --ink-2:     #b2bed1;
  --ink-3:     #8794aa;
  --ink-strong: #f4f7fc;
  --prose:     #d3dbe8;
  --placeholder: #6b7891;

  --blue-ink:  #6aa5ff;
  --blue-50:   rgba(64, 140, 255, .14);
  --blue-100:  rgba(91, 155, 255, .3);
  --blue-700:  #a8c8ff;

  --navy:      #10295f;
  --navy-800:  #0d2252;
  --navy-900:  #060b16;

  --header-bg: rgba(11, 18, 32, .96);
  --warn-bg:   rgba(224, 154, 45, .1);
  --warn-line: rgba(224, 154, 45, .32);
  --warn-icon-bg: rgba(224, 154, 45, .2);
  --warn-ink:  #f0b860;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 14px 36px -16px rgba(0, 0, 0, .6);
  --shadow-3: 0 30px 70px -24px rgba(0, 0, 0, .7);
}
.logo__img--dark { display: none; }
[data-theme="dark"] .logo__img--light { display: none; }
[data-theme="dark"] .logo__img--dark { display: block; }
[data-theme="dark"] .split__media { background: #fff; }
[data-theme="dark"] .check-list li::before { filter: brightness(1.4); }
/* Legal pages ship their own light stylesheet (css/legal.css) */
[data-theme="dark"] .legal-page { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .legal { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .legal a { color: var(--blue-ink); }
[data-theme="dark"] .legal__meta { color: var(--ink-3); }
[data-theme="dark"] .legal th { background: var(--surface-2); }
[data-theme="dark"] .legal th, [data-theme="dark"] .legal td { border-color: var(--line); }
[data-theme="dark"] .legal code { background: var(--surface-2); }

/* Theme / language switches: show the option you can switch TO */
.when-dark, .when-zh { display: none; }
[data-theme="dark"] .when-dark { display: inline-flex; }
[data-theme="dark"] .when-light { display: none; }
[data-lang="zh"] .when-zh { display: inline; }
[data-lang="zh"] .when-ru { display: none; }
.lang-btn { font-size: 13px; font-weight: 700; }
/* Flags on the language switch (header, drawer) */
.lang-flag { display: inline-block; width: 18px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(11, 20, 38, .15); }

/* Chinese: page stays hidden for a moment while /js/i18n.js swaps the texts */
.i18n-pending body { visibility: hidden; }
[data-lang="zh"] .kicker, [data-lang="zh"] .footer__title, [data-lang="zh"] .car-price > span { letter-spacing: .06em; }
[data-lang="zh"] body { line-height: 1.65; }

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(0, 96, 224, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); }
body.is-locked { overflow: hidden; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────────── */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; line-height: 1; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-ink);
}
.kicker::before { content: ''; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--pill {
  padding: 9px 14px 9px 12px; border-radius: 999px;
  background: rgba(0, 96, 224, .28); border: 1px solid rgba(91, 155, 255, .4);
  color: #bcd6ff;
}
.kicker--pill::before { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); box-shadow: 0 0 0 4px rgba(91, 155, 255, .25); }
.kicker--light { color: #bcd6ff; }

.h1 { font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -.028em; }
.h2 { font-size: clamp(28px, 3.5vw, 46px); line-height: 1.1; font-weight: 750; letter-spacing: -.022em; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.lead { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.accent { color: var(--blue-ink); }
.on-dark .accent, .accent--light { color: var(--blue-300); }
.on-dark .lead { color: rgba(255, 255, 255, .74); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 12px;
  border: 1px solid transparent; background: none;
  font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 12px 26px -12px rgba(0, 96, 224, .7); }
.btn--primary:hover { background: var(--blue-600); }
.btn--ghost { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.btn--outline { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue-ink); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #eaf2ff; }
.btn--soft { background: var(--blue-50); color: var(--blue-700); }
.btn--soft:hover { background: var(--blue-100); }
.btn--sm { height: 42px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue-ink); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ── Header ───────────────────────────────────────────────── */
/* Near-opaque instead of a blurred backdrop: a blur under a sticky header is recomputed on every scrolled frame.
   The same goes for the chips over card photos and the hero: plain translucent fills, no backdrop-filter. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-1); }
.site-header__inner {
  max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: center; gap: 24px;
}
.logo { flex: none; display: inline-flex; align-items: center; gap: 9px; }
.logo img { height: 32px; width: auto; }
.logo__text { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink); white-space: nowrap; }

.main-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: 2px; }
.main-nav > a, .nav-more__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: 8px; border: 0; background: none;
  font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
  transition: color .15s, background .15s;
}
.main-nav > a:hover, .nav-more__btn:hover { color: var(--ink); background: var(--surface-2); }
.main-nav > a[aria-current="page"] { color: var(--blue-ink); background: var(--blue-50); font-weight: 600; }
/* The pulse is a scaled ring (transform + opacity run on the GPU); an animated box-shadow repainted the header 60 times a second */
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--danger); }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(229, 72, 77, .6); animation: livePulse 1.8s infinite; }
@keyframes livePulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3); opacity: 0; } }

.nav-more { position: relative; }
.nav-more__btn svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-more.is-open .nav-more__btn svg { transform: rotate(180deg); }
.nav-more__menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-2); padding: 6px; display: grid;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .18s, transform .18s;
}
.nav-more.is-open .nav-more__menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-more__menu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; }
.nav-more__menu a:hover { background: var(--surface-2); color: var(--ink); }

.header-actions { flex: none; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; flex: none;
  display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  transition: color .15s, border-color .15s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.lang-btn { width: auto; padding: 0 11px; white-space: nowrap; } /* flag + 中文 / RU */
.icon-btn .lang-flag { width: 18px; height: 12px; }
.icon-btn:hover { color: var(--blue-ink); border-color: var(--blue-100); }
.icon-btn[aria-current="page"] { color: var(--blue-ink); border-color: var(--blue); }
.icon-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 19px; text-align: center;
  border: 2px solid var(--surface);
}
.icon-btn__count[hidden] { display: none; }
.burger { display: none; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.burger span + span { margin-top: 4px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--surface); overflow-y: auto; padding: 16px var(--gutter) 40px;
  transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer nav { display: grid; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer nav a[aria-current="page"] { color: var(--blue-ink); }
.drawer__sub { margin-top: 24px; display: grid; gap: 4px; }
.drawer__sub a { padding: 8px 4px; color: var(--ink-2); }
.drawer .btn { margin-top: 24px; width: 100%; }

@media (max-width: 1260px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .burger { display: grid; place-content: center; }
}
@media (max-width: 560px) {
  .header-actions .btn, .header-actions .hide-sm { display: none; }
  .logo img { height: 28px; }
  .logo__text { font-size: 19px; }
}
.drawer__prefs { display: flex; gap: 8px; margin-top: 20px; }
.drawer__prefs .btn { flex: 1; margin-top: 0; }
.drawer__prefs .btn svg { width: 18px; height: 18px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding-block: var(--section-y); }
.section--white { background: var(--surface); }
.section--muted { background: var(--surface-2); }
.section--navy { background: var(--navy-900); color: #fff; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 52px); max-width: 780px; }
.section-head--center { text-align: center; justify-items: center; margin-inline: auto; }
.section-head--split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.section-head--split > :first-child { display: grid; gap: 16px; max-width: 720px; }
.section-foot { margin-top: 40px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ── First home visit: white screen and blue loading bar ── */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .7s ease, visibility 0s linear .7s;
}
:root.home-intro .page-loader {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: none;
  animation: home-loader-failsafe 0s linear 4s forwards;
}
.page-loader__bar {
  width: 160px; height: 2px; border-radius: 2px; overflow: hidden;
  background: rgba(0, 96, 224, .12);
}
.page-loader__fill { width: 100%; height: 100%; background: var(--blue); }
:root.home-intro .page-loader__fill { animation: home-loader-fill 1s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes home-loader-fill { from { width: 0; } to { width: 100%; } }
@keyframes home-loader-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* ── Home hero ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--navy-900);
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex; align-items: center;
}
.hero__media, .hero__media video, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 20, 51, .94) 0%, rgba(6, 20, 51, .72) 46%, rgba(6, 20, 51, .28) 100%),
    linear-gradient(0deg, rgba(6, 20, 51, .65) 0%, rgba(6, 20, 51, 0) 42%);
}
.hero__content { position: relative; padding-block: 96px 128px; }
.hero__inner { max-width: 760px; display: grid; gap: 26px; justify-items: start; }
.hero__title .accent { color: var(--blue-300); }
.hero__desc { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .78); max-width: 58ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero__caption {
  position: absolute; right: calc(var(--gutter) + 80px); bottom: 86px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.hero__caption::before { content: ''; width: 56px; height: 2px; background: var(--blue); }
@media (max-width: 640px) { .hero__caption { display: none; } .hero__content { padding-block: 56px 88px; } }

/* Original continuous service line over the hero video; brand strips stay independent. */
.hero-ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  overflow: hidden; padding-block: 15px;
  background: rgba(8, 8, 8, .5); border-top: 1px solid rgba(255, 255, 255, .14);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hero-ticker__track { display: flex; width: max-content; animation: hero-ticker-scroll 28s linear infinite; }
.hero-ticker__group { display: flex; align-items: center; justify-content: space-around; flex: none; min-width: 100vw; }
.hero-ticker__item {
  display: inline-flex; align-items: center; flex: none; gap: 40px; padding-inline: 40px;
  white-space: nowrap; color: rgba(255, 255, 255, .72);
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}
.hero-ticker__dot { width: 4px; height: 4px; flex: none; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px rgba(70, 116, 255, .3); }
.hero-ticker:hover .hero-ticker__track { animation-play-state: paused; }
@keyframes hero-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Trust cards ──────────────────────────────────────────── */
.card-grid { display: grid; gap: 20px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .card-grid--4 { grid-template-columns: repeat(2, 1fr); } .card-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid--4, .card-grid--3, .card-grid--2 { grid-template-columns: 1fr; } }

.feature-card {
  position: relative; display: grid; align-content: start; gap: 14px;
  padding: 28px; border-radius: var(--r-lg);
  background: $1var(--surface)$2, var(--bg) 100%);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--blue-100); }
.feature-card p { color: var(--ink-2); font-size: 15px; }
.feature-card__value { font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); }
.icon-tile {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-ink);
}
.icon-tile svg { width: 26px; height: 26px; }
.icon-tile--dark { background: rgba(255, 255, 255, .1); color: #fff; }

/* ── Brands strip ─────────────────────────────────────────── */
.brands { background: var(--blue); color: #fff; padding-block: clamp(64px, 7vw, 92px); overflow: hidden; }
.brands .section-head { margin-bottom: 40px; }
.brands .kicker { color: rgba(255, 255, 255, .8); }
.brands .lead { color: rgba(255, 255, 255, .8); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee__track { display: flex; flex: none; gap: 14px; padding-right: 14px; animation: marquee 48s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
/* Loops scrolled out of view stand still (site.js sets .is-offscreen; the hero video pauses too) */
.is-offscreen .marquee__track, .is-offscreen .hero-ticker__track { animation-play-state: paused; }
.brand-chip {
  padding: 16px 30px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07);
  font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.01em;
}

/* ── Ticker (dark) ────────────────────────────────────────── */
.ticker { background: var(--navy-900); color: #fff; padding-block: 30px; overflow: hidden; }
.ticker .marquee__track { gap: 0; padding: 0; animation-duration: 60s; }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(18px, 2vw, 24px); font-weight: 650; white-space: nowrap; }
.ticker__item::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

/* ── Path (9 steps preview) ──────────────────────────────── */
.path-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: path; }
.path-step {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start;
  padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s;
}
.path-step:hover { border-color: var(--blue-100); box-shadow: var(--shadow-2); }
.path-step__num { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-ink); font-weight: 800; font-size: 15px; }
.path-step h3 { font-size: 17px; line-height: 1.3; font-weight: 700; margin-bottom: 6px; }
.path-step p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 1024px) { .path-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .path-grid { grid-template-columns: 1fr; } }

/* ── CTA band with form ──────────────────────────────────── */
.cta-band { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); padding-block: var(--section-y); }
.cta-band__bg, .cta-band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6, 20, 51, .96) 0%, rgba(6, 20, 51, .86) 50%, rgba(6, 20, 51, .55) 100%); }
.cta-band__grid { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cta-band__text { display: grid; gap: 22px; align-content: start; }
.cta-band__text .lead { color: rgba(255, 255, 255, .76); }
@media (max-width: 960px) { .cta-band__grid { grid-template-columns: 1fr; } }

.contact-lines { display: grid; gap: 14px; margin-top: 8px; }
.contact-line { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 600; }
.contact-line svg { width: 20px; height: 20px; flex: none; color: var(--blue-300); }
.contact-line small { display: block; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.extra-phone { display: block; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .2s;
}
.social svg { width: 22px; height: 22px; }
.social:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.on-dark .social, .site-footer .social { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); }

/* ── Forms ────────────────────────────────────────────────── */
.form-card {
  background: var(--surface); color: var(--ink); border-radius: var(--r-xl); border: 1px solid var(--line);
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-3);
}
.form-card--flat { box-shadow: var(--shadow-1); }
.form-card__head { display: grid; gap: 8px; margin-bottom: 24px; }
.form-card__head p { color: var(--ink-2); font-size: 15px; }
.form-grid { display: grid; gap: 18px; }
.form-grid--2 { grid-template-columns: 1fr 1fr; }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid--2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 10px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 15px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 112px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c879a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: var(--placeholder); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-hover); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 96, 224, .12); }

.channel-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.channel-chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s;
}
.channel-chip:hover { border-color: var(--line-hover); }
.channel-chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.channel-chip__ic { width: 18px; height: 18px; display: grid; place-items: center; }
.channel-chip__ic svg { width: 100%; height: 100%; }
.channel-chip.is-active, .channel-chip:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue-700); }
.channel-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(0, 96, 224, .3); }
.channel-chips--invalid .channel-chip { border-color: var(--danger); }
.channel-required-notice, .form-error { font-size: 13px; color: var(--danger); }

.privacy-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-3); cursor: pointer; }
.privacy-consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--blue); }
.privacy-consent a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 2px; }
.form-note { font-size: 13px; color: var(--ink-3); text-align: center; }

.form-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 24px 8px; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-ink); }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success p { color: var(--ink-2); }

.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.segmented label, .segmented button { position: relative; padding: 9px 14px; border-radius: 9px; border: 0; background: none; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked), .segmented button.is-on { background: var(--surface); color: var(--blue-ink); box-shadow: var(--shadow-1); }

/* ── Inner page head (light) ─────────────────────────────── */
.page-head {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 380px at 88% 30%, rgba(0, 96, 224, .1), transparent 70%), $1var(--surface)$2, var(--surface-2) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 80px) clamp(40px, 5vw, 64px);
}
.page-head__inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.page-head__text { display: grid; gap: 18px; max-width: 820px; }
.page-head .h1 { font-size: clamp(34px, 4.4vw, 58px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink-3); }
.crumbs a:hover { color: var(--blue-ink); }
.crumbs span[aria-hidden] { opacity: .5; }
.head-stat { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--blue); }
.head-stat strong { font-size: 40px; line-height: 1; font-weight: 800; color: var(--blue-ink); letter-spacing: -.02em; }
.head-stat span { font-size: 13.5px; color: var(--ink-3); max-width: 18ch; }
.facts { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 48px); margin-top: 8px; }
.fact { display: grid; gap: 2px; }
.fact strong { font-size: 28px; line-height: 1.1; font-weight: 800; color: var(--ink-strong); letter-spacing: -.02em; }
.fact span { font-size: 13.5px; color: var(--ink-3); }

/* ── Inner page hero (dark) ──────────────────────────────── */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy-900); min-height: clamp(440px, 60vh, 620px); display: flex; align-items: center; }
.page-hero--compact { min-height: 0; padding-block: clamp(56px, 7vw, 88px); }
.page-hero__bg, .page-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(6, 20, 51, .95) 0%, rgba(6, 20, 51, .8) 50%, rgba(6, 20, 51, .45) 100%); }
.page-hero__content { position: relative; padding-block: 72px; }
.page-hero--compact .page-hero__content { padding-block: 0; }
.page-hero__inner { max-width: 780px; display: grid; gap: 22px; justify-items: start; }
.page-hero .crumbs { color: rgba(255, 255, 255, .55); }
.page-hero .crumbs a:hover { color: #fff; }

/* ── Stats overlap (about) ───────────────────────────────── */
.stats-overlap { position: relative; z-index: 2; margin-top: -72px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; box-shadow: var(--shadow-2); display: grid; gap: 6px; }
.stat-card strong { font-size: clamp(34px, 3.4vw, 44px); line-height: 1; font-weight: 800; color: var(--blue-ink); letter-spacing: -.025em; }
.stat-card span { font-size: 14.5px; color: var(--ink-2); }

/* ── Split block ──────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split__text { display: grid; gap: 20px; }
.split__text p { color: var(--ink-2); font-size: 17px; }
.split__media { border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.callout { padding: 18px 22px; border-radius: var(--r); background: var(--blue-50); border-left: 3px solid var(--blue); font-weight: 600; color: var(--ink-strong); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ── Numbered benefit cards ──────────────────────────────── */
.num-card { display: grid; align-content: start; gap: 12px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.num-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow-2); }
.num-card__num { font-size: 13px; font-weight: 800; color: var(--blue-ink); letter-spacing: .06em; }
.num-card h3 { font-size: 18px; line-height: 1.3; }
.num-card p { font-size: 14.5px; color: var(--ink-2); }

/* ── Quote ────────────────────────────────────────────────── */
.quote-card { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--navy); color: #fff; padding: clamp(32px, 5vw, 64px); }
.quote-card::before { content: '\201C'; position: absolute; top: -40px; right: 32px; font-size: 280px; line-height: 1; font-weight: 800; color: rgba(91, 155, 255, .14); }
.quote-card blockquote { position: relative; margin: 0; font-size: clamp(21px, 2.4vw, 32px); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; max-width: 30em; }
.quote-card blockquote em { font-style: normal; color: var(--blue-300); }
.quote-card figcaption { position: relative; margin-top: 28px; display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.quote-card figcaption::before { content: ''; width: 40px; height: 2px; background: var(--blue-300); }

/* ── Offices ──────────────────────────────────────────────── */
.office-card { display: flex; flex-direction: column; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.office-card__map { position: relative; height: 220px; background: var(--surface-2); z-index: 0; }
.office-card__body { display: grid; gap: 8px; padding: 24px; }
.office-card__tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.office-card__body p { font-size: 14px; color: var(--ink-2); }
.office-card__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.office-card__links a { color: var(--blue-ink); }
.office-pin { background: none; border: 0; }
.office__addr-tip { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; padding: 10px 12px; border-radius: 10px; background: rgba(6, 20, 51, .9); color: #fff; font-size: 12.5px; line-height: 1.45; opacity: 0; transform: translateY(6px); transition: .2s; pointer-events: none; }
.office__addr-tip-label { display: block; font-size: 11px; opacity: .6; margin-bottom: 2px; }
.office-card__map.show-addr .office__addr-tip { opacity: 1; transform: none; }
.office__addr-hint { position: absolute; top: 10px; right: 10px; z-index: 500; padding: 6px 10px; border-radius: 8px; border: 0; background: var(--surface); box-shadow: var(--shadow-1); font-size: 12px; font-weight: 700; color: var(--blue-ink); }

/* ── CTA (blue) ───────────────────────────────────────────── */
.cta-blue { position: relative; overflow: hidden; background: var(--blue); color: #fff; padding-block: clamp(64px, 8vw, 104px); text-align: center; }
.cta-blue::before, .cta-blue::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .16); }
.cta-blue::before { width: 620px; height: 620px; left: -220px; top: -340px; }
.cta-blue::after { width: 480px; height: 480px; right: -160px; bottom: -300px; }
.cta-blue__inner { position: relative; display: grid; justify-items: center; gap: 20px; max-width: 820px; margin-inline: auto; }
.cta-blue .lead { color: rgba(255, 255, 255, .82); }
.cta-blue__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.cta-blue .btn--ghost { border-color: rgba(255, 255, 255, .45); }

.cta-navy { background: var(--navy-900); color: #fff; padding-block: clamp(56px, 7vw, 88px); }
.cta-navy__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-navy__inner > div:first-child { display: grid; gap: 14px; max-width: 680px; }
.cta-navy .lead { color: rgba(255, 255, 255, .72); }

/* ── Catalog ──────────────────────────────────────────────── */
.catalog-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 24px; border-radius: var(--r); background: var(--navy); color: #fff;
  font-size: 14px;
}
.catalog-bar strong { font-size: 15px; }
.catalog-bar span { color: rgba(255, 255, 255, .7); }
.catalog { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; padding-block: 28px clamp(72px, 8vw, 112px); }
.sidebar { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.side-card--info { background: var(--blue-50); border-color: var(--blue-100); display: grid; gap: 10px; }
.side-card--info h3 { font-size: 16px; }
.side-card--info p { font-size: 13.5px; color: var(--ink-2); }
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filters__head h3 { font-size: 16px; }
.filters__reset { border: 0; background: none; font-size: 13px; font-weight: 600; color: var(--blue-ink); padding: 4px 0; }
.filter-group { display: grid; gap: 10px; padding-block: 16px; border-top: 1px solid var(--line); }
.filter-group:first-of-type { border-top: 0; }
.filter-group__title { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.filter-group__title output { letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600; font-size: 13px; }
.filter-group .input, .filter-group .select { height: 44px; font-size: 14px; }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range { width: 100%; accent-color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: .15s; }
.chip:hover { border-color: var(--line-hover); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: #fff; }
.filters-toggle { display: none; }

.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 10px 10px 20px; margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.toolbar__count { font-size: 14px; color: var(--ink-2); }
.toolbar__count strong { color: var(--ink); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.toolbar__sort .select { height: 42px; width: auto; min-width: 220px; font-size: 14px; text-transform: none; letter-spacing: 0; font-weight: 500; }

.cars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cars-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1240px) { .cars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .filters-toggle { display: inline-flex; }
  .sidebar .side-card--filters { display: none; }
  .sidebar.is-open .side-card--filters { display: block; }
  .cars-grid--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .cars-grid, .cars-grid--wide { grid-template-columns: 1fr; }
  .toolbar { padding: 12px; }
  .toolbar__sort { flex: 1 1 100%; min-width: 0; }
  .toolbar__sort .select { flex: 1; min-width: 0; width: 100%; }
}

.car-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.car-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-card:hover .car-card__media img { transform: scale(1.04); }
.car-card__fav {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .94); color: #465266;
  box-shadow: var(--shadow-1); transition: transform .15s, color .15s;
}
.car-card__fav svg { width: 20px; height: 20px; }
.car-card__fav:hover { transform: scale(1.08); color: var(--danger); }
.car-card__fav.is-on { color: var(--danger); }
.car-card__fav.is-on svg path { fill: currentColor; }
.badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 11px; border-radius: 999px; background: rgba(6, 20, 51, .85); color: #fff;
  font-size: 12px; font-weight: 600;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.badge--reserved::before { background: var(--warn); }
.badge--sold::before { background: var(--danger); }
/* Top-left of the card photo: the status, views right under it */
.car-card__chips { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.car-card__chips .badge { position: static; }
.views-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; background: rgba(6, 20, 51, .85); color: #fff; font-size: 12px; font-weight: 600; }
.views-chip svg { width: 14px; height: 14px; }
.car-card__overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 20, 51, .45); color: #fff; font-size: 22px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
/* A column, so .car-card__actions (margin-top: auto) sits at the bottom: buttons line up across a row of cards */
.car-card__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.car-card__title { font-size: 17px; line-height: 1.3; font-weight: 700; }
.car-card__meta { margin-top: 4px; font-size: 13.5px; color: var(--ink-3); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border-radius: 10px; background: var(--line); border: 1px solid var(--line); }
.spec { display: grid; gap: 2px; padding: 10px 12px; background: var(--bg); }
.spec__label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.spec__value { font-size: 14px; font-weight: 600; }
.car-card__price { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--blue-50); }
.car-card__price span { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.car-card__price strong { font-size: 17px; font-weight: 800; color: var(--ink-strong); letter-spacing: -.01em; white-space: nowrap; }
.car-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.car-card__actions .btn { padding: 0 12px; }
.car-card__actions .btn:only-child { grid-column: 1 / -1; }

/* Card v2: VIN, yuan price, turnkey breakdown; .gallery__nav / __count style the detail viewer */
.gallery__nav {
  position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -19px;
  display: grid; place-items: center; border-radius: 50%; border: 0;
  background: rgba(6, 20, 51, .66); color: #fff;
  opacity: .85; transition: opacity .2s, background .2s;
}
.gallery__nav svg { width: 20px; height: 20px; }
.gallery__nav:hover { background: rgba(0, 96, 224, .9); opacity: 1; }
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border-radius: 8px; background: rgba(6, 20, 51, .72); color: #fff; font-size: 12px; font-weight: 700;
}
.gallery__count svg { width: 14px; height: 14px; }
.car-card__head { display: grid; gap: 8px; }
.car-card__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.buyout-chip { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: rgba(18, 161, 80, .12); color: var(--ok); font-size: 12px; font-weight: 700; }
.vin-chip { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.car-price { display: grid; gap: 2px; }
.car-price strong { font-size: 26px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--blue-ink); }
.car-price > span { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
/* Price history: the first price crossed out after a drop; «i» shows every change (hover / tap) */
.car-price { position: relative; }
.car-price__was { font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--blue-ink); text-decoration: line-through 2px var(--danger); }
.car-price__now { display: flex; align-items: center; gap: 6px; }
.price-info__btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; }
.price-info__btn svg { width: 19px; height: 19px; }
.price-info__btn:hover, .price-info.is-open .price-info__btn { color: var(--blue-ink); background: var(--blue-50); }
.price-info__pop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; display: none; gap: 7px;
  padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  font-size: 13px; color: var(--ink);
}
.price-info:hover .price-info__pop, .price-info:focus-within .price-info__pop, .price-info.is-open .price-info__pop { display: grid; }
.price-info__pop b { font-size: 13.5px; font-weight: 800; }
.price-info__row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; }
.price-info__row span:first-child { color: var(--ink-3); }
.price-info__row span:nth-child(2) { font-weight: 700; text-align: right; white-space: nowrap; }
.price-info__row em { min-width: 84px; font-style: normal; font-size: 12.5px; text-align: right; white-space: nowrap; color: var(--ink-3); }
.price-info__row em.is-down { color: var(--ok); font-weight: 700; }
.price-info__row em.is-up { color: var(--danger); font-weight: 700; }
.calc-box { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); display: grid; gap: 5px; font-size: 13px; }
.calc-box__row, .calc-box__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-box dt { color: var(--ink-2); }
.calc-box dt small { color: var(--ink-3); font-size: 11.5px; }
.calc-box dd { margin: 0; font-weight: 700; white-space: nowrap; }
.calc-box__total { margin-top: 3px; padding-top: 8px; border-top: 1px dashed var(--line-2); }
.calc-box__total dt { color: var(--ink); font-weight: 700; }
.calc-box__total dd { font-size: 16px; font-weight: 800; color: var(--blue-ink); }
.car-specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.car-specs dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.car-specs dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.car-card__actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: auto; }
.car-card__actions .btn { padding: 0 12px; }
.car-card__title a { color: inherit; text-decoration: none; }
.car-card__title a:hover { color: var(--blue-ink); }
/* Cards in one row line up section by section: title, price, the specs line, buttons.
   Each card spans 6 rows of the catalog grid and shares them (subgrid): photo · title · price · turnkey · specs · buttons.
   Without subgrid support the flex column above still keeps the buttons at the bottom. */
@supports (grid-template-rows: subgrid) {
  .cars-grid > .car-card { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; }
  .cars-grid > .car-card > .car-card__body { display: grid; grid-row: 2 / span 5; grid-template-rows: subgrid; row-gap: 14px; }
  .cars-grid .car-card__body > .car-card__head { grid-row: 1; }
  .cars-grid .car-card__body > .car-price { grid-row: 2; align-self: end; } /* main prices on one line, a crossed-out one sits above */
  .cars-grid .car-card__body > .calc-box { grid-row: 3; align-self: start; }
  .cars-grid .car-card__body > .car-specs { grid-row: 4; align-self: start; }
  .cars-grid .car-card__body > .car-card__actions { grid-row: 5; align-self: end; margin-top: 0; }
}
.car-card__media { cursor: pointer; }
.car-card__photo { display: block; width: 100%; height: 100%; }
/* Photo / video counter on the card's main photo */
.media-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 2px;
  padding: 3px; border-radius: 9px; background: rgba(6, 20, 51, .8);
}
.media-count > * {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 0; border-radius: 6px;
  background: none; color: #fff; font: 700 12px/1.2 var(--font);
}
.media-count a { text-decoration: none; }
.media-count a:hover { background: var(--blue); }
.media-count svg { width: 13px; height: 13px; }

.rate-box { display: grid; gap: 10px; }
.rate-box__ctrl { display: flex; align-items: center; gap: 8px; }
.rate-box__ctrl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--blue-100); background: var(--surface); color: var(--blue-ink); font-size: 18px; font-weight: 700; line-height: 1; }
.rate-box__ctrl button:hover { border-color: var(--blue); }
.rate-box__value { flex: 1; text-align: center; font-size: 22px; font-weight: 800; color: var(--ink-strong); }
.rate-box__reset { justify-self: start; border: 0; background: none; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--blue-ink); }

.site-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 12px; background: var(--navy-900); color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-3); transition: opacity .2s, transform .2s var(--ease); }
.site-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.empty { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 6vw, 72px) 24px; border-radius: var(--r-xl); border: 1.5px dashed var(--line-2); background: var(--surface); grid-column: 1 / -1; }
.empty .icon-tile { width: 64px; height: 64px; border-radius: 18px; }
.empty p { color: var(--ink-2); max-width: 52ch; }
.loading { grid-column: 1 / -1; padding: 48px; text-align: center; color: var(--ink-3); }

/* ── Timeline (process) ──────────────────────────────────── */
.timeline { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, transparent, var(--blue-100) 4%, var(--blue-100) 96%, transparent); }
.tl-step { position: relative; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); }
.tl-step__media { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 3; background: var(--navy-900); box-shadow: var(--shadow-2); }
.tl-step__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.tl-step__num { justify-self: center; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--blue); color: var(--blue-ink); font-size: 20px; font-weight: 800; box-shadow: 0 0 0 10px var(--surface); }
.tl-step__text { display: grid; gap: 12px; }
.tl-step__text .kicker { font-size: 11px; }
.tl-step__text h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.015em; }
.tl-step__text p { color: var(--ink-2); font-size: 16.5px; }
.tl-step__text strong { color: var(--ink); }
.tl-step:nth-child(even) .tl-step__media { order: 3; }
.tl-step:nth-child(even) .tl-step__text { order: 1; text-align: right; justify-items: end; }
.tl-step:nth-child(even) .tl-step__num { order: 2; }
@media (max-width: 860px) {
  .timeline::before { left: 28px; }
  .tl-step, .tl-step:nth-child(even) { grid-template-columns: 56px 1fr; align-items: start; }
  .tl-step__num { width: 56px; height: 56px; font-size: 16px; grid-row: 1 / span 2; align-self: start; }
  .tl-step__media, .tl-step:nth-child(even) .tl-step__media { order: 0; grid-column: 2; }
  .tl-step__text, .tl-step:nth-child(even) .tl-step__text { order: 0; grid-column: 2; text-align: left; justify-items: start; }
  .tl-step:nth-child(even) .tl-step__num { order: 0; }
}

/* ── Cost cards ───────────────────────────────────────────── */
.cost-card { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.cost-card__tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.cost-card h3 { font-size: 24px; letter-spacing: -.015em; }
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.check-list li::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230060e0' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; margin-top: 1px; }
.cross-list li::before { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c879a' stroke-width='3.2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cost-card__note { padding: 14px 16px; border-radius: var(--r); background: var(--blue-50); color: var(--ink-strong); font-size: 14.5px; font-weight: 600; }
.wide-note { margin-top: 24px; padding: 22px 28px; border-radius: var(--r-lg); background: var(--navy); color: #fff; display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; }
.wide-note svg { width: 28px; height: 28px; flex: none; color: var(--blue-300); }
.wide-note em { font-style: normal; color: var(--blue-300); }

/* ── Services bento ──────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.svc { grid-column: span 4; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.svc p { color: var(--ink-2); font-size: 15px; }
.svc .h3 { font-size: 22px; }
.svc__num { position: absolute; top: 22px; right: 26px; font-size: 13px; font-weight: 800; color: var(--ink-3); letter-spacing: .06em; }
.svc__list { list-style: none; display: grid; gap: 8px; margin-top: auto; padding-top: 6px; }
.svc__list li { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; }
.svc__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; }
.svc--wide { grid-column: span 8; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
.svc--wide .svc__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 34px); }
.svc__img { position: relative; min-height: 280px; }
.svc__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc--dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.svc--dark p, .svc--dark .svc__num { color: rgba(255, 255, 255, .7); }
.svc--blue { background: var(--blue); border-color: var(--blue); color: #fff; justify-content: space-between; }
.svc--blue p { color: rgba(255, 255, 255, .85); }
@media (max-width: 1080px) { .svc { grid-column: span 6; } .svc--wide { grid-column: span 12; } }
@media (max-width: 680px) { .svc, .svc--wide { grid-column: span 12; } .svc--wide { grid-template-columns: 1fr; } .svc__img { min-height: 220px; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo-card { position: relative; overflow: hidden; min-height: 380px; border-radius: var(--r-xl); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 3.5vw, 44px); }
.duo-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.duo-card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(6, 20, 51, .95) 0%, rgba(6, 20, 51, .55) 55%, rgba(6, 20, 51, .2) 100%); }
.duo-card:hover > img { transform: scale(1.04); }
.duo-card__body { position: relative; z-index: 2; display: grid; gap: 14px; justify-items: start; }
.duo-card__body p { color: rgba(255, 255, 255, .8); max-width: 44ch; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }

/* ── B2B ──────────────────────────────────────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { display: grid; align-content: start; gap: 20px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--surface); }
.compare-col--good { border: 2px solid var(--blue); box-shadow: var(--shadow-2); }
.compare-col--bad { background: var(--surface-2); }
.compare-col__head { display: flex; align-items: center; gap: 14px; }
.compare-col__head h3 { font-size: 22px; }
.warn-box { grid-column: 1 / -1; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 24px 28px; border-radius: var(--r-lg); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.warn-box .icon-tile { background: var(--warn-icon-bg); color: var(--warn-ink); }
.warn-box h3 { font-size: 18px; margin-bottom: 6px; }
.warn-box p { color: var(--ink-2); }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }

.stock-head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.compare-col__note { padding: 14px 16px; border-radius: var(--r); background: var(--blue-50); color: var(--ink-strong); font-size: 14.5px; font-weight: 600; }
.icon-tile--danger { background: rgba(229, 72, 77, .14); color: #ff8a8e; }

.risk-box { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(24px, 3.5vw, 40px); border-radius: var(--r-xl); background: var(--navy-900); color: rgba(255, 255, 255, .78); }
.risk-box__text { display: grid; gap: 12px; }
.risk-box__title { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.risk-box__title h3 { color: #fff; font-size: 22px; }
.risk-box__quote { position: relative; padding: 24px 26px; border-radius: var(--r-lg); background: rgba(91, 155, 255, .1); border: 1px solid rgba(91, 155, 255, .3); }
.risk-box__quote p { color: #fff; font-size: 17px; font-weight: 600; line-height: 1.45; }
.risk-box__quote span { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-300); }
@media (max-width: 860px) { .risk-box { grid-template-columns: 1fr; } }

.new-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.new-card, .rule-card { display: grid; align-content: start; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); }
.new-card { background: var(--surface); border: 1px solid var(--line); }
.new-card h3, .rule-card h3 { font-size: 22px; }
.new-list { list-style: none; display: grid; gap: 14px; }
.new-list li { position: relative; padding-left: 22px; color: var(--ink-2); }
.new-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.new-list strong { color: var(--ink); }
.rule-card { background: var(--navy); color: rgba(255, 255, 255, .78); }
.rule-card h3 { color: #fff; }
.rule-card__note { margin-top: 4px; padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, .06); border-left: 3px solid var(--blue-300); }
.rule-card__note strong { display: block; margin-bottom: 6px; color: #fff; }
@media (max-width: 860px) { .new-grid { grid-template-columns: 1fr; } }

.formula-wrap { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; }
.formula__caption { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-ink); }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.formula__item { display: grid; gap: 2px; padding: 14px 18px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.formula__item small { font-size: 12px; color: var(--ink-3); }
.formula__item b { font-size: 24px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: var(--ink-strong); white-space: nowrap; }
.formula__item strong { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.formula__item--total { background: var(--blue); border-color: var(--blue); color: #fff; }
.formula__item--total small, .formula__item--total strong { color: rgba(255, 255, 255, .8); }
.formula__item--total b { color: #fff; }
.formula__note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 14.5px; color: var(--ink-2); }
.formula__note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--warn-ink); }
.formula__note strong { color: var(--ink); }
@media (max-width: 640px) { .formula { display: grid; grid-template-columns: 1fr; gap: 6px; } .formula__op { justify-self: center; line-height: 1; } }
.formula__op { font-size: 24px; font-weight: 800; color: var(--blue-ink); }

.mini-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: ms; }
.mini-step { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.mini-step::before { counter-increment: ms; content: '0' counter(ms); font-size: 38px; line-height: 1; font-weight: 800; color: var(--blue-100); letter-spacing: -.02em; }
.mini-step h3 { font-size: 17px; }
.mini-step p { font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 960px) { .mini-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mini-steps { grid-template-columns: 1fr; } }

.partner-section { position: relative; overflow: hidden; }
.partner-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: clamp(32px, 5vw, 72px); align-items: start; }
.partner-grid__text { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 960px) { .partner-grid { grid-template-columns: 1fr; } .partner-grid__text { position: static; } }

/* ── Contacts page ────────────────────────────────────────── */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-card { display: grid; gap: 4px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.contact-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .icon-tile { width: 48px; height: 48px; border-radius: 12px; }
.contact-row .icon-tile svg { width: 22px; height: 22px; }
.contact-row small { display: block; font-size: 12.5px; color: var(--ink-3); }
.contact-row a, .contact-row strong { font-size: 18px; font-weight: 700; }
.contact-row a:hover { color: var(--blue-ink); }
.contact-card .socials { margin-top: 16px; }
@media (max-width: 960px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.review-card { display: grid; align-content: start; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.review-card img { width: 100%; border-radius: 10px; background: var(--surface-2); }
.review-card p { font-size: 14.5px; color: var(--ink-2); padding-inline: 4px; }
.review-card strong { font-size: 15px; padding-inline: 4px; }
@media (max-width: 1080px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ── Live ─────────────────────────────────────────────────── */
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--danger); }
.live-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

/* ── Calculator ───────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px; align-items: start; }
.calc-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 22px; }
.calc-card .input-suffix { position: relative; }
.calc-card .input-suffix span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--ink-3); pointer-events: none; }
.calc-card .input-suffix .input { padding-right: 56px; }
.calc-result { position: sticky; top: calc(var(--header-h) + 20px); padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--navy); color: #fff; display: grid; gap: 18px; }
.calc-result h2 { font-size: 20px; }
.calc-rows { display: grid; }
.calc-row { display: flex; justify-content: space-between; gap: 16px; padding-block: 13px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.calc-row span { color: rgba(255, 255, 255, .7); }
.calc-row strong { white-space: nowrap; }
.calc-total { display: grid; gap: 4px; padding: 18px 20px; border-radius: var(--r); background: rgba(91, 155, 255, .14); }
.calc-total span { font-size: 13px; color: rgba(255, 255, 255, .7); }
.calc-total strong { font-size: clamp(28px, 3vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.calc-msg { font-size: 14px; color: #ffd8a8; }
.calc-note { font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .55); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc-result { position: static; } }

/* ── Order page ───────────────────────────────────────────── */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.order-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.picked-car { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--blue-50); border: 1px solid var(--blue-100); }
.picked-car[hidden] { display: none; }
.picked-car img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.picked-car strong { display: block; font-size: 15px; }
.picked-car span { font-size: 13px; color: var(--ink-2); }
.next-steps { list-style: none; display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); }
.next-steps li::before { counter-increment: ns; content: counter(ns); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; }
.next-steps strong { display: block; color: var(--ink); font-size: 15px; }
.order-phone { font-size: 20px; font-weight: 800; color: var(--ink-strong); }
@media (max-width: 960px) { .order-grid { grid-template-columns: 1fr; } .order-aside { position: static; } }

/* ── Blog ─────────────────────────────────────────────────── */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); transition: transform .25s var(--ease), box-shadow .25s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.post-card__cover { aspect-ratio: 16 / 10; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%); color: rgba(255, 255, 255, .9); font-size: 72px; font-weight: 800; overflow: hidden; }
.post-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { display: grid; gap: 10px; padding: 22px 24px 26px; }
.post-card__meta { font-size: 13px; color: var(--ink-3); }
.post-card__title { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.post-card__title a:hover { color: var(--blue-ink); }
.post-card__excerpt { font-size: 15px; color: var(--ink-2); }
.post-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-card__tag { padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600; }
@media (max-width: 1024px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

.article { max-width: 780px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 112px); }
.article__back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--blue-ink); margin-bottom: 28px; }
.article__back svg { width: 16px; height: 16px; }
.article__meta { font-size: 14px; color: var(--ink-3); margin-bottom: 12px; }
.article__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.article__excerpt { margin-top: 18px; font-size: 19px; color: var(--ink-2); }
.article__cover { margin-top: 32px; border-radius: var(--r-xl); width: 100%; }
.prose { margin-top: 36px; font-size: 17.5px; line-height: 1.75; color: var(--prose); }
.prose > * + * { margin-top: 1.1em; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; letter-spacing: -.015em; color: var(--ink); margin-top: 1.8em; }
.prose h2 { font-size: 28px; }
.prose h3 { font-size: 22px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 18px 24px; border-left: 3px solid var(--blue); background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0; font-weight: 500; }
/* Photos inside an article: ![caption](src) */
.prose__figure { margin: 1.8em 0; }
.prose__figure img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
/* Photos keep their place while loading (no layout jump): blog photos and covers are 16:10 */
.prose__figure img[src$=".webp"], .article__cover { aspect-ratio: 16 / 10; object-fit: cover; }
.prose__figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); text-align: center; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--surface-2); font-size: .9em; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq-item[open] { border-color: var(--blue-100); box-shadow: var(--shadow-1); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 24px; font-size: 17px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230060e0' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform .25s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 24px 24px; color: var(--ink-2); display: grid; gap: 10px; }
.faq-item__body a { color: var(--blue-ink); font-weight: 600; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .faq-layout { grid-template-columns: 1fr; } }

/* ── Invoice ──────────────────────────────────────────────── */
.narrow { max-width: 720px; margin-inline: auto; }

/* ── 404 ──────────────────────────────────────────────────── */
.not-found { min-height: calc(100svh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: 80px; }
.not-found__inner { display: grid; justify-items: center; gap: 18px; }
.not-found__code { font-size: clamp(120px, 20vw, 220px); line-height: .9; font-weight: 800; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--blue-100); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .72); padding-block: clamp(56px, 7vw, 80px) 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 48px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px; }
.footer__brand { display: grid; gap: 18px; align-content: start; max-width: 360px; }
.footer__brand img { height: 40px; width: auto; }
.footer__logo { display: inline-flex; align-items: center; gap: 11px; justify-self: start; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff; }
.footer__brand p { font-size: 14.5px; line-height: 1.6; }
.footer__col { display: grid; gap: 11px; align-content: start; }
.footer__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .45); margin-bottom: 6px; }
.footer__col a { color: rgba(255, 255, 255, .8); transition: color .15s; }
.footer__col a:hover { color: #fff; }
.footer__col .footer__phone { font-size: 19px; font-weight: 700; color: #fff; }
.footer__office { font-size: 14px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: rgba(255, 255, 255, .5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a, .footer__legal button { border: 0; background: none; padding: 0; font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.footer__legal a:hover, .footer__legal button:hover { color: #fff; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Floating contact widget ─────────────────────────────── */
.widget { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; justify-items: end; gap: 10px; }
.widget__toggle { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--blue); color: #fff; box-shadow: 0 16px 34px -12px rgba(0, 96, 224, .8); transition: transform .25s var(--ease), background .2s; }
.widget__toggle svg { width: 26px; height: 26px; }
.widget__toggle:hover { background: var(--blue-600); transform: scale(1.05); }
.widget.open .widget__toggle { transform: rotate(90deg); }
.widget__links { display: grid; gap: 8px; justify-items: end; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.widget.open .widget__links { opacity: 1; transform: none; pointer-events: auto; }
.widget__link { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; }
.widget__link:hover { border-color: var(--blue-100); color: var(--blue-ink); }
.widget__link .icon { width: 24px; height: 24px; }
.widget__link .icon svg { width: 100%; height: 100%; }

/* ── Privacy banner (privacy.js) ─────────────────────────── */
.privacy-choice { position: fixed; left: 16px; bottom: 16px; z-index: 70; width: min(560px, calc(100% - 32px)); display: grid; gap: 14px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); font-size: 14px; color: var(--ink-2); }
.privacy-choice strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.privacy-choice a { color: var(--blue-ink); text-decoration: underline; }
.privacy-choice__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.privacy-choice__actions button { height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; }
.privacy-choice__actions .privacy-choice__allow { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Reveal on scroll ─────────────────────────────────────── */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track, .live-dot::after { animation: none; }
  .hero-ticker__track { animation: none; }
  .page-loader { transition: none; }
}

/* Car page (/catalog/12): gallery on the left, price, actions and specs on the right */
.car-wrap { padding-top: 24px; padding-bottom: clamp(40px, 6vw, 72px); }
.car-page__crumbs { margin-bottom: 18px; }
.car-page { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.car-page__media { display: grid; gap: 10px; min-width: 0; }
.car-page__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: #0a0f1c; }
/* The slot is a plain box with a definite size: a grid row here let tall photos grow past the frame and get cut off */
.car-page__slot { position: absolute; inset: 0; overflow: hidden; }
.car-page__photo { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
video.car-page__photo { background: #0a0f1c; }
.car-page__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.6); transform: scale(1.15); }
.car-page__stage .gallery__nav { opacity: .9; }
.car-page__thumbs { position: relative; display: flex; gap: 8px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: thin; }
.car-page__thumbs button {
  position: relative; flex: 0 0 104px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px;
  overflow: hidden; background: var(--surface-2); opacity: .65; cursor: pointer; transition: opacity .15s, border-color .15s;
}
.car-page__thumbs button:hover, .car-page__thumbs button.is-on { opacity: 1; border-color: var(--blue); }
.car-page__thumbs img, .car-page__thumbs video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.car-page__thumbs video { display: block; background: #0a0f1c; }
.car-page__thumbs .is-video span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6, 20, 51, .5); color: #fff; }
.car-page__thumbs .is-video svg { width: 22px; height: 22px; }
.car-page__about { display: grid; gap: 10px; margin-top: 8px; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.car-page__about-title { font-size: 18px; font-weight: 800; }
.car-page__about p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.car-page__about p + p { margin-top: 10px; }
/* Videos get their own strip under the photos */
.car-page__videos { display: grid; gap: 10px; }
.car-page__strip-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.car-page__strip-label svg { width: 13px; height: 13px; }
/* Categories side by side, wrapping; a category with many videos scrolls on its own */
.car-page__vgroups { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.car-page__vgroup { display: grid; gap: 4px; min-width: 0; max-width: 100%; }
.car-page__vcat { font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* Status and the view counter on one line */
.car-page__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.car-page__views { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); white-space: nowrap; }
.car-page__views svg { width: 17px; height: 17px; }
.car-page__info {
  position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding: 24px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
}
.car-page__badge { position: static; justify-self: start; }
.car-page__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.car-page__actions { display: grid; gap: 8px; }
.car-page__actions .btn svg { width: 16px; height: 16px; }
.car-page__fav.is-on { color: var(--danger); border-color: currentColor; }
.car-page__fav.is-on svg path { fill: currentColor; }
@media (max-width: 960px) {
  .car-page { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .car-page__info { position: static; }
}
@media (max-width: 600px) {
  .car-wrap { padding-top: 16px; }
  .car-page__stage { border-radius: var(--r-lg); }
  .car-page__info { padding: 20px 16px; }
  .car-page__thumbs button { flex-basis: 84px; height: 60px; }
}

/* ── Compare toggle on cards and the car page ─────────────── */
.car-card__cmp {
  position: absolute; top: 60px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: rgba(255, 255, 255, .94); color: #465266;
  box-shadow: var(--shadow-1); transition: transform .15s, color .15s, background .15s;
}
.car-card__cmp svg { width: 18px; height: 18px; }
.car-card__cmp:hover { transform: scale(1.08); color: var(--blue); }
.car-card__cmp.is-on { background: var(--blue); color: #fff; }
.car-page__cmp.is-on { color: var(--blue); border-color: currentColor; }
.car-page__cmp svg { width: 18px; height: 18px; }

/* Floating «Сравнение: 2 из 3» */
.compare-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-2); font-size: 14px; white-space: nowrap;
}
.compare-bar > span { display: inline-flex; align-items: center; gap: 8px; }
.compare-bar svg { width: 16px; height: 16px; }
.compare-bar__clear { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
@media (max-width: 560px) { .compare-bar { bottom: 84px; } }

/* /compare */
.compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.compare__table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.compare__table th, .compare__table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare__table thead th { vertical-align: bottom; width: 30%; }
.compare__table thead th:first-child, .compare__table tbody th { width: 160px; color: var(--ink-3); font-weight: 600; }
.compare__table tr.is-diff td { background: color-mix(in oklab, var(--blue) 7%, transparent); font-weight: 600; }
.compare__photo { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.compare__photo img { width: 100%; height: 100%; object-fit: cover; }
.compare__name { display: block; font-weight: 700; color: var(--ink); line-height: 1.3; }
.compare__remove { margin-top: 6px; font-size: 13px; }
.compare__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* «Узнать цену под ключ» / «Сообщить, когда появится» */
.lead-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.lead-dialog::backdrop { background: rgba(6, 20, 51, .55); backdrop-filter: blur(4px); }
.lead-dialog__box { position: relative; padding: 28px 24px 24px; }
.lead-dialog__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.lead-dialog__form { display: grid; gap: 14px; }
.lead-dialog__car { font-weight: 700; color: var(--blue); }
.lead-dialog__lead { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.lead-dialog .form-success { text-align: center; padding: 12px 0; }
.catalog-bar__sub { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Landing text on /catalog/bmw … and the «Каталог по маркам» strip */
.landing-text__body { max-width: 860px; display: grid; gap: 14px; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.landing-text__cars { display: grid; gap: 6px; padding-left: 1.2em; }
.landing-text__more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; font-size: 14px; }
.landing-text__more span { color: var(--ink-3); margin-right: 4px; }
.landing-text__more a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.landing-text__more a:hover { border-color: var(--blue); color: var(--blue); }

/* Reviews: the client's photo, name and the car link */
.review-card__car { display: inline-block; margin-top: 4px; font-size: 14px; color: var(--blue-ink); }
