/* public_theme.css — переменные тем для публичных страниц (без ui-v2).
   Генерируется из themes.css: body[data-thm=...] для лендинга/логина/регистрации. */

body[data-thm="default"] {--accent: #f04b6e;
  --accent-rgb: 240, 75, 110;
  --accent-2: #f04b6e;
  --accent-2-rgb: 240, 75, 110;
  --accent-strong: #d63a5c;
  --accent-light: #f4728a;
  --accent-soft: rgba(240, 75, 110, 0.12);
  --grad-from: #f04b6e;
  --grad-mid: #f04b6e;
  --grad-to: #e11d48;
  --grad-to-rgb: 225, 29, 72;
  --grad: linear-gradient(135deg, #f04b6e 0%, #e11d48 100%);
  --grad-soft: linear-gradient(135deg, rgba(240, 75, 110, 0.14) 0%, rgba(225, 29, 72, 0.08) 100%);
  --glow: 0 0 0 1px rgba(240, 75, 110, 0.28), 0 0 22px rgba(240, 75, 110, 0.28), 0 12px 36px rgba(225, 29, 72, 0.18);
  accent-color: #f04b6e;
}

body[data-thm="emerald"] {--accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --accent-2: #34d399;
  --accent-2-rgb: 52, 211, 153;
  --accent-strong: #059669;
  --accent-light: #6ee7b7;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --grad-from: #34d399;
  --grad-mid: #10b981;
  --grad-to: #047857;
  --grad-to-rgb: 4, 120, 87;
  --grad: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --grad-soft: linear-gradient(135deg, rgba(52, 211, 153, 0.14) 0%, rgba(5, 150, 105, 0.08) 100%);
  --glow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 0 22px rgba(16, 185, 129, 0.28), 0 12px 36px rgba(5, 150, 105, 0.18);
  accent-color: #10b981;
}

body[data-thm="ocean"] {--accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --accent-2: #60a5fa;
  --accent-2-rgb: 96, 165, 250;
  --accent-strong: #2563eb;
  --accent-light: #93c5fd;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --grad-from: #60a5fa;
  --grad-mid: #3b82f6;
  --grad-to: #1d4ed8;
  --grad-to-rgb: 29, 78, 216;
  --grad: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%);
  --grad-soft: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(29, 78, 216, 0.08) 100%);
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.28), 0 0 22px rgba(59, 130, 246, 0.28), 0 12px 36px rgba(29, 78, 216, 0.18);
  accent-color: #3b82f6;
}

body[data-thm="violet"] {--accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-2: #a78bfa;
  --accent-2-rgb: 167, 139, 250;
  --accent-strong: #7c3aed;
  --accent-light: #c4b5fd;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --grad-from: #a78bfa;
  --grad-mid: #8b5cf6;
  --grad-to: #6d28d9;
  --grad-to-rgb: 109, 40, 217;
  --grad: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
  --grad-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.14) 0%, rgba(109, 40, 217, 0.08) 100%);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.28), 0 0 22px rgba(139, 92, 246, 0.28), 0 12px 36px rgba(109, 40, 217, 0.18);
  accent-color: #8b5cf6;
}

body[data-thm="sunset"] {--accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --accent-2: #fbbf24;
  --accent-2-rgb: 251, 191, 36;
  --accent-strong: #d97706;
  --accent-light: #fcd34d;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --grad-from: #fbbf24;
  --grad-mid: #f59e0b;
  --grad-to: #b45309;
  --grad-to-rgb: 180, 83, 9;
  --grad: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  --grad-soft: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(180, 83, 9, 0.08) 100%);
  --glow: 0 0 0 1px rgba(245, 158, 11, 0.28), 0 0 22px rgba(245, 158, 11, 0.28), 0 12px 36px rgba(180, 83, 9, 0.18);
  accent-color: #f59e0b;
}

body[data-thm="mono"] {--accent: #94a3b8;
  --accent-rgb: 148, 163, 184;
  --accent-2: #cbd5e1;
  --accent-2-rgb: 203, 213, 225;
  --accent-strong: #64748b;
  --accent-light: #e2e8f0;
  --accent-soft: rgba(148, 163, 184, 0.12);
  --grad-from: #cbd5e1;
  --grad-mid: #94a3b8;
  --grad-to: #475569;
  --grad-to-rgb: 71, 85, 105;
  --grad: linear-gradient(135deg, #cbd5e1 0%, #475569 100%);
  --grad-soft: linear-gradient(135deg, rgba(203, 213, 225, 0.14) 0%, rgba(71, 85, 105, 0.10) 100%);
  --glow: 0 0 0 1px rgba(148, 163, 184, 0.30), 0 0 22px rgba(148, 163, 184, 0.25), 0 12px 36px rgba(71, 85, 105, 0.20);
  accent-color: #94a3b8;
}


/* Маппинг на переменные публичных страниц: --primary используется в лендинге */
body[data-thm="default"] {
  --primary: #f04b6e;
  --primary-strong: #d63a5c;
  --primary-rgb: 240, 75, 110;
}
body[data-thm="emerald"] {
  --primary: #10b981;
  --primary-strong: #059669;
  --primary-rgb: 16, 185, 129;
}
body[data-thm="ocean"] {
  --primary: #3b82f6;
  --primary-strong: #2563eb;
  --primary-rgb: 59, 130, 246;
}
body[data-thm="violet"] {
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --primary-rgb: 139, 92, 246;
}
body[data-thm="sunset"] {
  --primary: #f59e0b;
  --primary-strong: #d97706;
  --primary-rgb: 245, 158, 11;
}
body[data-thm="mono"] {
  --primary: #94a3b8;
  --primary-strong: #64748b;
  --primary-rgb: 148, 163, 184;
}
/* ════════════════════════════════════════════════════════════════════
   Theme switcher (public pages) — кнопка + дропдаун
   ════════════════════════════════════════════════════════════════════ */
.pub-theme-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: #9b9ba8;
  cursor: pointer; flex-shrink: 0;
  transition: color .16s, border-color .16s, background .16s, transform .16s;
}
.pub-theme-btn:hover {
  color: var(--primary, #f04b6e));
  border-color: rgba(var(--primary-rgb, 240,75,110),.45);
  background: rgba(var(--primary-rgb, 240,75,110),.08);
  transform: translateY(-1px);
}
.pub-theme-dot {
  position: absolute; bottom: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  box-shadow: 0 0 6px currentColor;
  transition: background .2s;
}

.pub-thm-menu {
  position: absolute;
  top: calc(100% + 10px); right: 0;
  z-index: 1000;
  min-width: 200px;
  padding: 8px;
  border-radius: 13px;
  background: #141419;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 70px rgba(0,0,0,.6), 0 6px 20px rgba(0,0,0,.4);
  display: none;
  animation: pubThmIn .16s ease;
}
.pub-thm-menu.open { display: block; }
@keyframes pubThmIn { from { opacity:0; transform:translateY(-5px);} to { opacity:1; transform:none;} }
.pub-thm-title {
  font-size: 10px; font-weight: 700; color: #85859a;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 6px 9px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 5px;
}
.pub-thm-opt {
  display: flex; align-items: center; gap: 9px;
  width: 100%; box-sizing: border-box;
  padding: 8px 10px; border-radius: 8px;
  background: none; border: none;
  color: #d6d6de; font-size: 12.5px; font-weight: 500; font-family: inherit;
  cursor: pointer; text-align: left;
  transition: background .13s, color .13s;
}
.pub-thm-opt:hover { background: rgba(255,255,255,.06); color: #fff; }
.pub-thm-opt.is-active { color: #fff; font-weight: 600; }
.pub-thm-swatch {
  width: 15px; height: 15px; border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 2px 6px rgba(0,0,0,.3);
}
.pub-thm-check {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  color: var(--primary, #f04b6e));
  opacity: 0; transition: opacity .13s;
}
.pub-thm-opt.is-active .pub-thm-check { opacity: 1; }

/* позиционирование: родитель nav-actions должен быть anchor — задаём wrapper */
.pub-theme-wrap { position: relative; display: inline-flex; }

/* ── Light scheme у публичных страниц (если включат) ── */
body.light-theme .pub-thm-menu {
  background: #fff;
  border-color: rgba(0,0,0,.12);
  box-shadow: 0 20px 55px rgba(0,0,0,.18), 0 4px 14px rgba(0,0,0,.08);
}
body.light-theme .pub-thm-title { color: #8a8a96; border-bottom-color: rgba(0,0,0,.07); }
body.light-theme .pub-thm-opt { color: #3f3f4a; }
body.light-theme .pub-thm-opt:hover { background: rgba(0,0,0,.04); color: #14141c; }
body.light-theme .pub-theme-btn {
  background: rgba(0,0,0,.035);
  border-color: rgba(0,0,0,.1);
  color: #6b6b76;
}
/* ════════════════════════════════════════════════════════════════════
   Public pages premium polish — кнопки, карточки, hero, поля форм.
   Всё на var(--primary*) → следует установленной теме.
   ════════════════════════════════════════════════════════════════════ */

/* ── Hero: градиентный заголовок + живой accent ── */
.hero h1 {
  letter-spacing: -.03em;
  line-height: 1.08;
}
.hero h1 .accent {
  background: linear-gradient(120deg,
    var(--primary, #f04b6e) 0%,
    var(--primary-light, var(--primary, #f04b6e)) 45%,
    var(--primary-strong, #f04b6e) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pubAccentShift 6s ease-in-out infinite;
}
@keyframes pubAccentShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* живое дыхание hero-свечения */
.hero-glow {
  animation: pubGlowBreath 9s ease-in-out infinite;
}
@keyframes pubGlowBreath {
  0%, 100% { opacity: .85; transform: translate3d(0,0,0) scale(1); }
  50% { opacity: 1; transform: translate3d(-2%, 2%, 0) scale(1.06); }
}
.hero-glow-2 {
  animation: pubGlowBreath2 12s ease-in-out infinite;
}
@keyframes pubGlowBreath2 {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1) translate3d(2%, -2%, 0); }
}

/* ── Кнопки: премиум ── */
.btn {
  position: relative;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .18s var(--ease, ease), box-shadow .18s var(--ease, ease),
              background .18s, color .18s, border-color .18s, opacity .18s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e)));
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 240,75,110),.28),
              inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(var(--primary-rgb, 240,75,110),.42),
              inset 0 1px 0 rgba(255,255,255,.24);
  opacity: 1 !important;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 4px 12px rgba(var(--primary-rgb, 240,75,110),.3); }
.btn-ghost {
  border: 1px solid var(--border, rgba(255,255,255,.09));
  background: rgba(255,255,255,.03);
}
.btn-ghost:hover {
  color: var(--fg, #f4f3f6);
  border-color: rgba(var(--primary-rgb, 240,75,110),.4);
  background: rgba(var(--primary-rgb, 240,75,110),.07);
  transform: translateY(-1px);
}
.btn-outline:hover {
  border-color: rgba(var(--primary-rgb, 240,75,110),.45);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb, 240,75,110),.12);
}
/* крупная CTA — больше, выразительнее */
.btn-lg.btn-primary {
  padding: .85rem 1.7rem;
  font-size: .925rem;
  border-radius: .65rem;
}

/* ── Карточки: стеклянный hover + градиентная рамка сверху ── */
.feat, .tool, .price-card, .upd-card, .sc-card {
  position: relative;
  transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease),
              border-color .25s var(--ease, ease);
}
.feat::before, .tool::before, .price-card::before {
  content: "";
  position: absolute; left: 12%; right: 12%; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb, 240,75,110),.5), transparent);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.feat:hover, .tool:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--primary-rgb, 240,75,110),.3) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.35), 0 4px 16px rgba(var(--primary-rgb, 240,75,110),.08);
}
.feat:hover::before, .tool:hover::before { opacity: 1; }

/* иконки карточек — accent-тинт при hover */
.feat:hover .feat-ico, .tool:hover .tool-ico,
.feat:hover svg.feat-ico, .tool:hover .ico {
  color: var(--primary, #f04b6e);
}

/* price-card акцент */
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb, 240,75,110),.4) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 6px 20px rgba(var(--primary-rgb, 240,75,110),.1);
}

/* ── Поля форм (логин/регистрация/контакты) ── */
input, textarea, select {
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(var(--primary-rgb, 240,75,110),.55) !important;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 240,75,110),.14) !important;
}
input::placeholder, textarea::placeholder { transition: opacity .18s; }
input:focus::placeholder { opacity: .55; }

/* чекбоксы/радио в цвет темы */
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary, #f04b6e); }

/* ── Навигация: active-пункт с градиентной underline ── */
.nav-links a.active, .nav-links a.is-active {
  background: rgba(var(--primary-rgb, 240,75,110),.12);
  position: relative;
}
.nav-links a.active::after, .nav-links a.is-active::after {
  content: "";
  position: absolute; left: 20%; right: 20%; bottom: 2px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e)));
  box-shadow: 0 0 8px rgba(var(--primary-rgb, 240,75,110),.5);
}

/* ── Секции: reveal уже есть — добавлю stagger для сеток ── */
.grid-stagger > * {
  transition-delay: calc(var(--st-i, 0) * 40ms);
}

/* ── Плавный скролл-бар в тему ── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb, 240,75,110),.25);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(var(--primary-rgb, 240,75,110),.45); }

/* ── Выделение текста в тему ── */
::selection {
  background: rgba(var(--primary-rgb, 240,75,110),.3);
  color: #fff;
}

/* ── Ссылки в контенте ── */
a:not(.btn):not(.nav-links a):not(.nav-mobile a) {
  transition: color .15s;
}

/* ════════════════════════════════════════════════════════════════════
   Auth pages (login/register/forgot/reset/verify) — premium
   ════════════════════════════════════════════════════════════════════ */
.auth-shell { position: relative; }
/* фоновое свечение за карточкой в цвет темы */
.auth-shell::before {
  content: "";
  position: absolute;
  top: 10%; left: 50%; transform: translateX(-50%);
  width: 560px; height: 420px; max-width: 90vw;
  border-radius: 50%;
  background: rgba(var(--primary-rgb, 240,75,110),.09);
  filter: blur(110px);
  pointer-events: none;
  animation: pubGlowBreath 10s ease-in-out infinite;
}
.auth-card {
  position: relative;
  border-radius: 18px !important;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(var(--primary-rgb, 240,75,110),.06), transparent 55%),
    var(--card, #1a1a1f) !important;
  border: 1px solid var(--border, rgba(255,255,255,.09)) !important;
  box-shadow:
    0 24px 70px rgba(0,0,0,.45),
    0 8px 24px rgba(0,0,0,.3),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
  animation: pubCardIn .5s var(--ease, cubic-bezier(.22,1,.36,1)) both;
}
@keyframes pubCardIn {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
/* градиентная hairline сверху карточки */
.auth-card::before {
  content: "";
  position: absolute; left: 10%; right: 10%; top: 0; height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb, 240,75,110),.7), transparent);
  pointer-events: none;
}
.auth-card h1 {
  background: linear-gradient(120deg, var(--fg, #f4f3f6) 40%, var(--primary, #f04b6e));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.field label {
  text-transform: uppercase;
  font-size: .68rem !important;
  letter-spacing: .07em !important;
  color: var(--muted-fg, #9b9ba8) !important;
}
.field input {
  border-radius: .65rem !important;
  background: rgba(0,0,0,.25) !important;
  border-color: var(--border, rgba(255,255,255,.1)) !important;
  padding: .75rem .9rem !important;
  transition: border-color .18s, box-shadow .18s, background .18s !important;
}
.field input:hover { border-color: rgba(var(--primary-rgb, 240,75,110),.3) !important; }
.field input:focus {
  background: rgba(0,0,0,.35) !important;
  border-color: rgba(var(--primary-rgb, 240,75,110),.6) !important;
  box-shadow: 0 0 0 3.5px rgba(var(--primary-rgb, 240,75,110),.15) !important;
}
/* пароль-глазки иконки в тему */
.field .toggle-pass, .field button[type="button"] { color: var(--muted-fg, #9b9ba8); }
.field .toggle-pass:hover { color: var(--primary, #f04b6e); }

/* brand над карточкой */
.brand-v2 { position: relative; z-index: 1; }

/* Telegram-кнопка */
.btn-telegram {
  border-radius: .65rem !important;
  font-weight: 600 !important;
  transition: transform .16s, box-shadow .16s, filter .16s !important;
}
.btn-telegram:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(41,171,226,.3);
}

/* OTP-ячейки (verify_email) в тему — уже частично; фокус живее */
.otp-cell:focus {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3.5px rgba(var(--primary-rgb, 240,75,110),.16), 0 6px 16px rgba(var(--primary-rgb, 240,75,110),.12) !important;
}

/* ════════════════════════════════════════════════════════════════════
   Landing nav + text polish (тема через var(--primary*))
   ════════════════════════════════════════════════════════════════════ */

/* ── Меню: пункты — пилюли с градиент-underline и свечением ── */
.nav-links a {
  font-weight: 550 !important;
  letter-spacing: .015em;
  padding: .42rem .68rem !important;
  border-radius: .55rem !important;
}
.nav-links a:not(.nav-give):hover {
  background: rgba(255,255,255,.055) !important;
  transform: translateY(-1px);
}
.nav-links a:not(.nav-give)::after {
  height: 2px !important;
  background: linear-gradient(90deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e))) !important;
  box-shadow: 0 0 8px rgba(var(--primary-rgb, 240,75,110),.5);
  bottom: .1rem !important;
}
.nav-links a.is-active {
  color: #fff !important;
  background: rgba(var(--primary-rgb, 240,75,110),.13) !important;
  box-shadow: inset 0 0 0 1px rgba(var(--primary-rgb, 240,75,110),.22);
}
/* Give-кнопка в меню — премиум CTA */
.nav-links a.nav-give {
  border-radius: .6rem !important;
  background: linear-gradient(135deg, rgba(var(--primary-rgb, 240,75,110),.28), rgba(var(--primary-rgb, 240,75,110),.14)) !important;
  box-shadow: 0 2px 10px rgba(var(--primary-rgb, 240,75,110),.2);
  transition: transform .18s, box-shadow .18s, background .18s !important;
}
.nav-links a.nav-give:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb, 240,75,110),.35) !important;
}

/* Версия-бейдж в меню */
.nav-ver {
  background: linear-gradient(135deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e))) !important;
  box-shadow: 0 0 8px rgba(var(--primary-rgb, 240,75,110),.4);
}

/* ── Бренд (лого-блок в меню) ── */
.brand-name {
  font-weight: 800 !important;
  letter-spacing: .03em !important;
}
.brand-ico {
  transition: transform .3s var(--ease, ease), box-shadow .3s !important;
}
.brand:hover .brand-ico { transform: scale(1.07) rotate(-3deg); }

/* ── Типографика секций ── */
.sec-title, h2 {
  letter-spacing: -.025em !important;
}
.sec-title .accent, h2 .accent {
  background: linear-gradient(120deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e)));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* подводка секций — маленькая accent-линия */
.sec-kicker, .kicker {
  color: var(--primary, #f04b6e) !important;
  font-weight: 700;
}

/* ── Мелкие бейджи/чипы в тему ── */
.badge, .chip, .tag {
  border-color: rgba(var(--primary-rgb, 240,75,110),.3);
}

/* ── Дропдаун мобильного меню ── */
.nav-mobile a {
  border-radius: .55rem !important;
  transition: color .15s, background .15s, transform .15s !important;
}
.nav-mobile a:hover {
  transform: translateX(3px);
  background: rgba(var(--primary-rgb, 240,75,110),.08) !important;
  color: var(--fg, #f4f3f6) !important;
}

/* ── Скриншоты/превью: hover-подъём с рамкой темы ── */
.scr-slide:hover, .scr-stage:hover {
  border-color: rgba(var(--primary-rgb, 240,75,110),.35) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.45), 0 4px 18px rgba(var(--primary-rgb, 240,75,110),.1) !important;
}

/* ── Footer ── */
footer a:hover { color: var(--primary, #f04b6e) !important; }

/* ── Hero CTA пара: primary+outline harmony ── */
.hero-ctas .btn-outline {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border, rgba(255,255,255,.1));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-ctas .btn-outline:hover {
  border-color: rgba(var(--primary-rgb, 240,75,110),.5);
  background: rgba(var(--primary-rgb, 240,75,110),.07);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb, 240,75,110),.14);
}
/* стрелка в primary-кнопке двигается при hover */
.btn-primary svg {
  transition: transform .25s var(--ease, ease);
}
.btn-primary:hover svg { transform: translateX(3px); }

/* pulse-анимация primary hero-кнопки — тоньше */
.btn-pulse { animation-duration: 5.5s !important; }

/* ════════════════════════════════════════════════════════════════════
   Landing nav v2 — крупные стеклянные пилюли, уникальный стиль
   ════════════════════════════════════════════════════════════════════ */
.nav-inner { height: 4.25rem !important; }
@media (min-width: 768px) { .nav-inner { height: 4.5rem !important; } }

.nav-links { gap: .35rem !important; }
.nav-links a {
  font-weight: 600 !important;
  font-size: .9rem !important;
  padding: .6rem 1rem !important;
  border-radius: .8rem !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition:
    transform .22s var(--ease, ease),
    box-shadow .22s var(--ease, ease),
    border-color .22s,
    background .22s,
    color .22s !important;
}
/* hover: подъём + accent-рамка + свечение снизу */
.nav-links a:hover {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) !important;
  border-color: rgba(var(--primary-rgb, 240,75,110),.45) !important;
  transform: translateY(-2px) !important;
  box-shadow:
    0 10px 26px rgba(0,0,0,.35),
    0 4px 14px rgba(var(--primary-rgb, 240,75,110),.18) !important;
}
/* активный: accent-заливка с градиентом */
.nav-links a.is-active,
.nav-links a.is-page-active {
  color: #fff !important;
  background:
    linear-gradient(135deg, rgba(var(--primary-rgb, 240,75,110),.25), rgba(var(--primary-rgb, 240,75,110),.1)) !important;
  border-color: rgba(var(--primary-rgb, 240,75,110),.45) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 4px 16px rgba(var(--primary-rgb, 240,75,110),.22) !important;
}
/* gradient-underline — жирнее, со свечением, от края до края контента */
.nav-links a:not(.nav-give)::after {
  left: .85rem !important;
  right: .85rem !important;
  bottom: .28rem !important;
  height: 2.5px !important;
  border-radius: 3px !important;
  box-shadow: 0 0 10px rgba(var(--primary-rgb, 240,75,110),.7) !important;
}
/* Give-кнопка — яркая CTA-пилюля */
.nav-links a.nav-give {
  padding: .6rem 1.05rem !important;
  border-radius: .8rem !important;
  font-weight: 700 !important;
}

/* ── Burger и actions — крупнее ── */
.nav-burger {
  width: 2.6rem !important; height: 2.6rem !important;
  border-radius: .8rem !important;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  transition: transform .2s, border-color .2s, background .2s !important;
}
.nav-burger:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--primary-rgb, 240,75,110),.45) !important;
  background: rgba(var(--primary-rgb, 240,75,110),.1) !important;
}
.nav-actions .btn { font-weight: 600 !important; }
.nav-actions .btn-primary {
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 240,75,110),.3) !important;
}

/* ── Языковой свитчер — стеклянный ── */
#lang-switcher {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  height: 2.35rem;
  transition: border-color .2s, background .2s !important;
}
#lang-switcher:hover { border-color: rgba(var(--primary-rgb, 240,75,110),.4) !important; }
#lang-opt-ru, #lang-opt-en { padding: 5px 13px !important; font-size: 11.5px !important; }

/* ── Мобильный дропдаун — стеклянная карточка ── */
.nav-mobile {
  border-radius: 0 0 1.1rem 1.1rem !important;
  background: rgba(17,17,19,.97) !important;
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 24px 60px rgba(0,0,0,.5) !important;
}
.nav-mobile a {
  padding: .8rem 1.1rem !important;
  font-size: .95rem !important;
  font-weight: 550 !important;
}

/* ── Nav fit: пункты никогда не скрываются, кластеры сжимаются ── */
.brand { flex: 0 1 auto !important; }
.nav-right { flex: 0 0 auto !important; }
.nav-links { flex: 1 1 0 !important; min-width: 0 !important; }
.nav-links a { min-width: 0 !important; overflow: visible; }

/* ═══ ГАРАНТИЯ: пункты меню видимы на ≥900px при любой ширине ═══ */
@media (min-width: 900px) {
  .nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    min-width: 0 !important;
  }
  .nav-links a {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    white-space: nowrap !important;
  }
}
/* Жёсткая компактность: все 9 пунктов гарантированно влезают вплоть до 900px */
@media (min-width: 900px) and (max-width: 1500px) {
  .nav-inner { gap: .4rem !important; padding: 0 .6rem !important; max-width: none !important; }
  .nav-links { gap: .1rem !important; }
  .nav-links a {
    padding: .48rem .55rem !important;
    font-size: .76rem !important;
    letter-spacing: 0 !important;
  }
}
@media (min-width: 900px) and (max-width: 1280px) {
  .nav-links a { padding: .45rem .45rem !important; font-size: .73rem !important; }
  .nav-actions .btn { padding: .4rem .7rem !important; font-size: .75rem !important; }
  .brand { gap: .3rem !important; }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .nav-actions .btn-ghost { display: none !important; }
  #lang-switcher { display: none !important; }
  .brand-name, .brand-text, .brand-sub { display: none !important; }
  .nav-links a { padding: .42rem .4rem !important; font-size: .71rem !important; }
}

/* ═══ Показывать пункты меню на ЛЮБОЙ ширине (мобайл — горизонтальный свайп) ═══ */
@media (max-width: 899px) {
  .nav-links {
    display: flex !important;
    order: 3 !important;
    flex: 1 0 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    justify-content: flex-start !important;
    gap: .4rem !important;
    padding: 0 .85rem .55rem !important;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-inner { flex-wrap: wrap !important; height: auto !important; padding-bottom: .25rem !important; }
  .nav-links a {
    padding: .5rem .8rem !important;
    font-size: .82rem !important;
    flex-shrink: 0 !important;
  }
}

/* ═══ Зоны шапки: меню никогда не сливается с кнопками ═══ */
@media (min-width: 900px) {
  /* три чёткие зоны: бренд | меню | кнопки. Меню живёт в своей колонке */
  .nav-inner {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 1.25rem !important;
  }
  .nav-links {
    justify-content: center !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
    padding: .3rem 0 !important;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-right {
    margin-left: 0 !important;   /* grid сам разруливает */
    gap: .45rem !important;
  }
  /* воздух между пунктом и границей зоны меню — чтобы никогда не липло к кнопкам */
  .nav-links a:last-child { margin-right: .5rem !important; }
}
@media (min-width: 900px) and (max-width: 1500px) {
  .nav-inner { gap: .9rem !important; }
  .nav-links { gap: .12rem !important; }
  .nav-links a {
    padding: .48rem .55rem !important;
    font-size: .77rem !important;
  }
  .nav-right .btn { padding: .42rem .75rem !important; font-size: .78rem !important; }
}
@media (min-width: 900px) and (max-width: 1220px) {
  .nav-inner { gap: .5rem !important; }
  .nav-actions .btn-ghost { display: none !important; }
  #lang-switcher { display: none !important; }
  .brand-name, .brand-text, .brand-sub { display: none !important; }
  .nav-links a { padding: .45rem .42rem !important; font-size: .72rem !important; }
  .nav-right .btn { padding: .4rem .6rem !important; font-size: .74rem !important; }
}

/* ═══ Пункты меню сжимаются, а не наезжают на кнопки ═══ */
@media (min-width: 900px) {
  .nav-links a { flex-shrink: 1 !important; min-width: 0 !important; }
}
@media (min-width: 900px) and (max-width: 1500px) {
  .nav-links a { padding: .46rem .5rem !important; font-size: .75rem !important; }
}

/* ════════════════════════════════════════════════════════════════════
   Nav FINAL: профессиональные кнопки — текст никогда не упирается в край
   ════════════════════════════════════════════════════════════════════ */
@media (min-width: 900px) {
  /* сброс всех прежних сжатий: единый базовый вид */
  .nav-links a {
    font-size: .8rem !important;
    padding: .55rem .8rem !important;
    letter-spacing: .01em !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
  }
  .nav-inner { gap: 1.1rem !important; }
  .nav-links { gap: .22rem !important; }
}

/* комфортная ширина — просторнее */
@media (min-width: 1500px) {
  .nav-links a { font-size: .85rem !important; padding: .6rem .95rem !important; }
  .nav-links { gap: .3rem !important; }
}

/* компактные ступени: паддинг НЕ ниже 10px по бокам — текст всегда с воздухом */
@media (min-width: 900px) and (max-width: 1500px) {
  .nav-inner { gap: .6rem !important; padding: 0 .7rem !important; }
  .nav-links { gap: .1rem !important; }
  .nav-links a {
    font-size: .73rem !important;
    padding: .5rem .55rem !important;
  }
  .nav-right .btn { padding: .45rem .75rem !important; font-size: .78rem !important; }
}
@media (min-width: 900px) and (max-width: 990px) {
  .nav-links a { font-size: .68rem !important; padding: .46rem .38rem !important; }
  .nav-links { gap: .05rem !important; }
  .nav-inner { gap: .3rem !important; padding: 0 .4rem !important; }
}
@media (min-width: 900px) and (max-width: 1280px) {
  .nav-inner { gap: .45rem !important; padding: 0 .55rem !important; }
  .nav-links { gap: .08rem !important; }
  .nav-links a {
    font-size: .71rem !important;
    padding: .5rem .52rem !important;
    border-radius: .6rem !important;
  }
  .brand-name, .brand-text, .brand-sub { display: none !important; }
  .nav-right .btn { padding: .42rem .7rem !important; font-size: .74rem !important; }
}
@media (min-width: 900px) and (max-width: 1080px) {
  .nav-actions .btn-ghost { display: none !important; }
  #lang-switcher { display: none !important; }
}

/* ═══ Кнопка всегда ≥ своего текста — текст физически не может вылезти ═══ */
@media (min-width: 900px) {
  .nav-links a {
    width: max-content !important;
    min-width: max-content !important;
    box-sizing: content-box !important;
    white-space: nowrap !important;
    overflow: visible !important;
  }
}

/* ═══ ФИНАЛ: пункты не вылезают за зону никогда ═══ */
@media (min-width: 900px) {
}

/* ═══ ФИНАЛ: центрирование через auto-margin — при переполнении прижимается влево, никогда не вылезает ═══ */
@media (min-width: 900px) {
  .nav-links {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:first-child { margin-left: auto !important; }
  .nav-links a:last-child { margin-right: auto !important; }
}

/* ═══ Ступени: всё влезает без скролла на десктопе ═══ */
@media (min-width: 900px) and (max-width: 1700px) {
  .nav-inner { max-width: none !important; padding: 0 .8rem !important; }
}
@media (min-width: 1200px) and (max-width: 1700px) {
  .nav-links a { font-size: .73rem !important; padding: .5rem .5rem !important; }
  .nav-links { gap: .08rem !important; }
  .nav-inner { gap: .5rem !important; padding: 0 .6rem !important; }
  .nav-ver { padding: 1px 4px !important; font-size: 8px !important; margin-left: 2px !important; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-links a { font-size: .69rem !important; padding: .46rem .4rem !important; }
  .nav-inner { gap: .35rem !important; }
  .nav-links { gap: .06rem !important; }
  .brand-name, .brand-text, .brand-sub { display: none !important; }
  .nav-actions .btn-ghost { display: none !important; }
  #lang-switcher { display: none !important; }
}

/* На узких десктопах второстепенные пункты (дублируются в бургер-меню) не показываются — остальные 7 всегда видны */
@media (min-width: 900px) and (max-width: 1150px) {
  .nav-links a[href*="partners"], .nav-links a[href*="contacts"] { display: none !important; }
}

/* 1300-1430: лого без подписи — освобождаем место для пункта «Обновления» */
@media (min-width: 1300px) and (max-width: 1430px) {
  .brand-name, .brand-text, .brand-sub { display: none !important; }
}
/* 900-905: чуть теснее паддинг пунктов */
@media (min-width: 900px) and (max-width: 940px) {
  .nav-links a { padding: .46rem .3rem !important; }
}

/* ═══ base_public_v2: nav-spacer не нужен в grid (4-й ребёнок ломал раскладку) ═══ */
@media (min-width: 900px) {
  .nav-spacer { display: none !important; }
  /* на public-страницах у nav-inner 4 ребёнка: brand, nav-links, nav-spacer, nav-actions
     grid 3 колонки + скрытый spacer = корректно */
}

/* ═══ base_public nav: сжатие пунктов по ступеням (лозунг: всё видно, ничего не наезжает) ═══ */
@media (min-width: 900px) {
  /* базовые профессиональные кнопки как на лендинге */
  .nav-links a {
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)) !important;
  }
  .nav-links a:hover {
    color: #fff !important;
    border-color: rgba(var(--primary-rgb, 240,75,110),.45) !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)) !important;
    transform: translateY(-1px);
  }
  .nav-links a.active, .nav-links a.is-active {
    color: #fff !important;
    background:
      linear-gradient(135deg, rgba(var(--primary-rgb, 240,75,110),.25), rgba(var(--primary-rgb, 240,75,110),.1)) !important;
    border-color: rgba(var(--primary-rgb, 240,75,110),.45) !important;
  }
  /* пункты могут сжиматься, но не меньше текста */
  .nav-links a { flex-shrink: 1 !important; width: max-content !important; min-width: max-content !important; }
}
/* ступени: чем уже, тем плотнее */
@media (min-width: 900px) and (max-width: 1700px) {
  .nav-links { gap: .1rem !important; }
  .nav-links a { font-size: .74rem !important; padding: .5rem .55rem !important; }
  .nav-inner { gap: .8rem !important; padding: 0 .8rem !important; }
}
@media (min-width: 900px) and (max-width: 1500px) {
  .nav-links a { font-size: .71rem !important; padding: .48rem .45rem !important; }
  .nav-inner { gap: .5rem !important; padding: 0 .6rem !important; }
  .brand-text { display: none !important; }
}
@media (min-width: 900px) and (max-width: 1350px) {
  .nav-actions .btn-ghost { display: none !important; }
  #lang-switcher { display: none !important; }
  .nav-links a { font-size: .69rem !important; padding: .46rem .38rem !important; }
  .nav-links { gap: .06rem !important; }
  .nav-inner { gap: .35rem !important; }
}
@media (min-width: 900px) and (max-width: 1150px) {
  .nav-links a[href*="partners"], .nav-links a[href*="contacts"] { display: none !important; }
}

/* nav-inner шире на больших экранах — зона меню получает место */
@media (min-width: 1400px) {
  .nav-inner { max-width: none !important; padding: 0 1.4rem !important; }
}
@media (min-width: 1700px) {
  .nav-links a { font-size: .78rem !important; padding: .5rem .65rem !important; }
  .nav-links { gap: .14rem !important; }
}

/* ═══ Анти-горизонтальный скролл на auth-страницах (captcha/габариты) ═══ */
body { overflow-x: clip; }
.auth-shell, main { max-width: 100vw; overflow-x: clip; }
.h-captcha, .captcha-wrap { max-width: 100% !important; }
.gtr-bar { max-width: 100vw; overflow: hidden; }
.gtr-sub { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* html-уровень: тема применяется до отрисовки body (анти-FOUC) */
html[data-thm="default"] {--accent: var(--primary, #f04b6e);
  --accent-rgb: 240, 75, 110;
  --accent-2: var(--primary, #f04b6e);
  --accent-2-rgb: 240, 75, 110;
  --accent-strong: #d63a5c;
  --accent-light: #f4728a;
  --accent-soft: rgba(var(--primary-rgb, 240,75,110), 0.12);
  --grad-from: var(--primary, #f04b6e);
  --grad-mid: var(--primary, #f04b6e);
  --grad-to: var(--primary-strong, #e11d48);
  --grad-to-rgb: 225, 29, 72;
  --grad: linear-gradient(135deg, var(--primary, #f04b6e) 0%, var(--primary-strong, #e11d48) 100%);
  --grad-soft: linear-gradient(135deg, rgba(var(--primary-rgb, 240,75,110), 0.14) 0%, rgba(225, 29, 72, 0.08) 100%);
  --glow: 0 0 0 1px rgba(var(--primary-rgb, 240,75,110), 0.28), 0 0 22px rgba(var(--primary-rgb, 240,75,110), 0.28), 0 12px 36px rgba(225, 29, 72, 0.18);
  accent-color: var(--primary, #f04b6e);
}
html[data-thm="emerald"] {--accent: #10b981;
  --accent-rgb: 16, 185, 129;
  --accent-2: #34d399;
  --accent-2-rgb: 52, 211, 153;
  --accent-strong: #059669;
  --accent-light: #6ee7b7;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --grad-from: #34d399;
  --grad-mid: #10b981;
  --grad-to: #047857;
  --grad-to-rgb: 4, 120, 87;
  --grad: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --grad-soft: linear-gradient(135deg, rgba(52, 211, 153, 0.14) 0%, rgba(5, 150, 105, 0.08) 100%);
  --glow: 0 0 0 1px rgba(16, 185, 129, 0.28), 0 0 22px rgba(16, 185, 129, 0.28), 0 12px 36px rgba(5, 150, 105, 0.18);
  accent-color: #10b981;
}
html[data-thm="ocean"] {--accent: #3b82f6;
  --accent-rgb: 59, 130, 246;
  --accent-2: #60a5fa;
  --accent-2-rgb: 96, 165, 250;
  --accent-strong: #2563eb;
  --accent-light: #93c5fd;
  --accent-soft: rgba(59, 130, 246, 0.12);
  --grad-from: #60a5fa;
  --grad-mid: #3b82f6;
  --grad-to: #1d4ed8;
  --grad-to-rgb: 29, 78, 216;
  --grad: linear-gradient(135deg, #60a5fa 0%, #1d4ed8 100%);
  --grad-soft: linear-gradient(135deg, rgba(96, 165, 250, 0.14) 0%, rgba(29, 78, 216, 0.08) 100%);
  --glow: 0 0 0 1px rgba(59, 130, 246, 0.28), 0 0 22px rgba(59, 130, 246, 0.28), 0 12px 36px rgba(29, 78, 216, 0.18);
  accent-color: #3b82f6;
}
html[data-thm="violet"] {--accent: #8b5cf6;
  --accent-rgb: 139, 92, 246;
  --accent-2: #a78bfa;
  --accent-2-rgb: 167, 139, 250;
  --accent-strong: #7c3aed;
  --accent-light: #c4b5fd;
  --accent-soft: rgba(139, 92, 246, 0.12);
  --grad-from: #a78bfa;
  --grad-mid: #8b5cf6;
  --grad-to: #6d28d9;
  --grad-to-rgb: 109, 40, 217;
  --grad: linear-gradient(135deg, #a78bfa 0%, #6d28d9 100%);
  --grad-soft: linear-gradient(135deg, rgba(167, 139, 250, 0.14) 0%, rgba(109, 40, 217, 0.08) 100%);
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.28), 0 0 22px rgba(139, 92, 246, 0.28), 0 12px 36px rgba(109, 40, 217, 0.18);
  accent-color: #8b5cf6;
}
html[data-thm="sunset"] {--accent: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --accent-2: #fbbf24;
  --accent-2-rgb: 251, 191, 36;
  --accent-strong: #d97706;
  --accent-light: #fcd34d;
  --accent-soft: rgba(245, 158, 11, 0.12);
  --grad-from: #fbbf24;
  --grad-mid: #f59e0b;
  --grad-to: #b45309;
  --grad-to-rgb: 180, 83, 9;
  --grad: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  --grad-soft: linear-gradient(135deg, rgba(251, 191, 36, 0.14) 0%, rgba(180, 83, 9, 0.08) 100%);
  --glow: 0 0 0 1px rgba(245, 158, 11, 0.28), 0 0 22px rgba(245, 158, 11, 0.28), 0 12px 36px rgba(180, 83, 9, 0.18);
  accent-color: #f59e0b;
}
html[data-thm="mono"] {--accent: #94a3b8;
  --accent-rgb: 148, 163, 184;
  --accent-2: #cbd5e1;
  --accent-2-rgb: 203, 213, 225;
  --accent-strong: #64748b;
  --accent-light: #e2e8f0;
  --accent-soft: rgba(148, 163, 184, 0.12);
  --grad-from: #cbd5e1;
  --grad-mid: #94a3b8;
  --grad-to: #475569;
  --grad-to-rgb: 71, 85, 105;
  --grad: linear-gradient(135deg, #cbd5e1 0%, #475569 100%);
  --grad-soft: linear-gradient(135deg, rgba(203, 213, 225, 0.14) 0%, rgba(71, 85, 105, 0.10) 100%);
  --glow: 0 0 0 1px rgba(148, 163, 184, 0.30), 0 0 22px rgba(148, 163, 184, 0.25), 0 12px 36px rgba(71, 85, 105, 0.20);
  accent-color: #94a3b8;
}
html[data-thm="default"] {--primary: var(--primary, #f04b6e);
  --primary-strong: #d63a5c;
  --primary-rgb: 240, 75, 110;
}
html[data-thm="emerald"] {--primary: #10b981;
  --primary-strong: #059669;
  --primary-rgb: 16, 185, 129;
}
html[data-thm="ocean"] {--primary: #3b82f6;
  --primary-strong: #2563eb;
  --primary-rgb: 59, 130, 246;
}
html[data-thm="violet"] {--primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --primary-rgb: 139, 92, 246;
}
html[data-thm="sunset"] {--primary: #f59e0b;
  --primary-strong: #d97706;
  --primary-rgb: 245, 158, 11;
}
html[data-thm="mono"] {--primary: #94a3b8;
  --primary-strong: #64748b;
  --primary-rgb: 148, 163, 184;
}
/* ════════════════════════════════════════════════════════════════════
   Документы (оферта / конфиденциальность / возврат) — профессиональный вид
   ════════════════════════════════════════════════════════════════════ */

/* ── Титул документа: градиентная подложка + типографика ── */
.page-hero {
  position: relative;
  padding: 2.5rem 1.5rem 1.6rem !important;
  margin: 1.75rem 0 1.9rem;
  border-radius: 16px;
  background:
    radial-gradient(110% 140% at 0% 0%, rgba(var(--primary-rgb, 240,75,110),.07), transparent 60%);
  border: none;
  box-shadow: none;
  overflow: hidden;
}
/* тонкая линия-подчерк под титулом — отделяет hero от текста документа */
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--primary-rgb, 240,75,110),.4), transparent 70%);
}

@media (max-width: 700px) {
  .page-hero { margin: 1rem -1rem 0; padding: 2rem 1.25rem 1.5rem !important; }
}
.page-kicker {
  background: rgba(var(--primary-rgb, 240,75,110),.1) !important;
  border: 1px solid rgba(var(--primary-rgb, 240,75,110),.3);
  padding: .28rem .7rem !important;
  border-radius: 999px !important;
  font-size: .66rem !important;
  margin-bottom: .85rem !important;
}
.page-title {
  font-size: clamp(1.7rem, 3.8vw, 2.35rem) !important;
  background: linear-gradient(120deg, var(--fg, #f4f3f6) 45%, var(--primary, #f04b6e));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-lead { font-size: .98rem !important; line-height: 1.6 !important; max-width: 44rem !important; }
.page-date {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .75rem !important;
  border-radius: 8px !important;
  background: rgba(255,255,255,.04) !important;
  border: 1px solid var(--border, rgba(255,255,255,.09)) !important;
  margin-top: .9rem !important;
}

/* ── Пилюли-переключатели документов ── */
.doc-nav-pill {
  font-size: .82rem !important;
  margin-right: .1rem;
  font-weight: 600 !important;
  padding: .5rem 1.05rem !important;
  border-radius: 11px !important;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .16s, border-color .16s, background .16s, transform .16s, box-shadow .16s !important;
}
.doc-nav-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--primary-rgb, 240,75,110),.5) !important;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 240,75,110),.14);
}
.doc-nav-pill.is-active {
  color: #fff !important;
  background: linear-gradient(135deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e))) !important;
  box-shadow: 0 6px 18px rgba(var(--primary-rgb, 240,75,110),.35) !important;
  border-color: transparent !important;
  -webkit-text-fill-color: #fff !important;
}
/* неактивные — контрастный текст */
.doc-nav-pill {
  color: #c4c3cc !important;
  -webkit-text-fill-color: #c4c3cc !important;
}
.doc-nav-pill:hover { color: #fff !important; -webkit-text-fill-color: #fff !important; }

/* ── Карточка текста документа ── */
.prose-card {
  margin-top: 0 !important;
  border-radius: 18px !important;
  background:
    radial-gradient(100% 90% at 100% 0%, rgba(var(--primary-rgb, 240,75,110),.035), transparent 50%),
    var(--card, #1a1a1f) !important;
  border: 1px solid var(--border, rgba(255,255,255,.09)) !important;
  box-shadow: 0 16px 44px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04) !important;
  padding: 2rem 2.1rem !important;
  position: relative;
}
@media (max-width: 640px) { .prose-card { padding: 1.4rem 1.15rem !important; } }

/* ── Типографика текста: чёткая иерархия ── */
.prose h2 {
  font-size: 1.18rem !important;
  font-weight: 750 !important;
  color: var(--fg, #f4f3f6) !important;
  margin: 2.4rem 0 .8rem !important;
  padding: 0 0 .55rem !important;
  background: none !important;
  border: none !important;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.09)) !important;
  border-radius: 0 !important;
  letter-spacing: -.015em !important;
  display: flex; align-items: baseline; gap: .6rem;
}
/* маленькая accent-черта перед заголовком раздела (не кнопка — а типографский маркер) */
.prose h2::before {
  content: "";
  display: inline-block;
  width: 18px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary, #f04b6e), var(--primary-strong, #f04b6e)));
  transform: translateY(-4px);
  flex-shrink: 0;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: .97rem !important;
  margin: 1.3rem 0 .45rem !important;
  color: var(--fg, #f4f3f6) !important;
}
.prose p { line-height: 1.72 !important; margin: 0 0 .8rem !important; color: #b9b8c4 !important; }
.prose li { line-height: 1.68 !important; color: #b9b8c4 !important; }
.prose a {
  color: var(--primary, #f04b6e) !important;
  text-decoration: underline;
  text-decoration-color: rgba(var(--primary-rgb, 240,75,110),.4);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s;
}
.prose a:hover { text-decoration-color: var(--primary, #f04b6e); }
.prose strong { color: var(--fg, #f4f3f6) !important; font-weight: 650; }

/* таблицы тарифов — читаемые, с accent-шапкой */
.prose table {
  border-radius: 10px !important;
  overflow: hidden;
  border: 1px solid var(--border, rgba(255,255,255,.1)) !important;
  font-size: .84rem !important;
}
.prose th {
  background: rgba(var(--primary-rgb, 240,75,110),.12) !important;
  color: var(--fg, #f4f3f6) !important;
  font-weight: 700 !important;
  border: none !important;
  border-bottom: 1px solid rgba(var(--primary-rgb, 240,75,110),.3) !important;
  padding: .65rem .8rem !important;
}
.prose td {
  border: none !important;
  border-bottom: 1px solid var(--border, rgba(255,255,255,.07)) !important;
  padding: .6rem .8rem !important;
}
.prose tr:last-child td { border-bottom: none !important; }
.prose tr { transition: background .14s; }
.prose tbody tr:hover td { background: rgba(var(--primary-rgb, 240,75,110),.05); }

/* списки — accent-маркеры */
.prose ul { list-style: none; padding-left: 1.2rem !important; }
.prose ul li { position: relative; }
.prose ul li::before {
  content: "";
  position: absolute; left: -1.05rem; top: .55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary, #f04b6e);
  opacity: .8;
}
.prose ol li::marker { color: var(--primary, #f04b6e); font-weight: 700; }

/* info-box — заметный, в тему */
.info-box {
  border-radius: 12px !important;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--primary-rgb, 240,75,110),.1), transparent 60%),
    rgba(var(--primary-rgb, 240,75,110),.05) !important;
  border: 1px solid rgba(var(--primary-rgb, 240,75,110),.28) !important;
  padding: 1rem 1.15rem !important;
  font-size: .87rem !important;
}
.info-box strong { color: var(--fg, #f4f3f6) !important; }

/* появление документа при загрузке */
.prose-card, .page-hero {
  animation: pubDocIn .5s var(--ease, cubic-bezier(.22,1,.36,1)) both;
}
.page-hero { animation-delay: .05s; }
@keyframes pubDocIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════════════
   Auth: глазки пароля, Caps Lock, remember, индикатор надёжности,
   проверка email, превью-панель, aurora-фон
   ════════════════════════════════════════════════════════════════════ */

/* ── Поле пароля с глазком ── */
.pass-wrap { position: relative; display: flex; align-items: center; }
.pass-wrap input { width: 100%; padding-right: 2.6rem !important; }
.pass-eye {
  position: absolute; right: .6rem;
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--muted-fg, #9b9ba8);
  border-radius: 7px;
  transition: color .15s, background .15s;
  z-index: 2;
}
.pass-eye:hover { color: var(--primary, #f04b6e); background: rgba(var(--primary-rgb, 240,75,110),.08); }

/* ── Caps Lock подсказка ── */
.capslock-hint {
  display: flex; align-items: center; gap: .35rem;
  margin-top: .4rem;
  font-size: .72rem; font-weight: 600;
  color: #fbbf24;
  animation: pubFadeIn .2s ease;
}
@keyframes pubFadeIn { from { opacity:0; } to { opacity:1; } }

/* ── Запомнить меня ── */
.remember-me {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .76rem; color: var(--muted-fg, #9b9ba8);
  cursor: pointer; user-select: none;
}
.remember-me input { accent-color: var(--primary, #f04b6e); width: 14px; height: 14px; cursor: pointer; }
.remember-me:hover span { color: var(--fg, #f4f3f6); }
.forgot-link { font-size: .75rem; color: var(--muted-fg, #9b9ba8); transition: color .15s; }
.forgot-link:hover { color: var(--primary, #f04b6e); }

/* ── Индикатор надёжности пароля ── */
.pass-strength { margin-top: .45rem; }
.ps-bar {
  height: 4px; border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.ps-bar i {
  display: block; height: 100%; width: 0;
  border-radius: 3px;
  transition: width .25s ease, background .25s ease;
}
.ps-label {
  margin-top: .3rem;
  font-size: .68rem; font-weight: 650;
  letter-spacing: .02em;
}

/* ── Совпадение паролей (иконка в поле) ── */
.match-ico {
  position: absolute; right: .65rem;
  display: inline-flex; align-items: center;
  animation: pubFadeIn .2s ease;
  z-index: 2;
}
.field-status {
  display: flex; align-items: center; gap: .35rem;
  margin-top: .4rem;
  font-size: .72rem; font-weight: 600;
  animation: pubFadeIn .2s ease;
}
.field-status.free { color: #34d399; }
.field-status.taken { color: #f87171; }

/* ── Одна карточка по центру ── */
.auth-shell {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 5rem);
}

/* ── Aurora-фон за карточкой ── */
.auth-shell { position: relative; }
.auth-shell::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  top: -6%; left: 50%; transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb, 240,75,110),.12), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
  animation: pubAurora 11s ease-in-out infinite;
  z-index: -1;
}
.auth-shell::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  bottom: -4%; right: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb, 240,75,110),.08), transparent 60%);
  filter: blur(70px);
  pointer-events: none;
  animation: pubAurora2 14s ease-in-out infinite;
  z-index: -1;
}
@keyframes pubAurora {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: .8; }
  50% { transform: translateX(-46%) scale(1.12); opacity: 1; }
}
@keyframes pubAurora2 {
  0%, 100% { transform: scale(1) translate(0,0); opacity: .6; }
  50% { transform: scale(1.15) translate(-3%, -4%); opacity: .95; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-shell::before, .auth-shell::after { animation: none; }
}

/* ── Футер: воздух между контентом и футером ── */
.footer {
  margin-top: 4.5rem !important;
}
@media (max-width: 700px) {
  .footer { margin-top: 3rem !important; }
}
/* для коротких страниц (login/register без футера-скролла) тоже даём воздух снизу */
main { padding-bottom: 2.5rem !important; }

/* Документы: неактивные пилюли — нейтральный светлый текст (перебивает все каскады) */
.doc-nav .doc-nav-pill,
div .doc-nav-pill:not(.is-active) {
  color: #c9c9d3 !important;
  -webkit-text-fill-color: #c9c9d3 !important;
}
.doc-nav .doc-nav-pill.is-active,
div .doc-nav-pill.is-active {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ═══ Auth preview + remember: типографика и выравнивание ═══ */

/* Превью-панель: аккуратный бренд-блок */
/* Заголовок панели: крупнее, дыхание, градиент */
/* accent-линия под заголовком — визуальный якорь */
/* пункты — чуть крупнее текст описания */

/* ── Remember me + Forgot: одна базовая линия, ровно ── */
.auth-card div[style*="space-between"] {
  align-items: center !important;
  gap: .75rem !important;
  margin-top: .5rem !important;
}
.remember-me {
  display: inline-flex !important;
  align-items: center !important;
  gap: .45rem !important;
  line-height: 1 !important;
  font-size: .76rem !important;
}
.remember-me input {
  width: 15px !important; height: 15px !important;
  margin: 0 !important;
  flex-shrink: 0;
  position: relative;
  top: 0 !important;
}
.remember-me span { display: inline-block; line-height: 1 !important; transform: translateY(.5px); }
.forgot-link {
  line-height: 1 !important;
  font-size: .76rem !important;
  display: inline-flex; align-items: center;
  white-space: nowrap;
  transform: translateY(-.5px);
}

/* ═══ Бета-баннер (лендинг + публичные страницы) ═══ */
#beta-banner{position:relative;overflow:hidden;padding:1rem 1rem 0;display:none}
#beta-banner .bb-inner{
  position:relative;max-width:72rem;margin:0 auto;
  border-radius:1rem;padding:1.05rem 1.5rem;
  display:flex;align-items:center;gap:1rem;flex-wrap:wrap;
  background:
    linear-gradient(120deg, rgba(var(--primary-rgb,240,75,110),.16) 0%, rgba(139,92,246,.12) 55%, rgba(79,70,229,.14) 100%);
  border:1px solid rgba(var(--primary-rgb,240,75,110),.4);
  box-shadow:0 10px 40px rgba(var(--primary-rgb,240,75,110),.18), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  overflow:hidden;
}
#beta-banner .bb-inner::before{
  content:'';position:absolute;inset:-60% -10%;pointer-events:none;
  background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.14) 50%,transparent 58%);
  transform:translateX(-120%);animation:bbShine 5.5s ease-in-out infinite;
}
@keyframes bbShine{0%,75%{transform:translateX(-120%)}90%,100%{transform:translateX(120%)}}
#beta-banner .bb-badge{
  display:inline-flex;align-items:center;gap:.45rem;
  padding:.32rem .8rem;border-radius:999px;flex-shrink:0;
  font-size:.72rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:#fff;background:linear-gradient(135deg,var(--primary, #f04b6e)),#8b5cf6);
  box-shadow:0 4px 14px rgba(var(--primary-rgb,240,75,110),.45);
  animation:bbPulse 2.6s ease infinite;
}
@keyframes bbPulse{0%,100%{box-shadow:0 4px 14px rgba(var(--primary-rgb,240,75,110),.4)}50%{box-shadow:0 4px 22px rgba(var(--primary-rgb,240,75,110),.65)}}
#beta-banner .bb-dot{width:7px;height:7px;border-radius:50%;background:#fff;animation:bbBlink 1.6s ease infinite}
@keyframes bbBlink{0%,100%{opacity:1}50%{opacity:.25}}
#beta-banner .bb-text{flex:1;min-width:220px}
#beta-banner .bb-title{font-size:1.02rem;font-weight:800;color:#f4f3f6;letter-spacing:-.01em;line-height:1.25}
#beta-banner .bb-sub{font-size:.8rem;color:#9b9ba8;margin-top:.15rem;line-height:1.35}
#beta-banner .bb-cta{
  display:inline-flex;align-items:center;gap:.4rem;flex-shrink:0;
  padding:.55rem 1.15rem;border-radius:.7rem;
  font-size:.82rem;font-weight:700;color:#fff;text-decoration:none;
  background:linear-gradient(135deg,var(--primary, #f04b6e)),var(--primary-strong, #e11d48)));
  box-shadow:0 6px 20px rgba(var(--primary-rgb,240,75,110),.4);
  transition:transform .18s ease,box-shadow .18s ease;
}
#beta-banner .bb-cta:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(var(--primary-rgb,240,75,110),.55)}
#beta-banner .bb-cta svg{transition:transform .2s}
#beta-banner .bb-cta:hover svg{transform:translateX(3px)}
@media (max-width:640px){
  #beta-banner .bb-inner{flex-direction:column;align-items:flex-start;gap:.75rem}
  #beta-banner .bb-cta{width:100%;justify-content:center}
}

/* ═══ Бета-баннер — большая hero-секция ═══ */
#beta-banner{display:none}
#beta-banner.bb-active{display:block}
.bb-wrap{
  position:relative;overflow:hidden;
  max-width:76rem;margin:1.25rem auto 0;
  padding:3.2rem 2.8rem;border-radius:24px;text-align:center;
  background:
    radial-gradient(90% 160% at 15% 0%, rgba(var(--primary-rgb,240,75,110),.22), transparent 55%),
    radial-gradient(90% 160% at 85% 100%, rgba(99,102,241,.18), transparent 55%),
    linear-gradient(135deg, rgba(139,92,246,.10), rgba(var(--primary-rgb,240,75,110),.08));
  border:1px solid rgba(var(--primary-rgb,240,75,110),.42);
  box-shadow:0 24px 70px rgba(var(--primary-rgb,240,75,110),.22), inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
}
.bb-wrap::before{content:'';position:absolute;inset:-40% -20%;pointer-events:none;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.09) 50%,transparent 60%);transform:translateX(-130%);animation:bbBigShine 6.5s ease-in-out infinite}
@keyframes bbBigShine{0%,70%{transform:translateX(-130%)}88%,100%{transform:translateX(130%)}}
.bb-glow{position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none;animation:bbGlow 8s ease-in-out infinite}
.bb-glow-1{width:300px;height:300px;background:rgba(var(--primary-rgb,240,75,110),.25);top:-30%;left:-5%}
.bb-glow-2{width:260px;height:260px;background:rgba(99,102,241,.2);bottom:-30%;right:-3%;animation-name:bbGlow2}
@keyframes bbGlow{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.15)}}
@keyframes bbGlow2{0%,100%{opacity:.55;transform:scale(1)}50%{opacity:.95;transform:scale(1.18)}}
.bb-badge-lg{position:relative;display:inline-flex;align-items:center;gap:.55rem;padding:.5rem 1.3rem;border-radius:999px;margin-bottom:1.15rem;font-size:.8rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:#fff;background:linear-gradient(135deg,var(--primary, #f04b6e)),#8b5cf6);box-shadow:0 8px 26px rgba(var(--primary-rgb,240,75,110),.5);animation:bbBadgePulse 2.4s ease infinite}
@keyframes bbBadgePulse{0%,100%{box-shadow:0 8px 26px rgba(var(--primary-rgb,240,75,110),.45)}50%{box-shadow:0 8px 36px rgba(var(--primary-rgb,240,75,110),.75)}}
.bb-badge-lg i{width:8px;height:8px;border-radius:50%;background:#fff;animation:bbBlink 1.5s ease infinite}
@keyframes bbBlink{0%,100%{opacity:1}50%{opacity:.2}}
.bb-big-title{position:relative;font-size:clamp(1.8rem,4.5vw,3rem);font-weight:800;letter-spacing:-.03em;line-height:1.12;margin:0 0 .7rem;background:linear-gradient(120deg,#fff 25%,var(--primary, #f04b6e)) 60%,#8b5cf6);background-size:200% auto;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:bbTitleShift 6s ease-in-out infinite}
@keyframes bbTitleShift{0%,100%{background-position:0% center}50%{background-position:100% center}}
.bb-big-sub{position:relative;font-size:1.02rem;color:#c9c9d4;line-height:1.5;max-width:36rem;margin:0 auto 1.7rem}
.bb-actions{position:relative;display:flex;gap:.85rem;justify-content:center;flex-wrap:wrap}
.bb-btn{display:inline-flex;align-items:center;gap:.5rem;padding:.85rem 1.8rem;border-radius:.85rem;font-size:.92rem;font-weight:700;color:#fff;text-decoration:none;background:linear-gradient(135deg,var(--primary, #f04b6e)),var(--primary-strong, #e11d48)));box-shadow:0 10px 30px rgba(var(--primary-rgb,240,75,110),.45), inset 0 1px 0 rgba(255,255,255,.22);transition:transform .2s ease,box-shadow .2s ease}
.bb-btn:hover{transform:translateY(-3px);box-shadow:0 16px 42px rgba(var(--primary-rgb,240,75,110),.6)}
.bb-btn svg{transition:transform .22s}
.bb-btn:hover svg{transform:translateX(4px)}
.bb-btn-ghost{background:rgba(255,255,255,.05);border:1px solid var(--border,rgba(255,255,255,.12));box-shadow:none;color:var(--fg,#f4f3f6)}
.bb-btn-ghost:hover{border-color:rgba(var(--primary-rgb,240,75,110),.5);box-shadow:0 8px 24px rgba(var(--primary-rgb,240,75,110),.15)}
@media (max-width:640px){.bb-wrap{padding:2.2rem 1.4rem}.bb-actions .bb-btn{width:100%;justify-content:center}}

/* баннер: отступ от fixed-навигации */
#beta-banner{padding-top:6rem}

/* бета-баннер: примечание про Telegram */
.bb-note{position:relative;font-size:.8rem;color:#9b9ba8;margin-top:1.3rem;display:flex;align-items:center;justify-content:center;gap:.45rem}
.bb-note::before{content:'';width:14px;height:14px;flex-shrink:0;background:rgba(139,92,246,.2);border-radius:50%;display:inline-block;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a78bfa'%3E%3Cpath d='M9.04 15.3l-.38 5.35c.54 0 .78-.23 1.06-.5l2.55-2.44 5.29 3.88c.97.53 1.66.25 1.92-.9l3.48-16.35h.01c.31-1.45-.52-2.02-1.47-1.67L1.24 9.47C-.17 10.02-.15 10.82 1 11.17l5.55 1.73L19.1 5.3c.62-.41 1.18-.18.72.23'/%3E%3C/svg%3E");background-size:9px;background-position:center;background-repeat:no-repeat}

/* Demo-кнопка в профиле: hover-подъём */
.profile-demo-cta:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(34,197,94,.5)!important}

/* ════════════════════════════════════════════════════════════════════
   Мобильные исправления: ничего не вылезает за экран
   ════════════════════════════════════════════════════════════════════ */

/* Меню на мобильных — только burger, ссылки скрыты */
@media (max-width: 899px) {
  .nav-links {
    display: none !important;
  }
  /* glow-свечения прелоадера не вылезают */
  #pub-preloader .pl-glow,
  #pub-preloader .pl-glow-2,
  #pub-preloader .pl-glow-3 {
    max-width: 60vw !important;
    max-height: 60vw !important;
    overflow: hidden;
  }
}

/* Гло бальная защита: ничего не шире экрана на мобильных */
@media (max-width: 720px) {
  .nav-inner,
  .wrap,
  main,
  .accv3-filters,
  .accv3-filters-row,
  .bb-wrap,
  .auth-shell,
  .auth-card,
  .pf-card,
  .pf-grid,
  .prose-card,
  .page-hero,
  .accv3-tablecard {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip;
  }
  .nav-inner { padding: 0 0.75rem !important; gap: 0.5rem !important; }
  .nav-right { padding-left: 0 !important; gap: 0.35rem !important; }
  .wrap { padding: 0 0.85rem !important; }
  /* hero-свечения не вылезают */
  .hero-glow, .hero-glow-2,
  .cta-glow, .bb-glow, .bb-glow-1, .bb-glow-2 {
    max-width: 70vw !important;
    max-height: 50vh !important;
    overflow: hidden;
  }
  /* body без горизонтального скролла */
  body { overflow-x: hidden !important; }
  html { overflow-x: hidden !important; }
}

/* Защита от вылезания декоративных элементов на планшетах */
@media (max-width: 1180px) and (min-width: 721px) {
  .hero-glow, .hero-glow-2,
  .cta-glow, .bb-glow, .bb-glow-1, .bb-glow-2,
  #pub-preloader .pl-glow, #pub-preloader .pl-glow-2, #pub-preloader .pl-glow-3 {
    max-width: 55vw !important;
    max-height: 55vh !important;
    overflow: hidden;
  }
}

/* ── Мобильные таблицы: скролл внутри контейнера, не вылезают за экран ── */
@media (max-width: 720px) {
  /* limits-таблицы гайдов */
  .article-section .limits-table,
  .article-body table,
  .article-section table,
  .prose table,
  .pf-card table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .article-section .limits-table thead,
  .article-section .limits-table tbody,
  .article-body table thead,
  .article-body table tbody,
  .article-section table thead,
  .article-section table tbody,
  .prose table thead,
  .prose table tbody,
  .pf-card table thead,
  .pf-card table tbody {
    display: table !important;
    width: max-content !important;
  }
  /* сами ячейки компактнее */
  .article-section .limits-table th,
  .article-section .limits-table td,
  .article-body table th,
  .article-body table td,
  .article-section table th,
  .article-section table td,
  .prose table th,
  .prose table td,
  .pf-card table th,
  .pf-card table td {
    font-size: 12px !important;
    padding: 6px 8px !important;
    white-space: nowrap !important;
  }
}
