:root {
  --bg: #f3f6f9;
  --surface: #ffffff;
  --surface-soft: #e9eff5;
  --text: #172334;
  --muted: #5a6b7f;
  --accent: #d41124;
  --accent-dark: #a90e1c;
  --line: #d3dee9;
  --success: #179071;
  --radius-lg: 24px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 14px 42px rgba(23, 35, 52, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #ffffff 0%, #eef3f8 52%, #e7edf4 100%);
  min-height: 100vh;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(12, 13, 16, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 17, 36, 0.45);
}

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
}

.brand-logo {
  width: 178px;
  height: auto;
  display: block;
  border-radius: 8px;
}

.brand-mark {
  background: linear-gradient(140deg, #0c1b2f, #0a84d8);
  color: #fff;
  border-radius: 10px;
  width: 40px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.brand-text {
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 600;
  color: #f3f5f8;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(212, 17, 36, 0.2);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
}

.hero {
  padding: 44px 0 24px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-media {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.hero-copy {
  padding: clamp(24px, 4vw, 42px);
}

.kicker {
  margin: 0;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.hero-copy h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin: 10px 0 12px;
  line-height: 1.15;
}

.hero-copy p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
}

.hero-media {
  overflow: hidden;
  min-height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 132, 216, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
}

.btn-outline {
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.inventory {
  padding: 28px 0 18px;
}

.inventory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.inventory h2,
.contact h2,
.detail-sidebar h2,
.detail-description h2 {
  font-family: "Sora", sans-serif;
  margin: 0;
}

.search-form {
  display: flex;
  align-items: center;
  width: min(520px, 100%);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  background: transparent;
}

.search-form button {
  border: none;
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(23, 35, 52, 0.07);
}

.vehicle-card-link {
  display: block;
  height: 100%;
}

.vehicle-media {
  position: relative;
}

.vehicle-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vehicle-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: #d7263d;
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 16px rgba(215, 38, 61, 0.35);
}

.vehicle-content {
  padding: 14px;
}

.vehicle-title {
  margin: 0;
  font-size: 1.02rem;
}

.vehicle-meta {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.vehicle-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vehicle-price {
  font-weight: 700;
  color: var(--text);
}

.vehicle-cta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.inventory-footer {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.contact {
  padding: 34px 0 52px;
}

.contact-grid {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #0f2137, #0a5f98);
  color: #f7fbff;
  padding: clamp(24px, 4vw, 38px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact p {
  margin: 0 0 10px;
}

.contact address {
  font-style: normal;
  line-height: 1.7;
}

.contact address a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid rgba(212, 17, 36, 0.45);
  background: #0c0d10;
  color: #e6e8eb;
  padding: 20px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-row p {
  margin: 0;
}

.footer-nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-nav a {
  color: #f3f5f8;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ff4a5e;
}

.legal-page {
  padding: 34px 0 52px;
}

.status-page {
  padding: 42px 0 60px;
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
}

.status-badge.maintenance {
  background: #fff2ef;
  border-color: #ffc7bb;
  color: #b2381a;
}

.status-badge.construction {
  background: #fff9e8;
  border-color: #f1d796;
  color: #8a6516;
}

.status-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  border: 1px solid var(--line);
}

.status-icon.maintenance {
  background: linear-gradient(150deg, #ffe6e0, #fff4f1);
}

.status-icon.construction {
  background: linear-gradient(150deg, #fff0bf, #fff8de);
}

.status-card h1 {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.status-lead {
  margin: 0 auto 14px;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
}

.status-note {
  margin: 0 auto 24px;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.98rem;
}

.status-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 32px);
}

.legal-card h1 {
  margin-top: 0;
  font-family: "Sora", sans-serif;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.65;
}

.vehicle-page {
  padding: 26px 0 52px;
}

.back-link {
  margin-bottom: 16px;
}

.vehicle-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow);
}

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.detail-date,
.detail-subtitle {
  color: var(--muted);
  margin: 0 0 6px;
}

.detail-title {
  margin: 0 0 6px;
  font-family: "Sora", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.detail-price {
  margin: 4px 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}

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

.vehicle-page .detail-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vehicle-page .detail-gallery img:hover,
.vehicle-page .detail-gallery img:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(23, 35, 52, 0.2);
}

.detail-gallery img:first-child {
  grid-column: 1 / -1;
  height: 300px;
}

.detail-sidebar {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  background: #f9fbfd;
}

.key-info {
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.key-info div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

.key-info dt {
  color: var(--muted);
}

.key-info dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.detail-description {
  margin-top: 22px;
}

.detail-text {
  color: var(--muted);
  line-height: 1.65;
}

.detail-subheading {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 1rem;
  color: var(--text);
}

.detail-section-title {
  margin: 16px 0 8px;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}

.detail-paragraph {
  margin: 0 0 10px;
}

.detail-list {
  margin: 0 0 12px 18px;
  padding: 0;
}

.detail-list li {
  margin: 0 0 4px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(8, 10, 16, 0.84);
  display: grid;
  place-items: center;
  padding: 20px;
}

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

.image-lightbox-dialog {
  width: min(1080px, 94vw);
  background: #0f131c;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  position: relative;
  padding: 18px 56px 48px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.lightbox-image {
  width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #080b12;
}

.lightbox-close,
.lightbox-nav {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 14, 20, 0.72);
  color: #ffffff;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 56px;
  border-radius: 12px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 8px;
}

.lightbox-next {
  right: 8px;
}

.lightbox-close:hover,
.lightbox-close:focus-visible,
.lightbox-nav:hover,
.lightbox-nav:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(19, 26, 38, 0.92);
}

.lightbox-caption {
  margin: 12px 0 0;
  text-align: center;
  color: #f2f5fa;
  font-size: 0.95rem;
}

body.lightbox-open {
  overflow: hidden;
}

.detail-share {
  margin-top: 24px;
}

.share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-head h2 {
  margin: 0;
}

.share-trigger {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(23, 35, 52, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.share-trigger:hover,
.share-trigger:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.share-trigger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
}

.share-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.share-link:hover,
.share-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: #f1f8ff;
}

.detail-error {
  padding: 18px;
  border: 1px solid #ffccd4;
  border-radius: var(--radius-sm);
  background: #fff3f5;
  color: #9f1942;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.7s ease forwards;
}

.reveal-delay {
  animation-delay: 0.12s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-gallery img:first-child {
    height: 260px;
  }

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-block;
  }

  .hero-media {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    background: #11141a;
    border: 1px solid rgba(212, 17, 36, 0.45);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .inventory-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-header {
    flex-direction: column;
  }

  .status-page {
    padding-top: 26px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-top: 24px;
  }

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

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery img,
  .detail-gallery img:first-child {
    height: 200px;
  }

  .image-lightbox {
    padding: 10px;
  }

  .image-lightbox-dialog {
    width: 100%;
    padding: 12px 42px 44px;
  }

  .lightbox-nav {
    width: 36px;
    height: 48px;
    font-size: 1.8rem;
  }

  .lightbox-prev {
    left: 4px;
  }

  .lightbox-next {
    right: 4px;
  }
}
