/* Push Cars — Tech-Transparent Identity
   "Hybrid A+B": Tech-First + Radical Transparency
   Palette inspired by Wise / Revolut / Carvana — trust, data, action.

   bg        #f5f7fb  paper
   surface   #ffffff  cards
   surface-2 #eef2f8  filters, hover surfaces
   line      #e3e8f0  hairline borders
   text      #0b1220  near-black
   text-2    #54607a  slate
   navy      #0d2a4a  brand outlines / headlines
   accent    #2563eb  electric blue (CTA, links)
   accent-2  #1d4ed8  hover
   save      #10b981  emerald (savings)
   save-bg   #ecfdf5
   guard     #7c3aed  purple (locked-price guarantee)
   guard-bg  #f5f0ff
   warn      #f59e0b
   bad       #ef4444
*/

:root {
  --bg: #eef1f8;
  --surface: #ffffff;
  --surface-2: #e9edf6;
  --line: #e2e7f1;
  --text: #0a0f1c;
  --text-2: #586079;
  --navy: #0a2342;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --save: #0ea674;
  --save-bg: #e9faf3;
  --guard: #7c3aed;
  --guard-bg: #f5f0ff;
  --warn: #f59e0b;
  --warn-bg: #fffbeb;
  --bad: #ef4444;
  --ok: #0ea674;

  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1240px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 23, 51, 0.04), 0 2px 6px rgba(10, 23, 51, 0.05);
  --shadow: 0 12px 34px rgba(10, 23, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 23, 51, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-feature-settings: "ss01", "cv01", "tnum";
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: pageIn 0.4s var(--ease) both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
.tabular { font-variant-numeric: tabular-nums; }

::selection { background: var(--accent); color: #fff; }
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 16px;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600; z-index: 100;
}
.skip-link:focus { left: 16px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) {
  .container { padding: 0 16px; }
}
img { max-width: 100%; height: auto; vertical-align: middle; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.brand {
  font-weight: 700; letter-spacing: -0.01em; font-size: 18px; color: var(--navy);
  flex-shrink: 0; line-height: 1; text-decoration: none;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav-links {
  display: flex; gap: 22px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color 0.15s var(--ease); padding: 8px 0;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.cta {
  color: #fff; background: var(--accent);
  padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 600;
  min-height: 40px; display: inline-flex; align-items: center;
}
.nav-links a.cta:hover { background: var(--accent-2); color: #fff; }

.nav-icon { position: relative; }
.nav-icon svg { display: block; }
.nav-badge {
  position: absolute; top: 2px; right: -8px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

.nav-burger {
  display: none;
  background: transparent; border: 0; padding: 0; margin: 0;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger-icon {
  display: flex; flex-direction: column; gap: 5px;
  width: 22px; height: 16px;
  align-items: stretch; justify-content: center;
}
.nav-burger-icon span {
  display: block; width: 100%; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger.open .nav-burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open .nav-burger-icon span:nth-child(2) { opacity: 0; }
.nav-burger.open .nav-burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-label { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; min-height: 44px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--navy); }
.btn-dark:hover { background: #0a2240; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 56px 0 80px;
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.hero-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 20px; font-weight: 700; color: var(--navy);
}
.hero h1 mark {
  background: linear-gradient(180deg, transparent 60%, rgba(16, 185, 129, 0.28) 60%);
  color: inherit; padding: 0 4px;
}
.hero p.lead {
  font-size: 18px; color: var(--text-2);
  max-width: 56ch; margin: 0 0 28px;
}
.hero-points { display: grid; gap: 10px; margin-bottom: 32px; }
.hero-point {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px;
}
.hero-point .check {
  flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--save-bg); color: var(--save);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
  margin-top: 2px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 28px; padding-top: 24px;
  border-top: 1px dashed var(--line);
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--text-2); font-size: 13px;
}
.hero-trust strong { color: var(--navy); font-size: 22px; font-weight: 700; display: block; }

@media (max-width: 760px) {
  .hero { padding: 40px 0 56px; }
  .hero h1 { letter-spacing: -0.02em; }
  .hero p.lead { font-size: 16px; }
  .hero-trust { gap: 18px; }
  .hero-trust strong { font-size: 18px; }
}

/* ===== Hero Calculator Widget ===== */
.calc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.calc-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; margin-bottom: 18px; }
.calc-tabs button {
  flex: 1; background: transparent; border: 0;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  transition: all 0.15s var(--ease);
}
.calc-tabs button.active { background: var(--surface); color: var(--navy); box-shadow: var(--shadow-sm); }

.calc h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.calc .sub { color: var(--text-2); font-size: 13px; margin-bottom: 18px; }

.calc-field { margin-bottom: 14px; }
.calc-field label {
  display: flex; justify-content: space-between;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-2); margin-bottom: 6px; font-weight: 500;
}
.calc-field label .val { color: var(--navy); font-weight: 700; font-variant-numeric: tabular-nums; }

.range {
  appearance: none; -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--surface-2); border-radius: 4px; outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35); cursor: pointer;
}
.range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35); cursor: pointer;
}

.calc-result {
  background: var(--save-bg);
  border: 1px solid #b6f0d8;
  border-radius: 12px;
  padding: 18px;
  margin: 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-result .item .k {
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--save);
  font-weight: 700; margin-bottom: 4px;
}
.calc-result .item .v {
  font-size: 22px; font-weight: 700; color: var(--navy);
  font-variant-numeric: tabular-nums;
}

/* ===== Section ===== */
.section { padding: 80px 0; }
@media (max-width: 760px) {
  .section { padding: 48px 0; }
}
.section-head { display: flex; align-items: end; justify-content: space-between; margin-bottom: 36px; gap: 24px; flex-wrap: wrap; }
.section-head > div { min-width: 0; }
.section-head .btn { flex: none; }
.section-head h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.02em; margin: 0; font-weight: 700; color: var(--navy); word-wrap: break-word; }
.section-head p { color: var(--text-2); margin: 8px 0 0; max-width: 56ch; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 10px;
}

/* ===== Pillars (guarantees) ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pillar .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
}
.pillar.save .icon { background: var(--save-bg); color: var(--save); }
.pillar.guard .icon { background: var(--guard-bg); color: var(--guard); }
.pillar.tech .icon { background: rgba(37, 99, 235, 0.1); color: var(--accent); }
.pillar h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); letter-spacing: -0.01em; }
.pillar p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.pillar .badge-inline {
  display: inline-block; font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.pillar.save .badge-inline { background: var(--save-bg); color: var(--save); }
.pillar.guard .badge-inline { background: var(--guard-bg); color: var(--guard); }
.pillar.tech .badge-inline { background: rgba(37, 99, 235, 0.1); color: var(--accent); }

/* ===== How it works ===== */
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  position: relative;
}
.step-card .num {
  font-size: 28px; font-weight: 800; color: var(--accent);
  letter-spacing: -0.04em; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.step-card h4 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }
.step-card p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }

/* ===== Car grid ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; gap: 14px; }
}
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: block;
}
.card:hover { border-color: rgba(37, 99, 235, 0.4); transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); display: block; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 16px 18px 20px; }
.card-title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 4px; letter-spacing: -0.01em; }
.card-sub { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.card-prices { display: flex; justify-content: space-between; align-items: end; }
.card-price-block .price {
  font-size: 22px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.card-price-block .market {
  font-size: 12px; color: var(--text-2); text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.card-savings {
  background: var(--save-bg); color: var(--save);
  font-size: 12px; font-weight: 700;
  padding: 6px 10px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* ===== Badges ===== */
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.badges.right { left: auto; right: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 6px;
  font-size: 11px; letter-spacing: 0.04em;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--navy);
  border: 1px solid var(--line);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); }
.badge-ok { color: var(--save); border-color: #b6f0d8; }
.badge-ok .dot { background: var(--save); }
.badge-warn { color: var(--warn); border-color: #fde7b8; }
.badge-warn .dot { background: var(--warn); }
.badge-bad { color: var(--bad); border-color: #fcc; }
.badge-bad .dot { background: var(--bad); }
.badge-guard { background: var(--guard-bg); color: var(--guard); border-color: #e0d3ff; }
.badge-save { background: var(--save-bg); color: var(--save); border-color: #b6f0d8; }
.badge-segment {
  background: var(--navy); color: #fff; border-color: var(--navy);
  font-size: 10px; letter-spacing: 0.08em;
}

/* ===== Catalog page ===== */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters {
  position: sticky; top: 90px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.help-banner {
  display: flex; align-items: center; gap: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px; padding: 18px 22px;
  margin-bottom: 24px;
  text-decoration: none; color: inherit;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.help-banner:hover { transform: translateY(-1px); border-color: var(--accent); }
.help-banner > div { flex: 1; min-width: 0; }
.help-banner-title { font-weight: 700; color: var(--navy); font-size: 16px; word-break: break-word; }
.help-banner-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; word-break: break-word; }
.help-banner-arrow {
  margin-left: auto; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700;
  transition: transform 0.15s var(--ease);
}
.help-banner:hover .help-banner-arrow { transform: translateX(3px); }
@media (max-width: 520px) {
  .help-banner { padding: 14px 16px; gap: 12px; }
  .help-banner-title { font-size: 15px; }
  .help-banner-sub { font-size: 12px; }
  .help-banner-arrow { width: 36px; height: 36px; font-size: 16px; }
}

.filters-mobile-toggle { display: none; }
@media (max-width: 1000px) {
  .filters-mobile-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%;
    background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
    padding: 12px 16px; font-weight: 600; color: var(--navy);
    cursor: pointer; margin-bottom: 12px;
  }
  .filters[data-filters] { display: none; }
  .filters[data-filters].open { display: block; }
}
.filters h3 {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2); margin: 0 0 18px; font-weight: 700;
}
.filters .field { margin-bottom: 14px; }
.filters .field label {
  display: block; font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-2); margin-bottom: 5px; font-weight: 600;
}
.filters input, .filters select {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 9px 12px; font-size: 14px;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 16px;
}
.toolbar .count { color: var(--text-2); font-size: 14px; }
.toolbar select {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 8px 12px; font-size: 14px;
}

.segment-pills {
  display: flex; gap: 8px; margin-bottom: 24px;
  overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.segment-pills::-webkit-scrollbar { height: 4px; }
.segment-pills::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.segment-pills a {
  font-size: 13px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); background: var(--surface);
  font-weight: 600; white-space: nowrap; flex-shrink: 0;
  text-decoration: none;
}
.segment-pills a:hover { border-color: var(--accent); color: var(--accent); }
.segment-pills a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.pagination { display: flex; gap: 6px; margin-top: 36px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: 14px; color: var(--text-2);
  background: var(--surface);
}
.pagination a:hover { color: var(--accent); border-color: var(--accent); }
.pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ===== Car detail ===== */
.car-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; margin-top: 28px; }
@media (max-width: 1000px) {
  .car-hero { grid-template-columns: 1fr; gap: 24px; }
}
.gallery-main {
  aspect-ratio: 4 / 3; background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
@media (max-width: 520px) {
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
.gallery-thumbs button {
  border: 2px solid var(--line); background: var(--surface);
  border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1 / 1; padding: 0; cursor: pointer;
  transition: border-color 0.2s var(--ease);
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.car-info h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.car-info .sub { color: var(--text-2); margin-bottom: 20px; }

.price-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
  margin-bottom: 20px;
}
.price-card .price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-card .price-row .price {
  font-size: 36px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
  .price-card { padding: 16px; }
  .price-card .price-row .price, .price-card .price { font-size: 28px; }
  .car-info h1 { font-size: 24px; }
}
.price-card .market-row {
  font-size: 13px; color: var(--text-2); margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.price-card .market-row .strike { text-decoration: line-through; }
.savings-line {
  display: flex; gap: 10px; align-items: center;
  background: var(--save-bg); color: var(--save);
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin-top: 12px; font-weight: 700; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.savings-line svg { width: 18px; height: 18px; }

.guarantee-line {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--guard-bg); color: var(--guard);
  padding: 12px 14px; border-radius: var(--radius-sm);
  margin-top: 8px; font-weight: 600; font-size: 13px;
}

.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-bottom: 22px;
}
.spec {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.spec .k { font-size: 11px; letter-spacing: 0.08em; color: var(--text-2); margin-bottom: 3px; font-weight: 600; }
.spec .v { font-size: 15px; font-weight: 600; color: var(--navy); }

.cta-stack { display: grid; gap: 10px; margin-bottom: 22px; }

.partner-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.partner-card .label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.partner-card .name { font-weight: 700; font-size: 15px; color: var(--navy); }

/* ===== Cost breakdown ===== */
.cost-table {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin: 32px 0;
}
.cost-table .header {
  background: var(--surface-2); padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.cost-table .header h3 { margin: 0; font-size: 16px; color: var(--navy); }
.cost-table .header p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.cost-table .row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
  font-size: 14px; align-items: center;
}
.cost-table .row:last-child { border-bottom: 0; }
.cost-table .row .k { color: var(--text-2); }
.cost-table .row .v { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.cost-table .row.total { background: var(--save-bg); }
.cost-table .row.total .k, .cost-table .row.total .v { color: var(--navy); font-weight: 700; font-size: 16px; }

/* ===== Timeline ===== */
.timeline {
  margin: 40px 0; padding: 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
}
.timeline h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 22px; font-weight: 700; }
.steps { display: flex; gap: 0; }
.step { flex: 1; position: relative; text-align: center; padding-top: 26px; }
.step::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--line); }
.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }
.step .dot-lg {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--line); z-index: 1;
}
.step.done::before { background: var(--accent); }
.step.done .dot-lg { background: var(--accent); border-color: var(--accent); }
.step.current .dot-lg { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25); }
.step .label { font-size: 13px; color: var(--text-2); margin-top: 8px; }
.step.done .label, .step.current .label { color: var(--navy); font-weight: 600; }

/* ===== Description + options ===== */
.desc-section { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; margin: 40px 0; }
.desc-body { font-size: 15px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }
.options-list {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.options-list h3 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 12px; font-weight: 700; }
.options-list ul { list-style: none; padding: 0; margin: 0; }
.options-list li { padding: 6px 0; font-size: 14px; color: var(--text); border-bottom: 1px dashed var(--line); }
.options-list li:last-child { border-bottom: 0; }
.options-list li::before { content: "—"; color: var(--save); margin-right: 8px; font-weight: 700; }

/* ===== Empty state ===== */
.empty {
  text-align: center; padding: 60px 24px;
  color: var(--text-2);
  border: 1px dashed var(--line); border-radius: var(--radius);
  background: var(--surface);
}

/* ===== TG bot CTA ===== */
.tg-cta {
  background: linear-gradient(135deg, #229ED9 0%, #2563eb 100%);
  border-radius: 18px; padding: 36px 40px;
  color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.tg-cta h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.01em; }
.tg-cta p { margin: 0; opacity: 0.92; font-size: 15px; max-width: 60ch; }
.tg-cta .btn { background: #fff; color: var(--navy); }
.tg-cta .btn:hover { background: #f0f4ff; color: var(--navy); }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 24px; margin-top: 60px;
  background: var(--surface);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.2fr;
  gap: 32px; margin-bottom: 36px;
}
.footer-brand p {
  color: var(--text-2); font-size: 14px;
  margin: 0 0 16px; line-height: 1.5; max-width: 36ch;
}
.footer h4 {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--navy);
  margin: 0 0 14px; font-weight: 700;
}
.footer a {
  color: var(--text-2); display: block;
  padding: 6px 0; font-size: 14px;
  text-decoration: none;
}
.footer a:hover { color: var(--accent); }
.footer p { color: var(--text-2); font-size: 13px; margin: 6px 0 0; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 20px;
  font-size: 13px; color: var(--text-2);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: var(--text-2); padding: 0; }
.footer-legal a:hover { color: var(--accent); }

@media (max-width: 1080px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }
  .footer-brand p { max-width: 60ch; }
}
@media (max-width: 720px) {
  .footer { padding: 40px 0 20px; margin-top: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
  .footer h4 { margin-bottom: 10px; }
  .footer a { padding: 8px 0; font-size: 14px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
}
@media (max-width: 440px) {
  .footer-cols { grid-template-columns: 1fr; gap: 8px; }
  .footer-cols > div { border-top: 1px solid var(--line); padding-top: 18px; }
  .footer-cols > div:first-child { border-top: 0; padding-top: 0; }
}

/* ===== Stats row ===== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.stat .n {
  font-size: 28px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}
.stat .l { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-top: 2px; font-weight: 600; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Cookie banner ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 95;
  background: var(--navy); color: #fff;
  padding: 16px 22px; border-radius: 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  box-shadow: 0 12px 30px rgba(11, 18, 32, 0.3);
  font-size: 14px;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .cookie-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.cookie-banner .btn { padding: 8px 18px; font-size: 13px; }
@media (max-width: 600px) {
  .cookie-banner { font-size: 13px; padding: 14px 16px; }
  .cookie-banner .cookie-actions { width: 100%; margin-left: 0; }
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 32px;
}
.lightbox.show { display: flex; }
.lightbox .lb-img {
  max-width: min(96vw, 1600px); max-height: 92vh;
  object-fit: contain; border-radius: 8px;
}
.lightbox .lb-close, .lightbox .lb-prev, .lightbox .lb-next {
  position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff;
  border: 0; width: 44px; height: 44px; border-radius: 50%;
  font-size: 24px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close { top: 20px; right: 20px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox .lb-close:hover, .lightbox .lb-prev:hover, .lightbox .lb-next:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox .lb-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8); font-size: 13px; letter-spacing: 0.06em;
}

/* ===== Autocomplete ===== */
.ac-dropdown {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; margin-top: 4px;
  box-shadow: var(--shadow);
  z-index: 60; max-height: 360px; overflow-y: auto;
}
.ac-item {
  display: flex; gap: 10px; align-items: center;
  padding: 10px 14px; font-size: 14px;
  border-bottom: 1px solid var(--line); color: var(--text);
}
.ac-item:last-child { border-bottom: 0; }
.ac-item:hover { background: var(--surface-2); color: var(--navy); }
.ac-type {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); background: var(--surface-2); padding: 3px 7px;
  border-radius: 4px; font-weight: 600;
}

/* ===== Hero simple (no calculator) ===== */
.hero-simple { padding: 56px 0 72px; }
.hero-grid-simple { grid-template-columns: 1fr; max-width: 920px; }

/* ===== Quick search ===== */
.qsearch {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}
@media (max-width: 720px) {
  .qsearch { grid-template-columns: 1fr 1fr; }
  .qsearch .btn { grid-column: 1 / -1; width: 100%; }
}
.qsearch label {
  display: block; font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-2); margin-bottom: 5px; font-weight: 600;
}
.qsearch input, .qsearch select {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 10px 12px; font-size: 14px;
}
.qsearch input:focus, .qsearch select:focus { outline: none; border-color: var(--accent); }
.qsearch .btn { align-self: end; height: 40px; padding: 0 22px; }

/* ===== Dealers grid (landing) ===== */
.dealers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.dealer-card {
  display: flex; gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dealer-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.dealer-logo {
  flex: none; width: 48px; height: 48px; border-radius: 10px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-weight: 700; color: var(--navy);
}
.dealer-logo img { width: 100%; height: 100%; object-fit: cover; }
.dealer-info { min-width: 0; }
.dealer-name { font-weight: 700; color: var(--navy); font-size: 15px; }
.dealer-tag { font-size: 12px; color: var(--text-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dealer-meta { font-size: 11px; color: var(--text-2); margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ===== Dealer page ===== */
.dealer-cover {
  height: 240px;
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
  margin-bottom: -80px;
}
.dealer-page .dealer-hero {
  display: grid; grid-template-columns: 1fr auto;
  gap: 28px; align-items: end;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  margin-top: 24px; box-shadow: var(--shadow-sm);
  position: relative;
}
@media (max-width: 760px) {
  .dealer-cover { height: 160px; margin-bottom: -40px; }
  .dealer-page .dealer-hero { grid-template-columns: 1fr; align-items: flex-start; }
  .dealer-hero-cta { width: 100%; }
  .dealer-hero-cta .btn { width: 100%; }
  .dealer-hero-main { gap: 14px; }
  .dealer-hero-logo { width: 64px; height: 64px; font-size: 22px; }
}
.dealer-page .dealer-hero.with-cover { margin-top: 0; }
.dealer-hero-main { display: flex; gap: 18px; align-items: center; min-width: 0; }
.dealer-hero-logo {
  flex: none; width: 84px; height: 84px; border-radius: 16px;
  background: var(--surface-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 28px; color: var(--navy);
}
.dealer-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.dealer-hero-info h1 { font-size: clamp(24px, 3vw, 32px); margin: 0; color: var(--navy); letter-spacing: -0.02em; }
.dealer-hero-info .tagline { color: var(--text-2); margin: 4px 0 8px; font-size: 15px; }
.dealer-meta-row { display: flex; gap: 14px; color: var(--text-2); font-size: 13px; }
.dealer-meta-row span { display: inline-flex; align-items: center; }
.dealer-hero-cta { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.dealer-about { margin: 28px auto; max-width: 900px; }
.dealer-about-text { font-size: 16px; line-height: 1.7; color: var(--text); }

.dealer-socials { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 auto 8px; }
.dealer-socials a {
  font-size: 13px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-2); background: var(--surface);
  font-weight: 600;
}
.dealer-socials a:hover { border-color: var(--accent); color: var(--accent); }

/* ===== Card dealer link ===== */
.card-media-link, .card-title-link { display: block; color: inherit; }
.card-dealer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--text-2); font-size: 13px;
}
.card-dealer img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.card-dealer:hover { color: var(--accent); }

/* ===== Crumbs ===== */
.crumbs {
  display: flex; gap: 8px; align-items: center;
  color: var(--text-2); font-size: 13px; margin-bottom: 18px;
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }

/* ===== Partner card on car page ===== */
.partner-card { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.partner-card:hover { border-color: var(--accent); }
.partner-card .tagline-row { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.partner-arrow { margin-left: auto; color: var(--text-2); font-size: 20px; }
.partner-card:hover .partner-arrow { color: var(--accent); }

/* ===== Savings inline ===== */
.savings-tag {
  background: var(--save-bg); color: var(--save);
  font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  margin-left: 6px;
}

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0;
  transition: border-color 0.2s var(--ease);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 16px 20px;
  font-weight: 600; color: var(--navy);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 600px) {
  .faq-item summary { padding: 14px 16px; font-size: 14px; }
  .faq-item > div { padding: 0 16px 14px; font-size: 14px; }
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; font-weight: 400;
  color: var(--text-2); transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after { content: "−"; color: var(--accent); }
.faq-item > div {
  padding: 0 20px 18px; color: var(--text); font-size: 15px; line-height: 1.65;
}

/* ===== About block ===== */
.about-block {
  max-width: 800px; font-size: 16px; line-height: 1.7; color: var(--text);
}
.about-block h2, .about-block h3 { color: var(--navy); letter-spacing: -0.01em; }

/* ===== Card meta + actions ===== */
.card-meta {
  display: flex; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-2);
  margin-top: 8px;
}
.card-meta span::before { content: "·"; margin-right: 10px; color: var(--line); }
.card-meta span:first-child::before { display: none; margin-right: 0; }

.card-actions {
  position: absolute; top: 10px; right: 10px;
  display: flex; gap: 6px;
  z-index: 2;
}
.card-act {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.card-act:hover { color: var(--accent); border-color: var(--accent); }
.card-act.on { color: var(--accent); border-color: var(--accent); background: var(--accent); color: #fff; }

/* ===== Nav icon badge ===== */
.nav-icon { position: relative; display: inline-flex; align-items: center; padding: 4px; }
.nav-badge {
  position: absolute; top: -2px; right: -8px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 5px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ===== Page-bottom meta (small, neutral) ===== */
.page-meta {
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  font-size: 12px; color: var(--text-2);
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.page-meta span::before { content: "·"; margin-right: 12px; color: var(--line); }
.page-meta span:first-child::before { display: none; margin-right: 0; }

/* ===== Trust block ===== */
.trust-block {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); margin-top: 16px; overflow: hidden;
}
.trust-item { background: var(--surface); padding: 14px 16px; }
.trust-item .k { font-size: 10px; letter-spacing: 0.1em; color: var(--text-2); text-transform: uppercase; font-weight: 700; }
.trust-item .v { font-size: 14px; font-weight: 700; color: var(--navy); margin-top: 4px; }

/* ===== Dealer reviews ===== */
.reviews-strip { margin: 28px auto; }
.reviews-summary {
  display: flex; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px;
  flex-wrap: wrap;
}
.reviews-summary > a { margin-left: auto !important; }
@media (max-width: 560px) {
  .reviews-summary > a { margin-left: 0 !important; width: 100%; }
}
.reviews-score {
  font-size: 42px; font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.reviews-score span { font-size: 16px; color: var(--text-2); font-weight: 600; }
.reviews-stars { color: var(--line); font-size: 16px; letter-spacing: 2px; }
.reviews-stars .on { color: #f59e0b; }
.reviews-count { color: var(--text-2); font-size: 13px; margin-top: 2px; }

.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.review-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
}
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.review-author { font-weight: 700; color: var(--navy); font-size: 14px; }
.review-rating { color: #f59e0b; font-size: 14px; letter-spacing: 2px; }
.review-title { font-weight: 600; margin-bottom: 6px; }
.review-text { margin: 4px 0 8px; color: var(--text); font-size: 14px; line-height: 1.55; }
.review-date { font-size: 12px; color: var(--text-2); }
.review-reply {
  margin-top: 12px; padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 6px; font-size: 13px;
}
.review-reply-head {
  font-size: 11px; color: var(--text-2); margin-bottom: 6px;
  font-weight: 700; letter-spacing: 0.04em;
}

.reviews-empty {
  background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: 32px;
  text-align: center; color: var(--text-2);
}
.reviews-empty h3 { color: var(--navy); margin: 0 0 6px; font-size: 18px; }
.reviews-empty p { margin: 0 0 16px; }

.leave-review {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.leave-review h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.leave-review p { color: var(--text-2); font-size: 14px; margin: 0 0 18px; }
.rev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rev-grid .full { grid-column: 1 / -1; }
.leave-review .field label {
  display: block; font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-2); margin-bottom: 5px; font-weight: 600;
}
.leave-review input[type=text], .leave-review textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px;
  font-family: inherit;
}
.leave-review input:focus, .leave-review textarea:focus { outline: none; border-color: var(--accent); }

.star-input { display: inline-flex; flex-direction: row-reverse; }
.star-input input { display: none; }
.star-input label {
  font-size: 28px; color: var(--line); cursor: pointer; padding: 0 2px;
  transition: color 0.1s var(--ease);
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f59e0b; }

/* ===== Empty smart state ===== */
.empty-smart h3 { font-size: 20px; }
.empty-smart .btn { display: inline-flex; }

/* ===== Save search button area ===== */
.filters-save { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* ===== Modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11, 18, 32, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 28px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow);
}
@media (max-width: 520px) {
  .modal { padding: 16px; align-items: flex-end; }
  .modal-card { padding: 20px; border-radius: 16px 16px 0 0; max-width: none; }
}
.modal-card h3 { margin: 0 0 6px; color: var(--navy); font-size: 20px; }
.modal-card p { margin: 0 0 16px; color: var(--text-2); font-size: 14px; }
.modal-card .field { margin-bottom: 12px; }
.modal-card label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 5px; font-weight: 600; }
.modal-card input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px;
}
.modal-card input:focus { outline: none; border-color: var(--accent); }
.save-search-msg { font-size: 13px; padding: 6px 0; min-height: 22px; }

/* ===== Toast ===== */
.pc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0; transition: all 0.25s var(--ease);
  z-index: 200; pointer-events: none;
}
.pc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  display: none;
  align-items: center; gap: 12px;
  z-index: 60;
  transform: translateY(100%);
  transition: transform 0.25s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta-info { min-width: 0; flex: 1; overflow: hidden; }
.sticky-cta-price { font-size: 16px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sticky-cta-title { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta-actions { display: flex; gap: 8px; }
.sticky-cta-actions .btn { padding: 9px 16px; font-size: 13px; }

@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .cookie-banner { bottom: 84px; left: 8px; right: 8px; padding: 12px 14px; }
}

/* ===== Compare grid ===== */
.compare-grid {
  display: grid; gap: 8px;
  overflow-x: auto;
}
.compare-row {
  display: grid;
  grid-template-columns: 160px repeat(var(--cols, 3), minmax(180px, 1fr));
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
@media (max-width: 760px) {
  .compare-grid { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-row { grid-template-columns: 120px repeat(var(--cols, 3), minmax(140px, 1fr)); min-width: max-content; }
  .compare-cell, .compare-cell-label { padding: 10px 12px; font-size: 13px; }
}
.compare-row-head { border: 0; background: transparent; padding: 0; }
.compare-cell { padding: 14px 16px; font-size: 14px; }
.compare-cell.strong { font-weight: 800; color: var(--navy); font-size: 16px; }
.compare-cell-label {
  padding: 14px 16px; font-size: 12px;
  color: var(--text-2); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ===== Quiz ===== */
.quiz-shell { max-width: 720px; margin: 0 auto; }
.quiz {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow-sm);
}
.quiz-step h3 { margin: 0 0 20px; font-size: 20px; color: var(--navy); letter-spacing: -0.01em; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
@media (max-width: 520px) {
  .quiz { padding: 20px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-options label { padding: 14px 16px; min-height: 52px; }
}
.quiz-options label {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s var(--ease);
  font-size: 15px; font-weight: 600;
}
.quiz-options label:hover { border-color: var(--accent); }
.quiz-options input { accent-color: var(--accent); }
.quiz-options label:has(input:checked) { border-color: var(--accent); background: rgba(37, 99, 235, 0.05); }
.quiz-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 18px; }
.quiz-progress { margin-top: 24px; }
.quiz-progress .bar {
  height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden;
}
.quiz-progress .fill {
  height: 100%; background: var(--accent); transition: width 0.3s var(--ease);
}
.quiz-progress .step-label { font-size: 12px; color: var(--text-2); margin-top: 6px; text-align: right; }

/* ===== Articles ===== */
.articles-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
}
@media (max-width: 520px) {
  .articles-grid { grid-template-columns: 1fr; gap: 14px; }
}
.article-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.article-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.article-cover {
  aspect-ratio: 16 / 9; overflow: hidden;
  background: linear-gradient(135deg, #eef2f8 0%, #e3e8f0 100%);
  display: flex; align-items: center; justify-content: center;
}
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-cover-placeholder {
  color: var(--text-2); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
}
.article-body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.article-body h3 {
  margin: 0 0 8px; font-size: 17px; color: var(--navy);
  letter-spacing: -0.01em; line-height: 1.3;
}
.article-body p {
  margin: 0 0 12px; color: var(--text-2); font-size: 14px;
  line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.article-meta { font-size: 12px; color: var(--text-2); margin-top: auto; padding-top: 8px; }
.article-card-cat {
  display: inline-block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 6px;
}

.article-shell { max-width: 800px; margin: 0 auto; }
.article-page h1 { font-size: clamp(28px, 4vw, 40px); color: var(--navy); letter-spacing: -0.02em; margin: 0 0 8px; }
.article-page .article-meta { margin-bottom: 20px; }
.article-cover-full {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 24px;
}
.article-content {
  font-size: 17px; line-height: 1.7; color: var(--text);
}
.article-content h2 { color: var(--navy); letter-spacing: -0.01em; margin: 32px 0 12px; font-size: 24px; }
.article-content h3 { color: var(--navy); margin: 24px 0 10px; font-size: 19px; }
.article-content p { margin: 0 0 16px; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 0 0 16px; }
.article-content li { margin: 6px 0; }
.article-content a { color: var(--accent); text-decoration: underline; }

/* ===== Ask-checklist (на сторінці авто) ===== */
.ask-checklist {
  margin-top: 22px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  border-left: 3px solid var(--accent);
}
.ask-checklist summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  list-style: none;
}
.ask-checklist summary::-webkit-details-marker { display: none; }
.ask-checklist summary::after { content: " →"; color: var(--accent); }
.ask-checklist[open] summary::after { content: " ↓"; }
.ask-checklist ul { margin: 14px 0 0; padding-left: 22px; font-size: 14px; color: var(--text); }
.ask-checklist li { margin: 6px 0; }

/* ===== Auth shells (login / register) ===== */
.login-shell {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center; justify-content: center; padding: 32px 16px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 22px; margin: 0 0 8px; letter-spacing: -0.01em; color: var(--navy); }
.login-card p { color: var(--text-2); font-size: 14px; margin: 0 0 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.login-card input, .login-card textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: var(--text);
  padding: 11px 14px; font-size: 14px; font-family: inherit;
}
.login-card input:focus, .login-card textarea:focus { outline: none; border-color: var(--accent); }
.alert {
  padding: 12px 16px; background: var(--warn-bg);
  border: 1px solid #fde7b8; border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm); margin-bottom: 12px; font-size: 14px; color: var(--text);
}
.alert.error { background: #fef2f2; border-color: #fcc; border-left-color: var(--bad); }

/* ===== Responsive (global) ===== */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .car-hero { grid-template-columns: 1fr; }
  .desc-section { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .tg-cta { grid-template-columns: 1fr; text-align: left; }
}
@media (max-width: 860px) {
  .nav-burger { display: inline-flex; }
  .brand { flex-shrink: 1; max-width: calc(100% - 60px); }

  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0;
    background: #ffffff; border-top: 1px solid var(--line);
    flex-direction: column; gap: 0; padding: 0;
    transform: translateY(-110%); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), visibility 0s linear 0.22s;
    box-shadow: 0 16px 30px rgba(11, 18, 32, 0.12);
    max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible;
    transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), visibility 0s linear 0s;
  }
  .nav-links a {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 20px; width: 100%;
    font-size: 15px; font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid var(--line);
    min-height: 52px;
  }
  .nav-links a:active { background: var(--surface-2); }
  .nav-links a.nav-icon { padding: 16px 20px; }
  .nav-badge {
    position: static; margin-left: auto;
  }
  .nav-links a.cta {
    margin: 14px 20px; width: auto;
    border-radius: 10px; justify-content: center;
    border-bottom: 0;
    min-height: 48px;
  }
  .nav-label { display: inline; }
}
@media (max-width: 600px) {
  .nav-inner { height: 56px; }
  .nav-links { top: 56px; max-height: calc(100vh - 56px); }
  .brand { font-size: 15px; flex-shrink: 1; max-width: calc(100% - 60px); }
  .section { padding: 48px 0; }
  .specs { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 14px; }
  .step { text-align: left; padding-top: 0; padding-left: 30px; }
  .step::before { display: none; }
  .step .dot-lg { left: 0; top: 4px; transform: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .steps-row { grid-template-columns: 1fr; }
}

/* ===== Error pages ===== */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 64px 24px;
  text-align: center;
}
.error-page-inner { max-width: 520px; }
.error-code {
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--line);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.error-divider {
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0 auto 22px;
}
.error-page-inner h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.error-page-inner p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 32px;
}
.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .error-code { font-size: 80px; }
  .error-page-inner h1 { font-size: 22px; }
  .error-actions { flex-direction: column; align-items: center; }
}

/* =====================================================================
   PREMIUM REFRESH (v2) — typography, depth, refined components.
   Markup-compatible: overrides only. Display = Sora, body = Inter.
   ===================================================================== */

/* ---- Typography: display face on headings, brand, figures ---- */
h1, h2, h3, h4,
.brand,
.hero h1, .hero-trust strong,
.section-head h2,
.card-title, .card-price-block .price,
.car-info h1, .price-card .price-row .price, .price-card .price,
.stat .n, .reviews-score, .error-code,
.step-card .num, .calc-result .item .v,
.dealer-hero-info h1, .article-page h1, .article-card h3,
.sticky-cta-price, .compare-cell.strong, .tg-cta h2 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
}
.hero h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.section-head h2 { font-weight: 700; }
.brand { font-weight: 800; letter-spacing: -0.03em; }
body { letter-spacing: -0.005em; }

/* ---- Nav: refined, glassy, soft elevation ---- */
.nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 231, 241, 0.8);
}
@media (min-width: 861px) { .nav-inner { height: 68px; } }
.nav-links a { font-weight: 500; letter-spacing: -0.01em; }
.nav-links a:not(.cta):not(.nav-icon)::after {
  content: ""; display: block; height: 2px; width: 0;
  background: var(--accent); border-radius: 2px;
  transition: width 0.25s var(--ease); margin-top: 2px;
}
.nav-links a:not(.cta):not(.nav-icon):hover::after { width: 100%; }

/* ---- Buttons: gradient primary, crisper ---- */
.btn {
  background: linear-gradient(180deg, #3b76ff 0%, var(--accent) 100%);
  border-radius: 11px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2), 0 6px 16px rgba(37, 99, 235, 0.18);
}
.btn:hover { background: linear-gradient(180deg, #2f6bf2 0%, var(--accent-2) 100%); box-shadow: 0 8px 22px rgba(37, 99, 235, 0.3); }
.nav-links a.cta {
  background: linear-gradient(180deg, #3b76ff 0%, var(--accent) 100%);
  border-radius: 10px; box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
  letter-spacing: -0.01em;
}
.nav-links a.cta:hover { background: linear-gradient(180deg, #2f6bf2 0%, var(--accent-2) 100%); }
.btn-ghost, .btn-dark { box-shadow: var(--shadow-sm); }
.btn-ghost { background: var(--surface); }
.btn-dark { background: linear-gradient(180deg, #103157 0%, var(--navy) 100%); }

/* ---- Hero: richer mesh + tighter type ---- */
.hero {
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(37, 99, 235, 0.14), transparent 68%),
    radial-gradient(620px 460px at -5% 108%, rgba(124, 58, 237, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
}
.hero-eyebrow { background: rgba(37, 99, 235, 0.1); letter-spacing: 0.14em; }
.hero p.lead { color: var(--text-2); }

/* ---- Calculator / quick search: deeper card ---- */
.calc { border-radius: 20px; box-shadow: var(--shadow-lg); border-color: rgba(226, 231, 241, 0.9); }
.qsearch { border-radius: 16px; box-shadow: var(--shadow); }
input, select, textarea { font-family: inherit; }
.filters input:focus, .filters select:focus,
.qsearch input:focus, .qsearch select:focus,
.login-card input:focus, .modal-card input:focus,
.leave-review input:focus, .leave-review textarea:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

/* ---- Cards: depth + premium hover + figure type ---- */
.card { border-radius: 16px; box-shadow: var(--shadow-sm); }
.card:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-media { aspect-ratio: 16 / 11; }
.card-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 23, 51, 0.16) 100%);
}
.card-title { font-size: 18px; }
.card-price-block .price { font-size: 23px; font-weight: 700; color: var(--navy); }
.card-act { border-radius: 9px; box-shadow: var(--shadow-sm); }

/* ---- Pillars / steps / stats: refined surfaces ---- */
.pillar, .step-card, .stat { border-radius: 16px; }
.pillar:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-card .num { font-weight: 800; }
.stat { background: var(--surface); }
.stat .n { font-weight: 700; }

/* ---- Badges / pills: crisper ---- */
.badge { border-radius: 8px; box-shadow: 0 1px 2px rgba(10, 23, 51, 0.06); }
.segment-pills a, .dealer-socials a { transition: all 0.18s var(--ease); }
.segment-pills a.active { background: linear-gradient(180deg, #14365f 0%, var(--navy) 100%); }

/* ---- Filters / catalog sidebar ---- */
.filters { border-radius: 16px; }
.filters input, .filters select { border-radius: 9px; }

/* ---- Car detail price card ---- */
.price-card { border-radius: 16px; box-shadow: var(--shadow-sm); }
.price-card .price-row .price { font-weight: 800; }
.spec { border-radius: 10px; }
.gallery-main { border-radius: 16px; }

/* ---- FAQ ---- */
.faq-item { border-radius: 14px; }
.faq-item[open] { box-shadow: var(--shadow-sm); }

/* ---- Section heads ---- */
.section-head .eyebrow { letter-spacing: 0.16em; }

/* ---- Footer ---- */
.footer { background: var(--surface); }

/* ---- TG CTA: richer gradient ---- */
.tg-cta {
  background: linear-gradient(135deg, #2aa3de 0%, #2563eb 55%, #1d4ed8 100%);
  border-radius: 22px; box-shadow: var(--shadow-lg);
}

/* =====================================================================
   BRANDED MEDIA PLACEHOLDER — replaces external placehold.co.
   ===================================================================== */
.media-ph {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; text-align: center; overflow: hidden;
  background: linear-gradient(150deg, #143559 0%, #0a2342 55%, #0d2b52 100%);
}
.gallery-main { position: relative; }
.media-ph::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(130% 92% at 82% -12%, rgba(37, 99, 235, 0.5), transparent 56%);
}
.media-ph::after {
  content: ""; position: absolute; inset: 0; opacity: 0.10;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 74%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 28%, transparent 74%);
}
.media-ph-brand {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 800;
  color: #fff; font-size: clamp(20px, 5vw, 30px);
  letter-spacing: -0.02em; line-height: 1;
}
.media-ph-tag {
  position: relative; z-index: 1;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62); font-weight: 600;
}
.media-ph-lg .media-ph-brand { font-size: clamp(36px, 7vw, 64px); }
.media-ph-lg .media-ph-tag { font-size: 12px; }

/* =====================================================================
   MOBILE FEEL — 2-up car grid, compact cards, tighter rhythm,
   bigger tap targets. Goal: native-app browsing on phones.
   ===================================================================== */
@media (max-width: 560px) {
  /* --- 2-column gallery grid (overrides the 1-col rule) --- */
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { border-radius: 14px; }
  .card-media { aspect-ratio: 4 / 3; }
  .card-body { padding: 10px 11px 13px; }
  .card-title { font-size: 14px; line-height: 1.22; }
  .card-sub { font-size: 11px; margin-bottom: 7px; }
  .card-price-block .price { font-size: 17px; }
  .card-price-block .market { font-size: 11px; }
  .card-savings { font-size: 10px; padding: 4px 7px; }
  .card-dealer { display: none; }
  .card-actions { top: 7px; right: 7px; gap: 5px; }
  .card-act { width: 32px; height: 32px; border-radius: 9px; }
  .card-act svg { width: 16px; height: 16px; }
  .badges { top: 7px; left: 7px; gap: 4px; }
  .badge { padding: 3px 7px; font-size: 10px; }
  .media-ph-brand { font-size: 19px; }
  .media-ph-tag { font-size: 8.5px; letter-spacing: 0.1em; }

  /* --- tighter vertical rhythm --- */
  .hero { padding: 30px 0 40px; }
  .hero h1 { font-size: 30px; letter-spacing: -0.03em; line-height: 1.06; }
  .hero p.lead { font-size: 15px; margin-bottom: 20px; }
  .hero-eyebrow { font-size: 11px; padding: 7px 12px; margin-bottom: 16px; }
  .section { padding: 42px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 14px; }
  .section-head .btn { width: 100%; }

  /* --- stat cards compact --- */
  .stats-row { gap: 10px; }
  .stat { padding: 14px; border-radius: 13px; }
  .stat .n { font-size: 22px; }

  /* --- quick search: comfy tap targets --- */
  .qsearch { padding: 14px; gap: 10px; }
  .qsearch input, .qsearch select { padding: 12px 12px; font-size: 15px; }
  .qsearch .btn { height: 48px; }
}

/* --- Car detail: app-like on phones --- */
@media (max-width: 760px) {
  .car-hero { margin-top: 16px; gap: 18px; }
  .gallery-main { border-radius: 14px; }
  .car-info h1 { font-size: 25px; line-height: 1.12; }
  .price-card { padding: 18px; border-radius: 14px; }
  .cta-stack .btn { min-height: 50px; font-size: 16px; }
  .specs { gap: 8px; }
  .spec { padding: 12px 14px; }
  /* sticky bottom CTA: lift + blur already set; refine */
  .sticky-cta { padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(10, 23, 51, 0.12); }
  .sticky-cta-actions .btn { min-height: 44px; padding: 10px 18px; }
}

/* --- Bigger, comfier tap targets in mobile nav drawer --- */
@media (max-width: 860px) {
  .nav-links a { min-height: 54px; font-size: 16px; }
  .nav-links a.cta { min-height: 50px; font-size: 15px; }
}

/* =====================================================================
   V3 PREMIUM REDESIGN — dark foundation (nav / hero / footer),
   editorial type, elevated borderless cards. Kills the flat-template feel.
   ===================================================================== */
:root {
  --ink: #0b1020;
  --ink-2: #111833;
  --accent-bright: #5b8cff;
  --cyan: #4cc4f2;
  --shadow-card: 0 1px 3px rgba(11, 16, 32, 0.05), 0 10px 28px rgba(11, 16, 32, 0.07);
  --shadow-card-hover: 0 24px 56px rgba(11, 16, 32, 0.18);
}
body { background: var(--bg); }

/* ---- NAV: solid deep ink, site-wide (no translucent grey mush) ---- */
.nav {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.brand { color: #fff; }
.brand span { color: var(--accent-bright); }
.nav-links a { color: rgba(255, 255, 255, 0.74); }
.nav-links a:not(.cta):not(.nav-icon):hover { color: #fff; }
.nav-links a:not(.cta):not(.nav-icon)::after { background: var(--accent-bright); }
.nav-icon svg { color: rgba(255, 255, 255, 0.82); }
.nav-burger-icon span { background: #fff; }
@media (max-width: 860px) {
  .nav-links { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4); }
  .nav-links a { color: rgba(255, 255, 255, 0.88); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .nav-links a:active { background: rgba(255, 255, 255, 0.05); }
  .nav-badge { background: var(--accent); }
}

/* ---- HERO: dramatic dark, editorial headline, glass figures ---- */
.hero, .hero-simple {
  background:
    radial-gradient(1100px 620px at 80% -12%, rgba(47, 107, 255, 0.30), transparent 60%),
    radial-gradient(760px 520px at -5% 112%, rgba(76, 196, 242, 0.12), transparent 55%),
    linear-gradient(180deg, #0c1326 0%, var(--ink) 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 84px 0 96px;
}
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -0.035em;
}
.hero h1 mark { background: linear-gradient(180deg, transparent 58%, rgba(91, 140, 255, 0.45) 58%); color: #fff; }
.hero p.lead, .hero .lead { color: rgba(255, 255, 255, 0.72); font-size: 19px; }
.hero-eyebrow {
  color: var(--accent-bright);
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.28);
}
.hero-eyebrow::before { background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.22); }
.hero .qsearch {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  border-radius: 18px; padding: 18px;
}
.hero .stat {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px); border-radius: 14px;
}
.hero .stat .n { color: #fff; }
.hero .stat .l { color: rgba(255, 255, 255, 0.55); }

/* ---- FOOTER: dark, premium ---- */
.footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer .brand { color: #fff; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); }
.footer h4 { color: rgba(255, 255, 255, 0.5); }
.footer a { color: rgba(255, 255, 255, 0.66); }
.footer a:hover { color: var(--accent-bright); }
.footer p { color: rgba(255, 255, 255, 0.5); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.5); }
.footer-legal a { color: rgba(255, 255, 255, 0.5); }
.footer-legal a:hover { color: #fff; }
@media (max-width: 440px) {
  .footer-cols > div { border-top: 1px solid rgba(255, 255, 255, 0.08); }
}

/* ---- CARDS: borderless elevation, premium hover ---- */
.card, .article-card {
  border: 1px solid transparent;
  box-shadow: var(--shadow-card);
  background: var(--surface);
}
.card:hover, .article-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}
.card:hover { outline: 1px solid rgba(47, 99, 235, 0.18); outline-offset: 0; }

/* ---- Surfaces & section rhythm ---- */
.pillar, .step-card, .stat:not(.hero .stat), .price-card, .timeline,
.cost-table, .options-list, .partner-card, .dealer-card, .faq-item,
.quiz, .login-card, .review-item, .filters {
  border-color: var(--line);
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.03em; }
.section-head .eyebrow, .eyebrow { color: var(--accent); }

/* light sections that were plain white → keep airy but add separation */
#dealers, #faq, .footer { position: relative; }

/* ---- Catalog header sits under dark nav: add breathing room ---- */
.catalog-layout { padding-top: 4px; }

/* ---- Dark-hero responsive ---- */
@media (max-width: 760px) {
  .hero, .hero-simple { padding: 54px 0 60px; }
  .hero h1 { font-size: 33px; letter-spacing: -0.03em; }
  .hero p.lead, .hero .lead { font-size: 16px; }
}
@media (max-width: 560px) {
  .hero, .hero-simple { padding: 44px 0 52px; }
  .hero h1 { font-size: 31px; }
}

/* =====================================================================
   V4 ELEGANCE — restrained palette, editorial air, refined components.
   ===================================================================== */
:root {
  --bg: #f3f4f7;        /* cleaner neutral, less blue-grey */
  --surface-2: #edeff5;
  --line: #e6e8ef;
}
body { background: var(--bg); }

/* --- Palette restraint: flat, confident buttons (no glossy gradients) --- */
.btn { background: var(--accent); box-shadow: 0 2px 10px rgba(37, 99, 235, 0.16); }
.btn:hover { background: var(--accent-2); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22); }
.btn-dark { background: var(--ink); box-shadow: 0 2px 10px rgba(11, 16, 32, 0.16); }
.btn-dark:hover { background: #161d33; }
/* keep secondary buttons quiet — re-assert ghost AFTER .btn so it isn't clobbered */
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.nav-links a.cta { background: var(--accent); box-shadow: none; }
.nav-links a.cta:hover { background: var(--accent-2); }
.hero .qsearch .btn { background: var(--accent); }
.help-banner-arrow { background: var(--ink); }

/* --- Editorial air --- */
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; }
.section-head p { font-size: 16px; margin-top: 10px; }
.hero, .hero-simple { padding: 100px 0 108px; }
.grid { gap: 20px; }
.card-body { padding: 18px 20px 22px; }

/* --- Logo mark --- */
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-flex; flex-shrink: 0; line-height: 0; }
.brand-mark svg { display: block; border-radius: 8px; }
.footer .brand .brand-mark { opacity: 0.96; }

/* --- Custom selects: kill native chrome --- */
.qsearch select, .filters select, .toolbar select, .field select,
.leave-review select, .modal-card select {
  appearance: none; -webkit-appearance: none;
  background-image: 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='%235a6378' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 38px; cursor: pointer;
}
.qsearch select, .qsearch input { border-radius: 11px; padding: 12px 14px; }
.qsearch select { padding-right: 38px; }
.filters input, .filters select { border-radius: 10px; padding: 11px 13px; }
.filters select { padding-right: 36px; }

/* --- Cookie banner: light corner card, unobtrusive --- */
.cookie-banner {
  left: auto; right: 24px; bottom: 24px; max-width: 376px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg);
  flex-direction: column; align-items: flex-start; gap: 13px;
  padding: 18px 20px;
}
.cookie-banner span { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner .cookie-actions { margin-left: 0; width: 100%; justify-content: space-between; align-items: center; }
.cookie-banner .btn { background: var(--ink); box-shadow: none; }
.cookie-banner .btn:hover { background: #161d33; }
@media (max-width: 760px) {
  .cookie-banner { left: 12px; right: 12px; max-width: none; bottom: 88px; }
}

/* --- Help banner: clean card, no dated gradient --- */
.help-banner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.help-banner:hover { border-color: rgba(37, 99, 235, 0.28); box-shadow: var(--shadow); transform: translateY(-2px); }
.help-banner-title { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; }
.help-banner:hover .help-banner-arrow { background: var(--accent); }

/* --- Filters: premium surface --- */
.filters { border-radius: 16px; padding: 24px; box-shadow: var(--shadow-card); border-color: var(--line); }

/* --- Mobile air --- */
@media (max-width: 560px) {
  .section { padding: 58px 0; }
  .hero, .hero-simple { padding: 46px 0 54px; }
  .section-head { margin-bottom: 28px; }
}
