/* ---------- Токены ---------- */
:root {
  --bg: #0e1012;
  --bg-2: #14171a;
  --card: #1a1e22;
  --card-2: #20252a;
  --line: #2b3137;
  --text: #eef0f2;
  --muted: #9aa3ab;
  --dim: #6b747c;
  --accent: #ff8a1f;
  --accent-2: #ffb35c;
  --accent-ink: #1a0f00;
  --ok: #4cc38a;
  --warn: #ffcc4d;
  --danger: #ff6b5b;

  /* цвета статей расходов */
  --c-car: #5b8def;
  --c-delivery: #7c6cf0;
  --c-duty: #ff8a1f;
  --c-vat: #ffb35c;
  --c-fee: #c9a46b;
  --c-util: #ff6b5b;
  --c-other: #6b747c;

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font-head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5.2vw, 58px); font-weight: 700; }
h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 16, 18, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .01em; }
.logo-mark {
  display: inline-grid; place-items: center; flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -1px; text-transform: none; padding-bottom: 1px;
}
.name-note { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.name-note .logo-mark { width: 26px; height: 26px; font-size: 13px; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.active { color: var(--accent-ink); background: var(--accent); }

/* ---------- Кнопки, бейджи ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 800; padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 16px;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--card); }
.badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; background: var(--card-2); color: var(--muted);
}
.badge.soon { background: rgba(255, 138, 31, .12); color: var(--accent-2); }
.badge.check { background: rgba(255, 204, 77, .12); color: var(--warn); }
.badge.ok { background: rgba(76, 195, 138, .12); color: var(--ok); }

/* ---------- Главная ---------- */
.hero { padding: 72px 0 48px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(255, 138, 31, .18), transparent 60%);
  pointer-events: none;
}
.hero .eyebrow { color: var(--accent); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; margin-bottom: 18px; }
.hero h1 { max-width: 15ch; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 58ch; margin: 18px 0 28px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(22px, 3vw, 30px); color: var(--text); margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 14px; }

section.block { padding: 56px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 60ch; }

.grid { display: grid; gap: 14px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
a.card { color: inherit; transition: border-color .15s ease, transform .15s ease; }
a.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.card .num { font-family: var(--font-head); color: var(--accent); font-size: 14px; }

.teaser {
  background: linear-gradient(135deg, #1d1712, #14171a 60%);
  border: 1px solid #3a2a1a; border-radius: 22px; padding: clamp(22px, 4vw, 40px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
}
.teaser .big { font-family: var(--font-head); font-size: clamp(30px, 5vw, 52px); color: var(--accent); line-height: 1; }
.teaser .vs { display: grid; gap: 10px; }
.teaser .vs div { background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px; }
.teaser .vs b { font-family: var(--font-head); }

/* ---------- Модели ---------- */
.models-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.model-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.model-card .brand { color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.model-card h3 { font-size: 24px; margin: 2px 0 0; }
.model-card .tagline { color: var(--muted); margin: 0; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.spec { background: var(--bg-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.spec small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 2px; }
.spec b { font-weight: 700; }
.engines { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.engines li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.engines li:last-child { border-bottom: 0; }
.engines .hp { font-weight: 800; white-space: nowrap; }
.engines .note { display: block; color: var(--dim); font-size: 12px; }
.model-card .foot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.model-card .foot .btn { padding: 10px 16px; font-size: 14px; }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 8px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { color: var(--dim); font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px; font-size: 16px; font-family: var(--font-body);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; position: relative; }
.seg.two { grid-template-columns: repeat(2, 1fr); }
.seg.five { grid-template-columns: repeat(6, 1fr); }
.seg.five label { grid-column: span 2; }
.seg.five label:nth-of-type(n+4) { grid-column: span 3; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; margin: 0; padding: 0; }
.seg label {
  text-align: center; padding: 10px 6px; border-radius: var(--radius-sm); background: var(--bg-2);
  border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted);
}
.seg input:checked + label { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.seg input:focus-visible + label { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.assume { font-size: 12px; color: var(--warn); }

.result-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.result-total .sum { font-family: var(--font-head); font-size: clamp(30px, 5vw, 46px); line-height: 1.05; }
.result-total .usd { color: var(--muted); }
.state-share { margin: 6px 0 18px; color: var(--muted); }
.state-share b { color: var(--accent); }

.bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; background: var(--bg-2); margin-bottom: 18px; }
.bar span { height: 100%; transition: width .3s ease; }

.rows { display: grid; gap: 2px; }
.row {
  display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: start;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row .dot { width: 12px; height: 12px; border-radius: 4px; margin-top: 5px; }
.row .name { font-weight: 700; }
.row .name small { display: block; color: var(--dim); font-weight: 500; font-size: 13px; }
.row .val { font-weight: 800; white-space: nowrap; text-align: right; }
.row details { grid-column: 2 / 4; font-size: 13px; color: var(--muted); }
.row summary { cursor: pointer; color: var(--dim); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.row summary::-webkit-details-marker { display: none; }
.row details[open] summary { color: var(--muted); }
.row details p { margin: 6px 0; }
.row details ul { margin: 4px 0 0; padding-left: 18px; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px; font-size: 14px; border: 1px solid; }
.alert > b { display: block; margin-bottom: 4px; }
.alert.warn { background: rgba(255, 204, 77, .07); border-color: rgba(255, 204, 77, .35); color: #ffe2a0; }
.alert.danger { background: rgba(255, 107, 91, .08); border-color: rgba(255, 107, 91, .4); color: #ffc4bc; }
.alert.info { background: var(--bg-2); border-color: var(--line); color: var(--muted); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; margin-top: 48px; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.page-head { padding: 44px 0 16px; }
.page-head p { color: var(--muted); max-width: 66ch; font-size: 17px; }

/* ---------- Болячки ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips button {
  background: var(--card); color: var(--muted); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font: 700 14px var(--font-body); cursor: pointer;
}
.chips button:hover { color: var(--text); border-color: var(--dim); }
.chips button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.issues-stats { margin-top: 0; }
.comp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 5px; }
.comp-row b { white-space: nowrap; }
.comp-bar { height: 8px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.comp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.year-bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 10px; }
.year-bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.year-bar .b { width: 100%; max-width: 56px; background: var(--c-car); border-radius: 8px 8px 3px 3px; }
.year-bar .v { font-size: 13px; font-weight: 700; }
.year-bar .y { font-size: 13px; color: var(--dim); }
.recalls { list-style: none; margin: 0; padding: 0; display: grid; }
.recall { padding: 14px 0; border-bottom: 1px solid var(--line); }
.recall:last-child { border-bottom: 0; }
.recall-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.recall p { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.recall-meta { font-size: 12px; color: var(--dim); }
.badge.danger { background: rgba(255, 107, 91, .14); color: var(--danger); }
.more summary { cursor: pointer; color: var(--accent-2); font-weight: 700; padding: 10px 0; }

/* ---------- Сравнения ---------- */
.compare-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: end; margin-bottom: 16px; }
.compare-pick .field { margin: 0; }
.vs-badge { font-family: var(--font-head); color: var(--accent); font-size: 20px; padding-bottom: 10px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp thead th { font-family: var(--font-head); font-size: 17px; font-weight: 600; background: var(--card-2); }
table.cmp thead .brand { display: block; font-family: var(--font-body); color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
table.cmp tbody th { color: var(--muted); font-weight: 700; width: 28%; font-size: 14px; }
table.cmp small { color: var(--dim); font-size: 12px; font-weight: 500; }
table.cmp td.win { background: rgba(255, 138, 31, .08); box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
table.cmp .neg { color: var(--danger); }
.points { margin: 0; padding-left: 20px; display: grid; gap: 10px; color: var(--muted); }
.points li::marker { color: var(--accent); }

/* ---------- Статья ---------- */
.article { max-width: 820px; }
.eyebrow-sm { color: var(--accent); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 12px; margin-bottom: 12px; }
.lead-sm { font-size: 18px; color: var(--muted); }
.prose { margin: 28px 0; }
.prose h2 { margin-top: 36px; }
.prose h3 { margin-top: 24px; }
.prose p { color: #cfd4d9; font-size: 17px; }
.facts { padding-left: 20px; display: grid; gap: 12px; color: #cfd4d9; font-size: 16px; margin: 0 0 16px; }
.facts li::marker { color: var(--accent); font-weight: 800; }
.mass-tool { margin: 28px 0; border-color: #3a2a1a; background: linear-gradient(160deg, #1d1712, var(--card) 55%); }
.mass-input { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.mass-input input[type=range] { flex: 1; accent-color: var(--accent); padding: 0; border: 0; background: none; height: 32px; }
.mass-num { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.mass-num input { width: 110px; font-family: var(--font-head); font-size: 20px; text-align: right; }
.mass-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin: 2px 126px 16px 0; position: relative; }
.mass-scale .mark { color: var(--accent); font-weight: 800; position: absolute; left: 47.6%; transform: translateX(-50%); }
.mass-verdict { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; font-size: 15px; border: 1px solid; }
.mass-verdict.ok { background: rgba(76, 195, 138, .08); border-color: rgba(76, 195, 138, .35); }
.mass-verdict.warn { background: rgba(255, 204, 77, .07); border-color: rgba(255, 204, 77, .35); }
.mass-verdict.bad { background: rgba(255, 107, 91, .08); border-color: rgba(255, 107, 91, .4); }
.mass-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mi { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 15px; }
.mi b { display: block; }
.mi span:not(.mi-icon) { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mi-icon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.mi.ok .mi-icon { background: rgba(76, 195, 138, .16); color: var(--ok); }
.mi.bad .mi-icon { background: rgba(255, 107, 91, .16); color: var(--danger); }
.mi.check .mi-icon { background: rgba(255, 204, 77, .14); color: var(--warn); }
.mass-table { min-width: 0; }

/* ---------- Калькулятор: владение и заявка ---------- */
.own { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.own h3 { font-size: 16px; margin-bottom: 12px; }
.own-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.own-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 4px; }
.own-card.main { border-color: rgba(255, 138, 31, .5); }
.own-card b { font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.own-card b span { font-family: var(--font-body); font-size: 13px; color: var(--muted); font-weight: 600; }
.own-card small { color: var(--dim); font-size: 12px; }
.own-save { margin: 12px 0 6px; font-size: 14px; color: var(--muted); }
.own-save b { color: var(--ok); }
.own details { font-size: 13px; color: var(--muted); }
.own summary { cursor: pointer; color: var(--dim); list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.own summary::-webkit-details-marker { display: none; }
.lead {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, rgba(255,138,31,.16), rgba(255,138,31,.04)); border: 1px solid rgba(255,138,31,.45);
  border-radius: var(--radius); padding: 16px 18px;
}
.lead h3 { margin: 0 0 4px; font-size: 17px; }
.lead p { margin: 0; color: var(--muted); font-size: 14px; }
.lead .btn { flex-shrink: 0; }
.lead.done { background: rgba(76, 195, 138, .08); border-color: rgba(76, 195, 138, .4); }

/* ---------- Плашка cookie ---------- */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}
.cookie-bar p { margin: 0; font-size: 13px; color: var(--muted); }
.cookie-bar .btn { padding: 10px 18px; font-size: 14px; flex-shrink: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .teaser { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .site-header .wrap { gap: 12px; }
  .logo { font-size: 14px; }
  .nav { gap: 2px; }
  .nav a { padding: 6px 8px; font-size: 12.5px; }
  .nav a[href="index.html"] { display: none; }
  .logo-text { display: none; }
  .hero { padding: 44px 0 32px; }
  .stats { grid-template-columns: 1fr; }
  .grid.cols-3, .grid.cols-2, .models-grid { grid-template-columns: 1fr; }
  .seg:not(.five) { grid-template-columns: 1fr 1fr; }
  section.block { padding: 40px 0; }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .compare-pick { grid-template-columns: 1fr; gap: 8px; }
  .own-grid { grid-template-columns: 1fr; }
  .lead { flex-direction: column; align-items: stretch; }
  table.cmp { min-width: 0; font-size: 13px; table-layout: fixed; }
  table.cmp th, table.cmp td { padding: 10px 8px; overflow-wrap: anywhere; }
  table.cmp thead th { font-size: 14px; }
  table.cmp tbody th { width: 30%; font-size: 12px; }
  table.cmp small { font-size: 11px; }
  .mass-scale { margin-right: 0; }
  .mass-input { flex-wrap: wrap; }
  .mass-input input[type=range] { flex-basis: 100%; }
  .prose p { font-size: 16px; }
  .vs-badge { text-align: center; padding: 0; }
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
