@font-face { font-family: "Stolzl"; src: url("fonts/stolzl.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Stolzl Book"; src: url("fonts/stolzl-book.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --bg: #090d1c;
  --bg2: #141d3a;
  --card: #111833;
  --card2: #18213f;
  --line: #222c50;
  --text: #eef1ff;
  --muted: #9aa3c4;
  --accent: #6f8dff;
  --accent2: #9fb3ff;
  --green: #4fd39a;
  --r: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg2) 0, var(--bg) 640px) var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Stolzl Book", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .brand, .btn { font-family: "Stolzl", system-ui, sans-serif; font-weight: 500; letter-spacing: -0.01em; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

header { padding: 22px 0; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
nav { display: flex; gap: 22px; font-size: 15px; }
nav a { color: var(--muted); }
nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; font-size: 17px;
  background: var(--accent); color: #fff; border: 0;
  box-shadow: 0 10px 30px -10px rgba(111, 141, 255, .7);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(111, 141, 255, .85); }
.btn.ghost { background: var(--card2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }

.hero { padding: 64px 0 80px; text-align: center; }
.hero .logo { width: 112px; height: 112px; border-radius: 30px; box-shadow: 0 20px 60px -20px rgba(111, 141, 255, .6); outline: 3px solid rgba(111, 141, 255, .55); outline-offset: 6px; }
.hero h1 { font-size: clamp(40px, 7vw, 68px); line-height: 1.05; margin: 36px 0 18px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 20px; color: var(--muted); max-width: 620px; margin: 0 auto 36px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

section { padding: 40px 0; }
section h2 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 24px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card h3 { font-size: 19px; margin: 16px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.dot { width: 46px; height: 46px; border-radius: 50%; background: #1e2a55; border: 2px solid var(--accent); display: grid; place-items: center; }

.steps { counter-reset: s; display: grid; gap: 12px; }
.step { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px; }
.step::before { counter-increment: s; content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: "Stolzl", sans-serif; }
.step b { font-family: "Stolzl", sans-serif; font-weight: 500; }
.step p { margin: 4px 0 0; color: var(--muted); font-size: 16px; }

.flags { display: flex; flex-wrap: wrap; gap: 10px; }
.flag { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px 10px 12px; font-size: 16px; }
.flag i { display: flex; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.flag i svg { width: 100%; height: 100%; }
.dot svg { width: 22px; height: 22px; fill: none; stroke: var(--accent2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 .paw { display: inline-block; width: .8em; height: .8em; fill: var(--accent); vertical-align: -0.05em; transform: rotate(18deg); }
.flag::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-left: 2px; box-shadow: 0 0 8px var(--green); }

details { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 0 22px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 20px 0; font-family: "Stolzl", sans-serif; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

.final { text-align: center; background: linear-gradient(180deg, #1a2550, var(--card)); border: 1px solid var(--line); border-radius: 36px; padding: 52px 24px; margin: 40px 0; }
.final h2 { margin-bottom: 12px; }
.final p { color: var(--muted); margin: 0 0 28px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* документы */
.doc { max-width: 760px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 30px 0 8px; }
.doc .upd { color: var(--muted); font-size: 15px; margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; }
.doc p, .doc li { color: #cdd3ee; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 16px 20px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: "Stolzl", sans-serif; font-weight: 500; color: var(--text); }
.doc td { color: #cdd3ee; }
.tablewrap { overflow-x: auto; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  nav { display: none; }
  .hero { padding: 36px 0 56px; }
  .hero p { font-size: 17px; }
  .btn { width: 100%; }
}

/* ---- анимации ---- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #dfe6ff; opacity: .2; animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(1); } 50% { opacity: .9; transform: scale(1.6); } }
.glow { position: absolute; left: 50%; top: 40%; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(111, 141, 255, .28), rgba(111, 141, 255, 0) 65%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.1); opacity: 1; } }

.hero h1 { margin-top: 20px; }
.shine { background: linear-gradient(90deg, #6f8dff, #b9c8ff, #6f8dff, #9fb3ff); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -300% 0; } }

.btn:not(.ghost) { position: relative; overflow: hidden; }
.btn:not(.ghost)::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: sweep 4s ease-in-out 1.5s infinite; }
@keyframes sweep { 0% { left: -60%; } 40%, 100% { left: 130%; } }

.card { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); border-color: rgba(111, 141, 255, .5); box-shadow: 0 18px 40px -20px rgba(111, 141, 255, .5); }
.card:hover .dot { animation: pop .5s ease; }
@keyframes pop { 50% { transform: scale(1.15) rotate(-8deg); } }
.flag { transition: transform .25s ease, border-color .25s ease; }
.flag:hover { transform: translateY(-3px); border-color: rgba(111, 141, 255, .5); }
.flag::after { animation: ping 2.4s ease-in-out infinite; }
@keyframes ping { 50% { box-shadow: 0 0 0 5px rgba(79, 211, 154, 0), 0 0 12px var(--green); } }
.step, details { transition: border-color .25s ease; }
.step:hover, details:hover { border-color: rgba(111, 141, 255, .45); }
details[open] p { animation: drop .35s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .card.rv.in:hover { transform: translateY(-6px); transition-delay: 0s; }
.js .flag.rv.in:hover { transform: translateY(-3px); transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---- страницы платформ ---- */
.hero.sub { padding: 40px 0 56px; }
.hero.sub h1 { margin-top: 12px; }
.crumbs { font-size: 14px !important; color: var(--muted); margin: 0 auto 8px !important; }
.crumbs a { color: var(--muted); }
a.flag { color: var(--text); }
a.flag:hover { text-decoration: none; }
a.flag::after { display: none; }
.seo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.seo p { color: #cdd3ee; margin: 0 0 14px; }
.platforms { display: grid; gap: 10px; }
.platforms a { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; color: var(--text); font-family: "Stolzl", sans-serif; transition: border-color .25s, transform .25s; }
.platforms a::after { content: "→"; color: var(--accent); }
.platforms a:hover { text-decoration: none; border-color: rgba(111, 141, 255, .5); transform: translateX(4px); }
@media (max-width: 760px) { .seo { grid-template-columns: 1fr; } }

.seo-text { max-width: 820px; }
.seo-text p { color: #cdd3ee; margin: 0 0 14px; }
