/* Luviomic — общий стиль сайта. Космическая фиолетовая тема — в цвет приложения
   (глубокий тёмный фон, фиолетовое свечение, нейрон-огонёк за курсором). */
:root {
  /* Aurora Glass — матовое стекло + полярные сияния. Палитра фиолетовая (бренд). */
  --bg: #0b0a1c;
  --bg2: #141230;
  --field: rgba(255,255,255,.05);
  --raise: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.12);
  --line2: rgba(255,255,255,.22);
  --fg: #f2f0ff;
  --muted: #b3add6;
  --faint: #7d78a6;
  --accent: #c4a6ff;          /* светлый фиолетовый акцент */
  --accent2: #8a63ff;         /* свечение/градиент */
  --violet-deep: #6c5ce0;
  --ok: #5ad6a0;
  --err: #ff6b81;
  --grad: linear-gradient(135deg, #c9b0ff, #8a63ff);
  --glass: rgba(255,255,255,.055);      /* базовое матовое стекло */
  --glass2: rgba(255,255,255,.09);      /* стекло поярче (input/raise) */
  --blur: blur(14px) saturate(1.5);
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Огонёк-нейрон, следующий за курсором (assets/neuron.js). Поверх всего, клики не ловит. */
#neuron-glow { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
/* Когда летающий нейрон активен (десктоп) — прячем системную стрелку, чтобы был виден
   только «люмин». Поля ввода оставляем с текстовым курсором, чтобы было удобно печатать. */
body.neuron-on, body.neuron-on a, body.neuron-on button, body.neuron-on .btn,
body.neuron-on label, body.neuron-on summary { cursor: none; }
body.neuron-on input, body.neuron-on textarea, body.neuron-on select { cursor: text; }
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
/* Ambient aurora — полярные сияния на весь экран (фиксированы, за контентом) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 50% at 10% 4%, rgba(120,90,255,.30), transparent 60%),
    radial-gradient(46% 52% at 92% 2%, rgba(210,120,255,.20), transparent 60%),
    radial-gradient(55% 60% at 60% 106%, rgba(80,140,255,.15), transparent 66%);
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: #cdb4ff; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 750; }
p { color: #cfd4ee; }
.muted { color: var(--muted); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Навигация — стеклянная */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,10,28,.55);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.22rem; color: var(--fg); letter-spacing: -.01em; }
.brand .dot {
  width: 15px; height: 15px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #d9c6ff, #7d54ef 70%);
  box-shadow: 0 0 14px #8a6cffcc, 0 0 4px #b58bff;
}
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: #c3cae8; font-size: .92rem; white-space: nowrap; }
.nav-links a:hover { color: var(--fg); }
.nav-links .btn { padding: 10px 15px; font-size: .9rem; }
/* Пунктов в меню много — сворачиваем в «бургер», как только перестаёт помещаться в 1080px */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Кнопки — современные, «парящие», с фиолетовым свечением */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 13px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; position: relative;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.btn-primary {
  background: var(--grad); color: #170a33; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 8px 22px rgba(124,108,255,.36), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn-primary:hover { color: #170a33; transform: translateY(-3px); box-shadow: 0 16px 38px rgba(124,108,255,.55), inset 0 1px 0 rgba(255,255,255,.5); filter: brightness(1.04); }
.btn-primary:active { transform: translateY(-1px); }
.btn-ghost {
  background: rgba(180,146,255,.06); color: var(--fg); border-color: var(--line2);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.btn-ghost:hover { background: rgba(180,146,255,.12); color: var(--fg); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,.3); border-color: var(--accent); }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; border-radius: 15px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; box-shadow: none; }

/* Кнопка скачивания — максимально заметная, фиолетовое свечение и мягкое парение */
.btn-download {
  background: var(--grad); color: #170a33; font-weight: 800; letter-spacing: .01em;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(124,108,255,.5), inset 0 1px 0 rgba(255,255,255,.5);
  animation: floaty 3.4s ease-in-out infinite;
}
.btn-download:hover { color: #170a33; transform: translateY(-4px); box-shadow: 0 20px 50px rgba(124,108,255,.7), inset 0 1px 0 rgba(255,255,255,.6); animation: none; }
.btn-download:active { transform: translateY(-1px); }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .btn-download { animation: none; } }

/* Hero */
.hero { padding: 78px 0 54px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -200px 0 auto 0; height: 520px;
  background: radial-gradient(58% 80% at 50% 0%, rgba(124,108,255,.22), transparent 70%);
  pointer-events: none;
}
.hero h1 span { background: linear-gradient(115deg, #c9b4ff, #8a6cff 55%, #b58bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; max-width: 640px; margin: 18px auto 28px; color: #cdd2ee; text-wrap: pretty; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .sub { margin-top: 16px; font-size: .9rem; }
.hero-eyebrow { font-family: "SF Mono", ui-monospace, Consolas, monospace; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.hero-who { max-width: 640px; margin: 20px auto 0; font-size: .92rem; }
.hero-benefits { list-style: none; padding: 0; margin: 26px auto 0; max-width: 780px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.hero-benefits li { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem;
  color: #dfe3f5; background: rgba(180,146,255,.07); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; }
.hero-benefits .b-ic { font-size: .95rem; filter: saturate(1.1); }

/* Демо-окно */
.demo {
  margin: 46px auto 0; max-width: 760px;
  background: rgba(255,255,255,.05); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 40px 90px rgba(20,10,60,.55), 0 0 0 1px rgba(160,120,255,.1), 0 0 70px -20px rgba(150,110,255,.5);
}
.demo .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.demo .bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.demo .bar i:nth-child(1){background:#ff5f57;} .demo .bar i:nth-child(2){background:#febc2e;} .demo .bar i:nth-child(3){background:#28c840;}
.demo .body { padding: 26px; font-size: 1.05rem; }
.demo .you { color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.demo .you svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; flex: 0 0 auto; margin-top: 3px; }
.demo .typed { color: var(--fg); border-left: 3px solid var(--accent); padding-left: 13px; margin-top: 14px; }

/* Секции */
section { padding: 66px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 40px; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line2); box-shadow: 0 20px 44px -24px rgba(124,108,255,.6); }
.card .ic {
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(181,139,255,.22), rgba(124,108,255,.05));
  border: 1px solid rgba(181,139,255,.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.card .ic svg { width: 24px; height: 24px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.16rem; }
.card p { color: #c3c9e6; font-size: .98rem; margin: 0; }

/* Шаги */
.steps { counter-reset: s; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 16px 0; }
.step .num { counter-increment: s; flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(181,139,255,.18), rgba(124,108,255,.04));
  border: 1px solid rgba(181,139,255,.3); display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.step .num::before { content: counter(s); }

/* Цены */
.prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media (max-width: 860px){ .prices { grid-template-columns: 1fr; } }
.price {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price:hover { transform: translateY(-4px); }
.price.featured { border-color: rgba(181,139,255,.5); box-shadow: 0 0 0 1px rgba(181,139,255,.4), 0 26px 70px -30px rgba(124,108,255,.7); }
.price .tag { position: absolute; top: -12px; left: 28px; background: var(--grad); color: #170a33; font-size: .75rem; font-weight: 800; padding: 4px 12px; border-radius: 20px; box-shadow: 0 6px 16px rgba(124,108,255,.4); }
.price h3 { font-size: 1.3rem; }
.price .amount { font-size: 2.2rem; font-weight: 800; margin: 6px 0; }
.price .amount small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.price li { padding: 6px 0; color: #cbd0ea; }
.price li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.packs { margin-top: 26px; }
.packs table { width: 100%; border-collapse: collapse; }
.packs td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.packs tr td:last-child { text-align: right; font-weight: 700; color: var(--accent); }

/* FAQ */
details { background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); border-radius: 13px; padding: 0 18px; margin-bottom: 12px; transition: border-color .2s ease; }
details[open] { border-color: var(--line2); }
details summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.2em; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 16px; margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0; color: var(--muted); background: linear-gradient(180deg, transparent, rgba(124,108,255,.04)); }
footer .cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer strong { color: var(--fg); display: block; margin-bottom: 8px; font-size: .95rem; }
footer a { color: #b8c0e0; display: block; padding: 4px 0; font-size: .94rem; }
footer a:hover { color: var(--accent); }
footer .small { font-size: .85rem; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
footer .small a { display: inline; }

/* Юридические/док-страницы */
.doc { padding: 52px 0 72px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: 2.1rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc h3 { font-size: 1.1rem; margin-top: 1.5em; }
.doc p, .doc li { color: #cdd2ec; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .meta { color: var(--muted); font-size: .9rem; margin-bottom: 30px; }
.doc .toc { background: var(--bg2); border: 1px solid var(--line); border-radius: 13px; padding: 18px 22px; margin: 24px 0; }
.doc .toc a { display: block; padding: 3px 0; }
.placeholder { background: rgba(181,139,255,.15); color: var(--accent); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.note { background: rgba(124,108,255,.07); border-left: 3px solid var(--accent2); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }

/* Кабинет / формы */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.panel {
  background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 20px 50px -30px rgba(124,108,255,.5);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 12px 14px; background: var(--field); border: 1px solid var(--line);
  border-radius: 11px; color: var(--fg); font-size: 1rem; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,139,255,.18); }
.msg { padding: 10px 14px; border-radius: 9px; font-size: .92rem; margin: 12px 0; display: none; }
.msg.show { display: block; }
.msg.err { background: rgba(255,107,129,.12); color: var(--err); }
.msg.ok { background: rgba(90,214,160,.12); color: var(--ok); }
.balance-big { font-size: 2.6rem; font-weight: 800;
  background: linear-gradient(120deg, #c9b4ff, #8a6cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.hidden { display: none !important; }
.usage-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.usage-table th, .usage-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.usage-table th { color: var(--muted); font-weight: 600; }
.buy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 8px; }
@media (max-width: 560px){ .buy-grid { grid-template-columns: 1fr; } }
.buy-card { background: var(--field); border: 1px solid var(--line); border-radius: 13px; padding: 16px; transition: transform .18s ease, border-color .18s ease; }
.buy-card:hover { transform: translateY(-3px); border-color: var(--line2); }
.buy-card .p { font-size: 1.3rem; font-weight: 800; }

/* Подвал: способы оплаты (бейдж ЮKassa + методы) */
.pay { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 18px 0 4px; }
.pay .lbl { color: var(--muted); font-size: .88rem; margin-right: 4px; }
.pay .yk {
  display: inline-flex; align-items: center; gap: 1px; font-weight: 800; font-size: 1rem;
  background: #fff; color: #0a0a0a; padding: 6px 12px; border-radius: 9px; letter-spacing: -.01em;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.pay .yk b { color: #7b57ff; font-weight: 900; font-size: 1.08em; }
.pay .pm {
  font-size: .82rem; font-weight: 700; color: #d6dae6; background: rgba(180,146,255,.07);
  border: 1px solid var(--line); padding: 5px 11px; border-radius: 8px;
}

/* ============================================================================
   СОВРЕМЕННЫЕ УЛУЧШЕНИЯ — анимации, мобильная адаптация, полировка.
   Палитра НЕ меняется (те же переменные). Брендовый люмен сохранён и оживлён.
   ============================================================================ */

html, body { max-width: 100%; overflow-x: clip; }        /* никакого горизонтального скролла */
img, svg, video, canvas { max-width: 100%; }

/* — Живой брендовый ЛЮМЕН (значок-точка): мягкое «дыхание»-пульс свечения — */
@keyframes lumen-pulse {
  0%, 100% { box-shadow: 0 0 12px #8a6cffcc, 0 0 4px #b58bff, 0 0 22px -6px #7c6cff; }
  50%      { box-shadow: 0 0 22px #8a6cffee, 0 0 8px #cdb4ff, 0 0 40px -4px #7c6cff; }
}
@keyframes lumen-halo {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .9;  transform: scale(1.35); }
}
.brand .dot { position: relative; animation: lumen-pulse 3.4s ease-in-out infinite; }
.brand .dot::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(138,108,255,.5), transparent 68%);
  animation: lumen-halo 3.4s ease-in-out infinite;
}
.brand:hover .dot { animation-duration: 1.6s; }

/* — Появление блоков при прокрутке (scroll-reveal). JS добавляет .in — */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-zoom { opacity: 0; transform: scale(.96) translateY(20px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal-zoom.in { opacity: 1; transform: none; }

/* — Плавный вход hero при загрузке — */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .wrap > * { animation: rise-in .8s cubic-bezier(.22,1,.36,1) both; }
.hero .hero-eyebrow { animation-delay: .02s; }
.hero h1          { animation-delay: .08s; }
.hero .lead       { animation-delay: .16s; }
.hero .cta        { animation-delay: .24s; }
.hero .sub        { animation-delay: .30s; }
.hero-benefits    { animation-delay: .36s; }
.hero-who         { animation-delay: .42s; }
.hero .demo       { animation-delay: .50s; }

/* — Живой ореол за hero (медленный дрейф, только свечение, дёшево для GPU) — */
@keyframes aurora-drift {
  0%   { transform: translate3d(-4%, 0, 0) scale(1);   opacity: .9; }
  50%  { transform: translate3d(4%, 2%, 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(-4%, 0, 0) scale(1);   opacity: .9; }
}
.hero::before { animation: aurora-drift 14s ease-in-out infinite; }

/* — Карточки: тонкая линия-акцент сверху проявляется на hover — */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.card:hover::before { transform: scaleX(1); }
.card .ic { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.card:hover .ic { transform: translateY(-2px) scale(1.06); }

/* — Тарифы: мягче тень и подъём популярного — */
.price.featured { transform: translateY(-6px); }
.price.featured:hover { transform: translateY(-10px); }
.hero-benefits li { transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.hero-benefits li:hover { transform: translateY(-2px); border-color: var(--line2); background: rgba(180,146,255,.12); }

/* — Демо-окно: лёгкое парение — */
@keyframes demo-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.demo { animation: demo-float 6s ease-in-out infinite; }
.demo:hover { animation-play-state: paused; }

/* ── Мобильное меню (гамбургер → полноэкранный стеклянный оверлей) ── */
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  background: rgba(180,146,255,.06); border: 1px solid var(--line2);
  transition: background .18s ease, border-color .18s ease;
}
.nav-toggle:hover { background: rgba(180,146,255,.12); border-color: var(--accent); }
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--fg);
  transition: transform .28s cubic-bezier(.22,1,.36,1), opacity .2s ease; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-sheet {
  position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column;
  gap: 6px; padding: calc(80px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  background: rgba(11,10,28,.9); backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px);
  /* visibility НЕ интерполируем: мгновенно на открытии, с задержкой на закрытии */
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), visibility 0s .28s;
}
.nav-sheet.open {
  opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  transition: opacity .28s ease, transform .28s cubic-bezier(.22,1,.36,1), visibility 0s 0s;
}
.nav-sheet a {
  font-size: 1.16rem; font-weight: 650; color: var(--fg); padding: 15px 8px;
  border-bottom: 1px solid var(--line); opacity: 0; transform: translateX(-10px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1), color .15s ease;
}
.nav-sheet.open a { opacity: 1; transform: none; }
.nav-sheet a.btn { border: 1px solid transparent; justify-content: center; margin-top: 10px; border-bottom: 1px solid transparent; }
.nav-sheet a.btn-download, .nav-sheet a.btn-primary { color: #170a33; }

/* ── Тонкая настройка адаптива (mobile-first дополнения) ── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .wrap { height: 60px; }
  section { padding: clamp(40px, 9vw, 66px) 0; }
  .hero { padding: 54px 0 40px; }
  .hero .lead { font-size: 1.06rem; }
  .demo { animation: none; margin-top: 34px; }
  .demo .body { padding: 20px; font-size: .98rem; }
  .price.featured, .price.featured:hover { transform: none; }
  .section-head { margin-bottom: 30px; }
  footer .cols { gap: 28px; }
  .btn-lg { padding: 14px 24px; font-size: 1.02rem; }
  .hero .cta .btn { width: 100%; }         /* крупные кнопки на всю ширину — удобно пальцем */
}
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: clamp(1.9rem, 8vw, 2.4rem); }
  .hero-benefits { gap: 8px; }
  .price .amount { font-size: 1.9rem; }
}

/* — Уважаем «меньше движения»: гасим все декоративные анимации — */
@media (prefers-reduced-motion: reduce) {
  .brand .dot, .brand .dot::after, .hero::before, .demo,
  .hero .wrap > * { animation: none !important; }
  .reveal, .reveal-zoom { opacity: 1 !important; transform: none !important; transition: none !important; }
}
