:root {
  --bg: #050607;
  --surface: #0f1217;
  --surface-soft: #141922;
  --line: #2b313b;
  --text: #eef1f5;
  --muted: #a5adb8;
  --red: #e11428;
}

* {
  box-sizing: border-box;
}
 
html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 80% -10%, #1b2431, #050607 48%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  z-index: 1;
  background-image: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.26) 0.8px, transparent 0.8px), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2) 0.8px, transparent 0.8px);
  background-size: 5px 5px, 6px 6px;
}

.topbar,
.inventory-main,
.site-footer {
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  background: rgba(8, 10, 14, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-nav {
  width: min(1320px, calc(100% - 38px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand img {
  height: 42px;
  display: block;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 10px;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #dbe0e7;
  transition: color 150ms ease;
}

.nav-links a:hover {
  color: #fff;
}

.actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #d4d9e1;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
}

.contact-btn {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 18px;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.contact-btn:hover {
  border-color: #fff;
}

.inventory-main {
  width: min(1320px, calc(100% - 38px));
  margin: 26px auto 44px;
}

.inventory-hero {
  max-width: 920px;
}

.section-tag {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
  font-weight: 700;
  font-size: 12px;
}

.inventory-hero h1 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 0.95;
}

.hero-copy {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.65;
}

.filter-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, #11161d, #163148);
  border-radius: 20px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d2d8e2;
  font-weight: 700;
}

.field select {
  width: 100%;
  border: 1px solid #303744;
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  font: 600 14px "Manrope", sans-serif;
  outline: none;
}

.field select:focus {
  border-color: var(--red);
}

.outline-btn {
  border: 1px solid #3a4352;
  background: transparent;
  color: #f3f5f8;
  border-radius: 12px;
  padding: 12px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.outline-btn:hover {
  border-color: var(--red);
}

.inventory-results {
  margin-top: 24px;
}

.results-head p {
  margin: 0 0 12px;
  color: #c6cdd8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.vehicle-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #11161d, #121923);
  display: grid;
  min-height: 390px;
  animation: revealCard 420ms ease both;
}

@keyframes revealCard {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vehicle-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0b0e12;
}

.vehicle-body {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.vehicle-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.vehicle-brand {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #9ea7b3;
  font-weight: 700;
}

.vehicle-category {
  margin: 0;
  font-size: 11px;
  color: #d6dce5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.vehicle-name {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  line-height: 0.95;
}

.vehicle-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.vehicle-price {
  margin: 2px 0 0;
  color: #f5f7fb;
  font-size: 20px;
  font-weight: 800;
}

.empty-state {
  margin: 14px 0 0;
  border: 1px dashed #3b4554;
  background: #10161f;
  color: #d5dbe4;
  border-radius: 16px;
  padding: 18px;
}

.hidden {
  display: none;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 15, 0.92);
}

.footer-shell {
  width: min(1320px, calc(100% - 38px));
  margin: 0 auto;
  padding: 32px 0 20px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}

.footer-brand img {
  height: 38px;
  display: block;
}

.footer-brand p {
  margin: 12px 0 0;
  color: #9fa8b4;
  max-width: 380px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.footer-links h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a {
  display: block;
  color: #b8c0cb;
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 0 22px;
  width: min(1320px, calc(100% - 38px));
  margin: 0 auto;
}

.footer-bottom p {
  margin: 0;
  color: #7f8896;
  font-size: 12px;
}

@media (max-width: 1024px) {
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: flex;
    margin-left: auto;
  }

  .actions {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 75px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid #2f3743;
    border-radius: 14px;
    background: rgba(9, 12, 17, 0.98);
  }

  .nav-links.open {
    display: flex;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-name {
    font-size: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}
