/* Ghosty v2: "ghost in the terminal".
   Night background, mint→cyan accent from the logo. Type: Unbounded (display), Onest (text), JetBrains Mono (code);
   all three have Cyrillic on Google Fonts. Texture: dot grid lit around the cursor + film grain. */
:root {
  --bg: #05070d;
  --bg2: #080c17;
  --panel: #0a101d;
  --panel2: #0d1424;
  --line: #172038;
  --line2: #22304f;
  --text: #e6edf7;
  --muted: #8b97b0;
  --dim: #56627c;
  --mint: #8cffd2;
  --cyan: #3ac8ff;
  --grad: linear-gradient(135deg, var(--mint), var(--cyan));
  --warn: #ffc56b;
  --bad: #ff7a8a;
  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --radius: 16px;
  --mx: -999px;
  --my: -999px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button, input, select { font-family: inherit; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(140, 255, 210, .28); color: #fff; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, pre, .mono { font-family: var(--mono); font-size: .9em; }
code { color: #c8f7e6; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }

/* ---------- backdrop: aurora, dot grid lit by the cursor, grain ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.backdrop::before { /* aurora */
  content: ""; position: absolute; inset: -20% -10% auto; height: 90vh;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(58, 200, 255, .10), transparent 70%),
    radial-gradient(35% 45% at 25% 10%, rgba(140, 255, 210, .08), transparent 70%);
}
.dots, .dots-lit { position: absolute; inset: 0; background-size: 26px 26px; }
.dots {
  background-image: radial-gradient(circle at 1px 1px, rgba(139, 151, 176, .16) 1px, transparent 1.4px);
  -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .15));
  mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, .35) 70%, rgba(0, 0, 0, .15));
}
.dots-lit {
  background-image: radial-gradient(circle at 1px 1px, rgba(140, 255, 210, .9) 1.1px, transparent 1.6px);
  -webkit-mask-image: radial-gradient(180px circle at var(--mx) var(--my), #000, transparent 75%);
  mask-image: radial-gradient(180px circle at var(--mx) var(--my), #000, transparent 75%);
  opacity: .55;
}
.grain {
  position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(5, 7, 13, .72);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(34, 48, 79, .6); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: -.01em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; transition: transform .3s; }
.brand:hover img { transform: translateY(-2px) rotate(-6deg); }
.nav .links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav .links a:not(.btn) { color: var(--muted); font-size: 14.5px; }
.nav .links a:not(.btn) i { font: normal 11px var(--mono); color: var(--dim); margin-right: 6px; }
.nav .links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav .links a:not(.btn):hover i { color: var(--mint); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--panel2); color: var(--text);
  font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .2s, background .2s; }
.btn:hover { border-color: var(--cyan); text-decoration: none; }
.btn:focus-visible, .tabs button:focus-visible, summary:focus-visible, .chip:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--grad); color: #04121a; border: 0; box-shadow: 0 8px 30px -10px rgba(58, 200, 255, .6); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px -10px rgba(140, 255, 210, .7); }
.btn.small { padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn .k { font: 500 11px var(--mono); color: var(--muted); border: 1px solid var(--line2); border-radius: 5px; padding: 1px 5px; }

/* telegram login (G.loginButton) */
.login { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.login iframe { border-radius: 10px; }
.login-alt { font-size: 13px; color: var(--muted); border-bottom: 1px dashed var(--line2); }
.login-alt:hover { color: var(--mint); text-decoration: none; border-color: var(--mint); }
.center .login { align-items: center; }

/* ---------- small type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line2); background: rgba(10, 16, 29, .7); border-radius: 99px; padding: 7px 14px 7px 8px; }
.eyebrow .pr { background: var(--grad); color: #04121a; border-radius: 99px; padding: 3px 7px; font-weight: 700; }
.cmdline { font: 500 13px var(--mono); color: var(--dim); margin-bottom: 14px; letter-spacing: .01em; }
.cmdline b { color: var(--mint); font-weight: 500; }
.cmdline::after { content: "▍"; color: var(--mint); margin-left: 4px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fine { color: var(--muted); font-size: 13px; margin-top: 12px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font: 600 11px/1.3 var(--mono); text-transform: uppercase;
  letter-spacing: .06em; background: rgba(140, 255, 210, .12); color: var(--mint); margin-left: 8px; vertical-align: middle; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 24px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: center; min-height: min(640px, 82vh); }
.hero h1 { font: 600 clamp(32px, 5.1vw, 62px)/1.06 var(--display); letter-spacing: -.035em; margin: 22px 0 22px; }
.hero h1 .grad { display: inline-block; padding-right: .04em; }
.hero p.lead { color: #aab5ca; font-size: 18px; margin: 0 0 30px; max-width: 33em; }
.hero p.lead b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.cta .hint { color: var(--muted); font-size: 13.5px; width: 100%; max-width: 36em; }
.flags { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 30px; font: 13px var(--mono); color: var(--muted); }
.flags span::before { content: "✓ "; color: var(--mint); }

/* mascot stage */
.stage { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.stage .halo { position: absolute; inset: 14%; border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 200, 255, .22), rgba(140, 255, 210, .06) 45%, transparent 70%); filter: blur(10px); }
.stage .ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(139, 151, 176, .18); animation: spin 90s linear infinite; }
.stage .ring.r2 { inset: 20%; border-style: solid; border-color: rgba(139, 151, 176, .08); animation-duration: 140s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.ghost-wrap { position: absolute; left: 22%; right: 22%; top: 16%; animation: float 5.5s ease-in-out infinite; cursor: pointer; z-index: 2; }
.ghost-wrap svg { width: 100%; height: auto; display: block; overflow: visible;
  filter: drop-shadow(0 0 28px rgba(58, 200, 255, .35)) drop-shadow(0 0 70px rgba(140, 255, 210, .15)); }
.ghost-tilt { transform-box: fill-box; transform-origin: 50% 60%; transition: transform .25s ease-out; }
.shadow { position: absolute; left: 36%; right: 36%; bottom: 13%; height: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 200, 255, .35), transparent); animation: shadow 5.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes shadow { 50% { transform: scaleX(.78); opacity: .6; } }
.g-face { transition: transform .25s ease-out; }
.g-eye { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .09s; }
.blink .g-eye { transform: scaleY(.12); }
.g-cur { animation: blink 1.05s steps(1) infinite; }
.happy .g-eye { transform: rotate(-90deg) scale(.9); }
.chip { position: absolute; z-index: 3; font: 500 12px/1 var(--mono); color: #c9d4e8; white-space: nowrap;
  background: rgba(10, 16, 29, .82); border: 1px solid var(--line2); border-radius: 99px; padding: 7px 11px;
  backdrop-filter: blur(6px); transform: translate(calc(var(--px, 0) * 1px), calc(var(--py, 0) * 1px)); transition: transform .4s ease-out, border-color .2s, color .2s; }
.chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--cyan)); margin-right: 7px; vertical-align: 1px; }
.chip:hover { border-color: var(--mint); color: #fff; }
.say { position: absolute; z-index: 4; left: 50%; top: 2%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  font: 500 13px/1.4 var(--mono); color: #04121a; background: var(--grad); padding: 9px 13px; border-radius: 12px; white-space: nowrap;
  transition: opacity .2s, transform .2s; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.say::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #5fe3e8; transform: translateX(-50%) rotate(45deg); z-index: -1; }
.say.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- terminal ---------- */
.term { position: relative; background: linear-gradient(180deg, #08101e, #060a14); border: 1px solid var(--line2); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(58, 200, 255, .35), 0 0 0 1px rgba(140, 255, 210, .04) inset; }
.term::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, .18) 2px 3px); }
.term .bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); font: 12px var(--mono); color: var(--dim); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #1d2842; }
.term .bar i:first-child { background: #3a2433; }
.term .bar .t { margin: 0 auto; padding-right: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term .bar button { background: none; border: 1px solid var(--line2); color: var(--muted); border-radius: 6px; font: 12px var(--mono); padding: 3px 8px; cursor: pointer; position: relative; z-index: 2; }
.term .bar button:hover { color: var(--mint); border-color: var(--mint); }
.term pre { margin: 0; padding: 20px 22px 24px; font: 13.5px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word; color: #c9d4e8; min-height: 23.5em; }
.term .p { color: var(--mint); }
.term .c { color: var(--dim); }
.term .o { color: var(--cyan); }
.term .u { color: #fff; }
.term .ok { color: var(--mint); }
.term .money { color: #04121a; background: var(--grad); padding: 1px 6px; border-radius: 4px; }
.term .caret { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: var(--mint); animation: blink 1s steps(1) infinite; }
.session { padding: 20px 0 40px; }
.session .cap { color: var(--muted); font-size: 13px; margin-top: 14px; max-width: 60em; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section h2 { font: 600 clamp(26px, 3.6vw, 42px)/1.12 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
section .sub { color: var(--muted); margin: 0 0 36px; max-width: 46em; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }

/* featured: the "uncensored" file, redaction bars slide away */
.featured { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; padding: 34px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(140, 255, 210, .10), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(58, 200, 255, .10), transparent 60%), var(--panel);
  border: 1px solid rgba(140, 255, 210, .3); }
.featured .stamp { position: absolute; right: -8px; top: 22px; transform: rotate(8deg); font: 700 12px var(--mono); letter-spacing: .2em; text-transform: uppercase;
  color: rgba(140, 255, 210, .5); border: 2px solid rgba(140, 255, 210, .35); padding: 6px 14px; border-radius: 6px; }
.featured .file { font: 500 12.5px var(--mono); color: var(--dim); margin-bottom: 14px; }
.featured h3 { font: 600 clamp(24px, 3.4vw, 38px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.featured h3 code { font-family: inherit; color: var(--text); font-size: 1em; }
.featured p { color: #b8c3d6; font-size: 17px; max-width: 36em; }
.redact { position: relative; }
.redact::after { content: ""; position: absolute; left: -2px; right: -2px; top: .12em; bottom: .05em; background: #1b2540; border-radius: 3px;
  transform-origin: right; transition: transform .7s cubic-bezier(.7, 0, .2, 1) var(--d, 0s); }
.in .redact::after { transform: scaleX(0); }
.featured .rules { font-size: 13px; color: var(--muted); margin-top: 14px; }
.featured .price { text-align: right; }
.featured .price b { font: 600 clamp(40px, 5vw, 60px)/1 var(--display); letter-spacing: -.04em; }
.featured .price span { font-size: 13px; }
.featured .price span:first-child { font: 500 28px var(--display); vertical-align: 6px; }
.featured .price span:last-child { display: block; margin-top: 6px; }

/* steps: a pipeline with a scroll-filled rail */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 34px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 28px; right: calc((100% - 36px) / 3 - 28px); top: 11px; height: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--grad); transform-origin: left; transform: scaleX(1); }
@supports (animation-timeline: view()) {
  .steps::after { animation: rail linear both; animation-timeline: view(); animation-range: entry 20% cover 50%; }
  @keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
.step { position: relative; }
.step::before { content: attr(data-n); position: absolute; top: -34px; left: 16px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--mint); color: var(--mint); font: 700 10px/20px var(--mono); text-align: center; z-index: 1; }
.step .step-n { font: 500 12px var(--mono); color: var(--dim); margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step:hover { border-color: var(--line2); }

/* prices: calculator + table */
.calc { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; padding: 0; overflow: hidden; margin-bottom: 28px; border-color: var(--line2); }
.calc .in-side { padding: 28px; border-right: 1px solid var(--line); }
.calc .out-side { padding: 28px; background: radial-gradient(100% 100% at 100% 0%, rgba(58, 200, 255, .10), transparent 70%), var(--bg2);
  display: flex; flex-direction: column; justify-content: center; }
.calc label { display: block; font: 500 12px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.calc .sum { font: 600 34px/1 var(--display); letter-spacing: -.03em; margin-bottom: 14px; }
.calc .sum small { font-size: 18px; color: var(--muted); }
.calc .field + .field { margin-top: 24px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--mint), var(--cyan)) 0 / var(--fill, 30%) 100% no-repeat, var(--line); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--grad); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--mint); box-shadow: 0 0 0 6px rgba(140, 255, 210, .12); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--mint); }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(140, 255, 210, .35); }
.ticks { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--dim); margin-top: 2px; }
.calc .res { font: 600 clamp(38px, 5vw, 58px)/1 var(--display); letter-spacing: -.04em; }
.calc .res-u { font-size: 16px; color: var(--muted); margin: 8px 0 18px; }
.calc .res-note { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line2); padding-top: 14px; }
.calc .res-note code { color: var(--text); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line2); background: transparent;
  color: var(--muted); font-weight: 500; font-size: 14px; cursor: pointer; transition: color .15s, border-color .15s; }
.tabs button:hover { color: var(--text); border-color: var(--dim); }
.tabs button.on { color: #04121a; background: var(--grad); border-color: transparent; }
.tablebox { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.prices { width: 100%; border-collapse: collapse; font-size: 15px; }
table.prices th { text-align: left; color: var(--dim); font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .07em; padding: 14px 16px; border-bottom: 1px solid var(--line); }
table.prices td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.prices tr:last-child td { border-bottom: 0; }
table.prices tbody tr { transition: background .15s; }
table.prices tbody tr:hover { background: rgba(140, 255, 210, .03); }
table.prices tbody tr.feat { background: linear-gradient(90deg, rgba(140, 255, 210, .07), transparent 60%); }
table.prices td.num, table.prices th.num { text-align: right; white-space: nowrap; font-family: var(--mono); font-size: 14px; }
table.prices td.num { color: var(--muted); }
table.prices td.avg { color: var(--text); min-width: 150px; }
table.prices td.avg b { font-weight: 600; }
table.prices .meter { display: block; height: 3px; border-radius: 3px; background: var(--line); margin-top: 8px; overflow: hidden; }
table.prices .meter i { display: block; height: 100%; background: var(--grad); margin-left: auto; }
table.prices td code { color: var(--text); font-size: 14px; }
table.prices .note { color: var(--muted); font-size: 13px; margin-top: 3px; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq .sticky { position: sticky; top: 100px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { border-top: 1px solid var(--line); }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; gap: 14px; justify-content: space-between; align-items: baseline; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--muted); font: 500 18px var(--mono); transition: transform .2s, color .2s; }
details[open] summary::after { transform: rotate(45deg); color: var(--mint); }
details summary:hover { color: #fff; }
details p { color: var(--muted); margin: 12px 0 0; max-width: 42em; }

/* final call */
.final { position: relative; text-align: center; padding: 80px 24px 96px; margin: 40px 0 0; border: 1px solid var(--line2); border-radius: 28px; overflow: hidden;
  background: radial-gradient(60% 80% at 50% 110%, rgba(58, 200, 255, .18), transparent 70%), var(--panel); }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); margin: 0 auto 28px; max-width: 34em; }
.final .row { justify-content: center; }
.final .peek { position: absolute; left: 50%; bottom: -46px; width: 120px; transform: translateX(-50%); opacity: .9; transition: bottom .4s cubic-bezier(.3, 1.4, .5, 1); }
.final:hover .peek { bottom: -24px; }

footer { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--muted); font-size: 14px; margin-top: 72px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
footer a { color: var(--muted); }
footer a:hover { color: var(--mint); }
footer .req { max-width: 520px; }

/* reveal on scroll (fx.js adds .in; without JS everything is visible) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- cabinet (element ids are used by cabinet.js) ---------- */
.cab { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 36px 0 72px; }
.cab .wide { grid-column: 1 / -1; }
.cab .card { position: relative; }
.cab .card h3 { display: flex; align-items: center; justify-content: flex-start; gap: 10px; font: 500 12px var(--mono);
  text-transform: uppercase; letter-spacing: .09em; color: var(--dim); margin-bottom: 14px; }
.cab .card h3::before { content: "//"; color: var(--mint); }
.cab .card h3 > :first-child { margin-left: auto; }
.cab .bal-card { background: radial-gradient(90% 120% at 0% 0%, rgba(140, 255, 210, .09), transparent 60%), var(--panel); border-color: var(--line2); }
.balance { font: 600 clamp(36px, 5vw, 52px)/1.05 var(--display); letter-spacing: -.04em; margin: 6px 0 8px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.amounts button { font-family: var(--mono); }
.amounts button.on { border-color: var(--mint); color: var(--mint); background: rgba(140, 255, 210, .07); }
input[type=text], input[type=email], input[type=number], select {
  background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: 10px; padding: 11px 13px;
  font-size: 15px; min-width: 0; max-width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(58, 200, 255, .15); }
.keybox { font-family: var(--mono); background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px;
  padding: 12px 14px; word-break: break-all; margin-top: 10px; font-size: 14px; color: #c8f7e6; }
.keybox::before { content: "› "; color: var(--mint); }
.cmd { position: relative; }
.cmd pre { background: var(--bg2); border: 1px solid var(--line2); border-left: 2px solid var(--mint); border-radius: 10px; padding: 14px; margin: 12px 0 0;
  white-space: pre-wrap; word-break: break-all; font-size: 13px; color: #c9d4e8; }
.status { display: inline-block; font: 500 12px var(--mono); text-transform: none; letter-spacing: 0; padding: 3px 10px; border-radius: 99px; }
.status::before { content: "● "; }
.status.ok { background: rgba(140, 255, 210, .12); color: var(--mint); }
.status.warn { background: rgba(255, 197, 107, .12); color: var(--warn); }
.status.bad { background: rgba(255, 122, 138, .12); color: var(--bad); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.stats div { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stats b { display: block; font: 600 22px/1.2 var(--display); letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin-top: 20px; padding-bottom: 1px;
  background: repeating-linear-gradient(to top, var(--line) 0 1px, transparent 1px 26px); }
.bars i { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; transition: opacity .15s; }
.bars i:hover { opacity: 1; box-shadow: 0 0 14px rgba(140, 255, 210, .5); }
.bars i.zero { background: var(--line2); }
.bars-x { display: flex; justify-content: space-between; color: var(--dim); font: 11px var(--mono); margin-top: 8px; }
.list { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.list td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.list tr:last-child td { border-bottom: 0; }
.list td:last-child { text-align: right; font-family: var(--mono); }
.gift { border-color: rgba(140, 255, 210, .4); background: radial-gradient(80% 140% at 100% 0%, rgba(140, 255, 210, .1), transparent 60%), var(--panel); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--panel2); font-size: 15px;
  border: 1px solid var(--mint); padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: calc(100% - 32px);
  box-shadow: 0 20px 60px -20px rgba(140, 255, 210, .4); animation: toast .25s ease-out; }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }
.center { min-height: 66vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.center h2 { font: 600 clamp(26px, 4vw, 38px)/1.1 var(--display); letter-spacing: -.03em; margin: 8px 0 12px; }
.center .mini { width: 128px; margin: 0 auto; position: relative; animation: float 5.5s ease-in-out infinite; }
.center .mini svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 24px rgba(58, 200, 255, .4)); }

/* legal pages */
.legal { max-width: 800px; padding: 48px 24px 72px; }
.legal h1 { font: 600 clamp(26px, 4vw, 38px)/1.15 var(--display); letter-spacing: -.03em; }
.legal h2 { font: 600 18px/1.3 var(--display); letter-spacing: -.01em; margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: #c3cddf; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; min-height: 0; gap: 8px; }
  .stage { order: -1; max-width: 300px; }
  .faq { grid-template-columns: 1fr; gap: 8px; }
  .faq .sticky { position: static; }
}
@media (max-width: 860px) {
  .steps, .cab { grid-template-columns: 1fr; }
  .steps { padding-top: 0; padding-left: 40px; }
  .steps { padding-left: 0; }
  .steps::before, .steps::after { display: none; }
  .step::before { top: 22px; left: auto; right: 22px; }
  .featured { grid-template-columns: 1fr; padding: 26px 22px; }
  .featured .price { text-align: left; }
  .calc { grid-template-columns: 1fr; }
  .calc .in-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 52px 0; }
  .hero p.lead { font-size: 16.5px; }
  .chip { font-size: 11px; padding: 6px 9px; }
  .stage { max-width: 250px; margin-bottom: -6px; }
  .hero h1 { margin: 18px 0 16px; }
  .term pre { font-size: 12px; padding: 16px 14px 18px; min-height: 26em; }
  .term .bar .t { padding-right: 0; }
  .calc .in-side, .calc .out-side { padding: 22px 18px; }
  .final { padding: 56px 18px 84px; border-radius: 20px; }
  /* price table becomes cards */
  .tablebox { background: transparent; border: 0; overflow: visible; }
  table.prices, table.prices tbody { display: block; }
  table.prices thead { display: none; }
  table.prices tr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; background: var(--panel);
    border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
  table.prices td { padding: 0; border: 0; }
  table.prices td:first-child, table.prices td.avg { grid-column: 1 / -1; }
  table.prices td.num { text-align: left; font-size: 13px; white-space: normal; }
  table.prices td.num::before { content: attr(data-l); display: block; font: 500 10.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  table.prices td.avg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
  table.prices td.avg::before { margin: 0; }
  table.prices td.avg .meter { flex: 1 1 100%; margin-top: 2px; }
  .stats { grid-template-columns: 1fr; }
  .featured .stamp { top: 12px; font-size: 10px; }
  .cab .card { padding: 20px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dots-lit { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .redact::after { transform: scaleX(0); }
}

.est { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.est b { color: var(--mint); font-family: var(--mono); }
.est .muted { font-size: 12.5px; }

/* ---------- phones: less on screen ---------- */
.more-models { display: none; }
#balance-note { line-height: 1.5; }
@media (max-width: 640px) {
  .session, .flags { display: none !important; }
  .hero .hint { font-size: 13px; }
  .hero p.lead { margin-bottom: 22px; }
  .chip:nth-of-type(n+6) { display: none; }
  section .sub { font-size: 15px; margin-bottom: 22px; }

  /* prices: one compact card per model, first 8 until «Показать все» */
  table.prices tr { grid-template-columns: repeat(3, 1fr); gap: 6px 8px; padding: 12px 14px; margin-bottom: 8px; }
  table.prices td:first-child { grid-column: 1 / 3; align-self: center; }
  table.prices td:first-child .note { display: none; }
  table.prices td.avg { grid-column: 3; justify-content: flex-end; align-self: center; text-align: right; }
  table.prices td.avg::before, table.prices td.avg .meter { display: none; }
  table.prices td.num:not(.avg) { font-size: 12px; color: var(--muted); }
  table.prices td.num:not(.avg)::before { display: inline; margin-right: 4px; font-size: 10px; }
  table.prices.collapsed tbody tr:nth-child(n+9) { display: none; }
  .more-models { display: flex; width: 100%; margin-top: 4px; }
  .more-models[hidden] { display: none !important; }

  /* cabinet */
  .cab { gap: 12px; padding-top: 20px; }
  .balance { font-size: 44px; }
  .amounts { display: grid !important; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .amounts button { padding: 9px 0; font-size: 12px; white-space: nowrap; }
  .bal-card .row input { flex: 1 1 100% !important; min-width: 0 !important; width: 100%; }
  #pay { flex: 1 1 100%; }
  .stats { grid-template-columns: repeat(3, 1fr) !important; gap: 6px; }
  .stats div { padding: 10px; }
  .stats b { font-size: 16px; }
  .stats span { font-size: 11px; }
  .list tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .list tr:last-child { border-bottom: 0; }
  .list td { padding: 0; border: 0; }
  .list td.when { grid-column: 1; font-size: 13px; }
  .list td.sum { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .list td.how, .list td.st { grid-column: 1; font-size: 12px; color: var(--muted); display: inline; }
  .list td.st.paid { display: none; }
  .list td.st { grid-row: 3; }
  #su-app, #su-os { flex: 1 1 40%; }
  #su-go { flex: 1 1 100%; }
}

/* ---------- multi-page: nav, page heads, model cards, connect ---------- */
.nav .links a.on { color: var(--text); }
.nav .links a.on i { color: var(--mint); }
.nav .who { font-size: 13px; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line2); border-radius: 10px;
  background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.nav.open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (max-width: 860px) {
  .burger { display: block; }
  .nav .links { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 16px 16px; background: #05070d; border-bottom: 1px solid var(--line2);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .6); min-height: calc(100vh - 64px); }
  .nav.open .links { display: flex; }
  .nav.open { backdrop-filter: none; -webkit-backdrop-filter: none; background: #05070d; }
  .nav .links a:not(.btn) { display: block; padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav .links .btn { margin-top: 14px; }
  .nav .links .who { padding: 12px 4px 0; }
}

.page-head { padding-top: 48px; }
.page-head h1 { font: 600 clamp(32px, 5vw, 52px)/1.08 var(--display); letter-spacing: -.035em; margin: 6px 0 14px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid3 h3 { font-size: 18px; margin: 6px 0 8px; }
.grid3 p { color: var(--muted); margin: 0; }

.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.mcard { display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: border-color .2s, transform .2s; }
.mcard:hover { text-decoration: none; border-color: var(--line2); transform: translateY(-2px); }
.mcard code { font-size: 16px; color: var(--text); }
.mcard p { color: var(--muted); font-size: 14px; margin: 2px 0 8px; flex: 1; }
.mcard .mprice b { font: 600 20px var(--display); letter-spacing: -.02em; }

.creds { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.creds .keybox { margin-top: 8px; }
.tool { padding-top: 8px; }
.tool h2 { margin-top: 18px; }
.tool h3 { font-size: 17px; margin: 28px 0 8px; }
.tool p { color: #c3cddf; }
.tool .file { margin-top: 16px; }
pre.code { position: relative; background: #070b14; border: 1px solid var(--line); border-radius: 12px; padding: 16px 16px 16px;
  margin: 8px 0 0; overflow-x: auto; font-size: 13px; line-height: 1.6; }
pre.code code { white-space: pre; color: #c9d4e8; }
pre.code .copy { position: absolute; top: 8px; right: 8px; font: 500 11.5px var(--mono); color: var(--muted); background: var(--panel);
  border: 1px solid var(--line2); border-radius: 7px; padding: 4px 9px; cursor: pointer; }
pre.code .copy:hover { color: var(--mint); border-color: var(--mint); }
.steps-list { padding-left: 20px; color: #c3cddf; line-height: 1.8; }
.steps-list li { margin-bottom: 6px; }
.faq-group { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mint); margin: 34px 0 4px; }
.faq-group:first-child { margin-top: 0; }

@media (max-width: 860px) {
  .grid3, .mgrid, .creds { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .page-head { padding-top: 28px; }
  .mgrid .mcard:nth-child(n+5) { display: none; }
  pre.code { font-size: 12px; padding: 40px 12px 14px; }
}
#tools { padding-top: 8px; }
.page-head + section { padding-top: 24px; }
.tool h2 { font-size: clamp(24px, 3vw, 32px); }
.mcard .tag { align-self: flex-start; margin-left: 0; }
.cab > * { min-width: 0; }
@media (max-width: 860px) { .cab { grid-template-columns: minmax(0, 1fr); } }
