/* Anomalia VPN — визуальный слой «Anomaly» (11.11.2026).
   Подключается последним на сайте, в кабинете, PWA, Mini App и приложениях.
   Монохром по эталону: чёрное стекло, тонкие светлые линии, живая лента-«аномалия» (anomaly-field.js),
   тёплый градиент (золото → оранжевый → маджента) — только в знаке и точечных акцентах.
   Тёмная тема по умолчанию, светлая — та же графика в инверсии. Все цвета — токенами ниже. */

@font-face { font-family: Manrope; src: url("fonts/manrope-var.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

/* ── Токены ─────────────────────────────────────────────────────────── */
:root,
body[data-mode="dark"] {
  --ava-ink: #ffffff;
  --video-dim: 0.9;
  color-scheme: dark;
  --font: Manrope, "Segoe UI", Arial, sans-serif;
  --outer: #000000;
  --bg: #050506;
  --side: #09090b;
  --surface: #0e0e10;
  --raised: #18181b;
  --field: #131316;
  --fieldHover: #1b1b1f;
  --text: #f4f4f5;
  --muted: #a1a1a8;
  --subtle: #6e6e76;
  --accent: #ff6a4d;
  --accent2: #ffb84d;
  --accent3: #ff3d8b;
  --accentInk: #ffffff;
  --accentSoft: #22140f;
  --accentDeep: #ff4f6a;
  --accentText: #ff9a6b;
  --white: #f4f4f5;
  --whiteInk: #050506;
  --error: #ff7a86;
  --errorSoft: #2a1216;
  --hair: rgb(255 255 255 / 0.08);
  --hairStrong: rgb(255 255 255 / 0.14);
  --glass: rgb(16 16 18 / 0.62);
  --glassStrong: rgb(12 12 14 / 0.88);
  --glassEdge: rgb(255 255 255 / 0.12);
  --sky1: #1d1d21;
  --sky2: #0b0b0d;
  --sky3: #121214;
  --sky4: #17171a;
  --glow: rgb(255 106 77 / 0.28);
  --shadow: 0 40px 100px -40px rgb(0 0 0 / 0.9);
  --shadowCard: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 24px 50px -30px rgb(0 0 0 / 0.8);
  --shadowLift: 0 30px 70px -30px rgb(0 0 0 / 0.9);
  --grad: linear-gradient(135deg, #ffc65c 0%, #ff7a45 45%, #ff3d8b 100%);
  --gradIris: linear-gradient(120deg, #ffc65c, #ff7a45 45%, #ff3d8b 80%, #ffc65c);
  /* Чёрное стекло плашек: градиент сверху вниз и светлый край */
  --plate: linear-gradient(180deg, #1a1a1d 0%, #0b0b0d 55%, #050506 100%);
  --plateEdge: linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0.06) 45%, rgb(255 255 255 / 0.14));
  --field-ink: #ececee;
  --field-shade: #0a0a0c;
  --radius: 28px;
  --radiusSmall: 18px;
  --pill: 999px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}
body[data-mode="light"] {
  color-scheme: light;
  --outer: #e9e9eb;
  --bg: #f3f3f4;
  --side: #ececee;
  --surface: #ffffff;
  --raised: #ececee;
  --field: #f0f0f2;
  --fieldHover: #e8e8eb;
  --text: #0a0a0c;
  --muted: #55555c;
  --subtle: #8a8a92;
  --accent: #ff5a3d;
  --accentSoft: #fff0eb;
  --accentDeep: #f0436a;
  --accentText: #e2452c;
  --white: #0a0a0c;
  --whiteInk: #ffffff;
  --error: #d6364a;
  --errorSoft: #fde9ec;
  --hair: rgb(10 10 12 / 0.08);
  --hairStrong: rgb(10 10 12 / 0.14);
  --glass: rgb(255 255 255 / 0.7);
  --glassStrong: rgb(255 255 255 / 0.9);
  --glassEdge: rgb(255 255 255 / 0.9);
  --sky1: #ffffff;
  --sky2: #f3f3f4;
  --sky3: #ececee;
  --sky4: #f6f6f7;
  --glow: rgb(255 90 61 / 0.25);
  --shadow: 0 30px 80px -30px rgb(10 10 12 / 0.25);
  --shadowCard: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 18px 40px -26px rgb(10 10 12 / 0.3);
  --shadowLift: 0 30px 60px -30px rgb(10 10 12 / 0.35);
  --plate: linear-gradient(180deg, #ffffff 0%, #f1f1f3 100%);
  --plateEdge: linear-gradient(180deg, rgb(255 255 255 / 1), rgb(10 10 12 / 0.08));
  --field-ink: #1c1c20;
  --field-shade: #f2f2f4;
}
body[data-accent="wine"] { --accent: #ff3d8b; --accent2: #ff7a45; --accentText: #ff6aa6; }

/* ── База ───────────────────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: radial-gradient(1100px 700px at 85% -10%, var(--sky1), transparent 60%), var(--outer);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.04em; }
h4 { font-weight: 700; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.eyebrow { font-weight: 500; letter-spacing: 0.08em; font-size: 12px; color: var(--muted); text-transform: uppercase; }
.muted { color: var(--muted); }

/* Окно кабинета и приложения: чёрное поле с мягким светом сверху */
.app {
  background: radial-gradient(120% 480px at 70% -140px, var(--sky1), transparent 70%), var(--bg);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
}
/* Сайт — без рамки, во всю ширину окна */
body[data-surface="site"] .app { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }

/* ── Логотип: объёмный знак + «anomalia VPN» ───────────────────────── */
.evil-mark,
.web-logo i.evil-mark,
.brand .evil-mark,
.row-icon.own .evil-mark {
  -webkit-mask: none;
  mask: none;
  background: url(assets/logo-anomaly.webp) center / contain no-repeat;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 14px rgb(255 90 90 / 0.25));
}
.web-logo i.evil-mark { width: 1.05em; height: 1.05em; margin-inline-end: 0.32em; transform: translateY(0.1em); background-color: transparent; }
.web-logo, .brand { font-weight: 700; letter-spacing: -0.05em; }
.web-logo span, .brand span { margin-inline-start: 0.26em; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: -0.03em; }
.web-logo:hover .evil-mark, .brand:hover .evil-mark { transform: translateY(0.1em) rotate(-8deg) scale(1.06); }
.evil-mark { transition: transform 0.6s var(--ease); }
.row-icon.own { background: var(--raised); }
.row-icon.own .evil-mark { width: 26px; height: 26px; }

/* ── Кнопки: белая пилюля, стекло, контур ──────────────────────────── */
.btn { border-radius: var(--pill); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s; }
.btn.small { border-radius: var(--pill); font-size: 13px; }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn.accent,
.btn.primary,
#webHeader.menu-open .web-links > a.mobile-only {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--whiteInk);
  box-shadow: 0 18px 40px -18px rgb(255 255 255 / 0.35);
}
body[data-mode="light"] .btn.accent, body[data-mode="light"] .btn.primary { box-shadow: 0 16px 34px -16px rgb(10 10 12 / 0.55); }
.btn.accent::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.5) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
  pointer-events: none;
}
body[data-mode="dark"] .btn.accent::after { background: linear-gradient(105deg, transparent 30%, rgb(255 140 90 / 0.35) 48%, transparent 66%); }
.btn.accent:hover:not(:disabled)::after { transform: translateX(120%); }
.btn.accent:hover:not(:disabled), .btn.primary:hover:not(:disabled) { transform: translateY(-1px); filter: none; }
.btn.secondary { background: var(--plate); color: var(--text); box-shadow: 0 0 0 1px var(--hairStrong) inset, 0 1px 0 rgb(255 255 255 / 0.08) inset, var(--shadowCard); }
.btn.ghost, .btn.ghost:active { color: var(--text); background: var(--glass); box-shadow: 0 0 0 1px var(--hairStrong) inset; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn.ghost:hover:not(:disabled) { background: var(--glassStrong); }
.btn.danger { background: var(--errorSoft); color: var(--error); }
.iconbtn { background: var(--plate); box-shadow: 0 0 0 1px var(--hairStrong) inset, 0 10px 24px -14px rgb(0 0 0 / 0.6); border-radius: 50%; }
.link { color: var(--text); }
.link svg { transition: transform 0.25s var(--ease); }
.link:hover svg { transform: translateX(3px); }
[dir="rtl"] .link:hover svg { transform: translateX(-3px) scaleX(-1); }
.pill { background: var(--raised); color: var(--text); font-weight: 600; box-shadow: 0 0 0 1px var(--hair) inset; }
.pill.neutral { background: var(--raised); color: var(--muted); }
.dot.green { background: linear-gradient(135deg, #ffffff, #8a8a92); }
.dot.wine { background: var(--grad); }
.dot { box-shadow: 0 0 0 4px var(--surface), 0 6px 14px -6px rgb(0 0 0 / 0.6); }
.ev-install { font-family: var(--font); background: rgb(0 0 0 / 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ev-i-ic { color: var(--text); background: var(--raised); }

/* ── Поля ───────────────────────────────────────────────────────────── */
.field, input.field, select.field, textarea.field {
  background: var(--field);
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--hair) inset;
  transition: box-shadow 0.2s, background 0.2s;
}
.field:focus { background: var(--surface); box-shadow: 0 0 0 1.5px var(--text) inset, 0 0 0 5px color-mix(in srgb, var(--text) 10%, transparent); outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: color-mix(in srgb, var(--text) 60%, transparent); }

/* ── Поверхности: чёрное стекло с тонким светлым краем ─────────────── */
.surface, .benefit, .price-card, .web-faq details, .web-final, .loc-card, .review, .mode-card {
  background: var(--plate);
  box-shadow: 0 0 0 1px var(--hair) inset, 0 1px 0 rgb(255 255 255 / 0.07) inset, var(--shadowCard);
}
body[data-mode="light"] .surface, body[data-mode="light"] .benefit, body[data-mode="light"] .price-card, body[data-mode="light"] .web-faq details,
body[data-mode="light"] .web-final, body[data-mode="light"] .loc-card, body[data-mode="light"] .review, body[data-mode="light"] .mode-card { background: var(--surface); }
.surface.soft { background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
/* Выделенные карточки: то же стекло, край — фирменным градиентом */
.surface.highlight, .benefit.mint, .price-card.featured, .plan.highlight, .account-stats > button:first-child {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--text);
  border: 1px solid transparent;
  background: var(--plate) padding-box, var(--grad) border-box;
  box-shadow: 0 30px 70px -36px var(--glow), var(--shadowCard);
}
body[data-mode="light"] .surface.highlight, body[data-mode="light"] .benefit.mint, body[data-mode="light"] .price-card.featured,
body[data-mode="light"] .plan.highlight, body[data-mode="light"] .account-stats > button:first-child { background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
.surface.highlight .muted, .surface.highlight .eyebrow, .benefit.mint p, .price-card.featured > p, .account-stats > button:first-child span, .account-stats > button:first-child small, .account-stats > button:first-child p { color: var(--muted); opacity: 1; }
.surface.highlight .btn:not(.ghost):not(.secondary), .price-card.featured .btn, .plan.highlight .btn { background: var(--white); color: var(--whiteInk); }
.surface.highlight .pill, .price-card.featured .pill { background: var(--grad); color: #fff; box-shadow: none; }
.tile-icon { background: var(--raised); color: var(--text); border-radius: 16px; }
.benefit.mint .tile-icon { background: var(--raised); color: var(--text); }
/* Стеклянные иконки — монохромно, в тон эталону */
/* Иконки — 3D-предметы в градиенте знака на чёрной стеклянной плитке (.mummy/tools/icons.py) */

/* ── Шапка сайта: прозрачная, поверх первого экрана ───────────────── */
.web-header { background: transparent; position: relative; z-index: 20; }
.web-links a { font-weight: 500; border-radius: var(--pill); color: var(--muted); }
.web-links a:hover { color: var(--text); background: var(--glass); }
.web-links a.active { color: var(--text); background: var(--plate); box-shadow: 0 0 0 1px var(--hairStrong) inset; }
.web-head-actions .iconbtn, .web-head-actions .lang-menu > summary { background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#webHeader.menu-open .web-menu { background: var(--white); color: var(--whiteInk); }
#webHeader.menu-open::before { background: rgb(0 0 0 / 0.5); }
#webHeader.menu-open .web-links > a.active::after { border-color: var(--text); }
@media (max-width: 1000px) {
  #webHeader.menu-open .web-links { background: var(--glassStrong); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); box-shadow: 0 0 0 1px var(--hairStrong) inset, var(--shadowLift); }
  #webHeader.menu-open .web-links > a.active { background: var(--raised); }
}

/* ── Типографика сайта ──────────────────────────────────────────────── */
.web-top h1, .auth-art h1 { font-weight: 700; letter-spacing: -0.05em; line-height: 1.02; }
.web-top h1 em, .web-section h2 em { font-style: normal; color: var(--muted); }
.web-section h2, .web-final h2 { letter-spacing: -0.045em; font-weight: 700; }
.benefit h3, .web-steps h3 { letter-spacing: -0.03em; }
.web-price { letter-spacing: -0.04em; }
.web-steps > div > span { color: var(--text); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.web-strip a { color: var(--subtle); transition: color 0.2s; }
.web-strip a:hover { color: var(--text); }
.web-cta { flex-wrap: wrap; }
.web-cta .btn { white-space: nowrap; }
.web-footer { padding-top: 56px; }

/* ── Первый экран: «аномалия» во всю ширину и стеклянная плашка ────── */
body[data-surface="site"] .web-hero ~ * { position: relative; }
.web-hero {
  position: relative;
  isolation: isolate;
  display: block;
  max-width: none;
  min-height: min(880px, 100svh);
  margin: -96px 0 0;
  padding: 0;
  overflow: hidden;
  background: radial-gradient(70% 80% at 72% 30%, color-mix(in srgb, var(--field-ink) 16%, var(--bg)), var(--bg) 72%);
}
.web-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--bg)); z-index: 1; pointer-events: none; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 150px 24px 110px;
}
.hero-site, .hero-foot { width: min(980px, 100%); }
.hero-site { font-size: 15px; font-weight: 400; letter-spacing: 0.02em; color: var(--muted); padding-inline-start: 7%; margin-bottom: 28px; }
.hero-plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.34em;
  width: min(980px, 100%);
  margin: 0;
  padding: 0.5em 0.9em;
  border-radius: var(--pill);
  font-size: clamp(40px, 7.2vw, 104px) !important;
  font-weight: 700;
  letter-spacing: -0.055em !important;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, rgb(26 26 29 / 0.94) 0%, rgb(6 6 7 / 0.97) 60%, rgb(2 2 3 / 0.98) 100%);
  box-shadow: 0 50px 90px -30px rgb(0 0 0 / 0.85), 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 -1px 0 rgb(255 255 255 / 0.06) inset;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
/* Светлый ободок стеклянной плашки — ярче сверху, как у эталона */
.hero-plate::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: linear-gradient(180deg, rgb(255 255 255 / 0.42), rgb(255 255 255 / 0.08) 40%, rgb(255 255 255 / 0.04) 70%, rgb(255 255 255 / 0.2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hero-plate img { width: 1.18em; height: 1.18em; flex: none; filter: drop-shadow(0 10px 26px rgb(255 80 90 / 0.35)); animation: an-mark 9s ease-in-out infinite; }
.hero-plate span { white-space: nowrap; }
.hero-plate b { font-weight: 700; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 48px; align-items: start; padding-inline-start: 7%; margin-top: 52px; }
.hero-tag { margin: 0; font-size: 19px; line-height: 1.35; color: var(--text); font-weight: 500; }
.hero-tag br + * , .hero-tag { letter-spacing: -0.01em; }
.hero-lead { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 40ch; }
.hero-foot .web-cta { grid-column: 1 / -1; margin-top: 10px; }
body[data-mode="light"] .web-hero { background: radial-gradient(70% 80% at 72% 30%, #ffffff, var(--bg) 72%); }
@keyframes an-mark { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-4px); } }
@media (max-width: 1000px) {
  .web-hero { margin-top: -84px; min-height: 0; }
  .hero-inner { padding: 130px 20px 80px; }
  .hero-site, .hero-foot { padding-inline-start: 4%; }
}
@media (max-width: 700px) {
  .web-hero { margin-top: -74px; }
  .hero-inner { padding: 120px 16px 64px; justify-items: stretch; }

  .hero-site { padding: 0; margin-bottom: 20px; font-size: 13px; }
  .hero-foot { grid-template-columns: 1fr; padding: 0; margin-top: 36px; }
  .hero-tag { font-size: 18px; }
  .hero-foot .web-cta { flex-direction: column; }
  .hero-foot .web-cta .btn { width: 100%; justify-content: center; }
}

/* ── Иллюстрации: статичные кадры «аномалии» вместо маскота ────────── */
.mosaic, div.mosaic { display: none !important; }
.web-art, .hero-art, .wiz-art { isolation: isolate; }
.web-art img, .hero-art img, .wiz-art img, .onboarding > img, .top-mascot, .mascot-404 { filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.5)); animation: an-float 8s ease-in-out infinite; }
.web-art img { width: 82%; transform: none; }
.web-art.compact img { width: 76%; }
.ambient, .hero-art .orbit { width: 70%; height: 70%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--field-ink) 18%, transparent), transparent); opacity: 0.6; filter: none; transform: none; animation: none; }
.web-art::after, .hero-art::after { display: none; }
.hero-art::before { display: none; }
.art-caption { bottom: -2%; letter-spacing: 0.32em; font-weight: 500; color: var(--subtle); }
/* Фоновая лента в блоках (canvas data-preset="card") */
.anomaly-field.bg-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0.85; }

/* Видео «аномалии» (первый экран и финальный блок): пара роликов, виден ролик текущей темы */
.field-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; pointer-events: none; background: var(--bg); }
.web-hero .field-video { object-position: 50% 45%; }
.web-final .field-video { opacity: var(--video-dim); }
body[data-mode="light"] .field-video[data-theme="dark"], body:not([data-mode="light"]) .field-video[data-theme="light"] { display: none; }

/* Отзывы: аватар в градиенте знака; лента видна всегда, без анимации появления */
.review-ava { background: var(--grad); color: var(--ava-ink); }

/* ── Финальный блок ─────────────────────────────────────────────────── */
.web-final { position: relative; overflow: hidden; isolation: isolate; }
.web-final > *:not(.bg-field):not(.top-mascot) { position: relative; z-index: 2; }
.web-final::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--bg) 85%, transparent), transparent 80%); pointer-events: none; }
.web-final .top-mascot { display: none; }

/* Стеклянные иллюстрации карточек */
.benefit.has-art { padding-bottom: 36px; }
.benefit.has-art p { max-width: none; }
.benefit-art { width: 44%; max-width: 190px; inset-inline-end: -8px; bottom: -14px; opacity: 0.96; -webkit-mask-image: none; mask-image: none; transform: rotate(-6deg); filter: drop-shadow(0 18px 24px rgb(0 0 0 / 0.5)); }

/* ── FAQ, отзывы, карточки ──────────────────────────────────────────── */
.web-faq details { transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease); }
.web-faq details[open] { box-shadow: 0 0 0 1px var(--hairStrong) inset, var(--shadowLift); }
.web-faq summary span { transition: transform 0.3s var(--ease); }
.benefit, .price-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
@media (hover: hover) {
  .benefit:hover, .price-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--hairStrong) inset, 0 1px 0 rgb(255 255 255 / 0.1) inset, var(--shadowLift); }
}

/* ── Кабинет / приложение ───────────────────────────────────────────── */
aside, #sidebar { background: color-mix(in srgb, var(--side) 80%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-inline-end: 1px solid var(--hair); }
#nav button, #nav a { border-radius: var(--pill); font-weight: 500; }
#nav button.on, #nav a.on, #nav a[aria-current="page"] { background: var(--white); color: var(--whiteInk); box-shadow: 0 12px 26px -16px rgb(0 0 0 / 0.6); }
#nav button.on svg, #nav a.on svg { color: inherit; }
#nav button:hover:not(.on), #nav a:hover:not(.on) { background: var(--raised); }
.avatar { background: var(--grad); color: #fff; }
.hero h2 { letter-spacing: -0.045em; }
.android #bottomnav, .telegram #bottomnav {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 -1px 0 var(--hair), 0 -20px 40px -30px rgb(0 0 0 / 0.7);
}
#bottomnav[hidden] { display: none !important; }
.bottom-item { border-radius: var(--pill); transition: background 0.25s var(--ease), color 0.25s, transform 0.25s var(--ease); }
.bottom-item.on { background: var(--white); color: var(--whiteInk); box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.6); }
.bottom-item:active { transform: scale(0.92); }
.chip { border-radius: var(--pill); }
.chip.on { background: var(--white); color: var(--whiteInk); }
.row, .choice { transition: background 0.2s; }
dialog#dialog { background: color-mix(in srgb, var(--bg) 94%, transparent); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 -1px 0 var(--hairStrong) inset, var(--shadowLift); }
dialog#dialog::backdrop { background: rgb(0 0 0 / 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
#toast { border-radius: var(--pill); }
.tiny-dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.hero-state .pill { background: var(--glassStrong); color: var(--text); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px var(--hair) inset, var(--shadowCard); }
.account-stats > button { background: var(--plate); box-shadow: 0 0 0 1px var(--hair) inset, var(--shadowCard); border-radius: 24px; }
.account-banner { box-shadow: 0 0 0 1px var(--hair) inset, var(--shadowCard); }
.actions + .home-panels, .stage + .home-panels { margin-top: 18px; }
body .round.avatar-round { background: var(--grad); color: #fff; }

/* ── Экран приложения: шапка, сцена с «аномалией», панель управления ── */
.topbar { display: none; }
.android .topbar, .telegram .topbar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 10px; margin: 0 0 14px; }
.topbar b { text-align: center; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--plate); color: var(--text); box-shadow: 0 0 0 1px var(--hairStrong) inset, 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 12px 26px -16px rgb(0 0 0 / 0.7); transition: transform 0.25s var(--ease), background 0.2s; }
body[data-mode="light"] .round { background: var(--surface); }
.round:active { transform: scale(0.94); }
.round svg { width: 20px; height: 20px; }
.round.big { width: 60px; height: 60px; }
.round.ghost { visibility: hidden; }
.avatar-round { overflow: hidden; font-weight: 600; background: var(--grad); color: #fff; }
.avatar-round img { width: 100%; height: 100%; object-fit: cover; }
.android .head-tools, .telegram .head-tools { display: none; }
.android .pagehead, .telegram .pagehead { justify-content: center; text-align: center; margin-bottom: 24px; }
.android .pagehead h1, .telegram .pagehead h1 { font-size: 28px; letter-spacing: -0.04em; line-height: 1.2; }
.android .pagehead p, .telegram .pagehead p { margin-inline: auto; }

.stage { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 0 30px; isolation: isolate; }
.stage-orb { position: relative; width: min(320px, 80vw); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 18px; }
.stage-orb > * { grid-area: 1 / 1; }
.stage-field { width: 118%; height: 118%; margin: -9%; }
.stage-halo { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--field-ink) 14%, transparent), transparent); opacity: 0.8; z-index: -1; }
.stage-on .stage-halo { background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); opacity: 0.9; animation: an-breathe 3s ease-in-out infinite; }
.stage-bars { position: relative; z-index: 3; display: flex; align-items: center; gap: 4px; height: 44px; }
.stage-bars i { display: block; width: 3px; height: 100%; border-radius: 3px; background: var(--text); transform: scaleY(0.3); animation: an-bar 1.1s ease-in-out infinite; }
.stage-bars i:nth-child(odd) { animation-duration: 0.9s; }
.stage-bars i:nth-child(2) { animation-delay: -0.2s; } .stage-bars i:nth-child(3) { animation-delay: -0.5s; } .stage-bars i:nth-child(4) { animation-delay: -0.1s; }
.stage-bars i:nth-child(5) { animation-delay: -0.7s; } .stage-bars i:nth-child(6) { animation-delay: -0.3s; } .stage-bars i:nth-child(7) { animation-delay: -0.6s; }
.stage-bars i:nth-child(8) { animation-delay: -0.4s; } .stage-bars i:nth-child(9) { animation-delay: -0.8s; }
.stage-on .stage-bars { display: none; }
.stage-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); background: var(--plate); color: var(--muted); font-size: 14px; font-weight: 500; box-shadow: 0 0 0 1px var(--hairStrong) inset, 0 1px 0 rgb(255 255 255 / 0.08) inset; max-width: 100%; }
body[data-mode="light"] .stage-pill { background: var(--surface); }
.stage-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-pill svg { width: 20px; height: 20px; color: var(--text); }
.stage-on .stage-pill svg { color: var(--accent); }
.stage-title { margin: 20px auto 10px; max-width: 17ch; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.04em; }
.stage-sub { max-width: 36ch; margin: 0 auto; font-size: 16px; line-height: 1.55; color: var(--text); }
.stage-sub span { color: var(--subtle); }
.stage-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; max-width: 440px; margin-top: 30px; }
.stage-controls > :first-child { justify-self: start; }
.stage-controls > :last-child { justify-self: end; }
.stage-power-wrap { padding: 9px; border-radius: 50%; background: color-mix(in srgb, var(--text) 8%, transparent); box-shadow: 0 0 0 1px var(--hair) inset; }
.stage-power { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--whiteInk); box-shadow: 0 18px 40px -16px rgb(255 255 255 / 0.3); transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s; }
body[data-mode="light"] .stage-power { box-shadow: 0 18px 34px -16px rgb(10 10 12 / 0.6); }
.stage-power svg { width: 30px; height: 30px; stroke-width: 2.2; }
.stage-power:active:not(:disabled) { transform: scale(0.94); }
.stage-on .stage-power { background: var(--grad); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 20px 44px -14px var(--glow); }
.stage-wait .stage-power-wrap { animation: an-ring 1.6s ease-out infinite; }
.stage-hint { margin-top: 16px; font-size: 13px; color: var(--subtle); display: inline-flex; align-items: center; gap: 6px; }
.stage-hint .link { font-size: 13px; }
.web-account .stage, body[data-surface="account"] .stage { padding-top: 18px; }
@media (min-width: 900px) {
  .stage-title { font-size: 38px; }
  .stage-orb { width: 340px; }
}

/* Вход в PWA и Mini App: «аномалия» над карточкой */
.auth-orb { display: none; }
.auth-orb img { width: 100%; height: auto; animation: an-float 8s ease-in-out infinite; }
body[data-surface="app"] .auth-orb { display: block; width: 130px; margin: -10px auto 14px; }
@media (max-width: 700px) { body[data-surface="pwa"] .auth-orb { display: block; width: 130px; margin: -10px auto 14px; } }

/* Слайдер «Начать»: стеклянная дорожка, пилюля фирменного градиента, стрелки */
.swipe { position: relative; display: flex; align-items: center; width: 100%; height: 62px; margin-top: 20px; padding: 6px; border-radius: var(--pill); background: linear-gradient(180deg, #18181b, #030304); color: #fff; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12) inset, 0 1px 0 rgb(255 255 255 / 0.14) inset; }
.swipe-knob { position: relative; z-index: 1; height: 100%; display: inline-flex; align-items: center; padding: 0 24px; border-radius: var(--pill); background: var(--grad); font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 8px 22px -8px var(--glow); transform: translateX(var(--sx, 0px)); transition: transform 0.35s var(--ease); }
.swipe.dragging .swipe-knob { transition: none; }
.swipe-arrows { margin-inline-start: auto; padding-inline-end: 14px; display: flex; }
.swipe-arrows svg { width: 22px; height: 22px; stroke-width: 2.4; animation: an-arrow 1.6s ease-in-out infinite; }
.swipe-arrows svg + svg { margin-inline-start: -12px; animation-delay: 0.2s; }
[dir="rtl"] .swipe-arrows svg { transform: scaleX(-1); }

/* «Популярное»: карточки со стеклянными иконками */
.gicon { display: block; width: 100%; height: 100%; border-radius: 30%; }
.action { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 20px 14px; border-radius: 24px; background: var(--plate); box-shadow: 0 0 0 1px var(--hair) inset, 0 1px 0 rgb(255 255 255 / 0.06) inset, var(--shadowCard); transition: transform 0.25s var(--ease); }
body[data-mode="light"] .action { background: var(--surface); }
.action:active { transform: scale(0.97); }
.action-icon.glass, .android .action-icon.glass, .telegram .action-icon.glass { width: 58px; height: 58px; padding: 0; background: none; border-radius: 30%; box-shadow: 0 12px 22px -14px rgb(0 0 0 / 0.7); margin: 0 auto; }
.android .action, .telegram .action { display: flex; }
.action b { font-weight: 600; font-size: 15px; }
.action small { color: var(--subtle); }
.tile-icon.glass { width: 56px; height: 56px; padding: 0; background: none; border-radius: 30%; box-shadow: 0 12px 22px -14px rgb(0 0 0 / 0.7); }
.tile-icon.glass img { width: 100%; height: 100%; border-radius: 30%; display: block; }
.benefit.mint .tile-icon.glass { background: none; }

/* Поле сообщения: пилюля и круглая кнопка */
.chat-form { align-items: center; gap: 10px; }
.chat-form .field { border-radius: var(--pill); padding-inline: 22px; min-height: 56px; background: var(--field); }
.chat-form .btn { width: 56px; min-width: 56px; height: 56px; padding: 0; border-radius: 50%; background: var(--white); color: var(--whiteInk); }
.chat-form .btn::after { display: none; }

/* ── Анимации ───────────────────────────────────────────────────────── */
.an-w { display: inline-block; white-space: pre; }
.an-split .an-w { opacity: 0; filter: blur(10px); transform: translateY(0.18em); animation: an-word 0.9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 80ms); }
@keyframes an-word { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes an-float { 50% { transform: translateY(-10px); } }
@keyframes an-spin { to { transform: rotate(360deg); } }
@keyframes an-bar { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(1); } }
@keyframes an-breathe { 50% { transform: scale(1.08); opacity: 0.55; } }
@keyframes an-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); } 100% { box-shadow: 0 0 0 22px transparent; } }
@keyframes an-arrow { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .an-split .an-w { animation: none; opacity: 1; filter: none; transform: none; }
  .web-art img, .hero-art img, .wiz-art img, .onboarding > img, .top-mascot, .mascot-404, .auth-orb img, .hero-plate img,
  .stage-halo, .stage-bars i, .stage-wait .stage-power-wrap, .swipe-arrows svg { animation: none; }
}

/* ── Адаптив ── */
@media (max-width: 440px) {
  .android .hero-cta, .telegram .hero-cta { grid-template-columns: 1fr; gap: 6px; }
  .android .hero-cta .btn, .telegram .hero-cta .btn { width: 100%; }
  .android .hero-cta .link, .telegram .hero-cta .link { justify-self: start; padding-inline: 4px; }
}
@media (max-width: 700px) {
  body { background-attachment: scroll; }
  .web-header .web-logo { font-size: 25px; }
  .web-head-actions { gap: 8px; }
  .web-art img { width: 70%; }
  .benefit-art { width: 34%; max-width: 130px; bottom: -10px; }
  .surface.soft { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
}

/* Читаемость поверх ленты: стеклянная подложка меню и мягкая тень текста первого экрана */
@media (min-width: 1001px) {
  .web-header .web-links { padding: 5px; border-radius: var(--pill); background: color-mix(in srgb, var(--bg) 55%, transparent); box-shadow: 0 0 0 1px var(--hair) inset; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.hero-site, .hero-tag, .hero-lead { text-shadow: 0 0 18px var(--bg), 0 0 6px var(--bg); }
.hero-lead { color: color-mix(in srgb, var(--text) 72%, transparent); }
/* Первый экран всегда во всю ширину окна, даже внутри отступов страницы */
.site-main > .web-hero, .web-hero { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-inner { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 700px) {
  .web-hero .hero-plate { font-size: 8.4vw; letter-spacing: -0.05em; padding: 0.62em 0.75em; gap: 0.3em; }
  .hero-inner { padding-inline: 18px; }
}
@media (max-width: 700px) { .web-hero .hero-plate { font-size: 8.4vw !important; } }
body .site-main:has(> .web-hero) { padding-top: 0 !important; }
@media (max-width: 1000px) { .site-main > .web-hero { margin-top: -96px; } }
@media (max-width: 700px) { .site-main > .web-hero { margin-top: -76px; } }

/* Фоновая лента на экранах входа и приветствия — под содержимым, приглушённая */
.auth-layout, .onboarding { position: relative; isolation: isolate; }
.auth-layout > .bg-field, .onboarding > .bg-field { z-index: -1; opacity: 0.45; -webkit-mask: radial-gradient(120% 90% at 70% 20%, #000, transparent 75%); mask: radial-gradient(120% 90% at 70% 20%, #000, transparent 75%); }
.auth-layout > :not(.bg-field), .onboarding > :not(.bg-field) { position: relative; z-index: 1; }
.auth-card { background: var(--plate); box-shadow: 0 0 0 1px var(--hairStrong) inset, 0 1px 0 rgb(255 255 255 / 0.08) inset, var(--shadowLift); }
body[data-mode="light"] .auth-card { background: var(--surface); }
body[data-mode="light"] .round.avatar-round, body .round.avatar-round { background: var(--grad); color: #fff; }
