/* ─────────────────────────────────────────────────────────────
   Посадочная страница. Карта лежит на месте, страница идёт поверх неё:
   Место тихое и во всю ширину, Дело читается слоем, Путь показан движением.
   Ни одного цвета вне токенов, ни одного внешнего запроса.
   ───────────────────────────────────────────────────────────── */
/* Витрина карты держит html и body ростом в экран и запрещает прокрутку: страница
   там одна и не едет. Лендингу нужно обратное — прокручивается сама страница,
   иначе ни scrollY, ни параллакс не работают. */
:root:has(body.land) { height: auto; }
body.land {
  height: auto; min-height: 100%; overflow: visible;
  background: var(--bg);
}
body.land * { box-sizing: border-box; }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 20; min-height: 44px; display: inline-flex; align-items: center;
  padding: 12px 18px; border-radius: 0 0 var(--r2) var(--r2);
  background: var(--panel); color: var(--fg); text-decoration: none;
}
.skip-link:focus-visible { top: 0; }

/* Сцена: карта и кадр под ней. Стоит на месте, страница едет поверх. */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--bg); }
.stage .poster,
.stage-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage .poster { object-fit: cover; opacity: 1; will-change: transform, opacity; }
.stage-map { opacity: 0; }
.stage.live .stage-map { opacity: 1; transition: opacity 700ms linear; }
/* Полог: без него белый текст на светлой крыше не читается */
.stage-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, color-mix(in srgb, var(--bg) 82%, transparent) 0%,
                               color-mix(in srgb, var(--bg) 30%, transparent) 38%,
                               color-mix(in srgb, var(--bg) 30%, transparent) 62%,
                               color-mix(in srgb, var(--bg) 88%, transparent) 100%);
}

.land-top {
  position: relative; z-index: 3; display: flex; align-items: center;
  justify-content: space-between; gap: var(--s4); padding: var(--s4) clamp(16px, 4vw, 48px);
}
.land-top .mark {
  display: inline-flex; align-items: center; min-height: 44px; padding-right: var(--s2);
  font-size: 19px; font-weight: 800; letter-spacing: -.02em;
  color: var(--fg); text-decoration: none;
}
.land-top .langs { display: flex; gap: 2px; }
.land-top .langs a, .land-top .langs b {
  min-width: 44px; min-height: 44px; display: grid; place-items: center;
  border-radius: var(--r2); font-size: 13px; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.land-top .langs b { color: var(--fg); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.land-top .langs a:hover { color: var(--fg); }

/* Первый экран: одна мысль, один призыв, ничего больше */
.hero {
  position: relative; z-index: 2; min-height: 78svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: clamp(24px, 6vw, 80px) clamp(16px, 4vw, 48px) clamp(40px, 8vw, 96px);
  text-align: center;
}
.hero h1 {
  margin: 0; max-width: 12em; font-size: clamp(40px, 7vw, 92px); line-height: 1.02;
  letter-spacing: -.035em; font-weight: 800; text-wrap: balance;
}
.hero-p {
  margin: var(--s5) 0 0; max-width: 46ch; text-wrap: balance;
  font-size: clamp(17px, 1.6vw, 22px); line-height: 1.45; color: var(--fg);
}
.hero-quiet { margin: var(--s4) 0 0; font-size: 14px; color: var(--muted); }
.hero-cta { margin: var(--s5) 0 0; }

.cta {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 600; text-decoration: none;
  box-shadow: var(--e2); transition: transform var(--fast), filter var(--fast);
}
.cta:hover { filter: brightness(1.07); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }

/* Три ипостаси: один смысл на экран, текст слоем поверх карты */
.scene {
  position: relative; z-index: 2; min-height: 100svh;
  display: flex; align-items: center; padding: 0 clamp(16px, 4vw, 48px);
}
.scene-text {
  max-width: 44ch; padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  border-radius: var(--r4); background: color-mix(in srgb, var(--panel) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--e2);
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--slow), transform var(--slow);
}
.scene.seen .scene-text { opacity: 1; transform: none; }
.kicker {
  margin: 0 0 var(--s2); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.scene h2 {
  margin: 0; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.06;
  letter-spacing: -.025em; font-weight: 800;
}
.scene p:not(.kicker) {
  margin: var(--s4) 0 0; font-size: 17px; line-height: 1.6; color: var(--muted);
}

/* Дальше карта не нужна: страница становится плотной и своей */
.figures, .owner {
  position: relative; z-index: 2; background: var(--bg);
  padding: clamp(48px, 9vw, 120px) clamp(16px, 4vw, 48px);
}
.figures { border-top: 1px solid var(--line-soft); }
.figures h2, .owner h2 {
  margin: 0 auto; max-width: 30ch; font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1; letter-spacing: -.025em; font-weight: 800; text-align: center;
}
.figs {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 48px); max-width: 900px; margin: clamp(32px, 5vw, 56px) auto 0;
  padding: 0; list-style: none; text-align: center;
}
.figs li { display: grid; gap: 6px; }
.figs b {
  font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.figs span { font-size: 13px; color: var(--muted); }
.trust {
  max-width: 62ch; margin: clamp(32px, 5vw, 56px) auto 0; padding: var(--s5);
  border-radius: var(--r3); background: var(--panel); border: 1px solid var(--line-soft);
  font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center;
}
.owner { text-align: center; }
.owner p { max-width: 52ch; margin: var(--s5) auto 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.owner-cta { display: flex; align-items: center; justify-content: center; gap: var(--s5); flex-wrap: wrap; }
.quiet-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); }

.land-foot {
  position: relative; z-index: 2; display: flex; gap: var(--s5); flex-wrap: wrap;
  justify-content: center; padding: var(--s5) clamp(16px, 4vw, 48px) var(--s6);
  background: var(--bg); border-top: 1px solid var(--line-soft);
}
.land-foot a { min-height: 44px; min-width: 44px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 var(--s2);
  font-size: 13px; color: var(--muted); text-decoration: none; }
.land-foot a:hover { color: var(--fg); }

/* Подпись на карте: вход, цена, время пути — появляются вместе со сценой */
.pin {
  display: grid; gap: 2px; justify-items: center; pointer-events: none;
}
.pin i {
  width: 14px; height: 14px; border-radius: 50%; background: var(--rouge);
  border: 2px solid var(--panel); box-shadow: var(--e1);
}
.pin span {
  padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  color: var(--fg); background: color-mix(in srgb, var(--panel) 88%, transparent);
  backdrop-filter: blur(8px); box-shadow: var(--e1); white-space: nowrap;
}
.card-float {
  position: absolute; right: clamp(16px, 4vw, 48px); top: 50%; z-index: 2;
  width: min(300px, 78vw); transform: translateY(-40%) scale(.96);
  padding: var(--s5); border-radius: var(--r4);
  background: color-mix(in srgb, var(--panel) 86%, transparent);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  box-shadow: var(--e3); opacity: 0; pointer-events: none;
  transition: opacity var(--slow), transform var(--slow);
}
.scene.seen .card-float { opacity: 1; transform: translateY(-50%) scale(1); }
.card-float h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.card-float .addr { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.card-float .row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3);
  margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line-soft);
}
.card-float .row b { font-size: 19px; font-variant-numeric: tabular-nums; }
.card-float .row span { font-size: 12px; color: var(--muted); }
.card-float .badge {
  display: inline-flex; align-items: center; gap: 5px; margin-top: var(--s3);
  font-size: 12px; color: var(--ok);
}

@media (max-width: 860px) {
  .hero { max-width: none; min-height: 72svh; }
  .scene { min-height: 88svh; align-items: flex-end; padding-bottom: clamp(24px, 8vw, 64px); }
  .scene-text { max-width: none; }
  .card-float { position: relative; right: auto; top: auto; width: auto;
    transform: translateY(12px) scale(1); margin-top: var(--s4); }
  .scene.seen .card-float { transform: none; }
  .figs { grid-template-columns: 1fr; text-align: left; }
  .figs li { grid-template-columns: auto 1fr; align-items: baseline; gap: var(--s4); }
  .trust, .owner p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .stage .poster, .stage-map, .scene-text, .card-float, .cta { transition: none; }
  .scene-text, .card-float { opacity: 1; transform: none; }
}
