/* ==========================================================================
   오토프로 모터스 / AutoPro — Template #3 "좌측 필터 카탈로그"
   Light marketplace theme. Static HTML/CSS/vanilla JS only.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #1e293b;
  --text-soft: #475569;
  --text-muted: #64748b;
  --accent: #dc2626;
  --accent-2: #e11d48;
  --accent-soft: #fef2f2;
  --accent-ink: #b91c1c;
  --star: #f59e0b;
  --ok: #16a34a;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 20px rgba(15, 23, 42, .08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1280px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Malgun Gothic",
          "Apple SD Gothic Neo", "Noto Sans KR", Roboto, "Helvetica Neue",
          Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.brand-mark svg { width: 24px; height: 24px; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.06rem; letter-spacing: -.03em; }
.brand-slogan { font-size: .68rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 9px 14px; border-radius: 9px; font-weight: 600; font-size: .94rem;
  color: var(--text-soft); transition: color .15s ease, background .15s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); background: var(--accent-soft); }
.header-cta { margin-left: 8px; }

.hamburger {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--border-strong); border-radius: 11px;
  background: var(--surface); color: var(--text); place-items: center;
}
.hamburger svg { width: 22px; height: 22px; }

/* Drawer (mobile) */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  background: var(--surface);
  height: 100dvh; overflow-y: auto;
  padding: 22px 22px 40px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
}
.drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer-close {
  width: 44px; height: 44px; border: 1px solid var(--border-strong);
  border-radius: 11px; background: var(--surface); color: var(--text); display: grid; place-items: center;
}
.drawer-close svg { width: 22px; height: 22px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  padding: 15px 14px; border-radius: 11px; font-size: 1.12rem; font-weight: 700;
  color: var(--text); border: 1px solid var(--border);
}
.drawer-nav a:hover, .drawer-nav a.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.drawer-cta { display: none; margin-top: 20px; }

/* ==========================================================================
   Hero strip + quick search
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 55%, #ffe4e6 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding-block: 46px 34px; display: grid; gap: 26px; }
.hero-copy { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--accent-ink); font-weight: 700; font-size: .8rem;
  padding: 6px 13px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero-eyebrow svg { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); margin-top: 16px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { color: var(--text-soft); margin-top: 14px; font-size: 1.05rem; }

/* quick search bar */
.quick-search {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px;
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, minmax(0,1fr)) auto;
  align-items: end;
}
.qs-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qs-field label { font-size: .78rem; font-weight: 700; color: var(--text-muted); }
.qs-field input, .qs-field select {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: .92rem; font-family: inherit;
}
.qs-field input:focus, .qs-field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.qs-submit { align-self: end; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; }
.hero-stats .stat { min-width: 0; }
.hero-stats .num { font-size: 1.7rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; }
.hero-stats .lbl { font-size: .82rem; color: var(--text-muted); font-weight: 600; }

/* ==========================================================================
   Section headings
   ========================================================================== */
.section { padding-block: 56px; }
.section-head { margin-bottom: 26px; }
.section-head .kicker {
  color: var(--accent); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-top: 8px; }
.section-head p { color: var(--text-soft); margin-top: 10px; max-width: 620px; }

/* ==========================================================================
   Catalog layout : sidebar + main
   ========================================================================== */
.catalog { padding-block: 40px 64px; }
.catalog-grid {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

/* ---- Sidebar ---- */
.filter-toggle { display: none; }

.sidebar {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 4px 18px 18px;
  min-width: 0;
}
.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0 12px; border-bottom: 1px solid var(--border);
}
.sidebar-head h3 { font-size: 1.05rem; display: inline-flex; align-items: center; gap: 8px; }
.sidebar-head h3 svg { width: 18px; height: 18px; color: var(--accent); }
.reset-filters {
  background: none; border: none; color: var(--accent); font-weight: 700;
  font-size: .82rem; padding: 4px 6px; border-radius: 7px;
}
.reset-filters:hover { background: var(--accent-soft); }

.filter-group { padding: 16px 0; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-group > .fg-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 700; margin-bottom: 12px; color: var(--text);
}
.filter-group > .fg-title svg { width: 16px; height: 16px; color: var(--accent); }

.check {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-radius: 9px; cursor: pointer; font-size: .9rem; color: var(--text-soft);
  transition: background .15s ease, color .15s ease;
  user-select: none;
}
.check:hover { background: var(--surface-2); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px;
  border: 2px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; transition: all .15s ease;
}
.check .box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transform: scale(.5); transition: all .15s ease; }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:checked ~ .lbl { color: var(--text); font-weight: 600; }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check .lbl { min-width: 0; }
.check .count { margin-left: auto; font-size: .76rem; color: var(--text-muted); font-weight: 600; }

/* radio (fuel/transmission) reuse pill style */
.radio {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px;
  border-radius: 9px; cursor: pointer; font-size: .9rem; color: var(--text-soft);
  transition: background .15s ease; user-select: none;
}
.radio:hover { background: var(--surface-2); }
.radio input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio .dot {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--surface);
  display: grid; place-items: center; transition: all .15s ease;
}
.radio .dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .15s ease; }
.radio input:checked + .dot { border-color: var(--accent); }
.radio input:checked + .dot::after { transform: scale(1); }
.radio input:checked ~ .lbl { color: var(--text); font-weight: 600; }
.radio input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 2px; }

/* price range */
.price-values { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.price-values .cur { color: var(--accent); }
.range-wrap { padding: 4px 2px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; max-width: 100%;
  height: 6px; border-radius: 999px; background: var(--surface-2);
  outline: none; box-sizing: border-box;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px;
  border-radius: 50%; background: var(--accent); cursor: pointer;
  border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.seat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.seat-pill {
  border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text-soft); border-radius: 999px; padding: 7px 13px;
  font-size: .82rem; font-weight: 700; transition: all .15s ease;
}
.seat-pill:hover { border-color: var(--accent); color: var(--accent); }
.seat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- Main results ---- */
.results { min-width: 0; }
.toolbar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.result-count { font-weight: 700; font-size: .95rem; }
.result-count b { color: var(--accent); font-size: 1.15rem; }
.toolbar .spacer { margin-left: auto; }
.sort-field { display: inline-flex; align-items: center; gap: 8px; }
.sort-field label { font-size: .85rem; color: var(--text-muted); font-weight: 700; }
.sort-field select {
  padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .88rem; max-width: 100%;
}

/* active filter chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; min-height: 0; }
.chip-row:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid #fecaca; border-radius: 999px;
  padding: 6px 8px 6px 13px; font-size: .82rem; font-weight: 700;
  animation: chipIn .2s ease;
}
.chip button {
  width: 18px; height: 18px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff; display: grid; place-items: center; line-height: 1;
}
.chip button svg { width: 11px; height: 11px; }
.chip-clear {
  background: none; border: none; color: var(--text-muted); font-weight: 700;
  font-size: .82rem; padding: 6px 8px; border-radius: 999px;
}
.chip-clear:hover { color: var(--accent); text-decoration: underline; }
@keyframes chipIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* card grid */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.car-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.car-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #fecaca; }
.card-thumb {
  position: relative; background: linear-gradient(135deg, #f8fafc, #eef2f7);
  padding: 22px 18px 10px; display: grid; place-items: center;
}
.card-thumb svg.car-svg { width: 100%; max-width: 220px; height: auto; color: var(--text); }
.badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.badge.sale { background: var(--accent-2); }
.badge.new { background: var(--ok); }
.fav {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.9);
  color: var(--text-muted); display: grid; place-items: center;
}
.fav svg { width: 17px; height: 17px; }
.fav.on, .fav:hover { color: var(--accent); border-color: #fecaca; }

.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: .74rem; font-weight: 800; color: var(--accent); letter-spacing: .04em; }
.card-name { font-size: 1.08rem; font-weight: 800; }
.card-rating { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.stars { display: inline-flex; }
.stars svg { width: 14px; height: 14px; color: var(--border-strong); }
.stars svg.on { color: var(--star); }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2); color: var(--text-soft);
  font-size: .74rem; font-weight: 600; padding: 4px 9px; border-radius: 7px;
}
.tag svg { width: 13px; height: 13px; color: var(--text-muted); }
.card-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}
.price { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.price .was { font-size: .76rem; color: var(--text-muted); text-decoration: line-through; }
.price .now { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.price .now b { color: var(--accent); }
.price .per { font-size: .74rem; color: var(--text-muted); font-weight: 600; }

.no-results {
  display: none; text-align: center; padding: 60px 20px;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-muted);
}
.no-results.show { display: block; }
.no-results svg { width: 54px; height: 54px; margin: 0 auto 14px; color: var(--border-strong); }
.no-results b { color: var(--text); }

/* ==========================================================================
   Feature / info strips
   ========================================================================== */
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: var(--shadow-sm); min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.info-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft);
  color: var(--accent); display: grid; place-items: center; margin-bottom: 16px;
}
.info-icon svg { width: 26px; height: 26px; }
.info-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.info-card p { color: var(--text-soft); font-size: .92rem; }

/* banner CTA with photo */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-scrim {
  position: relative; z-index: 2;
  background: linear-gradient(100deg, rgba(15,23,42,.86) 0%, rgba(220,38,38,.72) 100%);
  padding: 48px 40px; color: #fff;
}
.cta-scrim h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: #fff; }
.cta-scrim p { color: rgba(255,255,255,.9); margin-top: 12px; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.cta-scrim .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.cta-scrim .btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

/* ==========================================================================
   Guide page
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, #fff, #fef2f2);
  border-bottom: 1px solid var(--border); padding-block: 44px;
}
.page-hero .crumb { font-size: .82rem; color: var(--text-muted); font-weight: 600; }
.page-hero .crumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-top: 10px; }
.page-hero p { color: var(--text-soft); margin-top: 12px; max-width: 620px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px 22px; box-shadow: var(--shadow-sm); min-width: 0;
}
.step-num {
  position: absolute; top: -16px; left: 22px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; box-shadow: var(--shadow-sm);
}
.step-icon { color: var(--accent); margin: 6px 0 14px; }
.step-icon svg { width: 30px; height: 30px; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: .92rem; }

/* fee table */
.fee-table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); font-size: .92rem;
}
.fee-scroll { overflow-x: auto; }
.fee-table th, .fee-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fee-table thead th { background: var(--surface-2); font-weight: 800; color: var(--text); }
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table tbody tr:hover { background: var(--accent-soft); }
.fee-table .price-cell { font-weight: 800; color: var(--accent); }
.fee-table .pop { color: var(--ok); font-weight: 700; }

.doc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.doc-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px; box-shadow: var(--shadow-sm); min-width: 0;
}
.doc-item .di-icon { color: var(--accent); flex-shrink: 0; }
.doc-item .di-icon svg { width: 24px; height: 24px; }
.doc-item h4 { font-size: 1rem; margin-bottom: 4px; }
.doc-item p { font-size: .86rem; color: var(--text-soft); }

/* ==========================================================================
   Support page — FAQ + form
   ========================================================================== */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: start; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 18px 18px; display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 700; color: var(--text);
}
.faq-q .q-mark { color: var(--accent); font-weight: 800; flex-shrink: 0; }
.faq-q .chev { margin-left: auto; color: var(--text-muted); transition: transform .25s ease; flex-shrink: 0; }
.faq-q .chev svg { width: 20px; height: 20px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 18px 18px 46px; color: var(--text-soft); font-size: .92rem; }

.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.contact-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.contact-card .lead { color: var(--text-soft); font-size: .9rem; margin-bottom: 20px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: .84rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 12px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: .92rem;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-note { font-size: .78rem; color: var(--text-muted); margin-top: 4px; }
.form-success {
  display: none; align-items: center; gap: 10px; margin-top: 14px;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--ok);
  padding: 12px 14px; border-radius: var(--radius-sm); font-weight: 700; font-size: .9rem;
}
.form-success.show { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

.contact-info { margin-top: 24px; }
.ci-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.ci-row .ci-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ci-row .ci-icon svg { width: 20px; height: 20px; }
.ci-row .ci-label { font-size: .78rem; color: var(--text-muted); font-weight: 600; }
.ci-row .ci-value { font-weight: 700; font-size: .96rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0f172a; color: #cbd5e1; padding-block: 48px 28px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: .9rem; color: #94a3b8; max-width: 320px; }
.footer-brand .brand-slogan { color: #94a3b8; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: .9rem; color: #94a3b8; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid #1e293b; margin-top: 34px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: #64748b;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

.car-card.filtering { opacity: 0; transform: scale(.96); }
.car-card.hide { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .catalog-grid { grid-template-columns: 232px minmax(0, 1fr); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta { display: none; }
  .hamburger { display: grid; }
  .drawer-cta { display: flex; }

  .quick-search { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .qs-submit { grid-column: 1 / -1; }

  /* Sidebar collapses to a toggle panel above results */
  .catalog-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog--page .catalog-grid { margin-top: 20px; }
  .filter-toggle {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 13px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
    font-weight: 700; font-size: .95rem; box-shadow: var(--shadow-sm);
  }
  .filter-toggle svg { width: 18px; height: 18px; color: var(--accent); }
  .filter-toggle .ft-count { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 9px; font-size: .78rem; }

  .sidebar {
    position: static; top: auto;
    max-height: 0; overflow: hidden; padding-block: 0;
    border: none; box-shadow: none; background: transparent;
    transition: max-height .3s ease;
  }
  .sidebar.open {
    max-height: 2400px; overflow: visible;
    border: 1px solid var(--border); background: var(--surface);
    box-shadow: var(--shadow-sm); padding: 4px 18px 18px;
  }

  .support-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-scrim { padding: 36px 24px; }

  /* reflowed card: keep absolute badge but reset if needed */
  .card-foot { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
  .hero-inner { padding-block: 34px 26px; }
  .quick-search { grid-template-columns: minmax(0, 1fr); }
  .qs-submit { grid-column: auto; }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .toolbar { padding: 12px; }
  .car-grid { grid-template-columns: minmax(0, 1fr); }
  .brand-slogan { display: none; }
  .cta-scrim { padding: 28px 20px; }
  .faq-a-inner { padding-left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
