/* Forward SMS — сайт. Токены из светлой темы приложения (apps/mobile/src/theme/palette.js, Figma «Forward SMS · Light»), Inter. Тёмной темы нет. */
/* Шрифт Inter лежит в fonts/ (лицензия OFL). Один файл на набор символов, все начертания 400–700 внутри. Адреса относительные — работает и в сборке /landing. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/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: 400 700; font-display: swap; src: url(fonts/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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/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: #f4f3f9;            /* background/canvas */
  --bg-deep: #efedf5;       /* surface/neutral-tile */
  --surface: #ffffff;       /* surface/card */
  --surface-2: #efedf5;
  --tile: #f1edfc;          /* surface/tile */
  --line: #dcd8ea;          /* border/default */
  --line-accent: #d3c4fb;   /* border/accent */
  --text: #17142b;          /* text/primary */
  --text-2: #454160;        /* text/secondary */
  --muted: #5e5a7a;         /* text/muted */
  --accent: #6d28d9;        /* brand/violet */
  --accent-hi: #5b21b6;     /* text/accent */
  --accent-soft: #efe9fe;   /* surface/accent-soft */
  --grad: #6d28d9;
  --tg: #2aabee;
  --r: 14px;
  --r-lg: 22px;
  --wrap: 1120px;
  --header-h: 65px;        /* высота шапки; скрипт в странице уточняет её по факту */
  --swap-ms: 380;          /* смена вкладки и примера сообщения: длительность, мс */
  --swap-ease: cubic-bezier(.32, .72, 0, 1);   /* быстрый старт, мягкая посадка */
  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-hi); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: var(--line-accent); color: var(--text); }
html { scrollbar-color: #c4bfd6 var(--bg); accent-color: var(--accent); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 10; }

/* шапка */
.top { position: sticky; top: 0; z-index: 5; background: rgb(244 243 249 / .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top { box-sizing: border-box; height: var(--header-h); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand svg, .brand img { width: 30px; height: 30px; border-radius: 9px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 16px; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn-pri { background: var(--grad); color: #fff; }
.btn-pri:hover { color: #fff; background: var(--accent-hi); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn small { font-weight: 500; opacity: .8; }

/* главная: первый экран */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; position: relative; }
h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 18px; font-weight: 700; }
h1 em { font-style: normal; color: var(--accent-hi); }
.lead { font-size: 19px; color: var(--text-2); max-width: 34em; margin: 0 0 28px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { font-size: 14px; color: var(--muted); margin-top: 14px; }
.phone { justify-self: center; width: min(300px, 100%); margin: 0; border-radius: 46px; padding: 9px; background: var(--text); box-shadow: 0 34px 64px -34px rgb(23 20 43 / .5); }
.phone img { border-radius: 37px; }
.art { margin: 0; justify-self: center; width: min(400px, 100%); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: #f3f0fb; box-shadow: 0 30px 60px -40px rgb(23 20 43 / .35); }
.art img { width: 100%; }
.split .art { width: min(340px, 100%); }
.pair { display: flex; justify-content: center; align-items: flex-start; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.pair .art { width: min(340px, 44vw); }
@media (max-width: 560px) { .pair { gap: 12px; } .pair .art, .art { border-radius: 18px; } }
figure.shot.art { width: min(300px, 100%); }
figure.shot.art img { border: 0; border-radius: 0; }
@media (max-width: 860px) { .hero { padding-top: 48px; } .hero .wrap { grid-template-columns: 1fr; } .phone { width: min(280px, 80%); } .hero .art { width: min(340px, 92%); } }

/* секции */
section.s { padding: 72px 0; border-top: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; }
.s-lead { color: var(--text-2); font-size: 18px; max-width: 40em; margin: 0 0 36px; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }

/* каналы */
.dest { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.dest a, .dest div { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); transition: background .15s, border-color .15s; }
.dest a:hover { background: var(--surface); border-color: var(--line-accent); color: var(--text); }
.dest b { display: block; font-size: 16px; }
.dest span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.dest .go { font-size: 13px; color: var(--accent-hi); margin-top: 8px; }
.dest b { color: var(--text); }
.ico, .dest .ico { flex: none; width: 40px; height: 40px; margin: 0; border-radius: 11px; display: grid; place-items: center; background: var(--tile); color: var(--accent); }
.ico.brand-tile { background: #fff; border: 1px solid var(--line); }
.ico svg { width: 22px; height: 22px; }

/* шаги */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: st; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-hi); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--text-2); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* две колонки: текст + экран */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 340px minmax(0, 1fr); }
.split.rev .phone { order: -1; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev .phone { order: 0; } }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--text-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236d28d9' stroke-width='2.4'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks b { color: var(--text); }

/* пример сообщения */
.bubble { background: var(--tile); border: 1px solid var(--line-accent); border-radius: 16px; padding: 14px 16px; max-width: 380px; font-size: 15px; }
.bubble .who { font-size: 13px; color: #0a74b3; font-weight: 600; }
.bubble .code { font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.bubble .meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* цены */
.price { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.plan { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.plan.hi { border-color: var(--line-accent); background: var(--tile); }
.plan .big { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan p { color: var(--text-2); margin: 0; }
@media (max-width: 640px) { .price { grid-template-columns: 1fr; } }

/* вопросы */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--accent-hi); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 0 18px; color: var(--text-2); }
.faq .a p { margin: 0 0 10px; }

/* гайд */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; margin-bottom: 4px; }
.crumbs a { color: var(--muted); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 56px; padding: 18px 0 72px; }
@media (max-width: 900px) { .guide { grid-template-columns: 1fr; } .toc { display: none; } }
.guide article { max-width: 720px; }
.guide h1 { font-size: clamp(32px, 4.4vw, 46px); }
.answer { font-size: 19px; color: var(--text); background: var(--accent-soft); border: 1px solid var(--line-accent); border-radius: 12px; padding: 16px 20px; margin: 8px 0 28px; }
.guide h2 { font-size: 26px; margin: 44px 0 12px; }
.guide h3 { margin-top: 26px; }
.guide p, .guide li { color: var(--text-2); }
.guide ol.how { padding-left: 0; list-style: none; counter-reset: h; }
.guide ol.how > li { counter-increment: h; position: relative; padding-left: 46px; margin: 0 0 22px; }
.guide ol.how > li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-hi); font-weight: 700; font-size: 14px; }
.guide ol.how b { color: var(--text); }
figure.shot { margin: 16px 0 6px; width: min(260px, 100%); }
figure.shot img { border-radius: 30px; border: 7px solid var(--text); }
figure.shot figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.callout { background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; color: var(--text); margin: 18px 0; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; font-size: 14px; }
.toc b { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; padding: 5px 0; }
.toc a:hover { color: var(--text); }
.related { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.updated { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
code { font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--text); }

/* текстовые страницы */
.doc { padding-top: 28px; padding-bottom: 80px; }
.doc > * { max-width: 760px; }  /* колонка текста по левому краю, как логотип в шапке */
.hub { padding-bottom: 80px; }
.hub h1 { font-size: clamp(32px, 4.4vw, 46px); margin-top: 12px; }
.dest-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .dest-2 { grid-template-columns: 1fr; } }
.dest .tag { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; }
.dest .tag + .go { margin-top: 10px; }
.hub .note { margin-top: 28px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px; background: var(--bg-deep); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot b { display: block; color: var(--text); margin-bottom: 10px; font-size: 14px; }
.foot a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.foot a:hover { color: var(--text); }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.doc th { color: var(--text); font-weight: 600; background: var(--surface); }
.doc td:first-child { color: var(--text); }
.ptoc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin: 18px 0 8px; }
.ptoc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.ptoc a { color: var(--text-2); text-decoration: none; }
.ptoc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) { .ptoc ol { columns: 1; } .doc table { font-size: 14px; } .doc th, .doc td { padding: 8px; } }
@media (max-width: 640px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc tr:first-child { display: none; }
  .doc tr { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:nth-child(2)::before { content: "Where: "; color: var(--muted); }
  .doc td:nth-child(3)::before { content: "How long: "; color: var(--muted); }
}

.faq .qa { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq .qa h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.faq .qa p { margin: 0; color: var(--text-2); }
.price-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; }
@media (max-width: 960px) { .price-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-4 { grid-template-columns: 1fr; } }
.plan .big small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 2px; }

.checks.cols { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 4px 32px; }
@media (max-width: 760px) { .checks.cols { grid-template-columns: 1fr; } }

/* ---------- главная: страница как мастер правила ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wz { padding: 24px 0 96px; }
.wz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: clamp(32px, 6vw, 88px); align-items: start; }
.wz-intro { grid-column: 1; padding-bottom: 36px; }
.wz-intro h1 { font-size: clamp(38px, 4.7vw, 66px); line-height: 1.03; letter-spacing: -.035em; margin-bottom: 18px; }
.wz-intro .lead { font-size: clamp(17px, 1.4vw, 20px); margin-bottom: 22px; }
.wz-steps { grid-column: 1; grid-row: 1; min-width: 0; }

/* полоска шагов — как шапка мастера в приложении */
.wz-bar { position: sticky; top: var(--header-h); z-index: 3; display: flex; align-items: center; gap: 16px; padding: 14px 0; margin-bottom: 8px; background: var(--bg); box-shadow: 0 10px 12px -4px var(--bg); font-size: 14px; font-weight: 500; color: var(--muted); }
.dashes { display: flex; gap: 6px; flex: 1; max-width: 360px; }
.dashes i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .35s cubic-bezier(.16, 1, .3, 1); }
.dashes i.on { background: var(--accent); }

.step { border: 0; padding: 0 0 clamp(64px, 9vw, 112px); margin: 0; min-width: 0; }
.step legend { padding: 0; float: left; width: 100%; }
.step legend + * { clear: both; }
.step h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 12px; }
.step .s-lead { margin-bottom: 26px; max-width: 36em; }

/* карточки выбора */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt-w { position: relative; }
.opt { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px 16px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s cubic-bezier(.16, 1, .3, 1); }
.opts-2 .opt { padding-bottom: 16px; }
.opt:hover { border-color: var(--line-accent); transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 14px 30px -18px rgb(109 40 217 / .55); }
.opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.opt b { display: block; font-size: 16px; }
.opt > span > span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.opt-w .go { position: absolute; left: 70px; bottom: 12px; font-size: 13px; font-weight: 500; color: var(--accent-hi); text-decoration: none; }
.opt-w .go::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg) translateY(-1px); }
.opt-w .go:hover { text-decoration: underline; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }

/* поля, выключатель, строки */
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.chips[hidden] { display: none; }
.field { display: block; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input, .pv-from input, .pv-sms textarea { width: 100%; font: 400 16px/1.4 var(--font); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; caret-color: var(--accent); }
.field input::placeholder { color: var(--muted); }
.field input:focus-visible, .pv-from input:focus-visible, .pv-sms textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.switch { display: flex; align-items: center; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line-accent); border-radius: 16px; cursor: pointer; box-shadow: 0 16px 34px -24px rgb(109 40 217 / .5); }
.switch > span { flex: 1; }
.switch b { display: block; font-size: 17px; }
.switch > span > span { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.switch input { position: absolute; opacity: 0; }
.switch i { flex: none; width: 52px; height: 30px; border-radius: 30px; background: #c4bfd6; position: relative; transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(23 20 43 / .25); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(22px); }
.switch:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.safe { display: flex; gap: 12px; margin: 12px 0 0; padding: 14px 16px; border-radius: 14px; background: #e9f6ee; border: 1px solid #bfe3cc; color: #14532d; font-size: 15px; }
.safe svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: #166534; }
.try { margin: 14px 0 0; font-size: 15px; color: var(--text-2); }
.rows { display: grid; gap: 10px; max-width: 520px; }
.row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.row:has(input:disabled) { cursor: default; }
.row input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.row b { display: block; font-size: 16px; }
.row > span > span { display: block; font-size: 14px; color: var(--muted); }
.allset { display: flex; gap: 14px; align-items: center; margin: 0 0 22px; padding: 18px 20px; border-radius: 18px; background: var(--accent); color: #fff; max-width: 520px; box-shadow: 0 20px 40px -22px rgb(109 40 217 / .7); }
.allset svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgb(255 255 255 / .2); }
.allset b { display: block; font-size: 18px; }
.allset > span > span { font-size: 15px; opacity: .92; }
.step-done { padding-bottom: 0; }

/* предпросмотр */
.pv { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 0; }
.pv-in, .pv-out { background: var(--surface); border: 1px solid var(--line); padding: 18px; }
.pv-in { border-radius: 24px 24px 0 0; border-bottom: 0; }
.pv-out { border-radius: 0 0 24px 24px; background: var(--tile); border-color: var(--line-accent); box-shadow: 0 34px 60px -40px rgb(109 40 217 / .55); }
.pv-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.pv-cap b { color: var(--text); }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; }
.pv-arrow { width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center/11px no-repeat; }
.pv-from { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pv-from span { font-size: 14px; color: var(--muted); }
.pv-from input { padding: 8px 12px; font-weight: 600; }
.pv-sms textarea { display: block; resize: none; background: var(--bg); border-radius: 14px 14px 14px 4px; }
.pv-samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pv-samples button { font: 500 13px/1 var(--font); color: var(--accent-hi); background: var(--accent-soft); border: 1px solid transparent; border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.pv-samples button:hover { border-color: var(--line-accent); background: #fff; }
.pv-hint { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }
.pv-msg { min-height: 132px; display: grid; align-content: start; }
.pv-msg.in > .m { animation: arrive .5s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(-14px) scale(.97); filter: blur(4px); } }
.m { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 12px 14px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.m-who { font-size: 13px; font-weight: 600; color: #0a74b3; margin-bottom: 2px; }
.m-slack .m-who { color: #611f69; } .m-discord .m-who { color: #5865f2; } .m-teams .m-who { color: #4b53bc; }
.m-label { font-size: 13px; font-weight: 600; color: var(--accent-hi); }
.m-code { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.m-code b { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.m-copy { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--accent-hi); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; }
.m-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }
.m-mail { border-radius: 14px; }
.m-sub { font-weight: 700; font-size: 16px; }
.m-addr { font-size: 12.5px; color: var(--muted); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.m-json { margin: 0; border-radius: 14px; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; color: var(--text); }
.m-no { border-style: dashed; border-color: #c4bfd6; background: transparent; color: var(--text-2); border-radius: 16px; }
.m-no b { display: block; color: var(--text); }

/* лента экранов приложения */
.strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 24px 28px; margin: 0 -24px; scrollbar-width: thin; }
.strip .art { flex: none; width: min(300px, 72vw); scroll-snap-align: center; }

@media (max-width: 900px) {
  .wz { padding-top: 32px; }
  .wz-grid { grid-template-columns: minmax(0, 1fr); }
  .wz-intro { padding-bottom: 28px; }
  .pv { display: contents; }
  .pv-in { order: 2; border-radius: 20px; border-bottom: 1px solid var(--line); margin-bottom: 36px; grid-column: 1; }
  .wz-steps { order: 3; }
  .pv-out { order: 4; grid-column: 1; position: sticky; bottom: 10px; z-index: 4; border-radius: 20px; padding: 12px 14px; margin-top: 28px; box-shadow: 0 18px 44px -14px rgb(23 20 43 / .4); }
  .pv-out .pv-hint { display: none; }
  .pv-out .pv-cap { margin-bottom: 8px; }
  .pv-msg { min-height: 0; max-height: 30vh; overflow: auto; }
  .wz-bar { top: var(--header-h); }
  .chips { grid-template-columns: 1fr; }
}

.try-btn { font: 600 15px/1 var(--font); color: var(--accent-hi); background: var(--accent-soft); border: 1px solid var(--line-accent); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: background .15s; }
.try-btn:hover { background: #fff; }
.step { scroll-margin-top: 60px; }  /* сверх шапки: место под закреплённую полоску шагов */

/* ---------- первый экран: сцена «сообщение летит с телефона на телефон» ---------- */
.hero2 { position: relative; overflow: hidden; padding: clamp(36px, 4.5vw, 64px) 0 0; text-align: center; isolation: isolate; }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(109 40 217 / .22) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 60% at 50% 38%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 38%, #000, transparent); }
.hero2 h1 { font-size: clamp(40px, 6.2vw, 90px); line-height: 1; letter-spacing: -.04em; margin: 0 auto 22px; max-width: 14.5em; }
.hero2 .lead { margin: 0 auto 28px; font-size: clamp(17px, 1.5vw, 21px); max-width: 36em; }
.hero2 .ctas { justify-content: center; }
.hero2 .btn-pri { box-shadow: 0 0 0 1px rgb(255 255 255 / .25) inset, 0 18px 40px -16px rgb(109 40 217 / .75); }
.stage-w { position: relative; max-width: 1180px; margin: -8px auto 0; }
.stage3d { container-type: inline-size; }
.scene { --u: calc(100cqw / 1240); position: relative; height: calc(560 * var(--u)); perspective: calc(1500 * var(--u)); perspective-origin: 50% 42%; font-family: var(--font); text-align: left; }
.stage { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage-fly { z-index: 3; }
.stage-l { display: flex; justify-content: space-between; margin: -34px auto 0; padding-bottom: 44px; font-size: 14px; font-weight: 500; color: var(--muted); }
.stage-l span { width: 33.2%; text-align: center; }
.stage .par { transition: transform .6s cubic-bezier(.16, 1, .3, 1); transform: translate(calc(var(--px, 0) * var(--k, 0px)), calc(var(--py, 0) * var(--k, 0px))); }
.stage .p1 { --k: 6px; } .stage .p2 { --k: 12px; }

/* телефоны — настоящие 3D-тела: лицевая панель и одиннадцать слоёв корпуса за ней */
.ph { position: absolute; top: calc(44 * var(--u)); width: calc(220 * var(--u)); height: calc(456 * var(--u)); transform-style: preserve-3d; z-index: 2; animation: hover3d 7s ease-in-out infinite; }
.ph-l { left: calc(96 * var(--u)); --ry: 30deg; }
.ph-r { left: calc(924 * var(--u)); --ry: -30deg; animation-delay: -3.5s; }
@keyframes hover3d { 50% { translate: 0 calc(-9 * var(--u)); } }
.ph-b { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.16, 1, .3, 1); transform: rotateY(calc(var(--ry) + var(--px, 0) * 16deg)) rotateX(calc(7deg - var(--py, 0) * 12deg)) rotateZ(calc(var(--ry) * -.06)); }
.lay, .ph-f { position: absolute; inset: 0; border-radius: calc(38 * var(--u)); }
.lay { transform: translateZ(calc(var(--z) * -2 * var(--u))); background: linear-gradient(100deg, #6f6a8f, #2b2748 22%, #17142b 50%, #3a3560 78%, #8a84ad); }
.lay:last-of-type { background: #0f0d1f; }
.ph-f { background: #17142b; padding: calc(7 * var(--u)); box-shadow: inset 0 0 0 calc(1 * var(--u)) rgb(255 255 255 / .18); }
.scr { position: relative; height: 100%; overflow: hidden; border-radius: calc(32 * var(--u)); background: var(--bg); color: var(--text); font-size: calc(12.5 * var(--u)); line-height: 1.4; padding: calc(40 * var(--u)) calc(15 * var(--u)) 0; }
.scr::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / 0) 28%, rgb(255 255 255 / 0) 70%, rgb(109 40 217 / .07) 100%); pointer-events: none; }
.scr p { margin: 0; }
.cam { position: absolute; top: calc(11 * var(--u)); left: 50%; width: calc(12 * var(--u)); height: calc(12 * var(--u)); margin-left: calc(-6 * var(--u)); border-radius: 50%; background: #17142b; }
.scr-t { font-weight: 600; font-size: calc(13 * var(--u)); padding-bottom: calc(14 * var(--u)); }
.scr-row, .scr-bar { display: flex; align-items: center; gap: calc(8 * var(--u)); margin-bottom: calc(14 * var(--u)); }
.scr-row b, .scr-bar b { display: block; font-size: calc(13 * var(--u)); line-height: 1.2; }
.scr small { display: block; font-size: calc(10 * var(--u)); color: var(--muted); }
.scr-bar { margin: calc(-8 * var(--u)) calc(-15 * var(--u)) calc(14 * var(--u)); padding: calc(8 * var(--u)) calc(15 * var(--u)); background: #fff; border-bottom: 1px solid var(--line); }
.scr-bar svg { width: calc(26 * var(--u)); height: calc(26 * var(--u)); flex: none; }
.scr-bar small { color: #0a74b3; }
.ava { display: grid; place-items: center; width: calc(28 * var(--u)); height: calc(28 * var(--u)); border-radius: 50%; background: var(--accent-soft); color: var(--accent-hi); font-weight: 700; flex: none; }
.bub { background: #fff; border: 1px solid var(--line); border-radius: calc(16 * var(--u)); padding: calc(11 * var(--u)) calc(13 * var(--u)); }
.bub.dst { border-color: var(--line-accent); display: grid; gap: calc(1 * var(--u)); }
.bub .who { font-size: calc(11 * var(--u)); font-weight: 600; color: #0a74b3; }
.bub small { margin-top: calc(4 * var(--u)); }
.scr-in { position: absolute; left: calc(15 * var(--u)); right: calc(15 * var(--u)); bottom: calc(14 * var(--u)); background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: calc(8 * var(--u)) calc(14 * var(--u)); font-size: calc(11.5 * var(--u)); color: var(--muted); }
.ph-sh { position: absolute; top: calc(508 * var(--u)); width: calc(250 * var(--u)); height: calc(26 * var(--u)); border-radius: 50%; background: #17142b; opacity: .26; filter: blur(calc(13 * var(--u))); animation: sh3d 7s ease-in-out infinite; }
.ph-sh-l { left: calc(72 * var(--u)); } .ph-sh-r { left: calc(918 * var(--u)); animation-delay: -3.5s; }
@keyframes sh3d { 50% { scale: .86; opacity: .18; } }
.stage .beam { animation: beam 1.1s linear infinite; }
@keyframes beam { to { stroke-dashoffset: -28; } }
.stage .tile { animation: bob 5.2s ease-in-out infinite; transform-box: fill-box; }
.stage .t1 { animation-delay: -.8s; } .stage .t2 { animation-delay: -1.6s; } .stage .t3 { animation-delay: -2.4s; } .stage .t4 { animation-delay: -3.2s; }
@keyframes bob { 50% { translate: 0 -6px; } }
.scene .src { animation: src 5.2s cubic-bezier(.16, 1, .3, 1) infinite; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes src { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 8%, 18% { opacity: 1; transform: none; } 24%, 92% { opacity: .38; transform: scale(.98); } 100% { opacity: 0; } }
.scene .dst { animation: dst 5.2s cubic-bezier(.16, 1, .3, 1) infinite; transform-box: fill-box; transform-origin: 20% 0; }
@keyframes dst { 0%, 58% { opacity: 0; transform: translateY(-8px) scale(.9); } 66%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stage .fly, .stage circle[r="4"], .stage circle[r="3"], .stage circle[r="2.5"] { display: none; } .scene .src, .scene .dst { opacity: 1; } }
@media (max-width: 700px) { .stage-w { margin-inline: -9%; } .ph { scale: 1.22; } .stage-l { font-size: 12px; margin-top: -10px; padding-bottom: 28px; } .hero2 h1 { letter-spacing: -.035em; } }

/* шаги появляются по мере прокрутки — там, где браузер это умеет */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .step > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    @keyframes rise { from { opacity: .001; transform: translateY(28px); filter: blur(6px); } }
  }
}
/* выбранная карточка светится по контуру */
.opt:has(input:checked) { box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px rgb(109 40 217 / .12), 0 18px 36px -18px rgb(109 40 217 / .6); }

/* сообщение в предпросмотре — как его собирает приложение */
.m-code b { font: 700 17px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.m-btn { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 600; color: var(--accent-hi); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.m-big { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.m-stop { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.m-meta i, .bub small i { font-style: italic; }
/* сцена целиком помещается в экран компьютера */
@media (min-width: 901px) {
  .hero2 { padding-top: clamp(28px, 4vh, 56px); }
  .hero2 h1 { font-size: clamp(40px, min(5.4vw, 9vh), 84px); margin-bottom: 16px; }
  .hero2 .lead { margin-bottom: 20px; max-width: 46em; }
  .stage-w { max-width: clamp(540px, calc((100svh - 486px) * 2.214), 1180px); }
  .stage-l { margin-top: -22px; padding-bottom: 28px; }
}

/* ---------- шаг 1: «пульт» каналов вместо сетки карточек ---------- */
.rail { position: relative; overflow: hidden; isolation: isolate; padding: clamp(18px, 2.6vw, 30px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgb(109 40 217 / .5); }
.rail::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 100% 0%, rgb(42 171 238 / .13), transparent 70%), radial-gradient(55% 90% at 0% 100%, rgb(139 92 246 / .16), transparent 70%); }
.rail-row { --g: 10px; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--g); padding-bottom: 18px; }
.rt { position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 22%; background: #fff; border: 1px solid var(--line); color: var(--accent); cursor: pointer; transition: translate .35s cubic-bezier(.16, 1, .3, 1), border-color .2s, box-shadow .3s; }
.rt input { position: absolute; opacity: 0; pointer-events: none; }
.rt svg { width: 46%; height: 46%; }
.rt:hover { border-color: var(--line-accent); translate: 0 -2px; }
.rt:has(input:checked) { border-color: var(--accent); translate: 0 -6px; box-shadow: 0 0 0 1px var(--accent), 0 0 0 6px rgb(109 40 217 / .1), 0 18px 30px -14px rgb(109 40 217 / .55); }
.rt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.rail-glow { position: absolute; left: 0; bottom: 0; width: calc((100% - 6 * var(--g)) / 7); height: 4px; border-radius: 4px; background: linear-gradient(90deg, #8b5cf6, #2aabee); box-shadow: 0 0 14px rgb(109 40 217 / .6); translate: calc(var(--i, 0) * (100% + var(--g))) 0; transition: translate .5s cubic-bezier(.16, 1, .3, 1); }
.rail-row:has(.rt:nth-of-type(1) input:checked) { --i: 0; }
.rail-row:has(.rt:nth-of-type(2) input:checked) { --i: 1; }
.rail-row:has(.rt:nth-of-type(3) input:checked) { --i: 2; }
.rail-row:has(.rt:nth-of-type(4) input:checked) { --i: 3; }
.rail-row:has(.rt:nth-of-type(5) input:checked) { --i: 4; }
.rail-row:has(.rt:nth-of-type(6) input:checked) { --i: 5; }
.rail-row:has(.rt:nth-of-type(7) input:checked) { --i: 6; }

.dets { padding-top: clamp(18px, 2.4vw, 28px); min-height: 172px; }
.det { display: none; }
.rail:has(input[value="telegram"]:checked) .det[data-k="telegram"], .rail:has(input[value="email"]:checked) .det[data-k="email"], .rail:has(input[value="slack"]:checked) .det[data-k="slack"], .rail:has(input[value="discord"]:checked) .det[data-k="discord"], .rail:has(input[value="teams"]:checked) .det[data-k="teams"], .rail:has(input[value="chat"]:checked) .det[data-k="chat"], .rail:has(input[value="webhook"]:checked) .det[data-k="webhook"] { display: block; }
.det h3 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; letter-spacing: -.035em; margin: 0 0 12px; }
.det p { margin: 0 0 14px; font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 30em; }
.det .go { font-size: 15px; font-weight: 600; color: var(--accent-hi); text-decoration: none; }
.det .go::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg) translateY(-1px); }
.det .go:hover { text-decoration: underline; }
@media (max-width: 560px) { .rail-row { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-bottom: 0; } .rail-glow { display: none; } .rt:has(input:checked) { translate: 0 -3px; } .dets { min-height: 190px; } }
#destinations h2 { margin-bottom: 22px; }
@media (max-width: 900px) { .wz-steps { grid-row: auto; } }
@media (max-width: 700px) { .stage-l { margin: 10px 9% 0; } .stage-l span { width: 44%; } }

/* ---------- цены: годовой тариф выделен, остальные тише ---------- */
.pr { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: center; }
.pr .plan { position: relative; padding: 24px; border-radius: 22px; }
.pr .plan h3 { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pr .plan .big { font-size: clamp(30px, 3vw, 40px); line-height: 1; margin: 0 0 12px; font-variant-numeric: tabular-nums; }
.pr .plan p { font-size: 15px; }
.pr .pr-free { background: transparent; border-style: dashed; border-color: #c4bfd6; }
.pr .plan.hi { padding: 34px 28px; background: linear-gradient(160deg, #7c3aed, #6d28d9 45%, #5b21b6); border-color: transparent; color: #fff; box-shadow: 0 34px 60px -28px rgb(109 40 217 / .75), 0 0 0 1px rgb(255 255 255 / .16) inset; }
.pr .plan.hi h3, .pr .plan.hi p { color: rgb(255 255 255 / .86); }
.pr .plan.hi .big { font-size: clamp(40px, 4.4vw, 58px); letter-spacing: -.03em; }
.pr .plan.hi .big small, .pr .plan.hi s { color: rgb(255 255 255 / .7); }
.pr .plan.hi .eq { color: #fff; font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.pr .plan.hi s { font-weight: 400; margin-left: 6px; }
.save { position: absolute; top: -13px; right: 22px; font-size: 13px; font-weight: 700; color: #3b1d8f; background: #fff; border: 1px solid var(--line-accent); border-radius: 999px; padding: 5px 12px; box-shadow: 0 8px 18px -8px rgb(23 20 43 / .35); }
.pr-inc { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; font-size: 15px; color: var(--text-2); }
.pr-inc li:not(:first-child) { padding-left: 26px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236d28d9' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") left center/16px no-repeat; }
.pr-inc b { color: var(--text); }
@media (max-width: 960px) { .pr { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } .pr .plan.hi { order: -1; grid-column: 1 / -1; } }
@media (max-width: 520px) { .pr { grid-template-columns: 1fr; } }

/* ---------- шаг 2: фраза вместо двух карточек ---------- */
.say { margin: 4px 0 26px; font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; line-height: 1.75; letter-spacing: -.015em; color: var(--text); text-wrap: wrap; }
.seg { display: inline-flex; vertical-align: middle; margin: 0 .2em; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .68em; line-height: 1; letter-spacing: 0; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label > span { display: block; padding: .62em 1em; border-radius: 999px; color: var(--text-2); transition: background .25s, color .25s, box-shadow .25s; }
.seg input:checked + span { background: var(--accent); color: #fff; box-shadow: 0 8px 18px -8px rgb(109 40 217 / .7); }
.seg label:has(input:focus-visible) > span { outline: 2px solid var(--accent); outline-offset: 2px; }
.say-more[hidden] { display: none; }
.ink input { font: inherit; letter-spacing: inherit; color: var(--accent-hi); background: var(--accent-soft); border: 0; border-bottom: 2px solid var(--accent); border-radius: 8px 8px 0 0; padding: 0 .3em; margin: 0 .1em; max-width: 9em; caret-color: var(--accent); }
.ink input::placeholder { color: #8a84ad; font-weight: 500; }
.ink input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.can { max-width: 560px; margin-top: 0; }
.can li { color: var(--text-2); }

/* шаг 4: части сообщения включаются прямо во фразе */
.tog { position: relative; display: inline-block; cursor: pointer; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog span { display: inline-block; padding: 0 .45em; margin: 0 .05em; border-radius: 10px; line-height: 1.4; color: #8a84ad; background: transparent; box-shadow: inset 0 0 0 1.5px #c4bfd6; text-decoration: line-through; text-decoration-thickness: 1.5px; transition: background .25s, color .25s, box-shadow .25s; }
.tog input:checked + span { color: var(--accent-hi); background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--line-accent); text-decoration: none; }
.tog:hover span { box-shadow: inset 0 0 0 1.5px var(--accent); }
.tog:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= все блоки главной: общий ритм ================= */
section.s { padding: clamp(72px, 9vw, 128px) 0; border-top: 0; }
section.s > .wrap > h2, .faq2-h h2 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 16px; }
section.s > .wrap > .s-lead { font-size: clamp(17px, 1.5vw, 20px); margin-bottom: clamp(32px, 4vw, 52px); }
.step h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.03em; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .bento .cell, .pr .plan, .acc details, .strip .art, .fin-in { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

/* шаг 3: панель с выключателем */
.vault { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 14px; padding: clamp(16px, 2.4vw, 26px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgb(109 40 217 / .5); }
.vault::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 90% at 0% 0%, rgb(22 163 74 / .1), transparent 70%), radial-gradient(55% 90% at 100% 100%, rgb(139 92 246 / .14), transparent 70%); }
.vault .switch { box-shadow: none; border-color: var(--line); padding: 20px; }
.vault .switch b { font-size: clamp(18px, 1.9vw, 22px); letter-spacing: -.01em; }
.vault .safe { margin: 0; }
.vault .try { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* шаг 5: финал мастера */
.done { position: relative; isolation: isolate; overflow: hidden; padding: clamp(20px, 3vw, 32px); border-radius: 28px; background: var(--surface); border: 1px solid var(--line-accent); box-shadow: 0 36px 70px -44px rgb(109 40 217 / .7); }
.done::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 120% at 100% 0%, rgb(139 92 246 / .2), transparent 65%), radial-gradient(60% 100% at 0% 100%, rgb(42 171 238 / .14), transparent 70%); }
.done .allset { max-width: none; margin-bottom: 18px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(160deg, #7c3aed, #6d28d9 45%, #5b21b6); }
.done .allset b { font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.015em; }
.done > p:not(.allset) { margin: 0 0 20px; color: var(--text-2); font-size: 17px; max-width: 34em; }

/* лента экранов: ступеньками, с подписями */
.strip { align-items: flex-start; padding-top: 12px; padding-bottom: 40px; }
.strip .art { width: min(280px, 70vw); overflow: visible; border: 0; background: none; box-shadow: none; transition: translate .5s cubic-bezier(.16, 1, .3, 1); }
.strip .art img { border-radius: 26px; border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgb(23 20 43 / .45); }
.strip .art:nth-child(even) { margin-top: 44px; }
.strip .art:hover { translate: 0 -8px; }
.strip figcaption { margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--text); }
@media (max-width: 700px) { .strip .art:nth-child(even) { margin-top: 24px; } }

/* возможности: бенто */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cell { position: relative; overflow: hidden; padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, translate .4s cubic-bezier(.16, 1, .3, 1), box-shadow .3s; }
.cell:hover { border-color: var(--line-accent); translate: 0 -3px; box-shadow: 0 26px 50px -36px rgb(109 40 217 / .55); }
.cell h3 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 6px; }
.cell p { margin: 0; font-size: 15px; color: var(--text-2); }
.cell > .ico { margin-bottom: 18px; width: 44px; height: 44px; border-radius: 13px; }
.c-hist { grid-column: span 2; grid-row: span 2; padding: 30px; background: linear-gradient(180deg, #fff, var(--tile)); }
.c-hist h3, .c-retry h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.02em; }
.c-hist p { font-size: 16px; max-width: 28em; }
.c-retry { grid-column: span 2; }
.c-words { grid-column: span 2; }
.hist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.hist li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.hist b { color: var(--text); } .hist span { color: var(--muted); flex: 1; }
.hist i { font-style: normal; font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; }
.hist .ok { color: #166534; background: #dcfce7; }
.hist .bad i { color: #b91c1c; background: #fee2e2; }
.hist .bad { border-color: #fecaca; }
.hist u { text-decoration: none; font-weight: 600; font-size: 13px; color: #fff; background: var(--accent); border-radius: 999px; padding: 5px 12px; }
.retry { display: flex; align-items: center; gap: 0; margin-top: 22px; }
.retry i { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c4bfd6; flex: none; }
.retry i + i { margin-left: calc((100% - 72px) / 5); position: relative; }
.retry i + i::before { content: ""; position: absolute; right: 100%; top: 50%; width: 100vw; max-width: 200px; height: 2px; margin-right: 2px; background: repeating-linear-gradient(90deg, #c4bfd6 0 4px, transparent 4px 9px); translate: 0 -50%; }
.retry .hit { width: 22px; height: 22px; border: 0; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: 0 0 0 6px rgb(109 40 217 / .14); }
.words { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; color: var(--text); }
.words s { color: #8a84ad; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
@media (max-width: 960px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .c-hist { grid-row: auto; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .c-hist, .c-retry, .c-words { grid-column: auto; } .hist span { display: none; } .hist b { flex: 1; } }

/* вопросы */
.faq2 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.faq2-h { position: sticky; top: calc(var(--header-h) + 36px); }
.faq2-h .s-lead { margin: 0; font-size: 17px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { position: relative; list-style: none; cursor: pointer; padding: 22px 48px 22px 0; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary h3 { margin: 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; letter-spacing: -.01em; }
.acc summary::before, .acc summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); transition: rotate .35s cubic-bezier(.16, 1, .3, 1), opacity .2s; }
.acc summary::after { rotate: 90deg; }
.acc details[open] summary::after { rotate: 0deg; opacity: 0; }
.acc summary:hover h3 { color: var(--accent-hi); }
.acc details p { margin: -6px 0 22px; color: var(--text-2); max-width: 40em; }
@media (max-width: 860px) { .faq2 { grid-template-columns: 1fr; } .faq2-h { position: static; } }

/* последний призыв */
.fin { padding: 0 0 clamp(56px, 7vw, 96px); }
.fin-in { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(48px, 8vw, 104px) 24px; border-radius: clamp(28px, 4vw, 44px); color: #fff; background: linear-gradient(160deg, #7c3aed, #6d28d9 45%, #4c1d95); box-shadow: 0 50px 90px -50px rgb(109 40 217 / .9); }
.fin-in::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgb(255 255 255 / .22) 1px, transparent 1.4px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent); mask-image: radial-gradient(70% 80% at 50% 0%, #000, transparent); }
.fin-arc { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; z-index: -1; }
.fin-in h2 { font-size: clamp(36px, 6vw, 84px); line-height: 1; letter-spacing: -.04em; margin: 0 0 16px; }
.fin-in p { margin: 0 auto 28px; font-size: clamp(17px, 1.5vw, 20px); color: rgb(255 255 255 / .86); max-width: 30em; }
.fin-in .ctas { justify-content: center; }
.fin-in .btn-pri { background: #fff; color: #4c1d95; }
.fin-in .btn-pri:hover { background: var(--accent-soft); color: #4c1d95; }
.fin-in .btn-ghost { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .35); color: #fff; }
.fin-in .btn-ghost:hover { background: rgb(255 255 255 / .22); color: #fff; }
.fin-in :focus-visible { outline-color: #fff; }
.foot { border-top: 0; background: transparent; }
.c-words { grid-column: auto; }
.wz { padding-bottom: 8px; }
@media (max-width: 960px) { .c-words { grid-column: auto; } }

/* коды: причина и кнопка прямо в предпросмотре */
.m-on { margin-top: 12px; width: 100%; font: 600 14px/1 var(--font); color: #fff; background: var(--accent); border: 0; border-radius: 10px; padding: 11px 12px; cursor: pointer; transition: background .2s, translate .2s; }
.m-on:hover { background: var(--accent-hi); translate: 0 -1px; }
.m-on:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch:has(input:checked) #codes-state { color: #166534; }

/* вопросы: выдвижение ответа */
.acc-b { overflow: hidden; }
.acc details p { margin: 0; padding: 0 0 22px; }
.acc details.closing summary::after { rotate: 90deg; opacity: 1; }

/* тарифы — объёмные кнопки */
.pr { perspective: 1200px; }
.pr .plan { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .35s; cursor: default; will-change: transform; background-clip: padding-box; }
.pr .plan:not(.hi):not(.pr-free) { box-shadow: 0 1px 0 #fff inset, 0 6px 0 -1px #dcd8ea, 0 22px 30px -22px rgb(23 20 43 / .35); }
.pr .plan.hi { box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 8px 0 -1px #3b1d8f, 0 40px 60px -28px rgb(109 40 217 / .8); }
.pr .plan:hover { transition: transform .12s linear, box-shadow .35s; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(18px); }
.pr .plan:active { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(5px) translateZ(0); }
.pr .plan:not(.hi):not(.pr-free):active { box-shadow: 0 1px 0 #fff inset, 0 1px 0 -1px #dcd8ea, 0 8px 14px -12px rgb(23 20 43 / .35); }
.pr .plan.hi:active { box-shadow: 0 1px 0 rgb(255 255 255 / .35) inset, 0 2px 0 -1px #3b1d8f, 0 16px 30px -20px rgb(109 40 217 / .8); }
.pr .plan::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .55), transparent 60%); mix-blend-mode: soft-light; }
.pr .plan.hi::after { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / .45), transparent 60%); mix-blend-mode: normal; }
.pr .plan:hover::after { opacity: 1; }
.pr .plan > * { transform: translateZ(22px); }
.pr .plan .save { transform: translateZ(40px); }
@supports (animation-timeline: view()) { .pr .plan { animation: none; } }

/* тарифы в настоящем 3D: холст поверх сетки, сами карточки остаются в вёрстке невидимыми — для поиска, чтения с экрана и наведения */
.pr { position: relative; }
.pr-gl { position: absolute; left: -110px; top: -110px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.pr.gl-on .pr-gl { opacity: 1; }
.pr.gl .plan { transform: none !important; animation: none !important; transition: opacity .45s ease, box-shadow .45s ease !important; }
.pr.gl-on .plan { opacity: 0; box-shadow: none !important; }
.pr.gl .plan > * { transform: none !important; }
.pr.gl .plan::after { display: none; }

/* «Copy code» в предпросмотре — настоящая кнопка */
button.m-btn { display: block; width: 100%; font-family: var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s, translate .15s; }
button.m-btn:hover { background: #fff; border-color: var(--line-accent); }
button.m-btn:active { translate: 0 1px; }
button.m-btn.ok { color: #166534; background: #dcfce7; border-color: #bfe3cc; }
button.m-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* фон главной: поле точек с «водой» за курсором (рисует src/app.js) */
.dots { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.dots-on .hero2::before { display: none; }
.dots-on .wz-bar { background: rgb(244 243 249 / .82); box-shadow: none; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); margin-inline: -12px; padding-inline: 12px; border-radius: 0 0 14px 14px; }

/* точки фона не лезут под текст: видны по бокам и плавно исчезают к колонке с содержимым */
.dots { -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 760px), transparent calc(50% - 560px), transparent calc(50% + 560px), #000 calc(50% + 760px), #000 100%); mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 760px), transparent calc(50% - 560px), transparent calc(50% + 560px), #000 calc(50% + 760px), #000 100%); }
/* переход к пункту (оглавление Privacy и Terms, ссылки меню): заголовок встаёт под шапкой, а не прячется за ней */
html { scroll-padding-top: var(--header-h); }  /* заголовок пункта встаёт ровно под шапку */

/* Privacy и Terms: оглавление сбоку, всегда на виду */
.docgrid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(32px, 5vw, 76px); align-items: start; }
.docgrid .doc { min-width: 0; }
.toc2 { position: sticky; top: var(--header-h); max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 44px 8px 32px 0; font-size: 14.5px; scrollbar-width: thin; }
.toc2 b { display: block; margin: 0 0 12px 18px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc2 a { position: relative; display: block; padding: 7px 10px 7px 18px; border-left: 2px solid var(--line); color: var(--text-2); text-decoration: none; line-height: 1.35; transition: color .2s, background .25s; }
.toc2 a span { display: inline-block; transition: translate .35s cubic-bezier(.16, 1, .3, 1); }
.toc2 a::before { content: ""; position: absolute; left: -2px; top: 50%; width: 2px; height: 0; background: var(--accent); transition: height .3s cubic-bezier(.16, 1, .3, 1), top .3s cubic-bezier(.16, 1, .3, 1); }
.toc2 a:hover { color: var(--text); background: linear-gradient(90deg, var(--accent-soft), transparent 85%); }
.toc2 a:hover span { translate: 6px 0; }
.toc2 a:hover::before, .toc2 a.on::before { height: 100%; top: 0; }
.toc2 a.on { color: var(--accent-hi); font-weight: 600; }
.toc2 a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
@media (max-width: 900px) {
  .docgrid { grid-template-columns: 1fr; gap: 0; }
  .toc2 { position: static; max-height: none; padding: 20px 0 0; order: 2; }
  .docgrid .doc { display: contents; }
  .docgrid .doc > * { order: 3; }
  .docgrid .doc > .crumbs, .docgrid .doc > h1, .docgrid .doc > .updated { order: 1; }
  .toc2 nav { columns: 2; column-gap: 20px; }
  .toc2 a { break-inside: avoid; }
}
@media (max-width: 520px) { .toc2 nav { columns: 1; } }
@media (max-width: 900px) { .docgrid { padding-top: 28px; padding-bottom: 80px; } }

/* ---------- шаг 1, спокойный вид: вкладки с подписями и одна панель описания ---------- */
.rail { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.rail::before { display: none; }
.rail-row { display: block; padding: 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.rail-row::-webkit-scrollbar { display: none; }
.rail-tabs { --g: 0px; position: relative; display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); }
.rt { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 16px; border: 0; border-radius: 10px 10px 0 0; background: none; color: var(--muted); translate: none; transition: color .2s, background .2s; }
.rt svg { width: 24px; height: 24px; }
.rt-n { font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; }
.rt:hover { translate: none; background: rgb(109 40 217 / .05); color: var(--text); }
.rt:has(input:checked) { translate: none; box-shadow: none; border: 0; color: var(--text); }
.rt:has(input:checked) .rt-n { font-weight: 600; }
.rt:has(input:focus-visible) { outline-offset: -2px; }
.rail-glow { bottom: -1px; width: calc(100% / 7); height: 2px; border-radius: 0; background: var(--accent); box-shadow: none; translate: calc(var(--i, 0) * 100%) 0; transition: translate .45s cubic-bezier(.16, 1, .3, 1); }
.rail-tabs:has(.rt:nth-of-type(1) input:checked) { --i: 0; }
.rail-tabs:has(.rt:nth-of-type(2) input:checked) { --i: 1; }
.rail-tabs:has(.rt:nth-of-type(3) input:checked) { --i: 2; }
.rail-tabs:has(.rt:nth-of-type(4) input:checked) { --i: 3; }
.rail-tabs:has(.rt:nth-of-type(5) input:checked) { --i: 4; }
.rail-tabs:has(.rt:nth-of-type(6) input:checked) { --i: 5; }
.rail-tabs:has(.rt:nth-of-type(7) input:checked) { --i: 6; }

.dets { position: relative; overflow: hidden; padding-top: 28px; min-height: 168px; }
.rail .det, .rail:has(input:checked) .det { animation: none; }
.det h3 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 10px; }
.det p { font-size: 17px; max-width: 28em; margin-bottom: 16px; }
@media (max-width: 560px) { .rail-row { grid-template-columns: none; } .rail-glow { display: block; } .rail-tabs { min-width: 532px; } .dets { min-height: 184px; } }
/* предпросмотр: никакого размытия; смена вида сообщения — вертикальным сдвигом (делает скрипт) */
.pv-msg { overflow: hidden; }
.pv-msg.in > .m { animation: none; }

/* предпросмотр: уходящее сообщение лежит поверх, пока въезжает новое */
.pv-msg { position: relative; }
.pv-old { position: absolute; inset: 0 0 auto 0; pointer-events: none; }

/* ---------- блок вкладок (src/tabs.js): состояние в data-state, индикатор по --tab-x / --tab-w ---------- */
[data-tabs][data-ready] [data-tabs-indicator] { width: var(--tab-w, 0); translate: var(--tab-x, 0) 0; transition: translate calc(var(--swap-ms) * 1ms) var(--swap-ease), width calc(var(--swap-ms) * 1ms) var(--swap-ease); }
[data-tabs][data-ready] [data-tabs-panels] { position: relative; overflow: hidden; }
[data-tabs][data-ready] [data-tabs-content] { display: none; width: 100%; }
[data-tabs][data-ready] [data-tabs-content][data-state="active"] { display: block; }
[data-tabs][data-ready] [data-tabs-content].is-leaving { display: block; position: absolute; left: 0; right: 0; top: var(--tabs-pad, 0); pointer-events: none; }
.rail .dets { --tabs-pad: 28px; }

/* телефон: закреплённый внизу пример занимает меньше экрана; ряд вкладок листается пальцем */
@media (max-width: 900px) {
  .pv-msg { max-height: 24vh; }
  .pv-out { padding: 10px 12px; }
  .pv-out .m { padding: 10px 12px; font-size: 14px; }
  .rail-row { scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .rt { scroll-snap-align: center; }
}

/* заголовок пункта: полоса на всю ширину колонки вспыхивает, когда к нему перешли, и при наведении */
.doc h2[id], .guide article h2[id] { position: relative; margin-left: -16px; margin-right: -16px; padding: 10px 16px; border-radius: 12px; scroll-margin-top: 4px; }
.doc h2[id]::before, .guide article h2[id]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transform-origin: 50% 0; }
.doc h2[id].hit, .doc h2[id]:hover, .guide article h2[id].hit, .guide article h2[id]:hover { animation: mark 2.25s cubic-bezier(.16, 1, .3, 1) both; }
.doc h2[id].hit::before, .doc h2[id]:hover::before, .guide article h2[id].hit::before, .guide article h2[id]:hover::before { animation: markbar 2.25s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mark { 0% { background: transparent; } 18% { background: var(--accent-soft); } 100% { background: transparent; } }
@keyframes markbar { 0% { transform: scaleY(0); } 18%, 70% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .doc h2[id]:target, .guide article h2[id]:target { background: var(--accent-soft); } }
.doc h2[id] { max-width: 792px; }

/* ================= плавная загрузка ================= */
/* пока Inter не подгрузился, текст набран запасным шрифтом с теми же размерами строк — страница не «прыгает» при подмене */
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107.12%; ascent-override: 90.44%; descent-override: 22.52%; line-gap-override: 0%; }
/* переход между страницами сайта — мягким растворением, там, где браузер это умеет */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
@media (prefers-reduced-motion: no-preference) {
  /* первый экран собирается по частям: заголовок, текст, кнопки, сцена */
  .hero2 h1, .hero2 .lead, .hero2 .ctas, .hero2 .note, .hero2 .stage-w, main > .wrap > *, .docgrid > * { animation: enter .7s cubic-bezier(.16, 1, .3, 1) both; }
  .hero2 .lead { animation-delay: .07s; } .hero2 .ctas { animation-delay: .14s; } .hero2 .note { animation-delay: .2s; }
  .hero2 .stage-w { animation-duration: 1s; animation-delay: .22s; }
  .docgrid > .doc { animation-delay: .06s; }
  @keyframes enter { from { opacity: 0; transform: translateY(16px); } }
  .top { animation: enter-top .5s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes enter-top { from { opacity: 0; } }
  /* картинки и фон проявляются, когда загрузились, а не появляются рывком */
  .js img[loading="lazy"] { opacity: 0; transition: opacity .6s ease; }
  .js img[loading="lazy"].in { opacity: 1; }
  .dots { animation: enter-top 1.2s ease both; }
}

/* кнопка магазина: значок и место в закреплённом предпросмотре — она всегда на экране, пока листаешь шаги */
.btn svg { width: 16px; height: 16px; flex: none; }
.pv-store { display: flex; width: 100%; margin-top: 14px; min-height: 46px; box-shadow: 0 14px 28px -16px rgb(109 40 217 / .7); }
a.pv-store:hover { translate: 0 -1px; }
@media (max-width: 900px) { .pv-store { min-height: 40px; margin-top: 10px; font-size: 14px; } }

/* метка «First month $1» на месячном тарифе — в цвет акцента, чтобы отличалась от «Save 16%» */
.save-in { color: #fff; background: var(--accent); border-color: transparent; }

/* ================= только телефон ================= */
/* сцена первого экрана идёт от прокрутки (ставит src/app.js): --sp — доля пути 0..1, --t — секунда общего цикла */
.scene.scrub .src, .scene.scrub .dst { animation-play-state: paused; animation-delay: calc(var(--t, 0) * -1s); }
.scene.scrub .ph { animation: none; translate: 0 calc(var(--sp, 0) * -10 * var(--u)); }
.scene.scrub .ph-b { transition: none; transform: rotateY(calc(var(--ry) * (1.25 - var(--sp, 0) * .95))) rotateX(calc(12deg - var(--sp, 0) * 9deg)) rotateZ(calc(var(--ry) * -.06 * (1 - var(--sp, 0)))); }
.scene.scrub .ph-l { left: calc((96 + var(--sp, 0) * 46) * var(--u)); }
.scene.scrub .ph-r { left: calc((924 - var(--sp, 0) * 46) * var(--u)); }
.scene.scrub .ph-sh { animation: none; }
/* панели вкладок можно тянуть пальцем вбок, вертикальная прокрутка остаётся */
[data-tabs-panels] { touch-action: pan-y; }
/* отклик на нажатие пальцем: элемент чуть сжимается и отпружинивает */
@media (hover: none) and (pointer: coarse) {
  .btn, .rt, .seg label > span, .tog span, .pv-samples button, .try-btn, .cell, .acc summary, .toc2 a, .det .go { transition: scale .18s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
  .btn:active, .pv-samples button:active, .try-btn:active { scale: .95; }
  .rt:active, .seg label:active > span, .tog:active span { scale: .93; }
  .cell:active { scale: .98; }
  .acc summary:active, .toc2 a:active, .det .go:active { scale: .98; }
  .pr .plan { transition: scale .2s cubic-bezier(.3, 1.6, .5, 1); }
  .pr .plan:active { scale: .97; transform: none; }
}

/* ================= только телефон, вторая часть (класс .m-anim ставит src/app.js) ================= */
@media (max-width: 900px) {
  /* точки фона на телефоне видны слабо по всей ширине: от касания по ним расходится пятно */
  .dots { -webkit-mask-image: none; mask-image: none; opacity: .55; }
  /* пример сообщения внизу сворачивается в полоску и пружинисто раскрывается */
  .m-anim .pv-out { transition: padding .35s cubic-bezier(.3, 1.3, .5, 1), box-shadow .3s; }
  .m-anim .pv-out .pv-cap { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: margin .35s; }
  .m-anim .pv-out .pv-cap::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -2px; transition: rotate .35s cubic-bezier(.3, 1.4, .5, 1), translate .35s; }
  .m-anim .pv-out .pv-msg, .m-anim .pv-out .pv-store { transition: max-height .45s cubic-bezier(.3, 1.25, .5, 1), min-height .35s, opacity .25s, margin .35s, padding .35s, scale .45s cubic-bezier(.3, 1.25, .5, 1); transform-origin: 50% 100%; overflow: hidden; }
  .m-anim .pv-out .pv-store { max-height: 46px; }
  .m-anim .pv-out.fold { padding-top: 9px; padding-bottom: 9px; }
  .m-anim .pv-out.fold .pv-cap { margin-bottom: 0; }
  .m-anim .pv-out.fold .pv-cap::after { rotate: 225deg; translate: 0 3px; }
  .m-anim .pv-out.fold .pv-store { margin-top: 8px; }   /* кнопка Google Play остаётся и в свёрнутой полоске */
  .m-anim .pv-out.fold .pv-msg { max-height: 0; min-height: 0; opacity: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; scale: .96; border-width: 0; }
  /* полоска шагов: заполнение идёт от прокрутки, без рывка */
  .m-anim .dashes i { transition: none; }
  /* заголовки проявляются по словам */
  .m-anim .wds .wd { display: inline-block; opacity: 0; translate: 0 .45em; filter: blur(6px); transition: opacity .5s ease, translate .6s cubic-bezier(.16, 1, .3, 1), filter .5s ease; transition-delay: calc(var(--i) * 55ms); }
  .m-anim .wds.seen .wd { opacity: 1; translate: 0 0; filter: none; }
  /* ячейки возможностей: строки истории встают по очереди, попытки дорисовываются */
  .m-anim .hist li { opacity: 0; translate: 18px 0; transition: opacity .45s ease, translate .55s cubic-bezier(.16, 1, .3, 1), border-color .4s, scale .3s cubic-bezier(.3, 1.6, .5, 1); }
  .m-anim .hist li:nth-child(2) { transition-delay: .12s; } .m-anim .hist li:nth-child(3) { transition-delay: .24s; }
  .m-anim .seen .hist li { opacity: 1; translate: 0 0; }
  .m-anim .hist li.fixing { scale: .97; transition-delay: 0s; }
  .m-anim .hist li.fixed { transition-delay: 0s; border-color: #bbf7d0; }
  .m-anim .hist li.fixed u { display: none; }
  .m-anim .hist li.fixed i { animation: pop-in .45s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes pop-in { from { scale: .6; opacity: 0; } }
  .m-anim .retry i { scale: 0; opacity: 0; transition: scale .35s cubic-bezier(.3, 1.7, .5, 1), opacity .2s; }
  .m-anim .retry i:nth-child(2) { transition-delay: .18s; } .m-anim .retry i:nth-child(3) { transition-delay: .36s; } .m-anim .retry i:nth-child(4) { transition-delay: .54s; } .m-anim .retry i:nth-child(5) { transition-delay: .72s; } .m-anim .retry i:nth-child(6) { transition-delay: .95s; }
  .m-anim .seen .retry i { scale: 1; opacity: 1; }
  .m-anim .cell > svg, .m-anim .cell > .ico { transition: scale .5s cubic-bezier(.3, 1.7, .5, 1) .1s, rotate .5s cubic-bezier(.3, 1.7, .5, 1) .1s; scale: .5; rotate: -18deg; }
  .m-anim .cell.seen > svg, .m-anim .cell.seen > .ico { scale: 1; rotate: 0deg; }
  .m-anim .pr-inc li { opacity: 0; translate: 0 8px; transition: opacity .4s, translate .5s cubic-bezier(.16, 1, .3, 1); }
  .m-anim .pr-inc li:nth-child(2) { transition-delay: .1s; } .m-anim .pr-inc li:nth-child(3) { transition-delay: .2s; } .m-anim .pr-inc li:nth-child(4) { transition-delay: .3s; }
  .m-anim .pr-inc.seen li { opacity: 1; translate: 0 0; }
}

/* ---------- шаг 4 «Turn it on»: спокойная карточка правила, как строка в приложении — без градиентов и свечения ---------- */
.done { overflow: visible; padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: none; max-width: 560px; }
.done::before { display: none; }
.rule { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.rule-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-hi); }
.rule-ic svg { width: 18px; height: 18px; }
.rule-t { flex: 1; min-width: 0; margin: 0; display: grid; gap: 3px; line-height: 1.3; }
.rule-t b { font-size: 17px; font-weight: 600; color: var(--text); }
.rule-t > span { font-size: 14px; color: var(--muted); }
.rule-sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 26px; background: var(--accent); }
.rule-sw::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(23 20 43 / .3); }
.done > .done-note { margin: 0; padding: 16px 20px 0; font-size: 15px; color: var(--text-2); max-width: none; }
.done .ctas { padding: 16px 20px 20px; margin: 0; }
@media (max-width: 560px) { .done .ctas { display: grid; } .done .ctas .btn { width: 100%; justify-content: center; } }
/* вкладки на сенсорном экране: без «залипшей» подложки и рамки после нажатия */
@media (hover: none) { .rt:hover { background: none; color: var(--muted); } .rt:has(input:checked):hover { color: var(--text); } .rt:has(input:focus-visible) { outline: none; } }

/* ---------- шаг 4, вторая версия: живой выключатель — текст идёт с телефона в канал, сетка точек расходится волной ---------- */
.done { overflow: hidden; transition: border-color .5s, box-shadow .6s; }
.done.on { border-color: var(--line-accent); box-shadow: 0 24px 50px -36px rgb(109 40 217 / .55); }
.flow { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 34px 26px; background: var(--tile); border-bottom: 1px solid var(--line); overflow: hidden; }
.flow-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(14, 1fr); grid-template-rows: repeat(5, 1fr); place-items: center; padding: 8px 6px; }
.flow-grid i { width: 3px; height: 3px; border-radius: 50%; background: #cfc7ea; }
.flow-line { position: absolute; left: 76px; right: 76px; top: 50%; height: 10px; width: calc(100% - 152px); translate: 0 -50%; overflow: visible; }
.flow-line path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.fl-base { stroke: #b9b3d1; stroke-width: 2; stroke-dasharray: 1 7; }
.fl-on { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 10 9; opacity: 0; transition: opacity .4s; }
.done.on .fl-on { opacity: 1; animation: flow-run .7s linear infinite; }
@keyframes flow-run { to { stroke-dashoffset: -19; } }
.flow-chip { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: border-color .4s, color .4s, box-shadow .5s; }
.flow-chip svg { width: 24px; height: 24px; }
.done.on .flow-chip { border-color: var(--line-accent); color: var(--accent); box-shadow: 0 10px 20px -12px rgb(109 40 217 / .6); }
.flow-sw { position: relative; z-index: 1; flex: none; width: 78px; height: 44px; padding: 0; border: 0; border-radius: 44px; background: #c9c4dc; cursor: pointer; transition: background .35s, box-shadow .45s; -webkit-tap-highlight-color: transparent; box-shadow: 0 0 0 6px var(--tile); }
.flow-sw i { position: absolute; top: 4px; left: 4px; width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgb(23 20 43 / .28); transition: translate .5s cubic-bezier(.3, 1.55, .45, 1), width .2s; }
.flow-sw:active i { width: 42px; }
.done.on .flow-sw { background: var(--accent); box-shadow: 0 0 0 6px var(--tile), 0 0 0 7px var(--line-accent), 0 14px 26px -10px rgb(109 40 217 / .7); }
.done.on .flow-sw i { translate: 34px 0; }
.done.on .flow-sw:active i { translate: 28px 0; }
.flow-sw:focus-visible { outline: 2px solid var(--accent); outline-offset: 8px; }
.done .rule-t { padding: 20px 20px 0; display: grid; gap: 4px; }
.done .rule-t b { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -.015em; }
.done .rule-t b svg { display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -3px; color: #16a34a; stroke-width: 3; }
.done .rule-t b svg path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.done.on .rule-t b svg path { stroke-dashoffset: 0; transition: stroke-dashoffset .45s cubic-bezier(.3, 0, .2, 1) .25s; }
.done .rule-t > span { font-size: 15px; }
.done:not(.on) .st-on, .done.on .st-off { display: none; }
.done .st-on, .done .st-off { animation: st-in .4s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes st-in { from { opacity: 0; translate: 0 6px; } }
.done > .done-note { padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { .done.on .fl-on, .done .st-on, .done .st-off { animation: none; } .flow-sw i { transition: none; } }

/* ряд вкладок листается только вбок: раньше черта-индикатор выступала на 1px вниз, и ряд можно было тянуть по вертикали */
.rail-row { overflow-y: hidden; overscroll-behavior-x: contain; }
.rail-glow { bottom: 0; }

/* ---------- «Built to keep working»: слово подчёркивается от руки, под текстом без остановки бежит волна ---------- */
.kw-w { position: relative; display: inline-block; color: var(--accent); }
.kw-w svg { position: absolute; left: -2%; right: -2%; bottom: -.14em; width: 104%; height: .2em; overflow: visible; clip-path: inset(-50% 100% -50% 0); transition: clip-path .9s cubic-bezier(.3, 0, .2, 1) .25s; }
.kw.seen .kw-w svg { clip-path: inset(-50% 0 -50% 0); }
.kw-w path { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ticks { display: flex; align-items: center; justify-content: space-between; max-width: 560px; height: 34px; margin: calc(clamp(32px, 4vw, 52px) * -1 + 18px) 0 clamp(28px, 4vw, 44px); }
.ticks i { flex: none; width: 2px; height: 14px; border-radius: 2px; background: #cfc7ea; transform-origin: 50% 50%; animation: tick 2.6s cubic-bezier(.3, 0, .2, 1) infinite; animation-delay: calc(var(--n) * 52ms); }
@keyframes tick { 0%, 26%, 100% { transform: scaleY(.5); background: #cfc7ea; } 10% { transform: scaleY(2.1); background: var(--accent); } }
@media (max-width: 560px) { .ticks i:nth-child(n + 37) { display: none; } }
@media (prefers-reduced-motion: reduce) { .ticks i { animation: none; } .kw-w svg { clip-path: none; transition: none; } }

/* ---------- финальный блок: дуги текут, заголовок поднимается; кнопка магазина — объёмная, нажимается ---------- */
.fin-arc path:first-child { animation: arc-run 1.4s linear infinite; }
.fin-arc path:last-child { stroke-dasharray: 60 1400; stroke-opacity: .55; animation: arc-shot 5s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes arc-run { to { stroke-dashoffset: -15; } }
@keyframes arc-shot { from { stroke-dashoffset: 60; } to { stroke-dashoffset: -1400; } }
.fin-in::before { animation: fin-drift 14s linear infinite; }
@keyframes fin-drift { to { background-position: 26px 52px; } }
.fin-in h2, .fin-in p, .fin-in .ctas { opacity: 0; translate: 0 22px; transition: opacity .7s ease, translate .9s cubic-bezier(.16, 1, .3, 1); }
.fin-in p { transition-delay: .1s; } .fin-in .ctas { transition-delay: .2s; }
.fin-in.seen h2, .fin-in.seen p, .fin-in.seen .ctas { opacity: 1; translate: 0 0; }
.fin-in .btn-pri { position: relative; overflow: hidden; min-height: 56px; padding-inline: 26px; border-radius: 16px; background: linear-gradient(180deg, #fff, #f1ecff); color: #4c1d95; border: 0; translate: 0 0;
  box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgb(76 29 149 / .1) inset, 0 7px 0 #b9a4f5, 0 9px 0 #8f76e0, 0 22px 30px -8px rgb(20 6 60 / .6);
  transition: translate .16s cubic-bezier(.3, 1.6, .5, 1), box-shadow .16s ease; cursor: pointer; scale: 1 !important; }
.fin-in .btn-pri:hover { background: linear-gradient(180deg, #fff, #f1ecff); translate: 0 -2px; box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgb(76 29 149 / .1) inset, 0 9px 0 #b9a4f5, 0 11px 0 #8f76e0, 0 28px 34px -8px rgb(20 6 60 / .6); }
.fin-in .btn-pri:active { translate: 0 7px; box-shadow: 0 1px 0 #fff inset, 0 -2px 0 rgb(76 29 149 / .1) inset, 0 0 0 #b9a4f5, 0 2px 0 #8f76e0, 0 6px 10px -4px rgb(20 6 60 / .6); transition-duration: .06s; }
.fin-in .btn-pri::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(139 92 246 / .28) 50%, transparent 65%); translate: -120% 0; animation: btn-shine 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes btn-shine { 0%, 62% { translate: -120% 0; } 100% { translate: 120% 0; } }
.fin-in .ctas { align-items: flex-start; padding-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .fin-arc path, .fin-in::before, .fin-in .btn-pri::after { animation: none; } .fin-in h2, .fin-in p, .fin-in .ctas { opacity: 1; translate: none; transition: none; } }
.fin-in .ctas { row-gap: 24px; }

/* название канала меняется «барабаном» по буквам (src/app.js, roll) */
.rolling { display: inline-block; position: relative; white-space: nowrap; clip-path: inset(-.16em -.04em); }   /* обрезка без overflow: строка не съезжает с базовой линии */
.roll-row { display: inline-block; white-space: nowrap; }
.roll-row span { display: inline-block; will-change: transform; }
.roll-old { position: absolute; left: 0; top: 0; }

/* зелёная точка «A text arrives on your phone» пульсирует: от неё расходится и гаснет кольцо */
.pv-dot { position: relative; flex: none; }
.pv-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #16a34a; animation: dot-pulse 1.8s cubic-bezier(.2, .6, .3, 1) infinite; }
@keyframes dot-pulse { 0% { scale: 1; opacity: .55; } 70%, 100% { scale: 3.4; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pv-dot::after { animation: none; opacity: 0; } }

/* финальный блок: кнопка магазина сверху, гайды под ней; объёмную копию кнопки рисует src/btn3d.js */
.fin-in .ctas { flex-direction: column; align-items: center; row-gap: 26px; }
.b3-host { position: relative; }
.b3 { position: absolute; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s ease; }
.b3-on .b3 { opacity: 1; }
.b3-on .btn-pri { opacity: 0 !important; box-shadow: none !important; translate: none !important; transition: opacity .4s ease !important; }
.b3-on .btn-pri::after { display: none; }
.b3-host .btn-ghost { position: relative; z-index: 2; }

/* первый экран ярче: текст темнее, слово-канал в цвет акцента и крутится «барабаном» */
.hero2 .lead { color: #2c2847; }
.hero2 h1 em { font-style: normal; color: var(--accent); }
.hero2 .note { color: var(--text-2); }
.hero2 .ctas { align-items: center; }

.nw { white-space: nowrap; }
.hero2 .ctas { column-gap: 22px; }

/* «Fix it» в ячейке History нажимается: строка сжимается и становится «Delivered» */
.hist li { transition: scale .3s cubic-bezier(.3, 1.6, .5, 1), border-color .4s; }
.hist .bad u { cursor: pointer; transition: scale .18s cubic-bezier(.3, 1.6, .5, 1), background .2s; -webkit-tap-highlight-color: transparent; }
.hist .bad u:hover { background: var(--accent-hi); }
.hist .bad u:active { scale: .92; }
.hist li.fixing { scale: .97; }
.hist li.fixed { border-color: #bbf7d0; }
.hist li.fixed u { display: none; }
.hist li.fixed i { animation: pop-in2 .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop-in2 { from { scale: .6; opacity: 0; } }

/* пример сообщения: подсветка того, что изменилось (src/app.js, swapMarked) */
.m-json .ln { display: block; white-space: pre-wrap; }
.m-gone { overflow: hidden; pointer-events: none; text-decoration: line-through; text-decoration-color: rgb(185 28 28 / .7); border-radius: 6px; margin-block: 0 !important; padding-block: 0 !important; }
/* сам переключатель, который только что нажали, коротко вспыхивает — видно связь «нажал здесь → изменилось там» */
.tog input:checked + span, .tog input:not(:checked) + span { transition: scale .25s cubic-bezier(.3, 1.6, .5, 1), background .2s, color .2s, border-color .2s; }
.tog:active span { scale: .94; }

/* заголовок первого экрана всегда в две строки: первая не переносится, какое бы слово ни крутилось */
@media (min-width: 701px) { .hero2 h1 { max-width: none; } .hero2 h1 .h1-l { display: block; white-space: nowrap; } }
@media (min-width: 701px) { .hero2 h1 { font-size: clamp(36px, min(5.4vw, 9vh), 80px); } }   /* самая длинная первая строка («…Google Chat,») = 13.2 ширины шрифта и помещается в колонку */

/* без скриптов ничего не прячем: финальный блок и подчёркивание в заголовке видны сразу (класс .js ставит скрипт шапки) */
html:not(.js) .fin-in h2, html:not(.js) .fin-in p, html:not(.js) .fin-in .ctas { opacity: 1; translate: none; }
html:not(.js) .kw-w svg { clip-path: none; }

/* Главное содержимое не прячем даже на мгновение: Chrome не засчитывает «главное содержимое» страницы (LCP),
   если оно появляется из полной прозрачности, — и замер скорости в Google ломается. Поэтому шапка, заголовок
   и подзаголовок первого экрана и текст гайдов только приподнимаются; проявляются кнопки, строка под ними и сцена. */
@media (prefers-reduced-motion: no-preference) {
  .hero2 h1, .hero2 .lead, main > .wrap > *, .docgrid > * { animation-name: rise-in; }
  @keyframes rise-in { from { transform: translateY(16px); } }
  .top { animation: none; }
}
