:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f6f7f9;
  --ink: #15171b;
  --muted: #66707d;
  --charcoal: #20252b;
  --black: #07090c;
  --line: #d9dde3;
  --blue: #006eb8;
  --blue-dark: #004d86;
  --steel: #8b949e;
  --silver: #d7dce2;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(10, 14, 20, .12);
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--blue);
  color: var(--white);
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  min-height: 72px;
  padding: 10px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  min-width: 252px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--black), var(--charcoal));
  color: var(--white);
  font-weight: 900;
  border-bottom: 4px solid var(--blue);
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.nav a {
  text-decoration: none;
  color: var(--charcoal);
  padding: 9px 11px;
  border-radius: 6px;
  font-weight: 750;
  font-size: .92rem;
}

.nav a.active,
.nav a:hover {
  background: var(--black);
  color: var(--white);
}

.nav-toggle {
  display: none;
}

.header-search {
  display: flex;
  width: min(310px, 30vw);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.header-search input,
.header-search button {
  border: 0;
  min-width: 0;
}

.header-search input {
  flex: 1;
  padding: 10px 11px;
}

.header-search button {
  background: var(--charcoal);
  color: var(--white);
  padding: 0 13px;
  font-weight: 800;
  cursor: pointer;
}

main {
  min-height: 70vh;
}

.home-hero {
  min-height: clamp(540px, 78vh, 780px);
  position: relative;
  display: grid;
  align-items: end;
  background: var(--black);
  overflow: hidden;
}

.home-hero img,
.vehicle-hero > img,
.page-hero::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero::after,
.vehicle-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 12, .92) 0%, rgba(7, 9, 12, .68) 42%, rgba(7, 9, 12, .2) 100%),
    linear-gradient(0deg, rgba(7, 9, 12, .72), transparent 40%);
}

.hero-overlay {
  position: relative;
  z-index: 1;
  color: var(--white);
  width: min(720px, calc(100% - 34px));
  margin: 0 auto 54px max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
  font-weight: 900;
}

.home-hero .eyebrow,
.vehicle-hero .eyebrow {
  color: #70bfff;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 5.4rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
}

h3 {
  font-size: 1.08rem;
}

p {
  color: var(--muted);
}

.hero-overlay p {
  color: rgba(255, 255, 255, .84);
  max-width: 690px;
  font-size: 1.08rem;
}

.quick-search,
.big-search {
  margin: 26px 0 18px;
  display: flex;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .95);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
}

.quick-search input,
.big-search input {
  flex: 1;
  border: 0;
  padding: 15px 16px;
  min-width: 0;
}

.quick-search button,
.big-search button {
  border: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0 18px;
  font-weight: 850;
  cursor: pointer;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 6px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
}

.button.secondary,
.button.ghost {
  background: var(--white);
  color: var(--blue-dark);
}

.home-hero .button.secondary,
.vehicle-hero .button.secondary {
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}

.text-link {
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.stat-strip,
.stat-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}

.stat-strip div,
.stat-grid div {
  background: var(--white);
  padding: 18px;
}

.stat-strip strong,
.stat-grid strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1;
}

.stat-strip span,
.stat-grid span {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 700;
}

.section,
.directory-layout,
.vehicle-layout,
.article-layout,
.form-layout,
.footer-grid,
.footer-bottom,
.breadcrumbs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 22px;
}

.section-head,
.result-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.two-column,
.split-news,
.vehicle-layout,
.article-layout,
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.feature-band {
  align-items: center;
}

.feature-band img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.car-grid,
.album-grid,
.gallery-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.compact-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.car-card,
.news-card,
.album-card,
.panel,
.topic-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.car-card,
.news-card,
.album-card {
  overflow: hidden;
}

.car-card.list,
.news-card,
.album-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.car-media,
.news-media,
.album-card > a {
  position: relative;
  display: block;
  background: var(--charcoal);
  min-height: 168px;
}

.car-media img,
.news-media img,
.album-card img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--charcoal);
  font-size: .78rem;
  font-weight: 900;
}

.status.registered {
  border-left: 4px solid #0a8f52;
}

.status.missing {
  border-left: 4px solid var(--steel);
}

.car-body,
.news-card div,
.album-card div,
.panel,
.topic-grid article {
  padding: 18px;
}

.car-body h3 a,
.news-card h3 a,
.album-card h3 a {
  text-decoration: none;
}

.mini-specs,
.spec-grid,
.stacked-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
}

.mini-specs div,
.spec-grid div,
.stacked-specs div,
.history-grid div,
.album-meta div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

dt,
.history-grid strong,
.album-meta strong {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

dd {
  margin: 3px 0 0;
  font-weight: 850;
}

.ad-slot {
  max-width: var(--max);
  margin: 18px auto;
  padding: 18px 22px;
  border: 1px solid #cfd6df;
  border-left: 5px solid var(--blue);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #f5f8fb, #ffffff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ad-slot span {
  color: var(--muted);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.ad-slot a {
  color: var(--blue-dark);
  font-weight: 850;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.compact-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  font-weight: 850;
}

.compact-link small,
.meta-pill {
  color: var(--muted);
}

.cta-band,
.page-hero {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 42px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
}

.cta-band p,
.page-hero p {
  color: rgba(255, 255, 255, .78);
  max-width: 780px;
}

.page-hero.compact h1 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.breadcrumbs {
  padding-top: 24px;
  padding-bottom: 0;
}

.breadcrumbs ol {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: .9rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: var(--steel);
}

.directory-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  gap: 14px;
}

.filter-panel label,
.stacked-form label {
  display: grid;
  gap: 6px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--white);
  color: var(--ink);
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.segmented a {
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 850;
}

.segmented a.active {
  background: var(--black);
  color: var(--white);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.directory-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: .92rem;
}

.directory-table th,
.directory-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.directory-table th {
  background: var(--paper);
  color: var(--charcoal);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}

.pagination a {
  min-width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 850;
}

.pagination a.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.vehicle-hero {
  position: relative;
  min-height: 560px;
  background: var(--black);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.vehicle-hero > div {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 0 22px 48px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.vehicle-hero h1 {
  max-width: 980px;
}

.vehicle-hero p {
  max-width: 700px;
  color: rgba(255, 255, 255, .82);
}

.vehicle-main {
  display: grid;
  gap: 20px;
}

.vehicle-sidebar {
  display: grid;
  gap: 18px;
}

.sticky {
  position: sticky;
  top: 92px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.timeline time {
  color: var(--blue-dark);
  font-weight: 900;
}

.history-grid,
.album-meta,
.stat-grid.large,
.chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-grid.large {
  grid-template-columns: repeat(4, 1fr);
}

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

.check-list {
  margin: 0;
  padding-left: 18px;
}

.check-list li {
  margin: 9px 0;
}

.share-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.share-row a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  text-decoration: none;
  font-weight: 850;
}

.article-page > header,
.article-page .article-hero {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.article-page > header {
  padding: 54px 22px 22px;
}

.article-page .article-hero {
  width: calc(100% - 44px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

.article-body {
  font-size: 1.06rem;
}

.gallery-tools {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 22px 0;
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 12px;
}

.gallery-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 22px 58px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid.small {
  padding: 0;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  padding: 0;
  border: 0;
  background: var(--black);
  position: relative;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 150px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 5px;
  background: rgba(7, 9, 12, .76);
  color: var(--white);
  font-size: .78rem;
  font-weight: 850;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .9);
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox img {
  max-height: 78vh;
  object-fit: contain;
}

.lightbox p {
  color: var(--white);
}

.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-radius: 6px;
  padding: 9px 12px;
  cursor: pointer;
}

.album-meta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 30px 22px 0;
  grid-template-columns: repeat(4, 1fr);
}

.form-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.stacked-form {
  display: grid;
  gap: 14px;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 650;
}

.checkbox input {
  width: auto;
  margin-top: 4px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.bar-row {
  display: grid;
  grid-template-columns: 46px 1fr 36px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

meter {
  width: 100%;
}

.search-sections {
  display: grid;
  gap: 30px;
}

.sitemap-list {
  columns: 3;
  line-height: 2;
}

.site-footer {
  margin-top: 40px;
  background: var(--black);
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 26px;
  padding-bottom: 30px;
}

.site-footer p,
.site-footer a,
.footer-bottom {
  color: rgba(255, 255, 255, .74);
}

.site-footer h2 {
  font-size: 1rem;
}

.link-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 18px;
  padding-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .9rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --white: #101419;
    --paper: #171d24;
    --ink: #f1f4f8;
    --muted: #a8b2bd;
    --charcoal: #dce3ea;
    --black: #07090c;
    --line: #303944;
    --silver: #303944;
    --shadow: 0 18px 45px rgba(0, 0, 0, .32);
  }

  .site-header {
    background: rgba(16, 20, 25, .94);
  }

  .brand-mark,
  .nav a.active,
  .nav a:hover {
    background: #000;
  }

  .header-search button {
    background: #000;
  }

  .ad-slot {
    background: #151a21;
  }
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
    color: var(--ink);
    padding: 9px 12px;
    font-weight: 850;
  }

  .nav,
  .header-search {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
  }

  .nav.open {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .nav.open + .header-search,
  .header-search {
    display: flex;
  }

  .two-column,
  .split-news,
  .vehicle-layout,
  .article-layout,
  .form-layout,
  .directory-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .sticky {
    position: static;
  }

  .compact-cards,
  .car-grid,
  .album-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip,
  .stat-grid.large {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 680px) {
  .topbar {
    padding: 9px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-overlay {
    margin: 0 16px 32px;
    width: auto;
  }

  h1 {
    font-size: 2.3rem;
  }

  .quick-search,
  .big-search {
    display: grid;
  }

  .quick-search button,
  .big-search button {
    min-height: 44px;
  }

  .stat-strip,
  .stat-grid,
  .stat-grid.large,
  .history-grid,
  .album-meta,
  .chart-grid,
  .footer-grid,
  .gallery-tools,
  .spec-grid,
  .mini-specs,
  .stacked-specs {
    grid-template-columns: 1fr;
  }

  .car-grid,
  .album-grid,
  .gallery-grid,
  .gallery-grid.small,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .car-card.list,
  .news-card,
  .album-card {
    grid-template-columns: 1fr;
  }

  .section,
  .directory-layout,
  .vehicle-layout,
  .article-layout,
  .form-layout,
  .footer-grid,
  .footer-bottom,
  .breadcrumbs {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .result-toolbar,
  .cta-band,
  .page-hero,
  .ad-slot {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .sitemap-list {
    columns: 1;
  }
}

@media print {
  .site-header,
  .site-footer,
  .ad-slot,
  .button-row,
  .share-row {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .vehicle-hero {
    min-height: 0;
    color: #000;
    background: #fff;
  }

  .vehicle-hero img,
  .vehicle-hero::after {
    display: none;
  }

  .vehicle-hero > div {
    color: #000;
    padding: 20px 0;
  }
}

