:root {
  --bg: #212529;
  --panel: #212529;
  --line: rgba(255, 255, 255, 0.15);
  --text: #dee2e6;
  --muted: rgba(222, 226, 230, 0.75);
  --pewter: #b7b2a8;
  --red: #e10600;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #6e6a64 var(--bg);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #6e6a64;
  border: 2px solid var(--bg);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--pewter);
}

::-webkit-scrollbar-corner {
  background: var(--bg);
}

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

.header {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 74px;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: #212529;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
}

.nav a,
.nav-drop-toggle {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"],
.nav-drop-toggle:hover,
.nav-drop:hover .nav-drop-toggle,
.nav-drop.is-open .nav-drop-toggle { color: #fff; }

.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-drop-toggle {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-drop-toggle::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: 1px;
  transition: transform 0.15s ease;
}

.nav-drop:hover .nav-drop-toggle::after,
.nav-drop:focus-within .nav-drop-toggle::after,
.nav-drop.is-open .nav-drop-toggle::after {
  transform: rotate(180deg);
}

.nav-drop-toggle:focus-visible {
  outline: 1px solid var(--pewter);
  outline-offset: 6px;
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 5;
  min-width: 188px;
  padding-top: 14px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drop-panel {
  padding: 6px 0;
  background: #212529;
  border: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.nav-drop-menu a {
  display: block;
  padding: 10px 16px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav-drop-menu a:hover,
.nav-drop-menu a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 74% 78%, rgba(40, 18, 18, 0.45), transparent 42%),
    var(--bg);
}

.lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 8% 70% at 66% -12%, rgba(228, 224, 216, 0.62), rgba(170, 166, 158, 0.14) 46%, transparent 72%),
    radial-gradient(ellipse 10% 74% at 76% -14%, rgba(255, 220, 212, 0.26), transparent 70%),
    radial-gradient(ellipse 11% 72% at 90% -10%, rgba(214, 24, 20, 0.55), rgba(120, 10, 10, 0.12) 48%, transparent 74%),
    radial-gradient(ellipse 34% 26% at 84% 68%, rgba(150, 24, 22, 0.32), transparent 72%),
    radial-gradient(ellipse 26% 20% at 68% 66%, rgba(160, 156, 148, 0.16), transparent 70%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 88px 0 0 64px;
}

.intro {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

h1 {
  margin: 0;
}

h1 img {
  display: block;
  width: min(460px, 36vw);
  height: auto;
}

.quote {
  max-width: 420px;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.quote-mark {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 0 10px;
  color: var(--pewter);
}

.quote p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-car {
  position: absolute;
  z-index: 1;
  right: 1%;
  bottom: 4%;
  width: min(62vw, 860px);
}

.hero-car .car {
  width: 100%;
  height: auto;
  display: block;
}

.models {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 8px 36px 48px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--pewter);
  padding: 20px 22px 22px;
  min-width: 0;
}

.card-gt { border-top-color: #a84848; }
.card-gxp { border-top-color: var(--red); }
.card-firehawk { border-top-color: #e87722; }

.card p {
  margin: 0;
}

.card .label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 10px;
}

.card h2 {
  margin: 0;
  min-width: 0;
  font-size: 28px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: 0.06em;
}

.prices {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 32px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  text-align: right;
  white-space: nowrap;
}

.specs {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.engine {
  display: block;
  width: 100%;
  height: 240px;
  margin-top: 12px;
  object-fit: contain;
}

.engine-name {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.engine-specs {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.35;
  text-align: left;
}

.engine-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.spec-value {
  flex: 1;
  min-width: 0;
}

.spec-lines {
  display: flex;
  flex-direction: column;
  line-height: 16px;
}

.spec-break {
  display: none;
}

.spec-badge {
  flex: 0 0 108px;
  padding: 4px 0 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--pewter);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.contact-page {
  padding: 48px 36px 72px;
}

.contact-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.contact-wrap.has-inbox {
  max-width: 1040px;
}

.contact-inbox {
  margin-bottom: 48px;
}

.contact-inbox h2,
.contact-form-panel h1 {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-form label {
  display: block;
  margin: 18px 0 8px;
  color: var(--pewter);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--pewter);
  outline-offset: 2px;
}

.contact-form button {
  margin-top: 22px;
  padding: 12px 22px;
  border: 0;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.contact-status {
  margin: 0 0 8px;
}

.contact-status.is-error { color: #ff8d8a; }
.contact-status.is-ok { color: #b7d7b0; }

.contact-empty {
  margin: 0;
  color: var(--muted);
}

.contact-table-wrap {
  overflow-x: auto;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

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

.contact-table th {
  color: var(--pewter);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-when {
  white-space: nowrap;
}

.contact-message {
  white-space: pre-wrap;
  word-break: break-word;
  min-width: 16rem;
}

@media (max-width: 900px) {
  .header {
    height: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 16px;
  }

  .nav {
    justify-content: center;
    gap: 22px;
    width: auto;
  }

  .hero { min-height: 0; }

  .hero-copy { padding: 36px 24px 0; }

  h1 img { width: min(100%, 420px); }

  .hero-car {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 12px;
  }

  .models {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .spec-break {
    display: inline;
  }

  .contact-page {
    padding: 28px 16px 48px;
  }
}
