/* «Пропуск» — сайт сервиса. Тёмная тема: глубокий фиолетовый, золото билета.
 * Движение — в motion.js: классы .mo/.in, заголовки по словам, наклон карточек.
 * «Уменьшить движение» в системе выключает всё в конце файла. */

:root {
  --bg: #0b0820;
  --bg-2: #120d33;
  --ink: #f3f0ff;
  --ink-soft: #c9c2ec;
  --muted: #9089b8;
  --line: rgb(255 255 255 / .09);
  --glass: rgb(255 255 255 / .045);
  --glass-hi: rgb(255 255 255 / .08);
  --violet: #6d3cff;
  --violet-2: #9a6bff;
  --indigo: #2a1b6b;
  --gold: #ffc94a;
  --gold-2: #ffa928;
  --ok: #4fe3a1;
  --r: 22px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --f-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
/* Горизонтальный вылет режем на main, не на body: в Safari на iPhone overflow на body не работает */
main { overflow-x: clip; position: relative; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* Мягкая смена страниц вместо белой вспышки */
@view-transition { navigation: auto; }

/* ── Фон: полярное сияние и сетка ───────────────────── */
.aurora { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.aurora i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(90px); opacity: .55; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: radial-gradient(circle, #6d3cff, transparent 65%); left: -15vmax; top: -20vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, #2b6bff, transparent 65%); right: -20vmax; top: 10vh; animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, #ff9f2b, transparent 60%); left: 20vw; bottom: -35vmax; opacity: .28; animation-duration: 38s; animation-delay: -14s; }
@keyframes drift {
  0% { translate: 0 0; scale: 1; }
  50% { translate: 6vw 4vh; scale: 1.12; }
  100% { translate: -4vw 8vh; scale: .95; }
}
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}

/* ── Шапка ──────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  background: rgb(11 8 32 / .55);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background .4s;
}
.top.scrolled { border-bottom-color: var(--line); background: rgb(11 8 32 / .78); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 19px/1 var(--f-head); letter-spacing: -.01em; }
.logo img { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 20px -6px rgb(255 201 74 / .5); }
.nav nav { display: flex; gap: 6px; align-items: center; }
.nav nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .25s, background .25s; }
.nav nav a:hover { color: var(--ink); background: var(--glass-hi); }
.nav .nav-cta { color: #1d1240; background: var(--gold); font-weight: 700; }
.nav .nav-cta:hover { color: #1d1240; background: #ffd66e; }
@media (max-width: 760px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ── Кнопки ─────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 16px; font-weight: 700; font-size: 16px; text-decoration: none;
  color: #1d1240; background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 10px 40px -10px rgb(255 185 60 / .65), inset 0 1px 0 rgb(255 255 255 / .5);
  transition: translate .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden; isolation: isolate;
}
.btn::after { /* блик пробегает по кнопке */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .55) 50%, transparent 70%);
  translate: -120% 0; animation: shine 4.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { translate: -120% 0; } 85%, 100% { translate: 120% 0; } }
.btn:hover { translate: 0 -2px; box-shadow: 0 16px 50px -10px rgb(255 185 60 / .8), inset 0 1px 0 rgb(255 255 255 / .5); }
.btn.ghost { color: var(--ink); background: var(--glass-hi); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost::after { display: none; }
.btn svg { width: 18px; height: 18px; }

/* ── Первый экран ───────────────────────────────────── */
/* только вертикальные отступы: боковые поля даёт .wrap */
.hero { display: grid; gap: 48px; align-items: center; padding-block: 48px 72px; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.1fr .9fr; padding-block: 72px 110px; } }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; margin-bottom: 22px;
}
.badge b { background: var(--violet); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.hero h1 {
  font: 600 clamp(32px, 4.6vw, 54px)/1.08 var(--f-head); letter-spacing: -.035em; margin: 0 0 22px; text-wrap: balance;
}
.grad {
  background: linear-gradient(100deg, var(--gold) 0%, #ffe39a 40%, var(--violet-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: grad 8s ease-in-out infinite alternate;
}
@keyframes grad { to { background-position: 100% 0; } }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-soft); max-width: 560px; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 12px var(--ok); }

/* ── Телефон с живым чатом ──────────────────────────── */
.phone-wrap { position: relative; display: grid; place-items: center; }
.phone-wrap::before { /* свечение под телефоном */
  content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(109 60 255 / .55), transparent 65%); filter: blur(40px);
}
.phone {
  position: relative; width: min(340px, 86vw); aspect-ratio: 9 / 18.5; border-radius: 46px; padding: 12px;
  background: linear-gradient(160deg, #2b2357, #120d2e);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .12), 0 40px 90px -20px rgb(0 0 0 / .8), inset 0 0 0 2px rgb(255 255 255 / .04);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -12px; } }
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #17123a, #0f0b28);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.chat-head img { width: 36px; height: 36px; border-radius: 50%; }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { color: var(--ok); font-size: 12px; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; overflow: hidden; }
.msg {
  max-width: 86%; padding: 10px 13px; border-radius: 16px 16px 16px 6px; font-size: 13.5px; line-height: 1.45;
  background: rgb(255 255 255 / .08); color: var(--ink);
  opacity: 0; translate: 0 14px; scale: .96; transform-origin: left bottom;
  transition: opacity .5s var(--ease), translate .6s var(--ease), scale .6s var(--pop);
}
.msg.me { align-self: flex-end; border-radius: 16px 16px 6px 16px; background: linear-gradient(135deg, var(--violet), #5226e0); transform-origin: right bottom; }
.msg.show { opacity: 1; translate: 0 0; scale: 1; }
.msg .kb { display: grid; gap: 6px; margin-top: 9px; }
.msg .kb span { display: block; text-align: center; padding: 8px; border-radius: 10px; background: rgb(255 255 255 / .1); font-weight: 600; font-size: 12.5px; }
.msg .kb span.hl { background: var(--gold); color: #1d1240; }
.msg.ok { background: rgb(79 227 161 / .14); box-shadow: inset 0 0 0 1px rgb(79 227 161 / .35); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { translate: 0 -4px; background: var(--ink); } }

/* Плавающие карточки вокруг телефона */
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: rgb(22 17 52 / .75); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; box-shadow: 0 20px 40px -18px rgb(0 0 0 / .7); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-size: 15px; }
.chip small { color: var(--muted); }
.chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; background: var(--glass-hi); }
.chip.c1 { left: -4%; top: 16%; animation-delay: -2s; }
.chip.c2 { right: -6%; top: 46%; animation-delay: -4s; }
.chip.c3 { left: -10%; bottom: 2%; animation-delay: -1s; }
/* На узком экране карточки закрывали бы кнопки в чате — оставляем одну, над диалогом */
@media (max-width: 520px) { .chip.c2, .chip.c3 { display: none; } .chip.c1 { left: 0; top: 9%; } .chip { font-size: 12px; padding: 9px 11px; } .chip .ic { width: 28px; height: 28px; font-size: 14px; } }

/* ── Бегущая строка ─────────────────────────────────── */
.marquee { border-block: 1px solid var(--line); background: rgb(255 255 255 / .02); overflow: hidden; padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 48px; width: max-content; animation: run 38s linear infinite; }
.marquee span { color: var(--ink-soft); font: 500 16px var(--f-head); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: var(--gold); }
@keyframes run { to { translate: -50% 0; } }

/* ── Секции ─────────────────────────────────────────── */
section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }
.eyebrow { color: var(--gold); font: 600 13px var(--f-head); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
h2 { font: 600 clamp(26px, 3.6vw, 42px)/1.12 var(--f-head); letter-spacing: -.03em; margin: 0 0 18px; text-wrap: balance; }
.sub { color: var(--ink-soft); font-size: 18px; max-width: 640px; margin: 0 0 44px; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.card {
  position: relative; padding: 26px; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--line);
}
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgb(109 60 255 / .35), rgb(109 60 255 / .1)); border: 1px solid rgb(154 107 255 / .35);
}
.card h3 { font: 600 19px/1.3 var(--f-head); margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
/* Подсветка, бегущая за курсором по карточке (координаты ставит motion.js) */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgb(154 107 255 / .18), transparent 45%);
}
.card:hover::before { opacity: 1; }

/* Три режима */
.modes { display: grid; gap: 16px; }
@media (min-width: 980px) { .modes { grid-template-columns: 1fr 1.15fr 1fr; align-items: stretch; } }
.mode { display: flex; flex-direction: column; gap: 4px; padding: 30px; }
.mode-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mode-top .ic { margin: 0; }
.pill { font: 600 12px var(--f-head); letter-spacing: .06em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px;
  background: rgb(154 107 255 / .16); color: var(--violet-2); border: 1px solid rgb(154 107 255 / .3); }
.pill.gold { background: rgb(255 201 74 / .14); color: var(--gold); border-color: rgb(255 201 74 / .35); }
.mode h3 { font-size: 21px; margin-bottom: 10px; }
.mode p { flex: 1; }
.hotmode { background:
  linear-gradient(180deg, #1c1547, #140f36) padding-box,
  linear-gradient(140deg, var(--gold), var(--violet-2) 60%, transparent) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 80px -30px rgb(255 185 60 / .35); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags span { font-size: 13px; padding: 6px 11px; border-radius: 999px; background: rgb(255 255 255 / .06); border: 1px solid var(--line); color: var(--ink-soft); }
.usecases { display: grid; gap: 14px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); }
.uc { padding: 20px 22px; border-radius: 18px; border: 1px dashed rgb(255 255 255 / .14); background: rgb(255 255 255 / .02); }
.uc b { font: 600 15.5px var(--f-head); display: block; margin-bottom: 6px; }
.uc p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* Шаги: линия прорисовывается при прокрутке */
.steps { position: relative; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 22px 24px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); counter-increment: s; }
.step::before {
  content: counter(s, decimal-leading-zero); display: block; margin-bottom: 16px;
  font: 700 34px/1 var(--f-head); background: linear-gradient(135deg, var(--gold), var(--violet-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font: 600 17px/1.35 var(--f-head); margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.steps-line { position: absolute; left: 0; right: 0; top: 50px; height: 2px; z-index: -1; display: none;
  background: linear-gradient(90deg, var(--gold), var(--violet-2), transparent); transform-origin: left; scale: 0 1; transition: scale 1.8s var(--ease) .2s; }
.steps.in .steps-line { scale: 1 1; }
@media (min-width: 900px) { .steps-line { display: block; } }

/* Схема денег */
.money { display: grid; gap: 28px; align-items: center; padding: 34px; border-radius: 30px;
  background: radial-gradient(120% 120% at 0% 0%, rgb(109 60 255 / .28), transparent 55%), linear-gradient(180deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--line); }
@media (min-width: 900px) { .money { grid-template-columns: 1fr 1.1fr; padding: 48px; } }
.flow { display: grid; gap: 14px; }
.node { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgb(11 8 32 / .6); border: 1px solid var(--line); }
.node .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--glass-hi); flex: none; }
.node b { display: block; font-family: var(--f-head); font-weight: 600; font-size: 15px; }
.node small { color: var(--muted); font-size: 13.5px; }
.node.gold { border-color: rgb(255 201 74 / .45); box-shadow: 0 0 40px -12px rgb(255 201 74 / .45); }
.arrow { position: relative; height: 34px; margin-left: 38px; width: 2px; overflow: hidden; background: var(--line); }
.arrow::after { content: ""; position: absolute; left: 0; width: 2px; height: 14px; border-radius: 2px; background: var(--gold); animation: pulse 1.6s linear infinite; }
@keyframes pulse { from { top: -14px; } to { top: 34px; } }
.side-note { display: flex; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 14px; }

/* Тарифы */
.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); align-items: stretch; }
.price { display: flex; flex-direction: column; }
.price .name { font: 600 16px var(--f-head); color: var(--ink-soft); }
.price .sum { font: 700 42px/1 var(--f-head); letter-spacing: -.03em; margin: 16px 0 6px; }
.price .sum small { display: block; margin-top: 8px; font: 500 14px var(--f-body); color: var(--muted); letter-spacing: 0; }
.price .limit { color: var(--ink); font-weight: 600; margin: 0 0 18px; }
.price ul { list-style: none; padding: 0; margin: 0 0 4px; display: grid; gap: 9px; color: var(--ink-soft); font-size: 15px; }
.price li { display: flex; gap: 9px; }
.price li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.price.hot { border-color: transparent; background:
  linear-gradient(180deg, #1c1547, #140f36) padding-box,
  linear-gradient(140deg, var(--gold), var(--violet-2) 60%, transparent) border-box;
  border: 1.5px solid transparent; box-shadow: 0 30px 80px -30px rgb(109 60 255 / .7); }
.price .tag { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--gold); color: #1d1240; }
.fineprint { color: var(--muted); font-size: 14.5px; margin-top: 22px; }

/* Вопросы */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); transition: background .3s, border-color .3s; }
.faq details[open] { background: var(--glass-hi); border-color: rgb(154 107 255 / .35); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font: 600 16.5px/1.4 var(--f-head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font: 400 26px var(--f-body); color: var(--gold); transition: rotate .35s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq .ans { padding: 0 22px 20px; color: var(--ink-soft); }
.faq .ans p { margin: 0; }
/* Плавное раскрытие там, где браузер умеет */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}

/* Финальный призыв */
.cta { text-align: center; padding: 64px 22px; border-radius: 32px; position: relative; overflow: hidden;
  background: radial-gradient(80% 140% at 50% 0%, rgb(109 60 255 / .55), transparent 60%), linear-gradient(180deg, #1a1342, #110c2c);
  border: 1px solid var(--line); }
.cta img { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 22px; box-shadow: 0 20px 60px -15px rgb(255 201 74 / .6); animation: float 6s ease-in-out infinite; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 30px; font-size: 18px; }

/* Подвал */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14.5px; margin-top: 40px; }
footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
footer b { color: var(--ink); font-family: var(--f-head); font-weight: 600; font-size: 14px; display: block; margin-bottom: 8px; }
footer a { color: var(--ink-soft); }

/* ── Документы: оферта, политика ────────────────────── */
.doc { background: #fbfaff; color: #2a2640; border-radius: 26px; padding: 40px; margin: 40px auto 20px; max-width: 900px; box-shadow: 0 40px 100px -40px rgb(0 0 0 / .8); }
.doc h1 { font: 600 clamp(24px, 3.4vw, 32px)/1.2 var(--f-head); letter-spacing: -.02em; margin: 0 0 6px; color: #17123a; }
.doc h2 { font: 600 18px/1.35 var(--f-head); margin: 30px 0 8px; color: #17123a; letter-spacing: -.01em; }
.doc p, .doc li { color: #3a3650; font-size: 16px; }
.doc a { color: #5226e0; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0; font-size: 15px; }
.doc td, .doc th { border: 1px solid #e3def3; padding: 10px; text-align: left; vertical-align: top; }
.doc th { background: #f1edff; }
.doc .tablewrap { overflow-x: auto; }
@media (max-width: 600px) { .doc { padding: 22px 18px; border-radius: 20px; margin-top: 24px; } }

/* ── Появление при прокрутке (motion.js ставит .in) ── */
.js .mo { opacity: 0; translate: 0 36px; }
.js .mo.in { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease) var(--d, 0s), translate 1.1s var(--ease) var(--d, 0s); }
.js .mo-scale { opacity: 0; scale: .92; }
.js .mo-scale.in { opacity: 1; scale: 1; transition: opacity .9s var(--ease) var(--d, 0s), scale 1.2s var(--ease) var(--d, 0s); }
/* Заголовок по словам: слово всплывает из размытия */
.w { display: inline-block; }
.js .split .w { opacity: 0; translate: 0 .45em; filter: blur(8px); }
.js .split.in .w { opacity: 1; translate: 0 0; filter: blur(0);
  transition: opacity .8s var(--ease), translate 1s var(--ease), filter .8s var(--ease); transition-delay: calc(var(--d, 0s) + var(--i) * 55ms); }

/* Наклон карточек за мышью */
@media (hover: hover) and (pointer: fine) {
  [data-tilt] { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); will-change: transform; }
  [data-tilt].tilting { transition-duration: .12s; }
}
@media (hover: none) { main :where(a, button, summary):active { scale: .97; } }

/* Полоска прочитанного */
.progress { position: fixed; z-index: 60; left: 0; top: 0; height: 2px; width: 100%; transform-origin: left; scale: 0 1;
  background: linear-gradient(90deg, var(--gold), var(--violet-2)); pointer-events: none; }

/* «Уменьшить движение» — выключаем всё */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .mo, .js .mo-scale, .js .split .w, .msg { opacity: 1 !important; translate: none !important; scale: none !important; filter: none !important; }
  .steps-line { scale: 1 1; }
}
