/* Сайт O. Message (omsg.space). Шрифты: Unbounded — заголовки и цифры, Onest — текст (оба OFL, лежат в /assets/fonts).
   Движение: GSAP + ScrollTrigger + SplitText + ScrambleText, плавная прокрутка — Lenis (всё локально, /assets/vendor). */

@font-face { font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Unbounded; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/assets/fonts/unbounded-latin-wght-normal.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; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/onest-latin-wght-normal.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 {
  --cobalt: #2660e0;          /* цвет знака */
  --cobalt-2: #1c4cc2;
  --cobalt-3: #4b80f2;
  --violet: #7155f5;
  --night: #070f2e;
  --night-2: #0f1a45;
  --night-3: #1a2760;
  --paper: #f5f5f5;           /* плитка знака */
  --ice: #e7eeff;
  --card: #ffffff;
  --ink: #0a1440;
  --ink-2: #4a5578;
  --line: rgba(10, 20, 64, .12);
  --on-blue: #e6edff;
  --mint: #22c98f;
  --alarm: #f2493a;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1200px;
  --display: Unbounded, Onest, system-ui, sans-serif;
  --text: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #0a1130; --ice: #0d173d; --card: #121d4a; --ink: #eef2ff; --ink-2: #a3aed0;
    --line: rgba(238, 242, 255, .12); color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; font: 17px/1.6 var(--text); color: var(--ink); background: var(--cobalt); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 3px solid var(--cobalt-3); outline-offset: 3px; border-radius: 10px; }
[data-theme=cobalt] :focus-visible, [data-theme=night] :focus-visible { outline-color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--cobalt);
  font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; }

/* Темы разделов */
[data-theme=cobalt] { background: var(--cobalt); color: #fff; }
[data-theme=paper] { background: var(--paper); color: var(--ink); }
[data-theme=ice] { background: var(--ice); color: var(--ink); }
[data-theme=night] { background: var(--night); color: #eef2ff; }
section { position: relative; }
.security, .login { overflow: clip; }

/* Заголовки */
.h-hero { font: 600 clamp(42px, 5.9vw, 88px)/1.07 var(--display); letter-spacing: -.05em; margin: 22px 0 24px; text-wrap: balance; }
.h2 { font: 600 clamp(32px, 4.1vw, 58px)/1.1 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.sub { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 36em; margin-top: 20px; }
[data-theme=cobalt] .sub { color: var(--on-blue); }
[data-theme=night] .sub { color: #a9b6dd; }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 24px; border-radius: 16px;
  border: 0; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--cobalt); color: #fff; transition: background-color .25s, color .25s, box-shadow .3s; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn:hover { box-shadow: 0 16px 34px -14px rgba(38, 96, 224, .8); }
.btn-light { background: #fff; color: var(--cobalt); }
.btn-light:hover { box-shadow: 0 18px 40px -16px rgba(4, 12, 48, .55); }
.btn-glass { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .42); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .8); }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 13px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: default; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.center { justify-content: center; }
.pwa { margin-top: 20px; font-size: 15px; color: var(--on-blue); }
.pwa a { display: inline-block; margin-left: 6px; padding: 5px 13px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); text-decoration: none; font-weight: 600; color: #fff; transition: background .2s; }
.pwa a:hover { background: rgba(255, 255, 255, .24); }
.pwa.center { text-align: center; }

/* Курсор-точка (только мышь) */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 4.5px; background: var(--cur, #fff);
  transition: transform .35s var(--spring), background-color .3s, opacity .3s; }
.cursor.big i { transform: scale(3.2); opacity: .22; }
.cursor.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Шапка */
.nav { position: fixed; z-index: 100; left: 50%; top: 14px; transform: translateX(-50%); width: min(1240px, calc(100% - 24px));
  display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 18px; border-radius: 20px; color: #fff;
  transition: background-color .35s, color .35s, box-shadow .35s, backdrop-filter .35s; }
.nav.scrolled { background: rgba(20, 60, 170, .42); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 18px 40px -24px rgba(0, 0, 0, .5); }
.nav[data-on=light] { color: var(--ink); }
.nav[data-on=light].scrolled { background: color-mix(in srgb, var(--paper) 72%, transparent); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -26px rgba(10, 20, 64, .35); }
.nav[data-on=night].scrolled { background: rgba(15, 26, 69, .6); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 17px/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; fill: currentColor; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { padding: 9px 13px; border-radius: 11px; font-weight: 500; font-size: 15px; text-decoration: none; opacity: .82; transition: opacity .2s, background .2s; }
.nav nav a:hover { opacity: 1; background: rgba(127, 140, 190, .16); }
.nav-cta { background: #fff; color: var(--cobalt); }
.nav[data-on=light] .nav-cta { background: var(--cobalt); color: #fff; }
.nav-progress { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; background: currentColor;
  opacity: .5; transform: scaleX(0); transform-origin: 0 50%; }

/* Первый экран */
.hero { min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 90% at 78% 38%, #3570ec 0%, var(--cobalt) 46%, var(--cobalt-2) 100%); }
.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 32px; align-items: center; padding: 128px 0 100px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); color: var(--on-blue); }
.live { width: 8px; height: 8px; border-radius: 50%; background: #5ff0b8; box-shadow: 0 0 0 0 rgba(95, 240, 184, .7); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(95, 240, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 240, 184, 0); } }
.lead { font-size: clamp(17.5px, 1.45vw, 20px); line-height: 1.6; color: var(--on-blue); max-width: 34em; margin-bottom: 32px; }
.hero-mark { position: relative; justify-self: center; display: grid; justify-items: center; gap: 26px; }
.mark-big { width: min(32vw, 430px); height: auto; overflow: visible; fill: #fff; filter: drop-shadow(0 30px 60px rgba(5, 18, 70, .35)); }
.mark-big .ring { fill: none; stroke: #fff; stroke-width: 1.4; opacity: 0; transform-origin: 50px 50px; }
.mark-big .ping { fill: none; stroke: #fff; stroke-width: 1px; vector-effect: non-scaling-stroke; opacity: 0; transform-origin: 90.71px 91.74px; }
.mark-big .dot { transform-origin: 90.71px 91.74px; }
.mark-big .o { transform-origin: 50px 50px; }
.mark-big.idle .ping { animation: ping 1s cubic-bezier(.33, 1, .68, 1) both; }
.mark-big.idle .p2 { animation-delay: .32s; }
.mark-big.idle .dot { animation: pulse 1s ease-in-out both; }
@keyframes ping { 0% { opacity: .6; transform: scale(1); } 90%, 100% { opacity: 0; transform: scale(4.3); } }
@keyframes pulse { 0%, 30%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } }
.mark-hint { font-size: 14px; color: var(--on-blue); opacity: .8; transition: opacity .5s; }
.mark-hint.gone { opacity: 0; }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px;
  box-shadow: inset 0 0 0 1.6px rgba(255, 255, 255, .55); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff;
  animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* Скрыто до начала анимации (только со скриптом; если он не запустится, boot.js покажет всё через 3,5 с) */
.js:not(.ready) [data-intro], .js:not(.ready) .h-hero, .js:not(.ready) .mark-big .o, .js:not(.ready) .mark-big .dot { opacity: 0; }

/* Безопасность: атаки разбиваются о ключ */
.security .pin { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 72px; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head arena" "list arena"; column-gap: 56px; align-items: center; }
.sec-head { grid-area: head; align-self: end; }
.attacks { grid-area: list; align-self: start; }
.arena { grid-area: arena; }
.attacks { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.attacks li { position: relative; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.attacks li::before { content: ""; grid-row: 1 / span 2; width: 22px; height: 22px; margin-top: 2px; border-radius: 8px;
  box-shadow: inset 0 0 0 1.6px var(--line); transition: background-color .3s, box-shadow .3s; }
.attacks li::after { content: ""; position: absolute; left: 6px; top: 20px; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2.2px 2.2px;
  transform: rotate(-45deg) scale(0); transition: transform .35s var(--spring); }
.attacks b { font-weight: 600; font-size: 17.5px; line-height: 1.35; position: relative; justify-self: start; }
.attacks b::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 2px; border-radius: 2px; background: var(--alarm);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease); }
.attacks span { grid-column: 2; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; margin-top: 3px; }
.attacks li.done::before { background: var(--mint); box-shadow: none; }
.attacks li.done::after { transform: rotate(-45deg) scale(1); }
.attacks li.done b::after { transform: scaleX(1); }
.attacks li.cur::before { box-shadow: inset 0 0 0 2px var(--cobalt); }
/* В сцене с закреплением пояснение видно только у текущей атаки */
.staged .attacks li { padding: 9px 0; }
.staged .attacks span { display: none; }
.staged .attacks li.cur span { display: block; }
.staged .attacks li { transition: opacity .3s; }
.staged .attacks li:not(.cur):not(.done) { opacity: .5; }

.arena { position: relative; height: min(620px, 72svh); min-height: 460px; display: grid; place-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.waves { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.waves i { position: absolute; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cobalt) 40%, transparent); }
.waves i:nth-child(2) { transform: scale(.8); opacity: .7; }
.waves i:nth-child(3) { transform: scale(.62); opacity: .5; }
.waves b { position: absolute; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%; opacity: 0;
  box-shadow: inset 0 0 0 3px var(--cobalt), 0 0 40px 4px color-mix(in srgb, var(--cobalt) 30%, transparent); }
.device { position: relative; width: 224px; height: 450px; border-radius: 42px; padding: 10px; background: #0b1440;
  box-shadow: 0 50px 90px -40px rgba(7, 15, 46, .6), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.device-screen { height: 100%; border-radius: 33px; background: linear-gradient(180deg, #13226a, #0a1440 70%); color: #fff;
  display: grid; justify-items: center; align-content: center; gap: 8px; padding: 22px; text-align: center; position: relative; overflow: hidden; }
.chip { width: 116px; height: 116px; margin-bottom: 12px; }
.chip .pins path { stroke: #7fa3ff; stroke-width: 3; stroke-linecap: round; fill: none; }
.chip .die { fill: var(--cobalt); stroke: #9fbaff; stroke-width: 1.5; }
.chip .key circle, .chip .key path { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.dev-title { font: 600 18px/1.2 var(--display); letter-spacing: -.03em; }
.dev-sub { font-size: 13.5px; line-height: 1.45; color: #b9c8f5; }
.dev-verdict { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; padding: 7px 14px; border-radius: 999px; background: var(--alarm);
  color: #fff; font-weight: 600; font-size: 13.5px; opacity: 0; white-space: nowrap; }
.missile { position: absolute; left: 50%; top: 50%; padding: 11px 18px; border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 15.5px; white-space: nowrap; box-shadow: 0 16px 34px -18px rgba(10, 20, 64, .45), inset 0 0 0 1px var(--line);
  opacity: 0; }
.missile i { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.tally { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 15px; color: var(--ink-2); }
.tally b { font: 600 22px/1 var(--display); color: var(--ink); margin-right: 4px; }

/* Вход по QR */
.login .pin { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 72px; }
.login-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 14px 16px 14px 14px; border-radius: 22px; transition: background-color .4s, opacity .4s; }
.steps .n { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--card); color: var(--cobalt);
  font: 600 18px/1 var(--display); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .4s, color .4s; }
.steps h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; margin-top: 2px; }
.steps p { font-size: 15.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.5; }
.steps a { color: var(--cobalt); font-weight: 600; }
.staged .steps li { opacity: .45; }
.staged .steps li.on { opacity: 1; background: var(--card); box-shadow: 0 24px 48px -32px rgba(10, 20, 64, .35); }
.staged .steps li.on .n { background: var(--cobalt); color: #fff; box-shadow: none; }

.qr-stage { position: relative; height: 520px; }
.laptop { position: absolute; left: 0; top: 30px; width: min(560px, 92%); }
.lid { aspect-ratio: 16 / 10.4; border-radius: 20px 20px 8px 8px; padding: 12px; background: #0b1440; box-shadow: 0 40px 80px -40px rgba(7, 15, 46, .55); }
.lscreen { position: relative; height: 100%; border-radius: 10px; background: #fff; overflow: hidden; color: #0a1440; }
.deck { height: 16px; width: 114%; margin-left: -7%; border-radius: 3px 3px 18px 18px; background: linear-gradient(#d9deea, #a9b2c8); }
.l-qr { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 14px; font-size: 13.5px; color: #4a5578; }
.qr { position: relative; width: 168px; height: 168px; }
.qr i { position: absolute; width: 4%; height: 4%; background: #0a1440; border-radius: 1.5px; }
.l-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 46px; opacity: 0; }
.l-chats { position: absolute; inset: 0; display: grid; grid-template-columns: 34% 1fr; opacity: 0; }
.l-side { background: #f1f4fb; padding: 12px 10px; display: grid; align-content: start; gap: 8px; }
.l-side i { display: block; height: 30px; border-radius: 9px; background: linear-gradient(90deg, #dfe6f6 26%, transparent 26% 32%, #e8edf8 32%); }
.l-side i:first-child { background: linear-gradient(90deg, #c9d7fb 26%, transparent 26% 32%, #d9e3fb 32%); }
.l-main { position: relative; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.l-main i { display: block; height: 22px; border-radius: 11px; background: #e8edf8; width: 60%; }
.l-main i.b2 { align-self: flex-end; background: var(--cobalt); width: 48%; }
.l-main i.b3 { width: 40%; }
.l-main em { position: absolute; left: 50%; top: 18px; translate: -50% 0; font-style: normal; font-weight: 600; font-size: 13px; white-space: nowrap;
  padding: 6px 12px 6px 28px; border-radius: 999px; background: #e3f8ef; color: #0e7a55; }
.l-main em::before { content: ""; position: absolute; left: 12px; top: 9px; width: 8px; height: 5px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.qphone { position: absolute; right: 2%; bottom: 0; width: 214px; height: 430px; border-radius: 38px; padding: 9px; background: #0b1440; overflow: hidden;
  box-shadow: 0 50px 90px -40px rgba(7, 15, 46, .7), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.qcam { position: absolute; inset: 9px; border-radius: 30px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2b3a78, #0c1546 70%); }
.finder { position: absolute; left: 50%; top: 42%; width: 140px; height: 140px; transform: translate(-50%, -50%); }
.finder i { position: absolute; width: 28px; height: 28px; border: 0 solid #fff; }
.finder i:nth-child(1) { left: 0; top: 0; border-width: 3px 0 0 3px; border-radius: 10px 0 0 0; }
.finder i:nth-child(2) { right: 0; top: 0; border-width: 3px 3px 0 0; border-radius: 0 10px 0 0; }
.finder i:nth-child(3) { left: 0; bottom: 0; border-width: 0 0 3px 3px; border-radius: 0 0 0 10px; }
.finder i:nth-child(4) { right: 0; bottom: 0; border-width: 0 3px 3px 0; border-radius: 0 0 10px 0; }
.beam { position: absolute; left: calc(50% - 64px); top: calc(42% - 66px); width: 128px; height: 3px; border-radius: 3px; background: #7ee8c0;
  box-shadow: 0 0 18px 4px rgba(126, 232, 192, .55); }
.qconfirm { position: absolute; left: 9px; right: 9px; bottom: 9px; border-radius: 22px 22px 30px 30px; background: #fff; color: #0a1440;
  padding: 18px 14px 16px; display: grid; justify-items: center; gap: 10px; }
.qconfirm small { font-size: 13px; color: #4a5578; }
.q-emoji { display: flex; gap: 12px; font-size: 30px; }
.qbtn { width: 100%; height: 44px; border-radius: 14px; background: var(--cobalt); color: #fff; font-weight: 600; font-size: 15px; display: grid; place-items: center; }

/* Секретный чат */
.secret { padding: 140px 0 110px; overflow: hidden; }
.secret-head { max-width: 760px; }
.relay { position: relative; display: grid; grid-template-columns: 240px 1fr 230px 1fr 240px; align-items: center; margin-top: 60px; }
.sphone { height: 390px; border-radius: 34px; padding: 14px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
  display: flex; flex-direction: column; gap: 10px; }
.sp-top { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sp-top b { font-weight: 600; font-size: 15px; }
.sp-top svg { width: 16px; height: 16px; fill: #5ff0b8; margin-left: auto; }
.av { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--cobalt); }
.sb .av { background: var(--violet); }
.sp-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.sp-note { align-self: center; margin-bottom: auto; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #a9b6dd; font-size: 12px; text-align: center; line-height: 1.35; }
.bubble { max-width: 88%; padding: 9px 13px; border-radius: 17px; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.sa .bubble { align-self: flex-end; background: var(--cobalt); border-bottom-right-radius: 6px; }
.sb .bubble { align-self: flex-start; background: var(--night-3); border-bottom-left-radius: 6px; }
.bubble.cipher { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: #9fb6ff; }
.wire { position: relative; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, rgba(160, 182, 255, .35) 0 6px, transparent 6px 13px); }
.server { position: relative; z-index: 1; border-radius: 26px; padding: 20px 16px; background: #0b1640; box-shadow: inset 0 0 0 1.5px rgba(160, 182, 255, .22);
  display: grid; justify-items: center; gap: 8px; text-align: center; }
.server > svg { width: 30px; height: 30px; fill: #7f93c9; }
.server b { font-weight: 600; font-size: 15px; }
.srv-data { display: block; width: 100%; min-height: 3.4em; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, .25);
  font: 12px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #7f93c9; word-break: break-all; }
.srv-state { font-size: 13px; color: #a9b6dd; min-height: 2.8em; line-height: 1.4; }
.srv-state.bad { color: #ffb0a6; }
.srv-state.ok { color: #7ee8c0; }
.packet { position: absolute; left: 0; top: 0; z-index: 3; padding: 7px 11px; border-radius: 11px; background: #22367f; color: #cfdcff; white-space: nowrap;
  font: 12px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6), 0 0 0 1px rgba(160, 182, 255, .3);
  opacity: 0; pointer-events: none; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
.wire .packet { display: none; }
.composer { display: flex; gap: 12px; margin-top: 34px; max-width: 640px; }
.composer input { flex: 1; min-width: 0; height: 54px; padding: 0 18px; border-radius: 16px; border: 0; background: var(--night-2); color: #fff;
  font: 16px var(--text); box-shadow: inset 0 0 0 1.5px rgba(160, 182, 255, .28); transition: box-shadow .2s; }
.composer input:focus { outline: none; box-shadow: inset 0 0 0 2px #9fb6ff; }
.secret-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 46px; align-items: start; }
.keycheck { padding: 20px 22px; border-radius: 24px; background: var(--night-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.keycheck span { font-weight: 600; font-size: 15px; }
.kc-emoji { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; font-size: 26px; }
.kc-emoji i { font-style: normal; display: inline-block; }
.keycheck small { font-size: 14px; color: #a9b6dd; }
.fine { font-size: 15px; color: #a9b6dd; line-height: 1.6; }

/* Номер */
.number { padding: 140px 0; overflow: hidden; text-align: center; }
.num-in { display: grid; justify-items: center; }
.num-in .sub { margin-left: auto; margin-right: auto; }
.odo { display: flex; align-items: center; justify-content: center; gap: .28em; margin: 56px 0 36px; font: 600 clamp(50px, 11.5vw, 176px)/1 var(--display);
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cc { color: #b7cbff; }
.reels { display: flex; align-items: center; }
.reel { position: relative; display: block; width: .82em; height: 1.08em; overflow: hidden; text-align: center; line-height: 1.08;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.reel b { display: block; font-weight: inherit; height: 1.08em; }
.reel .col { position: absolute; left: 0; right: 0; top: 0; }
.gap { display: block; width: .3em; }
.spin-btn { margin-bottom: 8px; }

/* Возможности: лента вбок */
.features .pin { padding: 130px 0 90px; overflow: hidden; }
.feats-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; align-items: end; }
.feats-head .sub { margin: 0; }
.track { display: flex; gap: 22px; margin-top: 56px; padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)) 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(20px, calc((100vw - var(--wrap)) / 2)); scrollbar-width: thin; }
.track > * { scroll-snap-align: start; }
.features.h .track { width: max-content; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
.fcard { flex: none; width: 370px; padding: 14px 14px 26px; border-radius: 32px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.fcard h3 { font: 600 21px/1.2 var(--display); letter-spacing: -.035em; margin: 22px 12px 10px; }
.fcard p { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); margin: 0 12px; }
.demo { position: relative; height: 230px; border-radius: 22px; overflow: hidden; background: var(--ice); }
.features:not(.playing) .demo *, .features:not(.playing) .demo *::before { animation-play-state: paused !important; }

/* Звонок */
.d-call { background: linear-gradient(160deg, #2a5fe0, #6a4ff0); }
.d-call .ava { position: absolute; left: 50%; top: 44%; width: 78px; height: 78px; margin: -39px 0 0 -39px; }
.d-call .ava b { position: absolute; inset: 0; border-radius: 28px; background: #fff; color: var(--cobalt); display: grid; place-items: center; font: 600 30px var(--display); }
.d-call .ava i { position: absolute; inset: 0; border-radius: 28px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); animation: callring 2.4s cubic-bezier(.33, 1, .68, 1) infinite; }
.d-call .ava i:nth-child(2) { animation-delay: 1.2s; }
@keyframes callring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.d-call .pip { position: absolute; right: 14px; top: 14px; width: 62px; height: 84px; border-radius: 14px; background: linear-gradient(160deg, #0b1440, #24357c);
  box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); display: grid; place-items: end center; padding-bottom: 6px; color: #fff; font-size: 11px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-7px); } }
.d-call .ctrls { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 12px; }
.d-call .ctrls i { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.d-call .ctrls i.end { background: var(--alarm); }

/* Голосовое */
.d-voice { display: flex; align-items: center; gap: 12px; padding: 0 22px; }
.d-voice .play { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--cobalt); position: relative; }
.d-voice .play::before { content: ""; position: absolute; left: 18px; top: 14px; border: 9px solid transparent; border-left: 13px solid #fff; border-right: 0; }
.d-voice .bars { flex: 1; display: flex; align-items: center; gap: 3px; height: 60px; }
.d-voice .bars i { flex: 1; height: 100%; border-radius: 3px; background: var(--cobalt); transform-origin: 50% 50%; animation: wave 1.1s ease-in-out infinite; opacity: .85; }
.d-voice .bars i:nth-child(3n) { animation-duration: .9s; } .d-voice .bars i:nth-child(4n) { animation-duration: 1.3s; } .d-voice .bars i:nth-child(5n) { animation-duration: .8s; }
.d-voice .bars i:nth-child(2n) { animation-delay: -.3s; } .d-voice .bars i:nth-child(3n+1) { animation-delay: -.6s; } .d-voice .bars i:nth-child(7n) { animation-delay: -.15s; }
.d-voice .bars i:nth-child(n+13) { background: color-mix(in srgb, var(--cobalt) 35%, transparent); }
@keyframes wave { 0%, 100% { transform: scaleY(.2); } 50% { transform: scaleY(1); } }
.d-voice .speed { flex: none; padding: 6px 10px; border-radius: 10px; background: var(--card); font: 600 13px var(--display); color: var(--cobalt); }

/* Видео */
.d-video { background: linear-gradient(135deg, #0b1440, #2a3f9a 60%, #6a4ff0); }
.d-video .frame { position: absolute; inset: 0; display: grid; place-items: center; }
.d-video .tri { width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); position: relative; }
.d-video .tri::before { content: ""; position: absolute; left: 24px; top: 19px; border: 11px solid transparent; border-left: 16px solid #fff; border-right: 0; }
.d-video .bar { position: absolute; left: 18px; right: 18px; bottom: 22px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); }
.d-video .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transform-origin: 0 50%; }
.d-video .buf { right: 0; background: rgba(255, 255, 255, .45); animation: buf 6s linear infinite; }
.d-video .pos { right: 0; background: #fff; animation: pos 6s linear infinite; }
@keyframes buf { from { transform: scaleX(.12); } to { transform: scaleX(1); } }
@keyframes pos { from { transform: scaleX(0); } to { transform: scaleX(.7); } }
.d-video .chip { position: absolute; right: 16px; top: 16px; padding: 5px 9px; border-radius: 9px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 12.5px; font-weight: 600; }

/* Автоудаление */
.d-ttl { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px 20px; }
.d-ttl .timer { position: absolute; right: 14px; top: 14px; padding: 5px 10px 5px 26px; border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--cobalt); }
.d-ttl .timer::before { content: ""; position: absolute; left: 9px; top: 7px; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; }
.m { display: block; width: fit-content; max-width: 80%; padding: 8px 12px; border-radius: 15px; font-style: normal; font-size: 14px; background: var(--card); color: var(--ink); }
.m.out { align-self: flex-end; background: var(--cobalt); color: #fff; }
.d-ttl .m { animation: vanish 7s var(--ease) infinite; }
.d-ttl .m2 { animation-delay: .4s; } .d-ttl .m3 { animation-delay: .8s; }
@keyframes vanish { 0% { opacity: 0; transform: translateY(10px); filter: blur(0); } 8%, 62% { opacity: 1; transform: none; filter: blur(0); }
  76%, 100% { opacity: 0; transform: scale(.96); filter: blur(8px); } }

/* Реакции */
.d-react { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 18px 20px; }
.d-react .rx { position: absolute; left: 24px; top: 82px; display: flex; gap: 4px; }
.d-react .rx b { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 999px; background: var(--card); font-size: 16px; box-shadow: 0 6px 14px -8px rgba(10, 20, 64, .4);
  animation: react 4.5s var(--spring) infinite; transform: scale(0); }
.d-react .rx b:nth-child(2) { animation-delay: .25s; } .d-react .rx b:nth-child(3) { animation-delay: .5s; }
@keyframes react { 0% { transform: scale(0); } 12%, 82% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
.d-react .m.out s { display: block; text-decoration: none; font-size: 12px; opacity: .8; border-left: 2px solid #fff; padding-left: 7px; margin-bottom: 3px; }

/* Группы и каналы */
.d-groups { display: grid; place-items: center; align-content: center; gap: 18px; }
.stack { display: flex; }
.stack i { width: 52px; height: 52px; margin-left: -12px; border-radius: 18px; display: grid; place-items: center; font: 600 18px var(--display); font-style: normal;
  color: #fff; background: var(--cobalt); box-shadow: 0 0 0 3px var(--ice); animation: hop 3s var(--spring) infinite; }
.stack i:nth-child(2) { background: var(--violet); animation-delay: .15s; } .stack i:nth-child(3) { background: #19a37a; animation-delay: .3s; }
.stack i:nth-child(4) { background: var(--card); color: var(--ink); font-size: 14px; animation-delay: .45s; }
@keyframes hop { 0%, 40%, 100% { transform: none; } 20% { transform: translateY(-9px); } }
.ch { display: grid; padding: 10px 16px; border-radius: 16px; background: var(--card); text-align: center; }
.ch b { font-size: 15px; } .ch small { font-size: 12.5px; color: var(--ink-2); }

/* Запрос от незнакомого */
.d-req { display: grid; place-items: center; }
.d-req .card { width: 82%; padding: 16px; border-radius: 20px; background: var(--card); display: grid; gap: 2px; box-shadow: 0 18px 34px -24px rgba(10, 20, 64, .45); }
.d-req .card b { font-size: 15px; } .d-req .card small { font-size: 13px; color: var(--ink-2); }
.d-req .card span { display: flex; gap: 8px; margin-top: 12px; }
.d-req .card span i { flex: 1; height: 36px; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 13.5px; font-weight: 600;
  background: var(--cobalt); color: #fff; animation: tapme 3.2s ease-in-out infinite; }
.d-req .card span i.no { background: var(--ice); color: var(--alarm); animation: none; }
@keyframes tapme { 0%, 60%, 100% { transform: none; } 70% { transform: scale(.94); } 80% { transform: none; } }

/* Устройства */
.d-sync { display: flex; align-items: center; justify-content: center; gap: 26px; }
.d-sync .dev { display: block; box-shadow: inset 0 0 0 3px var(--cobalt); background: var(--card); }
.d-sync .ph { width: 38px; height: 68px; border-radius: 10px; }
.d-sync .lp { width: 96px; height: 62px; border-radius: 8px; }
.d-sync .br { width: 74px; height: 56px; border-radius: 8px; background: linear-gradient(var(--cobalt) 0 9px, var(--card) 9px); }
.d-sync .pulse { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 4.5px; background: var(--cobalt);
  animation: travel 3s var(--ease) infinite; }
@keyframes travel { 0% { transform: translateX(-112px); opacity: 0; } 10% { opacity: 1; } 45% { transform: translateX(0); } 55% { transform: translateX(0); } 90% { opacity: 1; } 100% { transform: translateX(112px); opacity: 0; } }

/* Медиа */
.d-media { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 4px; padding: 14px; }
.d-media i { border-radius: 10px; background: linear-gradient(135deg, #7da2ff, #2660e0); animation: tile 5s ease-in-out infinite; }
.d-media i:nth-child(2) { background: linear-gradient(135deg, #b9a8ff, #7155f5); animation-delay: .2s; }
.d-media i:nth-child(3) { background: linear-gradient(135deg, #8fe7c8, #19a37a); animation-delay: .4s; }
.d-media i:nth-child(4) { background: linear-gradient(135deg, #ffd39a, #f08a3a); animation-delay: .6s; }
.d-media i:nth-child(5) { background: linear-gradient(135deg, #a9d8ff, #3a8fe0); animation-delay: .8s; }
.d-media i:nth-child(6) { background: linear-gradient(135deg, #ffb3c4, #e0466e); animation-delay: 1s; }
@keyframes tile { 0%, 100% { transform: none; } 50% { transform: scale(.94); } }
.d-media .up { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(10, 20, 64, .55); display: grid; place-items: center; }
.d-media .up b { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(#fff var(--p, 0%), rgba(255, 255, 255, .25) 0);
  -webkit-mask: radial-gradient(circle, transparent 10px, #000 11px); mask: radial-gradient(circle, transparent 10px, #000 11px); animation: upl 3.6s linear infinite; }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
@keyframes upl { from { --p: 0%; } 85%, to { --p: 100%; } }

/* Скачать */
.final { padding: 150px 0 0; overflow: hidden; text-align: center;
  background: radial-gradient(90% 70% at 50% 0%, #3570ec 0%, var(--cobalt) 55%, var(--cobalt-2) 100%); }
.final-in { display: grid; justify-items: center; }
.final .sub { margin-left: auto; margin-right: auto; }
.final .cta { margin-top: 34px; }
.mark-final { width: 132px; height: 132px; margin-bottom: 30px; fill: #fff; color: #fff; }
/* «Волна» — те же числа, что в приложении (AnimatedLogo) и на экране загрузки веб-версии */
.draw { overflow: visible; }
.draw .ring { fill: none; stroke: currentColor; stroke-width: 2.2; opacity: 0; transform-origin: 50px 50px; }
.js .draw .o { opacity: 0; transform-origin: 50px 50px; transform: scale(.55); }
.js .draw .dot { transform-origin: 90.7px 91.7px; transform: scale(0); }
.final.on .draw .ring, .draw.go .ring { animation: ring .95s cubic-bezier(.33, 1, .68, 1) forwards; }
.final.on .draw .r2, .draw.go .r2 { animation-delay: .22s; }
.final.on .draw .o, .draw.go .o { animation: letter .6s cubic-bezier(.34, 1.56, .64, 1) .1s forwards; }
.final.on .draw .dot, .draw.go .dot { animation: dot .35s cubic-bezier(.34, 2.2, .64, 1) .75s forwards; }
@keyframes ring { from { opacity: .55; transform: scale(.25); } to { opacity: 0; transform: scale(1.55); } }
@keyframes letter { 60% { opacity: 1; } to { opacity: 1; transform: scale(1); } }
@keyframes dot { to { transform: scale(1); } }
.ios-note { margin-top: 22px; font-size: 14.5px; color: var(--on-blue); max-width: 34em; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 110px; padding: 26px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, .2); font-size: 14.5px; color: var(--on-blue); }
.foot a { color: #fff; text-decoration: none; font-weight: 600; }
.foot a:hover { text-decoration: underline; }

/* Узкие экраны */
@media (max-width: 1100px) {
  .relay { grid-template-columns: 1fr 1fr; gap: 16px; }
  .relay .wire { display: none; }
  .relay .server { grid-column: 1 / -1; grid-row: 2; }
  .sphone { height: 300px; }
}
@media (max-width: 959px) {
  .nav nav { display: none; }
  .nav { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding: 120px 0 110px; gap: 10px; }
  .hero-mark { grid-row: 1; justify-self: start; }
  .mark-big { width: 104px; }
  .mark-hint { display: none; }
  .h-hero { margin-top: 18px; }
  .sec-grid { grid-template-columns: 1fr; grid-template-areas: "head" "arena" "list"; }
  .login-grid { grid-template-columns: 1fr; gap: 34px; }
  .security .pin, .login .pin { min-height: 0; padding: 96px 0 80px; }
  .arena { height: 420px; min-height: 0; margin-top: 18px; }
  .waves i, .waves b { left: -165px; top: -165px; width: 330px; height: 330px; }
  .device { width: 180px; height: 360px; border-radius: 36px; }
  .device-screen { border-radius: 28px; padding: 16px; }
  .chip { width: 90px; height: 90px; }
  .missile { font-size: 14px; padding: 9px 14px; }
  .qr-stage { height: 440px; }
  .laptop { width: 88%; }
  .qphone { width: 170px; height: 340px; border-radius: 32px; }
  .qcam { border-radius: 25px; }
  .finder { width: 110px; height: 110px; }
  .beam { left: calc(50% - 50px); width: 100px; top: calc(42% - 52px); }
  .q-emoji { font-size: 24px; }
  .secret { padding: 100px 0 90px; }
  .secret-foot { grid-template-columns: 1fr; gap: 22px; }
  .number { padding: 100px 0; }
  .features .pin { padding: 96px 0 80px; }
  .feats-head { grid-template-columns: 1fr; gap: 0; }
  .feats-head .sub { margin-top: 18px; }
  .track { scroll-padding: 0 16px; scrollbar-width: none; }
  .track::-webkit-scrollbar { display: none; }
  .fcard { width: min(330px, 84vw); }
  .final { padding-top: 110px; }
  .foot { margin-top: 80px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .nav { top: 10px; width: calc(100% - 20px); padding-left: 14px; }
  .brand span { display: none; }
  .btn { height: 52px; padding: 0 20px; }
  .cta .btn { flex: 1 1 100%; }
  .nav .btn { flex: none; }
  .pwa a { margin-top: 6px; }
  .composer { flex-direction: column; }
  .composer input { flex: none; }
  .relay { margin-top: 40px; }
  .sphone { height: 270px; padding: 10px; border-radius: 26px; }
  .bubble { font-size: 13.5px; }
  .laptop { width: 92%; top: 10px; }
  .qr-stage { height: 380px; }
  .qr { width: 120px; height: 120px; }
  .l-emoji { font-size: 34px; }
  .qphone { width: 150px; height: 300px; }
  .qconfirm { padding: 14px 10px 12px; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .draw .ring { display: none; } .js .draw .o, .js .draw .dot { opacity: 1; transform: none; }
  .d-ttl .m, .d-react .rx b { opacity: 1; transform: none; filter: none; }
  .scroll-hint { display: none; }
}
