:root {
  --bg: #050505;
  --bg-soft: #0d0d0d;
  --card: #101010;
  --text: #f2f2f2;
  --muted: #c7c7c7;
  --border: #2a2a2a;
  --gold: #d8b154;
  --green: #36ff00;
  --white: #f5f5f5;
  --font-title: "Barlow Condensed", sans-serif;
  --font-body: "Manrope", sans-serif;
  --container: min(1140px, 92vw);
  --radius: 14px;
  --ease: 220ms ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 8% -5%, rgba(216, 177, 84, 0.12), transparent 42%),
    radial-gradient(circle at 92% 0%, rgba(54, 255, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #0b0b0b 0%, #050505 26%, #050505 100%);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #000;
  font-weight: 700;
  padding: 0.7rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(245, 245, 245, 0.96);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(170px, 20vw, 220px);
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #101010;
}

.menu a {
  position: relative;
  padding-bottom: 0.3rem;
  transition: opacity var(--ease);
}

.menu a:hover,
.menu a:focus-visible {
  opacity: 0.75;
}

.menu a.is-active::after,
.menu a:hover::after,
.menu a:focus-visible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.38rem;
  height: 2px;
  background: #0f0f0f;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  line-height: 1;
  letter-spacing: 0.015em;
}

.hero {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 5vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero h1 {
  font-size: clamp(2rem, 6.4vw, 4.2rem);
  max-width: 12ch;
  text-transform: uppercase;
}

.hero p {
  margin-top: 0.8rem;
  max-width: 65ch;
  color: #dfdfdf;
}

.breadcrumb {
  margin-top: 0.35rem;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumb a {
  color: var(--white);
}

.section {
  padding: clamp(2.2rem, 5vw, 3.2rem) 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.section-sub {
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  align-items: stretch;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  transition: transform var(--ease), border-color var(--ease);
}

.vehicle-card:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 177, 84, 0.48);
}

.vehicle-card .cover-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.vehicle-card .cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vehicle-content {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.vehicle-content h3 {
  font-size: clamp(1.7rem, 2.1vw, 2rem);
  line-height: 0.95;
  min-height: 2.05em;
  margin-bottom: 0;
}

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.badges li {
  border: 1px solid #3a3a3a;
  color: #efefef;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 0.22rem 0.55rem;
}

.meta-list {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0.55rem;
}

.meta-list li {
  margin-bottom: 0.15rem;
}

.price {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  border: 2px solid #fff;
  border-radius: 6px;
  transition: transform var(--ease), background-color var(--ease), color var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.vehicle-content .badges {
  margin-bottom: 0;
}

.vehicle-content .meta-list {
  margin-bottom: 0;
}

.vehicle-content .price {
  margin-top: auto;
  margin-bottom: 0.65rem;
}

.vehicle-content .btn-full {
  margin-top: 0.2rem;
}

.btn-outline {
  background: transparent;
  color: #fff;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #fff;
  color: #000;
}

.btn-green {
  background: var(--green);
  color: #000;
}

.btn-green:hover,
.btn-green:focus-visible {
  background: #b8ff9f;
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-row .btn {
  min-width: min(320px, 100%);
}

.faq {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.65rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  padding: 0.72rem 0.85rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.vehicle-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 1.1rem;
}

.gallery {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0b0b0b;
}

.gallery-main-frame {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  padding: 0.4rem;
  border-top: 1px solid var(--border);
}

.gallery-thumb-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #262626;
}

.gallery-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.gallery-thumb-frame.is-active {
  border-color: rgba(216, 177, 84, 0.9);
  box-shadow: 0 0 0 1px rgba(216, 177, 84, 0.65) inset;
}

body.has-lightbox {
  overflow: hidden;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem;
}

.gallery-lightbox__image-wrap {
  position: relative;
  max-width: min(94vw, 1300px);
  max-height: 84vh;
}

.gallery-lightbox__image {
  max-width: min(94vw, 1300px);
  max-height: 84vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #060606;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
  position: fixed;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--ease), transform var(--ease);
}

.gallery-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-size: 1.5rem;
  line-height: 1;
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
  top: 50%;
  translate: 0 -50%;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.45rem;
}

.gallery-lightbox__prev {
  left: 1rem;
}

.gallery-lightbox__next {
  right: 1rem;
}

.gallery-lightbox__counter {
  position: fixed;
  left: 50%;
  bottom: 0.95rem;
  translate: -50% 0;
  font-size: 0.88rem;
  color: #f0f0f0;
  letter-spacing: 0.02em;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible,
.gallery-lightbox__prev:hover,
.gallery-lightbox__prev:focus-visible,
.gallery-lightbox__next:hover,
.gallery-lightbox__next:focus-visible {
  background: rgba(216, 177, 84, 0.92);
  color: #000;
  transform: scale(1.04);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  transform: scale(1.04);
}

.vehicle-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.vehicle-panel h1 {
  font-size: clamp(1.9rem, 4.8vw, 3.3rem);
  margin-bottom: 0.7rem;
}

.spec-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.48rem;
  margin: 0.8rem 0;
}

.spec-grid li {
  border: 1px solid #313131;
  border-radius: 10px;
  padding: 0.56rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
}

.spec-grid strong {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.bullets {
  margin-top: 1rem;
  list-style: none;
  color: var(--muted);
}

.bullets li {
  margin-bottom: 0.3rem;
}

.bullets li::before {
  content: "- ";
  color: var(--gold);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.related-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
}

.related-item img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.related-item .inner {
  padding: 0.68rem;
}

.related-item h4 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.note {
  margin-top: 1rem;
  color: #e0e0e0;
  font-size: 0.92rem;
}

.footer {
  margin-top: 2rem;
  border-top: 10px solid #6a6a6a;
  background: #ececec;
  padding: 1.2rem 0;
}

.footer img {
  margin-inline: auto;
  width: clamp(170px, 22vw, 220px);
}

.footer-credit {
  margin-top: 0.62rem;
  text-align: center;
  font-size: 0.82rem;
  color: #4d4d4d;
}

.footer-credit a {
  color: #1f1f1f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  color: #000;
}

@media (max-width: 1080px) {
  .stock-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 0.9rem;
  }

  .menu {
    justify-content: center;
    font-size: 0.75rem;
    gap: 0.9rem;
  }

  .stock-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox__prev {
    left: 0.6rem;
  }

  .gallery-lightbox__next {
    right: 0.6rem;
  }

  .gallery-lightbox__close {
    top: 0.6rem;
    right: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
