:root {
  --bg: #000000;
  --panel: #111111;
  --panel-2: #1f1f1f;
  --text: #ffffff;
  --muted: #c8c8c8;
  --line: #2a2a2a;
  --accent: #1e73be;
  --button: #32373c;
  --danger: #d64545;
  --max: 1250px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); color: var(--text); }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.site-header { position: sticky; top: 0; z-index: 20; background: #000; }
.header-inner { width: min(var(--max), calc(100vw - 40px)); min-height: 129px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.brand { display: inline-flex; align-items: center; color: #fff; text-decoration: none; }
.brand img { width: 164px; height: 94px; object-fit: contain; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 34px; margin-top: 34px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 24px; line-height: 1.15; font-weight: 900; text-transform: uppercase; letter-spacing: 0; transition: color .2s ease, opacity .2s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid #fff; background: transparent; color: #fff; border-radius: 0; align-items: center; justify-content: center; }
.nav-toggle::before { content: ""; width: 24px; height: 16px; border-top: 3px solid currentColor; border-bottom: 3px solid currentColor; box-shadow: inset 0 6px 0 0 currentColor; }

main { flex: 1; }
.section { width: min(var(--max), calc(100vw - 40px)); margin: 0 auto; padding: 72px 0; }
.section-tight { padding-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 18px; line-height: 1.25; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(46px, 6.8vw, 94px); line-height: .96; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
h2 { margin-bottom: 14px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.02; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
h3 { font-size: 20px; line-height: 1.2; }
.lead { max-width: 760px; color: #fff; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.4; font-weight: 500; }
.muted { color: var(--muted); }

.hero { width: min(var(--max), calc(100vw - 40px)); margin: 0 auto; }
.home-hero { min-height: 548px; padding: 66px 0 58px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 520px); gap: 56px; align-items: center; border-bottom: 1px solid #202020; }
.hero-copy { max-width: 720px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero-media { min-height: 390px; background: #111; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.home-signposts { width: min(var(--max), calc(100vw - 40px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #202020; }
.home-signposts a { min-height: 146px; padding: 30px 28px; color: #fff; text-decoration: none; border-right: 1px solid #202020; transition: background-color .2s ease; }
.home-signposts a:first-child { border-left: 1px solid #202020; }
.home-signposts a:hover { background: #101010; }
.home-signposts span { display: block; color: var(--accent); font-size: 16px; line-height: 1.3; font-weight: 700; text-transform: uppercase; }
.home-signposts strong { display: block; margin-top: 9px; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.05; font-weight: 900; text-transform: uppercase; }
.inventory-showcase { padding-top: 70px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; min-height: 50px; padding: 11px 28px; border: 2px solid #fff; border-radius: 30px; background: var(--button); color: #fff; text-decoration: none; text-transform: uppercase; font-size: 18px; line-height: 1.2; font-weight: 500; letter-spacing: 0; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { background: rgba(255, 255, 255, .5); color: #fff; }
.button-primary { border-color: var(--accent); background: var(--accent); }
.button-primary:hover { border-color: #fff; background: var(--button); }
.button-ghost { background: transparent; }

.grid { display: grid; gap: 34px; }
.vehicle-grid { grid-template-columns: repeat(auto-fit, 295px); justify-content: center; align-items: start; }
.vehicle-card { position: relative; display: block; width: 295px; height: 340px; background: #fff; color: #000; text-decoration: none; overflow: hidden; transition: transform .2s ease; }
.vehicle-card:hover { transform: translateY(-4px); }
.vehicle-card__image { position: absolute; top: 10px; left: 10px; width: 275px; height: 180px; background: #d9d9d9; overflow: hidden; }
.vehicle-card__image img { width: 100%; height: 100%; object-fit: cover; }
.vehicle-card__title { position: absolute; top: 200px; left: 10px; width: 260px; min-height: 48px; margin: 0; color: #000; font-size: 20px; line-height: 1.2; font-weight: 600; text-transform: capitalize; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vehicle-card__rule { position: absolute; top: 256px; left: 10px; width: 275px; height: 1px; background: #000; }
.vehicle-card__rule::before { content: ""; position: absolute; top: -3px; left: -3px; width: 57px; height: 7px; background: var(--accent); clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%); }
.vehicle-card__label, .vehicle-card__price, .vehicle-card__stock-label, .vehicle-card__stock { position: absolute; margin: 0; font-weight: 600; text-transform: capitalize; line-height: 1.3; }
.vehicle-card__label { top: 276px; left: 10px; color: var(--accent); font-size: 18px; }
.vehicle-card__price { top: 275px; left: 96px; max-width: 186px; color: #000; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-card__stock-label { top: 306px; left: 10px; color: #000; font-size: 16px; }
.vehicle-card__stock { top: 306px; left: 96px; max-width: 186px; color: #000; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { position: absolute; top: 18px; right: 18px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 74px; min-height: 30px; padding: 4px 10px; background: var(--accent); color: #fff; font-size: 13px; line-height: 1; font-weight: 900; text-transform: uppercase; }
.status-sold { background: var(--danger); }

.filters { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(145px, 180px)) auto; gap: 14px; align-items: end; padding: 24px; border: 1px solid var(--line); background: #101010; margin-bottom: 40px; }
.field { display: grid; gap: 8px; }
.field label { color: #fff; font-size: 14px; line-height: 1.2; font-weight: 900; text-transform: uppercase; }
.input, .select, .textarea { width: 100%; min-height: 50px; border: 1px solid #5f5f5f; background: #000; color: #fff; border-radius: 0; padding: 12px 14px; }
.textarea { min-height: 150px; resize: vertical; }
.empty { border: 1px solid var(--line); background: #101010; padding: 30px; color: var(--muted); }

.detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 36px; align-items: start; }
.gallery { display: grid; gap: 14px; }
.gallery-main { background: #111; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.thumb { border: 1px solid var(--line); padding: 0; border-radius: 0; overflow: hidden; background: #111; cursor: pointer; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--accent); }
.detail-panel { background: #101010; border: 1px solid var(--line); padding: 30px; position: sticky; top: 152px; }
.detail-panel h1 { font-size: clamp(34px, 4vw, 54px); }
.detail-price { margin: 0 0 24px; color: #fff; font-size: 30px; line-height: 1; font-weight: 900; }
.specs { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 26px; }
.spec { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); text-transform: uppercase; font-size: 13px; font-weight: 700; }
.spec dd { margin: 0; text-align: right; font-weight: 700; }
.copy-block { color: #fff; white-space: pre-line; }

.content { display: grid; gap: 18px; max-width: 920px; }
.page-hero { padding-bottom: 36px; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.content-panel { border: 1px solid var(--line); background: #101010; padding: 26px; }
.content-panel h2 { font-size: clamp(24px, 2.7vw, 36px); }
.content-panel p:last-child, .content-panel ul:last-child { margin-bottom: 0; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(340px, 1.15fr); gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-list a, .content-panel a { color: #fff; overflow-wrap: anywhere; }
.contact-list a:hover, .content-panel a:hover { color: var(--accent); }
.notice { border-left: 7px solid var(--accent); background: #000; padding: 16px; color: #fff; }
.step-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.step { border: 1px solid var(--line); background: #101010; min-height: 190px; padding: 26px; }
.step span { display: block; margin-bottom: 10px; color: var(--accent); font-size: 16px; font-weight: 900; text-transform: uppercase; }
.step h2 { font-size: clamp(24px, 3vw, 38px); }
.step p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--accent); background: #000; }
.footer-inner { width: min(var(--max), calc(100vw - 40px)); margin: 0 auto; padding: 54px 0 48px; display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 36px; align-items: start; }
.brand-footer img { width: 132px; height: 76px; }
.footer-heading { margin: 26px 0 8px; color: #fff; font-size: 18px; font-weight: 900; text-transform: uppercase; }
.footer-links { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 30px; justify-content: end; }
.footer-links a, .footer-inner a { color: var(--muted); text-decoration: none; text-transform: uppercase; font-weight: 700; }
.footer-links a:hover, .footer-inner a:hover { color: var(--accent); }

@media (max-width: 1100px) {
  .site-nav { gap: 22px; }
  .site-nav a { font-size: 20px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-media { max-width: 720px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .content-grid { grid-template-columns: 1fr; }
}

@media (max-width: 940px) {
  .header-inner { min-height: 94px; }
  .brand img { width: 118px; height: 67px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; inset: 94px 0 auto 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0; padding: 16px 20px 24px; background: #000; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; font-size: 24px; }
  .detail, .contact-layout { grid-template-columns: 1fr; }
  .detail-panel { position: static; }
  .home-signposts { grid-template-columns: 1fr; }
  .home-signposts a, .home-signposts a:first-child { border-left: 1px solid #202020; border-right: 1px solid #202020; }
  .step-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .header-inner, .section, .hero, .home-signposts, .footer-inner { width: min(100vw - 24px, var(--max)); }
  .section { padding: 50px 0; }
  .home-hero { min-height: 0; padding: 38px 0 42px; gap: 30px; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  h2 { font-size: clamp(28px, 9vw, 42px); }
  .lead { font-size: 18px; }
  .hero-media, .hero-media img { min-height: 260px; }
  .section-head { display: block; }
  .section-head .button { margin-top: 16px; }
  .vehicle-grid { grid-template-columns: minmax(0, 295px); }
  .filters, .footer-inner { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .thumbs { grid-template-columns: repeat(3, 1fr); }
  .footer-links { grid-template-columns: 1fr; justify-content: start; }
}
