/* Smart VPN — инструкции по подключению.
   Цвета и тени повторяют мини-апп (App/tailwind.config.js, App/src/index.css). */

:root {
  --bg: #05070d;
  --ink-900: #080b16;
  --ink-800: #0a0f1f;
  --ink-700: #0f1830;
  --accent: #2f7dff;
  --accent-soft: #5eb1ff;
  --accent-dim: #1a3aad;
  --incy: #8b6cff;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --text: #eef3ff;
  --muted: rgba(214, 226, 255, 0.64);
  --faint: rgba(214, 226, 255, 0.4);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --glow: 0 0 40px 0 rgba(47, 125, 255, 0.35);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(47, 125, 255, 0.18), transparent 60%),
    radial-gradient(700px 480px at -10% 20%, rgba(94, 177, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #070a14 0%, #05070d 45%, #060812 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font-family: var(--mono); font-size: 0.88em; }
code { padding: 0.1em 0.4em; border-radius: 6px; background: var(--glass-strong); border: 1px solid var(--line); }
b, strong { font-weight: 650; }

.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 13, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--accent-soft), var(--accent) 55%, var(--accent-dim));
  box-shadow: var(--glow);
}
.brand-mark svg { width: 18px; height: 18px; color: #fff; }
.topbar-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.topbar-link:hover { color: var(--text); text-decoration: none; }

/* ---------- Заголовок страницы ---------- */

.hero { padding: 44px 0 20px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--text); text-decoration: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--accent-soft);
  background: rgba(47, 125, 255, 0.12); border: 1px solid rgba(94, 177, 255, 0.25);
}
h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.12; letter-spacing: -0.025em; margin: 16px 0 12px; font-weight: 750; }
h1 .grad { background: linear-gradient(90deg, #fff, var(--accent-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0; }
h2 { font-size: clamp(22px, 4vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 8px; }
h3 { font-size: 19px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.section { padding: 28px 0; }
.section-sub { color: var(--muted); margin: 0 0 20px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center;
  color: var(--text); background: var(--glass-strong); border: 1px solid var(--line-strong);
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { text-decoration: none; background: rgba(255, 255, 255, 0.1); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, .switch button:focus-visible, .card:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }
.btn-primary { background: var(--accent); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: #4a8fff; }
.btn-incy { background: var(--incy); border-color: transparent; color: #fff; box-shadow: 0 0 40px 0 rgba(139, 108, 255, 0.35); }
.btn-incy:hover { background: #9d83ff; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- Переключатель Happ / Incy ---------- */

.switch-wrap { position: sticky; top: 60px; z-index: 15; padding: 10px 16px 12px; margin: 8px -16px 4px;
  background: rgba(5, 7, 13, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.switch-label { font-size: 13px; color: var(--faint); margin: 0 0 8px; }
.switch {
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line);
  max-width: 100%;
}
.switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 120px; padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); background: transparent;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.switch button:hover { color: var(--text); }
.switch button[aria-selected="true"] { color: #fff; background: var(--accent); box-shadow: var(--glow); }
.switch button[data-tab="incy"][aria-selected="true"] { background: var(--incy); box-shadow: 0 0 30px 0 rgba(139, 108, 255, 0.4); }
html:not(.js) .switch-wrap { display: none; }
html.js .pane[hidden] { display: none; }
html:not(.js) .pane + .pane { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.pane-title { display: none; }
html:not(.js) .pane-title { display: block; }

/* ---------- Шаги ---------- */

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.step {
  counter-increment: step; position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center;
  padding: 24px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
}
.step-body { min-width: 0; }
.step-body::before {
  content: "Шаг " counter(step);
  display: inline-block; margin-bottom: 10px; padding: 3px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-soft); background: rgba(47, 125, 255, 0.12);
}
.pane[data-pane="incy"] .step-body::before { color: #b9a6ff; background: rgba(139, 108, 255, 0.14); }
.step-body p { margin: 0 0 10px; color: var(--muted); }
.step-body p:last-child { margin-bottom: 0; }
.step-body p b, .step-body li b { color: var(--text); }
.step-body ul, .step-body ol { margin: 0 0 10px; padding-left: 20px; color: var(--muted); }
.step-body li { margin: 4px 0; }
.step.done { background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(47, 125, 255, 0.08)); border-color: rgba(52, 211, 153, 0.28); }
.step.done .step-body::before { content: "Готово"; color: var(--ok); background: rgba(52, 211, 153, 0.14); }

@media (min-width: 820px) {
  .step { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; padding: 30px 32px; }
  .step.wide-mock { grid-template-columns: minmax(0, 1fr) 380px; }
  .step.no-mock { grid-template-columns: 1fr; }
}

/* переключатель внутри шага: «В приложении Smart VPN | В боте» */
.switch.sm { margin: 2px 0 14px; }
.switch.sm button { min-width: 0; padding: 7px 14px; font-size: 13.5px; }
html:not(.js) .step .switch { display: none; }
html:not(.js) .step .pane + .pane { margin-top: 16px; padding-top: 0; border-top: 0; }
.step .pane-title { font-size: 15px; margin: 0 0 8px; color: var(--text); }
.mock-stack { justify-self: center; width: 100%; }
.substeps { list-style: none; counter-reset: sub; margin: 0 0 10px; padding: 0 !important; display: grid; gap: 8px; }
.substeps li { counter-increment: sub; display: flex; gap: 10px; margin: 0 !important; color: var(--muted); }
.substeps li::before { content: counter(sub); flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--accent-soft); background: rgba(47, 125, 255, 0.14); }

/* ---------- Подсказки ---------- */

.note {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 14px; padding: 12px 14px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.5; color: var(--muted);
  background: rgba(47, 125, 255, 0.08); border: 1px solid rgba(94, 177, 255, 0.2);
}
.note .i { margin-top: 2px; color: var(--accent-soft); }
.note b { color: var(--text); }
.note.warn { background: rgba(251, 191, 36, 0.08); border-color: rgba(251, 191, 36, 0.25); }
.note.warn .i { color: var(--warn); }
.note.ok { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.25); }
.note.ok .i { color: var(--ok); }

.cmd {
  display: flex; align-items: center; gap: 8px; margin: 10px 0; padding: 10px 10px 10px 14px; border-radius: 12px;
  background: #03050a; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: 13px; color: #cfe3ff;
}
.cmd code { flex: 1; min-width: 0; padding: 0; background: none; border: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
.cmd button {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  color: var(--muted); background: var(--glass-strong); border: 1px solid var(--line);
}
.cmd button:hover { color: var(--text); }

/* ---------- Карточки (хаб) ---------- */

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--radius);
  color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(94, 177, 255, 0.4); box-shadow: 0 18px 40px -20px rgba(47, 125, 255, 0.55); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-soft);
  background: rgba(47, 125, 255, 0.12); border: 1px solid rgba(94, 177, 255, 0.2); }
.card-icon .i { width: 24px; height: 24px; }
.card h3 { margin: 0; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }
.card .go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-soft); }
.card.is-current { border-color: rgba(94, 177, 255, 0.55); box-shadow: 0 0 0 1px rgba(94, 177, 255, 0.25), var(--glow); }
.badge {
  position: absolute; top: 18px; right: 18px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff; background: var(--accent);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; color: var(--muted); background: var(--glass-strong); border: 1px solid var(--line); }
.chip.happ { color: var(--accent-soft); border-color: rgba(94, 177, 255, 0.3); }
.chip.incy { color: #b9a6ff; border-color: rgba(139, 108, 255, 0.35); }

.compare { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.compare .card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.compare .card li { margin: 5px 0; }

.flow { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); counter-reset: flow; }
.flow > div { counter-increment: flow; padding: 18px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.flow > div::before { content: counter(flow); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 10px; border-radius: 50%;
  font-weight: 700; font-size: 14px; color: #fff; background: var(--accent); box-shadow: var(--glow); }
.flow b { display: block; margin-bottom: 4px; }
.flow span { font-size: 14px; color: var(--muted); }

/* ---------- Помощь / FAQ ---------- */

.help { padding: 28px 22px; border-radius: 24px; background: linear-gradient(160deg, rgba(47, 125, 255, 0.14), rgba(255, 255, 255, 0.03) 60%); border: 1px solid rgba(94, 177, 255, 0.22); }
@media (min-width: 820px) { .help { padding: 36px 36px; } }
.faq { margin: 18px 0 6px; display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: rgba(5, 7, 13, 0.5); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details > div { padding: 0 16px 14px; color: var(--muted); font-size: 15px; }
.faq details > div p { margin: 0 0 8px; }
.faq details > div p:last-child { margin: 0; }

.footer { padding: 36px 0 48px; color: var(--faint); font-size: 13.5px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer a { color: var(--muted); }

.next-nav { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin-top: 14px; }
.next-nav a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; color: var(--text); background: var(--glass); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; }
.next-nav a:hover { text-decoration: none; border-color: rgba(94, 177, 255, 0.4); }
.next-nav a[aria-current="page"] { display: none; }
.next-nav .i { color: var(--accent-soft); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #fff;
  background: rgba(15, 24, 48, 0.95); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Нарисованные макеты экранов (рендерит assets/js/main.js)
   ===================================================================== */

.mock { justify-self: center; width: 100%; min-width: 0; display: flex; justify-content: center; user-select: none; }
.mock:empty { display: none; }
.m-phone {
  position: relative; width: 226px; max-width: 100%; aspect-ratio: 9 / 17.6; padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #2a3350, #11172a 40%, #0a0e1b);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.m-phone.android { border-radius: 30px; }
.m-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 32px; display: flex; flex-direction: column;
  font-size: 11px; line-height: 1.35; color: #e9efff; background: #0b0f1c;
}
.m-phone.android .m-screen { border-radius: 23px; }
.m-island { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 74px; height: 20px; border-radius: 12px; background: #000; z-index: 3; }
.m-phone.android .m-island { width: 10px; height: 10px; top: 9px; border-radius: 50%; }
.m-status { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px 4px; font-size: 10.5px; font-weight: 600; flex: none; min-height: 32px; }
.m-status-ico { display: flex; gap: 4px; align-items: center; }
.m-status-ico i { display: block; width: 14px; height: 7px; border-radius: 2px; border: 1px solid currentColor; opacity: .85; }
.m-status-ico i:first-child { width: 10px; border: 0; background: linear-gradient(90deg, currentColor 20%, transparent 20% 30%, currentColor 30% 50%, transparent 50% 60%, currentColor 60% 80%, transparent 80%); height: 7px; }
.m-home { flex: none; height: 4px; width: 90px; margin: 6px auto 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.5); }
.m-body { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }

.m-desktop {
  width: 100%; max-width: 420px; border-radius: 12px; overflow: hidden; font-size: 11px; line-height: 1.35; color: #e9efff;
  background: #0b0f1c; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.m-titlebar { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; background: #141a2c; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 10.5px; color: rgba(233, 239, 255, 0.7); }
.m-titlebar .dots { display: flex; gap: 5px; }
.m-titlebar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.m-titlebar .dots i:nth-child(2) { background: #febc2e; }
.m-titlebar .dots i:nth-child(3) { background: #28c840; }
.m-titlebar .t { flex: 1; text-align: center; }
.m-titlebar.win .t { text-align: left; }
.m-titlebar .winctl { display: flex; gap: 12px; color: rgba(233, 239, 255, 0.55); font-size: 11px; }
.m-desk-body { height: 236px; display: flex; overflow: hidden; }

/* общие элементы внутри макетов */
.m-hl { position: relative; z-index: 1; box-shadow: 0 0 0 2px var(--accent-soft), 0 0 14px rgba(94, 177, 255, 0.55) !important; }
.m-hl::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgba(94, 177, 255, 0.55), 0 0 22px rgba(94, 177, 255, 0.75); }
.mock.is-live .m-hl::after { animation: m-pulse 1.8s ease-in-out infinite; will-change: opacity; }
@keyframes m-pulse { 50% { opacity: 1; } }
.m-term .cur { animation: none; }
.mock.is-live .m-term .cur { animation: m-blink 1s steps(1) infinite; }
@media (prefers-reduced-motion: reduce) { .mock.is-live .m-hl::after, .mock.is-live .m-term .cur { animation: none; } html { scroll-behavior: auto; } }
.m-tap { position: absolute; right: -6px; bottom: -8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); border: 3px solid rgba(94, 177, 255, 0.9); box-shadow: 0 0 0 6px rgba(94, 177, 255, 0.25); pointer-events: none; z-index: 2; }
.m-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 10px; font-weight: 600; background: rgba(255, 255, 255, 0.08); text-align: center; }
.m-btn.blue { background: var(--accent); color: #fff; }
.m-btn.pill { border-radius: 999px; }
.m-muted { color: rgba(233, 239, 255, 0.55); }
.m-small { font-size: 9.5px; }
.m-flag { width: 20px; height: 14px; border-radius: 3px; flex: none; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }

/* App Store / Google Play */
.m-store { padding: 4px 14px; display: flex; flex-direction: column; gap: 12px; }
.m-store.light { color: #0b0f1c; }
.m-screen.light { background: #f5f6fa; color: #12172a; }
.m-screen.light .m-muted { color: rgba(18, 23, 42, 0.55); }
.m-screen.light .m-home { background: rgba(0, 0, 0, 0.35); }
.m-search { padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.06); color: rgba(18, 23, 42, 0.5); display: flex; gap: 6px; align-items: center; }
.m-search svg { width: 12px; height: 12px; }
.m-app-row { display: flex; gap: 10px; align-items: center; }
.m-app-icon { width: 54px; height: 54px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; }
.m-app-icon.happ { background: linear-gradient(145deg, #1d2a4a, #0b1226); color: var(--accent-soft); }
.m-app-icon.incy { background: linear-gradient(145deg, #a78bfa, #6d4dff); }
.m-app-icon.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.m-app-name { font-weight: 700; font-size: 13px; }
.m-get { display: inline-block; margin-top: 6px; padding: 4px 14px; border-radius: 999px; font-weight: 700; color: #fff; background: #0a84ff; }
.m-get.gp { border-radius: 8px; background: #0b57d0; padding: 7px 0; margin: 0; text-align: center; }
.m-stats { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.08); text-align: center; }
.m-stats div { flex: 1; }
.m-stats b { display: block; font-size: 12px; }
.m-shots { display: flex; gap: 8px; }
.m-shots i { flex: 1; aspect-ratio: 9 / 16; border-radius: 10px; background: linear-gradient(160deg, #1d2a4a, #0b1226); }
.m-shots.incy i { background: linear-gradient(160deg, #a78bfa, #3b2a8f); }

/* Telegram */
.m-tg-head { display: flex; align-items: center; gap: 8px; padding: 4px 12px 8px; background: #17212b; flex: none; }
.m-tg-head .ava { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent-soft), var(--accent)); }
.m-tg-head .ava svg { width: 14px; height: 14px; color: #fff; }
.m-tg-head b { display: block; font-size: 12px; }
.m-tg-chat { flex: 1; min-height: 0; padding: 10px 8px; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; background: #0e1621; }
.m-bubble { max-width: 92%; padding: 8px 10px; border-radius: 12px 12px 12px 4px; background: #182533; white-space: pre-line; }
.m-bubble b { font-weight: 700; }
.m-bubble .tm { display: block; text-align: right; font-size: 8.5px; color: rgba(233, 239, 255, 0.4); margin-top: 2px; }
.m-ikb { display: grid; gap: 3px; max-width: 92%; }
.m-ikb span { padding: 7px 6px; border-radius: 8px; text-align: center; font-weight: 600; background: rgba(43, 82, 120, 0.55); }
.m-key { font-family: var(--mono); font-size: 9.5px; padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); color: #9fd0ff; word-break: break-all; display: block; margin-top: 4px; }
.m-copied { align-self: center; margin-bottom: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); font-weight: 600; }

/* приложение Smart VPN (мини-приложение) */
.m-tma-head { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 2px 12px 8px; background: #17212b; color: #6ab3f3; font-size: 10.5px; }
.m-tma-head b { color: #e9efff; font-size: 11.5px; }
.m-sva { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column;
  background: radial-gradient(180px 140px at 80% 0%, rgba(47, 125, 255, 0.28), transparent 70%), linear-gradient(180deg, #070a14, #05070d); }
.m-sva-ct { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 12px 12px 10px; text-align: center; }
.m-sva-ttl { font-size: 12px; }
.m-sva-toast { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; margin: 0; }
.m-sva-desk { flex: 1; display: flex; flex-direction: column; max-width: 230px; margin: 0 auto; border-left: 1px solid rgba(255, 255, 255, 0.06); border-right: 1px solid rgba(255, 255, 255, 0.06); }
.m-ring { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: var(--accent-soft);
  border: 3px solid rgba(255, 255, 255, 0.08); border-top-color: var(--accent-soft); border-right-color: var(--accent-soft); }
.m-dots { display: flex; gap: 3px; }
.m-dots i { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); }
.m-dots i.on { width: 16px; background: var(--accent-soft); }
.m-copyfield { width: 100%; display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: 12px; text-align: left; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); }
.m-copyfield .lb { font-size: 9px; color: rgba(233, 239, 255, 0.55); }
.m-copyfield code { display: block; padding: 0; border: 0; background: none; font-size: 9.5px; color: #9fd0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-copyfield .cp { width: 24px; height: 24px; flex: none; border-radius: 8px; display: grid; place-items: center; color: var(--accent-soft); background: rgba(47, 125, 255, 0.2); }
.m-copyfield .cp svg, .m-btn svg { width: 12px; height: 12px; }

/* Happ — по реальному экрану: фиолетовый фон, «⚙» и «+» сверху, группа подписки с трафиком и сроком */
.hp { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 8px; overflow: hidden; color: #fff;
  background: radial-gradient(220px 160px at 90% 75%, rgba(120, 90, 255, 0.35), transparent 70%), linear-gradient(180deg, #2a1f7d 0%, #221a6a 45%, #1d1760 100%); }
.hp-top { display: flex; justify-content: space-between; align-items: center; }
.hp-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.hp-ic svg { width: 18px; height: 18px; }
.hp-mid { display: flex; justify-content: center; padding: 2px 0; }
.hp-power { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4b3fc9, #2a1f8f);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.04), 0 0 0 14px rgba(120, 100, 255, 0.06); }
.hp-power span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #4a3fd0, #3a2fb8); }
.hp-power svg { width: 24px; height: 24px; color: #1c1458; stroke-width: 2.6; }
.hp-power.on { box-shadow: 0 0 0 7px rgba(140, 120, 255, 0.2), 0 0 32px rgba(140, 120, 255, 0.65); }
.hp-power.on svg { color: #fff; }
.hp-hide { text-align: right; font-size: 9.5px; color: rgba(255, 255, 255, 0.6); }
.hp-state { text-align: center; font-size: 11px; font-weight: 700; color: #7cf0b5; }
.hp-empty { padding: 14px 10px; text-align: center; color: rgba(255, 255, 255, 0.6); }
.hp-group { border-radius: 14px; overflow: hidden; background: rgba(40, 32, 120, 0.78); border: 1px solid rgba(255, 255, 255, 0.06); }
.hp-gh { display: flex; align-items: center; gap: 4px; padding: 7px 8px; }
.hp-gh .t { flex: 1; min-width: 0; }
.hp-gh b { display: block; font-size: 12.5px; }
.hp-gh .t span { display: block; font-size: 7.5px; color: rgba(255, 255, 255, 0.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev-d { flex: none; width: 6px; height: 6px; margin: 0 3px 3px 1px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); }
.hp-mini { flex: none; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 7px; letter-spacing: -1px; }
.hp-mini svg { width: 12px; height: 12px; }
.hp-info { display: flex; align-items: center; gap: 5px; padding: 5px 8px; font-size: 7.5px; white-space: nowrap; background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid rgba(255, 255, 255, 0.06); }
.hp-info svg { flex: none; width: 10px; height: 10px; }
.hp-info svg:last-child { color: #6c8cff; }
.hp-info .bar { flex: 1; padding: 1px 3px; text-align: center; border-radius: 4px; border: 1px solid rgba(255, 255, 255, 0.5); background: #140f45; }
.hp-row { position: relative; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-top: 1px solid rgba(255, 255, 255, 0.05); }
.hp-row.sel { background: rgba(255, 255, 255, 0.07); box-shadow: inset 2px 0 0 #fff; }
.hp-row .nm { flex: 1; min-width: 0; }
.hp-row .nm b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-row .nm span { display: block; font-size: 7.5px; color: rgba(255, 255, 255, 0.45); }
.hp-row .chev { width: 5px; height: 5px; border-right: 1.2px solid rgba(255, 255, 255, 0.5); border-top: 1.2px solid rgba(255, 255, 255, 0.5); transform: rotate(45deg); }
.hp-row .ping { font-size: 8.5px; font-weight: 700; color: #7cf0b5; }
.hp-globe { flex: none; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.25); }
.hp-globe svg { width: 13px; height: 13px; }
.hp-desk { flex-direction: row; gap: 10px; padding: 8px; }
.hp-l { width: 40%; flex: none; display: flex; flex-direction: column; gap: 6px; }
.hp-l .hp-mid { flex: 1; align-items: center; }
.hp-r { flex: 1; min-width: 0; }
.hp-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; gap: 4px; padding: 10px 10px 18px; border-radius: 18px 18px 0 0;
  background: #2c2390; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5); }
.hp-sheet .grab { width: 34px; height: 4px; margin: 0 auto 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.3); }
.hp-sheet .opt, .hp-menu span { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-weight: 600; background: rgba(255, 255, 255, 0.08); }
.hp-sheet svg, .hp-menu svg { width: 14px; height: 14px; color: #a99cff; }
.hp-menu { position: absolute; z-index: 4; top: 38px; left: 12px; width: 58%; display: grid; gap: 3px; padding: 5px; border-radius: 12px; background: #2c2390; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6); }

/* INCY — по реальному экрану: тёмно-зелёный фон, лаймовые акценты, «Добавить / Вставить / QR» и нижние вкладки */
.in { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 2px 10px 6px; overflow: hidden; color: #e8efe4;
  background: radial-gradient(200px 160px at 50% 30%, rgba(90, 140, 40, 0.18), transparent 70%), linear-gradient(180deg, #132016, #0c140e 60%, #0a110c); }
.in-head { display: flex; align-items: center; gap: 6px; padding: 2px; }
.in-head b { font-size: 16px; font-weight: 900; letter-spacing: 0.02em; color: #b8e04a; }
.in-head .v { flex: 1; font-size: 8.5px; color: rgba(232, 239, 228, 0.5); }
.in-gl { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.in-gl svg { width: 13px; height: 13px; color: rgba(232, 239, 228, 0.75); }
.in-gl.sm { width: 22px; height: 22px; border-radius: 50%; }
.in-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 4px; }
.in-power { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: #1a2a1c;
  box-shadow: 0 0 0 2px rgba(150, 200, 60, 0.35), 0 0 0 9px rgba(26, 42, 28, 0.8); }
.in-power span { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #223324; }
.in-power svg { width: 26px; height: 26px; color: rgba(232, 239, 228, 0.65); stroke-width: 2.6; }
.in-power.on { box-shadow: 0 0 0 2px #b8e04a, 0 0 26px rgba(184, 224, 74, 0.55); }
.in-power.on span { background: #2f4a1f; }
.in-power.on svg { color: #d9ff7a; }
.in-hint { text-align: center; font-size: 10px; color: rgba(232, 239, 228, 0.7); }
.in-hint.on { font-weight: 700; color: #b8e04a; }
.in-card { display: grid; gap: 3px; padding: 6px 6px 4px; border-radius: 14px; border: 1px solid rgba(184, 224, 74, 0.15); background: rgba(20, 32, 22, 0.9); }
.in-meta { display: flex; align-items: center; gap: 5px; padding: 2px 3px 4px; font-family: var(--mono); font-size: 7.5px; white-space: nowrap; color: rgba(232, 239, 228, 0.55); }
.in-meta .bar { flex: 1; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.in-row { position: relative; display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: 10px; border: 1px solid transparent; }
.in-row.sel { border-color: rgba(184, 224, 74, 0.55); background: rgba(184, 224, 74, 0.08); }
.in-row .nm { flex: 1; min-width: 0; }
.in-row .nm b { display: block; font-size: 10.5px; font-weight: 600; }
.in-row .nm span { display: block; font-size: 7.5px; color: rgba(232, 239, 228, 0.5); }
.in-row em { font-style: normal; color: #b8e04a; }
.in-row .nm i { font-style: normal; color: #e6c84a; }
.in-row .ping { font-size: 8.5px; font-weight: 700; color: #b8e04a; }
.in-empty { padding: 8px; text-align: center; color: rgba(232, 239, 228, 0.5); }
.in-actions { display: flex; gap: 5px; }
.in-actions span { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 6px; border-radius: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.06); }
.in-actions span.sq { flex: none; width: 34px; }
.in-actions svg { width: 12px; height: 12px; color: #b8e04a; }
.in-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px; border-radius: 999px; font-size: 8px; text-align: center; color: rgba(232, 239, 228, 0.65);
  background: rgba(30, 46, 32, 0.95); border: 1px solid rgba(184, 224, 74, 0.12); }
.in-tabs span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; border-radius: 999px; }
.in-tabs span.on { color: #fff; background: rgba(184, 224, 74, 0.18); }
.in-tabs svg { width: 12px; height: 12px; }
.in-tabs .on svg { color: #b8e04a; }
.in-desk { flex-direction: row; gap: 10px; padding: 8px; }
.in-l { width: 40%; flex: none; display: flex; flex-direction: column; gap: 6px; }
.in-l .in-mid { flex: 1; justify-content: center; }
.in-r { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px; }

/* системные окна поверх приложений */
.m-dim { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, 0.5); }
.m-alert { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78%; border-radius: 14px; background: rgba(40, 44, 58, 0.97); text-align: center; overflow: hidden; color: #e9efff; }
.m-alert .tx { padding: 14px 12px 12px; }
.m-alert .tx b { display: block; margin-bottom: 4px; font-size: 11.5px; }
.m-alert .bt { display: flex; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.m-alert .bt span { flex: 1; padding: 9px 4px; color: #4ea1ff; font-weight: 600; }
.m-alert .bt span + span { border-left: 1px solid rgba(255, 255, 255, 0.12); }
.m-alert.android { border-radius: 18px; text-align: left; background: #232a3d; }
.m-alert.android .tx { padding: 16px 16px 8px; }
.m-alert.android .bt { border: 0; justify-content: flex-end; gap: 4px; padding: 0 10px 10px; }
.m-alert.android .bt span { flex: none; border: 0 !important; padding: 6px 10px; border-radius: 999px; color: #a8c7ff; }
.m-desktop .m-alert { width: 56%; }

/* установщики */
.m-install { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 16px; gap: 10px; }
.m-install .hd { display: flex; gap: 12px; align-items: center; }
.m-progress { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.m-progress i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); border-radius: 4px; }
.m-install .ft { display: flex; justify-content: flex-end; gap: 6px; }
.m-install .ft span { padding: 5px 14px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); font-weight: 600; }
.m-install .ft span.blue { background: var(--accent); color: #fff; }
.m-dmg { flex: 1; display: flex; align-items: center; justify-content: space-around; padding: 20px; background: radial-gradient(circle at 50% 40%, #1a2440, #0b0f1c); }
.m-dmg .it { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 600; }
.m-folder { width: 54px; height: 44px; border-radius: 6px 6px 8px 8px; background: linear-gradient(180deg, #67b2ff, #2f7dff); position: relative; display: grid; place-items: center; }
.m-folder::before { content: ""; position: absolute; top: -6px; left: 4px; width: 20px; height: 8px; border-radius: 3px 3px 0 0; background: #67b2ff; }
.m-folder svg { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.85); }
.m-arrow svg { width: 40px; height: 20px; color: rgba(233, 239, 255, 0.5); }
.m-term { flex: 1; padding: 10px 12px; font-family: var(--mono); font-size: 10px; line-height: 1.6; background: #05070d; color: #cfe3ff; white-space: pre-wrap; word-break: break-all; overflow: hidden; }
.m-term .p { color: var(--ok); }
.m-term .c { color: rgba(207, 227, 255, 0.45); }
.m-term .cur { display: inline-block; width: 6px; height: 11px; vertical-align: -2px; background: #cfe3ff; }
@keyframes m-blink { 50% { opacity: 0; } }

/* iOS «Настройки» */
.m-ios { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #000; padding: 0 10px; gap: 10px; overflow: hidden; }
.m-ios .big { font-size: 20px; font-weight: 800; padding: 0 4px; }
.m-ios-list { border-radius: 11px; background: #1c1c1e; overflow: hidden; }
.m-ios-list .r { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.m-ios-list .r + .r { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.m-ios-list .r .nm { flex: 1; min-width: 0; }
.m-ios-list .r .v { color: rgba(235, 235, 245, 0.5); }
.m-ios-list .r .chev { width: 6px; height: 6px; border-right: 1.5px solid rgba(235, 235, 245, 0.35); border-top: 1.5px solid rgba(235, 235, 245, 0.35); transform: rotate(45deg); }
.m-ios-list .r .ok { color: #0a84ff; font-weight: 700; }
.m-ios-list .r.link .nm { color: #0a84ff; }
.m-ios-ico { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; }
.m-ios-ico svg { width: 12px; height: 12px; color: #fff; }
.m-ios-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: linear-gradient(145deg, #8e8e93, #48484a); flex: none; }
.m-ios-cap { font-size: 9.5px; color: rgba(235, 235, 245, 0.5); padding: 0 6px; margin-top: -4px; }
.m-field { display: flex; flex-direction: column; gap: 1px; }
.m-field span { font-size: 9px; color: rgba(235, 235, 245, 0.5); }
.m-ios .navrow { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; color: #0a84ff; font-weight: 600; }
.m-ios .navrow b { color: #fff; }
.m-done-ico { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 20px auto 4px; background: rgba(52, 211, 153, 0.15); color: var(--ok); }
.m-done-ico svg { width: 28px; height: 28px; }

/* веб-интерфейсы роутеров */
.m-web { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #f3f5f9; color: #1f2937; }
.m-web .bar { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: #1f2a3c; color: #fff; font-weight: 700; }
.m-web .bar .mn { font-weight: 500; opacity: .7; font-size: 10px; }
.m-web .ct { flex: 1; padding: 10px 12px; display: flex; flex-direction: column; gap: 7px; }
.m-web h5 { margin: 0; font-size: 12px; }
.m-web .tabs { display: flex; gap: 2px; border-bottom: 1px solid #d6dbe4; }
.m-web .tabs span { padding: 4px 8px; border-radius: 5px 5px 0 0; color: #6b7280; }
.m-web .tabs span.on { background: #fff; color: #1f2937; font-weight: 700; border: 1px solid #d6dbe4; border-bottom-color: #fff; margin-bottom: -1px; }
.m-web .fr { display: grid; grid-template-columns: 38% 1fr; gap: 8px; align-items: center; }
.m-web .fr label { color: #4b5563; text-align: right; }
.m-web .in { padding: 4px 6px; border-radius: 4px; background: #fff; border: 1px solid #cbd2dd; font-family: var(--mono); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-web .sw { width: 26px; height: 14px; border-radius: 999px; background: #22c55e; position: relative; }
.m-web .sw::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.m-web .bt { display: flex; justify-content: flex-end; gap: 6px; margin-top: auto; }
.m-web .bt span { padding: 5px 10px; border-radius: 4px; background: #e5e7eb; font-weight: 600; }
.m-web .bt span.blue { background: #2563eb; color: #fff; }
.m-web.keenetic { background: #f6f7f9; }
.m-web.keenetic .bar { background: #fff; color: #111827; border-bottom: 1px solid #e5e7eb; }
.m-web .cmp { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; }
.m-web .cmp .nm { flex: 1; }
.m-web .chk { width: 13px; height: 13px; border-radius: 3px; border: 1.5px solid #9ca3af; display: grid; place-items: center; }
.m-web .chk.on { background: #2563eb; border-color: #2563eb; }
.m-web .chk.on::after { content: ""; width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.m-web .m-hl { box-shadow: 0 0 0 2px #2563eb, 0 0 14px rgba(37, 99, 235, 0.55) !important; }
.m-web .m-hl::after { display: none; }

@media (max-width: 420px) {
  .hero { padding-top: 30px; }
  .lead { font-size: 16.5px; }
  .step { padding: 22px 16px; }
  .switch { display: grid; width: 100%; }
  .switch button { min-width: 0; padding: 9px 10px; }
  .m-phone { width: 220px; }
}
