:root {
  --bg: #0b1220;
  --bg-soft: #111827;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --brand: #e11d48;
  --brand-dark: #be123c;
  --line: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
  --radius: 18px;
  --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--surface-2);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea {
  font: inherit;
}
.container { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.topbar {
  background: #020617;
  color: rgba(255,255,255,.8);
  font-size: 13px;
}
.topbar-inner, .navbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px;
}
.topbar-links, .nav-links, .nav-actions { display: flex; align-items: center; gap: 18px; }
.navbar {
  position: sticky; top: 0; z-index: 50; background: rgba(11,18,32,.92); backdrop-filter: blur(12px); color: white; border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo {
  font-size: 24px; font-weight: 800; letter-spacing: -.02em;
}
.logo span { color: var(--brand); }
.nav-links a { color: rgba(255,255,255,.86); font-size: 15px; }
.nav-links a:hover { color: white; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 13px 20px; border: 1px solid transparent; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--bg); color: white; }
.btn-light { background: white; color: var(--text); border-color: var(--line); }
.btn-outline { background: transparent; color: white; border-color: rgba(255,255,255,.22); }
.section { padding: 72px 0; }
.section-sm { padding: 38px 0; }
.section-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.03em; }
.section-subtitle { color: var(--text-muted); max-width: 760px; margin: 0 0 28px; }
.hero {
  background: radial-gradient(circle at top left, rgba(225,29,72,.25), transparent 35%), linear-gradient(180deg, #0b1220 0%, #111827 100%);
  color: white; padding: 78px 0 48px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center;
}
.eyebrow { color: rgba(255,255,255,.78); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 68px); line-height: .95; margin: 12px 0 16px; letter-spacing: -.05em; }
.hero p { color: rgba(255,255,255,.78); font-size: 18px; max-width: 640px; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; padding: 18px; box-shadow: var(--shadow);
}
.car-visual {
  border-radius: 22px; min-height: 380px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05)), url('../img/hero.svg') center/cover no-repeat;
  position: relative; overflow: hidden;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 8px 12px;
  background: rgba(225,29,72,.12); color: var(--brand);
}
.search-panel {
  background: white; color: var(--text); border-radius: 24px; padding: 18px; box-shadow: var(--shadow); margin-top: 28px;
}
.filter-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label { font-size: 13px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; background: white; min-height: 48px;
}
.grid-4, .grid-3, .grid-2 { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.card-body { padding: 18px; }
.stat-row, .spec-row { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--text-muted); font-size: 14px; }
.car-card-media {
  position: relative; aspect-ratio: 16/10; background: linear-gradient(145deg, #dbeafe, #cbd5e1);
}
.car-card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-actions { display: flex; gap: 10px; margin-top: 16px; }
.price { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.muted { color: var(--text-muted); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: white;
}
.dark-section {
  background: var(--bg);
  color: white;
}
.dark-section .section-subtitle, .dark-section .muted { color: rgba(255,255,255,.72); }
.icon-box { padding: 24px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.footer {
  background: #020617; color: rgba(255,255,255,.8); padding: 54px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { color: white; margin: 0 0 12px; }
.footer a { display: block; margin: 8px 0; color: rgba(255,255,255,.75); }
.page-hero {
  background: linear-gradient(180deg, #0b1220 0%, #172033 100%); color: white; padding: 54px 0;
}
.page-hero p { color: rgba(255,255,255,.78); }
.listings-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px;
}
.filters-card, .sticky-card { position: sticky; top: 88px; }
.result-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.detail-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.gallery-main { aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; background: #dbeafe; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumb { border-radius: 14px; overflow: hidden; cursor: pointer; border: 2px solid transparent; }
.thumb.active { border-color: var(--brand); }
.info-panel { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.spec-item { background: var(--surface-2); border-radius: 14px; padding: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #f8fafc; }
.dealer-hero {
  border-radius: 24px; padding: 28px; background: linear-gradient(135deg, #0f172a, #1e293b); color: white;
}
.form-card { max-width: 860px; margin: 0 auto; }
.notice { padding: 14px 16px; border-radius: 14px; background: #ecfdf5; color: #166534; border: 1px solid #bbf7d0; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: white; padding: 22px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.kpi strong { display: block; font-size: 28px; margin-bottom: 8px; }
.hide-mobile { display: inline-flex; }
.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }
@media (max-width: 1024px) {
  .hero-grid, .detail-layout, .listings-layout, .footer-grid, .grid-4, .grid-3, .grid-2, .result-grid, .kpi-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .hide-mobile { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-menu.active { display: grid; gap: 10px; padding: 12px 0 18px; }
  .hero-grid, .detail-layout, .listings-layout, .footer-grid, .grid-4, .grid-3, .grid-2, .result-grid, .kpi-grid, .filter-grid, .spec-grid, .thumbs { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
  .hero { padding-top: 52px; }
  .result-top { align-items: stretch; flex-direction: column; }
  .filters-card, .sticky-card { position: static; }
}
