:root {
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(200, 157, 71, 0.06) 0%, rgba(200, 157, 71, 0) 12%),
    linear-gradient(180deg, #090909 0%, #0d0d0d 35%, #070707 100%);
}

.page-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 95%);
}

.section-border {
  position: relative;
}

.section-border::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 157, 71, 0.32), transparent);
}

.hero-scene {
  background-image:
    linear-gradient(90deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.92) 28%, rgba(7, 7, 7, 0.72) 48%, rgba(7, 7, 7, 0.38) 66%, rgba(7, 7, 7, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.08), rgba(7, 7, 7, 0.7)),
    url("https://images.unsplash.com/photo-1519643381401-22c77e60520e?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
}

.hero-car {
  mask-image:
    linear-gradient(90deg, transparent 0%, black 18%, black 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, black 18%, black 86%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 12%, black 88%, transparent 100%);
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.9rem;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, rgba(200, 157, 71, 0.92), rgba(200, 157, 71, 0.22));
  transition: transform 0.22s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-link.is-active {
  color: #c89d47;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-nav-toggle {
  display: none;
}

.mobile-navigation {
  display: none;
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(16, 16, 16, 0.96));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.panel-soft {
  border: 1px solid rgba(200, 157, 71, 0.16);
  background: linear-gradient(180deg, rgba(23, 23, 23, 0.98), rgba(13, 13, 13, 0.98));
}

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

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

.hero-title span {
  display: block;
}

.booking-status {
  transition: color 0.2s ease, opacity 0.2s ease;
}

.booking-status--success {
  color: #a3ffb8;
}

.booking-status--error {
  color: #ff9a99;
}

.booking-status--loading {
  color: #d6c38d;
}

@media (max-width: 1023px) {
  .hero-scene {
    background-image:
      linear-gradient(180deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.78) 38%, rgba(7, 7, 7, 0.95) 100%),
      url("https://images.unsplash.com/photo-1519643381401-22c77e60520e?auto=format&fit=crop&w=1200&q=80");
    background-position: center right;
  }

  .nav-link::after {
    display: none;
  }
}

@media (max-width: 768px) {
  body.mobile-nav-open {
    overflow: hidden;
  }

  .mobile-header-actions .archive-link {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    min-height: 46px;
    width: 46px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(200, 157, 71, 0.35);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
  }

  .mobile-nav-toggle:hover {
    background: rgba(200, 157, 71, 0.15);
    border-color: rgba(200, 157, 71, 0.5);
    transform: translateY(-1px);
  }

  .mobile-nav-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-navigation {
    position: fixed;
    inset: 0;
    top: 82px;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(12px);
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-navigation::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(200, 157, 71, 0.08), transparent 25%),
                radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.03), transparent 20%);
    pointer-events: none;
  }

  .mobile-navigation.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-navigation a {
    position: relative;
    display: flex;
    min-height: 62px;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    overflow: hidden;
  }

  .mobile-navigation a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #c89d47, rgba(200, 157, 71, 0.4));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.25s ease;
  }

  .mobile-navigation a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(200, 157, 71, 0);
    transition: background 0.25s ease;
  }

  .mobile-navigation a:hover,
  .mobile-navigation a:focus-visible {
    color: #ffffff;
  }

  .mobile-navigation a:hover::before,
  .mobile-navigation a:focus-visible::before {
    transform: scaleY(1);
  }

  .mobile-navigation a:hover::after {
    background: rgba(200, 157, 71, 0.12);
  }

  .mobile-navigation a:focus-visible {
    outline: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
