/* =========================================================
   NOVA MOTORS — Shared base CSS (all 3 design variants)
   Color theme: Nova Motors red + chrome black
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f7f7f7;
  --bg-3: #efefef;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --line: #e5e5e5;
  --line-2: #efefef;
  --ink: #0a0a0a;
  --ink-2: #2a2a2a;
  --ink-3: #6a6a6a;
  --red: #c8102e;
  --red-2: #ff2e4a;
  --accent: #c8102e;
  --accent-2: #ff2e4a;
  --serif: 'Cormorant Garamond', serif;
  --display: 'Bebas Neue', 'Impact', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }

.container { width: min(1320px, 92vw); margin: 0 auto; }
.section   { padding: clamp(80px, 12vw, 160px) 0; position: relative; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  border-bottom-color: var(--line);
  padding: 14px 0;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; min-height: 52px; }
.nav__logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav__logo img { height: 52px; width: auto; max-width: min(200px, 42vw); }
.nav__links {
  display: flex;
  gap: clamp(16px, 2.2vw, 32px);
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}
.nav__link {
  position: relative;
  font-size: 13px; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 0;
  color: var(--ink-2);
  transition: color 0.3s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0; background: var(--red);
  transition: width 0.4s var(--ease);
}
.nav__link:hover, .nav__link.active { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta {
  padding: 12px 20px;
  background: var(--red); color: white;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__cta:hover { transform: translateY(-2px); }

.nav__mob { display: none; }
@media (max-width: 900px) {
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--surface, #fff);
    border: 2px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    z-index: 100;
  }
  .nav--open .nav__links { display: flex; }
  .nav--open .nav__link {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-2, #eee);
  }
  .nav--open .nav__link:last-child { border-bottom: none; }
  .nav__cta { display: none; }
  .nav--open .nav__cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
  }
  .nav__mob { display: block; padding: 8px; background: transparent; cursor: pointer; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  padding: 0 0 clamp(60px, 8vw, 120px);
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0.2) 100%),
    linear-gradient(120deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - clamp(32px, 6vw, 80px)));
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 28px;
  color: white;
  background: rgba(200, 16, 46, 0.15);
  border: 1px solid rgba(200, 16, 46, 0.4);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: white;
  margin-bottom: 32px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero__title em { font-style: italic; color: var(--red-2); font-weight: 400; }
.hero__sub {
  max-width: 540px;
  font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 40px;
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px;
  background: var(--red); color: white;
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.4s var(--ease);
}
.hero__cta:hover { transform: translateX(4px); }
.hero__cta svg { transition: transform 0.4s var(--ease); }
.hero__cta:hover svg { transform: translateX(4px); }
.hero__cta--ghost {
  background: transparent; color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.hero__cta--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.6); }
.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section header ---------- */
.sec-head { margin-bottom: 80px; }
.sec-head__kicker {
  font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  font-weight: 600;
}
.sec-head__kicker::before {
  content: ""; display: inline-block; width: 30px; height: 1px;
  background: var(--red); vertical-align: middle; margin-right: 14px;
}
.sec-head__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.sec-head__title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  letter-spacing: 0.005em;
}
.sec-head__title em { font-style: italic; color: var(--red); }

/* ---------- Inventory card (Nova Motors — full dealer info, original layout) ---------- */
.inv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 600px)  { .inv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .inv-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .inv-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

.inv-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.inv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.inv-card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: #ececec;
  overflow: hidden;
}
.inv-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.inv-card:hover .inv-card__media img { transform: scale(1.03); }

.inv-card__price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  border-radius: 6px;
}

.inv-card__body {
  padding: 16px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inv-card__row--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.inv-card__compare {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  cursor: pointer;
  user-select: none;
}
.inv-card__compare input { accent-color: var(--red, #c8102e); }

.inv-card__price-block { text-align: right; }
.inv-card__price {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--red, #c8102e);
  line-height: 1;
}
.inv-card__tax {
  margin-top: 4px;
  font-size: 11px;
  color: var(--ink-3);
}

.inv-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.inv-card__badge {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.inv-card__badge--green  { background: #2e7d32; }
.inv-card__badge--blue   { background: #1565c0; }
.inv-card__badge--purple { background: #6a1b9a; }

.inv-card__headline { margin-top: 2px; }
.inv-card__title {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}
.inv-card__title em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-3);
  font-size: 14px;
}
.inv-card__sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}

.inv-card__promo {
  display: block;
  width: 100%;
  text-align: center;
  padding: 11px 14px;
  background: var(--red, #c8102e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: opacity 0.25s var(--ease);
}
.inv-card__promo:hover { opacity: 0.9; color: #fff; }

.inv-card__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}
.inv-card__fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--surface);
}
.inv-card__fact span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.inv-card__fact strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.inv-card__facts--mini .inv-card__fact { padding: 8px 10px; }

.inv-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.inv-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 13px 16px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.inv-card__btn--primary {
  background: var(--ink, #0a0a0a);
  color: #fff;
  text-decoration: none;
}
.inv-card__btn--primary:hover {
  background: var(--red, #c8102e);
  color: #fff;
}
@media (max-width: 768px) {
  .inv-card__btn {
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .inv-card__chip-link {
    padding: 8px 10px;
    font-size: 10px;
  }
}

.inv-card__action-row {
  display: flex;
  gap: 8px;
}
.inv-card__chip-link {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s, color 0.2s;
}
.inv-card__chip-link:hover {
  border-color: var(--red, #c8102e);
  color: var(--red, #c8102e);
}

.inv-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12px;
}
.inv-card__dealer { color: var(--ink-3); font-weight: 600; }
.inv-card__phone { color: var(--ink); font-weight: 700; }
.inv-card__phone:hover { color: var(--red, #c8102e); }

/* Compact variant (featured row) */
.inv-card--compact .inv-card__body { gap: 8px; padding: 14px 16px 16px; }
.inv-card--compact .inv-card__title { font-size: 16px; }
.inv-card--compact .inv-card__facts--mini { grid-template-columns: repeat(3, 1fr); }

.hero3d-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3, rgba(255,255,255,0.6));
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}
.hero__viewer { position: relative; }

/* ---------- Filters ---------- */
.filters {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.filters__label {
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.filters select {
  padding: 11px 16px;
  height: 44px;
  line-height: 1.2;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease);
}
.filters select:hover { border-color: var(--red); }
.filters select option { background: var(--surface); color: var(--ink); }
.filters__count { margin-left: auto; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.filters__count b { color: var(--red); }

/* ---------- Featured row ---------- */
.featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}
.featured .inv-card {
  min-width: 0;
  height: 100%;
}
.inv-card--compact {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.inv-card--compact .inv-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.inv-card--compact .inv-card__btn {
  margin-top: auto;
  padding: 11px 14px;
  font-size: 11px;
  letter-spacing: 0.06em;
  min-height: 42px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
}
@media (max-width: 1100px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .featured { grid-template-columns: 1fr; }
}

/* ---------- Stat band ---------- */
.statband {
  background: var(--bg-2);
  padding: 80px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.statband__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat__num {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 110px);
  line-height: 1;
  margin-bottom: 12px;
}
.stat__num em { color: var(--red); font-style: normal; }
.stat__lbl {
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
@media (max-width: 800px) { .statband__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About ---------- */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about__visual {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.about__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 38%;
}
.about__text h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 24px;
}
.about__text h2 em { color: var(--red); font-style: italic; }
.about__text p {
  color: var(--ink-2); line-height: 1.7;
  margin-bottom: 18px; font-size: 16px;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__visual img {
    aspect-ratio: 16 / 10;
    object-position: center 42%;
    min-height: clamp(200px, 52vw, 320px);
  }
}
@media (max-width: 480px) {
  .about__visual img {
    aspect-ratio: 4 / 3;
    object-position: center 40%;
    min-height: clamp(180px, 58vw, 260px);
  }
}

/* ---------- CTA strip ---------- */
.strip {
  background: var(--red);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
}
.strip h2 {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95;
  margin-bottom: 20px;
}
.strip h2 em { font-style: italic; }
.strip p { color: rgba(255,255,255,0.9); margin-bottom: 36px; font-size: 16px; }
.strip .hero__cta { background: white; color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 80px 0 40px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.foot-brand img { height: 60px; margin-bottom: 20px; }
.foot-brand p { color: var(--ink-2); font-size: 14px; line-height: 1.7; max-width: 360px; }
.foot h4 {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.foot ul li { margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.foot ul li a { transition: color 0.3s var(--ease); }
.foot ul li a:hover { color: var(--red); }
.foot__contact a { display: block; color: var(--ink); margin-bottom: 8px; font-size: 15px; }
.foot__contact a:hover { color: var(--red); }
.foot__bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.1em;
}
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.powered-by:hover { color: var(--ink); opacity: 0.9; }
.powered-by span { line-height: 1; }
.powered-by img {
  height: 22px;
  width: auto;
  max-width: 140px;
  display: block;
  object-fit: contain;
}
@media (max-width: 600px) {
  .foot__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 600px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.modal.open { display: flex; }
.modal__box {
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 900px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 40px;
  position: relative;
}
.modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s var(--ease);
}
.modal__close:hover { border-color: var(--red); }
.modal__layout {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 700px) { .modal__layout { grid-template-columns: 1fr; } }
.modal__photo {
  background: var(--bg-3);
  overflow: hidden;
}
.modal-gallery { display: flex; flex-direction: column; gap: 10px; }
.modal-gallery__main {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--bg-2);
}
.modal-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.modal-gallery__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.65;
}
.modal-gallery__thumb.active,
.modal-gallery__thumb:hover { opacity: 1; border-color: var(--red); }
.modal-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.modal__ctas .btn,
.modal__ctas .hero__cta { font-size: 11px; padding: 12px 18px; }
.modal__title { font-family: var(--display); font-size: 44px; margin-bottom: 6px; }
.modal__sub { font-family: var(--serif); font-style: italic; color: var(--ink-3); margin-bottom: 24px; }
.modal__price { font-family: var(--display); font-size: 56px; color: var(--red); margin-bottom: 24px; }
.modal__grid {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.modal__grid div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.modal__grid div:last-child { border-bottom: none; }
.modal__grid span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.modal__grid b { font-size: 14px; font-weight: 500; word-break: break-word; }

/* ---------- Reveal animations ---------- */
.reveal-up    { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-up.show { opacity: 1; transform: translateY(0); }

/* ---------- Page transition ---------- */
.page-curtain {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--red);
  transform: translateY(100%);
  pointer-events: none;
}
.page-curtain.go { animation: curtainOut 0.9s var(--ease) forwards; }
@keyframes curtainOut {
  0%   { transform: translateY(100%); }
  50%  { transform: translateY(0%); }
  100% { transform: translateY(-100%); }
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 8px;
  font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 14px 16px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Vehicle detail ---------- */
.vd {
  padding: 140px 0 80px;
  min-height: 100vh;
}
.vd__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 40px;
  transition: color 0.3s var(--ease);
  font-weight: 600;
}
.vd__back:hover { color: var(--ink); }
.vd__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-areas:
    "gallery info"
    "description description";
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.vd__gallery-col { grid-area: gallery; min-width: 0; }
.vd__info { grid-area: info; display: flex; flex-direction: column; gap: 0; min-width: 0; }
.vd__description {
  grid-area: description;
  padding-top: clamp(24px, 4vw, 40px);
  border-top: 2px solid var(--line);
}
.vd__description .sec-head__kicker { margin-bottom: 12px; }
@media (max-width: 1000px) {
  .vd__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "gallery"
      "info"
      "description";
  }
}

.vd__title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  margin-bottom: 6px;
}
.vd__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-3);
  margin-bottom: 24px;
}
.vd__price {
  font-family: var(--display);
  font-size: 56px;
  color: var(--red);
  margin-bottom: 24px;
}
.vd__grid-2 {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  margin-bottom: 20px;
}
.vd-spec {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.vd-spec:last-child { border-bottom: none; }
.vd-spec--full { flex-wrap: wrap; }
.vd-spec span {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  flex-shrink: 0;
}
.vd-spec b {
  font-size: 15px;
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}
.vd__ctas { display: flex; gap: 10px; flex-wrap: wrap; }

.vd-gallery { display: flex; flex-direction: column; gap: 12px; }
.vd-gallery__stage {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.vd-gallery__main { width: 100%; height: 100%; }
.vd-gallery__main img,
.vd-gallery__main .vd-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--bg-2);
}
@media (max-width: 768px) {
  .vd-gallery__stage { aspect-ratio: 4 / 3; }
  .vd-gallery__main img,
  .vd-gallery__main .vd-photo { object-fit: contain; background: #0a0a0a; }
  .vd__title { font-size: clamp(32px, 9vw, 48px); }
  .vd__price { font-size: clamp(36px, 10vw, 48px); }
  .vd__ctas { flex-direction: column; }
  .vd__ctas .btn { width: 100%; justify-content: center; }
}
.vd-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.vd-gallery__nav--prev { left: 12px; }
.vd-gallery__nav--next { right: 12px; }
.vd-gallery__count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.vd-gallery__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}
.vd-gallery__thumb {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease);
}
.vd-gallery__thumb.active,
.vd-gallery__thumb:hover { opacity: 1; border-color: var(--red); }
.vd-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vd-desc__body {
  max-width: min(100%, 960px);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.vd-desc__body img {
  max-width: 100%;
  height: auto;
}
.vd-desc__body h2,
.vd-desc__body h3 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  color: var(--ink);
  margin: 0 0 16px;
}
.vd-desc__body p { margin: 0 0 16px; }
.vd-desc__body ul { margin: 0 0 20px 1.2em; }
.vd-desc__body li { margin-bottom: 8px; }
.vd-desc__body strong { color: var(--ink); font-weight: 600; }

.modal__desc {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-height: 120px;
  overflow: hidden;
}

/* ---------- Compare (card layout) ---------- */
.compare-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 24px);
  align-items: stretch;
}
@media (max-width: 1100px) {
  .compare-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .compare-cards { grid-template-columns: 1fr; }
}
.compare-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.compare-card__media {
  display: block;
  aspect-ratio: 16/10;
  background: var(--bg-2);
  overflow: hidden;
}
.compare-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.compare-card__media:hover img { transform: scale(1.03); }
.compare-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(16px, 2.5vw, 24px);
  gap: 0;
}
.compare-card__title {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.05;
  margin-bottom: 6px;
}
.compare-card__meta {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.compare-card__price {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 40px);
  color: var(--red);
  margin-bottom: 16px;
}
.compare-card__specs {
  margin: 0 0 20px;
  padding: 16px 0 0;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 10px;
}
.compare-card__specs div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.compare-card__specs dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.compare-card__specs dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}
.compare-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.compare-card--add {
  border-style: dashed;
  background: var(--bg-2);
  min-height: 320px;
}
.compare-card__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 32px 24px;
  text-align: center;
  color: var(--ink-3);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.compare-card__add:hover {
  color: var(--ink);
  background: rgba(255, 87, 34, 0.06);
}
.compare-card__add-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--accent);
}
.compare-card__add-text {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 6px;
}
.compare-card__add-sub { font-size: 13px; }
.compare-empty {
  text-align: center;
  padding: 48px 24px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  background: var(--bg-2);
}
.compare-empty p {
  margin-bottom: 20px;
  color: var(--ink-2);
  font-size: 16px;
}
