:root {
  --bg: #070b16;
  --alt: #0b1220;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #1e293b;
  --brand: #3b82f6;
  --brand-dark: #60a5fa;
  --card: #0f172a;
  --grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --flow-card: #111a2e;
  --flow-line: #334155;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 10px 12px; color: var(--text); text-decoration: none; border-radius: 8px; }
.menu a:hover { background: var(--alt); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 10px; background: var(--grad); color: #fff; font-weight: 600; text-decoration: none; border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.12); }
.btn-small { min-height: 40px; padding: 0 16px; }
.btn-big { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); filter: none; }
.hero { position: relative; overflow: hidden; padding: 56px 0 96px; text-align: center; }
.hero::before { content: ""; position: absolute; left: 50%; top: -120px; width: 760px; max-width: 100%; height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(99, 102, 241, .32), transparent); pointer-events: none; }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(34px, 6.5vw, 64px); line-height: 1.06; letter-spacing: -.03em; max-width: 820px; margin: 0 auto 18px; background: linear-gradient(180deg, #fff, #94a3b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead, .hero .actions { margin-left: auto; margin-right: auto; justify-content: center; }
h1 { font-size: clamp(30px, 6vw, 48px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.lead { font-size: clamp(17px, 2.5vw, 20px); color: var(--muted); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 0; }
.section { padding: 56px 0; }
.section-sub { color: var(--muted); margin: -8px 0 32px; }
.center { text-align: center; }
.alt { background: var(--alt); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card p { margin: 0; color: var(--muted); }
.tariff .price { font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.tariff p { margin-bottom: 8px; }
.tariffs { row-gap: 0; }
/* One row per part (name, price, yearly price, limit, button), shared by the cards of a line: the same parts stand level even when a text wraps or a card has no yearly price. */
.tariff { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 16px; }
.tariff p:last-of-type { margin-bottom: 20px; }
.tariff .btn { align-self: end; justify-self: start; }
.steps { padding-left: 20px; display: grid; gap: 12px; margin: 16px 0 0; }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 24px; }
.faq p { margin: 10px 0 0; color: var(--muted); }
.cta { text-align: center; }
.cta .lead, .cta .actions { margin-left: auto; margin-right: auto; justify-content: center; }
.post-item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-item h2 { font-size: 22px; margin: 0 0 4px; }
.post-item h2 a { color: var(--text); text-decoration: none; }
.post-item h2 a:hover { color: var(--brand); }
.article h2 { margin-top: 32px; }
.article ul { padding-left: 22px; }
.article li { margin: 6px 0; }
.pager { display: flex; justify-content: space-between; margin-top: 24px; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot nav a { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 600; text-decoration-color: #6366f1; }
@media (max-width: 640px) {
  .menu a { padding: 10px 6px; }
  .menu a[href="/#features"] { display: none; }
  .top-row { gap: 8px; }
  .brand { font-size: 16px; }
  .hero { padding: 40px 0 96px; }
  .section { padding: 36px 0; }
}
pre { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 14px; line-height: 1.5; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
p code, li code { background: var(--alt); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

/* Общее для демо */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot.o { background: #005bff; }
.dot.w { background: #cb11ab; }
.dot.y { background: #fc0; }
.stage { max-width: 820px; margin: 32px auto 0; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--card), var(--alt)); box-shadow: 0 24px 64px rgba(59, 130, 246, .15); text-align: left; overflow: hidden; }

/* Старт за минуту */
.start { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: opacity .5s, border-color .5s, box-shadow .5s; }
.start.anim .step { opacity: .35; }
.start.anim .step.on { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 130, 246, .15); }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1e293b; font-weight: 700; font-size: 14px; transition: .4s; }
.start.anim .step.on .num { background: var(--grad); }
.start.anim .step.fin .num { background: #34d399; color: #052e2b; }
.step h3 { margin: 0; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.vis { margin-top: auto; min-height: 112px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.key-input { border: 1px solid #334155; border-radius: 10px; padding: 10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; color: var(--muted); min-height: 42px; overflow: hidden; }
.ok-line { color: #34d399; font-weight: 600; font-size: 14px; }
.start.anim .ok-line { opacity: 0; transition: opacity .4s; }
.start.anim .ok-line.on { opacity: 1; }
.merge { position: relative; height: 104px; }
.merge .chip { position: absolute; left: 0; top: 0; transition: transform .8s, opacity .6s; }
.merge .merge-b { transform: translateY(56px); }
.start:not(.anim) .merge .merge-b { opacity: 0; }
.start.anim.merged .merge .merge-a { transform: translateY(28px); }
.start.anim.merged .merge .merge-b { transform: translateY(28px); opacity: 0; }
.chip { background: var(--flow-card); border: 1px solid #334155; border-radius: 12px; padding: 8px 12px; font-size: 14px; white-space: nowrap; }
.switch-row { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.switch { flex: none; width: 52px; height: 28px; border-radius: 99px; background: #334155; position: relative; transition: .4s; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .4s; }
.switch.on { background: #34d399; }
.switch.on::after { left: 27px; }
.start:not(.anim) .switch { background: #34d399; }
.start:not(.anim) .switch::after { left: 27px; }
@media (max-width: 760px) { .start { grid-template-columns: 1fr; } .vis { min-height: 96px; } }

/* Магазины площадок → один остаток */
.stores-title { margin: 48px 0 8px; }
.stores-lead { margin: 0 auto; font-size: clamp(16px, 2.2vw, 18px); }
.stores { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 96px; align-items: center; padding: 28px 28px 64px; }
.st-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.st-col, .st-core, .stores .toast { position: relative; z-index: 1; }
.st-col { display: grid; gap: 14px; }
.st-group { display: grid; gap: 8px; }
.st-mp { font-size: 13px; font-weight: 600; color: var(--muted); }
.st-list { display: grid; gap: 8px; }
.st-shop { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--flow-card); border: 1px solid var(--flow-line); border-radius: 12px; padding: 8px 14px; max-width: 260px; transition: border-color .3s, box-shadow .3s, transform .3s; }
.st-shop span { font-size: 14px; }
.st-shop b { font-variant-numeric: tabular-nums; }
.st-core { background: var(--grad); border-radius: 20px; padding: 22px 30px; text-align: center; transition: transform .3s; }
.st-core small { display: block; opacity: .9; }
.st-core b { display: block; font-size: 48px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hit { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(59, 130, 246, .25); transform: scale(1.04); }
.st-core.hit { border: 0; transform: scale(1.08); }
.wire { fill: none; stroke: #334155; stroke-width: 1.5; stroke-dasharray: 3 6; stroke-linecap: round; }
.wire.hot { stroke: var(--brand); stroke-width: 2.2; stroke-dasharray: 10 8; animation: flow-fwd .5s linear infinite; }
.wire.hot.back { animation-name: flow-back; }
@keyframes flow-fwd { to { stroke-dashoffset: -18; } }
@keyframes flow-back { to { stroke-dashoffset: 18; } }
.pulse { fill: var(--brand); filter: drop-shadow(0 0 6px var(--brand)); }
.stores .toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 8px); color: var(--text); padding: 8px 0; opacity: 0; transition: .35s; white-space: nowrap; font-weight: 600; font-size: 17px; }
.stores .toast.on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) {
  .stores { grid-template-columns: 1fr; gap: 72px; padding: 20px 12px 64px; }
  .st-col { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .st-shop { padding: 8px 8px; gap: 4px; font-size: 13px; }
  .st-shop span { font-size: 12px; }
  .st-core { justify-self: center; }
  .st-mp { min-height: 2.7em; font-size: 12px; }
  .stores { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .wire.hot { animation: none; } }

/* Сетка возможностей */
.bento { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); margin: 24px 0 0; }
.bento .card { grid-column: span 2; border-radius: 20px; padding: 24px; }
.bento .card.wide { grid-column: span 4; }
.bento .card.half { grid-column: span 3; }
.example { font-size: 12px; color: var(--muted); }
.big-num { font-size: 40px; font-weight: 700; color: #34d399; line-height: 1.2; margin-top: 8px; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 70px; margin-top: 12px; }
.bars i { flex: 1; background: linear-gradient(#3b82f6, #6366f1); border-radius: 4px; }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; } .bento .card, .bento .card.wide, .bento .card.half { grid-column: auto; } }

.hint { color: var(--muted); font-size: 14px; margin: 16px auto 0; max-width: 640px; }
.center-actions { justify-content: center; }
.solution { margin-left: auto; margin-right: auto; }
.pains { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) { .pains { grid-template-columns: 1fr; } }
.pain { border-color: rgba(248, 113, 113, .35); }
.pain h3 { color: #fca5a5; margin-top: 0; }
.benefits { display: grid; gap: 16px; grid-template-columns: repeat(6, 1fr); margin: 24px 0; }
.benefit { grid-column: span 2; border-radius: 20px; padding: 24px; }

.benefit h3 { margin: 12px 0 8px; }
.benefit .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-weight: 700; font-size: 14px; }
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 24px; }
.fact { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; text-align: center; display: grid; gap: 8px; }
.fact b { font-size: 40px; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { color: var(--muted); font-size: 15px; }
.guarantees { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.guarantee h3 { margin-top: 0; }
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .benefits { grid-template-columns: 1fr; }
  .benefit { grid-column: auto; }
}
@media (max-width: 640px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(7, 11, 22, .92); border-top: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .sticky-cta .btn { width: 100%; }
  body:has(.sticky-cta) .foot { padding-bottom: 88px; }
}
.more { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 8px 0 0; }
.more li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.more { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 8px 0 0; }
.more li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.restock { display: grid; gap: 16px; grid-template-columns: 1.4fr 1fr; align-items: start; margin-top: 24px; }
.restock-list { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.restock-list h3 { margin: 0 0 6px; }
.restock-demo { border-radius: 20px; padding: 24px; }
.restock-demo h3 { margin: 4px 0 12px; }
.restock-demo dl { margin: 0; display: grid; gap: 8px; }
.restock-demo dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.restock-demo dt { color: var(--muted); }
.restock-demo dd { margin: 0; font-weight: 600; text-align: right; }
.restock-demo .hot dd { color: #34d399; }
.restock-demo .state { margin: 14px 0 0; color: #fbbf24; font-weight: 600; }
@media (max-width: 820px) { .restock { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .restock-list { grid-template-columns: 1fr; } }
.hero-more { margin-top: 28px; }
.overview { display: grid; gap: 12px; grid-template-columns: repeat(5, 1fr); margin-top: 24px; }
.tile { display: grid; gap: 4px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s; }
.tile:hover { border-color: var(--brand); transform: translateY(-2px); }
.tile b { font-size: 17px; }
.tile span { color: var(--muted); font-size: 14px; }
@media (max-width: 960px) { .overview { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .overview { grid-template-columns: 1fr; } }
.tariffs-note { margin: 0; max-width: none; font-size: 16px; }
.posts { display: grid; gap: 16px; margin: 24px 0; }
.post-card h2 { margin: 4px 0 8px; font-size: 22px; }
.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--brand-dark); }
.article { max-width: 760px; }
.crumbs { margin-bottom: 8px; font-size: 14px; }
.prose { margin-top: 24px; font-size: 17px; }
.prose h2 { margin: 32px 0 8px; font-size: 24px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.article-cta { margin-top: 40px; }

.landing-faq, .landing-more { margin-top: 40px; }
.landing-more ul { padding-left: 22px; }
.landing-more li { margin: 6px 0; }

.cookie-note { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; max-width: 560px; margin: 0 auto; display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--flow-line); border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, .4); font-size: 14px; color: var(--text); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; flex: 1; }
@media (max-width: 560px) {
  .cookie-note { flex-direction: column; align-items: stretch; }
  body:has(.sticky-cta) .cookie-note { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
mark.todo { background: #facc15; color: #111827; padding: 0 3px; border-radius: 3px; }
.cookie-note .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-note a { color: var(--brand-dark); }
