/* =========================================================================
   MYKVADOR — стили сайта
   Цвета, шрифты и размеры — в :root. Дальше — по разделам сверху вниз.
   ========================================================================= */

:root {
  --bg: #05060e;
  --bg-1: rgba(19, 23, 46, .5);
  --bg-2: rgba(255, 255, 255, .055);
  --bg-3: rgba(255, 255, 255, .09);
  --line: rgba(170, 190, 255, .1);
  --line-2: rgba(170, 190, 255, .16);
  --line-3: rgba(190, 205, 255, .26);
  --tx: #f6f7fc;
  --tx-2: rgba(255, 255, 255, .7);
  --tx-3: rgba(255, 255, 255, .46);
  --blue: #3a63ff;
  --blue-2: #5b80ff;
  --blue-tx: #8ea8ff;
  --ok: #3ccf86;
  --warn: #f2b84b;
  --err: #ff6469;

  --f: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --f-m: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --w: 1180px;
  --pad: clamp(20px, 4vw, 40px);
  --hdr: 64px;
  --r: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ================= База ================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  background: var(--bg);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 12px);
  scrollbar-gutter: stable;
}
html.is-locked { overflow: hidden; }
body {
  min-height: 100vh;
  background: transparent;
  color: var(--tx);
  font: 400 16px/1.6 var(--f);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 600; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 999px;
  background: var(--tx); color: #000; font-size: 14px; font-weight: 500;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: calc(var(--w) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

/* ================= Фон всей страницы: глубокий синий с мягким светом ================= */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 760px at 88% -12%, rgba(58, 99, 255, .17), transparent 62%),
    radial-gradient(900px 700px at -12% 38%, rgba(108, 76, 255, .1), transparent 62%),
    radial-gradient(1000px 820px at 108% 92%, rgba(20, 160, 235, .08), transparent 62%),
    linear-gradient(180deg, #080b1d 0%, #05060e 42%, #04050c 100%);
}

/* Живой фон (WebGL, рисует app.js). Если видеокарта не тянет — остаётся градиент выше. */
.bg-fx { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.8s ease; }
.bg-fx.is-on { opacity: 1; }
.has-gl .hero-bg { display: none; }

/* Полоса прокрутки сверху */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 2px; pointer-events: none; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, #3a63ff, #7c52ff 55%, #22b8ff); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.anchor { display: block; height: 0; }

/* ================= Логотип ================= */
.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--tx); }
.logo svg { flex: none; }
.logo .logo-mk { width: 26px; height: 21.5px; }
.logo .logo-word { width: 117px; height: 11.4px; }
.logo-lg { gap: 14px; }
.logo-lg .logo-mk { width: 38px; height: 31.4px; }
.logo-lg .logo-word { width: 174px; height: 17px; }

/* ================= Кнопки ================= */
.btn {
  --h: 44px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 20px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: -.01em;
  white-space: nowrap;
  user-select: none;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .15s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn .ico { width: 18px; height: 18px; margin-right: -2px; transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn .ico-l { width: 18px; height: 18px; margin-left: -2px; }
.btn .ico-ur { width: 15px; height: 15px; margin-right: -3px; opacity: .7; }
.btn-light {
  overflow: hidden;
  color: #111;
  background: linear-gradient(#ffffff, #f2f2f0 55%, #dcdcd8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(0, 0, 0, .5);
}
.btn-light:hover { filter: brightness(1.04); }
/* блик, пробегающий по светлой кнопке при наведении */
.btn-light::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .95) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-light:hover::before { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn-ghost { color: #f7f7f4; background: rgba(255, 255, 255, .09); }
.btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.btn-ink { color: #fff; background: #111; }
.btn-ink:hover { background: #000; }
.btn-blue { color: #fff; background: var(--blue); }
.btn-blue:hover { background: var(--blue-2); }
.btn-sm { --h: 36px; padding: 0 15px; font-size: 14px; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  color: #111; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after, .btn-ink.is-loading::after, .btn-blue.is-loading::after { color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--tx-2); background: rgba(255, 255, 255, .07);
  transition: color .2s, background-color .2s;
}
.icon-btn:hover { color: var(--tx); background: rgba(255, 255, 255, .12); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.is-done { color: var(--ok); }

.link-btn { font-size: 14px; color: var(--tx-2); transition: color .2s; }
.link-btn:hover { color: var(--tx); }

/* ================= Шапка ================= */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--hdr);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.hdr.is-scrolled, .menu-open .hdr { background: rgba(6, 8, 18, .8); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 36px; padding: 0 clamp(16px, 2.4vw, 32px); }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--tx-2); transition: color .2s, background-color .2s; }
.nav a:hover { color: var(--tx); }
.nav a.is-on { color: var(--tx); background: rgba(255, 255, 255, .08); }
.hdr-act { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.burger { display: none; position: relative; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%; }
.burger i { position: absolute; left: 11px; right: 11px; height: 1.5px; border-radius: 2px; background: var(--tx); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 16px; }
.burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { top: 19.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 19.5px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--hdr) + 16px) var(--pad) calc(28px + env(safe-area-inset-bottom));
  background: var(--bg);
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s .35s;
}
.mmenu.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.mmenu-nav a {
  display: block; padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 30px; font-weight: 600; letter-spacing: -.035em; line-height: 1.2;
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s, transform .3s;
}
.mmenu.is-open .mmenu-nav a { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(.05s + var(--i, 0) * .05s); }
.mmenu-foot { display: grid; gap: 10px; }

/* ================= Соцсети ================= */
.socials { display: flex; flex-wrap: wrap; gap: 4px; }
.soc { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--tx-3); transition: color .2s, background-color .2s; }
.soc:hover { color: var(--tx); background: rgba(255, 255, 255, .07); }
.soc svg { width: 18px; height: 18px; }

/* ================= Первый экран ================= */
.hero { position: relative; isolation: isolate; padding-top: var(--hdr); }
.hero-wave {
  position: absolute; left: 0; top: 0; z-index: -1;
  width: 100%; height: min(940px, 100%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 52%, transparent 88%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 52%, transparent 88%);
}
/* Сияние за заголовком: три мягких пятна света медленно плывут */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.hero-bg i { position: absolute; border-radius: 50%; will-change: transform; }
.hero-bg .g1 { left: 50%; top: -14%; width: 1400px; height: 860px; margin-left: -700px; background: radial-gradient(closest-side, rgba(58, 99, 255, .46), rgba(58, 99, 255, .16) 52%, transparent); animation: drift1 22s ease-in-out infinite alternate; }
.hero-bg .g2 { left: -14%; top: 14%; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(124, 82, 255, .3), transparent); animation: drift2 27s ease-in-out infinite alternate; }
.hero-bg .g3 { right: -16%; top: 6%; width: 940px; height: 720px; background: radial-gradient(closest-side, rgba(30, 180, 255, .22), transparent); animation: drift3 31s ease-in-out infinite alternate; }
.hero-bg .g4 { left: 50%; top: 520px; width: 1500px; height: 700px; margin-left: -750px; background: radial-gradient(closest-side, rgba(58, 99, 255, .22), transparent); }
@keyframes drift1 { to { transform: translate(50px, 40px) scale(1.08); } }
@keyframes drift2 { to { transform: translate(120px, -40px) scale(1.12); } }
@keyframes drift3 { to { transform: translate(-110px, 60px) scale(.94); } }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* Первый экран: только огромная надпись и кнопки */
.hero-stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr));
  padding: 24px 3vw 110px;
  text-align: center;
}
.hero-word { position: relative; width: clamp(300px, 58vw, 1100px); margin: 0 auto; transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); transition: transform .8s var(--ease); }
.hw { position: relative; display: block; }
.hw-stack { display: none; }
.hero-word svg { display: block; width: 100%; height: auto; overflow: visible; }
.hw-glow { position: absolute; inset: 0; filter: blur(clamp(18px, 2.6vw, 44px)); opacity: .6; animation: glowPulse 5s ease-in-out infinite alternate; }
@keyframes glowPulse { from { opacity: .42; } to { opacity: .72; } }
.hero-stage .hero-btns { margin-top: clamp(36px, 5vw, 68px); }
.hero-scroll { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); transition: border-color .3s; }
.hero-scroll:hover { border-color: rgba(255, 255, 255, .6); }
.hero-scroll i { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: scrollDot 1.9s var(--ease) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(15px); opacity: 0; } }
.hw-main { position: relative; }
.hw-l { transform-box: fill-box; transform-origin: 50% 100%; }
/* переливающийся синий, как в логотипе */
.grad {
  background: linear-gradient(100deg, #8fb6ff 0%, #3a63ff 28%, #6f9bff 52%, #4a5bff 76%, #a6c3ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: gradMove 6s ease-in-out infinite alternate;
}
@keyframes gradMove { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
/* ================= Скриншот меню =================
   Без рамки: космос по краям скриншота плавно растворяется в фоне сайта,
   и меню будто висит прямо на странице. */
.hero-shot { position: relative; padding: 0 var(--pad); perspective: 1700px; }
.hero-shot::before {
  content: ''; position: absolute; left: 50%; top: 4%; z-index: -1;
  width: min(1240px, 100%); height: 92%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(58, 99, 255, .28), rgba(90, 70, 255, .1) 60%, transparent);
  pointer-events: none;
}
.shot {
  position: relative;
  max-width: 1340px; margin: 0 auto;
  transform-origin: 50% 0;
  transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1));
  will-change: transform;
}
.shot img {
  display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
/* Наклон при прокрутке задаёт home.js (--tilt, --sc) */

/* ================= Бегущие ленты ================= */
.mq {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.mq-track { display: flex; gap: 14px; width: max-content; padding: 6px 0; animation: mq var(--dur, 60s) linear infinite; }
.mq-rev .mq-track { animation-direction: reverse; }
.mq:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(calc(-50% - 7px)); } }


/* ================= Подсветка карточек за курсором ================= */
[data-glow] { position: relative; isolation: isolate; }
[data-glow]::after {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .07), transparent 45%);
  opacity: 0; transition: opacity .35s;
}
[data-glow]:hover::after { opacity: 1; }

/* Наклон карточек за курсором (app.js) */
[data-tilt].is-tilting { transition: transform .14s linear, box-shadow .5s var(--ease), border-color .3s !important; }

/* ================= Заголовки по словам ================= */
[data-words] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .02em .16em; margin: -.1em -.02em -.16em; }
[data-words] .w > span { display: inline-block; }
.js [data-words]:not(.is-in) .w > span { transform: translateY(115%); }
[data-words].is-in .w > span { animation: wUp 1.1s var(--ease) calc(var(--wd, 0s) + var(--wi, 0) * .07s) backwards; }
@keyframes wUp { from { transform: translateY(115%); } }
.no-anim [data-words] .w > span { transform: none !important; animation: none !important; }

/* ================= Цифры ================= */
.stats { padding-top: clamp(72px, 10vw, 128px); text-align: center; }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 22px auto 0; }
.stats-row > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.stats-row dd { font-size: clamp(34px, 4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stats-row dt { font-size: 14px; color: var(--tx-3); }

/* ================= Появление сайта при заходе =================
   Без заставки: фон плавно разгорается (app.js), надпись MYKVΛDOR проявляется
   из размытия, буквы поднимаются одна за другой, следом — шапка, кнопки и подсказка «листай». */
.js:not(.is-loaded) .hw-main,
.js:not(.is-loaded) .hw-l,
.js:not(.is-loaded) .hw-glow,
.js:not(.is-loaded) .hero-wave,
.js:not(.is-loaded) .hero-bg,
.js:not(.is-loaded) .page-home .hdr,
.js:not(.is-loaded) .hi { opacity: 0; }
.is-loaded .hw-main { animation: hwFocus 1.9s var(--ease) .05s backwards; }
.is-loaded .hw-main .hw-l { animation: hwUp 1.5s var(--ease) calc(.1s + var(--li) * .07s) backwards; }
.is-loaded .hw-glow { animation: hwGlow 2.4s ease .7s backwards, glowPulse 5s ease-in-out 3.1s infinite alternate; }
.is-loaded .hero-wave { animation: fade 2.6s ease .3s backwards; }
.is-loaded .hero-bg { animation: fade 2.2s ease backwards; }
.is-loaded .page-home .hdr { animation: hdrIn 1.2s var(--ease) .5s backwards; }
.is-loaded .hi { animation: heroIn 1.3s var(--ease) var(--d, 0s) backwards; }
@keyframes hwFocus { from { opacity: 0; filter: blur(16px); transform: scale(1.06); } }
@keyframes hwUp { from { opacity: 0; transform: translateY(42%) scaleY(1.16); } }
@keyframes hwGlow { from { opacity: 0; transform: scale(.82); } to { opacity: .42; } }
@keyframes hdrIn { from { opacity: 0; transform: translateY(-16px); } }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); filter: blur(6px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }
.no-anim .hw-main, .no-anim .hw-l, .no-anim .hero-wave, .no-anim .hero-bg, .no-anim .hdr { opacity: 1 !important; animation: none !important; }
.no-anim .hw-glow { opacity: .6 !important; animation: none !important; }

/* ================= Появление при прокрутке ================= */
.js .rv-up:not(.is-in) { opacity: 0; }
.rv-up.is-in { animation: rvUp 1.1s var(--ease) var(--d, 0s) backwards; }
@keyframes rvUp { from { opacity: 0; transform: translateY(28px); } }

.no-anim .rv-up, .no-anim .hi { opacity: 1 !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .mq-track { animation: none !important; }
}

/* ================= Секции ================= */
.sec { padding-top: clamp(104px, 13vw, 176px); }
.sec-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 60px); text-align: center; }
.eyebrow { margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--tx-2); }
.h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.sec-sub { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--tx-2); text-wrap: balance; }
.sec-sub b { font-weight: 600; color: var(--tx); font-variant-numeric: tabular-nums; }

/* ================= Мягкий свет за разделами ================= */
#pricing { position: relative; isolation: isolate; overflow-x: clip; }
#pricing::before {
  content: ''; position: absolute; left: 50%; z-index: -1; pointer-events: none;
  transform: translateX(-50%);
}
#pricing::before { top: 26%; width: 1100px; height: 820px; background: radial-gradient(closest-side, rgba(58, 99, 255, .26), rgba(90, 70, 255, .08) 60%, transparent); }

.av { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--a, #3a3a3e), var(--b, #5a5a60)); color: #fff; font-size: 14px; font-weight: 600; }


/* ================= Тарифы ================= */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 14px; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px 26px 30px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); transition: transform .5s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
.plan:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .9); }
.plan h3 { font-size: 17px; font-weight: 600; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; }
.plan-price b { font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.plan-price span { font-size: 14px; color: var(--tx-3); }
.plan-desc { margin: 10px 0 24px; font-size: 14.5px; color: var(--tx-2); }
.plan ul { display: grid; gap: 12px; margin-top: 26px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.plan li svg { flex: none; width: 19px; height: 19px; padding: 3.5px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.plan-best { background: #f4f4f2; border-color: #f4f4f2; color: #0a0a0a; }
.plan-best .plan-price span, .plan-best .plan-desc { color: rgba(0, 0, 0, .58); }
.plan-best li { color: #111; }
.plan-best li svg { background: #111; color: #fff; }
.plan-tab { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: #111; border: 1px solid rgba(255, 255, 255, .16); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.pay-note { margin-top: 28px; text-align: center; font-size: 13.5px; color: var(--tx-3); }

/* ================= Вопросы ================= */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 40px clamp(40px, 7vw, 96px); }
.faq-side { position: sticky; top: calc(var(--hdr) + 32px); }
.faq-side .h2 { font-size: clamp(40px, 5.2vw, 66px); }
.faq-side > p:last-child { max-width: 320px; margin-top: 18px; color: var(--tx-2); }
.faq-list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0;
  text-align: left; font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em;
}
.qa-ic { position: relative; flex: none; width: 20px; height: 20px; transition: transform .5s var(--ease); }
.qa-ic::before, .qa-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.6px; margin: -.8px 0 0 -7px; border-radius: 1px; background: var(--tx); }
.qa-ic::after { transform: rotate(90deg); }
.qa.is-open .qa-ic { transform: rotate(45deg); }
.qa-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease), visibility 0s .5s; }
.qa.is-open .qa-a { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease), visibility 0s; }
.qa-a > div { min-height: 0; overflow: hidden; }
.qa-a p { padding: 0 48px 24px 0; line-height: 1.65; color: var(--tx-2); }

/* ================= Сообщество ================= */
.sec-cta { padding-bottom: clamp(104px, 13vw, 176px); }
/* синий баннер со знаком и бегущей сеткой */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 28px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 540 446'%3E%3Cpath fill='%23fff' fill-opacity='.09' d='M540 0V446L444 350V192L318 318L270 270ZM0 0V446L96 350V192L270 366L318 318Z'/%3E%3Cpath fill='%23fff' fill-opacity='.04' d='M96 192L175 271L96 350Z'/%3E%3C/svg%3E") no-repeat right 48px bottom -56px / 380px auto,
    radial-gradient(90% 130% at 100% 0%, rgba(110, 160, 255, .55), transparent 55%),
    radial-gradient(80% 120% at 0% 100%, rgba(108, 76, 255, .55), transparent 60%),
    linear-gradient(135deg, #0a1240 0%, #1a2a8c 55%, #2c4fe0 100%);
  border: 1px solid rgba(170, 195, 255, .22);
  box-shadow: 0 40px 100px -40px rgba(40, 80, 255, .55);
}
.cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 20%, #000, transparent 70%);
  mask-image: radial-gradient(120% 90% at 80% 20%, #000, transparent 70%);
  animation: gridMove 9s linear infinite;
}
@keyframes gridMove { to { background-position: 44px 44px; } }
.cta .cta-l p { color: rgba(255, 255, 255, .8); }
.cta .btn-ghost { background: rgba(255, 255, 255, .14); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.cta-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.cta-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #5865f2; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.cta-ic svg { width: 22px; height: 22px; }
.cta .h2 { font-size: clamp(40px, 5vw, 64px); }
.cta-l p { margin-top: 14px; font-size: 17px; color: var(--tx-2); }
.cta-r { display: flex; flex-wrap: wrap; gap: 10px; }

/* ================= Футер ================= */
.foot { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0 40px; border-top: 1px solid var(--line); }
/* свечение и светящийся «пол» под большой надписью */
.foot::before {
  content: ''; position: absolute; left: 50%; bottom: -320px; z-index: -1; pointer-events: none;
  width: 1500px; height: 760px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(58, 99, 255, .36), rgba(90, 70, 255, .12) 55%, transparent);
}
.foot-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; z-index: -1; height: 520px; pointer-events: none;
  background-image: linear-gradient(rgba(140, 170, 255, .3) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, .3) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .5) 40%, transparent 85%);
  animation: floorMove 5s linear infinite;
}
@keyframes floorMove { to { background-position: 0 60px; } }
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.foot-brand p { max-width: 440px; margin-top: 18px; font-size: 16px; line-height: 1.55; color: var(--tx-2); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.foot-cols h4 { margin-bottom: 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tx); }
.foot-cols a { display: block; padding: 4px 0; font-size: 14px; color: var(--tx-3); transition: color .2s; }
.foot-cols a:hover { color: var(--tx); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--tx-3); }

/* Большая надпись MYKVADOR (буквы Unbounded в кривых) */
.foot-giant { margin: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); user-select: none; }
.foot-giant svg { display: block; width: 100%; height: auto; overflow: visible; }
.fg-l { transform-box: fill-box; transform-origin: 50% 100%; }
.js .foot-giant:not(.is-in) .fg-l { opacity: 0; }
.foot-giant.is-in .fg-l { animation: fgUp 1.3s var(--ease) calc(var(--li) * .07s) backwards; }
@keyframes fgUp { from { opacity: 0; transform: translateY(45%) scaleY(1.15); } }
.no-anim .foot-giant .fg-l { opacity: 1 !important; animation: none !important; }

/* ================= Уведомления ================= */
.toasts { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 300; display: grid; justify-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 18px 11px 14px; border-radius: 999px;
  background: #121631; border: 1px solid var(--line-2);
  font-size: 14px; color: var(--tx);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  animation: toastIn .5s var(--ease);
}
.toast svg { flex: none; width: 18px; height: 18px; color: var(--blue-tx); }
.toast.is-out { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* =========================================================================
   Формы (вход, кабинет, оплата)
   ========================================================================= */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field label, .field-top label { font-size: 14px; font-weight: 500; color: var(--tx-2); }
.field-top a { font-size: 13.5px; color: var(--tx-3); transition: color .2s; }
.field-top a:hover { color: var(--tx); }
.input {
  width: 100%; height: 48px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--bg-1); color: var(--tx);
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.input::placeholder { color: var(--tx-3); }
.input:hover { border-color: var(--line-3); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(58, 99, 255, .25); }
.field.is-bad .input { border-color: var(--err); }
.field.is-bad .input:focus { box-shadow: 0 0 0 3px rgba(255, 100, 105, .2); }
.field-err { display: none; font-size: 13px; color: var(--err); }
.field.is-bad .field-err { display: block; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.eye { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 36px; height: 36px; margin-top: -18px; border-radius: 9px; color: var(--tx-3); transition: color .2s, background-color .2s; }
.eye:hover { color: var(--tx); background: rgba(255, 255, 255, .07); }
.eye svg { width: 18px; height: 18px; }

.check { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--tx-2); cursor: pointer; user-select: none; }
.check input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check .tick { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-3); transition: background-color .2s, border-color .2s; }
.check .tick svg { width: 14px; height: 14px; color: #000; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .35s var(--ease); }
.check input:checked + .tick { background: var(--tx); border-color: var(--tx); }
.check input:checked + .tick svg { opacity: 1; transform: none; }
.check input:focus-visible + .tick { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.check a { color: var(--tx); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.check.is-bad .tick { border-color: var(--err); }

/* Переключатель-сегменты */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line); }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--tx-2); white-space: nowrap; transition: color .2s; }
.seg button:hover { color: var(--tx); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { color: var(--tx); }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); transition: transform .45s var(--ease), width .45s var(--ease); }
.seg-sm button { height: 30px; padding: 0 12px; font-size: 13px; }

/* Тумблер */
.sw { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: rgba(255, 255, 255, .16); transition: background-color .25s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.sw[aria-checked="true"] { background: var(--blue); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }

/* Метки */
.chip { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; font-weight: 500; color: var(--tx-2); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-ok { color: var(--ok); background: rgba(60, 207, 134, .1); }
.chip-warn { color: var(--warn); background: rgba(242, 184, 75, .1); }
.chip-blue { color: var(--blue-tx); background: rgba(58, 99, 255, .15); }

/* Смена содержимого и «встряска» при ошибке */
.is-swap { animation: fadeUp .6s var(--ease); }
.is-shake { animation: shake .5s ease; }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* Галочка «готово» */
.ok-ring { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--tx); }
.ok-ring svg { width: 34px; height: 34px; color: #000; }
.is-pop { animation: pop .7s var(--ease) backwards; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }

/* Мини-шапка (вход, оплата) */
.mini-hdr { position: absolute; top: 0; left: 0; right: 0; z-index: 10; }
.mini-hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--hdr); }
.mini-nav { display: flex; gap: 8px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 14px; font-weight: 500; color: var(--tx-2); transition: color .2s, background-color .2s; }
.back-link:hover { color: var(--tx); background: rgba(255, 255, 255, .12); }
.back-link svg { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.back-link:hover svg.i-back { transform: translateX(-3px); }

/* =========================================================================
   Вход и регистрация
   ========================================================================= */
.auth { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: calc(var(--hdr) + 32px) var(--pad) 64px; }
.auth-box { width: 100%; max-width: 390px; }
.auth-title { font-size: 38px; font-weight: 600; line-height: 1.08; letter-spacing: -.04em; text-align: center; }
.auth-sub { margin-top: 12px; font-size: 15.5px; color: var(--tx-2); text-align: center; text-wrap: balance; }
.auth .seg { margin: 30px 0 24px; }
.auth .form .btn { margin-top: 6px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; font-size: 13px; color: var(--tx-3); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-note { margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--tx-3); text-align: center; }
.auth-note a { color: var(--tx-2); text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.auth-ok { text-align: center; }
.auth-ok h1 { font-size: 38px; font-weight: 600; letter-spacing: -.04em; }
.auth-ok p { margin-top: 10px; color: var(--tx-2); }

/* =========================================================================
   Личный кабинет
   ========================================================================= */
.cab { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; min-height: 100svh; }
.side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 28px; height: 100vh; height: 100svh; padding: 20px 14px 18px; border-right: 1px solid var(--line); }
.side > .logo { padding: 0 10px; height: 32px; }
.side-nav { display: grid; gap: 2px; }
.side-nav button, .side-link {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--tx-2); text-align: left;
  transition: color .2s, background-color .2s;
}
.side-nav button:hover, .side-link:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.side-nav button[aria-selected="true"] { color: var(--tx); background: rgba(255, 255, 255, .09); }
.side-nav svg, .side-link svg { flex: none; width: 18px; height: 18px; }
.side-foot { display: grid; gap: 8px; margin-top: auto; }
.side-user { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--bg-1); border: 1px solid var(--line); }
.side-user-t { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.side-user-t b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-t span { font-size: 12.5px; color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .av { width: 34px; height: 34px; --a: #3a63ff; --b: #8ea8ff; }

.cab-main { width: 100%; max-width: 1140px; padding: 36px clamp(20px, 4vw, 48px) 72px; }
.cab-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 32px; }
.cab-top h1 { font-size: clamp(32px, 3.6vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.cab-top p { margin-top: 6px; font-size: 15px; color: var(--tx-3); }
.cab-top p::first-letter { text-transform: uppercase; }

.cab-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
.box { display: flex; flex-direction: column; padding: 24px; border-radius: var(--r-lg); background: var(--bg-1); border: 1px solid var(--line); }
.b-sub { grid-column: span 7; }
.b-key { grid-column: span 5; }
.b-dl { grid-column: span 12; }
.b-hwid { grid-column: span 5; }
.b-hist { grid-column: span 7; }
.b-full { grid-column: span 12; }
.b-half { grid-column: span 6; }
.box-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; margin-bottom: 20px; }
.box-h h2 { font-size: 15px; font-weight: 500; color: var(--tx-2); }
.box-note { margin-top: 14px; font-size: 13.5px; line-height: 1.55; color: var(--tx-3); }
.box-note b { font-weight: 500; color: var(--tx-2); }
.box-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }

/* Подписка */
.sub-plan { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.sub-plan > b { font-size: 36px; font-weight: 600; line-height: 1.1; letter-spacing: -.04em; }
.sub-plan > span { font-size: 15px; color: var(--tx-2); }
.sub-plan > span b { font-weight: 600; color: var(--tx); font-variant-numeric: tabular-nums; }
.bar { height: 6px; margin-top: 18px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width 1.6s var(--ease) .3s; }
.sub-until { margin-top: 14px; font-size: 14px; color: var(--tx-3); }
.sub-until b { font-weight: 500; color: var(--tx-2); }

/* Ключ и HWID */
.key { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--bg-2); }
.key code, .hwid { flex: 1; min-width: 0; font: 500 16px/1.4 var(--f-m); letter-spacing: .02em; color: var(--tx); overflow-wrap: anywhere; }
.hwid { display: block; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.key-fade { animation: fade .5s ease; }
.b-hwid .btn { align-self: flex-start; margin-top: auto; }
.b-hwid .box-note { margin-bottom: 22px; }

/* Загрузка */
.dl-file { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; background: var(--bg-2); }
.dl-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(0, 0, 0, .35); }
.dl-ic svg { width: 26px; height: 21.5px; color: var(--blue); }
.dl-t { flex: 1; min-width: 0; display: grid; line-height: 1.4; }
.dl-t b { font-size: 15.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-t span { font-size: 13.5px; color: var(--tx-3); }
.dl-log { margin-top: 20px; }
.dl-log h3 { margin-bottom: 10px; font-size: 14px; font-weight: 500; color: var(--tx-2); }
.dl-log li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.8; color: var(--tx-3); }
.dl-log li::before { content: ''; position: absolute; left: 3px; top: .82em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-3); }

/* Таблица покупок */
.tbl-wrap { margin: 0 -24px -24px; overflow-x: auto; }
.tbl { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 14px; }
.b-full .tbl { min-width: 600px; }
.tbl th { padding: 0 24px 12px; text-align: left; font-size: 12.5px; font-weight: 500; color: var(--tx-3); white-space: nowrap; }
.tbl td { padding: 14px 24px; border-top: 1px solid var(--line); color: var(--tx-2); white-space: nowrap; }
.tbl td b { font-weight: 500; color: var(--tx); }

/* Настройки */
.set-form { display: grid; gap: 18px; }
.set-form .btn { justify-self: start; }
.security-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.security-activity { display: grid; list-style: none; margin: 0; padding: 0; }
.security-activity li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.security-activity time { color: var(--tx-3); }
.recovery-box { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.recovery-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0 16px; padding: 0; list-style: none; }
.recovery-list code { user-select: all; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: 0; padding-top: 4px; }
.toggle-row b { display: block; font-size: 15px; font-weight: 500; }
.toggle-row span { font-size: 13.5px; color: var(--tx-3); }

/* Окно подтверждения */
.modal { width: calc(100% - 32px); max-width: 420px; margin: auto; padding: 0; border: 0; background: none; color: var(--tx); overflow: visible; }
.modal::backdrop { background: rgba(2, 3, 10, .72); }
.modal[open] { animation: modalIn .45s var(--ease); }
.modal[open]::backdrop { animation: fade .3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-card { padding: 28px; border-radius: 22px; background: #0e1226; border: 1px solid var(--line-2); }
.modal-card h3 { font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.modal-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--tx-2); }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

/* =========================================================================
   Оплата
   ========================================================================= */
.co-wrap { padding-top: calc(var(--hdr) + clamp(32px, 6vw, 72px)); padding-bottom: 96px; }
.co-head { text-align: center; }
.co-head h1 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
.co-head p { margin-top: 14px; color: var(--tx-2); }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 24px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.co-step { padding: 28px 0; border-top: 1px solid var(--line); }
.co-step:first-child { padding-top: 24px; }
.co-step h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 17px; font-weight: 600; }
.co-step h2 i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .08); font-size: 13px; font-style: normal; color: var(--tx-2); }
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 100%; padding: 18px 48px 18px 18px;
  border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line-2);
  text-align: left;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.opt:hover { border-color: var(--line-3); }
.opt[aria-checked="true"] { border-color: var(--tx); box-shadow: inset 0 0 0 1px var(--tx); background: rgba(255, 255, 255, .06); }
.opt-dot { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); transition: border-color .2s; }
.opt-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--tx); transform: scale(0); transition: transform .35s var(--ease); }
.opt[aria-checked="true"] .opt-dot { border-color: var(--tx); }
.opt[aria-checked="true"] .opt-dot::after { transform: none; }
.opt b { font-size: 16px; font-weight: 600; }
.opt span { font-size: 13.5px; line-height: 1.45; color: var(--tx-3); }
.opt strong { margin-top: 12px; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.opt-ic { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 10px; background: rgba(255, 255, 255, .07); color: var(--tx); }
.opt-ic svg { width: 20px; height: 20px; }
.promo { display: flex; gap: 10px; }
.promo .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; }
.promo .input::placeholder { text-transform: none; }
.promo .btn { --h: 48px; }
.promo-msg { min-height: 22px; margin-top: 10px; font-size: 14px; color: var(--ok); }
.promo-msg.is-bad { color: var(--err); }

.co-sum { position: sticky; top: 32px; padding: 28px; border-radius: 22px; background: var(--bg-1); border: 1px solid var(--line); }
.co-sum h3 { margin-bottom: 14px; font-size: 18px; font-weight: 600; }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 15px; color: var(--tx-2); }
.sum-row b { font-weight: 500; color: var(--tx); }
.sum-row.disc b { color: var(--ok); }
.sum-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 14px 0 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.sum-total span { color: var(--tx-2); }
.sum-total b { font-size: 34px; font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.co-sum .check { margin-bottom: 18px; }
.co-safe { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--tx-3); text-align: center; }
.co-safe svg { flex: none; width: 16px; height: 16px; }
.co-done { max-width: 520px; margin: 0 auto; padding: clamp(24px, 6vw, 64px) 0; text-align: center; }
.co-done h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 600; line-height: 1.05; letter-spacing: -.045em; }
.co-done p { margin-top: 14px; color: var(--tx-2); }
.co-done .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }

/* =========================================================================
   Адаптив
   ========================================================================= */
@media (max-width: 1100px) {
  .cab { grid-template-columns: 220px minmax(0, 1fr); }
  .b-sub, .b-key, .b-hwid, .b-hist { grid-column: span 12; }
  .co { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (max-width: 900px) {
  :root { --hdr: 60px; }
  .nav, .hdr-login { display: none; }
  .burger { display: block; }
  .hdr-act { gap: 6px; }

  .plans { grid-template-columns: 1fr; max-width: 480px; gap: 24px; }
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .cab { display: block; }
  .side {
    position: sticky; top: 0; z-index: 20;
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px 16px;
    height: auto; padding: 12px var(--pad);
    background: rgba(6, 8, 18, .86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side > .logo { padding: 0; }
  .side-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-1); border: 1px solid var(--line); }
  .side-nav button { justify-content: center; height: 36px; padding: 0 8px; font-size: 14px; }
  .side-nav svg { display: none; }
  .side-foot { grid-column: 2; grid-row: 1; margin: 0; display: flex; align-items: center; gap: 4px; }
  .side-link { width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .side-user { padding: 0; border: 0; gap: 8px; background: none; }
  .side-user-t { display: none; }
  .side-user .av { width: 32px; height: 32px; font-size: 13px; }
  .cab-main { padding-top: 28px; }

  .co { grid-template-columns: 1fr; }
  .co-sum { position: static; }
}

@media (max-width: 760px) {
  .hero-shot::before { display: none; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
}

@media (max-width: 600px) {
  .side-nav { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .side-nav button { height: auto; min-height: 40px; font-size: 13px; }
  .hero-shot { padding: 0; overflow-x: clip; }
  .shot { width: 128vw; max-width: none; margin-left: calc(50% - 64vw); }
  .hw-wide { display: none; }
  .hw-stack { display: block; }
  .hero-word { width: 74vw; }
  .hero-btns { width: 100%; flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .plan { padding: 26px 22px; }
  .qa-q { font-size: 16px; padding: 20px 0; }
  .qa-a p { padding-right: 0; }
  .cta { background-size: 240px auto, auto, auto, auto; background-position: right -24px bottom -40px, 0 0, 0 0, 0 0; }
  .cta-r { width: 100%; }
  .cta-r .btn { flex: 1 1 auto; }
  .foot-cols { gap: 28px 16px; }

  .opts, .opts-3 { grid-template-columns: 1fr; }
  .promo { flex-direction: column; }
  .co-sum { padding: 24px; }
  .box { padding: 20px; }
  .tbl-wrap { margin: 0 -20px -20px; }
  .tbl th, .tbl td { padding-left: 20px; padding-right: 20px; }
  .dl-file { flex-wrap: wrap; }
  .dl-file .btn { width: 100%; }
  .mini-nav .back-link span { display: none; }
  .mini-nav .back-link { width: 36px; padding: 0; justify-content: center; }
}

/* =========================================================================
   Магазин и кабинет: тарифы с сервера, выпуски, заказ с реквизитами, вспомогательные классы
   ========================================================================= */
.plans { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plans-wait { grid-column: 1 / -1; text-align: center; color: var(--tx-3); }
.plan .btn { margin-top: 26px; }
.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; max-width: 1040px; margin: 36px auto 0; padding: 0; list-style: none; }
.incl li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--tx-2); }
.incl svg { flex: none; width: 19px; height: 19px; padding: 3.5px; border-radius: 50%; background: rgba(60, 207, 134, .14); color: var(--ok); }

.mono { font-family: var(--f-m); font-size: .92em; letter-spacing: 0; }
.help { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--tx-3); }
.launcher-code { display: block; text-align: center; padding: 18px 10px; border: 1px solid var(--line); border-radius: 12px; font: 600 26px ui-monospace, monospace; letter-spacing: .2em; }
.box-h-gap { margin-top: 24px; }
.promo-msg.is-ok { color: var(--ok); }

.rel-list { display: grid; gap: 10px; margin-top: 18px; }
.rel { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.rel-t { display: grid; gap: 2px; }
.rel-t b { font-size: 16px; font-weight: 600; }
.rel-t span { font-size: 13px; color: var(--tx-3); }
.steps { display: grid; gap: 12px; margin-top: 4px; padding-left: 20px; font-size: 14px; line-height: 1.55; color: var(--tx-2); }
.steps b { font-weight: 500; color: var(--tx); }
.steps a, .box-note a { color: var(--blue-tx); text-decoration: underline; text-decoration-color: rgba(142, 168, 255, .35); text-underline-offset: 3px; }
.launcher-card { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px; padding: clamp(20px, 4vw, 34px); background: radial-gradient(ellipse at 12% 0%, rgba(100, 127, 244, .21), transparent 68%), var(--bg-1); border-color: var(--line-2); }
.launcher-card-main { display: flex; align-items: center; gap: clamp(14px, 3vw, 24px); max-width: 540px; }
.launcher-mark { flex: 0 0 auto; display: grid; place-items: center; width: clamp(48px, 8vw, 76px); aspect-ratio: 1; border: 1px solid var(--line-3); border-radius: 18px; background: rgba(5, 9, 25, .45); }
.launcher-mark svg { width: 58%; height: 58%; }
.launcher-card h2 { font-size: clamp(23px, 4vw, 34px); letter-spacing: -.035em; line-height: 1.12; }
.launcher-platform { color: var(--blue-tx); font-size: 12px; margin-bottom: 6px; }
.launcher-card .box-note { margin-top: 8px; }
.launcher-card-action { text-align: center; }
#p-download .box-h { min-height: auto; margin-bottom: 12px; }
#p-download .box-h + .box-note, .launcher-steps { margin-top: 0; }
.server-note { border-left: 3px solid var(--line-3); }
.co-risk { margin: 14px 0; padding: 10px 12px; border-radius: 10px; background: rgba(242, 184, 75, .07); border: 1px solid rgba(242, 184, 75, .2); color: var(--tx-2); font-size: 13px; line-height: 1.5; }
.co-risk a { color: var(--blue-tx); text-decoration: underline; }

.co-resume { display: grid; gap: 10px; max-width: 720px; margin: 28px auto 0; padding: 16px 18px; border-radius: 16px; background: rgba(242, 184, 75, .08); border: 1px solid rgba(242, 184, 75, .25); font-size: 14.5px; }
.co-resume #coResumeList { display: flex; flex-wrap: wrap; gap: 8px; }
.co-order { max-width: 980px; margin: 36px auto 0; }
.co-order-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.co-order-top h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.co-order-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: start; }
.pay-instr { margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); font: 400 14.5px/1.6 var(--f); white-space: pre-wrap; word-break: break-word; color: var(--tx); user-select: all; }
.co-order .sum-total { margin-top: 6px; }
.co-order .set-form { display: grid; gap: 14px; }

@media (max-width: 760px) {
  .co-order-grid { grid-template-columns: 1fr; }
  .launcher-card-action, .launcher-card-action .btn { width: 100%; }
  #p-download .b-half { grid-column: span 12; }
}

/* ================= Документы: соглашение, конфиденциальность, возврат ================= */
.doc-wrap { max-width: 800px; margin: 0 auto; padding: calc(var(--hdr) + clamp(28px, 5vw, 56px)) var(--pad) 96px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; }
.doc .meta { margin-top: 12px; font-size: 14px; color: var(--tx-3); }
.doc .disclaimer { margin: 22px 0 8px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; color: var(--tx-2); }
.doc h2 { margin: 34px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.doc h2[id] { scroll-margin-top: calc(var(--hdr) + 22px); }
.doc p, .doc li { font-size: 15.5px; line-height: 1.7; color: var(--tx-2); }
.doc p { margin-top: 10px; }
.doc ul { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.doc a { color: var(--blue-tx); text-decoration: underline; text-decoration-color: rgba(142, 168, 255, .35); text-underline-offset: 3px; }
.doc b { font-weight: 600; color: var(--tx); }
/* таблица в документах: на узком экране прокручивается сама */
.doc .doc-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 12px; }
.doc table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; line-height: 1.55; color: var(--tx-2); }
.doc th, .doc td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; color: var(--tx); background: rgba(255, 255, 255, .04); }
.doc tr:last-child td { border-bottom: 0; }
.doc .ph { padding: 0 6px; border-radius: 6px; background: rgba(242, 184, 75, .16); color: var(--warn); }
.doc-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.doc-nav a { color: var(--tx-3); transition: color .2s; }
.doc-nav a:hover { color: var(--tx); }

/* Поле для кода (привязка клиента, код администратора) */
.code-input { text-align: center; font: 600 24px/1 var(--f-m); letter-spacing: .2em; height: 56px; text-transform: uppercase; }
