:root {
  --bg: #111417;
  --card: rgba(28, 33, 38, 0.72);
  --card-hover: rgba(36, 42, 48, 0.82);
  --line: rgba(255, 255, 255, 0.07);
  --text: #f2f4f6;
  --muted: #a3acb5;
  --accent: #ffc60b;
  --blue: #2f7bf5;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }

/* Фон на весь экран, неподвижный: страница скользит поверх живой карты. */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.backdrop canvas, .backdrop video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.backdrop video { opacity: 0; transition: opacity 0.8s ease; }
.backdrop.has-video video { opacity: 1; }
.backdrop.has-video canvas { opacity: 0; }
.shade {
  position: absolute; inset: 0;
  /* Темнее только под текстом в центре, по краям карта видна. */
  background:
    radial-gradient(ellipse 38% 50% at 50% 46%, rgba(17, 20, 23, 0.86), rgba(17, 20, 23, 0) 100%),
    linear-gradient(180deg, rgba(17, 20, 23, 0.25) 0%, rgba(17, 20, 23, 0.15) 50%, rgba(17, 20, 23, 0.6) 100%);
}

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 40px) 14px;
  background: linear-gradient(180deg, rgba(17, 20, 23, 0.85), rgba(17, 20, 23, 0));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.2px; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 28px); }
nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--text); }
.lang {
  border: 0; cursor: pointer; font: 700 13px/1 inherit; font-family: inherit;
  color: var(--text); background: rgba(255, 255, 255, 0.1);
  padding: 8px 11px; border-radius: 999px;
}
.lang:hover { background: rgba(255, 255, 255, 0.18); }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

.hero {
  min-height: calc(100svh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 0 72px;
}
.hero-icon { border-radius: 26px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both; }
h1 {
  margin: 22px 0 6px; font-size: clamp(52px, 11vw, 104px); line-height: 0.95; font-weight: 900; letter-spacing: -2.5px;
  animation: rise 0.9s 0.08s cubic-bezier(.2,.8,.2,1) both;
}
.tagline { margin: 6px 0 0; font-size: clamp(20px, 3.4vw, 28px); font-weight: 700; color: var(--accent); animation: rise 0.9s 0.16s cubic-bezier(.2,.8,.2,1) both; }
.lead { max-width: 620px; margin: 14px auto 0; color: #d3d8dd; font-size: clamp(16px, 2.2vw, 19px); animation: rise 0.9s 0.24s cubic-bezier(.2,.8,.2,1) both; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; animation: rise 0.9s 0.32s cubic-bezier(.2,.8,.2,1) both; }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 18px;
  font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap;
}
.pill.soon { background: var(--accent); color: #111; }
.pill.ghost { background: rgba(255, 255, 255, 0.1); color: var(--text); }
.pill.ghost:hover { background: rgba(255, 255, 255, 0.18); }

.stats {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  animation: rise 0.9s 0.4s cubic-bezier(.2,.8,.2,1) both;
}
.stats li {
  display: flex; flex-direction: column; align-items: center; min-width: 150px;
  padding: 12px 18px; border-radius: 16px; background: var(--card);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stats b { font-size: 22px; font-weight: 900; color: var(--text); }
.stats span { font-size: 13px; color: var(--muted); }

.section { padding: 72px 0; }
h2 { margin: 0 0 28px; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; font-weight: 900; letter-spacing: -1px; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  padding: 24px; border-radius: var(--radius); background: var(--card);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.25s ease, background 0.25s ease;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); }
.card h3, .steps h3 { margin: 16px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.2px; }
.card p, .steps p { margin: 0; color: var(--muted); font-size: 16px; }
.icons { display: flex; gap: 6px; }
.icons img { width: 52px; height: 52px; }
.card:hover .icons img { animation: hop 0.5s ease; }
.card:hover .icons img:nth-child(2) { animation-delay: 0.06s; }
.card:hover .icons img:nth-child(3) { animation-delay: 0.12s; }

.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 14px; counter-reset: step; }
.steps li {
  display: flex; align-items: center; gap: 20px; padding: 20px 24px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  counter-increment: step; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; top: 14px; right: 18px;
  font-size: 13px; font-weight: 900; color: #111; background: var(--accent);
  width: 24px; height: 24px; border-radius: 12px; display: grid; place-items: center;
}
.steps img { width: 64px; height: 64px; flex: none; }
.steps h3 { margin-top: 0; }

.final { display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 96px; }
.final img { border-radius: 17px; margin-bottom: 18px; }
.final h2 { margin-bottom: 8px; }
.final p { margin: 0 0 22px; color: var(--muted); }

footer {
  display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center;
  padding: 26px 16px calc(26px + env(safe-area-inset-bottom));
  color: var(--muted); font-size: 14px; background: rgba(17, 20, 23, 0.94);
}
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }

/* Появление при прокрутке. */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.shown { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hop { 0%, 100% { transform: none; } 45% { transform: translateY(-7px); } }

@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  /* На телефоне карта целиком за текстом — приглушаем её сильнее. */
  .shade { background: linear-gradient(180deg, rgba(17, 20, 23, 0.72) 0%, rgba(17, 20, 23, 0.62) 60%, rgba(17, 20, 23, 0.42) 100%); }
  nav a { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats li { min-width: 0; flex: 1 1 40%; }
  .steps li { gap: 14px; padding: 18px; }
  .steps img { width: 52px; height: 52px; }
  .pill { width: 100%; }
  .cta { width: 100%; max-width: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
