@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 300 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 600; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --bg: #F7F6FB;
  --bg-2: #EFEDF8;
  --surface: #FFFFFF;
  --surface-2: #F3F1FA;
  --ink: #1B1440;
  --text: #1B1440;
  --muted: #6B6790;
  --border: rgba(27, 20, 64, .09);
  --border-strong: rgba(27, 20, 64, .16);
  --spark: #6A48F0;
  --spark-2: #9B7BFF;
  --mini: #F5A524;
  --primary-soft: #EEEAFE;
  --primary-text: #4F32C9;
  --success: #13865A;
  --success-soft: #E3F5EC;
  --danger: #C8344B;
  --live: #19B36B;
  --nav-bg: rgba(247, 246, 251, .72);
  --shadow: 0 1px 2px rgba(27, 20, 64, .05), 0 12px 40px -12px rgba(27, 20, 64, .18);
  --shadow-big: 0 2px 6px rgba(27, 20, 64, .06), 0 40px 100px -30px rgba(52, 30, 140, .45);
  --mark-ring: #1B1440;
  --mark-spark: #6A48F0;
  --mark-mini: #F5A524;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0920;
    --bg-2: #120E2B;
    --surface: #1C1740;
    --surface-2: #231D4D;
    --ink: #F5F3FF;
    --text: #F5F3FF;
    --muted: #A49FC8;
    --border: rgba(245, 243, 255, .08);
    --border-strong: rgba(245, 243, 255, .16);
    --spark: #A99BFF;
    --spark-2: #C9BEFF;
    --primary-soft: #2A2160;
    --primary-text: #C9BEFF;
    --success: #4FD39A;
    --success-soft: #133A2B;
    --danger: #FF7A8C;
    --nav-bg: rgba(12, 9, 32, .7);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 40px -12px rgba(0, 0, 0, .6);
    --shadow-big: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 100px -30px rgba(106, 72, 240, .45);
    --mark-ring: #F5F3FF;
    --mark-spark: #A99BFF;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 "Manrope", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
code { font: 600 .9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--primary-soft); color: var(--primary-text); padding: .1em .4em; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.05; font-weight: 800; }
h2 { font-size: clamp(38px, 6.4vw, 80px); }
h3 { font-size: 22px; letter-spacing: -.01em; line-height: 1.2; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.grad {
  background: linear-gradient(100deg, var(--spark) 0%, #B36BFF 45%, var(--mini) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { to { background-position: 100% 0; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font: 700 16px/1 "Manrope", sans-serif; text-decoration: none;
  transition: transform .25s var(--ease), background .2s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--spark); color: #fff; box-shadow: 0 8px 24px -8px rgba(106, 72, 240, .7); }
@media (prefers-color-scheme: dark) { .btn-primary { background: #6A48F0; } }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -10px rgba(106, 72, 240, .85); }
.btn-ghost { color: var(--primary-text); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-word { font: 800 19px/1 "Manrope", sans-serif; letter-spacing: -.02em; }
.brand-word em { font-family: "Fraunces", serif; font-style: italic; font-weight: 500; color: var(--spark); letter-spacing: 0; }
@media (max-width: 1180px) { .nav-links { display: none; } .lang { margin-left: auto; } }

/* ---------- Меню языков ---------- */
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted);
  transition: background .2s, color .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--primary-soft); color: var(--primary-text); }
.lang summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--spark) 45%, transparent); outline-offset: 2px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 168px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; box-shadow: var(--shadow);
  animation: pop .2s var(--ease);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; font-weight: 600; }
.lang-menu a:hover { background: var(--primary-soft); color: var(--primary-text); }
.lang-menu a[aria-current] { color: var(--primary-text); }
.lang-menu a[aria-current]::after { content: " ✓"; }

.lang-suggest {
  position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px);
  padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); font-size: 14px; font-weight: 600;
  animation: rise .5s var(--ease);
}
.lang-suggest[hidden] { display: none; }
.lang-suggest .btn-primary { box-shadow: none; }
.lang-suggest-x { border: 0; background: transparent; color: inherit; opacity: .7; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 50%; }
.lang-suggest-x:hover { opacity: 1; }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }
.lang-suggest > span { flex: 1; }
@media (max-width: 600px) {
  .lang-suggest { left: 12px; right: 12px; bottom: 12px; transform: none; border-radius: 18px; max-width: none; animation-name: rise-m; }
  @keyframes rise-m { from { transform: translateY(20px); opacity: 0; } }
}

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2) { transition-delay: .06s; }
.bento .reveal:nth-child(3) { transition-delay: .12s; }
.bento .reveal:nth-child(4) { transition-delay: .04s; }
.bento .reveal:nth-child(5) { transition-delay: .1s; }
.bento .reveal:nth-child(6) { transition-delay: .16s; }

section { padding: 120px 20px; position: relative; }
.section-head { max-width: 860px; margin: 0 auto 64px; text-align: center; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--spark); margin-bottom: 16px; letter-spacing: .01em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 680px; margin: 24px auto 0; line-height: 1.5; }

/* ---------- Первый экран ---------- */
.hero { padding-top: 140px; padding-bottom: 40px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 45% at 30% 30%, rgba(106, 72, 240, .22), transparent 70%),
    radial-gradient(35% 40% at 72% 38%, rgba(245, 165, 36, .16), transparent 70%);
  filter: blur(20px);
}
.hero-title { font-size: clamp(48px, 9.5vw, 124px); line-height: .98; letter-spacing: -.045em; max-width: 1000px; margin: 0 auto; }
.hero-lead { font-size: clamp(18px, 2.2vw, 23px); color: var(--muted); max-width: 640px; margin: 28px auto 0; }
.hero-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero .reveal:nth-child(3) { transition-delay: .08s; }
.hero .reveal:nth-child(4) { transition-delay: .16s; }
.hero .reveal:nth-child(5) { transition-delay: .24s; }

.hero-sparks { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.float { position: absolute; width: 22px; height: 22px; color: var(--spark); opacity: .5; animation: float 9s ease-in-out infinite; }
.float.s1 { left: 9%; top: 24%; }
.float.s2 { right: 11%; top: 18%; width: 14px; height: 14px; color: var(--mini); animation-delay: -3s; }
.float.s3 { left: 16%; top: 56%; width: 12px; height: 12px; color: var(--mini); animation-delay: -5s; }
.float.s4 { right: 14%; top: 50%; width: 28px; height: 28px; animation-delay: -1.5s; }
@keyframes float { 50% { transform: translateY(-18px) rotate(45deg) scale(1.1); } }

/* Макет приложения. --p (0…1) задаёт скрипт по прокрутке. */
.device-stage { --p: 0; perspective: 1600px; max-width: 1040px; margin: 72px auto 0; }
.device {
  transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(.86 + var(--p) * .14)) translateY(calc((1 - var(--p)) * 40px));
  transform-origin: 50% 0;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: var(--shadow-big); overflow: hidden; text-align: left; will-change: transform;
}
.device-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.dot + .dot { background: #FEBC2E; } .dot + .dot + .dot { background: #28C840; }
.device-url { margin: 0 auto; font-size: 12px; color: var(--muted); background: var(--surface); padding: 3px 40px; border-radius: 7px; border: 1px solid var(--border); }
.app-head { display: flex; align-items: center; gap: 22px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 13px; }
.brand.mini .brand-word { font-size: 15px; }
.app-nav { display: flex; gap: 16px; color: var(--muted); }
.app-nav b { color: var(--text); }
.app-timer { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; background: var(--primary-soft); color: var(--primary-text); padding: 6px 8px 6px 14px; border-radius: 999px; font-weight: 600; }
.app-timer b { font-variant-numeric: tabular-nums; }
.app-pause { width: 22px; height: 22px; border-radius: 50%; background: #6A48F0; position: relative; }
.app-pause::before, .app-pause::after { content: ""; position: absolute; top: 7px; width: 2.5px; height: 8px; background: #fff; border-radius: 2px; left: 8px; }
.app-pause::after { left: 11.5px; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; background: var(--bg-2); }
.col { background: color-mix(in srgb, var(--surface) 55%, transparent); border: 1px solid var(--border); border-radius: 14px; padding: 10px; display: grid; gap: 10px; align-content: start; min-height: 260px; }
.col-h { font-size: 13px; font-weight: 700; display: flex; justify-content: space-between; padding: 2px 4px; }
.col-h span { color: var(--muted); font-weight: 600; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 4px; font-size: 13px; box-shadow: 0 1px 2px rgba(27, 20, 64, .04); }
.card small { color: var(--muted); font-weight: 700; font-size: 11px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.card .t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.card.running { border-color: color-mix(in srgb, var(--spark) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--spark) 14%, transparent); }
.run { display: flex; align-items: center; gap: 7px; color: var(--success); font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.run b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.pill { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-text); }
.pill.ok { background: var(--success-soft); color: var(--success); }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(25, 179, 107, .55); } 100% { box-shadow: 0 0 0 9px rgba(25, 179, 107, 0); } }
@media (max-width: 760px) {
  .board { grid-template-columns: 1fr; }
  .board .col:not(:nth-child(2)) { display: none; }
  .col { min-height: 0; }
  .app-nav, .app-timer-title, .device-url { display: none; }
}

/* ---------- Манифест ---------- */
.statement { padding: 160px 20px; }
.statement-text { max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; }
.statement-text .w { color: var(--text); opacity: .14; transition: opacity .35s; }
.statement-text .w.on { opacity: 1; }

/* ---------- Живой таймер ---------- */
.try { background: var(--bg-2); }
.playground { max-width: 920px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 22px; box-shadow: var(--shadow); }
.pg-top { display: flex; align-items: center; gap: 16px; min-height: 44px; flex-wrap: wrap; margin-bottom: 18px; }
.pg-timer { display: inline-flex; align-items: center; gap: 10px; background: var(--primary-soft); color: var(--primary-text); padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; animation: pop .4s var(--ease); }
.pg-timer b { font-variant-numeric: tabular-nums; }
.pg-timer[hidden] { display: none; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.pg-rate { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pg-rate output { color: var(--text); font-weight: 800; min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }
.pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pg-card { position: relative; border: 1px solid var(--border); border-radius: 18px; padding: 16px; background: var(--surface); display: grid; gap: 6px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.pg-card.on { border-color: color-mix(in srgb, var(--spark) 50%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 14%, transparent); transform: translateY(-3px); }
.pg-card small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pg-card b { font-size: 16px; padding-right: 44px; }
.pg-card .pg-time { font: 800 26px/1 "Manrope", sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-top: 8px; }
.pg-card .pg-money { color: var(--success); font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-play {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #6A48F0; color: #fff; display: grid; place-items: center; transition: transform .2s var(--ease), background .2s;
}
.pg-play:hover { transform: scale(1.08); }
.pg-play:active { transform: scale(.94); }
.pg-play:focus-visible { outline: 3px solid color-mix(in srgb, var(--spark) 50%, transparent); outline-offset: 2px; }
.pg-play svg { width: 16px; height: 16px; }
.pg-total { display: flex; gap: 12px; margin-top: 18px; }
.pg-total > div { flex: 1; background: var(--surface-2); border-radius: 16px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.pg-total span { color: var(--muted); font-weight: 600; font-size: 14px; }
.pg-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.money { color: var(--success); }
@media (max-width: 760px) {
  .pg-cards { grid-template-columns: 1fr; }
  .pg-rate { margin-left: 0; width: 100%; }
  .pg-rate input { flex: 1; }
  .pg-total { flex-direction: column; }
}

input[type=range] { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(to right, var(--spark) var(--fill, 50%), var(--border-strong) var(--fill, 50%)); outline: none; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 12px rgba(27, 20, 64, .25); transition: transform .15s; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 4px 12px rgba(27, 20, 64, .25); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 35%, transparent); }

/* ---------- История ---------- */
.story-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .5s; }
.step.active { opacity: 1; }
.step-n { font: 500 italic 20px/1 "Fraunces", serif; color: var(--spark); margin-bottom: 14px; }
.step h3 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
.step p { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 460px; }
.story-sticky { position: sticky; top: calc(50vh - 220px); height: 440px; align-self: start; }
.screen { position: relative; height: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; box-shadow: var(--shadow-big); overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 80% 0%, color-mix(in srgb, var(--spark) 14%, transparent), transparent 70%); transition: background 1s; }
.screen[data-screen="3"]::before { background: radial-gradient(70% 60% at 80% 0%, color-mix(in srgb, var(--success) 16%, transparent), transparent 70%); }
.scene { position: absolute; inset: 0; padding: 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.screen[data-screen="1"] .scene-1, .screen[data-screen="2"] .scene-2, .screen[data-screen="3"] .scene-3 { opacity: 1; transform: none; }
.s-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; display: grid; gap: 4px; position: relative; }
.s-card.running { border-color: color-mix(in srgb, var(--spark) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--spark) 12%, transparent); }
.s-card small { color: var(--muted); font-weight: 700; font-size: 12px; }
.s-money { position: absolute; right: 16px; bottom: 16px; color: var(--success); font-weight: 800; font-variant-numeric: tabular-nums; }
.s-money.muted { color: var(--muted); }
.idle-toast { display: flex; gap: 12px; align-items: center; background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 16px; margin-top: 10px; transform: translateY(20px); opacity: 0; transition: all .6s var(--ease) .5s; }
.screen[data-screen="1"] .idle-toast { transform: none; opacity: 1; }
.idle-toast b { display: block; font-size: 15px; }
.idle-toast span { font-size: 13px; opacity: .75; }
.idle-ico { width: 34px; height: 34px; border-radius: 50%; background: var(--mini); color: #1B1440; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex: none; }
.r-head { display: flex; justify-content: space-between; align-items: baseline; }
.r-head b { font-size: 20px; }
.r-head span { color: var(--muted); font-size: 13px; }
.r-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-sum > div { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; }
.r-sum span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.r-sum b { font-size: 20px; }
.r-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 14px; align-items: center; }
.r-reject { border: 1px dashed color-mix(in srgb, var(--danger) 50%, transparent); border-radius: 14px; padding: 12px; font-size: 13px; }
.r-reject > span { color: var(--danger); font-weight: 700; }
.r-reject p { background: var(--surface-2); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.r-reject em { font-style: normal; display: inline-block; background: var(--danger); color: #fff; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--text); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.scene-3 { align-items: stretch; text-align: center; }
.pay-check { width: 84px; height: 84px; margin: 0 auto 4px; }
.pay-check svg { width: 100%; height: 100%; fill: none; stroke: var(--success); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.pay-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; transition: stroke-dashoffset .8s var(--ease) .2s; }
.pay-check path { stroke-dasharray: 40; stroke-dashoffset: 40; transition: stroke-dashoffset .5s var(--ease) .8s; }
.screen[data-screen="3"] .pay-check circle, .screen[data-screen="3"] .pay-check path { stroke-dashoffset: 0; }
.pay-title { font-size: 22px; margin-bottom: 8px; }
.pay-note { color: var(--muted); font-size: 13px; margin-top: 8px; }
.screen-dots { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.screen-dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--border-strong); transition: width .4s var(--ease), background .4s; }
.screen-dots i.on { width: 26px; background: var(--spark); }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-sticky { order: -1; top: 70px; height: 380px; z-index: 2; }
  .step { min-height: 0; padding: 48px 0; opacity: 1; }
  .story-steps { position: relative; z-index: 1; }
  .scene { padding: 22px; }
}

/* ---------- Плитки ---------- */
.bento { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; min-height: 260px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .5s var(--ease), box-shadow .4s, opacity .9s var(--ease);
  transform-style: preserve-3d;
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx) var(--my), color-mix(in srgb, var(--spark) 14%, transparent), transparent 60%);
}
.tile:hover::before { opacity: 1; }
.tile:hover { box-shadow: var(--shadow); }
.tile-wide { grid-column: span 2; }
.tile p { color: var(--muted); }
.tile-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-text); display: grid; place-items: center; font-size: 22px; font-weight: 800; margin-bottom: auto; }
.tile h3 { margin-top: 24px; }
.offline-demo { display: flex; align-items: center; gap: 16px; margin-top: 10px; font-size: 26px; color: var(--muted); }
.offline-demo .queue { display: flex; gap: 8px; flex: 1; max-width: 260px; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 6px, transparent 6px 12px); position: relative; align-items: center; }
.offline-demo .queue i { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--spark); animation: travel 3.6s var(--ease) infinite; right: 0; }
.offline-demo .queue i:nth-child(2) { animation-delay: .25s; }
.offline-demo .queue i:nth-child(3) { animation-delay: .5s; }
@keyframes travel { 0%, 30% { right: 0; opacity: 0; } 35% { opacity: 1; } 75% { right: calc(100% - 10px); opacity: 1; } 85%, 100% { right: calc(100% - 10px); opacity: 0; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips span { padding: 7px 14px; border-radius: 999px; background: var(--c); color: #fff; font-size: 13px; font-weight: 700; }
@media (max-width: 860px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-wide { grid-column: auto; } .tile { min-height: 0; } }

/* ---------- Калькулятор ---------- */
.calc-box { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); display: grid; gap: 28px; }
.calc-box label { display: grid; gap: 14px; }
.calc-label { display: flex; justify-content: space-between; font-weight: 600; color: var(--muted); }
.calc-label output { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.calc-result { display: grid; grid-template-columns: 1fr 1.4fr; gap: 14px; margin-top: 4px; }
.calc-result > div { background: var(--surface-2); border-radius: 20px; padding: 20px 22px; }
.calc-result span { display: block; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.calc-result b { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-result .big b { font-size: clamp(34px, 5vw, 52px); }
.calc-note { color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 600px) { .calc-result { grid-template-columns: 1fr; } .calc-box { padding: 24px; } }

/* ---------- Платформы и финал ---------- */
.platforms, .final { text-align: center; }
.platforms { background: var(--bg-2); }
.platform-icon { width: 160px; margin: 0 auto 36px; filter: drop-shadow(0 30px 40px rgba(52, 30, 140, .35)); }
.platform-icon img { width: 160px; height: 160px; }
.platform-icon.in img { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-2deg); } }
.final { padding: 160px 20px; overflow: hidden; }
.final-mark { margin: 0 auto 32px; animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.final h2 { font-size: clamp(48px, 8vw, 104px); }

.footer { border-top: 1px solid var(--border); padding: 28px 20px 40px; font-size: 14px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-right: auto; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.footer .brand-word { font-size: 16px; }
.footer-langs { max-width: 1120px; margin: 20px auto 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.footer-langs a { color: var(--muted); text-decoration: none; }
.footer-langs a:hover, .footer-langs a[aria-current] { color: var(--text); }

/* ---------- Вопросы ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--border-strong); }
.faq-item { border-bottom: 1px solid var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 4px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
.faq-item summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary-text); font-size: 20px; font-weight: 600; transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--spark) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
.faq-item p { color: var(--muted); padding: 0 4px 24px; max-width: 680px; animation: pop .3s var(--ease); }

/* ---------- Японский и китайский ---------- */
:lang(ja) body, body:lang(ja) { font-family: "Manrope", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif; }
:lang(zh) body, body:lang(zh) { font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh) h1, html:lang(zh) h2 { letter-spacing: -.01em; line-height: 1.15; word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ja), html:lang(zh) { line-break: strict; }
html:lang(ja) .statement-text, html:lang(zh) .statement-text { letter-spacing: 0; line-height: 1.35; }
h1, h2 { text-wrap: balance; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .device { transform: none; }
  .statement-text .w { opacity: 1; }
  .lang-suggest { transform: translateX(-50%); }
}

/* ---------- Документы: политика, cookie, условия, загрузка ---------- */
.doc-nav { position: sticky; }
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; line-height: 1.65; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 8px 0 6px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--primary-text); }
.doc code { font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--primary-soft); }
.doc-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; display: block; overflow-x: auto; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc-table th { font-weight: 700; }
.download-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 24px 0 8px; }

/* ---------- Уведомление о cookie ---------- */
.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; margin: 0 auto; max-width: 640px;
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 18px; font-size: 14px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 18px 48px -18px rgba(27, 20, 64, .45);
}
.cookie-note[hidden] { display: none; }
.cookie-note a { color: var(--primary-text); }
.cookie-note .btn { flex: none; }
@media (max-width: 520px) { .cookie-note { flex-direction: column; align-items: stretch; text-align: left; } }
.footer-legal { flex-basis: 100%; margin: 0; font-size: 13px; }
.footer-legal a { color: inherit; }
.doc-nav-link { margin-left: auto; margin-right: 16px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.doc-nav-link:hover { color: var(--text); }
.price-note { font-size: 14px; }

/* ---------- Призывы: кнопки, полосы после секций ---------- */
.btn-outline { color: var(--primary-text); box-shadow: inset 0 0 0 1.5px var(--border-strong); background: var(--surface); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--spark); transform: translateY(-1px); }
.btn-big { padding: 17px 32px; font-size: 17px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-note a { color: var(--primary-text); font-weight: 600; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }
.nav-login { font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.nav-login:hover { color: var(--text); }
@media (max-width: 520px) { .nav-inner { gap: 12px; } .nav-signup { padding: 8px 12px; font-size: 13px; } }
@media (max-width: 400px) { .nav-login { display: none; } }

.cta-strip {
  max-width: 980px; margin: 72px auto 0; padding: 22px 22px 22px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.cta-strip p { flex: 1 1 320px; font-size: 18px; font-weight: 600; }
.cta-strip-btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-strip { padding: 20px; } .cta-strip-btns, .cta-strip-btns .btn { width: 100%; justify-content: center; } }

/* ---------- Тарифы ---------- */
.pricing { background: var(--bg-2); }
.period-switch {
  display: flex; width: max-content; max-width: 100%; margin: -24px auto 40px; padding: 5px; gap: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
}
.period-switch button {
  border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; background: none; color: var(--muted);
  font: 700 15px/1 "Manrope", sans-serif; display: inline-flex; align-items: center; gap: 8px;
}
.period-switch button[aria-pressed="true"] { background: var(--spark); color: #fff; }
.period-switch em { font-style: normal; font-size: 12px; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--success) 16%, transparent); color: var(--success); }
.period-switch button[aria-pressed="true"] em { background: rgba(255, 255, 255, .22); color: #fff; }
.period-switch button:focus-visible { outline: 3px solid color-mix(in srgb, var(--spark) 45%, transparent); outline-offset: 2px; }
.plans { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.plan-popular { border: 2px solid var(--spark); box-shadow: 0 24px 60px -24px rgba(106, 72, 240, .55); }
.plan-badge {
  position: absolute; top: -13px; left: 22px; padding: 5px 12px; border-radius: 999px;
  background: var(--spark); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.plan h3 { font-size: 22px; }
.plan-desc { color: var(--muted); font-size: 14px; min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.plan-price b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-cta { justify-content: center; }
.plan-features { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.plan-features li { position: relative; padding: 5px 0 5px 24px; }
.plan-features li::before { content: "✓"; position: absolute; left: 2px; color: var(--success); font-weight: 800; }
.plan-ent {
  max-width: 1120px; margin: 16px auto 0; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
}
.plan-ent h3 { font-size: 19px; margin-bottom: 4px; }
.plan-ent p { color: var(--muted); font-size: 15px; max-width: 720px; }
.plan-note { max-width: 1120px; margin: 20px auto 0; text-align: center; font-size: 14px; }
.plan-note a { color: var(--primary-text); }

/* ---------- Согласие на cookie ---------- */
.cookie-btns { display: flex; gap: 6px; flex: none; }
@media (max-width: 520px) { .cookie-btns { justify-content: flex-end; } }
.link-btn { border: 0; padding: 0; background: none; color: var(--primary-text); font: inherit; text-decoration: underline; cursor: pointer; }
