/* keyra.fun — сайт продаж и кабинет */
:root {
  --bg: #05070d;
  --bg-2: #0a0e19;
  --card: rgba(18, 24, 40, .72);
  --card-2: rgba(255, 255, 255, .035);
  --line: rgba(170, 190, 255, .11);
  --line-2: rgba(170, 190, 255, .2);
  --ink: #eef2ff;
  --muted: #9aa6c4;
  --faint: #66718f;
  --acc: #4f8dff;
  --acc-2: #7c5cff;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5a5f;
  --grad: linear-gradient(135deg, #4f8dff 0%, #7c5cff 100%);
  --display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 14px; } .tiny { font-size: 12.5px; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* фон */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.bg .b1 { width: 620px; height: 620px; background: #2a4fd6; top: -260px; left: -160px; opacity: .35; }
.bg .b2 { width: 560px; height: 560px; background: #6a3cf0; top: 120px; right: -260px; opacity: .25; }
.bg .grid { inset: 0; border-radius: 0; filter: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px max(20px, calc((100% - 1160px) / 2 + 20px));
  background: rgba(5, 7, 13, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 600 20px var(--display); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav { display: none; } .top #top-cab { margin-left: auto; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 14px; padding: 13px 22px;
  font: 600 15.5px var(--body); color: #fff; cursor: pointer; background: none; transition: transform .15s, background .2s, border-color .2s, opacity .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--grad); box-shadow: 0 10px 30px -10px rgba(91, 110, 255, .8); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-danger { background: rgba(255, 90, 95, .12); border-color: rgba(255, 90, 95, .35); color: #ffb3b5; }

/* герой */
.hero { padding: 84px 0 40px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: #c9d4ff; padding: 6px 12px; border-radius: 99px; background: rgba(79, 141, 255, .1); border: 1px solid rgba(79, 141, 255, .3); }
.eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin: 18px 0 18px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18.5px; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero .trust { display: flex; gap: 22px; margin-top: 28px; color: var(--faint); font-size: 14px; flex-wrap: wrap; }
.hero .trust span { display: inline-flex; gap: 7px; align-items: center; }
.hero .trust svg { width: 16px; height: 16px; color: var(--ok); }
.shots { position: relative; height: 520px; }
.shot { position: absolute; border-radius: 18px; border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); overflow: hidden; background: #0b1020; }
.shot.admin { width: 92%; right: 0; top: 30px; }
.shot.phone { width: 34%; left: 0; bottom: 0; border-radius: 26px; border-width: 5px; border-color: #1b2236; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 50px; } .shots { height: auto; aspect-ratio: 1.25; } }

/* секции */
section.sec { padding: 70px 0; }
.sec-h { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-h h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.sec-h p { color: var(--muted); font-size: 17px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat .card { padding: 22px; }
.feat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(79, 141, 255, .12); color: #9cc0ff; border: 1px solid rgba(79, 141, 255, .25); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { font-size: 16.5px; margin-bottom: 8px; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.feat p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 980px) { .feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps .card { padding: 26px; position: relative; }
.steps .n { font: 600 14px var(--display); width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); margin-bottom: 16px; }
.steps h3 { font-size: 18px; margin-bottom: 8px; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
.steps p { color: var(--muted); font-size: 15px; }
.cmd { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 12px 11px 14px; background: #04060b; border: 1px solid var(--line); border-radius: 12px; font: 13px ui-monospace, Menlo, monospace; color: #c7d3ff; overflow: hidden; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd button { flex: none; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.plan { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.hot { border-color: rgba(124, 92, 255, .55); background: linear-gradient(180deg, rgba(124, 92, 255, .14), rgba(18, 24, 40, .72) 60%); }
.plan .tag { position: absolute; top: 16px; right: 16px; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: rgba(124, 92, 255, .2); color: #d2c8ff; }
.plan h3 { font-size: 18px; font-family: var(--body); font-weight: 700; }
.plan .price { font: 600 36px var(--display); margin: 8px 0 0; }
.plan .price small { font: 500 15px var(--body); color: var(--muted); }
.plan .per { color: var(--faint); font-size: 14px; margin-bottom: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; font-size: 14.5px; color: #c9d1ea; }
.plan li { display: flex; gap: 9px; } .plan li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

.foot { border-top: 1px solid var(--line); padding: 30px 0 40px; margin-top: 40px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.foot .logo { font-size: 17px; margin-bottom: 6px; }

/* кабинет */
.cab { padding: 40px 0 20px; display: grid; gap: 18px; }
.cab-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cab-h h1 { font-size: 28px; }
.ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--grad); display: grid; place-items: center; font-weight: 700; flex: none; }
.cab-h .grow { flex: 1; min-width: 0; }
.lic { padding: 24px; display: grid; gap: 16px; }
.lic-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lic-top h3 { font-size: 18px; font-family: var(--body); font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); border-color: rgba(61,220,151,.35); background: rgba(61,220,151,.08); }
.chip.warn { color: var(--warn); border-color: rgba(255,181,71,.35); background: rgba(255,181,71,.08); }
.chip.bad { color: var(--bad); border-color: rgba(255,90,95,.35); background: rgba(255,90,95,.08); }
.key { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #04060b; border: 1px dashed var(--line-2); font: 600 17px ui-monospace, Menlo, monospace; letter-spacing: .04em; flex-wrap: wrap; }
.key span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kv div { padding: 12px 14px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); min-width: 0; }
.kv span { display: block; font-size: 12.5px; color: var(--faint); margin-bottom: 3px; }
.kv b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acts { display: flex; gap: 10px; flex-wrap: wrap; }
.empty { padding: 36px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.empty .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgba(79,141,255,.12); color: #9cc0ff; }
.empty .ic svg { width: 26px; height: 26px; }
.list { display: grid; }
.list .it { display: flex; gap: 12px; align-items: center; padding: 13px 4px; border-top: 1px solid var(--line); font-size: 14.5px; }
.list .it:first-child { border-top: 0; }
.list .it .grow { flex: 1; min-width: 0; }
.panel { padding: 22px 24px; }
.panel h3 { font-size: 16px; margin-bottom: 12px; font-family: var(--body); font-weight: 700; letter-spacing: 0; }

/* вход */
.login { min-height: 62vh; display: grid; place-items: center; padding: 40px 0; }
.login .card { width: min(440px, 100%); padding: 36px 30px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.login h1 { font-size: 26px; }
.tg-slot { min-height: 46px; display: grid; place-items: center; }

/* модалка и тост */
.mbg { position: fixed; inset: 0; z-index: 50; background: rgba(2, 4, 10, .7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 26px; background: #0d1222; border: 1px solid var(--line-2); border-radius: var(--r); display: grid; gap: 14px; }
.modal h3 { font-size: 20px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); cursor: pointer; background: var(--card-2); }
.opt:has(input:checked) { border-color: rgba(124, 92, 255, .7); background: rgba(124, 92, 255, .1); }
.opt input { accent-color: #7c5cff; width: 18px; height: 18px; margin: 0; }
.opt .grow { flex: 1; } .opt b { font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; padding: 12px 18px; border-radius: 14px; background: #121a30; border: 1px solid var(--line-2); font-size: 14.5px; box-shadow: 0 20px 50px -20px #000; animation: fade .2s; max-width: calc(100% - 32px); }
.toast.ok { border-color: rgba(61,220,151,.45); } .toast.err { border-color: rgba(255,90,95,.5); }
@keyframes fade { from { opacity: 0; } }

/* владелец */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; color: var(--muted); font: 600 14px var(--body); padding: 9px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.tabs button.on { background: rgba(255,255,255,.08); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpis .card { padding: 18px; } .kpis span { font-size: 13px; color: var(--faint); } .kpis b { display: block; font: 600 24px var(--display); margin-top: 4px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-w { overflow-x: auto; }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #070a14; color: var(--ink); font: 15px var(--body); }
.input:focus { outline: none; border-color: rgba(124, 92, 255, .7); }
.field { display: grid; gap: 6px; font-size: 13.5px; color: var(--muted); }
.frow { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr auto; gap: 8px; align-items: center; }
@media (max-width: 760px) { .frow { grid-template-columns: 1fr 1fr; } }
/* грид-элементы не растягиваются длинной командой */
.steps > *, .feat > *, .plans > *, .cab > *, .hero > * { min-width: 0; }
.top #top-cab { margin-left: auto; }
@media (min-width: 761px) { .nav:not([hidden]) + #top-cab { margin-left: 0; } }
.kv .sub { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.lic > *, .panel > *, .modal > * { min-width: 0; }
@media (max-width: 560px) { .key { font-size: 15px; } .key .btn { flex: 1; } .lic { padding: 18px; } }

/* ---------- вход: «жидкое стекло», чёрно-белое ---------- */
.lq { position: relative; min-height: calc(100vh - 63px); display: grid; place-items: center; padding: 32px 16px; overflow: hidden; isolation: isolate; background: #070707; }
.lq-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
.lq-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lq-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.045); filter: blur(60px); z-index: -1; pointer-events: none; }
.lq-card { position: relative; width: min(420px, 100%); border-radius: 28px; padding: 40px 34px 30px; overflow: hidden; touch-action: pan-y;
  background: rgba(23, 23, 23, .6); backdrop-filter: blur(22px) saturate(120%); -webkit-backdrop-filter: blur(22px) saturate(120%);
  border: 1px solid rgba(255,255,255,.2); box-shadow: 0 25px 60px -15px rgba(0,0,0,.9), inset 0 1px 1px rgba(255,255,255,.4);
  filter: url(#lq-water); will-change: filter; user-select: none; -webkit-user-select: none; }
.lq-rip { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lq-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lq-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); box-shadow: inset 0 1px 1px rgba(255,255,255,.55); }
.lq-mark img { filter: grayscale(1) brightness(1.6); }
.lq h1 { font: 300 30px var(--body); letter-spacing: -.02em; margin-bottom: 6px; }
.lq-sub { font-size: 14px; color: #a3a3a3; font-weight: 300; margin-bottom: 30px; max-width: 300px; }
.lq-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 18px; border: 0; border-radius: 14px; cursor: pointer;
  background: #fff; color: #000; font: 600 15px var(--body); box-shadow: 0 4px 25px rgba(255,255,255,.25); transition: background .2s, transform .1s; }
.lq-btn:hover { background: #e5e5e5; } .lq-btn:active { transform: scale(.98); } .lq-btn:disabled { opacity: .55; cursor: default; }
.lq-btn svg { width: 20px; height: 20px; }
.lq-err { margin-top: 12px; font-size: 13px; color: #ff8a8d; }
.lq-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 9px; width: 100%; text-align: left; font-size: 13px; color: #a3a3a3; }
.lq-list li { display: flex; gap: 10px; align-items: center; } .lq-list svg { width: 15px; height: 15px; color: #fff; flex: none; }
.lq-back { margin-top: 26px; font-size: 12.5px; color: #8a8a8a; text-decoration: underline; text-underline-offset: 4px; }
.lq-back:hover { color: #fff; }
@media (max-width: 480px) { .lq-card { padding: 34px 22px 24px; } .lq h1 { font-size: 26px; } }

/* ---------- «Цены» на живом градиенте (velaris.js) ---------- */
.vel { position: relative; border-radius: 32px; overflow: hidden; isolation: isolate; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(80% 70% at 30% 30%, rgba(79,141,255,.45), transparent 60%), radial-gradient(70% 60% at 75% 70%, rgba(106,60,240,.4), transparent 60%), #05070d; }
.vel > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.vel.vel-off > canvas { display: none; }
.vel-in { padding: 64px 28px 56px; display: flex; flex-direction: column; align-items: center; }
.vel-tag { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 99px; font-size: 12.5px; color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vel .sec-h h2 { font-size: clamp(30px, 4.6vw, 52px); }
.vel .sec-h p { color: rgba(255,255,255,.72); }
.vel .plans { width: 100%; }
.vel .plan { background: rgba(6, 10, 22, .42); border-color: rgba(255,255,255,.14); backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 30px 60px -30px rgba(0,0,0,.8); }
.vel .plan.hot { background: rgba(14, 12, 40, .5); border-color: rgba(190, 175, 255, .5); }
.vel .plan .per, .vel .plan ul { color: rgba(255,255,255,.75); }
@media (max-width: 560px) { .vel { border-radius: 24px; margin: 0 -8px; } .vel-in { padding: 44px 14px 18px; } }

/* ---------- 404 на живом градиенте ---------- */
.vel-404 { border-radius: 0; border: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.vel-404.in-app { min-height: calc(100vh - 63px); min-height: calc(100dvh - 63px); }
.nf-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 20px; max-width: 640px; }
.nf-in > .logo { margin-bottom: 18px; font-size: 18px; }
.nf-code { font: 700 clamp(110px, 24vw, 220px)/.9 var(--display); letter-spacing: -.04em; color: transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.25)); -webkit-background-clip: text; background-clip: text; }
.nf-in h1 { font-size: clamp(24px, 4vw, 40px); }
.nf-in p { color: rgba(255,255,255,.72); max-width: 440px; }
.nf-acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.nf-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 560px) { .vel.vel-404 { margin: 0; border-radius: 0; } }

/* ---------- финальный призыв на главной ---------- */
.sec.final { padding-top: 30px; }
.vel-final .vel-in { padding: 72px 24px; text-align: center; }
.vel-final h2 { font-size: clamp(28px, 4.4vw, 50px); max-width: 760px; }
.vel-final p { color: rgba(255,255,255,.75); max-width: 520px; margin: 14px 0 6px; font-size: 17px; }

/* ---------- живое демо ---------- */
.demo { padding: 46px 20px 20px; }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.demo-tabs { display: inline-flex; }
.demo-tabs button { display: inline-flex; align-items: center; gap: 8px; } .demo-tabs svg { width: 17px; height: 17px; }
.demo-stage { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.demo-stage.app { grid-template-columns: auto minmax(0, 340px); justify-content: center; }
.browser { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0d14; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.browser-top { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #10131d; }
.browser-top i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.browser-top span { margin-left: 12px; flex: 1; font: 12.5px ui-monospace, Menlo, monospace; color: var(--faint); background: rgba(255,255,255,.04); border-radius: 8px; padding: 5px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser iframe { display: block; width: 100%; height: min(78vh, 820px); border: 0; background: #0a0a0c; }
.dphone { position: relative; width: 384px; height: 800px; max-height: 82vh; border-radius: 48px; padding: 12px; background: #121622; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 50px 90px -40px rgba(0,0,0,.95), inset 0 0 0 2px #000; }
.dphone iframe { width: 100%; height: 100%; border: 0; border-radius: 36px; background: #020a18; display: block; }
.dphone-notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #000; z-index: 2; pointer-events: none; }
.demo-tips { padding: 22px; display: grid; gap: 14px; position: sticky; top: 84px; }
.demo-tips h3 { font: 700 16px var(--body); letter-spacing: 0; }
.demo-tips ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; color: #c9d1ea; }
.demo-tips li { display: flex; gap: 9px; } .demo-tips li svg { width: 17px; height: 17px; color: var(--ok); flex: none; margin-top: 2px; }
@media (max-width: 900px) {
  .demo-stage, .demo-stage.app { grid-template-columns: minmax(0, 1fr); }
  .demo-tips { position: static; }
  .dphone { width: min(384px, 100%); height: 760px; margin: 0 auto; }
  .browser iframe { height: 72vh; }
}

/* админка во всю ширину (боковое меню видно от 1000px), подсказки — строкой под окном */
.demo-stage.admin { grid-template-columns: minmax(0, 1fr); }
.demo-stage.admin .demo-tips { position: static; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 24px; }
.demo-stage.admin .demo-tips h3 { grid-column: 1 / -1; }
.demo-stage.admin .demo-tips ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.demo-stage.admin .demo-tips p { grid-column: 1; }
.demo-stage.admin .demo-tips .btn { grid-column: 2; grid-row: 2 / span 2; width: auto; }
@media (max-width: 760px) { .demo-stage.admin .demo-tips { grid-template-columns: minmax(0, 1fr); } .demo-stage.admin .demo-tips .btn { grid-column: 1; grid-row: auto; width: 100%; } }

/* разделы админки в демо */
.demo-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.demo-nav button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--muted);
  font: 600 13.5px var(--body); padding: 8px 13px; border-radius: 11px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.demo-nav button svg { width: 16px; height: 16px; }
.demo-nav button:hover { color: var(--ink); background: rgba(255,255,255,.08); }
.demo-nav button.on { color: #fff; border-color: rgba(124, 92, 255, .7); background: rgba(124, 92, 255, .18); }
.shot.phone { height: auto; }

/* защита от копирования (поля ввода, ключ и команда установки — можно) */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, .key span, .cmd code { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }
@media print { body { display: none !important; } }
.demo-nav button.lk { opacity: .62; }
.demo-nav button.lk:hover { opacity: 1; }
