:root {
  --ink: #150e28;
  --ink-2: #1e1640;
  --ink-3: #2a2052;
  --line: rgba(255, 255, 255, .08);
  --text: #f2efff;
  --muted: #a8a3c7;
  --coral: #ff5a36;
  --coral-2: #ff8e72;
  --mint: #7cf29c;
  --sun: #ffc94d;
  --violet: #8e94ff;
  --pink: #ff6fb5;
  --sky: #4dd2ff;
  --r: 22px;
  --r-s: 14px;
  --head: 'Comfortaa', system-ui, sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 90% -10%, rgba(142, 148, 255, .20), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(255, 90, 54, .14), transparent 60%),
    var(--ink);
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--ink-3); padding: .15em .45em; border-radius: 6px; word-break: break-all; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 32px); }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .9; }
.top, main, .foot { position: relative; z-index: 1; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(21, 14, 40, .72); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 46px; height: 46px; border-radius: 13px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 600; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--line); }
.nav__dl { color: var(--text) !important; background: var(--ink-3); }
.nav .lang { border: 1px solid var(--line); margin-left: 6px; font-family: var(--head); font-size: .85rem; letter-spacing: .05em; }
@media (max-width: 720px) { .nav a:not(.nav__dl):not(.lang) { display: none; } }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn--primary { color: #2a0c0c; background: linear-gradient(135deg, var(--coral), var(--coral-2)); box-shadow: 0 10px 30px rgba(255, 90, 54, .35); }
.btn--primary:hover { box-shadow: 0 14px 40px rgba(255, 90, 54, .5); transform: translateY(-2px); }
.btn--ghost { color: var(--text); background: var(--ink-3); border: 1px solid var(--line); }
.btn--ghost:hover { background: #2f2b58; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(124, 242, 156, .12); color: var(--mint); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }

/* Герой */
.hero { padding: 56px 0 24px; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero__title { font-size: clamp(3.2rem, 8vw, 6rem); margin: 18px 0 14px; letter-spacing: -.03em; }
.hero__bang { color: var(--coral); display: inline-block; transform: rotate(8deg); margin-left: .05em; }
.hero__sub { font-size: 1.25rem; color: var(--muted); max-width: 32em; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.hero__note { color: var(--muted); font-size: .95rem; }
.hero__phone { display: flex; justify-content: center; }
@media (max-width: 860px) { .hero__in { grid-template-columns: 1fr; } .hero__phone { order: 2; } .hero { padding-top: 36px; } }

.phone { position: relative; width: min(300px, 80vw); aspect-ratio: 9 / 19; background: #000; border-radius: 42px; padding: 12px; box-shadow: var(--shadow), 0 0 0 2px #2b2850 inset; transform: rotate(-4deg); }
.phone__notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; background: #000; border-radius: 999px; z-index: 2; }
.phone__img { width: 100%; height: 100%; object-fit: cover; border-radius: 32px; }
.mock { height: 100%; border-radius: 32px; background: linear-gradient(170deg, #2e2258, #150e28 60%); padding: 56px 18px 22px; display: flex; flex-direction: column; color: var(--text); overflow: hidden; }
.mock__top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; color: var(--muted); }
.mock__score { font-family: var(--head); color: var(--sun); font-size: 1.2rem; }
.mock__timer { height: 8px; border-radius: 999px; background: var(--ink-3); margin: 14px 0 0; overflow: hidden; }
.mock__timer i { display: block; height: 100%; width: 62%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--sun)); animation: timer 9s linear infinite; }
@keyframes timer { from { width: 100%; } to { width: 0; } }
.mock__word { flex: 1; display: grid; place-items: center; font-weight: 900; font-size: clamp(1.9rem, 7vw, 2.4rem); text-align: center; letter-spacing: -.02em; }
.mock__hint { text-align: center; color: var(--muted); font-size: .8rem; margin-bottom: 14px; }
.mock__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock__btns span { padding: 14px 0; border-radius: 16px; text-align: center; font-family: var(--head); font-weight: 700; font-size: .9rem; }
.mock__skip { background: var(--ink-3); color: var(--muted); }
.mock__ok { background: var(--coral); color: #2a0c0c; }

/* Сетки и карточки */
.grid { display: grid; gap: 18px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .16); }
.card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.features { padding: 40px 0 10px; }
.card__icon { width: 52px; height: 52px; border-radius: 16px; margin-bottom: 18px; position: relative; }
.card__icon::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background-size: 28px; background-position: center; background-repeat: no-repeat; }
.card__icon--f1 { background: rgba(255, 201, 77, .16); }
.card__icon--f1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffc94d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v10H4V12'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.card__icon--f2 { background: rgba(142, 148, 255, .18); }
.card__icon--f2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234dd2ff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l1.8 4.6L18.5 9l-4.7 1.4L12 15l-1.8-4.6L5.5 9l4.7-1.4z'/%3E%3Cpath d='M5 17l.8 2 2 .8-2 .8L5 22l-.8-1.4-2-.8 2-.8z'/%3E%3Cpath d='M19 15l.6 1.5 1.5.6-1.5.6L19 19l-.6-1.3-1.5-.6 1.5-.6z'/%3E%3C/svg%3E"); }
.card__icon--f3 { background: rgba(255, 90, 54, .16); }
.card__icon--f3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a36' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Crect x='13' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E"); }
.card__icon--f4 { background: rgba(124, 242, 156, .14); }
.card__icon--f4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cf29c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3a14 14 0 010 18'/%3E%3Cpath d='M12 3a14 14 0 000 18'/%3E%3C/svg%3E"); }

.section { padding: 64px 0; scroll-margin-top: 64px; }
.section--alt { background: rgba(255, 255, 255, .025); border-block: 1px solid var(--line); }
.section__title { font-size: clamp(1.9rem, 4vw, 2.6rem); text-align: center; }
.section__sub { text-align: center; color: var(--muted); font-size: 1.1rem; margin: -6px auto 34px; max-width: 36em; }

/* Игры */
.card--game { position: relative; overflow: hidden; }
.card--game::after { content: ''; position: absolute; inset: auto -30% -40% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(10px); }
.card--game.is-soon { opacity: .78; }
.badge { position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.badge--now { background: rgba(124, 242, 156, .16); color: var(--mint); }
.badge--soon { background: var(--ink-3); color: var(--muted); }
.game__glyph { width: 58px; height: 58px; border-radius: 18px; background: var(--accent); margin-bottom: 18px; display: grid; place-items: center; position: relative; }
.game__glyph::before { content: ''; width: 30px; height: 30px; background: #1b1838; mask: center / contain no-repeat; -webkit-mask: center / contain no-repeat; }
.game__glyph--alias::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 012 2v9a2 2 0 01-2 2H9l-5 4v-4a2 2 0 01-2-2V6a2 2 0 012-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4h16a2 2 0 012 2v9a2 2 0 01-2 2H9l-5 4v-4a2 2 0 01-2-2V6a2 2 0 012-2z'/%3E%3C/svg%3E"); }
.game__glyph--croc::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M9 9h6l5 5-2 2-3-3v9h-2v-6h-2v6H9v-9l-3 3-2-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='5' r='3'/%3E%3Cpath d='M9 9h6l5 5-2 2-3-3v9h-2v-6h-2v6H9v-9l-3 3-2-2z'/%3E%3C/svg%3E"); }
.game__glyph--twist::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M2 9c2.5-4 5-4 7.5 0s5 4 7.5 0 3.5-3 5-1'/%3E%3Cpath d='M2 17c2.5-4 5-4 7.5 0s5 4 7.5 0 3.5-3 5-1'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M2 9c2.5-4 5-4 7.5 0s5 4 7.5 0 3.5-3 5-1'/%3E%3Cpath d='M2 17c2.5-4 5-4 7.5 0s5 4 7.5 0 3.5-3 5-1'/%3E%3C/svg%3E"); }
.game__glyph--quiz::before { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7h3a4 4 0 118 0c0 2.2-2 3-3 4-.7.7-1 1.5-1 3h3c0-.8.3-1.3 1-2 1.5-1.5 3-2.8 3-5a7 7 0 00-7-7zm-1.5 16v3h3v-3z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 00-7 7h3a4 4 0 118 0c0 2.2-2 3-3 4-.7.7-1 1.5-1 3h3c0-.8.3-1.3 1-2 1.5-1.5 3-2.8 3-5a7 7 0 00-7-7zm-1.5 16v3h3v-3z'/%3E%3C/svg%3E"); }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 10px 0 0 70px; }
.step__n { position: absolute; left: 0; top: 0; width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.4rem; color: #2a0c0c; background: linear-gradient(135deg, var(--sun), var(--coral)); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }

/* Темы */
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .themes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .themes { grid-template-columns: 1fr; } }
.theme { border-radius: var(--r); padding: 24px; min-height: 150px; border: 1px solid var(--line); background: var(--ink-2); position: relative; overflow: hidden; }
.theme::before { content: ''; position: absolute; inset: 0; opacity: .55; background: radial-gradient(120% 80% at 100% 0%, var(--c, var(--violet)) 0%, transparent 60%); mix-blend-mode: screen; filter: saturate(.8); }
.theme > * { position: relative; }
.theme h3 { font-size: 1.1rem; margin-bottom: .35em; }
.theme p { margin: 0; color: var(--muted); font-size: .95rem; }
.theme--core { --c: rgba(255, 90, 54, .6); }
.theme--gen { --c: rgba(142, 148, 255, .75); }
.theme--family { --c: rgba(255, 201, 77, .55); }
.theme--pop { --c: rgba(255, 142, 114, .6); }
.theme--world { --c: rgba(124, 242, 156, .55); }
.theme--geek { --c: rgba(170, 120, 255, .6); }

/* Скачать */
.section--download { background: linear-gradient(180deg, rgba(255, 90, 54, .08), transparent); }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.store { display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; min-width: 210px; border-radius: 16px; background: #0d0c1c; border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; transition: transform .15s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .3); }
.store.is-soon { opacity: .5; cursor: default; }
.store.is-soon:hover { transform: none; border-color: rgba(255, 255, 255, .14); }
.store__logo { width: 34px; height: 34px; flex: none; background: center / contain no-repeat; }
.store__text { display: flex; flex-direction: column; line-height: 1.15; }
.store__text small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.store__text b { font-family: var(--head); font-size: 1.15rem; }
.store__logo--play { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2300d7fe' d='M3.6 2.3 13.2 12 3.6 21.7A2 2 0 0 1 3 20.3V3.7a2 2 0 0 1 .6-1.4z'/%3E%3Cpath fill='%2300f076' d='M3.6 2.3A2 2 0 0 1 5.7 2.2l11 6.3-3.5 3.5z'/%3E%3Cpath fill='%23ff3a44' d='M3.6 21.7A2 2 0 0 0 5.7 21.8l11-6.3-3.5-3.5z'/%3E%3Cpath fill='%23ffd500' d='M16.7 8.5 20.9 10.9c1.5.8 1.5 1.4 0 2.2l-4.2 2.4L13.2 12z'/%3E%3C/svg%3E"); }
.store__logo--rustore { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' fill='%230077ff'/%3E%3Cpath d='M7 17V7h4.5a3 3 0 0 1 .9 5.9L15 17h-2.4l-2.3-3.8H9V17zm2-5.6h2.4a1.2 1.2 0 0 0 0-2.4H9z' fill='%23fff'/%3E%3C/svg%3E"); }
.store__logo--appstore { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f2efff'%3E%3Cpath d='M16.4 12.6c0-2.2 1.8-3.3 1.9-3.3-1-1.5-2.6-1.7-3.2-1.7-1.4-.1-2.7.8-3.4.8-.7 0-1.8-.8-2.9-.8-1.5 0-2.9.9-3.7 2.2-1.6 2.7-.4 6.8 1.1 9 .8 1.1 1.7 2.3 2.8 2.3 1.1 0 1.6-.7 2.9-.7 1.4 0 1.8.7 3 .7s2-1.1 2.7-2.2c.9-1.3 1.2-2.5 1.2-2.6 0 0-2.4-.9-2.4-3.7zM14.2 6.1c.6-.7 1-1.8.9-2.8-.9 0-2 .6-2.6 1.4-.6.6-1.1 1.7-.9 2.7 1 .1 2-.5 2.6-1.3z'/%3E%3C/svg%3E"); }

/* FAQ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-family: var(--head); font-weight: 700; font-size: 1.1rem; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); color: var(--coral); font-weight: 900; transition: transform .2s; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--muted); margin: -6px 0 18px; }

/* Документ (политика) */
.doc { padding: 48px 0 72px; }
.doc__back { color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 20px; }
.doc__back:hover { color: var(--text); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.doc__date { color: var(--muted); margin-bottom: 2em; }
.doc h2 { font-size: 1.45rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.6em; font-family: var(--body); font-weight: 800; }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: .5em; }
.doc a { color: var(--mint); }

/* 404 */
.nf { padding: 90px 0; text-align: center; }
.nf__code { font-family: var(--head); font-size: clamp(5rem, 20vw, 9rem); font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--coral), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); margin-bottom: 1.6em; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 36px 0 40px; margin-top: 20px; background: rgba(0, 0, 0, .25); }
.foot__in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; }
.foot__brand img { border-radius: 8px; }
.foot__brand small { color: var(--muted); font-family: var(--body); font-weight: 400; margin-left: 8px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot__nav a:hover { color: var(--text); }
.foot__legal { grid-column: 1 / -1; color: #7d78a0; font-size: .85rem; margin: 0; }
@media (max-width: 720px) { .foot__in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mock__timer i { animation: none; }
  #confetti { display: none; }
}
