/* Сайт на корне ovzep.com — backend/site-landing.js, разметка из site/make-site.py.
   14.10.2026: страница-презентация (слово Али — «как у Apple: сразу презентуют продукт»).
   Без inline-стилей: страница идёт под строгой CSP документов (LEGAL_CSP, style-src 'self');
   положение кнопок в демо site.js ставит через el.style (CSSOM — это CSP не запрещает).
   Анимация появления — CSS по прокрутке (animation-timeline), без скриптов; где не поддерживается — всё
   просто видно сразу. Тёмная, как приложение. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/a/font/inter-cyrillic-ext.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/a/font/inter-cyrillic.woff2) format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/a/font/inter-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
    src: url(/a/font/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bg: #000;
    --bg-2: #0b0910;
    --tile: #131118;
    --tile-2: #1b1822;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f3f8;
    --muted: #9d97a8;
    --accent: #8151fb; /* фиолетовый «P» логотипа (замер icons/logo.png, 17.10.2026) */
    --accent-2: #6a40f0;
    --accent-soft: #c0a8fd;
    --gold: #f5c84b;
    --grad: linear-gradient(100deg, #dfd3fe 0%, #a785fc 35%, #8151fb 75%, #6a40f0 100%);
    --gutter: clamp(16px, 4vw, 32px);
    --nav-h: 52px;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.5 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--accent-soft); }
img, video { max-width: 100%; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---- значки (линии; градиент — #g в начале страницы) ---- */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 17px; height: 17px; }
.ic-lg { width: 34px; height: 34px; stroke: url(#g); stroke-width: 1.6; }

/* ---- кнопки ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 30px -10px rgba(129, 81, 251, .7);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(129, 81, 251, .9); }
/* 17.10.2026 Али: «синяя полоса при нажатии, будто ссылка» — подсветку касания и фокус-рамку после тапа браузер
   телефона рисует сам (на «Вопросах» держалась поверх строки). Убираем у всего сайта; рамка с клавиатуры остаётся. */
html { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
.qa summary:focus { outline: none; background: none; }
.qa summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .nav a:focus-visible, .story a:focus-visible, .zone:focus-visible, .snd:focus-visible {
    outline: 2px solid #fff; outline-offset: 3px;
}
.btn-sm { min-height: 32px; padding: 0 14px; font-size: 14px; box-shadow: none; }
.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: none;
    cursor: default;
}
.btn-ghost:hover { transform: none; box-shadow: none; }

/* ---- шапка: тонкая, полупрозрачная, как у Apple ---- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(8, 6, 12, .72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}
.nav-in {
    max-width: 1180px;
    height: var(--nav-h);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.02em;
    text-decoration: none;
}
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.brand-name > span, .wordmark span { color: var(--accent); }
.nav-links { display: none; flex: 1; justify-content: center; gap: 26px; }
.nav-links a { color: #cfcad8; font-size: 13.5px; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.langs { display: flex; gap: 2px; }
.langs a {
    padding: 4px 7px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}
.langs a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
@media (min-width: 960px) { .nav-links { display: flex; } .nav-end { margin-left: 0; } }

/* ---- общие заголовки ---- */
.eyebrow {
    margin: 0 0 12px;
    font-size: clamp(15px, 1.4vw, 19px);
    font-weight: 600;
    color: var(--accent-soft);
}
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
h2 {
    font-size: clamp(36px, 5.6vw, 72px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.035em;
    text-wrap: balance;
}
h2 em, .hero-title em, .statement em {
    font-style: normal;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead {
    margin: 18px 0 0;
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.45;
    color: var(--muted);
    text-wrap: pretty;
}
.sec { padding: clamp(96px, 13vw, 170px) 0 0; }
.sec-head { max-width: 860px; margin: 0 auto clamp(44px, 6vw, 72px); text-align: center; }
.sec-head .lead { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ---- промо-ролик (17.10.2026): 16:9 на широком экране, 9:16 на телефоне ----
   Оба <video> с preload="none": качается только тот, который нажали; второй скрыт. */
.promo-frame { position: relative; max-width: 1080px; margin: 0 auto; }
.promo-frame .glow {
    position: absolute;
    inset: 10% 5%;
    background: radial-gradient(closest-side, rgba(129, 81, 251, .5), transparent);
    filter: blur(40px);
    pointer-events: none;
}
.promo-v {
    position: relative;
    display: block;
    width: 100%;
    border-radius: clamp(16px, 2.4vw, 28px);
    background: #000;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 90px -30px rgba(0, 0, 0, .9);
}
.promo-wide { aspect-ratio: 16 / 9; }
.promo-tall { display: none; aspect-ratio: 9 / 16; max-width: min(400px, 100%); margin: 0 auto; }
@media (max-width: 700px) and (orientation: portrait) {
    .promo-wide { display: none; }
    .promo-tall { display: block; }
}

/* ---- телефон: рамка + экран (снимки 1236×2745 → 412:915) ---- */
.phone {
    --pw: 280px;
    position: relative;
    width: var(--pw);
    flex: none;
    padding: calc(var(--pw) * .03);
    border-radius: calc(var(--pw) * .16);
    background: linear-gradient(150deg, #47405a 0%, #17151d 30%, #0d0c11 65%, #2c2737 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .1),
        inset 0 0 0 calc(var(--pw) * .012) #08070b,
        0 50px 90px -30px rgba(0, 0, 0, .9);
}
.screen {
    position: relative;
    aspect-ratio: 412 / 915;
    border-radius: calc(var(--pw) * .13);
    overflow: hidden;
    background: #000;
    container-type: inline-size;
    isolation: isolate;
}
.screen > img, .screen > video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- первый экран ---- */
.hero {
    position: relative;
    padding: clamp(40px, 7vw, 80px) 0 clamp(40px, 6vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 70% 45%, rgba(106, 64, 240, .28), transparent 70%),
        radial-gradient(40% 40% at 15% 10%, rgba(129, 81, 251, .12), transparent 70%),
        var(--bg);
}
.hero-in {
    display: grid;
    gap: clamp(36px, 6vw, 64px);
    align-items: center;
    justify-items: center;
    text-align: center;
}
.hero-copy { max-width: 600px; }
/* H1 = «EvenP» + «Видео, где выбираешь ты» — оба слова в заголовке для поисковиков, вид прежний */
.hero-copy h1 { margin: 0; letter-spacing: normal; }
.wordmark {
    display: block;
    font-size: clamp(76px, 13vw, 150px);
    line-height: .95;
    font-weight: 800;
    letter-spacing: -.055em;
    margin: 0 0 10px;
}
.hero-title {
    display: block;
    margin: 0;
    font-size: clamp(32px, 4.6vw, 54px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
    text-wrap: balance;
}
.hero .lead { max-width: 540px; margin-left: auto; margin-right: auto; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
/* «Смотреть можно сразу — без регистрации» под кнопками (09.11.2026, лента без входа) */
/* Продающий первый экран (10.11.2026): плашка «новое приложение — стань первым автором» и два «бесплатно» под кнопками */
.hero-pill-row { margin: 0 0 18px; }
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(129, 81, 251, .14);
    border: 1px solid rgba(129, 81, 251, .45);
    color: var(--accent-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    text-wrap: balance;
}
.hero-pill:hover { background: rgba(129, 81, 251, .24); color: #fff; }
/* точка без анимации: вечная анимация на телефоне держит ядро (память «Вечные анимации») */
.hero-pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px 2px rgba(129, 81, 251, .8); }
.hero-perks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; justify-items: center; color: #d4cfdc; font-size: 15px; }
.hero-perks li { display: flex; gap: 8px; align-items: center; text-align: left; }
.hero-perks .ic { color: var(--accent-soft); stroke-width: 2.4; }

/* ---- «Почему сейчас» — оффер авторам ---- */
.why-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { padding: 28px 24px 30px; border-radius: 28px; background: var(--tile); border: 1px solid var(--line); }
.why-card h3 { margin-top: 18px; font-size: 21px; font-weight: 700; line-height: 1.2; }
.why-card p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.why-card-gift { border-color: rgba(129, 81, 251, .55); background: linear-gradient(180deg, rgba(106, 64, 240, .24), transparent 65%), var(--tile); }
.why-card-gift h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.hero-demo { position: relative; margin: 0; display: flex; flex-direction: column; align-items: center; }
.hero-demo .glow {
    position: absolute;
    inset: 8% -20% 18%;
    background: radial-gradient(closest-side, rgba(129, 81, 251, .45), transparent);
    filter: blur(30px);
    pointer-events: none;
}
/* первый экран: настоящий экран спереди, ещё два — за ним по бокам (как у Apple) */
.hero-demo { --hero-pw: min(330px, 72vw, max(240px, calc((100vh - 200px) * .43))); }
.trio { position: relative; display: flex; justify-content: center; }
.phone-hero { --pw: var(--hero-pw); z-index: 1; }
.phone-side {
    --pw: calc(var(--hero-pw) * .8);
    position: absolute;
    top: 8%;
    filter: brightness(.5) saturate(.85);
}
.side-l { right: calc(50% + var(--hero-pw) * .1); transform: rotate(-7deg); }
.side-r { left: calc(50% + var(--hero-pw) * .1); transform: rotate(7deg); }
.hero-demo figcaption {
    position: relative;
    max-width: 360px;
    margin-top: 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hint { min-height: 3em; font-size: 16px; font-weight: 500; color: #e7e2ef; text-wrap: balance; }
.hero-demo small { font-size: 13px; color: var(--muted); }
.demo-cta[hidden] { display: none; }

@media (min-width: 900px) {
    .hero { padding-top: 56px; }
    .hero-in { grid-template-columns: 1.1fr .9fr; justify-items: start; text-align: left; }
    .hero .lead { margin-left: 0; }
    .ctas { justify-content: flex-start; }
    .hero-perks { justify-items: start; }
    .hero-demo { justify-self: center; }
}

/* появление первого экрана при загрузке */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
    .hero-copy > :nth-child(2) { animation-delay: .06s; }
    .hero-copy > :nth-child(3) { animation-delay: .14s; }
    .hero-copy > :nth-child(4) { animation-delay: .22s; }
    .hero-copy > :nth-child(5) { animation-delay: .3s; }
    .hero-demo { animation: rise 1.1s .2s cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* ---- живая история в телефоне ---- */
/* Кадр 9:16 шире экрана 412:915 — бока срезаются (~10 % с каждой стороны), как в самом приложении.
   Кнопки (site.js) стоят в % КАДРА, поэтому живут внутри .stage того же размера, что и ролик. */
.demo .stage, .tile-post .stage { position: absolute; top: 0; bottom: 0; left: -12.465%; width: 124.93%; }
.demo .clip {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    background: #1a1032;
}
.demo .clip.on { opacity: 1; }
.zones { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.zones.show { pointer-events: auto; }
.zone {
    position: absolute;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 12%;
    cursor: pointer;
    opacity: 0;
    transform: scale(.94);
    transition: opacity .35s ease, transform .35s ease;
    -webkit-tap-highlight-color: transparent;
}
.zone.pill { border-radius: 999px; }
.zones.show .zone { opacity: 1; transform: none; }
.zone::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 22px 6px rgba(167, 133, 252, .75);
}
.zone:hover::before { box-shadow: 0 0 0 3px #fff, 0 0 30px 10px rgba(167, 133, 252, .95); }
.zone:active { transform: scale(.95); }
@media (prefers-reduced-motion: no-preference) {
    .zones.show .zone::before { animation: pulse 1.8s ease-in-out infinite; }
    .zones.show .zone:nth-child(2)::before { animation-delay: .25s; }
    .zones.show .zone:nth-child(3)::before { animation-delay: .5s; }
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55), 0 0 10px 2px rgba(167, 133, 252, .45); }
    50% { box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 26px 8px rgba(167, 133, 252, .9); }
}

/* приложение поверх кадра — только намёк, нажимать нельзя */
.ui-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; padding: 4cqw 5cqw 0; pointer-events: none; }
.bars { display: flex; gap: 1.4cqw; }
.bars i { flex: 1; height: 1cqw; min-height: 2px; border-radius: 1cqw; background: rgba(255, 255, 255, .32); transition: background .4s; }
.bars i.done { background: #fff; }
.ui-side {
    position: absolute;
    right: 3.5cqw;
    bottom: 21cqw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 3.5cqw;
    pointer-events: none;
}
.ui-side span {
    display: grid;
    place-items: center;
    width: 11cqw;
    height: 11cqw;
    border-radius: 50%;
    background: rgba(58, 36, 113, .55);
    color: #dfd3fe;
}
.ui-side .ic { width: 5.6cqw; height: 5.6cqw; }
.ui-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 2.6cqw;
    padding: 12cqw 5cqw 6cqw;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    pointer-events: none;
}
.ui-bottom img { width: 9cqw; height: 9cqw; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.ui-bottom div { display: flex; flex-direction: column; line-height: 1.2; }
.ui-bottom b { font-size: 4cqw; }
.ui-bottom span { font-size: 3.6cqw; color: rgba(255, 255, 255, .8); }
.snd, .play {
    position: absolute;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}
.snd {
    top: 8.5cqw;
    right: 4cqw;
    width: 10cqw;
    height: 10cqw;
    background: rgba(0, 0, 0, .45);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.snd .ic { width: 5.2cqw; height: 5.2cqw; }
.snd .s-on, .snd[aria-pressed="true"] .s-off { display: none; }
.snd[aria-pressed="true"] .s-on { display: block; }
.play { inset: 0; margin: auto; width: 20cqw; height: 20cqw; background: rgba(0, 0, 0, .5); }
.play[hidden] { display: none; }
.play svg { width: 9cqw; height: 9cqw; fill: #fff; margin-left: 1cqw; }

/* ---- «Что умеет EvenP?» на переднем телефоне (слово Али 10.11.2026) ----
   Ролик заранее срезан по бокам, как в приложении (9:16 на экране 412:915), — зоны истории в % экрана ложатся
   на него один в один. Поверх — снимок интерфейса приложения с прозрачным кадром (.ui), выше — зоны (.tz):
   невидимые, как в самой истории, — кнопки нарисованы в ролике. Движок — site.js. */
.tour .stage { position: absolute; inset: 0; }
.tour .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #e9e7ee; }
.tour .clip.on { opacity: 1; }
.tour > .ui { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tour .zones { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.tz {
    position: absolute;
    padding: 0;
    border: 0;
    border-radius: 3cqw;
    background: transparent;
    cursor: pointer;
    visibility: hidden;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    transition: box-shadow .2s ease, background-color .2s ease;
}
.tz.on { visibility: visible; pointer-events: auto; }
.tz:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 0 22px 4px rgba(167, 133, 252, .65); }
.tz:active { background-color: rgba(129, 81, 251, .2); }
.tz:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* полоска времени ролика — как у приложения, внизу экрана */
.tour .tl { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: .7cqw; min-height: 2px; background: rgba(255, 255, 255, .16); pointer-events: none; }
.tour .tl i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .26s linear; }
/* «Попробовать» (кольцо, тема, студия…) на сайте не открыть — подсказка ложится на саму нажатую кнопку
   (место и размер ставит site.js по зоне) */
.tour .toast {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 1cqw 3cqw;
    border-radius: 3.5cqw;
    background: rgba(13, 13, 18, .9);
    box-shadow: 0 0 0 1px rgba(129, 81, 251, .6);
    color: #fff;
    font-size: 3.9cqw;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    transform: translateY(1.5cqw);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.tour .toast.show { opacity: 1; transform: none; }
.tour-snd { cursor: pointer; color: #e7e2ef; font-family: inherit; }
.tour-snd:hover { color: #fff; border-color: rgba(129, 81, 251, .7); }
.tour-snd .ic { stroke-width: 2.2; }
.tour-snd .s-on, .tour-snd[aria-pressed="true"] .s-off { display: none; }
.tour-snd[aria-pressed="true"] .s-on { display: inline-block; }
.hero-demo .hint { min-height: 0; margin: 0; }

/* ---- как это работает ---- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 56px 32px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    counter-reset: step;
}
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-ic {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
    border-radius: 34px;
    background: radial-gradient(circle at 30% 20%, rgba(129, 81, 251, .35), transparent 65%), var(--tile);
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px -30px rgba(106, 64, 240, .8);
}
.ic-xl { width: 50px; height: 50px; stroke: url(#g); stroke-width: 1.5; }
.step-n {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    font-weight: 700;
    font-size: 16px;
}
.step h3 { font-size: 24px; font-weight: 700; }
.step p { margin: 8px 0 0; max-width: 300px; color: var(--muted); }

/* ---- большая фраза ---- */
.statement { padding: clamp(110px, 16vw, 220px) 0 0; }
.statement p {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
    font-size: clamp(40px, 7vw, 96px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.045em;
    text-wrap: balance;
}
.statement em { display: inline-block; }

/* ---- витрина историй ---- */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 72vw);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    padding: 6px var(--gutter) 22px;
    scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
@media (min-width: 640px) { .rail { grid-auto-columns: 260px; } }
@media (min-width: 1200px) {
    .rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(5, 1fr);
        grid-auto-columns: auto;
        max-width: 1180px;
        margin: 0 auto;
        overflow: visible;
    }
}
.story { scroll-snap-align: start; }
.story a {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: 26px;
    overflow: hidden;
    background: var(--tile);
    border: 1px solid var(--line);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s;
}
.story a:hover { transform: translateY(-6px); border-color: rgba(129, 81, 251, .45); }
.story-media { aspect-ratio: 9 / 16; background: #120d1c; overflow: hidden; }
.story-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-body { display: flex; flex-direction: column; flex: 1; padding: 18px 16px 20px; }
.chip {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(129, 81, 251, .16);
    color: var(--accent-soft);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.story h3 { margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.story p { margin: 6px 0 14px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.story .more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-soft);
    font-weight: 600;
    font-size: 15px;
}

/* ---- студия ---- */
.split { display: grid; gap: 56px; align-items: center; }
.split-copy h2 { font-size: clamp(36px, 5vw, 64px); }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { display: flex; gap: 16px; align-items: flex-start; }
.points .ic { width: 28px; height: 28px; margin-top: 2px; stroke: url(#g); }
.points b { display: block; font-size: 18px; }
.points span { color: var(--muted); font-size: 16px; }
/* align-items: flex-start — иначе левый телефон тянется до высоты правого (тот сдвинут вниз на 14 %) и под
   экраном остаётся пустой корпус: интерфейс выглядит «поднятым» (замечание Али 10.11) */
.duo { display: flex; justify-content: center; align-items: flex-start; }
.phone-duo { --pw: min(270px, 44vw); }
.duo .phone + .phone { margin-left: -6%; margin-top: 14%; }
@media (min-width: 900px) {
    .split { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---- плитки возможностей ---- */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.tile {
    position: relative;
    overflow: hidden;
    padding: 26px 22px;
    border-radius: 28px;
    background: var(--tile);
    border: 1px solid var(--line);
}
.tile h3 { margin-top: 18px; font-size: 21px; font-weight: 700; line-height: 1.2; }
.tile p { margin: 8px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.45; }
.tile-big {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 520px;
    padding: 40px 28px 0;
    text-align: center;
    background:
        radial-gradient(70% 60% at 50% 100%, rgba(106, 64, 240, .35), transparent 70%),
        var(--tile);
}
.tile-big h3 { margin: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.tile-big p { max-width: 420px; font-size: 17px; }
/* телефон выглядывает снизу плитки */
.phone-peek { --pw: min(300px, 70vw); margin-top: 34px; margin-bottom: calc(var(--pw) * -1.05); }
@media (max-width: 520px) {
    .tile:not(.tile-big) { padding: 22px 18px; }
    .tile h3 { font-size: 18px; }
    .tile p { font-size: 14.5px; }
}
@media (min-width: 900px) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .tile { grid-column: span 2; padding: 32px 30px; }
    .tile-big { grid-column: span 3; min-height: 600px; padding: 48px 36px 0; }
}

/* ---- плитки-картинки: 16:9, пост с выбором, переходный эффект, подсветка, поддержка ---- */
/* Анимации в плитках идут только с классом .live — его ставит site.js, пока плитка на экране. */
.tile-wide, .tile-post, .tile-trans, .tile-glow, .tile-support {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 34px 24px;
}
.tile-wide h3, .tile-post h3, .tile-trans h3, .tile-glow h3, .tile-support h3 { margin-top: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.025em; }
.tile-wide p, .tile-post p, .tile-trans p, .tile-glow p, .tile-support p { max-width: 380px; }
.tile-wide {
    justify-content: space-between;
    gap: 28px;
    background: radial-gradient(80% 70% at 50% 100%, rgba(129, 81, 251, .16), transparent 70%), var(--tile);
}
.tile-wide .tile-copy { display: flex; flex-direction: column; align-items: center; }
.tag {
    margin-bottom: 12px;
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(129, 81, 251, .15);
    color: #c0a8fd;
    font-size: 13px;
    font-weight: 700;
}
.phone-land { --pw: min(240px, calc((100vw - 96px) / 2.3)); width: calc(var(--pw) * 2.2209); }
.phone-land .screen { aspect-ratio: 915 / 412; }
.phone-mini { --pw: min(190px, 52vw); margin-top: 28px; }
/* стрелки на снимке экрана хоррора — в % экрана (снимок 412:915, как .screen) */
.pz {
    position: absolute;
    border-radius: 30%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 0 18px 5px rgba(167, 133, 252, .7);
    pointer-events: none;
}
.pz { width: 16.5%; height: 10.8%; }
.pz1 { left: 25%; top: 13.8%; }
.pz2 { left: 59%; top: 43.3%; }
.credit { display: block; margin-top: 10px; font-size: 12px; color: var(--muted); }
.tile-trans .screen video { transform: scale(1.16); }
.tile-glow { background: radial-gradient(70% 60% at 50% 80%, rgba(129, 81, 251, .16), transparent 70%), var(--tile); }
.glow-demo { display: flex; flex-direction: column; align-items: center; gap: 34px; width: 100%; margin: auto 0 12px; padding-top: 36px; }
.ring { position: relative; display: grid; place-items: center; width: 124px; height: 124px; border-radius: 50%; }
.ring::before, .ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #8151fb, #c0a8fd, #f8f8f8, #6a40f0, #8151fb);
}
.ring::before {
    inset: -6px;
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
}
.ring::after { inset: -16px; z-index: -1; filter: blur(20px); opacity: .5; }
.ring img { position: relative; width: 112px; height: 112px; border-radius: 50%; }
.strip {
    width: min(260px, 80%);
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, #8151fb, #c0a8fd, #f8f8f8, #6a40f0, #8151fb);
    background-size: 200% 100%;
}
.tile-support, .tile-start { background: radial-gradient(70% 60% at 50% 0%, rgba(129, 81, 251, .22), transparent 70%), var(--tile); }
/* «Смотри сразу» (без входа) — на месте плитки «События» до их старта; рядом с большой плиткой «Квизы» */
.tile-start { grid-column: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 34px 24px; }
.tile-start h3 { margin-top: 0; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.03em; }
.tile-start p { max-width: 420px; font-size: 17px; }
.tile-start ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 420px; text-align: left; color: #d4cfdc; font-size: 16px; }
.tile-start li { display: flex; gap: 10px; align-items: flex-start; }
.tile-start li .ic { margin-top: 3px; color: var(--accent-soft); stroke-width: 2.4; flex: none; }
@media (min-width: 900px) { .tile-start { grid-column: span 3; padding: 48px 40px; } }
.bolt {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
    border-radius: 22px;
    background: linear-gradient(135deg, #6a40f0, #a785fc);
    box-shadow: 0 14px 40px -8px rgba(129, 81, 251, .85);
}
.bolt svg { width: 34px; height: 34px; fill: #fff; }
.tile-support ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; text-align: left; color: #d4cfdc; font-size: 15.5px; }
.tile-support li { display: flex; gap: 10px; align-items: flex-start; }
.tile-support li .ic { margin-top: 3px; color: var(--accent-soft); stroke-width: 2.4; }
.tier {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 6px;
    vertical-align: 3px;
    background: rgba(129, 81, 251, .22);
    color: var(--accent-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    -webkit-text-fill-color: currentColor;
}
.tier-max { background: rgba(245, 200, 75, .16); color: var(--gold); }
h3 .tier { vertical-align: 6px; font-size: 12px; }
@media (min-width: 900px) {
    .tile-wide { grid-column: span 4; }
}
@media (prefers-reduced-motion: no-preference) {
    .live .pz { animation: pulse 1.8s ease-in-out infinite; }
    .live .pz2 { animation-delay: .4s; }
    .tile-trans.live .screen video { animation: sway 2.6s ease-in-out infinite; }
    .live .ring::before, .live .ring::after { animation: spin 6s linear infinite; }
    .live .ring { animation: breathe 3.2s ease-in-out infinite; }
    .live .strip { animation: shimmer 4s linear infinite; }
}
/* «переходный эффект» — кадр повторяет движение руки: качнуло, рвануло, вернулось */
@keyframes sway {
    0%, 100% { transform: scale(1.16) translate(0, 0) rotate(0); }
    18% { transform: scale(1.16) translate(-3%, 1.5%) rotate(-2.5deg); }
    34% { transform: scale(1.16) translate(2.5%, -1%) rotate(2deg); }
    48% { transform: scale(1.16) translate(-1%, 2%) rotate(-1deg); }
    62% { transform: scale(1.22) translate(4%, -2%) rotate(3.5deg); }
    74% { transform: scale(1.16) translate(-1.5%, 0) rotate(-1deg); }
}
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- полный список ---- */
.sec-head-all { margin-top: clamp(90px, 11vw, 140px); }
.groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.group { padding: 26px 24px; border-radius: 24px; background: var(--tile); border: 1px solid var(--line); }
.group h3 { margin-bottom: 16px; font-size: 20px; font-weight: 800; }
.group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.group li > b { display: block; font-size: 15.5px; font-weight: 650; }
.group li > span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.4; }

/* ---- вопросы и ответы ---- */
.qa { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.qa details { padding: 0 22px; border-radius: 20px; background: var(--tile); border: 1px solid var(--line); }
.qa summary {
    position: relative;
    padding: 20px 34px 20px 0;
    cursor: pointer;
    list-style: none;
    font-size: 18px;
    font-weight: 650;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-soft);
    font-size: 26px;
    font-weight: 400;
    transition: transform .2s;
}
.qa details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa details p { margin: 0 0 20px; color: var(--muted); }

/* ---- подписки ---- */
.plan-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan {
    padding: 30px 28px 32px;
    border-radius: 28px;
    background: var(--tile);
    border: 1px solid var(--line);
}
.plan h3 { font-size: 26px; font-weight: 800; }
.plan-pro { border-color: rgba(129, 81, 251, .55); background: linear-gradient(180deg, rgba(106, 64, 240, .18), transparent 55%), var(--tile); }
.plan-pro h3 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-max { border-color: rgba(245, 200, 75, .55); background: linear-gradient(180deg, rgba(245, 200, 75, .12), transparent 55%), var(--tile); }
.plan-max h3 { color: var(--gold); }
/* «7 дней бесплатно» над Pro (10.11.2026) */
.plan-badge { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; font-size: 13px; font-weight: 700; }
.price { margin: 10px 0 22px; font-size: 22px; font-weight: 700; }
.price small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: #d4cfdc; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li .ic { margin-top: 3px; color: var(--accent-soft); stroke-width: 2.4; }
.plan-max li .ic { color: var(--gold); }
.note { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--muted); }

/* ---- финал ---- */
.final { padding: clamp(110px, 15vw, 200px) 0 clamp(90px, 12vw, 150px); text-align: center; }
.final-logo { width: 88px; height: 88px; border-radius: 22px; margin-bottom: 28px; box-shadow: 0 20px 60px -10px rgba(129, 81, 251, .7); }
.final h2 { font-size: clamp(44px, 7vw, 96px); }
.final .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.final .ctas { justify-content: center; }

/* ---- подвал: владелец, документы ---- */
.foot { padding: 44px 0 48px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); font-size: 14px; }
.owner h2 { font-size: 17px; letter-spacing: 0; color: var(--text); margin-bottom: 10px; font-weight: 700; }
.owner p { margin: 0 0 6px; max-width: 760px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal a { color: #cfcad8; text-decoration: none; }
.legal a:hover { color: #fff; text-decoration: underline; }
.foot-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.langs-full { display: flex; gap: 16px; }
.langs-full a { color: var(--muted); text-decoration: none; }
.langs-full a[aria-current="page"] { color: var(--text); }

/* ---- появление по прокрутке (только где браузер умеет; иначе всё видно сразу) ---- */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .rv {
            animation: reveal linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
        .statement .rv { animation-range: entry 10% cover 45%; }
    }
}
@keyframes reveal {
    from { opacity: 0; transform: translateY(56px) scale(.97); }
    to { opacity: 1; transform: none; }
}
