:root {
  --navy: #0b1f36;
  --navy-2: #132a47;
  --navy-3: #1b3c63;
  --ink: #15202b;
  --muted: #5d6b7a;
  --line: #e3e8ee;
  --bg: #f3f5f8;
  --paper: #ffffff;
  --amber: #f4a522;
  --amber-d: #d48c0f;
  --amber-s: #fff4dc;
  --cta: #e85d04;
  --cta-h: #cf4f00;
  --blue: #1a6fbf;
  --green: #1b9e5a;
  --green-s: #e8f8ef;
  --red: #d32f2f;
  --shadow: 0 8px 28px rgba(11, 31, 54, 0.08);
  --shadow-lg: 0 18px 50px rgba(11, 31, 54, 0.14);
  --r: 12px;
  --r-sm: 8px;
  --max: 1240px;
  --header: 68px;
  --nav: 80px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.site-main { flex: 1; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; }
.header-top {
  background: var(--navy);
  color: #fff;
  min-height: var(--header);
  height: auto;
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-top .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 320px) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  width: min(var(--max), calc(100% - 32px));
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: nowrap; justify-self: start; }
.logo-mark { height: 148px; width: auto; display: block; flex-shrink: 0; }
.logo-stage .logo-mark { height: 320px; }
.site-footer .logo-mark { height: 120px; width: auto; }
.header-search {
  width: 100%;
  position: relative;
  justify-self: center;
}
.header-search .ai-badge {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-width: 32px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  pointer-events: none;
}
.header-search input {
  width: 100%;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 40px 0 46px;
  background: #fff;
  color: var(--ink);
  outline: none;
  font-size: 13.5px;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { border-color: var(--amber); background: #fff; }
.header-search button {
  position: absolute;
  right: 4px; top: 4px;
  width: 32px; height: 32px;
  border: 0; background: transparent; color: var(--navy);
}
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.header-top .icon-btn,
.header-top .btn-ghost { color: #fff; }
.header-top .btn-ghost { border-color: rgba(255,255,255,.45); }
.header-top .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.icon-btn {
  width: 40px; height: 40px; border: 0; background: transparent;
  color: var(--navy); border-radius: 10px; display: grid; place-items: center;
  position: relative;
}
.header-top .icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn:hover { background: var(--bg); }
.icon-btn .badge {
  position: absolute; top: 4px; right: 2px;
  background: var(--cta); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
  font-weight: 700; white-space: nowrap; transition: .15s ease;
}
.btn-ghost {
  background: transparent; border: 1.5px solid var(--line); color: var(--navy);
}
.btn-ghost:hover { border-color: var(--navy); }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-h); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: var(--amber-d); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }

.header-nav {
  background: var(--navy);
  color: #fff;
  height: var(--nav);
}
.header-nav .wrap {
  display: flex; align-items: center; height: 100%; gap: 4px;
}
.nav-badge {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-right: 16px; margin-right: 8px;
  border-right: 1px solid rgba(255,255,255,.15);
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--amber); line-height: 1.1; height: 100%;
}
.nav-badge span { display: block; font-size: 9px; color: rgba(255,255,255,.7); font-weight: 600; letter-spacing: .08em; }
.header-nav .wrap { overflow-x: auto; gap: 2px; }
.header-nav a {
  padding: 8px 10px 6px; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; min-width: 72px;
  font-size: 11px; font-weight: 600; color: #fff;
  border-bottom: 3px solid transparent; text-align: center;
  line-height: 1.15; white-space: normal;
}
.header-nav a svg {
  width: 32px; height: 26px; flex-shrink: 0; color: #fff;
}
.header-nav a:hover, .header-nav a.active {
  color: #fff; border-bottom-color: var(--amber); background: rgba(255,255,255,.06);
}
.menu-toggle { display: none; }
.nav-more { position: relative; height: 100%; display: flex; align-items: center; }
.nav-more-btn {
  height: 100%; padding: 8px 12px; border: 0; background: transparent;
  color: #fff; font-weight: 700; font-size: 12px; cursor: pointer;
}
.nav-more.open .nav-more-btn, .nav-more-btn:hover { background: rgba(255,255,255,.06); }
.nav-more-menu {
  display: none; position: absolute; top: 100%; right: 0; z-index: 30;
  min-width: 280px; max-height: 70vh; overflow: auto;
  background: #fff; color: var(--ink); border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow-lg); padding: 8px 0;
}
.nav-more.open .nav-more-menu { display: block; }
.nav-more-menu a {
  display: block; padding: 8px 16px; color: var(--ink); font-size: 14px;
  min-width: 0; height: auto; border: 0; text-align: left;
}
.nav-more-menu a:hover { background: var(--bg); color: var(--navy); }
.cat-tree {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; margin-top: 18px;
}
.cat-node {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px 16px; background: #fff; border-radius: var(--r);
  border: 1px solid var(--line); font-size: 15px;
}
.cat-node:hover { border-color: var(--amber); }
.cat-node span { color: var(--muted); font-size: 13px; font-weight: 600; }
.eq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 16px;
  margin-top: 8px;
  align-items: start;
}
.eq-grid label {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 8px;
  align-items: center;
  min-height: 26px;
  font-size: 13px;
  line-height: 1.25;
}
.eq-grid input[type="checkbox"] {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: var(--amber);
  justify-self: center;
}

/* Hero */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 36px 0 48px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(244,165,34,.18), transparent 28%),
    linear-gradient(135deg, transparent 0 46%, rgba(255,255,255,.03) 46% 50%, transparent 50%),
    repeating-linear-gradient(60deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px);
  pointer-events: none;
}
.hero-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.hero-logo {
  width: min(168px, 42vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, 0.28));
}
.tacho-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.tacho-svg {
  width: min(300px, 62vw);
  height: auto;
  display: block;
  font-family: Inter, system-ui, sans-serif;
}
.tacho-wheel {
  width: min(132px, 28vw);
  height: auto;
  display: block;
}
.tacho-mini {
  gap: 0;
  width: 48px;
  height: 48px;
}
.tacho-mini .tacho-svg { width: 48px; height: 48px; }
.tacho-mini .tacho-wheel { display: none; }
.hero-gauge { filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.35)); }
.search-card {
  position: relative;
  background: #fff; color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--navy);
}
.search-tabs a,
.search-tabs button {
  min-height: 92px; border: 0; background: transparent;
  font-weight: 700; color: #fff; text-decoration: none;
  border-bottom: 3px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 12.5px; line-height: 1.15; padding: 10px 6px 8px; text-align: center;
}
.search-tabs a span,
.search-tabs button span { display: block; max-width: 100%; }
.search-tabs a svg,
.search-tabs button svg {
  height: 42px; width: auto; max-width: 108px; color: #fff; flex-shrink: 0;
}
.search-grid .btn svg { flex-shrink: 0; }
.search-tabs a.active,
.search-tabs button.active,
.search-tabs a:hover,
.search-tabs button:hover {
  color: #fff; border-bottom-color: var(--amber); background: rgba(255,255,255,.1);
}
.search-extra {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--navy);
}
.search-extra button {
  min-height: 104px; border: 0; cursor: pointer; font: inherit;
  background: transparent; font-weight: 700; color: #fff;
  border-bottom: 3px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: 12.5px; line-height: 1.15; padding: 10px 6px 8px; text-align: center;
}
.search-extra button span { display: block; max-width: 100%; }
.search-extra button svg {
  height: 52px; width: auto; max-width: 128px; color: #fff; flex-shrink: 0;
}
.search-extra button:hover,
.search-extra button.active {
  color: #fff; border-bottom-color: var(--amber); background: rgba(255,255,255,.1);
}
.search-extra[hidden] { display: none; }
.search-cats-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  border: 0;
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.search-cats-toggle[hidden] { display: none; }
.search-cats-toggle:hover { color: var(--amber); }
.search-cats-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.search-card.is-more-open .search-cats-toggle::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.search-grid {
  display: grid;
  grid-template-columns: minmax(0,1.3fr) minmax(0,1.3fr) minmax(0,.9fr) minmax(0,.9fr) minmax(0,1fr) auto;
  gap: 12px;
  padding: 18px 18px 8px;
  align-items: end;
}
.search-advanced[hidden] { display: none; }
.search-advanced {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 4px 18px 8px;
  border-top: 1px dashed var(--line);
  margin: 0 18px;
}
.search-checks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 4px 14px;
  padding: 4px 0 6px;
}
.search-checks label {
  display: grid;
  grid-template-columns: 13px minmax(0, 1fr);
  align-items: center;
  column-gap: 8px;
  min-height: 24px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.search-checks input { accent-color: var(--amber); width: 13px; height: 13px; margin: 0; justify-self: center; }
.search-more {
  display: flex; justify-content: center; padding: 4px 18px 16px;
}
.search-more button {
  border: 0; background: none; color: var(--blue);
  font-weight: 700; font-size: 14px;
}
.search-more button:hover { color: var(--navy); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select, .field textarea {
  height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 0 12px; background: #fff; outline: none; width: 100%; min-width: 0;
}
.field textarea { height: auto; min-height: 110px; padding: 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(244,165,34,.18); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.hero-stats {
  display: flex; gap: 28px; margin-top: 18px; position: relative;
  color: rgba(255,255,255,.8); font-size: 14px;
}
.hero-stats b { color: #fff; font-size: 18px; }

/* Sections */
.section { padding: 36px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.section-head h2 { font-size: 24px; }
.section-head p { color: var(--muted); font-size: 14px; }
.chip-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 13px;
}
.chip.active, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

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

.car-card {
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 0 var(--line); border: 1px solid var(--line);
  transition: .18s ease;
}
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-card .photo {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: #dfe5ec;
}
.car-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.badge-pill {
  position: absolute; left: 8px; top: 8px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px;
}
.badge-pill.warn { background: #2b6cb0; }
.badge-pill.hot { background: var(--cta); }
.fav {
  position: absolute; right: 8px; top: 8px;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center;
}
.fav.on { color: var(--cta); }
.car-card .body { padding: 10px 12px 12px; }
.car-card h3 { font-size: 14px; font-weight: 700; }
.car-card .meta { color: var(--muted); font-size: 12px; margin: 4px 0 8px; }
.car-card .price { font-weight: 800; font-size: 16px; color: var(--navy); }

/* Listing row */
.layout-2 {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 22px 0 40px;
}
.layout-3 {
  display: grid; grid-template-columns: 260px minmax(0,1fr) 280px; gap: 20px; padding: 22px 0 40px;
}
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
}
.panel h3 { font-size: 14px; margin-bottom: 10px; }
.filter-list a, .filter-list button {
  display: flex; justify-content: space-between; width: 100%;
  padding: 7px 0; border: 0; background: none; text-align: left;
  font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--bg);
}
.filter-list span { color: var(--muted); font-size: 12px; }
.filter-list a:hover, .filter-list button:hover { color: var(--blue); }
.filters .field { margin-bottom: 10px; }
.page-title { padding-top: 22px; }
.page-title h1 { font-size: 28px; }
.page-title .crumbs { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.page-title .crumbs a:hover { color: var(--blue); }
.toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-bottom: 12px;
}
.toolbar .count { color: var(--muted); font-size: 14px; }

.listing {
  display: grid; grid-template-columns: 260px 1fr auto; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px; margin-bottom: 12px;
}
.listing:hover { box-shadow: var(--shadow); }
.listing .photo { position: relative; border-radius: 8px; overflow: hidden; height: 168px; }
.listing .photo img { width: 100%; height: 100%; object-fit: cover; }
.listing h3 { font-size: 18px; margin-bottom: 4px; }
.listing h3:hover { color: var(--blue); }
.specs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 10px 0; color: var(--muted); font-size: 13px; }
.specs b { color: var(--ink); font-weight: 600; }
.listing .side { text-align: right; min-width: 150px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.listing .price { font-size: 22px; font-weight: 800; color: var(--navy); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag.ok { background: var(--green-s); color: var(--green); }
.tag.info { background: #e8f1fb; color: var(--blue); }
.tag.hot { background: #ffece3; color: var(--cta); }

/* Detail */
.gallery {
  display: grid; grid-template-columns: 1.6fr .7fr; gap: 8px;
}
.gallery .main {
  position: relative; border-radius: 14px; overflow: hidden; min-height: 420px; background: #111;
}
.gallery .main img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.thumbs { display: grid; gap: 8px; }
.thumbs img { height: 101px; width: 100%; object-fit: cover; border-radius: 10px; cursor: pointer; }
.buy-box { position: sticky; top: 128px; }
.buy-box .price { font-size: 32px; font-weight: 800; }
.buy-box .old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.seller {
  display: flex; gap: 12px; align-items: center; margin: 14px 0;
}
.seller img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 16px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bg); font-size: 14px; }
.kv span { color: var(--muted); }
.desc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-top: 16px; }
.desc p + p { margin-top: 10px; color: #334; }

/* Auth */
.auth-page {
  min-height: calc(100vh - 180px);
  display: grid; place-items: center; padding: 40px 16px;
  background:
    radial-gradient(circle at 10% 10%, rgba(244,165,34,.18), transparent 30%),
    linear-gradient(180deg, #0b1f36 0 42%, var(--bg) 42%);
}
.auth-card .logo-mark { height: 132px; }
.auth-card .tacho-wheel { width: 96px; }
.auth-card {
  width: min(440px, 100%);
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { margin: 8px 0 6px; font-size: 26px; }
.auth-card .sub { color: var(--muted); margin-bottom: 18px; }
.auth-card .field { margin-bottom: 12px; }

/* Wizard */
.steps { display: flex; gap: 8px; margin-bottom: 20px; list-style: none; }
.steps li {
  flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted);
  padding-bottom: 10px; border-bottom: 3px solid var(--line);
}
.steps li.on { color: var(--navy); border-color: var(--amber); }
.dropzone {
  border: 2px dashed var(--line); border-radius: 12px; padding: 28px; text-align: center; background: #fafbfc;
  color: var(--muted);
}
.dropzone strong { color: var(--navy); display: block; margin-bottom: 4px; }

/* Dealers / articles */
.dealer-card, .article-card, .price-card, .help-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.dealer-card .cover { height: 110px; background: var(--navy); }
.dealer-card .body, .article-card .body, .price-card, .help-card { padding: 16px; }
.article-card img { height: 170px; width: 100%; object-fit: cover; }
.article-card h3 { margin: 8px 0; font-size: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price-card { text-align: center; padding: 28px 20px; }
.price-card.featured { border: 2px solid var(--amber); transform: translateY(-6px); }
.price-card .amount { font-size: 36px; font-weight: 800; margin: 8px 0; }
.price-card ul { text-align: left; margin: 16px 0 22px; }
.price-card li { padding: 7px 0 7px 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.table th { background: var(--navy); color: #fff; font-weight: 600; }
.compare-img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; }

.account-grid { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 24px 0 40px; }
.side-nav a {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px;
}
.side-nav a.active, .side-nav a:hover { background: var(--navy); color: #fff; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.stat b { display: block; font-size: 24px; }
.stat span { color: var(--muted); font-size: 13px; }

.news-side .item { display: grid; grid-template-columns: 72px 1fr; gap: 10px; margin-bottom: 14px; }
.news-side img { width: 72px; height: 56px; object-fit: cover; border-radius: 8px; }

.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 10px; text-align: center; font-weight: 700; font-size: 13px;
}
.cat:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.cat span { display: block; font-size: 22px; margin-bottom: 6px; }

.pager { display: flex; gap: 6px; justify-content: center; margin: 22px 0; }
.pager a, .pager span {
  min-width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 700;
}
.pager .on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.78); margin-top: auto; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
  padding: 42px 0 28px;
}
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 14px; }
.site-footer a { display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 14px 0 22px; display: flex; justify-content: space-between; font-size: 13px;
}

.mobile-only { display: none; }

@media (max-width: 1100px) {
  .cards-6 { grid-template-columns: repeat(3, 1fr); }
  .layout-3 { grid-template-columns: 240px 1fr; }
  .layout-3 .news-col { display: none; }
  .search-grid { grid-template-columns: 1fr 1fr 1fr; }
  .search-advanced { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid, .cards-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .header-top .wrap {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo actions"
      "search search";
  }
  .logo { grid-area: logo; }
  .header-search { grid-area: search; width: 100%; }
  .header-actions { grid-area: actions; }
}
@media (max-width: 820px) {
  .btn-login-label { display: none; }
  .menu-toggle { display: grid; }
  .header-nav { display: none; }
  .header-nav.open { display: block; height: auto; padding: 8px 0 12px; }
  .header-nav.open .wrap { flex-direction: column; align-items: stretch; height: auto; }
  .header-nav.open a { height: auto; min-height: 48px; flex-direction: row; justify-content: flex-start; gap: 10px; text-align: left; font-size: 14px; }
  .header-nav.open a svg { width: 20px; height: 20px; }
  .header-nav.open .nav-more { display: block; height: auto; }
  .header-nav.open .nav-more-btn { width: 100%; min-height: 48px; text-align: left; padding: 12px 10px; font-size: 14px; }
  .header-nav.open .nav-more-menu { position: static; box-shadow: none; max-height: none; border-radius: 0; }
  .cards-6, .cards-4, .cards-3, .cat-grid, .eq-grid { grid-template-columns: 1fr 1fr; }
  .layout-2, .layout-3, .account-grid, .gallery { grid-template-columns: 1fr; }
  .listing { grid-template-columns: 1fr; }
  .listing .side { align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-tabs, .search-extra { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-advanced { grid-template-columns: 1fr 1fr; margin: 0 12px; }
  .hero-stats { flex-wrap: wrap; gap: 12px; }
  .tacho-svg { width: min(220px, 58vw); }
  .tacho-wheel { width: min(88px, 22vw); }
  .tacho-lockup { gap: 14px; }
  .logo-mark { height: 108px; }
  .site-footer .logo-mark { height: 96px; }
  .mobile-only { display: initial; }
  .gallery .main, .gallery .main img { min-height: 240px; }
}
@media (max-width: 520px) {
  .header-top .wrap { row-gap: 8px; }
  .header-actions { justify-self: end; }
  .logo-mark { height: 84px; }
  .site-footer .logo-mark { height: 96px; }
  .cards-6, .cards-4, .cards-3, .cat-grid, .stat-grid, .eq-grid { grid-template-columns: 1fr; }
  .search-grid, .search-advanced { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
