/* Лендинг MyMythB2B — вариант «Живой кабинет». Те же цвета и шрифт, что в кабинете (styles.css). */
:root {
  --blue: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: rgba(37, 99, 235, 0.14);
  --bg: #f4f7fc;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dfe5ef;
  --line: #eaeef5;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* Фон: точки «сыплются» от центра сверху вниз — как в кабинете */
.bg-dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
  mask-image: radial-gradient(ellipse 60% 90% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 85%);
}
.bg-dots::before {
  content: '';
  position: absolute;
  inset: -26px 0 0;
  background-image: radial-gradient(circle, rgba(37, 99, 235, 0.6) 1.6px, transparent 2.1px);
  background-size: 26px 26px;
  background-position: center top;
  animation: dots-fall 3.5s linear infinite;
  will-change: transform;
}
.bg-dots::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  width: 900px;
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(37, 99, 235, 0.2), transparent);
}
@keyframes dots-fall { to { transform: translateY(26px); } }

main, .nav, .foot { position: relative; z-index: 1; }

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn:hover { background: var(--blue-hover); }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: #c5cfdf; background: #fff; }
.btn.big { height: 50px; padding: 0 26px; border-radius: 12px; font-size: 15px; }
.btn.big:not(.ghost) { box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25); }
.btn.big:hover { transform: translateY(-2px); }

/* Шапка */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 max(24px, calc((100% - 1200px) / 2));
  background: rgba(244, 247, 252, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.82); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; }
.nav-brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; }

/* Общие блоки */
section { max-width: 1248px; margin: 0 auto; padding: 96px 24px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; transform: scale(0.7); } }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 16px 0 12px; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
.section-head p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.muted { color: var(--muted); }

/* Появление при прокрутке (класс js ставит landing.js — без скрипта всё видно сразу) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Первый экран */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero h1 { margin: 22px 0 18px; font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.grad { background: linear-gradient(90deg, #2563eb, #60a5fa 60%, #2563eb); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-cta.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 28px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13.5px; }
.hero-trust b { display: block; margin-bottom: 2px; color: var(--text); font-size: 20px; letter-spacing: -0.02em; }
.hero-visual { position: relative; }
.hero-visual .device { transform: perspective(1600px) rotateY(-9deg) rotateX(4deg); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero-visual:hover .device { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }
.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.float-chip.c1 { left: -36px; bottom: -22px; }
.float-chip.c2 { right: -16px; top: -18px; animation-delay: -2.5s; }
.float-chip .ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Рамка «браузера» и экраны кабинета */
.device {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.device-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.device-bar i:first-child { background: #fca5a5; }
.device-bar i:nth-child(2) { background: #fcd34d; }
.device-bar i:nth-child(3) { background: #86efac; }
.device-bar span { margin: 0 auto; padding: 4px 14px; border-radius: 7px; background: #eef2f8; color: var(--muted); font-size: 12px; transform: translateX(-20px); }
.device-screen { padding: 18px; background: #f6f8fc; }
.screen { display: flex; flex-direction: column; gap: 12px; }

.mk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-screen .mk-top { grid-column: 1 / -1; }
.mk-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mk-label { color: var(--muted); font-size: 12px; font-weight: 500; }
.mk-big { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.mk-sub { color: var(--muted); font-size: 12px; line-height: 1.45; }
.mk-sub b { color: var(--text); }
.mk-plan { font-size: 18px; }
.mk-h { font-size: 18px; font-weight: 700; text-align: center; }
.mk-h.left { display: flex; align-items: center; gap: 10px; text-align: left; }
.mk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  height: 32px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.mk-btn.ghost { background: #fff; color: var(--text); border-color: var(--border); }
.mk-btn.block { align-self: stretch; height: 40px; margin-top: 10px; }
.mk-balance .mk-btn { margin-top: 4px; }
.mk-input {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  font-size: 14px;
  white-space: nowrap;
}
.mk-input.big { height: 48px; font-size: 22px; font-weight: 700; }
.mk-input.otp { justify-content: space-between; gap: 8px; }
.mk-field-label { margin-top: 6px; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 11.5px; font-weight: 600; }
.badge.soon { vertical-align: middle; background: #eef2f8; color: var(--muted); }

/* Значки брендов */
.tag { display: inline-grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.02em; }
.tag.ps { background: #0070d1; }
.tag.xb { background: #107c10; }
.tag.st { background: #1b2838; }
.tag.tg { background: #229ed9; }
.tag.ap { background: #111827; }
.tag.gp { background: #34a853; }
.tag.nt { background: #e60012; }

/* График и топ‑5 */
.bars { display: flex; align-items: flex-end; gap: 5px; height: 82px; margin-top: 6px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: rgba(37, 99, 235, 0.2); transform-origin: bottom; }
.bars i.today { background: var(--blue); }
.top-row { display: grid; grid-template-columns: 26px 1fr auto; grid-template-areas: 'tag name cnt' 'tag bar cnt'; align-items: center; column-gap: 12px; row-gap: 5px; padding: 6px 0; }
.top-row .tag { grid-area: tag; }
.top-name { grid-area: name; font-size: 13px; font-weight: 500; }
.top-bar { grid-area: bar; width: var(--w); height: 5px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), #93c5fd); transform-origin: left; }
.top-row b { grid-area: cnt; font-size: 13px; }
.spend { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.spend + .spend { border-top: 1px solid #f0f3f8; }
.spend span { color: var(--muted); }

/* 01 Вход */
.mk-login { display: flex; flex-direction: column; width: min(320px, 100%); margin: auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.mk-login img { align-self: center; margin-bottom: 8px; border-radius: 10px; }
.type { display: inline-block; white-space: nowrap; }
.t-pass { letter-spacing: 0.1em; }
.t-code { font-family: var(--mono); font-weight: 600; letter-spacing: 0.14em; }
.method { display: flex; flex: none; gap: 4px; }
.method span { padding: 3px 7px; border-radius: 999px; background: #eef2f8; color: var(--muted); font-size: 10.5px; font-weight: 600; }
.method .m-tg { background: var(--blue-soft); color: var(--blue); }
.mk-success { margin-top: 10px; padding: 8px 10px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 600; text-align: center; }

/* 03 Каталог */
.mk-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brand { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 600; }
.mk-brands .brand:first-child { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.mk-brands.wide { gap: 12px; }
.mk-brands.wide .brand { padding: 10px 16px 10px 10px; font-size: 15px; }
.mk-brands.wide .brand:first-child { border-color: var(--line); box-shadow: none; }
.mk-brands.wide .tag { width: 32px; height: 32px; font-size: 11px; }
.mk-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 13px; }
.tr { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; align-items: center; padding: 9px 14px; border-top: 1px solid #f0f3f8; }
.tr.th { border-top: 0; background: #fafbfe; color: var(--muted); font-size: 11.5px; }
.tr.hl { background: rgba(37, 99, 235, 0.05); }
.stepper { display: inline-flex; align-items: center; gap: 8px; }
.stepper i { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-style: normal; color: var(--muted); }
.stepper .tap { border-color: var(--blue); color: var(--blue); }
.stepper .tap.pulse { animation: tap 0.35s ease; }
.stepper b { min-width: 12px; text-align: center; }
@keyframes tap { 40% { transform: scale(0.82); background: var(--blue-soft); } }
.mk-buybar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mk-buybar > span:first-child { display: flex; flex-direction: column; font-size: 12px; }
.mk-buybar > span:first-child b { font-size: 18px; letter-spacing: -0.02em; }

/* 04 Ключи */
.mk-keys { display: flex; flex-direction: column; gap: 8px; }
.key { display: flex; justify-content: space-between; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--mono); font-size: 13.5px; }
.key::after { content: '⧉'; color: var(--muted); font-family: inherit; }
.mk-actions { display: flex; gap: 8px; }
.file-chip { align-self: flex-start; padding: 9px 13px; border: 1px dashed var(--blue); border-radius: 10px; background: #fff; color: var(--blue); font-size: 13px; font-weight: 600; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12); }

/* 05 Пополнение */
.mk-topup { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.chips, .packs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chips span, .packs span { padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chips .on, .packs .on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.mk-method { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; }
.usdt { display: grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #26a17b; color: #fff; font-size: 13px; font-weight: 700; }
.pay-status { display: grid; margin-top: auto; padding-top: 8px; }
.pay-status .st { grid-area: 1 / 1; padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; text-align: center; }
.st.wait { background: #eef2f8; color: var(--muted); opacity: 0; }
.st.done { background: var(--blue-soft); color: var(--blue); }

/* 06 API */
.mk-key { padding: 8px 10px; border-radius: 8px; background: #f4f7fc; font-family: var(--mono); font-size: 13px; }
.code { display: flex; flex-direction: column; gap: 7px; overflow: hidden; padding: 16px 18px; border-radius: 14px; background: #0f172a; color: #e2e8f0; font-family: var(--mono); font-size: 12.5px; }
.ln { display: block; white-space: pre; }
.ln.dim { color: #64748b; }
.c-m { color: #60a5fa; font-weight: 700; }
.c-k { color: #93c5fd; }
.c-n { color: #fbbf24; }
.c-s { color: #86efac; }
.hook { align-self: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 13px; font-weight: 500; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }

/* 07 Поддержка */
.mk-support { flex-direction: row; align-items: center; gap: 12px; }
.mk-support > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; font-size: 14px; }
.mk-support .mk-btn { align-self: center; }
.tg-ico { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #229ed9; color: #fff; font-size: 17px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 16px; font-size: 13.5px; line-height: 1.45; }
.bubble.me { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--blue); color: #fff; }
.bubble.them { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 5px; background: #fff; }

/* Сюжет: шаги и закреплённый экран */
.story-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 72vh; padding: 24px 0; opacity: 0.35; transition: opacity 0.4s; }
.step.on { opacity: 1; }
.step-n { color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; }
.step h3 { margin: 10px 0 12px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.step p { max-width: 480px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.step ul { margin: 18px 0 0; padding: 0; list-style: none; }
.step li { position: relative; padding-left: 28px; font-size: 15px; font-weight: 500; }
.step li + li { margin-top: 10px; }
.step li::before { content: '✓'; position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 11px; font-weight: 700; }
.step-screen { display: none; }
.story-stage { position: sticky; top: calc(50vh - 240px); align-self: start; }
.stage-screens { position: relative; height: 440px; }
.stage-screens .screen { position: absolute; inset: 18px; justify-content: center; opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 0.45s ease, transform 0.45s ease; pointer-events: none; }
.stage-screens .screen.on { opacity: 1; transform: none; }

/* Каталог по разделам */
.cat-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.cat-tab {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.cat-tab:hover { border-color: #c5cfdf; }
/* Иконка раздела — в мягком квадрате; у выбранной вкладки квадрат синий */
.cat-ico { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #eef3fe; color: var(--blue); transition: background 0.2s, color 0.2s, transform 0.2s; }
.cat-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cat-ico .dot { fill: currentColor; stroke: none; }
.cat-tab:hover .cat-ico { transform: scale(1.06); }
.cat-tab.on .cat-ico { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(37, 99, 235, 0.28); }
.cat-tab.on { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cat-tab.on::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue); transform-origin: left; animation: progress 5s linear both; }
.cat-tabs.manual .cat-tab.on::after { animation: none; transform: scaleX(0); }
@keyframes progress { from { transform: scaleX(0); } }
.cat-panels { max-width: 1040px; margin: 0 auto; }
.cat-panel { display: none; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 48px; padding: 40px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06); }
.cat-panel.on { display: grid; animation: fade-up 0.5s ease both; }
.cat-text h3 { margin-bottom: 12px; font-size: 28px; font-weight: 800; letter-spacing: -0.025em; }
.cat-text p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.cat-demo { padding: 22px; border-radius: 16px; background: #f6f8fc; }
.cat-demo .mk-card { gap: 8px; }
.cat-panel.on .brand, .cat-panel.on .packs span, .cat-panel.on .chips span { animation: rise 0.5s ease both; }
.cat-panel.on :is(.brand, .packs span, .chips span):nth-child(2) { animation-delay: 0.08s; }
.cat-panel.on :is(.brand, .packs span, .chips span):nth-child(3) { animation-delay: 0.16s; }
.cat-panel.on :is(.brand, .packs span, .chips span):nth-child(4) { animation-delay: 0.24s; }
.cat-panel.on :is(.brand, .packs span, .chips span):nth-child(5) { animation-delay: 0.32s; }
.cat-panel.on :is(.brand, .packs span, .chips span):nth-child(6) { animation-delay: 0.4s; }
.esim { align-items: center; }
.globe { font-size: 46px; animation: float 4s ease-in-out infinite; }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } }

/* Подписки */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: transform 0.3s, box-shadow 0.3s; }
.plan:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08); }
.plan.top { border: 1.5px solid #f5c451; box-shadow: 0 20px 44px rgba(245, 158, 11, 0.14); }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 11px; border-radius: 999px; background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; font-size: 12px; font-weight: 700; }
.plan-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; color: #fff; }
.plan-icon svg { width: 22px; height: 22px; fill: currentColor; }
.plan-icon.basic { background: #eef1f5; color: #94a3b8; }
.plan-icon.silver { background: linear-gradient(135deg, #e2e8f0, #94a3b8); box-shadow: 0 6px 14px rgba(100, 116, 139, 0.25); }
.plan-icon.gold { background: linear-gradient(135deg, #fde68a, #f59e0b); box-shadow: 0 6px 14px rgba(245, 158, 11, 0.3); }
.plan-name { font-size: 20px; font-weight: 700; }
.plan-price { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.plan ul { flex: 1; margin: 12px 0 20px; padding: 16px 0 0; border-top: 1px solid #eef1f6; list-style: none; font-size: 14.5px; }
.plan li { position: relative; padding-left: 26px; }
.plan li + li { margin-top: 10px; }
.plan li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--blue); font-weight: 700; }
.plan li.no { color: #a0abbb; }
.plan li.no::before { content: '—'; color: #cbd5e1; }
.plan .btn { width: 100%; height: 46px; }

/* Вопросы */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: box-shadow 0.2s, border-color 0.2s; }
.faq details[open] { border-color: #c9d6ee; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.07); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 18px; transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15px; line-height: 1.65; }

/* Финальный призыв */
.final {
  max-width: 1200px;
  margin: 40px auto 96px;
  padding: 72px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #2563eb, #3b82f6 55%, #60a5fa);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 70px rgba(37, 99, 235, 0.28);
}
.final h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.final p { margin-top: 12px; opacity: 0.85; font-size: 17px; }
.final .btn.big { background: #fff; color: var(--blue); box-shadow: none; }
.final .btn.big.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.final .btn.big.ghost:hover { border-color: #fff; }

.foot { padding: 0 24px 40px; color: var(--muted); font-size: 13px; text-align: center; }

/* Анимации экранов: проигрываются, когда экрану добавлен класс .play.
   Без анимации (или при «уменьшить движение») элементы сразу в конечном виде. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.86); } 70% { transform: scale(1.03); } }
@keyframes slide { from { opacity: 0; transform: translateX(-20px); } }
@keyframes press { 45% { transform: scale(0.92); box-shadow: 0 0 0 7px var(--blue-soft); } }
@keyframes fly { from { opacity: 0; transform: translateY(-34px) scale(0.9); } 60% { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes grow-x { from { transform: scaleX(0); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pill-a { 0%, 45% { background: var(--blue-soft); color: var(--blue); } 50%, 95% { background: #eef2f8; color: var(--muted); } }
@keyframes pill-b { 0%, 45% { background: #eef2f8; color: var(--muted); } 50%, 95% { background: var(--blue-soft); color: var(--blue); } }
@keyframes wait-out { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes done-in { 0%, 82% { opacity: 0; transform: scale(0.9); } 100% { opacity: 1; transform: none; } }

.play .a-rise { animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.play .a-pop { animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.play .a-slide { animation: slide 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.play .a-press { animation: press 0.5s ease both; }
.play .a-fly { animation: fly 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.play .bars i { animation: grow 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(0.25s + var(--i, 0) * 45ms); }
.play .top-bar { animation: grow-x 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both; }
.play .d1 { animation-delay: 0.12s; }
.play .d2 { animation-delay: 0.24s; }
.play .d3 { animation-delay: 0.36s; }

/* 01 Вход: печатаем логин, пароль, код; способ 2FA переключается Telegram ↔ Google */
.play .t-login { animation: type 0.8s steps(12) 0.3s both; }
.play .t-pass { animation: type 0.7s steps(12) 1.25s both; }
.play .t-code { animation: type 0.6s steps(7) 2.1s both; }
.play .m-tg { animation: pill-a 4s ease-in-out infinite; }
.play .m-ga { animation: pill-b 4s ease-in-out infinite; }
.play[data-screen='login'] .a-press { animation-delay: 2.9s; }
.play[data-screen='login'] .a-pop { animation-delay: 3.3s; }
/* 03 Каталог: «+» нажимается трижды (скрипт), затем «Купить» */
.play[data-screen='catalog'] .a-press { animation-delay: 2.3s; }
/* 04 Ключи: «Скачать .txt» → файл */
.play[data-screen='keys'] .a-slide { animation-delay: 0.2s; }
.play[data-screen='keys'] .a-slide.d1 { animation-delay: 0.45s; }
.play[data-screen='keys'] .a-slide.d2 { animation-delay: 0.7s; }
.play[data-screen='keys'] .a-rise { animation-delay: 0.9s; }
.play[data-screen='keys'] .a-press { animation-delay: 1.6s; }
.play[data-screen='keys'] .a-fly { animation-delay: 2s; }
/* 05 Пополнение: «Ожидаем оплату…» → «Пополнено» */
.play .st.wait { animation: wait-out 2.8s ease both; }
.play .st.done { animation: done-in 2.8s ease both; }
/* 06 API: запрос печатается, приходит ответ, затем webhook */
.play .code .ln { animation: type 0.8s steps(28) both; }
.play .code .ln:nth-child(1) { animation-delay: 0.5s; }
.play .code .ln:nth-child(2) { animation-delay: 1.3s; }
.play .code .ln:nth-child(3) { animation-delay: 2.2s; animation-duration: 0.5s; }
.play[data-screen='api'] .a-pop { animation-delay: 3s; }
/* 07 Поддержка: сообщения по очереди */
.play .chat .d1 { animation-delay: 0.5s; }
.play .chat .d2 { animation-delay: 1.7s; }
.play .chat .d3 { animation-delay: 2.8s; }

/* Планшет и телефон: экран показывается под каждым шагом */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .hero { gap: 40px; }
  .float-chip.c1 { left: -8px; }
}
@media (max-width: 959px) {
  section { padding: 72px 20px; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual .device, .hero-visual:hover .device { transform: none; }
  .float-chip.c1 { left: 8px; bottom: -18px; }
  .float-chip.c2 { right: 8px; }
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .story-stage { display: none; }
  .step { min-height: 0; padding: 0 0 64px; opacity: 1; }
  .step-screen { display: block; margin-top: 24px; }
  .cat-panel { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; }
}
@media (max-width: 560px) {
  .nav { gap: 12px; height: 60px; padding: 0 16px; }
  .nav-brand span { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { height: 36px; padding: 0 14px; }
  section { padding: 56px 16px; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 16px; }
  .hero-cta .btn.big { flex: 1; }
  .hero-trust { gap: 20px; }
  .device-screen { padding: 12px; }
  .mk-grid, .mk-topup { grid-template-columns: 1fr; }
  .tr { grid-template-columns: 1.4fr 1fr 1.2fr; }
  .tr > span:nth-child(3) { display: none; }
  .key { font-size: 12px; }
  .code { font-size: 11px; padding: 14px; }
  .float-chip { font-size: 12.5px; padding: 9px 12px; }
  .cat-tab { flex: 1 1 auto; gap: 8px; height: 44px; padding: 0 12px 0 6px; font-size: 13px; }
  .cat-ico { width: 28px; height: 28px; border-radius: 8px; }
  .cat-ico svg { width: 16px; height: 16px; }
  .cat-demo { padding: 14px; }
  .final { margin: 24px 16px 64px; padding: 56px 20px; border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
