:root {
  --blue: #0d4cd3;
  --blue-h: #0a3bb0;
  --blue-soft: #e8eefc;
  --blue-deep: #062a86;
  --bg: #f4f6fb;
  --ink: #0b1f33;
  --muted: #5c6b7a;
  --line: #e2e8f0;
  --card: #ffffff;
  --ok: #0b8f5b;
  --ok-soft: #e5f6ee;
  --warn: #9a3412;
  --warn-soft: #ffedd5;
  --gold: #c2410c;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.04), 0 8px 24px rgba(13, 76, 211, 0.06);
  --sans: "Segoe UI", "PT Sans", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --r: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 20; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.top-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand:hover { text-decoration: none; }
.mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--blue);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: -0.04em;
}
.brand b { display: block; font-size: 18px; color: var(--ink); font-weight: 700; line-height: 1.15; }
.brand small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.nav { display: flex; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.nav a {
  color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }

.hero {
  padding: 36px 0 8px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
}
.kicker {
  font-size: 13px; font-weight: 600; color: var(--blue);
  margin-bottom: 8px;
}
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 12px; color: var(--ink); }
h1 { font-size: clamp(28px, 4.2vw, 40px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 18px; }
.lede { font-size: 17px; color: var(--muted); max-width: 48ch; margin: 0 0 18px; }

.finder {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.finder label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.finder select, .finder input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid #cfd8e3; background: #fff;
  font: 16px var(--sans); color: var(--ink);
  border-radius: 8px;
}
.finder select:focus, .finder input:focus, .field input:focus, .field select:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
.row { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff; border: 0; padding: 12px 18px;
  font: 600 15px var(--sans); cursor: pointer;
  text-decoration: none; white-space: nowrap; border-radius: 8px;
}
.btn:hover { background: var(--blue-h); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #c5d0f0; }
.btn.ghost:hover { background: var(--blue-soft); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 16px 0 28px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; box-shadow: var(--shadow);
}
.stat .n {
  font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700;
  color: var(--blue); line-height: 1.1;
}
.stat .l { font-size: 13px; color: var(--muted); margin-top: 6px; }

.section { padding: 28px 0 8px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: var(--shadow);
  text-decoration: none; color: inherit; display: block;
  transition: border-color .15s, box-shadow .15s;
}
.card:hover {
  border-color: #b9c8f2; box-shadow: 0 8px 28px rgba(13, 76, 211, 0.1);
  text-decoration: none;
}
.card .meta {
  display: inline-block;
  font-size: 12px; font-weight: 600; color: var(--blue);
  background: var(--blue-soft); border-radius: 6px;
  padding: 3px 8px; margin-bottom: 10px;
}
.card p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.big {
  font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: clamp(36px, 6vw, 56px); line-height: 0.95; color: var(--ink);
}
.big em { font-style: normal; color: var(--blue); }
.unit { font-size: 0.36em; color: var(--muted); margin-left: 6px; font-weight: 600; }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r);
}
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 12px; color: var(--muted); font-weight: 600; background: #f8fafc; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-size: 15px; font-weight: 600; }

.note {
  font-size: 14px; color: var(--muted);
  border-left: 3px solid var(--blue); padding: 10px 14px; margin: 16px 0;
  background: var(--blue-soft); border-radius: 0 8px 8px 0;
}
.warn {
  font-size: 14px; color: var(--warn); background: var(--warn-soft);
  padding: 12px 14px; margin: 16px 0; border-radius: 8px;
}

.calc {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.result {
  margin-top: 16px; padding: 16px; background: var(--ok-soft);
  border-radius: 12px;
}
.result .n { font-size: 32px; font-weight: 700; color: var(--ok); }
.result ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: #fff; padding: 7px 12px;
  font-size: 13px; text-decoration: none; color: var(--ink); border-radius: 20px;
}
.chip:hover, .chip.is-on {
  border-color: var(--blue); background: var(--blue); color: #fff; text-decoration: none;
}

.fo { margin: 22px 0; }
.fo h3 { font-size: 14px; font-weight: 700; color: var(--muted); }
.region-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 16px; }
.region-list a { color: var(--ink); text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.region-list a:hover { color: var(--blue); text-decoration: underline; }

.ad-slot {
  border: 1px dashed #c5d0e0; background: #fff;
  min-height: 90px; display: grid; place-items: center;
  color: #94a3b8; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 18px 0; border-radius: var(--r);
}
.crumb { font-size: 13px; color: var(--muted); margin: 16px 0; }
.crumb a { color: var(--muted); }

.faq details {
  background: #fff; border: 1px solid var(--line); padding: 12px 16px;
  margin-bottom: 8px; border-radius: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.footer {
  margin-top: 56px; padding: 32px 0 40px;
  background: #0b1f33; color: #9aa8b8; font-size: 13px;
}
.footer .wrap { }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-bottom: 14px; }
.footer a { color: #c9d4e0; }
.footer a:hover { color: #fff; }
.footer p { margin: 0 0 8px; max-width: 80ch; }

.prose p { margin: 0 0 12px; max-width: 68ch; }
.prose h2 { margin-top: 28px; }
.car-pic {
  width: 100%; height: 150px; object-fit: cover; display: block;
  border-radius: 16px 16px 0 0; margin: -18px -18px 14px;
  width: calc(100% + 36px); max-width: none;
}
.car-hero {
  width: 100%; max-width: 720px; height: auto; border-radius: 16px;
  display: block; margin: 0 0 18px; box-shadow: var(--shadow);
}
.car-thumb { width: 56px; height: 32px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 8px; }
.popular-regions { display: flex; flex-wrap: wrap; gap: 8px; }

.stamp-box {
  display: inline-block; background: var(--blue-soft); color: var(--blue);
  padding: 4px 10px; font-size: 12px; font-weight: 600;
  border-radius: 6px; margin-bottom: 10px;
}

@media (max-width: 860px) {
  .hero, .stats, .grid-3, .grid-2, .fields { grid-template-columns: 1fr; }
  .top-inner { flex-direction: column; align-items: flex-start; }
  .row { flex-direction: column; }
  h1 { font-size: 28px; }
}
