:root {
  --navy: #0b0b0d;
  --navy-2: #19191c;
  --ink: #18181b;
  --muted: #68686f;
  --line: #e1e1e4;
  --paper: #f6f6f7;
  --white: #ffffff;
  --accent: #d51f2e;
  --accent-dark: #a81421;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(14, 29, 47, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; border-radius: 8px; color: var(--navy); background: var(--white); transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.demo-notice { padding: 8px 20px; color: #4f090f; background: #ffd9dc; font-size: .78rem; font-weight: 750; text-align: center; }

.site-header { height: 82px; padding: 0 clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--white); background: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: 11px; letter-spacing: .08em; }
.brand-logo { width: 42px; height: 42px; display: block; object-fit: cover; border: 1px solid rgba(213,31,46,.55); border-radius: 50%; }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-size: 1.12rem; }
.brand small { margin-top: 4px; color: var(--accent); font-size: .62rem; letter-spacing: .24em; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: .9rem; }
.site-header nav a { color: #dce3ea; transition: color .2s; }
.site-header nav a:hover { color: var(--accent); }
.header-call { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 10px 17px; font-size: .85rem; font-weight: 700; }

.hero { min-height: 650px; padding: 70px clamp(22px, 7vw, 108px) 82px; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr); align-items: center; gap: clamp(50px, 8vw, 120px); color: var(--white); background: radial-gradient(circle at 78% 32%, #351116 0, var(--navy-2) 31%, var(--navy) 69%); overflow: hidden; }
.eyebrow { margin: 0 0 15px; color: var(--accent-dark); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { max-width: 740px; margin: 0; font-size: clamp(3.4rem, 6vw, 6.8rem); line-height: .95; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); }
.hero-lead { max-width: 650px; margin: 28px 0 34px; color: #cad4df; font-size: clamp(1rem, 1.4vw, 1.16rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; padding: 12px 21px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-weight: 750; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--white); }
.button-primary:hover { background: #ee3342; }
.button-ghost { border-color: rgba(255,255,255,.35); color: var(--white); }
.button-ghost:hover { border-color: var(--white); }
.hero-visual { position: relative; min-height: 420px; }
.hero-visual::before { content: ""; position: absolute; inset: 8% -18% -16% 16%; border: 1px solid rgba(213,31,46,.22); border-radius: 48% 0 0 12%; transform: rotate(-4deg); }
.hero-photo { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 160px 24px 24px 24px; background: #0b0b0d; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.hero-car { width: 100%; height: 100%; display: block; object-fit: contain; }
.hero-note { position: absolute; left: -36px; bottom: 28px; padding: 17px 22px; border-radius: 12px; color: var(--navy); background: var(--white); box-shadow: var(--shadow); }
.hero-note span, .hero-note strong { display: block; }
.hero-note span { color: var(--muted); font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }

.trust-strip { padding: 0 clamp(22px, 7vw, 108px); display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.trust-strip div { padding: 28px 34px; border-right: 1px solid var(--line); }
.trust-strip div:first-child { padding-left: 0; }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: 1rem; }
.trust-strip span { margin-top: 3px; color: var(--muted); font-size: .82rem; }

.inventory { max-width: 1420px; margin: 0 auto; padding: 100px clamp(22px, 5vw, 72px) 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-heading h2, .contact h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.06; letter-spacing: -.04em; }
.result-count { margin: 0 0 7px; color: var(--muted); font-size: .88rem; }
.filters { margin-bottom: 32px; padding: 18px; display: grid; grid-template-columns: 1.7fr repeat(5, 1fr) auto; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 30px rgba(14,29,47,.06); }
.filters label { min-width: 0; padding: 2px 13px; border-right: 1px solid var(--line); }
.filters label > span { display: block; color: var(--muted); font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.filters input, .filters select { width: 100%; height: 34px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.filter-reset { align-self: stretch; padding: 0 17px; border: 0; border-radius: 10px; cursor: pointer; color: var(--navy); background: #edf1f4; font-weight: 700; }
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.vehicle-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .25s, box-shadow .25s; }
.vehicle-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.vehicle-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #dfe4e8; }
.vehicle-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s; }
.vehicle-card:hover .vehicle-image img { transform: scale(1.025); }
.vehicle-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; color: var(--navy); background: var(--white); box-shadow: 0 5px 18px rgba(0,0,0,.16); font-size: .68rem; font-weight: 800; }
.vehicle-body { padding: 21px; }
.vehicle-kicker { margin: 0 0 4px; color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.vehicle-title { margin: 0; font-size: 1.35rem; line-height: 1.2; }
.vehicle-specs { margin: 19px 0; padding: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vehicle-specs span { padding: 0 8px; border-right: 1px solid var(--line); color: var(--muted); font-size: .74rem; text-align: center; }
.vehicle-specs span:first-child { padding-left: 0; text-align: left; }
.vehicle-specs span:last-child { border-right: 0; padding-right: 0; text-align: right; }
.vehicle-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.vehicle-price { font-size: 1.35rem; font-weight: 850; letter-spacing: -.025em; }
.vehicle-link { color: var(--accent-dark); font-size: .82rem; font-weight: 800; }
.vehicle-card-link { display: block; }
.empty-state { padding: 60px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--paper); }

.vehicle-dialog { width: min(1080px, calc(100% - 28px)); max-height: min(88vh, 880px); padding: 0; overflow: auto; border: 0; border-radius: 22px; color: var(--ink); background: var(--white); box-shadow: 0 40px 120px rgba(0,0,0,.35); }
.vehicle-dialog::backdrop { background: rgba(4,12,21,.78); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; top: 14px; z-index: 2; float: right; width: 42px; height: 42px; margin: 14px 14px -56px 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--navy); background: rgba(255,255,255,.94); box-shadow: 0 5px 18px rgba(0,0,0,.18); font-size: 1.6rem; line-height: 1; }
.vehicle-detail-gallery { background: #0b0b0d; }
.vehicle-detail-image { aspect-ratio: 16 / 9; background: #0b0b0d; }
.vehicle-detail-image img { width: 100%; height: 100%; display: block; object-fit: contain; }
.vehicle-thumbnails { padding: 12px 14px 14px; display: flex; gap: 9px; overflow-x: auto; border-top: 1px solid rgba(255,255,255,.12); scrollbar-color: var(--accent) transparent; }
.vehicle-thumbnail { width: 92px; aspect-ratio: 3 / 2; flex: 0 0 auto; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; cursor: pointer; background: #1b1b1e; opacity: .68; transition: border-color .2s, opacity .2s, transform .2s; }
.vehicle-thumbnail:hover { opacity: 1; transform: translateY(-1px); }
.vehicle-thumbnail.is-active { border-color: var(--accent); opacity: 1; }
.vehicle-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vehicle-detail-content { padding: clamp(25px, 5vw, 54px); }
.vehicle-detail-top { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.vehicle-detail-top h2 { margin: 4px 0 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1; letter-spacing: -.045em; }
.vehicle-detail-price { margin: 0; white-space: nowrap; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 850; }
.vehicle-detail-price small { display: block; margin-top: 4px; color: var(--muted); font-size: .7rem; font-weight: 500; text-align: right; }
.vehicle-detail-facts { margin: 34px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.vehicle-detail-facts div { padding: 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vehicle-detail-facts span, .vehicle-detail-facts strong { display: block; }
.vehicle-detail-facts span { margin-bottom: 4px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; }
.vehicle-detail-description { color: var(--muted); }
.feature-list { margin: 23px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; list-style: none; }
.feature-list li { position: relative; padding-left: 20px; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 900; }
.vehicle-detail-cta { margin: 34px 0 0; padding-top: 25px; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); }
.vehicle-detail-cta .button-ghost { color: var(--navy); border-color: var(--line); }
.vehicle-disclaimer { margin: 20px 0 0; color: var(--muted); font-size: .72rem; }

.contact { margin: 0 clamp(22px, 5vw, 72px) 54px; padding: clamp(44px, 7vw, 78px); display: flex; align-items: end; justify-content: space-between; gap: 50px; color: var(--white); background: var(--navy); border-radius: 26px; }
.contact > div:first-child { max-width: 750px; }
.contact p:not(.eyebrow) { max-width: 650px; margin: 20px 0 0; color: #cbd5df; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button-light { color: var(--navy); background: var(--white); }
.button-outline-light { border-color: rgba(255,255,255,.35); }
footer { padding: 42px clamp(22px, 5vw, 72px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 25px; color: #dddddf; background: #070708; font-size: .78rem; }
.footer-brand { color: var(--white); }
footer p { margin: 0; text-align: center; }
footer > div { display: flex; justify-content: flex-end; gap: 20px; }

.legal-page { background: var(--paper); }
.legal-header { color: var(--white); background: var(--navy); }
.legal-header .back-link { color: #dce3ea; font-size: .88rem; }
.legal-main { max-width: 900px; margin: 0 auto; padding: 75px 22px 100px; }
.legal-main article { padding: clamp(28px, 6vw, 64px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 18px 50px rgba(14,29,47,.07); }
.legal-main h1 { margin: 0 0 35px; font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -.055em; line-height: 1; }
.legal-main h2 { margin: 38px 0 10px; font-size: 1.2rem; }
.legal-main h3 { margin: 26px 0 8px; font-size: 1rem; }
.legal-main p, .legal-main li { color: #465261; }
.legal-main address { font-style: normal; }
.legal-main a:not(.button) { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin: 28px 0 0; padding: 16px 18px; border-left: 3px solid var(--accent); background: #fff1f2; font-size: .82rem; }
.legal-updated { margin: -20px 0 30px; color: var(--muted); font-size: .76rem; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 390px; }
  .filters { grid-template-columns: repeat(3, 1fr); }
  .filters label { border-right: 0; }
  .search-field { grid-column: span 2; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .vehicle-detail-facts { grid-template-columns: repeat(2, 1fr); }
  .contact { align-items: start; flex-direction: column; }
}

@media (max-width: 700px) {
  .site-header { height: 72px; }
  .header-call { padding: 9px 12px; font-size: .75rem; }
  .hero { min-height: auto; padding-top: 58px; grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
  .hero-visual { min-height: 300px; }
  .hero-photo { border-radius: 90px 18px 18px 18px; }
  .hero-note { left: 14px; bottom: 14px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .filters label { padding: 7px 9px; border-bottom: 1px solid var(--line); }
  .filter-reset { min-height: 44px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .vehicle-detail-top { flex-direction: column; }
  .vehicle-detail-price small { text-align: left; }
  .vehicle-detail-facts { grid-template-columns: 1fr 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .vehicle-detail-cta .button { width: 100%; }
  .inventory { padding-top: 72px; }
  .contact { margin-left: 14px; margin-right: 14px; padding: 36px 24px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { width: 100%; }
  footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-self: center; }
  footer > div { justify-content: center; }
}
