:root {
  color-scheme: dark;
  --bg: #1f1f25;
  --panel: #292f2f;
  --panel-soft: #242929;
  --text: #f5f6f1;
  --muted: #b7b9b2;
  --line: #3a4141;
  --accent: #ccff3d;
  --accent-dark: #8ab321;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(31, 31, 37, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  z-index: 10;
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 42px;
  align-items: center;
  padding: 56px 0;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(48px, 8vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 20px;
  max-width: 560px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
}

.button.primary {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.map-card {
  min-height: 560px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(204, 255, 61, 0.06), transparent 32%),
    radial-gradient(circle at 28% 18%, rgba(204, 255, 61, 0.14), transparent 24%),
    #202827;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(25deg, transparent 20%, rgba(111, 119, 119, 0.32) 21%, transparent 22%),
    linear-gradient(145deg, transparent 34%, rgba(111, 119, 119, 0.28) 35%, transparent 36%),
    linear-gradient(88deg, transparent 46%, rgba(111, 119, 119, 0.22) 47%, transparent 48%),
    linear-gradient(8deg, transparent 58%, rgba(111, 119, 119, 0.22) 59%, transparent 60%);
  opacity: 0.9;
}

.route-line {
  position: absolute;
  inset: 78px 56px 116px 46px;
  border: 8px solid var(--accent);
  border-left-width: 0;
  border-bottom-width: 0;
  border-radius: 42% 28% 34% 18%;
  transform: rotate(-10deg);
  filter: drop-shadow(0 0 14px rgba(204, 255, 61, 0.24));
}

.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.route-line::before {
  left: -42px;
  bottom: 42px;
  transform: rotate(34deg);
}

.route-line::after {
  right: -20px;
  top: 96px;
  transform: rotate(42deg);
}

.pin {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  border: 5px solid #161818;
  display: grid;
  place-items: center;
  font-weight: 900;
  z-index: 2;
}

.pin.start {
  left: 72px;
  bottom: 92px;
}

.pin.finish {
  right: 70px;
  top: 88px;
}

.place {
  position: absolute;
  color: rgba(245, 246, 241, 0.8);
  font-weight: 800;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.place.one {
  left: 62px;
  top: 100px;
}

.place.two {
  right: 70px;
  bottom: 132px;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section h2,
.legal h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: 0;
  line-height: 1.05;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card p,
.legal p,
.legal li {
  color: var(--muted);
}

.legal {
  max-width: 820px;
  padding: 56px 0 84px;
}

.legal h2 {
  margin-top: 38px;
  color: var(--text);
}

.legal .updated {
  color: var(--muted);
  margin-bottom: 32px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .links {
    flex-wrap: wrap;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .map-card {
    min-height: 420px;
  }

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