:root {
  color-scheme: light;
  --ink: #171512;
  --muted: #635f58;
  --paper: #f8f5ef;
  --panel: #ffffff;
  --line: #ded7ca;
  --accent: #b92f25;
  --accent-strong: #8f201a;
  --green: #2f6b57;
  --gold: #c69331;
  --shadow: 0 22px 70px rgba(32, 27, 20, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(23, 21, 18, 0.88);
  color: #fffaf0;
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 760;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: #fffaf0;
}

.language-toggle {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
}

.language-toggle button {
  min-width: 44px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: rgba(255, 250, 240, 0.72);
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

.language-toggle button.is-active {
  background: #fffaf0;
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(88svh - 72px);
  padding: clamp(28px, 5vw, 72px);
  color: #fffaf0;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/images/car-hero.jpg");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(13, 12, 10, 0.82) 0%, rgba(13, 12, 10, 0.55) 42%, rgba(13, 12, 10, 0.12) 100%),
    linear-gradient(0deg, rgba(13, 12, 10, 0.58), rgba(13, 12, 10, 0.08) 48%);
}

.hero-content {
  max-width: 760px;
  padding-bottom: 18px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 250, 240, 0.84);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 780;
}

.button.primary {
  background: var(--accent);
  color: #fffaf0;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: rgba(255, 250, 240, 0.38);
  color: #fffaf0;
}

.button.secondary:hover {
  background: rgba(255, 250, 240, 0.12);
}

.price-panel {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(20px, 5vw, 58px);
  display: grid;
  gap: 4px;
  width: min(260px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.13);
  backdrop-filter: blur(18px);
}

.price-panel span,
.quick-specs span,
.detail-grid span,
.contact-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 790;
  text-transform: uppercase;
}

.price-panel span {
  color: rgba(255, 250, 240, 0.72);
}

.price-panel strong {
  font-size: 2rem;
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-specs article {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 26px clamp(18px, 4vw, 42px);
  background: var(--panel);
}

.quick-specs strong,
.detail-grid strong {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.section {
  padding: clamp(58px, 9vw, 112px) clamp(18px, 5vw, 76px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.split p:not(.section-kicker),
.condition-note p,
.contact-section p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid article,
.feature-list article,
.condition-note,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(45, 37, 26, 0.07);
}

.detail-grid article {
  display: grid;
  gap: 12px;
  min-height: 150px;
  padding: 22px;
}

.condition {
  background: #ebe6dc;
}

.section-heading {
  display: grid;
  gap: 4px;
  max-width: 780px;
  margin-bottom: clamp(28px, 5vw, 52px);
}

.condition-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 18px;
}

.condition-note {
  padding: clamp(24px, 4vw, 38px);
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding: clamp(22px, 3vw, 30px);
}

ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.55;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.gallery-section {
  background: #fffaf0;
}

.gallery {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 180px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #ddd5c8;
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--ink);
  color: #fffaf0;
}

.contact-section p {
  color: rgba(255, 250, 240, 0.72);
}

.contact-card {
  display: grid;
  align-items: start;
  margin-top: 0;
  padding: 26px;
  background: #fffaf0;
  color: var(--ink);
}

.contact-card .button {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 76px);
  color: var(--muted);
  font-size: 0.95rem;
}

.lightbox {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  border-radius: 8px;
  object-fit: contain;
  background: #111;
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 240, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .price-panel {
    position: static;
    margin-top: 28px;
  }

  .quick-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .condition-layout,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 66px;
    gap: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .hero {
    min-height: calc(84svh - 66px);
    padding: 24px 18px;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(13, 12, 10, 0.82), rgba(13, 12, 10, 0.42)),
      linear-gradient(0deg, rgba(13, 12, 10, 0.68), rgba(13, 12, 10, 0.1) 48%);
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .quick-specs,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .quick-specs article {
    min-height: 96px;
  }

  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
  }

  .footer {
    flex-direction: column;
  }
}
