:root {
  --ink: #17191b;
  --paper: #f4f3ef;
  --red: #d63a2f;
  --muted: rgba(23, 25, 27, 0.58);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(0,0,0,.1); background: rgba(244,243,239,.95); backdrop-filter: blur(14px); }
.topbar__inner { width: min(100% - 40px, 1344px); min-height: 80px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: white; font-size: 14px; font-weight: 900; }
.brand__emblem { position: relative; flex: 0 0 auto; width: 50px; height: 50px; overflow: hidden; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.brand__emblem img { position: absolute; width: 452.43%; max-width: none; height: auto; left: -175.62%; top: -70.58%; }
.brand strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.topbar__actions { display: flex; align-items: center; gap: 18px; }
.phone { font-weight: 750; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 20px; font-weight: 800; font-size: 14px; transition: .2s ease; }
.button--dark { color: white; background: var(--ink); }
.button--dark:hover { background: var(--red); }
.button--red { color: white; background: var(--red); }
.button--red:hover { background: #b92c23; }

.hero { position: relative; overflow: hidden; color: white; background: var(--ink); }
.hero__circle { position: absolute; width: 320px; height: 320px; right: -90px; top: -100px; border: 70px solid rgba(214,58,47,.25); border-radius: 50%; }
.hero__inner { position: relative; width: min(100% - 40px, 1344px); margin: auto; padding: 74px 0; display: grid; grid-template-columns: 1.05fr .9fr; align-items: end; gap: 72px; }
.eyebrow { margin: 0; color: var(--red); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .18em; }
.eyebrow--light { color: #ff8f86; }
h1 { max-width: 780px; margin: 16px 0 0; font-size: clamp(44px, 6vw, 84px); line-height: .97; letter-spacing: -.05em; }
.hero__copy { max-width: 590px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 18px; line-height: 1.65; }
.finder { padding: 28px; border: 1px solid rgba(255,255,255,.15); border-radius: 28px; background: rgba(255,255,255,.06); backdrop-filter: blur(12px); }
.finder label { display: block; margin-bottom: 9px; color: rgba(255,255,255,.62); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.finder input { width: 100%; padding: 16px 18px; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; outline: 0; font-size: 16px; font-weight: 650; }
.finder input:focus { box-shadow: 0 0 0 4px rgba(255,143,134,.35); }
.finder__footer { margin-top: 20px; padding-top: 20px; display: flex; align-items: end; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.12); }
.finder__footer strong { display: block; font-size: 30px; line-height: 1; }
.finder__footer span:not(.status) { display: block; margin-top: 5px; color: rgba(255,255,255,.58); font-size: 14px; }
.status { padding: 7px 12px; border-radius: 999px; background: var(--red); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }

.stock { width: min(100% - 40px, 1344px); margin: auto; padding: 54px 0 64px; }
.stock__heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
h2 { margin: 8px 0 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.03; letter-spacing: -.04em; }
.filters { max-width: 56%; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.filter { flex: 0 0 auto; padding: 10px 16px; border: 1px solid rgba(0,0,0,.14); border-radius: 999px; color: rgba(0,0,0,.64); background: white; font-size: 14px; font-weight: 800; }
.filter:hover, .filter.is-active { border-color: var(--ink); color: white; background: var(--ink); }
.vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.vehicle-card { overflow: hidden; border: 1px solid rgba(0,0,0,.1); border-radius: 26px; background: white; box-shadow: 0 12px 40px rgba(23,25,27,.06); }
.vehicle-card__image { position: relative; width: 100%; aspect-ratio: 16/10; padding: 0; border: 0; overflow: hidden; background: #e7e5df; }
.vehicle-card__image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.vehicle-card:hover .vehicle-card__image img { transform: scale(1.035); }
.year { position: absolute; left: 16px; top: 16px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 11px; font-weight: 900; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.vehicle-state { position: absolute; right: 16px; top: 16px; padding: 7px 11px; border-radius: 999px; color: #7a5615; background: #fff0c9; font-size: 11px; font-weight: 900; text-transform: uppercase; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.vehicle-card__body { padding: 22px; }
.vehicle-card h3 { margin: 5px 0 0; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.version { min-height: 40px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.specs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.specs span { padding: 8px 10px; border-radius: 8px; background: #f1f0ec; font-size: 12px; font-weight: 800; }
.vehicle-card__footer { margin-top: 22px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(0,0,0,.1); }
.price { font-size: 25px; font-weight: 900; letter-spacing: -.03em; }
.details { padding: 10px 14px; border: 1px solid rgba(0,0,0,.16); border-radius: 999px; color: var(--ink); background: white; font-size: 13px; font-weight: 900; }
.details:hover { border-color: var(--red); color: var(--red); }
.empty { padding: 52px; border: 1px dashed rgba(0,0,0,.2); border-radius: 28px; text-align: center; background: white; }
.empty strong { display: block; font-size: 18px; }
.empty button { margin-top: 12px; border: 0; color: var(--red); background: transparent; font-weight: 900; }

body > footer { width: min(100% - 40px, 1344px); margin: auto; padding: 28px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
body > footer strong { color: var(--ink); }
.brand-lockup { position: relative; flex: 0 0 auto; width: 210px; aspect-ratio: 3696 / 1691; overflow: hidden; border-radius: 14px; background: #000; }
.brand-lockup img { position: absolute; width: 133.55%; max-width: none; height: auto; left: -18.53%; top: -20.83%; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
.modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(5px); }
.modal__panel { position: relative; z-index: 1; width: min(1180px, 100%); max-height: 94vh; overflow-y: auto; border-radius: 30px; background: white; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal__image-wrap { position: relative; aspect-ratio: 2.15/1; overflow: hidden; background: #e7e5df; }
.modal__image-wrap img { width: 100%; height: 100%; display: block; object-fit: cover; }
.modal__gallery { display: flex; gap: 9px; overflow-x: auto; padding: 12px 16px 0; background: white; }
.modal__gallery button { flex: 0 0 88px; aspect-ratio: 16/10; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #e7e5df; }
.modal__gallery button.is-active { border-color: var(--red); }
.modal__gallery img { width: 100%; height: 100%; display: block; object-fit: cover; }
.modal__close { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: white; font-size: 24px; font-weight: 900; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.modal__content { padding: 34px; display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 44px; }
.modal__main { min-width: 0; }
.modal__heading { padding-bottom: 30px; border-bottom: 1px solid rgba(0,0,0,.1); }
.modal__version { margin: 8px 0 0; color: var(--muted); }
.modal__highlights { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.modal__highlights span { padding: 10px 13px; border-radius: 10px; background: #f1f0ec; font-size: 13px; font-weight: 850; }
.vehicle-section { padding: 32px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.vehicle-section:last-child { border-bottom: 0; padding-bottom: 0; }
.vehicle-section__heading { margin-bottom: 22px; }
.vehicle-section h3 { margin: 7px 0 0; font-size: 25px; letter-spacing: -.025em; }
.technical-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
.technical-item { min-width: 0; padding: 15px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 16px; border-bottom: 1px solid rgba(0,0,0,.08); }
.technical-item dt { color: var(--muted); font-size: 13px; }
.technical-item dd { margin: 0; max-width: 220px; text-align: right; font-size: 14px; font-weight: 850; overflow-wrap: anywhere; }
.vehicle-description { color: rgba(23,25,27,.76); font-size: 15px; line-height: 1.75; }
.vehicle-description p { margin: 0 0 17px; }
.vehicle-description p:last-child { margin-bottom: 0; }
.equipment-list { display: flex; flex-wrap: wrap; gap: 9px; }
.equipment-list span { padding: 10px 13px; border-radius: 10px; background: #f1f0ec; font-size: 13px; font-weight: 750; }
.modal__contact { position: sticky; top: 24px; padding: 24px; border: 1px solid rgba(0,0,0,.1); border-radius: 22px; text-align: left; background: #f7f6f2; }
.availability { display: inline-flex; padding: 7px 11px; border-radius: 999px; color: #226e44; background: #dff3e7; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.availability.is-reserved { color: #7a5615; background: #fff0c9; }
.modal__contact > strong { display: block; margin-top: 18px; font-size: 36px; letter-spacing: -.04em; }
.modal__contact > small { display: block; margin-top: 3px; color: var(--muted); }
.modal__contact .button { width: 100%; margin-top: 13px; }
.button--outline { border: 1px solid rgba(0,0,0,.16); color: var(--ink); background: white; }
.button--outline:hover { border-color: var(--ink); }
.financed-price { margin-top: 19px; padding: 15px; border-radius: 14px; color: white; background: var(--ink); }
.financed-price span { display: block; color: rgba(255,255,255,.65); font-size: 12px; }
.financed-price strong { display: block; margin-top: 3px; font-size: 24px; }
.contact-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .stock__heading { align-items: stretch; flex-direction: column; }
  .filters { max-width: 100%; }
  .vehicle-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal__content { display: flex; flex-direction: column; }
  .modal__main { display: contents; }
  .modal__heading { order: 1; }
  .modal__contact { position: static; order: 2; margin-top: 26px; }
  .vehicle-section { order: 3; }
}

@media (max-width: 640px) {
  .topbar__inner, .hero__inner, .stock, footer { width: min(100% - 32px, 1344px); }
  .brand small, .phone { display: none; }
  .brand strong { font-size: 13px; }
  .brand__emblem { width: 44px; height: 44px; }
  .topbar__actions { gap: 8px; }
  .button { padding: 12px 16px; }
  .hero__inner { padding: 48px 0; }
  .finder { padding: 20px; }
  .stock { padding: 40px 0 48px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .modal { place-items: end; padding: 0; }
  .modal__panel { max-height: 96vh; border-radius: 28px 28px 0 0; }
  .modal__image-wrap { aspect-ratio: 16/10; }
  .modal__gallery button { flex-basis: 72px; }
  .modal__content { grid-template-columns: 1fr; padding: 24px; }
  .technical-grid { grid-template-columns: 1fr; }
  .technical-item { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .technical-item dd { max-width: none; }
  body > footer { align-items: flex-start; flex-direction: column; }
}
