/* tgprem.casa — тёмная тема, стекло, фиолетово-голубые акценты. Без внешних зависимостей. */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/assets/fonts/inter-400.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/assets/fonts/inter-500.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/assets/fonts/inter-600.woff') format('woff'); }
@font-face { font-family: 'Montserrat'; font-weight: 100 900; font-display: swap; src: url('/assets/fonts/montserrat-var.woff') format('woff'); }

:root {
  --ink: #07061a;
  --ink-2: #0d0b2a;
  --text: #f3f1ff;
  --muted: #a9a5cc;
  --faint: #6f6b98;
  --violet: #8b5cf6;
  --violet-deep: #6d28d9;
  --azure: #3b82f6;
  --cyan: #22d3ee;
  --gold: #fbbf24;
  --ok: #4ade80;
  --warn: #fbbf24;
  --bad: #fb7185;
  --glass: rgba(255, 255, 255, .055);
  --glass-strong: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .2);
  --grad: linear-gradient(135deg, #7c3aed 0%, #4f6ef7 55%, #22b8e8 100%);
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 400 1rem/1.55 var(--font-ui); color: var(--text); background: var(--ink);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 10px; }

/* ---------------------------------------------------------------- фон */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--ink); }
.aurora::before, .aurora::after, .aurora i {
  content: ''; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .5; will-change: transform;
}
.aurora::before { left: -25vmax; top: -30vmax; background: radial-gradient(circle, #6d28d9, transparent 62%); animation: drift-a 38s ease-in-out infinite alternate; }
.aurora::after { right: -30vmax; top: 5vmax; background: radial-gradient(circle, #2563eb, transparent 62%); opacity: .38; animation: drift-b 46s ease-in-out infinite alternate; }
.aurora i { left: 10vmax; bottom: -42vmax; background: radial-gradient(circle, #0891b2, transparent 62%); opacity: .28; animation: drift-a 52s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(9vmax, 6vmax, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(-8vmax, 10vmax, 0) scale(.94); } }

/* ---------------------------------------------------------------- каркас */
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.top {
  position: sticky; top: 0; z-index: 30; padding-top: var(--safe-t);
  background: linear-gradient(to bottom, rgba(7, 6, 26, .86), rgba(7, 6, 26, .5));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.15rem/1 var(--font-display); letter-spacing: -.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; align-items: center; gap: 6px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--glass); border-radius: 999px;
  font-weight: 500; font-size: .9rem; text-decoration: none; transition: background .2s, border-color .2s;
}
.chip-btn .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font: 700 .72rem var(--font-display); }
.chip-btn .badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--violet); font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
@media (hover: hover) { .chip-btn:hover { background: var(--glass-strong); border-color: var(--line-strong); } }

main { padding-bottom: calc(110px + var(--safe-b)); min-height: 70vh; }
.page { animation: page-in .35s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; margin: 0; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 8.4vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--r-md);
  font: 600 1rem var(--font-ui); text-decoration: none; color: #fff; background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: transform .18s var(--ease), box-shadow .2s, filter .2s, opacity .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.98); }
@media (hover: hover) { .btn:hover { filter: brightness(1.1); box-shadow: 0 14px 36px -10px rgba(99, 102, 241, .95), inset 0 1px 0 rgba(255, 255, 255, .3); } }
.btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.btn.block { width: 100%; }
.btn.glass { background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) { .btn.glass:hover { background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px var(--line-strong); } }
.btn.quiet { background: transparent; box-shadow: none; color: var(--muted); min-height: 44px; font-weight: 500; }
.btn.quiet:hover { color: var(--text); filter: none; box-shadow: none; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- главная */
.hero { padding: 38px 0 6px; }
.hero h1 { max-width: 12ch; }
.hero .lead { margin-top: 18px; max-width: 34rem; color: var(--muted); font-size: 1.06rem; }
.deck { display: grid; gap: 16px; margin-top: 30px; }
.panel {
  position: relative; overflow: hidden; isolation: isolate; text-decoration: none; display: block;
  padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1);
  transition: transform .35s var(--ease), border-color .3s;
}
.panel::before { content: ''; position: absolute; z-index: -1; width: 340px; height: 340px; right: -110px; top: -130px; border-radius: 50%; filter: blur(30px); opacity: .55; }
.panel.premium::before { background: radial-gradient(circle, rgba(139, 92, 246, .75), transparent 66%); }
.panel.stars::before { background: radial-gradient(circle, rgba(251, 191, 36, .5), transparent 66%); }
@media (hover: hover) { .panel:hover { transform: translateY(-4px); border-color: var(--line-strong); } }
.panel h2 { margin-top: 138px; font-size: clamp(1.7rem, 6vw, 2.3rem); }
.panel .sub { margin-top: 8px; color: var(--muted); max-width: 26rem; }
.panel .foot { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price-tag { font: 700 1.35rem var(--font-display); letter-spacing: -.02em; }
.price-tag small { display: block; font: 500 .8rem var(--font-ui); color: var(--muted); letter-spacing: 0; }
.go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); border: 1px solid var(--line); transition: background .25s, transform .3s var(--ease); }
.go svg { width: 20px; height: 20px; }
@media (hover: hover) { .panel:hover .go { background: var(--grad); transform: translateX(3px); border-color: transparent; } }
.gem { position: absolute; right: 14px; top: 12px; width: 150px; height: 150px; z-index: 0; transition: transform .25s ease-out; will-change: transform; }
.gem.small { width: 108px; height: 108px; }
.gem svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .45)); }
.gem .float { animation: bob 7s ease-in-out infinite; transform-origin: 50% 50%; }
.gem .float.b { animation-duration: 9s; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-7px) rotate(2.5deg); } }

.steps { margin: 44px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; counter-increment: step; }
.steps li::before { content: counter(step); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 .95rem var(--font-display); background: var(--glass-strong); border: 1px solid var(--line); }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: .92rem; }
.fine { margin-top: 40px; padding: 16px 18px; border-radius: var(--r-md); border: 1px dashed var(--line-strong); color: var(--muted); font-size: .88rem; }
.foot-links { margin-top: 28px; display: flex; gap: 20px; flex-wrap: wrap; color: var(--faint); font-size: .88rem; }
.foot-links a, .foot-links button { color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------------------------------------------------------------- выбор товара */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 8px; padding: 6px 12px 6px 6px; color: var(--muted); text-decoration: none; background: none; border: 0; border-radius: 999px; font-size: .92rem; }
.back svg { width: 20px; height: 20px; }
.page-head { padding: 6px 0 22px; }
.page-head p { margin-top: 10px; color: var(--muted); max-width: 32rem; }
.plans { display: grid; gap: 12px; }
.plan {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; text-align: left;
  padding: 20px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); color: inherit;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: border-color .2s, background .2s, transform .2s var(--ease), box-shadow .25s;
}
.plan .t { font: 700 1.12rem var(--font-display); letter-spacing: -.02em; }
.plan .p { font: 700 1.2rem var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.plan .radio { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: .2s; }
.plan .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.plan .left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.plan[aria-checked='true'] { border-color: rgba(139, 92, 246, .9); background: linear-gradient(160deg, rgba(139, 92, 246, .26), rgba(59, 130, 246, .1)); box-shadow: 0 18px 40px -22px rgba(139, 92, 246, .9); }
.plan[aria-checked='true'] .radio { background: var(--violet); border-color: var(--violet); }
.plan[aria-checked='true'] .radio::after { transform: scale(1); }
@media (hover: hover) { .plan:hover { border-color: var(--line-strong); transform: translateY(-2px); } }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 14px 0 calc(14px + var(--safe-b));
  background: linear-gradient(to top, rgba(7, 6, 26, .96) 55%, rgba(7, 6, 26, 0));
}
.dock .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dock .sum small { display: block; color: var(--muted); font-size: .8rem; }
.dock .sum b { font: 800 1.45rem/1.1 var(--font-display); letter-spacing: -.03em; }
.dock .btn { flex: 1; max-width: 280px; }
.dock .stack { width: 100%; margin: 0; }
.dock .stack .btn { max-width: none; }

/* ---------------------------------------------------------------- звёзды */
.field { display: grid; gap: 8px; margin-top: 20px; }
.field > label, .label { font-weight: 500; font-size: .92rem; color: var(--muted); }
.input {
  width: 100%; height: 58px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); font-size: 1rem; outline: none; transition: border-color .2s, background .2s;
}
textarea.input { height: auto; min-height: 96px; padding: 14px 18px; resize: vertical; }
.input:focus { border-color: var(--violet); background: rgba(139, 92, 246, .1); }
.input.big { height: 76px; font: 800 2rem var(--font-display); letter-spacing: -.03em; }
.input.invalid { border-color: var(--bad); }
.err { color: var(--bad); font-size: .88rem; min-height: 1.2em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-weight: 500; font-size: .92rem; transition: .2s; }
.chip[aria-pressed='true'] { background: rgba(251, 191, 36, .16); border-color: rgba(251, 191, 36, .6); }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg button { height: 46px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 500; transition: .2s; }
.seg button[aria-checked='true'] { background: var(--glass-strong); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.calc { margin-top: 22px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc b { font: 800 1.6rem var(--font-display); letter-spacing: -.03em; }

/* ---------------------------------------------------------------- шторки и окна */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(4, 3, 16, .66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .25s both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; overscroll-behavior: contain;
  padding: 10px 22px calc(24px + var(--safe-b)); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0;
  background: linear-gradient(170deg, #1a1642, #0e0c2c 60%); box-shadow: 0 -30px 80px rgba(0, 0, 0, .6);
  animation: rise .38s var(--ease) both;
}
@keyframes rise { from { transform: translateY(100%); } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 4px auto 16px; }
.sheet h2 { margin-bottom: 6px; }
.sheet .x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; }
.sheet .x svg { width: 18px; height: 18px; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 520px; transform: translate(-50%, -50%); border: 1px solid var(--line); border-radius: 28px; animation: pop .3s var(--ease) both; }
  .sheet .grab { display: none; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
}
.rows { margin: 18px 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 16px; }
.rows > div + div { border-top: 1px solid var(--line); }
.rows span:first-child { color: var(--muted); }
.rows b { text-align: right; font-weight: 600; word-break: break-word; }
.opts { display: grid; gap: 10px; margin: 14px 0 6px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; text-align: left; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--glass); transition: .2s; }
.opt b { font-weight: 600; }
.opt span { color: var(--muted); font-size: .88rem; }
.opt .amt { grid-row: 1 / span 2; grid-column: 2; font: 700 1rem var(--font-display); white-space: nowrap; }
.opt[aria-checked='true'] { border-color: rgba(139, 92, 246, .9); background: rgba(139, 92, 246, .2); }
.note { display: flex; gap: 12px; padding: 14px 16px; margin: 14px 0; border-radius: var(--r-md); background: rgba(59, 130, 246, .12); border: 1px solid rgba(96, 165, 250, .3); color: #cfe0ff; font-size: .88rem; line-height: 1.5; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; color: #7fb2ff; }
.note.warn { background: rgba(251, 191, 36, .1); border-color: rgba(251, 191, 36, .35); color: #ffe9b0; }
.note.warn svg { color: var(--gold); }
.note.bad { background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .4); color: #ffd1d8; }
.note.bad svg { color: var(--bad); }
.code-box { margin: 18px 0; padding: 16px; text-align: center; border-radius: var(--r-lg); border: 1px solid var(--line-strong); background: var(--glass); }
.code-box b { display: block; font: 800 2.6rem/1 var(--font-display); letter-spacing: .18em; padding-left: .18em; }
.stack { display: grid; gap: 10px; margin-top: 18px; }

/* ---------------------------------------------------------------- заказ */
.status { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; border: 1px solid var(--line); background: var(--glass); }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.status.s-checking::before { background: var(--cyan); animation: blink 1.4s infinite; }
.status.s-answered::before { background: var(--ok); }
.status.s-expired::before, .status.s-cancelled::before { background: var(--faint); }
@keyframes blink { 50% { opacity: .25; } }
.card { padding: 22px; border-radius: var(--r-xl); border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.card + .card { margin-top: 14px; }
.order-top > div { min-width: 0; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.big-price { font: 800 clamp(2rem, 9vw, 2.8rem)/1 var(--font-display); letter-spacing: -.04em; }
.timer { margin-top: 16px; }
.timer .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-top: 8px; }
.timer .bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transition: transform 1s linear; }
.pay-links { display: grid; gap: 10px; margin-top: 18px; }
.copy { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.copy code { flex: 1; min-width: 0; font: 500 .95rem/1.35 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; word-break: break-all; }
.copy button { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass-strong); font-size: .85rem; font-weight: 500; display: inline-flex; gap: 6px; align-items: center; }
.copy button svg { width: 16px; height: 16px; }
.kv { display: grid; gap: 6px; margin-top: 14px; }
.kv .label { font-size: .82rem; }
.list { display: grid; gap: 12px; }
.row-order { display: grid; gap: 6px; text-decoration: none; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--glass); transition: .2s; }
.row-order .l1 { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.row-order b { font: 700 1.05rem var(--font-display); letter-spacing: -.02em; }
@media (hover: hover) { .row-order:hover { border-color: var(--line-strong); background: var(--glass-strong); } }
.empty { padding: 40px 22px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-xl); color: var(--muted); }
.empty .btn { margin-top: 18px; }
.bubble { padding: 14px 16px; border-radius: 18px 18px 18px 6px; background: var(--glass-strong); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; max-width: 92%; }
.bubble.me { margin-left: auto; border-radius: 18px 18px 6px 18px; background: rgba(99, 102, 241, .28); border-color: rgba(129, 140, 248, .5); }
.bubble time { display: block; margin-top: 6px; color: var(--faint); font-size: .75rem; }
.thread { display: grid; gap: 10px; margin: 16px 0; max-height: 46dvh; overflow: auto; }

/* ---------------------------------------------------------------- полноэкранное окно ответа */
.full {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain;
  padding: calc(24px + var(--safe-t)) 22px calc(24px + var(--safe-b));
  background: radial-gradient(120% 80% at 50% -10%, #2a1d6b 0%, #100d33 45%, #07061a 100%);
  animation: fade .3s both;
}
.full .inner { width: 100%; max-width: 560px; margin: auto; }
.full .center { text-align: center; }
.full h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin-top: 22px; }
.full .lead { margin: 14px auto 0; color: var(--muted); max-width: 30rem; }
.orbit { position: relative; width: 150px; height: 150px; margin: 6px auto 0; display: grid; place-items: center; }
.orbit::before, .orbit::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; }
.orbit::before { border-top-color: var(--violet); border-right-color: rgba(139, 92, 246, .3); animation: rot 2.6s linear infinite; }
.orbit::after { inset: 14px; border-bottom-color: var(--cyan); border-left-color: rgba(34, 211, 238, .25); animation: rot 4s linear infinite reverse; }
.orbit .gem { position: static; width: 74px; height: 74px; }
.full .msgs { display: grid; gap: 12px; margin: 26px 0 8px; text-align: left; }
.full .reply { padding: 22px; border-radius: var(--r-xl); border: 1px solid rgba(139, 92, 246, .55); background: linear-gradient(160deg, rgba(139, 92, 246, .26), rgba(59, 130, 246, .12)); font-size: 1.12rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; box-shadow: 0 30px 70px -30px rgba(139, 92, 246, .9); animation: arrive .5s var(--ease) both; }
@keyframes arrive { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.full .reply .who { display: block; margin-bottom: 8px; font: 600 .85rem var(--font-ui); color: #cbb8ff; }
.full .actions { display: grid; gap: 10px; margin-top: 22px; }
.full .tick { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 60px rgba(99, 102, 241, .6); }
.full .tick svg { width: 40px; height: 40px; }

.pill {
  position: fixed; z-index: 26; left: 14px; right: 14px; margin: 0 auto; width: fit-content; bottom: calc(18px + var(--safe-b)); display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 28px); white-space: nowrap; padding: 10px 12px 10px 18px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, .4);
  background: rgba(10, 20, 45, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7);
  animation: rise-pill .4s var(--ease) both; font-size: .92rem;
}
.pill .spin { border-color: rgba(34, 211, 238, .35); border-top-color: var(--cyan); }
.pill button { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--grad); color: #fff; font-weight: 600; }
@keyframes rise-pill { from { opacity: 0; transform: translateY(20px); } }
body.has-dock .pill { bottom: calc(96px + var(--safe-b)); }
/* плашка ожидания не должна закрывать последние поля страницы */
body.has-pill main { padding-bottom: calc(176px + var(--safe-b)); }
body.has-pill.has-dock main { padding-bottom: calc(240px + var(--safe-b)); }

.toasts { position: fixed; z-index: 100; left: 0; right: 0; top: calc(12px + var(--safe-t)); display: grid; gap: 8px; justify-items: center; pointer-events: none; padding: 0 14px; }
.toast { pointer-events: auto; max-width: 440px; padding: 13px 18px; border-radius: 14px; background: #1c1850; border: 1px solid var(--line-strong); box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .7); animation: toast-in .35s var(--ease) both; font-size: .92rem; }
.toast.bad { border-color: rgba(251, 113, 133, .6); }
.toast.ok { border-color: rgba(74, 222, 128, .55); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px); } }

.skeleton { border-radius: var(--r-lg); height: 84px; background: linear-gradient(100deg, rgba(255, 255, 255, .04) 30%, rgba(255, 255, 255, .1) 50%, rgba(255, 255, 255, .04) 70%); background-size: 220% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -120% 0; } }
.net-bar { position: fixed; z-index: 90; top: 0; left: 0; right: 0; padding: calc(6px + var(--safe-t)) 12px 6px; text-align: center; font-size: .82rem; background: #5b2a00; color: #ffe2b8; }

/* ---------------------------------------------------------------- большие экраны */
@media (min-width: 760px) {
  .wrap { padding: 0 32px; }
  .hero { padding: 72px 0 10px; }
  .deck { grid-template-columns: 1.25fr 1fr; gap: 20px; margin-top: 44px; }
  .panel { padding: 34px 32px 30px; }
  .panel h2 { margin-top: 170px; }
  .gem { width: 200px; height: 200px; right: 22px; top: 18px; }
  .gem.small { width: 150px; height: 150px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .page-narrow { max-width: 620px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.nojs { padding: 24px; text-align: center; }
