:root {
  --bg: #f7f5ef;
  --paper: #fffdf7;
  --ink: #161914;
  --muted: #687064;
  --line: #dcd8ca;
  --red: #e33b2f;
  --red-dark: #b92c24;
  --green: #245a38;
  --graphite: #111412;
  --vk: #2485ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  color: #fff;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(247, 245, 239, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 32px rgba(17, 20, 18, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: currentColor;
  font-size: 14px;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 48%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.38), transparent 44%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  padding: 22svh 0 160px clamp(18px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff6b5e;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(64px, 11vw, 152px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.primary:hover {
  background: var(--red-dark);
}

.button.secondary {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.hero-panel {
  position: absolute;
  z-index: 1;
  right: clamp(18px, 5vw, 70px);
  bottom: 60px;
  display: grid;
  width: min(520px, calc(100% - 36px));
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(17, 20, 18, 0.54);
  backdrop-filter: blur(16px);
}

.hero-panel div {
  padding: 22px;
}

.hero-panel div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.metric-value,
.metric-label {
  display: block;
}

.metric-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 6vw, 86px);
  bottom: 44px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 44px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.route-grid {
  display: grid;
  gap: 24px;
}

.route-map {
  position: relative;
  width: min(1200px, 100%);
  min-height: 700px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.route-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  border: 0;
}

.route-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
}

.detail-row {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-row strong {
  font-size: 20px;
  line-height: 1.15;
}

.text-link {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.dark-section {
  background: var(--graphite);
  color: #fff;
}

.dark-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.stage-tab {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0 18px;
  font-weight: 850;
}

.stage-tab.active {
  border-color: var(--red);
  background: var(--red);
}

.stage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 34px;
  align-items: end;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 34px;
}

.stage-card p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
}

.stage-stats {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.stage-stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.stage-stats div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.stage-stats dt {
  color: rgba(255, 255, 255, 0.58);
}

.stage-stats dd {
  margin: 0;
  font-weight: 900;
}

.prepare-section {
  background: #ede9dd;
}

.checklist {
  display: grid;
  max-width: 900px;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  background: var(--paper);
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 750;
}

.checklist input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.checklist label:has(input:checked) {
  color: var(--muted);
  text-decoration: line-through;
}

.join-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  background: var(--green);
  color: #fff;
}

.join-copy {
  max-width: 800px;
}

.join-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #090b0a;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

.interest-modal {
  width: min(520px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: transparent;
}

.interest-modal::backdrop {
  background: rgba(0, 0, 0, 0.64);
}

.modal-card {
  display: grid;
  gap: 16px;
  background: var(--paper);
  padding: 28px;
  color: var(--ink);
}

.modal-card h2 {
  margin-bottom: 0;
  font-size: 34px;
}

.modal-card p:not(.eyebrow) {
  color: var(--muted);
}

.modal-card label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

.modal-card input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  background: #fff;
}

.modal-close {
  justify-self: end;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 18px;
    left: 18px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    padding: 16px 18px;
  }

  .main-nav a + a {
    border-top: 1px solid var(--line);
  }

  .nav-toggle {
    display: block;
  }

  .hero-content {
    padding: 150px 18px 250px;
  }

  .hero-panel {
    left: 18px;
    right: 18px;
    bottom: 72px;
    grid-template-columns: 1fr;
  }

  .hero-panel div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .scroll-cue {
    bottom: 28px;
  }

  .route-grid,
  .stage-card,
  .join-section {
    grid-template-columns: 1fr;
  }

  .route-map,
  .route-map iframe {
    min-height: 520px;
  }

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

  .join-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 62px;
  }

  h2 {
    font-size: 36px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .join-actions {
    width: 100%;
  }

}
