/* MeHost — единая дизайн-система: сайт, вход, кабинет, админка */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("../fonts/Manrope-Regular.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url("../fonts/Manrope-Medium.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("../fonts/Manrope-Semibold.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("../fonts/Manrope-Bold.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("../fonts/Manrope-ExtraBold.woff2") format("woff2"); }

:root {
  --c-sky: #36d1e9;
  --c-blue: #266bef;
  --c-blue-600: #1f5ad6;
  --c-blue-50: #eef4ff;
  --c-sky-50: #eafbfe;
  --grad: linear-gradient(135deg, #36d1e9 0%, #2b9cf0 50%, #266bef 100%);
  --grad-soft: linear-gradient(135deg, #eafbfe 0%, #eef4ff 100%);
  --bg: #f7f9ff;
  --surface: #ffffff;
  --surface-2: #f1f5fe;
  --text: #081131;
  --text-2: #57699b;
  --text-3: #8a98bd;
  --border: #e1e6f5;
  --border-2: #c7d1ed;
  --accent: #ed8a4f;
  --ok: #17a673;
  --ok-50: #e7f8f1;
  --warn: #d98a0b;
  --warn-50: #fff6e5;
  --err: #e0464e;
  --err-50: #fdeced;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 45, 94, .06);
  --shadow: 0 6px 24px rgba(38, 107, 239, .08), 0 1px 3px rgba(16, 45, 94, .05);
  --shadow-lg: 0 20px 50px rgba(38, 107, 239, .14);
  --container: 1180px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-600); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92em; }
:focus-visible { outline: 3px solid rgba(38, 107, 239, .35); outline-offset: 2px; border-radius: 6px; }

.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-lg { width: 28px; height: 28px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-2); }
.small { font-size: .875rem; }
.center { text-align: center; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ── Логотип ─────────────────────────────────────────── */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text); letter-spacing: -.02em; }
.logo:hover { color: var(--text); }
.logo svg { width: 42px; height: 28px; flex: none; }
.logo b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Кнопки ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent;
  font: 600 .95rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(38, 107, 239, .28); background-size: 140% 140%; background-position: 0 0; }
.btn-primary:hover { color: #fff; background-position: 100% 100%; box-shadow: 0 8px 26px rgba(38, 107, 239, .36); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-light:hover { color: var(--c-blue); border-color: var(--border-2); }
.btn-ghost { background: transparent; color: var(--c-blue); }
.btn-ghost:hover { background: var(--c-blue-50); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; filter: brightness(1.05); }
.btn-danger { background: var(--err-50); color: var(--err); }
.btn-danger:hover { background: var(--err); color: #fff; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ── Формы ───────────────────────────────────────────── */
.field { display: block; margin-bottom: 18px; }
.field > span, .label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .9rem; }
.field > span.row { display: flex; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--border-2); border-radius: 12px; background: #fff;
  font: 500 1rem var(--font); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(38, 107, 239, .12); }
.input.is-invalid { border-color: var(--err); }
.input-code { font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.field-error { margin-top: 6px; color: var(--err); font-size: .85rem; font-weight: 500; }
.hint { margin-top: 6px; color: var(--text-2); font-size: .85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-blue); flex: none; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 48px; }
.password-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--text-3); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.password-toggle:hover { color: var(--c-blue); }

/* ── Уведомления ─────────────────────────────────────── */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: .95rem; margin-bottom: 20px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--ok-50); color: #0e6e4c; border-color: #bfe9d7; }
.alert-error { background: var(--err-50); color: #a5262d; border-color: #f6c5c8; }
.alert-info { background: var(--c-blue-50); color: #1d4fb3; border-color: #d3e1fd; }
.alert-warn { background: var(--warn-50); color: #8a5800; border-color: #f6dfae; }

/* ── Карточки, бейджи, таблицы ───────────────────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.card + .card { margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge-ok { background: var(--ok-50); color: var(--ok); }
.badge-warn { background: var(--warn-50); color: var(--warn); }
.badge-err { background: var(--err-50); color: var(--err); }
.badge-blue { background: var(--c-blue-50); color: var(--c-blue); }
.table-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.empty { text-align: center; padding: 48px 24px; }
.empty-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: var(--grad-soft); color: var(--c-blue); }
.empty-icon .icon { width: 34px; height: 34px; }

/* ══ Публичный сайт ═════════════════════════════════════ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247, 249, 255, .82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--border); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(38, 107, 239, .07); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text); cursor: pointer; place-items: center; }

.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: float 16s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; background: #bdefff; top: -180px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: #cfdcff; bottom: -220px; left: -160px; animation-delay: -8s; }
@keyframes float { from { transform: translate(0, 0) scale(1); } to { transform: translate(-30px, 24px) scale(1.08); } }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.hero-eyebrow .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.hero-eyebrow .dot .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.hero p.lead { font-size: 1.2rem; color: var(--text-2); max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; color: var(--text-2); font-size: .92rem; font-weight: 600; }
.hero-points span { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--ok); width: 18px; height: 18px; stroke-width: 2.4; }

.hero-visual { position: relative; }
.glass { background: rgba(255, 255, 255, .78); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-panel { padding: 22px; }
.hero-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero-panel-head i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
.metric { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.metric + .metric { margin-top: 10px; }
.metric-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--c-blue); flex: none; }
.metric b { display: block; font-size: 1.05rem; }
.metric small { color: var(--text-2); }
.metric .badge { margin-left: auto; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.hero-float { position: absolute; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; }
.hero-float.f1 { left: -36px; bottom: -26px; }
.hero-float.f2 { right: -20px; top: -24px; }
.hero-float .icon { color: var(--ok); }

.domain-check { display: flex; gap: 8px; padding: 8px; background: #fff; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); max-width: 560px; }
.domain-check .input { border: 0; box-shadow: none; min-height: 50px; font-size: 1.05rem; }
.domain-check .input:focus { box-shadow: none; }

.section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--text-2); font-size: 1.1rem; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.feature { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(38, 107, 239, .25); }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); margin: 0; font-size: .95rem; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--border); transition: transform .2s ease, box-shadow .2s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.is-featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: var(--shadow-lg); }
.plan-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 4px 14px; border-radius: 99px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.plan-name { font-size: 1.35rem; font-weight: 800; margin-bottom: 4px; }
.plan-desc { color: var(--text-2); font-size: .92rem; margin-bottom: 22px; min-height: 2.9em; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan-price b { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { color: var(--text-2); font-weight: 600; }
.plan-day { font-size: .88rem; color: var(--text-2); margin-bottom: 22px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: .95rem; }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .icon { width: 18px; height: 18px; color: var(--c-blue); margin-top: 3px; stroke-width: 2.4; }
.plan-list li.is-off { color: var(--text-3); }
.plan-list li.is-off .icon { color: var(--text-3); }
.plan .btn { margin-top: auto; }

.zones { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.zone { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); text-align: center; }
.zone b { display: block; font-size: 1.4rem; font-weight: 800; }
.zone span { font-size: .9rem; color: var(--text-2); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius-lg); background: var(--grad-soft); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--c-blue); font-weight: 800; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.step p { margin: 0; color: var(--text-2); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 0 22px; }
.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--c-blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); padding-bottom: 18px; margin: 0; }

.cta { position: relative; overflow: hidden; border-radius: 28px; padding: 56px; background: var(--grad); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { opacity: .9; font-size: 1.1rem; max-width: 560px; margin: 0 auto 26px; }
.cta .btn-light { border: 0; }
.cta::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .14); }

.page-head { padding: 64px 0 40px; text-align: center; }
.page-head p { color: var(--text-2); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

.site-footer { background: #fff; border-top: 1px solid var(--border); padding: 56px 0 28px; margin-top: 40px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); }
.footer-grid a:hover { color: var(--c-blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .85rem; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.socials a:hover { background: var(--grad); color: #fff; }

/* ══ Вход и регистрация ═════════════════════════════════ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 48px; display: flex; flex-direction: column; }
.auth-side .logo, .auth-side .logo b { color: #fff; -webkit-text-fill-color: #fff; }
.auth-side .logo svg g { stroke: #fff; }
.auth-side h2 { color: #fff; font-size: 2.1rem; margin-top: auto; }
.auth-side p { opacity: .9; font-size: 1.05rem; max-width: 440px; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 auto; display: grid; gap: 12px; font-weight: 600; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li .icon { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.auth-side::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -160px; top: -140px; }
.auth-side::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255, 255, 255, .08); left: -90px; bottom: -100px; }
.auth-side > * { position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 2rem; }
.auth-box .sub { color: var(--text-2); margin-bottom: 28px; }
.auth-foot { margin-top: 24px; text-align: center; color: var(--text-2); font-size: .95rem; }
.auth-mobile-logo { display: none; margin-bottom: 28px; }

/* ══ Кабинет и админка ══════════════════════════════════ */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px; background: #fff; border-right: 1px solid var(--border); overflow-y: auto; }
.sidebar .logo { padding: 4px 10px 22px; }
.side-label { padding: 16px 12px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--text-2); font-weight: 600; font-size: .95rem; }
.side-link:hover { color: var(--text); background: var(--surface-2); }
.side-link.is-active { color: var(--c-blue); background: var(--c-blue-50); }
.side-link.is-active .icon { color: var(--c-blue); }
.side-link .badge { margin-left: auto; }
.side-bottom { margin-top: auto; padding-top: 16px; }
.side-help { padding: 16px; border-radius: 16px; background: var(--grad-soft); font-size: .88rem; color: var(--text-2); }
.side-help b { display: block; color: var(--text); margin-bottom: 4px; }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 32px; background: rgba(247, 249, 255, .85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.topbar h1 { font-size: 1.3rem; margin: 0; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.balance-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--border); font-weight: 700; font-size: .92rem; }
.balance-chip .btn { min-height: 30px; padding: 4px 10px; }
.user-menu { position: relative; }
.user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; font: 600 .92rem var(--font); color: var(--text); }
.user-btn:hover { background: #fff; border-color: var(--border); }
.avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); display: none; }
.dropdown.is-open { display: block; }
.dropdown a, .dropdown button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); font: 500 .92rem var(--font); border: 0; background: none; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--surface-2); }
.dropdown .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown .who { padding: 8px 12px 10px; font-size: .85rem; color: var(--text-2); word-break: break-all; }
.content { padding: 32px; max-width: 1200px; width: 100%; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer; place-items: center; color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.stat-label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: .88rem; font-weight: 600; }
.stat-label .icon { width: 18px; height: 18px; color: var(--c-blue); }
.stat-value { font-size: 1.7rem; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.stat-sub { font-size: .85rem; color: var(--text-2); }
.stat-hero { background: var(--grad); color: #fff; border: 0; box-shadow: 0 12px 30px rgba(38, 107, 239, .25); }
.stat-hero .stat-label, .stat-hero .stat-sub, .stat-hero .stat-label .icon { color: rgba(255, 255, 255, .88); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick a { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border); color: var(--text); font-weight: 700; transition: transform .15s, box-shadow .15s; }
.quick a:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.quick a small { color: var(--text-2); font-weight: 500; }
.quick .metric-icon { width: 46px; height: 46px; }

.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 16px; border-radius: 14px; background: var(--surface-2); font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; font-weight: 600; text-align: center; }
.qr { width: 200px; height: 200px; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--border); }
.secret { word-break: break-all; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-family: ui-monospace, Consolas, monospace; font-weight: 600; letter-spacing: .08em; }
.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list .metric-icon { width: 40px; height: 40px; }

/* Админка — тот же стиль, тёмная боковая панель */
.app-admin .sidebar { background: #0c1838; border-right: 0; }
.app-admin .sidebar .logo { color: #fff; }
.app-admin .side-link { color: #a9b6d9; }
.app-admin .side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.app-admin .side-link.is-active { background: rgba(54, 209, 233, .14); color: #fff; }
.app-admin .side-link.is-active .icon { color: var(--c-sky); }
.app-admin .side-label { color: #5d6f9e; }

/* ── Ошибки ──────────────────────────────────────────── */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.error-code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ══ Адаптив ═══════════════════════════════════════════ */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; }
  .grid-4, .quick, .stats { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: grid; }
  .site-header.is-open .nav { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-header.is-open .nav a { padding: 12px 14px; }
  .header-actions { margin-left: 0; }
  .plans, .grid-3, .steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-logo { display: inline-flex; }
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow-lg); }
  .app.is-menu-open .sidebar { transform: none; }
  .app.is-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 55; background: rgba(8, 17, 49, .35); }
  .menu-btn { display: grid; }
  .topbar { padding: 0 16px; }
  .topbar h1 { font-size: 1.1rem; }
  .content { padding: 20px 16px; }
  .balance-chip .btn { display: none; }
  .user-btn span { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .hero { padding: 40px 0 64px; }
  .hero-float { display: none; }
  .header-actions .btn-light { display: none; }
  .grid-4, .quick, .stats { grid-template-columns: 1fr; }
  .zones { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 40px 22px; }
  .domain-check { flex-direction: column; }
  .card { padding: 18px; border-radius: 18px; }
  .table-wrap { margin: 0 -18px; padding: 0 18px; }
  .balance-chip { padding: 6px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ══ Контент: статьи, блог, документы ══════════════════ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .88rem; color: var(--text-3); margin-bottom: 18px; }
.crumbs a { color: var(--text-2); }
.crumbs span::before { content: "/"; margin-right: 6px; color: var(--border-2); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding: 48px 0 40px; }
.article-wrap.is-single { grid-template-columns: minmax(0, 780px); justify-content: center; }
.article-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-2); font-size: .9rem; margin-bottom: 26px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 16px; height: 16px; }
.article-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 30px; border: 1px solid var(--border); }
.prose { font-size: 1.05rem; line-height: 1.75; color: #1d2a52; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.55rem; margin-top: 1.8em; margin-bottom: .2em; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; margin-bottom: .1em; color: var(--text); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose a { text-decoration: underline; text-decoration-color: rgba(38, 107, 239, .35); text-underline-offset: 3px; }
.prose img { border-radius: 14px; border: 1px solid var(--border); height: auto; margin: 1.4em auto; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { text-align: center; color: var(--text-3); font-size: .88rem; margin-top: -.6em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 4px solid var(--c-sky); background: var(--grad-soft); border-radius: 0 14px 14px 0; color: var(--text-2); }
.prose code { background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: #0c1838; color: #e4ecff; padding: 16px 18px; border-radius: 14px; overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); font-weight: 700; }
.aside-card { position: sticky; top: 92px; }
.aside-card + .aside-card { margin-top: 18px; }
.aside-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .92rem; }
.aside-links a:hover, .aside-links a.is-active { background: var(--c-blue-50); color: var(--c-blue); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); color: var(--text); transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--text); }
.post-cover { aspect-ratio: 16 / 9; background: var(--grad-soft); display: grid; place-items: center; color: var(--c-blue); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .icon { width: 42px; height: 42px; opacity: .6; }
.post-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h3 { font-size: 1.12rem; margin: 0; }
.post-body p { color: var(--text-2); font-size: .93rem; margin: 0; }
.post-date { color: var(--text-3); font-size: .82rem; font-weight: 600; margin-top: auto; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-weight: 700; color: var(--text-2); }
.pager .is-current { background: var(--grad); color: #fff; border: 0; }

.help-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.help-group h2 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.help-list { list-style: none; padding: 0; margin: 0; }
.help-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 600; }
.help-list li:last-child a { border-bottom: 0; }
.help-list a:hover { color: var(--c-blue); }
.help-list .icon { width: 18px; height: 18px; color: var(--text-3); }

.doc-list { display: grid; gap: 12px; }
.doc-item { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--border); color: var(--text); }
.doc-item:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); color: var(--text); }
.doc-item b { display: block; }
.doc-item small { color: var(--text-2); }
.doc-item .icon:last-child { margin-left: auto; color: var(--text-3); }

.zone-hero { display: flex; align-items: center; gap: 22px; }
.zone-badge { flex: none; min-width: 110px; height: 110px; padding: 0 18px; border-radius: 30px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 2.2rem; font-weight: 800; box-shadow: var(--shadow-lg); }
.price-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 26px 0; }
.price-box div { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--border); }
.price-box small { display: block; color: var(--text-2); font-weight: 600; }
.price-box b { font-size: 1.5rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .icon { color: var(--c-blue); margin-top: 3px; width: 18px; height: 18px; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-weight: 700; color: var(--text); }
.chips a:hover { border-color: var(--c-blue); color: var(--c-blue); }

@media (max-width: 1080px) {
  .article-wrap { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .posts, .help-groups, .price-box { grid-template-columns: 1fr; }
  .zone-hero { flex-direction: column; align-items: flex-start; }
  .zone-badge { min-width: 84px; height: 84px; font-size: 1.7rem; border-radius: 24px; }
  .article-wrap { padding-top: 28px; }
}

/* Cookie-баннер */
.cookie-bar { position: fixed; z-index: 70; left: 20px; bottom: 20px; max-width: 460px; padding: 18px 20px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0 0 12px; color: var(--text-2); }
@media (max-width: 600px) { .cookie-bar { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
