:root {
  --bg: #0a0a0c;
  --bg-alt: #121217;
  --text: #f5f7fa;
  --muted: #acb3c2;
  --red: #e10600;
  --red-soft: #ff3b30;
  --panel: rgba(255, 255, 255, 0.05);
  --stroke: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 0%, #1d1e27 0%, var(--bg) 55%);
  scroll-behavior: smooth;
}

a { color: #fff; }
a:hover { color: var(--red-soft); }

.section-pad { padding: 88px 0; }
.section-dark { background: linear-gradient(180deg, #111218 0%, #0d0e13 100%); }

.racing-nav {
  background: rgba(10, 10, 12, 0.78);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 1px;
  font-weight: 800;
}

.nav-link {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86) !important;
}

.nav-link:hover,
.nav-link.active { color: #fff !important; }

.hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(12, 13, 17, 0.95) 25%, rgba(225, 6, 0, 0.25) 100%),
    url("https://images.unsplash.com/photo-1627742310198-4b0dab8fdb58?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(255, 59, 48, 0.25), transparent 45%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(transparent 96%, rgba(255,255,255,0.08) 100%);
  background-size: 100% 7px;
  opacity: 0.15;
}

.hero-kicker, .section-kicker {
  color: var(--red-soft);
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}

.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
}

.hero-title span { color: var(--red-soft); }

.hero-text {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.1rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn-racing,
.btn-racing-outline {
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 700;
  transition: all 0.25s ease;
}

.btn-racing {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-soft) 100%);
  color: white;
  border: none;
}

.btn-racing:hover { transform: translateY(-2px); color: #fff; }

.btn-racing-outline {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: transparent;
  color: #fff;
}

.btn-racing-outline:hover {
  border-color: var(--red-soft);
  color: #fff;
  transform: translateY(-2px);
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.hero-stat,
.glass-panel,
.card-racing,
.program-box,
.service-item,
.price-card,
.booking-form,
.booking-info {
  background: var(--panel);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(6px);
  border-radius: 18px;
}

.hero-stat { padding: 20px; }
.hero-stat h3 { font-family: "Orbitron", sans-serif; margin: 0; color: var(--red-soft); }
.hero-stat p { margin: 6px 0 0; color: var(--muted); }

.section-head h2 {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  margin-bottom: 30px;
}

.glass-panel { padding: 28px; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { margin-bottom: 9px; color: var(--muted); }

.track-visual {
  position: relative;
  min-height: 100%;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  overflow: hidden;
  margin: 0;
  padding: clamp(12px, 2vw, 18px);
  background:
    radial-gradient(circle at top right, rgba(225, 6, 0, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 36px rgba(225, 6, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.track-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(68vh, 540px);
  object-fit: contain;
  display: block;
  border-radius: 14px;
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(225, 6, 0, 0.10);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.card-racing,
.program-box,
.service-item,
.price-card { padding: 22px; height: 100%; }
.card-racing h3, .price-card h3 { font-family: "Orbitron", sans-serif; font-size: 1.1rem; }
.card-racing p, .price-card p { color: var(--muted); margin-bottom: 8px; }
.program-box { text-align: center; font-weight: 700; font-size: 1.1rem; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.price-card strong {
  font-size: 1.4rem;
  color: var(--red-soft);
  font-family: "Orbitron", sans-serif;
}

.booking-form,
.booking-info { padding: 24px; }

.field-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-control,
.form-select {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255,255,255,0.1);
  color: #fff;
  box-shadow: 0 0 0 0.2rem rgba(225, 6, 0, 0.2);
  border-color: var(--red-soft);
}

.form-select option {
  background: #1a1d22;
  color: #fff;
}

.booking-message { min-height: 24px; font-weight: 600; }
.booking-message.success { color: #48e07d; }
.booking-message.error { color: #ff7878; }
.booking-message.info { color: #9cc8ff; }

.booking-summary {
  margin-top: 6px;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(225, 6, 0, 0.08));
}

.booking-summary h3 {
  margin-bottom: 16px;
  font-family: "Orbitron", sans-serif;
  font-size: 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.summary-item {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.summary-item strong {
  display: block;
  font-size: 1rem;
}

.summary-total strong {
  color: var(--red-soft);
  font-family: "Orbitron", sans-serif;
}

.map-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  min-height: 330px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 330px;
  border: 0;
}

.site-footer {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: #090a0e;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .hero-section { background-position: 62% center; }
  .hero-stat-grid { margin-top: 28px; }
  .track-visual {
    min-height: auto;
    margin-top: 4px;
  }
  .track-image {
    max-height: 460px;
  }
}

@media (max-width: 767px) {
  .section-pad { padding: 72px 0; }
  .hero-cta { flex-direction: column; }
  .btn-racing, .btn-racing-outline { width: 100%; text-align: center; }
  .track-visual {
    padding: 10px;
  }
  .track-image {
    max-height: 320px;
  }
}
