/* ВостокАвто / ЧЕ168.РФ — премиальная конверсионная витрина автоимпорта */
:root {
  --brand: #ff6a00;
  --brand-dark: #e85d00;
  --brand-soft: #fff3ea;
  --price: #ff4a00;
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --ok: #10b981;
  --err: #e5484d;
  --radius: 10px;
  --wrap: 1200px;
  --shadow: 0 8px 28px rgba(15, 23, 42, .08);
  font-size: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
.tnum { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Верхняя полоса и шапка ─────────────────────────────── */
.topbar { background: #f1f5f9; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.topbar .wrap { display: flex; gap: 16px; align-items: center; justify-content: space-between; height: 32px; }
.topbar .city b { color: var(--ink); }
.topbar nav { display: flex; gap: 16px; font-weight: 500; }

.header { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.header .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo svg { width: 38px; height: 38px; }
.logo-text { font-weight: 800; font-size: 22px; letter-spacing: -.5px; line-height: 1; }
.logo-text span { color: var(--brand); }
.logo-sub { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: .2px; margin-top: 3px; }
.nav { display: flex; gap: 18px; font-weight: 500; font-size: 14.5px; }
.nav a { padding: 21px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a.active, .nav a:hover { color: var(--brand); border-color: var(--brand); }
.nav-mobile-contacts { display: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-right .btn { white-space: nowrap; }
.phone { font-weight: 700; font-size: 15.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.burger { display: none; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; background: #f8fafc; border: 1px solid var(--line); border-radius: 8px; padding: 0; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 8px; cursor: pointer; font-weight: 600;
  padding: 11px 20px; background: var(--brand); color: #fff;
  transition: background .18s, transform .12s, box-shadow .18s;
}
.btn:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 8px 20px rgba(255,106,0,.28); }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 24px; font-size: 15.5px; }
.btn-ghost { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand-dark); }
.btn-dark { background: #0f172a; }
.btn-dark:hover { background: #1e293b; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ── Главный баннер + Моушен-графика ────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(120deg, #0b1120 0%, #131d33 55%, #090e1a 100%);
  color: #fff; overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .45;
  animation: orbFloat 11s ease-in-out infinite alternate;
}
.orb-1 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,106,0,.42), transparent 70%); top: -140px; right: 8%; }
.orb-2 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(56,189,248,.22), transparent 70%); bottom: -150px; left: 4%; animation-delay: -5s; }
@keyframes orbFloat { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-24px, 22px) scale(1.08); } }

.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr .94fr; gap: 36px; align-items: center; min-height: 460px; padding-top: 32px; padding-bottom: 40px; }
.hero-copy { padding: 10px 0; animation: heroFadeUp .55s ease-out both; }
.hero-photo { position: relative; align-self: center; animation: heroFadeUp .65s .1s ease-out both; }
@keyframes heroFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; margin-right: 4px; vertical-align: middle; animation: dotPulse 2s infinite; }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.85); } }

.hero-tag { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 106, 0, .16); border: 1px solid rgba(255, 140, 56, .45); color: #ffd0b0; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; }
.hero h1 { font-size: 42px; line-height: 1.1; margin: 14px 0 14px; letter-spacing: -1px; font-weight: 800; text-wrap: balance; }
.hero p.lead { font-size: 16.5px; color: #cbd5e1; margin: 0 0 22px; max-width: 540px; line-height: 1.55; }

.quick-form { background: #fff; color: var(--ink); border-radius: 14px; padding: 16px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 10px; box-shadow: 0 22px 48px rgba(0,0,0,.4); max-width: 580px; }
.quick-form .btn { grid-column: 1 / -1; }
.quick-form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 11.5px; color: #64748b; }
.quick-form-foot a { text-decoration: underline; color: #64748b; }

.hero-showcase { width: 100%; max-width: 520px; margin-left: auto; position: relative; }
.hero-photo .person { width: 100%; aspect-ratio: 16/11; border-radius: 18px;
  background: #1e293b; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 24px 50px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-photo .person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-car:hover img { transform: scale(1.035); }
.hero-car-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 16px; text-align: left; font-size: 13.5px; color: #e2e8f0;
  background: linear-gradient(transparent, rgba(9, 14, 26, .92)); }
.hero-car-cap b { display: block; font-size: 19px; letter-spacing: -.3px; margin-top: 2px; color: #fff; }
.hero-badge { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  color: var(--ink); border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 28px rgba(0,0,0,.28); font-size: 11.5px; z-index: 2; }
.hero-badge .badge-top { display: block; font-weight: 600; color: #334155; }
.hero-badge b { display: block; font-size: 19px; color: var(--price); line-height: 1.2; margin: 2px 0; }

/* Анимированная телеметрия маршрута КНР -> РФ */
.route-telemetry { margin-top: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); border-radius: 14px; padding: 10px 14px 12px; }
.route-svg { width: 100%; height: 26px; display: block; }
.route-progress { stroke-dasharray: 384; stroke-dashoffset: 384; animation: routeLine 4.8s ease-in-out infinite; }
.route-pulse-dot { animation: routeDot 4.8s ease-in-out infinite; filter: drop-shadow(0 0 6px #ff6a00); }
@keyframes routeLine { 0% { stroke-dashoffset: 384; opacity: .4; } 65%, 85% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes routeDot { 0% { transform: translateX(0); opacity: 1; } 65%, 85% { transform: translateX(384px); opacity: 1; } 100% { transform: translateX(384px); opacity: 0; } }
.route-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: 11px; color: #94a3b8; text-align: center; margin-top: 2px; }
.route-labels b { display: block; color: #f8fafc; font-size: 12px; }

/* ── Быстрый подбор и Бегущая строка ────────────────────── */
.quick-pick { background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  margin-top: -1px; padding: 14px 18px; display: grid; grid-template-columns: 1fr auto; gap: 14px; position: relative; z-index: 2; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.chips .label { font-weight: 700; color: var(--ink); margin-right: 4px; }
.chips a { color: var(--ink-2); font-weight: 500; }
.chips a:hover { color: var(--brand); }
.chips a small { color: var(--muted); }

.marquee-wrap { overflow: hidden; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 16px; padding: 10px 0; }
.marquee-track { display: flex; width: max-content; gap: 36px; animation: marqueeScroll 34s linear infinite; }
.marquee-wrap:hover .marquee-track, .marquee-wrap:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; font-size: 13px; font-weight: 600; color: #334155; display: inline-flex; align-items: center; gap: 7px; }
.marquee-track i { font-style: normal; color: var(--brand); font-weight: 800; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Секции и анимация появления ────────────────────────── */
.section { padding: 48px 0; }
.section-white { background: #fff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; margin: 0; letter-spacing: -.5px; line-height: 1.2; }
.section-head h2 i { font-style: normal; color: var(--brand); }
.section-head a { color: var(--ink-2); font-weight: 600; }
.section-head a:hover { color: var(--brand); }
.section-sub { color: var(--ink-2); margin: -10px 0 22px; font-size: 15px; }

.reveal { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s ease; }
.js-anim .reveal { opacity: 0; transform: translateY(16px); }
.js-anim .reveal.in-view { opacity: 1; transform: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.fact { background: var(--brand-soft); border: 1px solid #ffe4cf; border-radius: var(--radius); padding: 16px; }
.fact b { display: block; font-size: 25px; color: var(--brand); letter-spacing: -.5px; line-height: 1.15; margin-bottom: 3px; }
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
.trust-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 14px; }
.trust-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; background: #fff; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.trust-list li svg { color: var(--brand); width: 24px; height: 24px; margin-top: 2px; }
.trust-list li b { display: block; margin-bottom: 2px; font-size: 15px; }
.trust-list li span { color: var(--ink-2); font-size: 13.5px; }
.trust-list li span b { color: var(--ink); }

/* ── Карточки авто ──────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cbd5e1; color: inherit; }
.card-img { aspect-ratio: 4/3; background: #eef2f6; position: relative; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .pt { position: absolute; left: 8px; top: 8px; background: rgba(15,23,42,.74); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: 5px; }
.card-img .hot { position: absolute; right: 8px; top: 8px; background: var(--price); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 5px; font-weight: 600; }
.card-img .hot-new { background: #059669; }
.card-img .hot-eco { background: #0284c7; }
.card-img .hot-deal { background: #d97706; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 700; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { color: #64748b; font-size: 12px; }
.card-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price b { color: var(--price); font-size: 22px; letter-spacing: -.5px; font-weight: 800; }
.card-price b small { font-size: 13px; font-weight: 600; }
.card-price span { color: var(--muted); font-size: 12px; }
.img-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column;
  background: linear-gradient(135deg,#f1f5f9,#e2e8f0); color: #64748b; font-weight: 700; font-size: 16px; text-align: center; padding: 8px; }
.img-fallback small { font-weight: 500; font-size: 11px; }
.more-row { text-align: center; margin-top: 24px; }

/* ── Интерактивный калькулятор (#calc) ──────────────────── */
.calc-section { background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%); }
.calc-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; align-items: stretch; }
.calc-controls { display: grid; gap: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; }
.calc-group { display: grid; gap: 7px; }
.calc-group label { font-size: 13px; font-weight: 600; color: #334155; }
.calc-lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc-lbl-row b { font-size: 15px; color: var(--ink); }
.calc-num { width: 120px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 7px; font-weight: 700; font-size: 15px; text-align: right; color: var(--brand-dark); }
.calc-range { width: 100%; accent-color: var(--brand); cursor: pointer; height: 6px; }
.calc-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.calc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.seg-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 8px; }
.seg-group button { border: 0; background: transparent; padding: 8px 6px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: #475569; cursor: pointer; transition: all .15s; }
.seg-group button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 6px rgba(15,23,42,.08); }
.calc-warn { background: #fff7ed; border: 1px solid #fdba74; border-left: 4px solid #ea580c; border-radius: 8px; padding: 10px 14px; font-size: 12.5px; color: #9a3412; }
.calc-warn b { display: block; margin-bottom: 2px; }

.calc-receipt { background: linear-gradient(145deg, #0f172a, #1e293b); color: #fff; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 20px 44px rgba(15,23,42,.22); }
.calc-tag { display: inline-block; font-size: 11.5px; font-weight: 600; color: #ffb380; background: rgba(255,106,0,.16); border: 1px solid rgba(255,130,40,.35); padding: 4px 10px; border-radius: 999px; }
.calc-total { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: #fff; margin: 10px 0 4px; line-height: 1.1; }
.calc-rates { font-size: 12px; color: #94a3b8; }
.calc-lines { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; font-size: 13.5px; }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 9px; border-bottom: 1px dashed rgba(255,255,255,.12); color: #cbd5e1; }
.calc-lines li b { color: #fff; white-space: nowrap; }
.calc-lines li small { display: block; font-size: 11px; color: #94a3b8; }
.calc-cta { width: 100%; }

/* ── Кейсы выданных авто (#cases) ───────────────────────── */
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.case-img { position: relative; aspect-ratio: 4/3; background: #e2e8f0; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }
.case-save { position: absolute; left: 8px; bottom: 8px; background: #059669; color: #fff; font-weight: 700; font-size: 11.5px; padding: 4px 9px; border-radius: 6px; box-shadow: 0 4px 12px rgba(5,150,105,.35); }
.case-days { position: absolute; right: 8px; top: 8px; background: rgba(15,23,42,.75); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 5px; }
.case-body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.case-route { font-size: 11.5px; font-weight: 600; color: var(--brand); }
.case-body h3 { margin: 0; font-size: 15.5px; line-height: 1.25; }
.case-prices { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.case-prices span { display: block; font-size: 11px; color: var(--muted); }
.case-prices b { font-size: 14.5px; color: var(--ink); }
.case-prices s { font-size: 13.5px; color: #94a3b8; }
.case-client { font-size: 11.5px; color: #64748b; background: #f8fafc; padding: 6px 8px; border-radius: 6px; margin-top: 4px; }

/* ── Схема работы, Услуги и FAQ ─────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { padding: 0 10px; position: relative; text-align: center; }
.step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px;
  margin: 0 auto 12px; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
.step::after { content: ""; position: absolute; top: 22px; left: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--brand), #ffd2b3); }
.step:last-child::after { display: none; }
.step b { display: block; margin-bottom: 4px; font-size: 14.5px; }
.step p { margin: 0; color: var(--ink-2); font-size: 13px; }
.step em { display: block; font-style: normal; color: var(--brand); font-size: 12px; font-weight: 600; margin-top: 6px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.service:hover { border-color: #fdba74; box-shadow: var(--shadow); }
.service .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.service .ico svg { width: 22px; height: 22px; }
.service b { display: block; font-size: 16.5px; margin-bottom: 6px; }
.service p { margin: 0 0 14px; color: var(--ink-2); flex: 1; }
.service-link { font-weight: 600; font-size: 13.5px; color: var(--brand); margin-top: auto; }

.faq-list { display: grid; gap: 10px; max-width: 880px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.faq-item[open] { border-color: #fdba74; box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.faq-item summary { list-style: none; padding: 16px 20px; font-weight: 700; font-size: 15.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; flex-shrink: 0; transition: transform .2s; }
.faq-item[open] summary::after { content: "−"; background: var(--brand); color: #fff; }
.faq-body { padding: 0 20px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* ── Каталог и брендовые переключатели ──────────────────── */
.crumbs { font-size: 12px; color: #64748b; padding: 14px 0 8px; }
.crumbs a:hover { color: var(--brand); }
.brand-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.brand-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 600; color: #334155; transition: all .15s; }
.brand-pill small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.brand-pill:hover { border-color: var(--brand); color: var(--brand); }
.brand-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.brand-pill.on small { color: #cbd5e1; }

.mobile-filter-bar { display: none; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.filter-toggle-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; flex: 1; justify-content: center; }
.filter-toggle-btn b { background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.filter-reset-mob { font-size: 13px; color: var(--brand); font-weight: 600; padding: 8px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-close-mob { display: none; border: 0; background: none; font-size: 24px; cursor: pointer; width: 36px; height: 36px; }

.catalog { display: grid; grid-template-columns: 264px 1fr; gap: 18px; align-items: start; padding-bottom: 44px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 80px; display: grid; gap: 12px; }
.filters h3 { margin: 0; font-size: 16px; }
.filters label { font-size: 12px; color: var(--ink-2); font-weight: 500; display: block; margin-bottom: 4px; }
.filters .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.field { width: 100%; min-height: 42px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 12px; background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.14); }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.checks label { margin: 0; display: inline-flex; align-items: center; gap: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px; cursor: pointer; font-size: 12.5px; color: var(--ink); }
.checks input { accent-color: var(--brand); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; flex-wrap: wrap; }
.list-head h1 { font-size: 20px; margin: 0; }
.list-head h1 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.sort { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.sort a.on { color: var(--brand); font-weight: 700; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #fff; border: 1px solid var(--line); padding: 0 10px; font-weight: 600; }
.pager .on { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--ink-2); }

/* ── Карточка автомобиля ────────────────────────────────── */
.car { display: grid; grid-template-columns: 1.25fr 1fr; gap: 18px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.gallery-main { aspect-ratio: 4/3; background: #eef2f6; border-radius: 8px; overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: rgba(15,23,42,.55); color: #fff; font-size: 20px; cursor: pointer; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; background: rgba(15,23,42,.65); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; background: #eef2f6; }
.thumbs button.on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -.4px; }
.car .variant { color: var(--ink-2); margin: 0 0 12px; }
.price-box { background: var(--brand-soft); border: 1px solid #ffe4cf; border-radius: 8px; padding: 14px 16px; margin: 12px 0; }
.price-box .label { font-size: 13px; color: var(--ink-2); }
.price-box .total { color: var(--price); font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-box .cny { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 12px 0; }
.specs div { background: #fff; padding: 10px 12px; }
.specs b { display: block; font-size: 15px; }
.specs span { font-size: 12px; color: var(--muted); }
.cta { display: grid; gap: 8px; }
.breakdown { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.breakdown td { padding: 9px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.breakdown td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.breakdown small { display: block; color: var(--muted); font-size: 12px; }
.breakdown tr.sum td { border: 0; font-size: 18px; font-weight: 800; color: var(--price); padding-top: 12px; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 10px; }
.sold-banner { background: #1e293b; color: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.sold-banner b { color: #ffb37a; }
.is-sold .gallery-main img { filter: grayscale(1) opacity(.7); }
.stamp { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-12deg); border: 4px solid var(--err);
  color: var(--err); font-weight: 900; font-size: 32px; padding: 6px 18px; border-radius: 8px; background: rgba(255,255,255,.85); }

/* ── Формы и поп-ап ─────────────────────────────────────── */
.form { display: grid; gap: 12px; }
.form .row label.lbl { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.form .err { color: var(--err); font-size: 12px; margin-top: 4px; min-height: 0; }
.field.invalid { border-color: var(--err); }
.radio-row { display: flex; gap: 8px; }
.radio-row label { flex: 1; text-align: center; border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 6px; cursor: pointer; font-weight: 600; font-size: 13px; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.radio-row label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(255,106,0,.25); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { font-size: 11.5px; color: var(--muted); margin: 0; }
.consent a { text-decoration: underline; }
.form-done { text-align: center; padding: 20px 0; }
.form-done svg { width: 56px; height: 56px; color: var(--ok); margin: 0 auto 8px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal.open { display: flex; }
.modal-bg { position: absolute; inset: 0; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); }
.modal-box { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 440px; padding: 24px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.modal-box h3 { margin: 0 0 4px; font-size: 20px; }
.modal-box .sub { margin: 0 0 16px; color: var(--ink-2); font-size: 13px; }
.modal-close { position: absolute; right: 10px; top: 10px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); width: 40px; height: 40px; }
.attached { background: var(--brand-soft); border: 1px solid #ffe4cf; border-radius: 8px; padding: 8px 12px; font-size: 12.5px; color: #9a3412; font-weight: 500; }

/* ── VIN-страница и превью отчёта Chaboshi ──────────────── */
.vin-hero { background: #fff; border-bottom: 1px solid var(--line); }
.vin-hero .wrap { display: grid; grid-template-columns: 1fr 440px; gap: 32px; padding-top: 32px; padding-bottom: 44px; align-items: start; }
.vin-hero h1 { font-size: 34px; letter-spacing: -.8px; margin: 10px 0 12px; line-height: 1.15; }
.vin-price-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; }
.vin-pill { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #fdba74; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 12.5px; }
.vin-free { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12.5px; }
.checklist { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 11px; }
.checklist li { padding-left: 28px; position: relative; color: var(--ink-2); }
.checklist li b { color: var(--ink); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }

.vin-sample-card { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-top: 20px; }
.vin-sample-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.vin-badge-ok { display: block; font-size: 11.5px; font-weight: 700; color: #059669; }
.vin-grade { background: #0f172a; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.vin-sample-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 12.5px; }
.vin-sample-grid span { display: block; color: #64748b; }
.vin-sample-grid b.ok { color: #059669; }

/* ── Блог ───────────────────────────────────────────────── */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card .cover { aspect-ratio: 16/9; color: #fff; display: flex; align-items: flex-end; padding: 18px; position: relative; overflow: hidden; }
.cover-util { background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #ea580c 100%); }
.cover-price { background: linear-gradient(135deg, #1e293b 0%, #0f172a 55%, #0284c7 100%); }
.cover-check { background: linear-gradient(135deg, #0f172a 0%, #134e4a 60%, #059669 100%); }
.cover-decor { display: flex; flex-direction: column; gap: 3px; }
.cover-pill { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; background: rgba(255,255,255,.16); padding: 3px 9px; border-radius: 999px; margin-bottom: 4px; }
.cover-big { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
.cover-sub { font-size: 12px; color: rgba(255,255,255,.82); }
.post-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; }
.post-card h3 { margin: 6px 0 8px; font-size: 16px; line-height: 1.35; }
.post-card p { margin: 0; color: var(--ink-2); font-size: 13.5px; }
.article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; max-width: 820px; }
.article h1 { font-size: 30px; letter-spacing: -.6px; line-height: 1.2; margin: 0 0 8px; }
.article .content { font-size: 16px; line-height: 1.7; }
.article .content h2 { font-size: 22px; margin-top: 28px; }
.article .content table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article .content td, .article .content th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }

/* ── Подвал и быстрый фасад карты ───────────────────────── */
.footer { background: #0f172a; color: #94a3b8; padding: 44px 0 80px; margin-top: 0; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .8fr .85fr 1.35fr; gap: 24px; }
.footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer .logo-text { color: #fff; }
.messengers { display: flex; gap: 8px; margin-top: 12px; }
.messengers a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; color: #fff; font-weight: 600; }
.messengers .wa { background: #16a34a; } .messengers .tg { background: #0284c7; }
.messengers a:hover { filter: brightness(1.1); color: #fff; }
.map { border-radius: 10px; overflow: hidden; height: 186px; background: #1e293b; border: 1px solid rgba(255,255,255,.1); }
.map iframe { width: 100%; height: 100%; border: 0; }
.map-facade { width: 100%; height: 100%; border: 0; background: radial-gradient(circle at 30% 30%, #1e293b, #0b1120); color: #e2e8f0; cursor: pointer; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; transition: background .2s; }
.map-facade:hover { background: #1e293b; }
.map-pin { font-size: 24px; }
.map-facade b { font-size: 14px; color: #fff; }
.map-facade small { font-size: 11.5px; color: #94a3b8; max-width: 260px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: #64748b; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 200; box-shadow: var(--shadow); }
.attached:empty { display: none; }

/* ── Доступность: prefers-reduced-motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js-anim .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Адаптив ────────────────────────────────────────────── */
@media (max-width: 1120px) {
  .grid, .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .step:nth-child(3)::after { display: none; }
  .nav { gap: 13px; font-size: 13.5px; }
}
@media (max-width: 1060px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 18px; box-shadow: 0 18px 36px rgba(15,23,42,.14); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav-mobile-contacts { display: grid; gap: 10px; padding-top: 14px; }
  .nav-mobile-contacts .phone-mob { font-weight: 800; font-size: 17px; color: var(--ink); padding: 4px 0; border: 0; }
  .nav-mobile-contacts .messengers { margin-top: 0; }
  .nav-mobile-contacts .messengers a { flex: 1; justify-content: center; padding: 11px; border: 0; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .header .phone { display: none; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .hero-showcase { max-width: 100%; }
  .hero h1 { font-size: 32px; }
  .quick-form { grid-template-columns: 1fr; }
  .quick-pick { grid-template-columns: 1fr; }
  .about, .calc-grid { grid-template-columns: 1fr; }
  .facts, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: 1fr; }
  .mobile-filter-bar { display: flex; }
  .filters { display: none; position: static; }
  .filters.mobile-open { display: grid; }
  .filters-close-mob { display: inline-flex; align-items: center; justify-content: center; }
  .car { grid-template-columns: 1fr; }
  .services, .posts { grid-template-columns: 1fr 1fr; }
  .vin-hero .wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar nav { display: none; }
}
@media (max-width: 600px) {
  .hero-photo { display: none; }
  .hero h1 { font-size: 28px; }
  .grid, .grid-3 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cases-grid, .calc-row-2, .vin-sample-grid { grid-template-columns: 1fr; }
  .card-price b { font-size: 18px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 13.5px; }
  .steps { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 12px; text-align: left; }
  .step::before { margin: 0; }
  .step::after { left: 21px; top: 44px; width: 2px; height: calc(100% + 24px); }
  .step:nth-child(3)::after { display: block; }
  .step:last-child::after { display: none; }
  .services, .posts, .footer-grid { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr 1fr; }
  .list-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 23px; }
  .header .wrap { gap: 10px; }
  .logo svg { width: 32px; height: 32px; }
  .logo-text { font-size: 18.5px; }
  .logo-sub { display: none; }
  .header-right { gap: 8px; }
  .header-right .btn { padding: 10px 12px; font-size: 13px; min-height: 40px; }
  .article, .calc-controls, .calc-receipt { padding: 18px; }
  .calc-total { font-size: 30px; }
  .topbar .wrap { justify-content: center; text-align: center; }
  .brand-pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .brand-pill { flex-shrink: 0; }
}
