:root {
  --bg: #f6f9ff;
  --bg-soft: #edf4ff;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.72);
  --line: rgba(110, 142, 196, 0.18);
  --text: #18304f;
  --muted: #5f7596;
  --accent: #4ea9ff;
  --accent-2: #88d8c0;
  --accent-3: #7d90ff;
  --danger: #d95555;
  --ok: #198754;
  --shadow: 0 20px 50px rgba(40, 73, 120, 0.12);
  --radius: 24px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(78, 169, 255, 0.16), transparent 0 24%),
    radial-gradient(circle at 88% 14%, rgba(136, 216, 192, 0.16), transparent 0 22%),
    linear-gradient(180deg, #fbfdff 0%, #f4f8ff 55%, #eef4ff 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.travel-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.racing-streak {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.28;
  mix-blend-mode: screen;
  animation: streakShift 16s ease-in-out infinite alternate;
}

.racing-streak-1 {
  width: min(42vw, 520px);
  height: 110px;
  top: 12vh;
  right: -8vw;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(78, 169, 255, 0), rgba(78, 169, 255, 0.18), rgba(255,255,255,0.4), rgba(136, 216, 192, 0.12), rgba(136, 216, 192, 0));
}

.racing-streak-2 {
  width: min(36vw, 460px);
  height: 90px;
  left: -10vw;
  bottom: 14vh;
  transform: rotate(18deg);
  background: linear-gradient(90deg, rgba(125, 144, 255, 0), rgba(125, 144, 255, 0.16), rgba(255,255,255,0.32), rgba(78, 169, 255, 0.10), rgba(78, 169, 255, 0));
  animation-duration: 19s;
}

@keyframes streakShift {
  from {
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }
  to {
    transform: translate3d(-30px, 22px, 0) rotate(-15deg);
  }
}

.racing-streak-2 {
  animation-name: streakShiftAlt;
}

@keyframes streakShiftAlt {
  from {
    transform: translate3d(0, 0, 0) rotate(18deg);
  }
  to {
    transform: translate3d(24px, -20px, 0) rotate(14deg);
  }
}

.bg-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 { background: var(--accent); top: 3rem; left: -4rem; }
.bg-glow-2 { background: var(--accent-2); top: 14rem; right: -6rem; }

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(248, 251, 255, 0.82);
  border-bottom: 1px solid rgba(110, 142, 196, 0.14);
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #123255;
  background: linear-gradient(135deg, rgba(78, 169, 255, 0.20), rgba(136, 216, 192, 0.22));
  border: 1px solid rgba(78, 169, 255, 0.18);
  box-shadow: 0 10px 24px rgba(78, 169, 255, 0.14);
}

.brand-text {
  white-space: nowrap;
  color: var(--text);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(40, 73, 120, 0.08);
}

.lang-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  background: transparent;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: rgba(78, 169, 255, 0.14);
  color: var(--text);
  transform: translateY(-1px);
}

.hero,
.section {
  padding: 4.5rem 0;
}

.hero-grid,
.listing-grid,
.form-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-grid,
.listing-grid,
.form-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.hero-copy,
.hero-panel,
.feature-box,
.car-card,
.cta-card,
.form-card,
.contact-note-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-copy {
  padding: 2.2rem;
}

.hero-panel {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: rgba(78, 169, 255, 0.10);
  border: 1px solid rgba(78, 169, 255, 0.16);
  color: #315e8c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); margin-top: 1rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-top: 0.9rem; }
h3 { font-size: 1.22rem; }

.hero-text,
.section-head p,
.section-copy p,
.feature-box p,
.car-body p,
.contact-note-card p,
.form-status {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 16px;
  min-height: 50px;
  padding: 0.85rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, rgba(78, 169, 255, 0.18), rgba(136, 216, 192, 0.22));
  color: var(--text);
  border-color: rgba(78, 169, 255, 0.20);
  box-shadow: 0 12px 26px rgba(78, 169, 255, 0.12);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
  color: var(--text);
}
.btn-block { width: 100%; }

.stat-card,
.feature-box,
.contact-note-card {
  padding: 1.3rem;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.stat-label,
.stat-note,
.car-id,
.car-owner,
.form-group label {
  color: var(--muted);
}

.stat-value {
  display: block;
  font-size: 1.45rem;
  margin: 0.35rem 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.car-card {
  overflow: hidden;
}

.car-photo-placeholder {
  min-height: 250px;
  background:
    linear-gradient(135deg, rgba(78, 169, 255, 0.12), rgba(125, 144, 255, 0.12)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.65) 0 12px, rgba(240,245,255,0.8) 12px 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  color: #3f5d82;
  border-bottom: 1px solid var(--line);
}

.photo-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #234264;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(78, 169, 255, 0.18);
  box-shadow: 0 10px 24px rgba(78, 169, 255, 0.12);
}

.car-body {
  padding: 1.35rem;
}

.car-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: #2a6aa7;
  text-decoration: underline;
  text-decoration-color: rgba(42, 106, 167, 0.28);
  text-underline-offset: 3px;
}

.alt-section {
  background: rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(110, 142, 196, 0.10);
  border-bottom: 1px solid rgba(110, 142, 196, 0.10);
}

.feature-stack {
  display: grid;
  gap: 1rem;
}

.cta-section { padding-top: 3rem; }
.cta-card {
  padding: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.form-section {
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
}

.form-card {
  padding: 1.5rem;
}

form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-group {
  display: grid;
  gap: 0.45rem;
}

input,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(110, 142, 196, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(78, 169, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(78, 169, 255, 0.14);
}

input::placeholder,
textarea::placeholder { color: #8da0be; }

.form-status {
  min-height: 1.5rem;
  margin: 0.25rem 0 0;
}
.form-status.ok { color: var(--ok); }
.form-status.error { color: var(--danger); }
.hidden-field { display: none; }

.site-footer {
  padding: 1.8rem 0 2.3rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(110, 142, 196, 0.14);
  padding-top: 1.3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }

@media (max-width: 1024px) {
  .hero-grid,
  .listing-grid,
  .form-grid,
  .cars-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .travel-canvas { opacity: 0.78; }
  .racing-streak { opacity: 0.18; filter: blur(22px); }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .main-nav {
    gap: 0.8rem;
  }

  .hero,
  .section {
    padding: 3rem 0;
  }

  .hero-copy,
  .hero-panel,
  .cta-card,
  .form-card {
    padding: 1.2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .lang-btn span {
    display: none;
  }
}


@media (prefers-reduced-motion: reduce) {
  .racing-streak { animation: none; }
}
