/* ============================================================
   CarMe — China Vehicle Catalog
   Design tokens
   ============================================================ */
:root {
  --ink: #0B0C0E;
  --ink-2: #1A1C21;
  --ink-3: #33373F;
  --paper: #F5F4EF;
  --paper-2: #EFEDE6;
  --card: #FFFFFF;
  --line: #E3E1D8;
  --line-strong: #CFCCC0;
  --muted: #6E7278;
  --muted-2: #96999E;
  --accent: #D8381F;
  --accent-dark: #B32C16;
  --ok: #17795B;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 12, 14, .04), 0 12px 32px -18px rgba(11, 12, 14, .28);
  --shadow-lg: 0 30px 70px -32px rgba(11, 12, 14, .45);
  --maxw: 1320px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- typography ---------- */
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(40px, 5.4vw, 76px); }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 19px; letter-spacing: -.015em; }
p { margin: 0; }
.lede { color: var(--ink-3); font-size: 17px; line-height: 1.6; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 244, 239, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 20px; height: 70px; }
.brandmark { display: flex; align-items: center; gap: 9px; flex: none; font-weight: 800; letter-spacing: -.02em; }
.brandmark__logo { height: 34px; width: auto; display: block; }
.brandmark__name { font-size: 14.5px; font-weight: 800; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.brandmark__name i { font-style: normal; color: var(--accent); }
.nav { display: flex; gap: 2px; margin-right: auto; min-width: 0; }
.nav a {
  padding: 9px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav a:hover { background: rgba(11, 12, 14, .06); color: var(--ink); }
.nav a.is-active { color: var(--ink); background: rgba(11, 12, 14, .07); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-search {
  display: flex; align-items: center; gap: 8px; width: 190px; height: 38px; padding: 0 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted);
  font-size: 13px; transition: border-color .18s, width .25s var(--ease);
}
.header-search:hover { border-color: var(--line-strong); }
.header-search svg { flex: none; }
.cmp-pill {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-3);
}
.cmp-pill:hover { border-color: var(--ink); color: var(--ink); }
.cmp-pill .badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent);
  color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 700;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #000; }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--wide { width: 100%; }
.menu-btn { display: none; width: 38px; height: 38px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; align-items: center; justify-content: center; }
/* Account entry inside the mobile dropdown; the header button covers desktop. */
.nav-account { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--ink); color: #F3F2ED;
  border-bottom: 1px solid #000;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 78% 8%, rgba(216, 56, 31, .30), transparent 62%),
    radial-gradient(700px 400px at 8% 90%, rgba(120, 132, 160, .16), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; padding: 72px 0 0; }
.hero__main { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; }
.hero__copy { max-width: 620px; }
.hero__visual { position: relative; align-self: end; margin-bottom: -6px; }
.hero__visual::before {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 2%; height: 58%;
  background: radial-gradient(ellipse at 50% 60%, rgba(216, 56, 31, .42), rgba(216, 56, 31, 0) 68%);
  filter: blur(26px); pointer-events: none;
}
.hero__visual img {
  position: relative; display: block; width: 118%; max-width: none; margin-left: -9%;
  filter: drop-shadow(0 34px 46px rgba(0, 0, 0, .6));
}
.hero__tag {
  position: absolute; left: 2px; top: 4px; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 16px 11px; border-radius: 12px; background: rgba(16, 17, 19, .62);
  border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px);
}
.hero__tag span { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: #FF8A6B; font-weight: 700; }
.hero__tag b { font-size: 15px; color: #fff; letter-spacing: -.01em; }
.hero__tag small { font-size: 11.5px; color: #A9AAA4; }
.hero .eyebrow { color: #B9BAB4; }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { margin: 20px 0 0; letter-spacing: -.04em; font-size: clamp(38px, 4.4vw, 64px); }
.hero h1 em { font-style: normal; color: #FF6A4D; }
.hero__sub { margin-top: 22px; max-width: 560px; color: #B9BAB4; font-size: 17px; line-height: 1.62; }
.hero-search {
  margin-top: 34px; display: flex; align-items: center; gap: 10px; max-width: 640px;
  background: #fff; border-radius: 999px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-lg);
}
.hero-search input {
  flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; height: 40px; color: var(--ink);
}
.hero-search input::placeholder { color: var(--muted-2); }
.hero-search .btn { height: 40px; }
.hero-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-quick a {
  font-size: 12.5px; font-weight: 600; color: #D6D5CE; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18); transition: background .18s, border-color .18s;
}
.hero-quick a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
.hero__stats {
  position: relative; z-index: 2; margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero__stats div { padding: 22px 0 26px; border-right: 1px solid rgba(255, 255, 255, .09); }
.hero__stats div:last-child { border-right: 0; }
.hero__stats b { display: block; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; font-weight: 700; }
.hero__stats span { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9A9C9E; }

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 64px 0; }
.section--paper2 { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 10px; color: var(--muted); max-width: 520px; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 650;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; white-space: nowrap;
}
.link-more:hover { border-color: var(--ink); }

/* ---------- body type tiles ---------- */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.type-grid--4 { grid-template-columns: repeat(4, 1fr); }
.type-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px 12px 12px; display: flex; flex-direction: row; align-items: center; gap: 14px;
  transition: border-color .2s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.type-tile:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.type-tile img { height: 54px; width: 96px; flex: none; object-fit: contain; opacity: .9; }
.type-tile div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.type-tile b { font-size: 15px; letter-spacing: -.01em; }
.type-tile span { font-size: 12px; color: var(--muted); }

/* ---------- car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.car-grid > * { height: 100%; }
.car-grid--3 { grid-template-columns: repeat(3, 1fr); }
.car-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .2s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.car-card__media {
  position: relative; aspect-ratio: 16 / 10; background: #fff;
  display: flex; align-items: center; justify-content: center; padding: 14px 18px; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.car-card__media img.photo { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); position: relative; z-index: 0; }
.car-card:hover .car-card__media img.photo { transform: scale(1.035); }
.car-card__type {
  position: absolute; left: 12px; top: 12px; z-index: 3; pointer-events: none;
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px; backdrop-filter: blur(4px);
}
.car-card__body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-card__brand { display: flex; align-items: center; gap: 8px; height: 20px; }
.car-card__brand img { max-height: 18px; max-width: 46px; object-fit: contain; }
.car-card__brand span { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.car-card h3 { font-size: 18px; }
.car-card h3 a:hover { color: var(--accent); }
.car-card__meta { font-size: 12.5px; color: var(--muted); }
.car-card__price { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; }
.car-card__price small { font-weight: 500; color: var(--muted); font-size: 11.5px; }
.car-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 10px; }
.chiprow { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--paper-2);
  border-radius: 6px; padding: 3px 7px; letter-spacing: .01em;
}
.chip--ev { background: #E7F2EC; color: #136C4B; }
.cmp-btn {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 4px 9px;
  transition: all .18s;
}
.cmp-btn:hover { border-color: var(--ink); color: var(--ink); }
.cmp-btn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* placeholder media */
.ph {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 0; gap: 12px;
}
.ph__icon { width: 64%; max-height: 62%; object-fit: contain; opacity: .18; filter: grayscale(1) contrast(1.4); }
.ph__brand { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #B9B6A9; }

/* ---------- brand wall ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 14px; text-align: center; transition: border-color .2s, transform .22s var(--ease);
}
.brand-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
/* Size comes from the width/height attributes (equal-area, ratio-true); CSS only caps it. */
.brand-tile img { display: block; height: auto; max-width: 100%; object-fit: contain; }
.brand-tile .mono {
  font-family: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: 0;
  line-height: 1.2; color: #1a1a1a; max-width: 100%;
}
.brand-tile span { font-size: 11px; color: var(--muted); }
.brand-tile .brand-name { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-tile .brand-count { font-size: 11px; color: var(--muted-2); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--accent); margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #F3F2ED; border-radius: var(--radius); padding: 44px; display: flex; align-items: center; justify-content: space-between; gap: 32px; overflow: hidden; position: relative; }
.cta-band::after { content: ""; position: absolute; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(216, 56, 31, .4), transparent 65%); }
.cta-band h2 { max-width: 620px; position: relative; z-index: 1; }
.cta-band p { color: #ADAFB2; margin-top: 12px; max-width: 520px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A9ABB0; padding: 64px 0 26px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #F1F0EB; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: #A9ABB0; font-size: 13.5px; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brandmark { color: #fff; margin-bottom: 14px; }
.site-footer .brandmark__logo { height: 34px; }
.site-footer .brandmark__name { color: #F1F0EB; }
.site-footer .about { font-size: 13px; max-width: 300px; line-height: 1.6; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; font-size: 11.5px; color: #77797D; }

/* ---------- page head ---------- */
.page-head { padding: 44px 0 28px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { color: var(--line-strong); }
.page-head h1 { font-size: clamp(30px, 3.6vw, 46px); }
.page-head p { margin-top: 10px; color: var(--muted); }

/* ---------- filter layout ---------- */
.catalog { display: grid; grid-template-columns: 268px 1fr; gap: 34px; padding: 30px 0 80px; align-items: start; }
.filters { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 22px; max-height: calc(100vh - 120px); overflow: auto; padding-right: 4px; }
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.filter-block { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.filter-block:last-child { border-bottom: 0; }
.filter-block > h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-search { width: 100%; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 11px; background: #fff; font-size: 13px; outline: none; }
.filter-search:focus { border-color: var(--ink); }
.checklist { max-height: 236px; overflow: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent);
  mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); }
.checklist label { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; cursor: pointer; color: var(--ink-3); }
.checklist label:hover { color: var(--ink); }
.checklist .n { margin-left: auto; font-size: 11px; color: var(--muted-2); }
input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }
.pillgroup { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  border: 1px solid var(--line-strong); background: transparent; border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); transition: all .16s;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input { width: 100%; height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 9px; font-size: 13px; background: #fff; outline: none; }
.price-row input:focus { border-color: var(--ink); }
.field-select { width: 100%; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 9px; background: #fff; font-size: 13px; outline: none; }
.filter-reset { font-size: 12.5px; font-weight: 650; color: var(--accent); background: none; border: 0; padding: 0; text-align: left; }

.catalog-main { min-width: 0; }
.catalog-main.is-refreshing { opacity: .45; pointer-events: none; transition: opacity .15s; }
.catalog-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-count { font-size: 13.5px; color: var(--muted); }
.catalog-count b { color: var(--ink); font-size: 15px; }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sort-wrap select { height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; padding: 0 9px; font-size: 13px; outline: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.af {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 12px; font-weight: 600;
}
.af button { border: 0; background: var(--paper-2); width: 17px; height: 17px; border-radius: 50%; line-height: 1; font-size: 12px; color: var(--muted); }
.af button:hover { background: var(--ink); color: #fff; }
.load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 0 0; }
.load-more small { color: var(--muted); font-size: 12px; }
.empty { padding: 80px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: #fff; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); }
.filters-toggle { display: none; }

/* ---------- model detail ---------- */
.model-hero { padding: 30px 0 0; }
.model-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.model-title { display: flex; align-items: center; gap: 16px; }
.model-title img { max-height: 40px; max-width: 84px; object-fit: contain; }
.model-title h1 { font-size: clamp(30px, 4vw, 52px); }
.model-title .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px 9px; }
.model-sub { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.model-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.model-body { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; margin-top: 26px; align-items: start; }
.model-media {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
.model-media img.photo { max-width: 100%; max-height: 100%; object-fit: contain; }
.model-media .ph img { width: 62%; }
.model-media .ph__icon { width: 78%; max-height: 70%; opacity: .15; }
.model-media .ph__brand { font-size: 12.5px; letter-spacing: .2em; }
.model-media__tag { position: absolute; left: 18px; top: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .9); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.model-side { display: flex; flex-direction: column; gap: 16px; }
.price-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price-panel .label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price-panel .value { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; }
.price-panel .value small { font-size: 12px; font-weight: 500; color: var(--muted); display: block; letter-spacing: 0; margin-top: 4px; }
.price-panel .rows { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.price-panel .rows div { display: flex; justify-content: space-between; font-size: 13px; }
.price-panel .rows span:first-child { color: var(--muted); }
.key-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key-spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.key-spec span { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.key-spec b { display: block; margin-top: 6px; font-size: 16px; letter-spacing: -.02em; }
.key-spec small { color: var(--muted); font-size: 11px; font-weight: 500; }

.block { margin-top: 54px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 { font-size: 24px; }

/* trims */
.year-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.year-tab { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.year-tab.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.trim-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.trim-table th {
  text-align: left; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #FBFBF8; white-space: nowrap;
}
.trim-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.trim-table tr:last-child td { border-bottom: 0; }
.trim-table tbody tr { cursor: pointer; transition: background .15s; }
.trim-table tbody tr:hover { background: #FAFAF6; }
.trim-table tbody tr.is-on { background: #F4F1E9; }
.trim-table .tname { font-weight: 600; }
.trim-table .tprice { font-variant-numeric: tabular-nums; white-space: nowrap; }
.trim-table .tcheck { width: 34px; }
.trim-more { display: flex; justify-content: center; padding-top: 14px; }

/* spec table */
.spec-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spec-table-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: auto; max-height: 78vh; }
table.spec { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.spec th, table.spec td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
table.spec thead th { position: sticky; top: 0; z-index: 3; background: #FBFBF8; border-bottom: 1px solid var(--line-strong); font-size: 12px; }
table.spec thead th:not(.rowhead) { position: relative; padding-right: 36px; }
table.spec thead th .rm { position: absolute; right: 9px; top: 10px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 13px; line-height: 1; }
table.spec thead th .rm:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
table.spec thead th .th-name { font-weight: 700; font-size: 13.5px; letter-spacing: -.01em; display: block; max-width: 240px; }
table.spec thead th .th-price { display: block; color: var(--muted); font-size: 11.5px; font-weight: 500; margin-top: 3px; }
table.spec th.rowhead {
  position: sticky; left: 0; z-index: 2; background: #fff; width: var(--rowhead, 250px); min-width: 210px;
  color: var(--muted); font-weight: 500; border-right: 1px solid var(--line);
}
table.spec thead th.rowhead { z-index: 4; background: #FBFBF8; }
table.spec tr.group th {
  background: var(--paper-2); color: var(--ink); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; padding: 9px 14px; position: sticky; left: 0;
}
table.spec tr.group th span { position: relative; }
table.spec td { color: var(--ink-2); }
table.spec td.diff { background: #FFF7F3; }
table.spec tr:hover td { background: #FCFCF9; }
table.spec tr:hover td.diff { background: #FFF3EC; }
.spec-empty { padding: 40px; text-align: center; color: var(--muted); }

/* add trim picker */
.picker { position: relative; }
.picker-menu {
  position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); width: 320px; max-height: 300px; overflow: auto;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px;
}
.picker-menu button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; }
.picker-menu button:hover { background: var(--paper-2); }
.picker-menu small { color: var(--muted); white-space: nowrap; }

/* related */
.rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ---------- compare ---------- */
.compare-head { display: grid; grid-template-columns: 250px repeat(var(--cols, 3), 1fr); gap: 0; }
.compare-top { padding: 30px 0 0; }
.compare-cards { display: grid; grid-template-columns: 250px repeat(var(--cols, 3), 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare-cards .spacer { background: #FBFBF8; border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.compare-cards .spacer h2 { font-size: 22px; }
.compare-col { padding: 16px; border-right: 1px solid var(--line); position: relative; }
.compare-col:last-child { border-right: 0; }
.compare-col .media { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; background: #FAFAF6; border-radius: 10px; margin-bottom: 12px; padding: 8px; }
.compare-col .media img { max-height: 100%; object-fit: contain; }
.compare-col .media .ph img { width: 60%; }
.compare-col h3 { font-size: 16px; }
.compare-col .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.compare-col .rm { position: absolute; right: 10px; top: 10px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 13px; line-height: 1; color: var(--muted); }
.compare-col .rm:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.compare-empty { grid-column: 2 / -1; padding: 26px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.empty-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.empty-picks button {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; transition: border-color .18s, transform .18s;
}
.empty-picks button:hover { border-color: var(--ink); transform: translateY(-2px); }
.empty-picks b { font-size: 13.5px; color: var(--ink); }
.empty-picks small { font-size: 11.5px; color: var(--muted); }
.compare-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); cursor: pointer; }
.switch input { width: 34px; height: 20px; appearance: none; background: var(--line-strong); border-radius: 999px; position: relative; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(14px); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__bg { position: absolute; inset: 0; background: rgba(11, 12, 14, .55); backdrop-filter: blur(3px); }
.modal__panel { position: relative; z-index: 1; width: 100%; max-width: 560px; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); max-height: 88vh; overflow: auto; }
.modal__panel h3 { font-size: 20px; margin-bottom: 6px; }
.modal__panel p { color: var(--muted); font-size: 13px; }
.modal__panel textarea { width: 100%; height: 180px; margin-top: 14px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px; font-size: 12.5px; line-height: 1.55; resize: vertical; background: #FBFBF8; }
.modal__foot { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.modal__close { position: absolute; right: 14px; top: 12px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); }

/* ---------- inquiry form ---------- */
.inq-panel { max-width: 620px; }
.inq-panel .eyebrow { display: inline-block; margin-bottom: 8px; }
.inq-lead { margin-bottom: 16px; }
.inq-ctx { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.inq-ctx .mono-code { background: #fff; font-weight: 400; }
.inq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.inq-grid label, .inq-msg { display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.inq-grid input, .inq-msg textarea { border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 13.5px; color: var(--ink); text-transform: none; letter-spacing: 0; outline: none; }
.inq-grid input:focus, .inq-msg textarea:focus { border-color: var(--ink); }
.inq-grid input.is-bad, .inq-msg textarea.is-bad { border-color: #C8392B; background: #FDF4F2; }
.inq-msg { margin-top: 12px; }
.inq-msg textarea { height: 120px; resize: vertical; min-height: 96px; line-height: 1.55; }
.inq-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.inq-check input { width: 15px; height: 15px; accent-color: var(--ink); }
.inq-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.inq-copy { border: 0; background: none; font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: auto; cursor: pointer; }
.inq-copy:hover { color: var(--ink); }
.inq-fine { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.inq-fine b { color: var(--ink-3); }
.inq-alert { margin-top: 14px; border: 1px solid #E7C4BE; background: #FDF4F2; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: #7A2A20; line-height: 1.55; }
.inq-alert[hidden] { display: none; }
.inq-alert .btn { align-self: flex-start; }
.inq-done { text-align: center; padding: 10px 4px 4px; }
.inq-done__mark { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 25px; line-height: 54px; }
.inq-done p { margin-top: 8px; }
.inq-done .inq-actions { justify-content: center; }
.wa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 26px -10px rgba(37, 211, 102, .85); transition: transform .2s var(--ease); }
.wa-fab:hover { transform: translateY(-2px) scale(1.03); }
.cta-band__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .38); }
.cta-band .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* search overlay */
.search-panel { max-width: 640px; }
.search-panel input { width: 100%; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font-size: 15px; outline: none; }
.search-panel input:focus { border-color: var(--ink); }
.sug { margin-top: 8px; }
.sug a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.sug a:hover { background: var(--paper-2); }
.sug a small { color: var(--muted); margin-left: auto; }
.sug a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 13px; opacity: 0; pointer-events: none; transition: all .25s var(--ease); z-index: 120; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- used cars ---------- */
.section--used { background: var(--paper-2); }

.used-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease), border-color .2s; }
.used-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.used-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.used-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.used-card:hover .used-card__media img { transform: scale(1.04); }
.used-card__badge { position: absolute; left: 12px; top: 12px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }
.used-card__code { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 12, 14, .72); color: #fff; font-size: 10.5px; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; }
.used-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.used-card h3 { font-size: 17px; letter-spacing: -.02em; }
.used-card h3 a:hover { color: var(--accent); }
.used-card__meta { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.used-card__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.used-card__price b { font-size: 20px; letter-spacing: -.03em; }
.used-card__price small { font-size: 11px; color: var(--muted-2); }
.used-card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.used-card__foot a { font-weight: 700; color: var(--ink); }
.used-card__foot a:hover { color: var(--accent); }

.used-hero { padding-top: 30px; }
.used-hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.used-title { font-size: clamp(28px, 3.6vw, 46px); letter-spacing: -.035em; }
.used-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; }
.mono-code { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 6px; padding: 2px 7px; }
.used-body { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; margin-top: 24px; align-items: start; }
.used-gallery__main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.used-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gal-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(11, 12, 14, .12); background: rgba(255, 255, 255, .92); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.gal-btn:hover { background: #fff; }
.gal-prev { left: 12px; }
.gal-next { right: 12px; }
.gal-count { position: absolute; right: 12px; bottom: 12px; background: rgba(11, 12, 14, .7); color: #fff; font-size: 11.5px; padding: 3px 9px; border-radius: 999px; }
.used-gallery__thumbs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; margin-top: 10px; }
.used-gallery__thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; opacity: .72; transition: opacity .18s, border-color .18s; }
.used-gallery__thumbs button img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.used-gallery__thumbs button:hover { opacity: 1; }
.used-gallery__thumbs button.is-on { opacity: 1; border-color: var(--ink); }
.used-side { display: flex; flex-direction: column; gap: 14px; }
.gallery-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.used-note { margin-top: 14px; font-size: 12px; color: var(--muted); line-height: 1.55; }
.feat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.feat-list span { font-size: 12.5px; padding: 7px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-3); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .header-search { display: none; }
  .site-header__inner { gap: 16px; }
  .nav { gap: 0; }
  .nav a { padding: 9px 10px; font-size: 13.5px; }
  .brandmark__name { font-size: 14px; }
}
@media (max-width: 1180px) {
  .car-grid, .car-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .type-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(5, 1fr); }
  .model-body { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__main { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .used-body { grid-template-columns: 1fr; }
  .used-gallery__thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 1080px) {
  .nav, .header-search { display: none; }
  .nav {
    position: fixed; top: 70px; left: 0; right: 0; z-index: 60; margin: 0;
    flex-direction: column; gap: 2px; background: #fff; padding: 10px 18px 16px;
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -28px rgba(11, 12, 14, .4);
  }
  .nav a { padding: 12px 10px; border-radius: 10px; font-size: 15px; }
  .nav-account { display: block; color: var(--accent); font-weight: 700; }
  .menu-btn { display: inline-flex; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 70px 0 0 0; z-index: 55; background: var(--paper); padding: 22px; max-height: none; overflow: auto; display: none; }
  .filters.is-open { display: flex; }
  .filters-toggle { display: inline-flex; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .compare-cards, .compare-head { grid-template-columns: 160px repeat(var(--cols, 3), minmax(160px, 1fr)); }
  table.spec th.rowhead { width: 170px; min-width: 150px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 18px; }
  .site-header__inner { gap: 12px; }
  .brandmark { font-size: 20px; }
  .brandmark__logo { height: 28px; }
  .brandmark__name { font-size: 12px; }
  .site-header .btn--primary { display: none; }
  .cmp-pill { padding: 0 10px; }
  .used-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .used-title { font-size: 26px; }
  .hero__inner { padding-top: 54px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .hero__stats div:nth-child(2) { border-right: 0; }
  .hero__stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
  .car-grid, .car-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .type-grid, .type-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .type-tile { padding: 10px 12px; gap: 10px; }
  .type-tile img { width: 76px; height: 44px; }
  .type-tile b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .model-actions { width: 100%; }
  .key-specs { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .cta-band { padding: 24px; }
  .compare-cards { display: block; }
  .compare-cards .spacer { display: none; }
  .compare-col { border-right: 0; border-bottom: 1px solid var(--line); }
  table.spec th.rowhead { position: static; }
}
@media (max-width: 620px) {
  .car-grid--used { grid-template-columns: 1fr; }
  .used-card__meta { -webkit-line-clamp: 3; }
  .inq-grid { grid-template-columns: 1fr; }
  .inq-copy { margin-left: 0; }
  .wa-fab { right: 14px; bottom: 14px; width: 48px; height: 48px; }
}
@media (max-width: 520px) {
  .car-grid, .car-grid--3 { grid-template-columns: 1fr; }
  .hero-search { flex-direction: column; align-items: stretch; border-radius: 16px; padding: 10px; }
  .hero-search .btn { width: 100%; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
