:root {
  --ink: #17191b;
  --paper: #f4f3ef;
  --red: #b92c23;
  --muted: #5f6264;
  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, body.lightbox-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: #932119; }

.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: 12px; }
.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; max-height: 94dvh; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; 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-button { width: 100%; height: 100%; display: block; padding: 0; border: 0; overflow: hidden; color: white; background: transparent; cursor: zoom-in; }
.modal__image-button img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.modal__image-button:hover img { transform: scale(1.018); }
.modal__image-button:focus-visible { outline: 4px solid white; outline-offset: -6px; }
.modal__image-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 9px 14px; border-radius: 999px; color: white; background: rgba(0,0,0,.7); backdrop-filter: blur(8px); font-size: 12px; font-weight: 850; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.modal__image-button:hover .modal__image-hint, .modal__image-button:focus-visible .modal__image-hint { opacity: 1; }
.modal__gallery { display: flex; gap: 9px; overflow-x: auto; padding: 12px 16px; background: white; scroll-padding-inline: 16px; }
.filters, .modal__gallery { overscroll-behavior-inline: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: rgba(22,24,26,.36) transparent; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar, .modal__gallery::-webkit-scrollbar { height: 6px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.modal__gallery::-webkit-scrollbar-track { margin-inline: 16px; background: transparent; }
.filters::-webkit-scrollbar-thumb,
.modal__gallery::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(22,24,26,.36); }
.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); }
.button--share { border: 1px solid rgba(0,0,0,.16); color: var(--ink); background: transparent; }
.button--share::before { content: "↗"; margin-right: 7px; font-size: 17px; }
.button--share:hover { border-color: var(--red); color: var(--red); background: white; }
.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; }

.share-sheet[hidden] { display: none; }
.share-sheet { position: fixed; inset: 0; z-index: 85; display: grid; place-items: center; padding: 20px; }
.share-sheet__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5,6,8,.78); backdrop-filter: blur(9px); }
.share-sheet__panel { position: relative; z-index: 1; width: min(520px,100%); padding: 26px; border-radius: 26px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.share-sheet__panel > header { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.share-sheet__panel h2 { font-size: 34px; }
.share-sheet__panel > p { margin: 18px 0 0; color: var(--muted); line-height: 1.6; }
.share-sheet__close { width: 42px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #efeee9; font-size: 24px; font-weight: 900; }
.share-sheet__actions { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-sheet__actions .button { width: 100%; min-height: 48px; text-align: center; }
.share-sheet__actions .button[hidden] { display: none; }
.share-sheet__actions .button:disabled { opacity: .55; cursor: wait; }
.share-sheet__link { margin-top: 18px; display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.share-sheet__link input { width: 100%; min-width: 0; padding: 12px 13px; border: 1px solid rgba(0,0,0,.13); border-radius: 11px; color: var(--ink); background: #f7f6f2; font-size: 13px; text-transform: none; letter-spacing: 0; }
.share-sheet__status { min-height: 22px; font-size: 13px; font-weight: 750; }

.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; }
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; color: white; }
.lightbox__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(5,6,8,.94); backdrop-filter: blur(12px); }
.lightbox__panel { position: relative; z-index: 1; width: min(1500px,100%); height: min(94vh,960px); min-height: 0; display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: #0c0e11; box-shadow: 0 35px 100px rgba(0,0,0,.62); }
.lightbox__toolbar { min-height: 64px; padding: 10px 12px 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(17,19,23,.96); }
.lightbox__toolbar, .lightbox__stage, .lightbox__footer { min-width: 0; width: 100%; }
.lightbox__toolbar > div:first-child { min-width: 0; display: flex; align-items: baseline; gap: 12px; }
.lightbox__toolbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.lightbox__toolbar span { flex: 0 0 auto; color: rgba(255,255,255,.58); font-size: 12px; }
.lightbox__tools { display: flex; align-items: center; gap: 7px; }
.lightbox__tools button, .lightbox__nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.17); color: white; background: rgba(255,255,255,.08); transition: background .2s ease, border-color .2s ease, opacity .2s ease; }
.lightbox__tools button { width: 40px; height: 40px; border-radius: 50%; font-size: 20px; }
.lightbox__tools button:hover, .lightbox__nav:hover { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.16); }
.lightbox__tools button:focus-visible, .lightbox__nav:focus-visible, .lightbox__thumbnails button:focus-visible { outline: 3px solid #ff8f86; outline-offset: 2px; }
.lightbox__tools button:disabled, .lightbox__nav:disabled { opacity: .3; cursor: default; }
.lightbox__tools .lightbox__zoom-level { width: 58px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.lightbox__tools .lightbox__close { margin-left: 5px; border-color: rgba(255,255,255,.3); background: white; color: var(--ink); font-size: 24px; }
.lightbox__stage { min-height: 0; display: grid; grid-template-columns: 70px minmax(0,1fr) 70px; align-items: stretch; background: #050607; }
.lightbox__canvas { min-width: 0; min-height: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; }
.lightbox__canvas.is-zoomed { cursor: grab; }
.lightbox__canvas.is-dragging { cursor: grabbing; }
.lightbox__canvas img { max-width: 100%; max-height: 100%; display: block; object-fit: contain; transform-origin: center; will-change: transform; pointer-events: none; user-select: none; }
.lightbox__nav { align-self: center; width: 48px; height: 64px; margin: 0 auto; border-radius: 16px; font-size: 42px; line-height: 1; }
.lightbox__footer { min-height: 82px; padding: 10px 18px; display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 18px; border-top: 1px solid rgba(255,255,255,.12); background: rgba(17,19,23,.96); }
.lightbox__footer > span { color: rgba(255,255,255,.5); font-size: 11px; }
.lightbox__thumbnails { min-width: 0; display: flex; justify-content: flex-end; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.lightbox__thumbnails button { flex: 0 0 82px; aspect-ratio: 16/10; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 9px; background: #24272c; opacity: .58; }
.lightbox__thumbnails button:hover { opacity: .88; }
.lightbox__thumbnails button.is-active { border-color: #ff7369; opacity: 1; }
.lightbox__thumbnails img { width: 100%; height: 100%; display: block; object-fit: cover; }

@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; align-items: stretch; }
  .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; }
  .filters { padding-bottom: 14px; }
  .vehicle-grid { grid-template-columns: 1fr; }
  .modal { place-items: stretch; min-height: 100vh; min-height: 100dvh; padding: 0; }
  .modal__panel { width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; }
  .modal__image-wrap { aspect-ratio: 16/10; }
  .modal__image-hint { bottom: 12px; opacity: 1; }
  .modal__gallery { padding-bottom: 14px; }
  .modal__gallery button { flex-basis: 72px; }
  .modal__content { grid-template-columns: 1fr; padding: 24px; }
  .modal__close { position: fixed; z-index: 3; top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); }
  .share-sheet { place-items: end; padding: 0; }
  .share-sheet__panel { width: 100%; max-height: 100dvh; overflow-y: auto; padding: 24px 18px max(24px,env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; }
  .share-sheet__actions { grid-template-columns: 1fr; }
  .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; }

  .lightbox { padding: 0; }
  .lightbox__panel { width: 100%; height: 100%; border: 0; border-radius: 0; }
  .lightbox__toolbar { min-height: 58px; padding: 8px 9px 8px 14px; }
  .lightbox__toolbar > div:first-child { display: block; }
  .lightbox__toolbar strong { display: block; max-width: 145px; font-size: 12px; }
  .lightbox__toolbar span { display: block; margin-top: 2px; }
  .lightbox__tools { gap: 4px; }
  .lightbox__tools button { width: 36px; height: 36px; }
  .lightbox__tools .lightbox__zoom-level { width: 52px; }
  .lightbox__tools .lightbox__close { margin-left: 1px; }
  .lightbox__stage { grid-template-columns: 46px minmax(0,1fr) 46px; }
  .lightbox__nav { width: 38px; height: 54px; border-radius: 13px; font-size: 34px; }
  .lightbox__footer { min-height: 76px; padding: 9px 10px; display: block; }
  .lightbox__footer > span { display: none; }
  .lightbox__thumbnails { justify-content: flex-start; }
  .lightbox__thumbnails button { flex-basis: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal__image-button img, .lightbox__tools button, .lightbox__nav { transition: none; }
}
