/* Главная status.emptyoverlord.com (30.11): вся экосистема. Стиль по STYLE.md: свет на тёмном фоне, цвета навыков,
   Montserrat и Poppins, рабочие кнопки спокойные (без свечения), праздник и рыбки только в моментах награды */
@font-face { font-family: 'Montserrat'; src: url('../fonts/Montserrat-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  color-scheme: dark;
  --bg: #0b1012;
  --bg2: #0e1518;
  --card: #152024;
  --card-hi: #1b282d;
  --line: #26353c;
  --line-hi: #34474f;
  --fg: #cdd6d3;
  --mut: #93a39e;
  --dim: #5f706b;
  --ac: #3fdc7e;
  --ac-ink: #06210f;
  --s: #ff5fa8; --l: #3fc4ff; --w: #ffd23f; --r: #9b8cff;
  --s-rgb: 255, 95, 168; --l-rgb: 63, 196, 255; --w-rgb: 255, 210, 63; --r-rgb: 155, 140, 255;
  --gold: 255, 214, 102;
  --mono: 'Montserrat', system-ui, sans-serif;
  --num: 'Poppins', 'Montserrat', sans-serif;
  --rad: 18px;
  --wrap: 1040px;
  --pop: cubic-bezier(0.2, 1.5, 0.4, 1);
  --pop2: cubic-bezier(0.2, 1.6, 0.35, 1);
  --glide: cubic-bezier(0.22, 0.9, 0.25, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }
body { margin: 0; color: var(--fg); background: var(--bg); font: 500 14px/1.55 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
.nojs { padding: 24px; }
.fxc { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* ---------- кнопки: сплошные и спокойные, как в Went ---------- */
.btn {
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 18px; border-radius: 999px; background: var(--ac); color: var(--ac-ink); font: 800 14px/1.1 var(--mono);
  text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); transition: transform 0.15s, background 0.2s; user-select: none;
}
.btn:hover { background: #52e690; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); }
.btn.ghost { background: var(--card-hi); color: var(--fg); border: 1px solid var(--line-hi); box-shadow: none; }
.btn.ghost:hover { background: #22323a; }
.btn.big { padding: 13px 20px; font-size: 14px; }
.btn.sm { padding: 8px 14px; font-size: 12.5px; }
.btn small { font: 600 11px/1 var(--mono); opacity: 0.7; }
.btn[disabled] { opacity: 0.6; cursor: default; }
.linkish { appearance: none; border: 0; background: none; padding: 0; cursor: pointer; color: var(--mut); font: 600 13px var(--mono); }
.linkish:hover { color: var(--fg); }

/* ---------- шапка ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 18px; padding: 12px max(16px, calc((100vw - var(--wrap)) / 2));
  transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(11, 16, 18, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 15px; }
.brand b { font-weight: 800; }
.fish { font: 800 18px/1 var(--mono); color: var(--ac); text-shadow: 0 0 14px rgba(63, 220, 126, 0.6); }
.links { display: flex; gap: 22px; margin-left: 12px; }
.links a { text-decoration: none; color: var(--mut); font-weight: 700; font-size: 13.5px; transition: color 0.2s; }
.links a:hover { color: var(--fg); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.langs button { appearance: none; border: 0; background: none; cursor: pointer; padding: 5px 9px; border-radius: 999px; font: 800 11px var(--mono); color: var(--dim); letter-spacing: 0.06em; }
.langs button[aria-pressed='true'] { background: var(--card-hi); color: var(--fg); }

/* ---------- герой ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 84px 16px 64px; overflow: hidden; isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Пятна без filter: blur(80px). Размытие уже посчитано в мягком градиенте (calc 30.11), коробка шире на 2.6σ.
   С blur Firefox пересчитывал три огромных размытия на каждом кадре дрейфа: главная шла 14 кадров в секунду */
.hero-sky i { position: absolute; opacity: 0.22; will-change: transform; animation: drift 26s ease-in-out infinite alternate; }
.hero-sky i:nth-child(1) { width: 70.5vmax; height: 70.5vmax; left: calc(48% - 12.25vmax); top: calc(-14% - 12.25vmax);
  background: radial-gradient(circle closest-side, rgba(var(--r-rgb), 0.6), rgba(var(--r-rgb), 0.533) 15%, rgba(var(--r-rgb), 0.376) 30%, rgba(var(--r-rgb), 0.233) 42%,
    rgba(var(--r-rgb), 0.114) 54%, rgba(var(--r-rgb), 0.045) 65%, rgba(var(--r-rgb), 0.015) 75%, rgba(var(--r-rgb), 0.004) 84%, rgba(var(--r-rgb), 0) 94%); }
.hero-sky i:nth-child(2) { width: 63.3vmax; height: 63.3vmax; left: calc(62% - 12.65vmax); top: calc(40% - 12.65vmax); animation-duration: 31s; animation-delay: -8s;
  background: radial-gradient(circle closest-side, rgba(var(--l-rgb), 0.477), rgba(var(--l-rgb), 0.42) 15%, rgba(var(--l-rgb), 0.287) 30%, rgba(var(--l-rgb), 0.171) 42%,
    rgba(var(--l-rgb), 0.081) 54%, rgba(var(--l-rgb), 0.032) 65%, rgba(var(--l-rgb), 0.011) 75%, rgba(var(--l-rgb), 0.003) 84%, rgba(var(--l-rgb), 0) 94%); }
.hero-sky i:nth-child(3) { width: 59.7vmax; height: 59.7vmax; left: calc(6% - 12.85vmax); top: calc(30% - 12.85vmax); animation-duration: 37s; animation-delay: -15s;
  background: radial-gradient(circle closest-side, rgba(var(--s-rgb), 0.302), rgba(var(--s-rgb), 0.265) 15%, rgba(var(--s-rgb), 0.178) 30%, rgba(var(--s-rgb), 0.104) 42%,
    rgba(var(--s-rgb), 0.049) 54%, rgba(var(--s-rgb), 0.019) 65%, rgba(var(--s-rgb), 0.007) 75%, rgba(var(--s-rgb), 0.002) 84%, rgba(var(--s-rgb), 0) 94%); }
@keyframes drift { to { transform: translate3d(-6vmax, 4vmax, 0) scale(1.12); } }
.hero-in { width: 100%; max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.kicker { margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 800 11.5px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.kicker span { opacity: 0; transform: translateY(8px); transition: opacity 0.6s, transform 0.6s var(--pop); }
.kicker .k-s { color: var(--s); transition-delay: 0.1s; } .kicker .k-l { color: var(--l); transition-delay: 0.2s; }
.kicker .k-w { color: var(--w); transition-delay: 0.3s; } .kicker .k-r { color: var(--r); transition-delay: 0.4s; }
.ready .kicker span { opacity: 1; transform: none; }
.title { margin: 0; font: 800 clamp(34px, 4.2vw, 58px)/1.04 var(--num); letter-spacing: -0.02em; color: #fff; }
.title .w { display: inline-block; white-space: nowrap; }
.title .ch { display: inline-block; opacity: 0; transform: translateY(0.5em) rotate(6deg) scale(0.8); }
.ready .title .ch { animation: chIn 0.7s var(--pop2) forwards; animation-delay: calc(0.25s + var(--i) * 24ms); }
@keyframes chIn { to { opacity: 1; transform: none; } }
.title .ch { background: linear-gradient(180deg, #fff 30%, #bfe9d4 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px 0 0; max-width: 560px; font-size: 15px; color: var(--mut); opacity: 0; transform: translateY(10px); transition: opacity 0.8s 0.6s, transform 0.8s 0.6s var(--glide); }
.ready .lead { opacity: 1; transform: none; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; opacity: 0; transform: translateY(10px); transition: opacity 0.8s 0.8s, transform 0.8s 0.8s var(--glide); }
.ready .cta { opacity: 1; transform: none; }
.cta.center { justify-content: center; opacity: 1; transform: none; }

/* живая карточка хозяина */
.live { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 14px; background: rgba(21, 32, 36, 0.8);
  border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 13px; max-width: 100%; transition: border-color 0.2s; }
.live:hover { border-color: var(--line-hi); }
/* пульс точки: расходящийся круг через transform и opacity (анимация box-shadow перерисовывала страницу каждый кадр) */
.live-dot { position: relative; width: 9px; height: 9px; flex: none; }
.live-dot::before, .live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ac); }
.live-dot::before { z-index: 1; }
.live-dot::after { opacity: 0; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.55; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.live-t { min-width: 0; }
.live-bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; flex: none; }
.live-bars i { width: 5px; height: 18px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.live-bars i::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 100%); background: rgb(var(--rgb)); border-radius: 3px; transition: height 1.2s var(--glide); }
.live-go { color: var(--mut); }

/* кольцо из четырёх навыков: знак проекта */
.hero-art { position: relative; width: min(360px, 30vw); aspect-ratio: 1; justify-self: center; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; }
.hero-art .halo { position: absolute; inset: 14%; border-radius: 50%; background: conic-gradient(var(--s), var(--l), var(--w), var(--r), var(--s)); filter: blur(34px);
  opacity: 0; transition: opacity 1.6s; animation: spin 9s linear infinite; }
.hero-art.lit .halo { opacity: 0.42; }
.hero-art .rays { position: absolute; inset: -18%; border-radius: 50%; opacity: 0; transition: opacity 2s;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.10) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 62%); mask: radial-gradient(circle, #000 18%, transparent 62%); animation: spin 60s linear infinite; }
.hero-art .rays.r2 { animation-duration: 85s; animation-direction: reverse; }
.hero-art.lit .rays { opacity: 1; }
@keyframes spin { to { transform: rotate(1turn); } }
.ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring .trk { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 10; }
.ring .arc, .four .arc { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 360; transition: stroke-dasharray 0.9s var(--glide), stroke-width 0.5s, filter 0.5s; }
.arc.s { stroke: var(--s); } .arc.l { stroke: var(--l); } .arc.w { stroke: var(--w); } .arc.r { stroke: var(--r); }
.hero-art.on-s .arc.s, .hero-art.on-l .arc.l, .hero-art.on-w .arc.w, .hero-art.on-r .arc.r { stroke-dasharray: 74 286; }
.hero-art .arc { filter: drop-shadow(0 0 6px currentColor); }
.arc.s { color: var(--s); } .arc.l { color: var(--l); } .arc.w { color: var(--w); } .arc.r { color: var(--r); }
.hero-art[data-hot='s'] .arc.s, .hero-art[data-hot='l'] .arc.l, .hero-art[data-hot='w'] .arc.w, .hero-art[data-hot='r'] .arc.r { stroke-width: 16; filter: drop-shadow(0 0 14px currentColor); }
/* Свет без живых filter (30.11): в Firefox кольцо и фон двигаются, и каждый blur, drop-shadow и mask героя считался
   заново на каждом кадре (12-14 кадров в секунду на M1, без них 60). landing.js bake() один раз рисует ореол, свечение
   дуг (.baked) и лучи (.pic) в canvas и ставит обычными картинками, дальше они только крутятся и гаснут через transform
   и opacity. Если canvas не умеет filter (старый Safari), ореол и свечение дуг остаются прежним CSS выше */
.hero-art.baked .halo { inset: -15%; border-radius: 0; background: none; filter: none; }
.hero-art .halo img, .pic > img { display: block; width: 100%; height: 100%; max-width: none; -webkit-user-drag: none; }
.rays.pic, .mine-ring.pic { border-radius: 0; background: none; -webkit-mask: none; mask: none; }
.hero-art.baked .arc { filter: none !important; }
.hero-art.baked .ring .arc { stroke-width: 12 !important; transition: stroke-dasharray 0.9s var(--glide); }
.hero-art .hotarc { position: absolute; max-width: none; pointer-events: none; -webkit-user-drag: none; opacity: 0; transition: opacity 0.5s; }
.hero-art[data-hot='s'] .hotarc.s, .hero-art[data-hot='l'] .hotarc.l, .hero-art[data-hot='w'] .hotarc.w, .hero-art[data-hot='r'] .hotarc.r { opacity: 1; }
.hero-art .glow { position: absolute; left: -18%; top: -18%; width: 136%; height: 136%; max-width: none; pointer-events: none; -webkit-user-drag: none;
  opacity: 0; transition: opacity 0.9s var(--glide); }
.hero-art.lit .glow { transition-duration: 0.5s; }
.hero-art.on-s .glow.s:not(.hot), .hero-art.on-l .glow.l:not(.hot), .hero-art.on-w .glow.w:not(.hot), .hero-art.on-r .glow.r:not(.hot) { opacity: 1; }
.hero-art[data-hot='s'] .glow.s:not(.hot), .hero-art[data-hot='l'] .glow.l:not(.hot), .hero-art[data-hot='w'] .glow.w:not(.hot), .hero-art[data-hot='r'] .glow.r:not(.hot) { opacity: 0; }
.hero-art[data-hot='s'] .glow.hot.s, .hero-art[data-hot='l'] .glow.hot.l, .hero-art[data-hot='w'] .glow.hot.w, .hero-art[data-hot='r'] .glow.hot.r { opacity: 1; }
.orbit { position: absolute; inset: 4%; border-radius: 50%; animation: spin 14s linear infinite; opacity: 0; transition: opacity 1.4s 0.4s; }
.hero-art.lit .orbit { opacity: 1; }
.orbit i { position: absolute; top: -4px; left: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.orbit.o1 { animation-duration: 13s; } .orbit.o1 i { background: var(--s); box-shadow: 0 0 12px 3px rgba(var(--s-rgb), 0.8); }
.orbit.o2 { inset: -4%; animation-duration: 19s; animation-delay: -6s; animation-direction: reverse; } .orbit.o2 i { background: var(--l); box-shadow: 0 0 12px 3px rgba(var(--l-rgb), 0.8); }
.orbit.o3 { inset: 9%; animation-duration: 23s; animation-delay: -11s; } .orbit.o3 i { width: 6px; height: 6px; background: var(--w); box-shadow: 0 0 10px 3px rgba(var(--w-rgb), 0.8); }
.orbit.o4 { inset: -10%; animation-duration: 29s; animation-delay: -3s; animation-direction: reverse; } .orbit.o4 i { width: 5px; height: 5px; background: var(--r); box-shadow: 0 0 10px 3px rgba(var(--r-rgb), 0.8); }
.core { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.core-n { font: 800 clamp(54px, 6.4vw, 84px)/1 var(--num); color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.8s, transform 0.9s var(--pop2);
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.25); }
.hero-art.lit .core-n { opacity: 1; transform: none; }
.core-sk { margin-top: 2px; font: 800 13px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(var(--rgb, 63, 220, 126)); text-shadow: 0 0 16px rgba(var(--rgb, 63, 220, 126), 0.6); opacity: 0; }
.core-sk.pop { animation: skPop 2.4s var(--pop) both; }
@keyframes skPop { 0% { opacity: 0; transform: translateY(8px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
.scroll { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 40px; margin-left: -13px; border-radius: 14px; border: 1.5px solid var(--line-hi); }
.scroll i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--mut); animation: wheel 2s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- секции ---------- */
.sec { position: relative; padding: 72px 16px; }
.sec-h { max-width: 820px; margin: 0 auto 36px; text-align: center; opacity: 0; transform: translateY(18px); transition: opacity 0.8s, transform 0.8s var(--glide); }
.sec-h.in { opacity: 1; transform: none; }
.cap { margin: 0 0 10px; font: 800 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ac); }
.sec h2 { margin: 0; font: 800 clamp(26px, 2.9vw, 38px)/1.1 var(--num); letter-spacing: -0.015em; color: #fff; }
.sub { margin: 12px auto 0; max-width: 600px; color: var(--mut); font-size: 15px; }
.rv { opacity: 0; transform: translateY(26px) scale(0.98); transition: opacity 0.8s var(--d, 0s), transform 0.9s var(--pop) var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* ---------- четыре навыка ---------- */
.sk-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skc { position: relative; padding: 20px 18px 18px; border-radius: var(--rad); background: var(--card); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  box-shadow: inset 0 3px 0 rgb(var(--rgb)), 0 8px 22px rgba(0, 0, 0, 0.25); }
.skc::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, rgba(var(--rgb), 0.16), transparent 60%); }
/* свет пробегает по краю один раз, когда карточка появилась */
.skc-edge { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(var(--rgb), 0.9) 84%, #fff 88%, rgba(var(--rgb), 0.9) 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.skc.in .skc-edge { animation: edge 1.6s var(--glide) var(--d, 0s) 1 both; }
@keyframes edge { 0% { --a: 0deg; opacity: 1; } 85% { opacity: 1; } 100% { --a: 360deg; opacity: 0; } }
.skc-ico { width: 38px; height: 38px; fill: none; stroke: rgb(var(--rgb)); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(var(--rgb), 0.7)); }
.skc-ico * { stroke-dasharray: 80; stroke-dashoffset: 80; }
.skc.in .skc-ico * { animation: draw 1.4s var(--glide) calc(var(--d, 0s) + 0.25s) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.skc h3 { margin: 12px 0 0; font: 800 20px/1.1 var(--num); color: rgb(var(--rgb)); }
.skc-sub { margin: 2px 0 0; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mut); }
.skc-line { margin: 12px 0 0; color: var(--fg); font-weight: 600; }
.skc-how { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.skc-how li { display: flex; flex-direction: column; gap: 1px; padding-left: 12px; border-left: 2px solid rgba(var(--rgb), 0.45); }
.skc-how b { font-size: 12.5px; color: #fff; }
.skc-how span { font-size: 13px; color: var(--mut); }
.four { margin: 46px auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.four svg { width: 96px; height: 96px; overflow: visible; }
.four .arc { stroke-width: 13; }
.four.go .arc.s { stroke-dasharray: 74 286; transition-delay: 0s; } .four.go .arc.l { stroke-dasharray: 74 286; transition-delay: 0.25s; }
.four.go .arc.w { stroke-dasharray: 74 286; transition-delay: 0.5s; } .four.go .arc.r { stroke-dasharray: 74 286; transition-delay: 0.75s; }
.four .arc { filter: drop-shadow(0 0 7px currentColor); }
.four .chk { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.6s var(--glide) 1.15s; filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); }
.four.go .chk { stroke-dashoffset: 0; }
.four b { font: 800 15px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg); opacity: 0; transform: translateY(6px); transition: opacity 0.6s 1.5s, transform 0.6s var(--pop) 1.5s; }
.four.go b { opacity: 1; transform: none; }

/* ---------- приложения ---------- */
#apps { overflow-x: clip; } /* мягкое свечение устройств не раздвигает страницу вбок */
#appList { max-width: var(--wrap); margin: 0 auto; display: flex; flex-direction: column; gap: 80px; }
.app { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 44px; align-items: center; }
.app:nth-child(even) .app-txt { order: 2; }
.app-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.app-ico { width: 34px; height: 34px; padding: 7px; border-radius: 12px; fill: none; stroke: rgb(var(--rgb)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  background: rgba(var(--rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--rgb), 0.35); }
.app h3 { margin: 0; font: 800 clamp(24px, 2.4vw, 32px)/1 var(--num); color: #fff; }
.app-sk { display: inline-flex; gap: 4px; }
.app-sk i { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font: 800 10.5px/1 var(--num); font-style: normal;
  color: rgb(var(--rgb)); background: rgba(var(--rgb), 0.14); box-shadow: inset 0 0 0 1px rgba(var(--rgb), 0.4); }
.app-tag { margin: 14px 0 0; font: 800 clamp(16px, 1.4vw, 19px)/1.25 var(--mono); color: rgb(var(--rgb)); }
.app-text { margin: 10px 0 0; color: var(--mut); font-size: 14.5px; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { padding: 6px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--fg); background: var(--card); border: 1px solid var(--line); }
.app-where { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); font-weight: 600; }
.app-btns { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.app-btns .btn:not(.ghost) { background: rgb(var(--rgb)); color: #061215; }
.app-btns .btn:not(.ghost):hover { filter: brightness(1.08); }

/* устройства: телефон и ноутбук нарисованы CSS, в них свежие снимки, по прокрутке лёгкий наклон */
.app-dev { position: relative; min-height: 330px; display: flex; align-items: center; justify-content: center; perspective: 1400px;
  transform: translateY(var(--py, 0px)); transition: transform 0.2s linear; }
/* свечение за устройствами без filter: blur(30px): телефон плавает над ним, и Firefox размывал его на каждом кадре.
   Размытие посчитано в двух градиентах (цвет и второй цвет), коробка шире на 2.6σ = 78px */
.app-dev::before { content: ''; position: absolute; inset: calc(8% - 78px) calc(4% - 78px); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--rgb), 0.198), rgba(var(--rgb), 0.135) 20%, rgba(var(--rgb), 0.057) 35%, rgba(var(--rgb), 0.009) 50%, rgba(var(--rgb), 0) 62%),
    radial-gradient(closest-side, rgba(var(--rgb2), 0.029), rgba(var(--rgb2), 0.052) 20%, rgba(var(--rgb2), 0.075) 35%, rgba(var(--rgb2), 0.068) 50%,
      rgba(var(--rgb2), 0.039) 62%, rgba(var(--rgb2), 0.016) 72%, rgba(var(--rgb2), 0.004) 82%, rgba(var(--rgb2), 0) 92%); }
.laptop { position: relative; width: 88%; transform: rotateY(calc(var(--ry, 0deg) * -1)) rotateX(4deg); transform-style: preserve-3d; transition: transform 0.2s linear; }
.lid { padding: 2.2% 2.2% 2.6%; border-radius: 16px 16px 6px 6px; background: linear-gradient(180deg, #22303a, #141c22); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.base { height: 14px; margin: 0 -5%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #2a3843, #121a20); box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.8); }
.phone { position: relative; width: 33%; max-width: 230px; padding: 2.4%; border-radius: 30px; background: linear-gradient(160deg, #26343e, #10171c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 30px 60px -18px rgba(0, 0, 0, 0.8); transform: rotateY(var(--ry, 0deg)); transition: transform 0.2s linear; }
.with-desk .phone { position: absolute; right: 0; bottom: -6%; width: 27%; }
.app:nth-child(even) .with-desk .phone { right: auto; left: 0; }
.phone .scr { border-radius: 23px; aspect-ratio: 390 / 844; }
.scr { position: relative; overflow: hidden; background: #0b1012; }
.scr.wide { aspect-ratio: 16 / 10; border-radius: 6px; }
.scr img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 0.9s ease; }
.scr img.on { opacity: 1; }
.app:not(.play) .phone { animation-play-state: paused; }
.phone { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.sweep { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, rgba(var(--rgb), 0.2) 52%, transparent 65%);
  transform: translateX(-120%); }
.sweep.go { animation: sweep 1.1s var(--glide); }
@keyframes sweep { to { transform: translateX(120%); } }

/* ---------- как связано ---------- */
.web-box { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 1000 / 520; }
.web-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.web-lines path { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; stroke-dasharray: 6 8; }
/* точка со свечением: ореол нарисован градиентом (landing.js webPulses), без drop-shadow на каждом кадре движения */
.web-lines .pulse { fill: rgb(var(--rgb)); }
.web-box:not(.play) .pulse, .web-box:not(.play) .pglow { display: none; }
.web-mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; background: var(--card); border: 1px solid var(--line-hi); }
/* кольцо из четырёх цветов: векторные дуги крутятся сами (раньше conic-gradient под mask и drop-shadow перерисовывались
   каждый кадр). От той тени маска оставляла только лёгкий свет в просветах: это тусклая дорожка .trk под дугами */
.web-ring { position: absolute; left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; animation: spin 24s linear infinite; }
.web-ring circle { fill: none; stroke-width: 13.5; stroke-dasharray: 22 78; }
.web-ring .trk { stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: none; }
.web-ring .s { stroke: var(--s); } .web-ring .l { stroke: var(--l); stroke-dashoffset: -25; }
.web-ring .w { stroke: var(--w); stroke-dashoffset: -50; } .web-ring .r { stroke: var(--r); stroke-dashoffset: -75; }
.web-mid b { font: 800 18px/1 var(--num); color: #fff; }
.web-mid span { margin-top: 4px; font-size: 11.5px; color: var(--mut); }
.web-n { position: absolute; width: 210px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px;
  box-shadow: inset 0 3px 0 rgb(var(--rgb)); }
.web-n b { font: 800 16px/1.1 var(--num); color: #fff; }
.web-n span { font-size: 12.5px; color: var(--mut); }
.web-n[data-app='went'] { --rgb: 116, 216, 193; } .web-n[data-app='watch'] { --rgb: 63, 196, 255; } .web-n[data-app='read'] { --rgb: 155, 140, 255; } .web-n[data-app='status'] { --rgb: 63, 220, 126; }
.n1 { left: 0; top: 6%; } .n2 { right: 0; top: 6%; } .n3 { left: 0; bottom: 6%; } .n4 { right: 0; bottom: 6%; }

/* ---------- цена ---------- */
.pr-grid { max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pr { position: relative; padding: 22px 22px; border-radius: var(--rad); background: var(--card); border: 1px solid var(--line); opacity: 0; transform: translateY(20px); transition: opacity 0.8s, transform 0.9s var(--pop); }
.pr.in { opacity: 1; transform: none; }
.pr.pro { transition-delay: 0.12s; background: radial-gradient(120% 90% at 100% 0%, rgba(155, 140, 255, 0.16), transparent 60%), var(--card); border-color: rgba(155, 140, 255, 0.35); }
.pr h3 { margin: 0; font: 800 24px/1 var(--num); color: #fff; display: flex; align-items: center; gap: 10px; }
.pr h3 em { font: 800 11px/1 var(--mono); font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; color: var(--r); background: rgba(155, 140, 255, 0.14); }
.pr-sum { margin: 10px 0 0; color: var(--mut); }
.pr ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pr li { position: relative; padding-left: 26px; }
.pr li::before { content: '✓'; position: absolute; left: 0; top: 0; font-weight: 800; color: var(--ac); }
.pr.pro li::before { content: '✦'; color: var(--r); }
.pr-note { margin: 18px 0 0; font-size: 12.5px; color: var(--dim); }

/* ---------- скачать ---------- */
.get-grid { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
/* строки карточек общие (subgrid): заголовок, описание, кнопки и подпись стоят на одной высоте во всех четырёх */
.gc { padding: 20px 18px; border-radius: var(--rad); background: var(--card); border: 1px solid var(--line); display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 10px; align-content: start; box-shadow: inset 0 3px 0 rgb(var(--rgb)); }
.gc-h { display: flex; align-items: center; gap: 10px; }
.gc-h b { font: 800 18px/1 var(--num); color: #fff; }
.gc-h .app-ico { width: 34px; height: 34px; padding: 6px; }
.gc p { margin: 0; color: var(--mut); font-size: 13.5px; }
.gc-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.gc-btns .btn { width: 100%; min-height: 46px; }
.gc-btns .btn:not(.ghost) { min-height: 58px; }
.gc-btns .btn:not(.ghost) small { flex-basis: 100%; text-align: center; }
.gc-btns .btn:not(.ghost) { background: rgb(var(--rgb)); color: #061215; }
.gc-note { font-size: 11.5px !important; color: var(--dim) !important; }

/* ---------- своя страница ---------- */
.mine-box { position: relative; max-width: 860px; margin: 0 auto; padding: 44px 24px; text-align: center; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 120% at 50% 0%, rgba(63, 220, 126, 0.12), transparent 60%), var(--card); border: 1px solid var(--line); opacity: 0; transform: translateY(20px);
  transition: opacity 0.8s, transform 0.9s var(--pop); }
.mine-box.in { opacity: 1; transform: none; }
.mine-ring { position: absolute; left: 50%; top: -220px; width: 440px; height: 440px; margin-left: -220px; z-index: -1; border-radius: 50%; opacity: 0.5;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.07) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 66%); mask: radial-gradient(circle, #000 20%, transparent 66%);
  animation: spin 70s linear infinite; }
.mine-url { margin: 18px 0 0; font: 700 clamp(16px, 2.6vw, 28px)/1.3 var(--mono); color: var(--mut); overflow-wrap: anywhere; }
.mine-url b { color: var(--ac); text-shadow: 0 0 18px rgba(63, 220, 126, 0.45); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.12em; background: var(--ac); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- подвал ---------- */
.foot { padding: 40px 16px 50px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--mut); font-size: 13px; font-weight: 600; }
.foot nav a:hover { color: var(--fg); }
.by { width: 100%; margin: 0; color: var(--dim); font-size: 12.5px; }

/* ---------- окна: вход и ник ---------- */
.lp-dlg { width: min(440px, calc(100vw - 32px)); padding: 22px 22px 24px; border-radius: 20px; background: var(--card); color: var(--fg); border: 1px solid var(--line-hi); }
.lp-dlg::backdrop { background: rgba(5, 8, 12, 0.7); backdrop-filter: blur(4px); }
.lp-dlg[open] { animation: dlgIn 0.45s var(--pop); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
.dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dlg-h h3 { margin: 0; font: 800 20px/1.2 var(--num); color: #fff; }
.dlg-h .x { appearance: none; border: 0; background: none; cursor: pointer; color: var(--mut); font-size: 20px; }
.lp-dlg .muted { margin: 10px 0 0; color: var(--mut); font-size: 13.5px; }
.gbox { margin-top: 18px; min-height: 44px; display: flex; justify-content: center; }
.gbox iframe { color-scheme: light; }
.msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: #e5645d; }
.nick-row { margin-top: 16px; display: flex; align-items: center; border-radius: 14px; background: var(--card-hi); border: 1px solid var(--line-hi); overflow: hidden; }
.nick-row:focus-within { border-color: var(--ac); }
.nick-row span { padding: 0 2px 0 12px; color: var(--dim); font-size: 13px; white-space: nowrap; }
.nick-in { flex: 1; min-width: 0; appearance: none; border: 0; background: none; color: #fff; padding: 13px 12px 13px 0; font: 800 16px var(--mono); outline: none; }
.nick-st { min-height: 20px; margin: 8px 0 0; font-size: 13px; font-weight: 700; color: var(--mut); }
.nick-st.ok { color: var(--ac); } .nick-st.bad { color: #e5645d; }
.dlg-btns { margin-top: 16px; display: flex; justify-content: flex-end; }
.dlg-btns .btn { width: 100%; }

/* окно «Сообщить о баге» (общий bug.js, классы как в настройках хаба) */
.admin { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); color: var(--fg); border: 1px solid var(--line-hi); border-radius: 18px; padding: 18px 18px 22px; }
.admin::backdrop { background: rgba(5, 8, 12, 0.7); }
.admin h2 { margin: 0 0 12px; font: 800 18px/1.2 var(--num); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.admin .close { appearance: none; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--mut); }
.admin label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--mut); margin-top: 10px; }
.admin input { width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: var(--card-hi); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.admin textarea { width: 100%; resize: vertical; min-height: 120px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-hi); color: var(--fg); font: 500 14px/1.45 var(--mono); }
.admin textarea:focus, .admin input:focus { outline: none; border-color: var(--ac); }
.admin .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.admin .row > * { flex: 1 1 140px; }
.admin .btn { border-radius: 12px; }
.admin .muted { color: var(--dim); font-size: 11.5px; margin: 10px 0 0; }
.admin .msg.bad { color: #e5645d; }
.admin .msg:not(.bad) { color: var(--ac); }

/* компьютер (01.12, пользователь: «тошнотно огромное»): всё ниже первого экрана в 0.8, ширина та же (--wrap / 0.8) */
@media (min-width: 981px) {
  .sec { padding: 56px 16px; }
  .sec > *, .foot-in { zoom: 0.8; --wrap: 1300px; }
}

/* ---------- телефон ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero { padding-top: 84px; align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; gap: 10px; text-align: center; }
  .hero-art { order: -1; width: min(78vw, 360px); }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  .kicker { justify-content: center; }
  .sk-grid { grid-template-columns: 1fr 1fr; }
  .app, .app:nth-child(even) { grid-template-columns: 1fr; gap: 34px; }
  .app:nth-child(even) .app-txt { order: 0; }
  .app-dev { min-height: 0; }
  /* свечение до краёв экрана, не дальше: иначе телефон раздвигал страницу шире экрана */
  .app-dev::before { left: -16px; right: -16px; }
  .get-grid { grid-template-columns: 1fr 1fr; }
  .pr-grid { grid-template-columns: 1fr; }
  .web-box { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .web-lines { display: none; }
  .web-mid { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; justify-self: center; margin-bottom: 8px; }
  .web-n { position: relative; width: auto; inset: auto; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .nav { gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .brand b { font-size: 14px; }
  .nav-r { gap: 8px; }
  .langs button { padding: 5px 7px; }
  .sec { padding: 76px 16px; }
  .sk-grid, .get-grid, .web-box { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
  .live { width: 100%; }
  .with-desk .phone { width: 34%; bottom: -10%; }
  #appList { gap: 86px; }
  .mine-box { padding: 44px 18px; }
}
@media (max-width: 380px) { .brand b { display: none; } }

/* без движения: всё сразу на месте, частиц нет */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .title .ch, .kicker span, .lead, .cta, .rv, .sec-h, .pr, .mine-box { opacity: 1 !important; transform: none !important; }
  .hero-art .halo { opacity: 0.42; } .hero-art .rays, .hero-art .orbit, .core-n, .core-sk { opacity: 1; transform: none; }
  .hero-art .arc { stroke-dasharray: 74 286; }
  .four .arc { stroke-dasharray: 74 286; } .four .chk { stroke-dashoffset: 0; } .four b { opacity: 1; transform: none; }
}

/* ---------- простые страницы: приватность, «такой страницы нет» ---------- */
.plain-main { padding: 110px 16px 70px; min-height: 80vh; }
.nope { margin-top: 4vh; }
.nope-fish { margin: 0 0 6px; font: 800 44px/1 var(--mono); color: var(--ac); text-shadow: 0 0 24px rgba(63, 220, 126, 0.5); }
.nope h2 { margin: 0; font: 800 clamp(26px, 4vw, 40px)/1.1 var(--num); color: #fff; }
.doc { max-width: 760px; margin: 0 auto; }
.doc h1 { margin: 0 0 18px; font: 800 clamp(30px, 4vw, 44px)/1.1 var(--num); color: #fff; }
.doc h2 { margin: 30px 0 8px; font: 800 19px/1.25 var(--num); color: var(--ac); }
.doc p { margin: 0 0 12px; color: var(--fg); }
.doc .dim { color: var(--dim); font-size: 13px; margin-top: 30px; }

/* окно «Сообщить о баге» на главной: одной колонкой, на телефоне снизу */
.bugdlg .bug-col { display: flex; flex-direction: column; gap: 10px; }
.bugdlg .bug-l { margin: 0; }
.bugdlg .bug-wide { width: 100%; }
.bugdlg .msg:empty { display: none; }
.bugdlg .bug-info { margin: 0; }
@media (max-width: 640px) { dialog.bugdlg { margin: auto auto 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); } }
