/* ==========================================================================
   HarmonyDlc — design system
   Direction: инженерная точность + швейцарский постер / терминал.
   Тёмный графит с тёплым подтоном, костяной текст, один приглушённый
   латунный акцент. Никаких градиентов, неона, пилюль и парящих карточек.
   Контракт сохранён: --accent / --accent-rgb задаются из settings.php,
   все существующие классы страниц описаны.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* акцент: приглушённая латунь. Переопределяется из settings.php */
  --accent: #c2a878;
  --accent-rgb: 194, 168, 120;

  --fg: 232, 229, 220;              /* костяной нейтральный, тёплый */

  --ink-900: #0a0b0a;
  --ink-850: #0d0e0d;
  --ink-800: #111210;
  --ink-700: #161714;
  --ink-600: #1c1d19;

  --bg-base: var(--ink-900);
  --bg-mid: var(--ink-800);
  --bg-solid: var(--ink-700);
  --bg-card: rgba(var(--fg), 0.026);
  --bg-card-hi: rgba(var(--fg), 0.05);
  --btn-bg: rgba(var(--fg), 0.05);

  --border: rgba(var(--fg), 0.11);
  --border-sm: rgba(var(--fg), 0.065);
  --border-hi: rgba(var(--fg), 0.2);
  --rule: rgba(var(--fg), 0.09);
  --rule-accent: rgba(var(--accent-rgb), 0.5);

  --text-hi: rgba(var(--fg), 0.93);
  --text-md: rgba(var(--fg), 0.64);
  --text-lo: rgba(var(--fg), 0.43);
  --text-dim: rgba(var(--fg), 0.26);

  --ok: 118, 172, 132;
  --err: 196, 98, 86;
  --warn: 190, 154, 88;
  --info: 122, 148, 176;

  --btn-primary-bg: rgb(var(--accent-rgb));
  --btn-primary-fg: #0b0c0a;

  /* прямые углы: радиус — только техническая фаска 2px */
  --r-sm: 2px;
  --r-md: 2px;
  --r-lg: 3px;
  --r-xl: 4px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.55);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.62);

  --grid-step: 88px;
}

/* Светлый вариант в системе оставлен только как страховка. Палитра тёплая,
   бумажная — без синевы и без «SaaS-белого». */
body.light {
  --fg: 28, 26, 22;
  --ink-900: #f3f1ea;
  --ink-850: #efede6;
  --ink-800: #ebe8e0;
  --ink-700: #f7f5ef;
  --ink-600: #e2ded4;
  --bg-base: var(--ink-900);
  --bg-mid: var(--ink-800);
  --bg-solid: var(--ink-700);
  --bg-card: rgba(255, 255, 255, 0.5);
  --bg-card-hi: rgba(255, 255, 255, 0.8);
  --btn-primary-bg: #1c1a15;
  --btn-primary-fg: #f4f2ea;
  --border: rgba(var(--fg), 0.14);
  --border-sm: rgba(var(--fg), 0.08);
  --border-hi: rgba(var(--fg), 0.26);
  --rule: rgba(var(--fg), 0.12);
  --shadow-md: 0 16px 40px rgba(40, 36, 28, 0.12);
  --shadow-lg: 0 34px 70px rgba(40, 36, 28, 0.16);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; height: 100%; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  background: var(--bg-base);
  color: var(--text-hi);
  line-height: 1.6;
  min-height: 100%;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  user-select: none;
  -webkit-user-select: none;
  cursor: default;
}
body * { user-select: none; -webkit-user-select: none; cursor: default; }
body a, body button, body [onclick], body .tab-btn, body .cpick, body .switch .slider { cursor: pointer; }
body input, body select, body textarea { cursor: text; font-family: inherit; }
body select { cursor: pointer; }
button, input, select, textarea { font-family: inherit; color: inherit; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(var(--accent-rgb), 0.32); color: #fff; }
:focus-visible { outline: 1px solid rgba(var(--accent-rgb), 0.85); outline-offset: 3px; border-radius: 0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink-850); }
::-webkit-scrollbar-thumb { background: rgba(var(--fg), 0.14); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent-rgb), 0.45); }

/* --------------------------------------------------------------------------
   Фон: единственный авторский приём — чертёжная сетка-миллиметровка
   -------------------------------------------------------------------------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(var(--fg), 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--fg), 0.05) 1px, transparent 1px);
  background-size: var(--grid-step) var(--grid-step);
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 12%, #000 10%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 12%, #000 10%, rgba(0, 0, 0, 0.35) 55%, transparent 92%);
  opacity: 0.55;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 65%);
}
body.glow-active::before { opacity: 0.85; }
body:not(.glow-active)::before { opacity: 0.4; }
body.tracers-active::after {
  background-image:
    repeating-linear-gradient(90deg, rgba(var(--accent-rgb), 0.045) 0 1px, transparent 1px 96px),
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(var(--accent-rgb), 0.05), transparent 65%);
  animation: tracersMove 34s linear infinite;
}

.glow-cursor {
  position: fixed; pointer-events: none; z-index: 999;
  left: -100px; top: -100px;
  width: 26px; height: 26px; border-radius: 0;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  transform: translate(-50%, -50%) rotate(45deg);
  transition: width 0.15s, height 0.15s, opacity 0.2s;
  opacity: 0;
  visibility: hidden;
}
.glow-cursor.active { opacity: 1; visibility: visible; }

.lang-fade { position: fixed; inset: 0; background: var(--bg-base); z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.32s ease; }
.lang-fade.active { opacity: 1; pointer-events: all; }

@keyframes tracersMove { from { background-position: 0 0, 0 0; } to { background-position: 96px 0, 0 0; } }
@keyframes fadeUp   { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn    { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes slideDown{ from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
@keyframes slideLeft{ from { opacity: 0; translate: 18px 0; } to { opacity: 1; translate: 0 0; } }
@keyframes pulseDot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes glowPulse{ 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes floaty   { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes revScroll { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* --------------------------------------------------------------------------
   Типографика
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-hi);
}

.eyebrow,
.section-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(var(--accent-rgb), 0.9);
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--text-hi);
}

/* --------------------------------------------------------------------------
   Каркас страниц
   -------------------------------------------------------------------------- */
.main > * { animation: fadeUp 0.55s var(--ease) both; }
.main > *:nth-child(1) { animation-delay: 0.03s; }
.main > *:nth-child(2) { animation-delay: 0.07s; }
.main > *:nth-child(3) { animation-delay: 0.11s; }
.main > *:nth-child(4) { animation-delay: 0.15s; }
.main > *:nth-child(5) { animation-delay: 0.19s; }
.main > *:nth-child(6) { animation-delay: 0.23s; }
.main > *:nth-child(n+7) { animation-delay: 0.26s; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp 0.35s var(--ease) both; }
.dash-grid > *, .stats-grid > *, .features-grid > *, .pricing-grid > *, .sub-grid > * { animation: fadeUp 0.45s var(--ease) both; }
.dash-grid > *:nth-child(2), .stats-grid > *:nth-child(2), .features-grid > *:nth-child(2), .pricing-grid > *:nth-child(2) { animation-delay: 0.06s; }
.dash-grid > *:nth-child(3), .stats-grid > *:nth-child(3), .features-grid > *:nth-child(3), .pricing-grid > *:nth-child(3) { animation-delay: 0.12s; }
.dash-grid > *:nth-child(4), .stats-grid > *:nth-child(4), .features-grid > *:nth-child(4) { animation-delay: 0.18s; }
.stats-grid > *:nth-child(5), .features-grid > *:nth-child(5) { animation-delay: 0.24s; }
.features-grid > *:nth-child(6) { animation-delay: 0.3s; }

/* Контент не зависит от скролла: никаких scroll-driven reveal-анимаций —
   иначе при переходе по якорю, печати и в скриншотах блоки остаются прозрачными.
   Анимируем только появление страницы целиком. */
.page-main > .hero { animation: fadeIn 0.5s var(--ease) both; }

/* --------------------------------------------------------------------------
   Шапка: плоская панель на одной волосяной линии
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: rgba(10, 11, 10, 0.82);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--border-sm);
  animation: slideDown 0.5s var(--ease) both;
  transition: background 0.3s, border-color 0.3s;
}
body.light .header { background: rgba(243, 241, 234, 0.88); }
.header.scrolled { background: rgba(10, 11, 10, 0.95); border-bottom-color: var(--border); }
body.light .header.scrolled { background: rgba(243, 241, 234, 0.97); }

.logo-section, .header .logo-section { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.header .logo-icon {
  width: 26px; height: 26px; border-radius: 0; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--text-md);
  background: transparent; border: 1px solid var(--border-hi);
  transition: border-color 0.25s, color 0.25s;
}
.header .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.header .logo-section:hover .logo-icon { border-color: rgba(var(--accent-rgb), 0.7); color: var(--text-hi); }
.header .logo-text, .logo-text {
  font-family: var(--font-display); font-size: 12.5px; font-weight: 500;
  color: var(--text-hi); letter-spacing: 0.04em;
}

.header .nav, .header nav { display: flex; gap: 2px; align-items: center; }
.header .nav a, .header nav a {
  position: relative; padding: 7px 13px; border-radius: 0;
  color: var(--text-lo); text-decoration: none;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.header .nav a:hover, .header nav a:hover { color: var(--text-hi); }
.header .nav a.active, .header nav a.active { color: var(--text-hi); }
.header .nav a.active::after, .header nav a.active::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 0; height: 1px;
  background: var(--rule-accent);
}
.header .right-section, .right-section { display: flex; align-items: center; gap: 10px; }

.header-ctrl, .hctrl {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; white-space: nowrap;
  background: transparent; border: 1px solid var(--border); border-radius: 0;
  color: var(--text-md); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.header-ctrl:hover, .hctrl:hover {
  background: rgba(var(--accent-rgb), 0.08);
  border-color: rgba(var(--accent-rgb), 0.5);
  color: var(--text-hi);
}
.header-ctrl:active, .hctrl:active { transform: scale(0.97); }

.uavatar {
  width: 30px; height: 30px; border-radius: 0; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border-hi);
  color: var(--text-md); font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.uavatar:hover { border-color: rgba(var(--accent-rgb), 0.6); color: var(--text-hi); }

.admin-badge-dot {
  width: 7px; height: 7px; border-radius: 0; display: none;
  background: rgb(var(--accent-rgb));
  animation: pulseDot 2.2s ease-in-out infinite;
}
.admin-badge-dot.active { display: block; }

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */
.btn-solid, .btn-ghost, .btn-main, .btn-buy, .modal-pay-btn, .promo-btn, .abtn {
  font-family: inherit; transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  position: relative;
}

.btn-solid, .btn-main, .pricing-card .btn-buy, .modal-pay-btn, .abtn.accent {
  color: var(--btn-primary-fg);
  border: 1px solid var(--btn-primary-bg);
  background: var(--btn-primary-bg);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.btn-solid:hover, .btn-main:hover, .pricing-card .btn-buy:hover, .modal-pay-btn:hover, .abtn.accent:hover {
  background: #d6bd8d; border-color: #d6bd8d;
}
.btn-solid:active, .btn-main:active, .pricing-card .btn-buy:active, .modal-pay-btn:active, .abtn.accent:active { transform: translateY(1px); }

.btn-solid {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 0; text-decoration: none;
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 30px; border-radius: 0;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
  background: transparent; color: var(--text-md); border: 1px solid var(--border-hi);
}
.btn-ghost:hover { border-color: rgba(var(--accent-rgb), 0.65); color: var(--text-hi); background: rgba(var(--accent-rgb), 0.06); }
.btn-ghost:active { transform: translateY(1px); }
button:disabled, .btn-main:disabled, .modal-pay-btn:disabled { opacity: 0.42; cursor: not-allowed !important; transform: none !important; }

/* --------------------------------------------------------------------------
   Главный экран
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; align-items: flex-start;
  padding: 152px 32px 72px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.2; filter: grayscale(1) contrast(1.15) brightness(0.85); }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2.4s ease-in-out; }
.hero-bg img.active { opacity: 1; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(10, 11, 10, 0.35) 35%, rgba(10, 11, 10, 0.85) 82%, var(--bg-base) 100%);
}
.hero-bg-fade { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, var(--bg-base) 0%, transparent 18%, transparent 68%, var(--bg-base) 100%); }
.page-main .hero-bg-logo {
  position: absolute; right: -120px; top: 18%; width: 520px; height: 520px;
  z-index: 0; pointer-events: none; opacity: 0.07;
}
.page-main .hero-bg-logo img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.4); }

.hero-content { position: relative; z-index: 1; text-align: left; max-width: 1180px; width: 100%; margin: 0 auto; }
.hero-content .tagline {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-md);
  background: none; border: none; padding: 0;
}
.hero-content .tagline::before { content: ''; width: 22px; height: 1px; background: var(--rule-accent); }
.hero-content h1 {
  position: relative; display: block; margin: 0 0 14px; cursor: default;
  font-family: var(--font-display); font-size: clamp(42px, 8.4vw, 88px); font-weight: 700;
  letter-spacing: -0.05em; line-height: 0.96; color: var(--text-hi);
}
.hero-content h1 .hl { position: relative; display: inline; color: rgba(var(--accent-rgb), 1); }
.hero-content h1 .hl::before { display: none; }
.hero-content h1 .sub { display: block; margin-top: 6px; color: var(--text-lo); font-weight: 400; font-size: 0.36em; letter-spacing: 0.02em; }
.hero-content .subtitle { font-size: 17px; font-weight: 400; color: var(--text-md); margin: 0 0 14px; max-width: 640px; }
.hero-content .description { font-size: 15px; font-weight: 300; line-height: 1.8; color: var(--text-lo); max-width: 560px; margin: 0 0 34px; }

/* Метрики — плотная спецификация строками, а не три карточки */
.hero-metrics {
  display: grid; grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 0; margin: 30px 0 26px; border-top: 1px solid var(--rule);
  max-width: 720px;
}
.hero-metrics .m-item {
  display: flex; flex-direction: column; padding: 16px 20px 14px 0;
  background: none; border: none; border-bottom: 1px solid var(--rule); border-radius: 0;
  transition: none;
}
.hero-metrics .m-item:hover { transform: none; border-color: var(--rule); }
.hero-metrics .m-val {
  font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; color: var(--text-hi); order: 2;
}
.hero-metrics .m-lbl { order: 1; font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo); }
.hero-metrics .m-sub { order: 3; font-size: 10.5px; color: var(--text-dim); }

.hero-legal { font-size: 10.5px; color: var(--text-dim); margin-top: 20px; max-width: 520px; line-height: 1.7; font-weight: 300; }
.hero-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

/* --------------------------------------------------------------------------
   AFK-оверлей
   -------------------------------------------------------------------------- */
.page-afk { overflow: hidden; height: 100vh; }
.page-afk .hero { padding: 0; justify-content: center; align-items: center; }
.page-afk .hero-bg { opacity: 0.22; }
.page-afk .hero-bg-logo { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; opacity: 0.1; }
.page-afk .hero-bg-logo img { width: min(760px, 80vmin); height: min(760px, 80vmin); object-fit: contain; filter: grayscale(1) brightness(2.4) contrast(1.4); animation: floaty 9s ease-in-out infinite; }
.back-btn {
  position: fixed; top: 20px; right: 20px; z-index: 100; width: 40px; height: 40px; border-radius: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px; text-decoration: none;
  color: var(--text-md); background: rgba(10, 11, 10, 0.7); border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.back-btn:hover { color: var(--text-hi); border-color: rgba(var(--accent-rgb), 0.6); }

/* --------------------------------------------------------------------------
   Секции: подпись-номер слева, крупный заголовок, линия
   -------------------------------------------------------------------------- */
.tx-band { height: 1px; background: var(--rule); }

.section { padding: 88px 32px; max-width: 1180px; margin: 0 auto; }
.section-title {
  font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); font-weight: 500;
  letter-spacing: -0.03em; text-align: left; color: var(--text-hi); margin-bottom: 10px;
}
.section-title .hl { color: rgba(var(--accent-rgb), 1); }
.section-title .brand-title { color: var(--text-hi); }
.section-sub { text-align: left; font-size: 14px; font-weight: 300; color: var(--text-lo); margin: 0 0 40px; max-width: 620px; }

/* Строка спецификации — общий приём для контентных блоков */
.spec-row {
  display: grid; grid-template-columns: 76px minmax(150px, 220px) minmax(0, 1fr);
  gap: 20px; align-items: baseline;
  padding: 20px 0; border-top: 1px solid var(--rule);
}
.spec-num { font-family: var(--font-mono); font-size: 11px; color: rgba(var(--accent-rgb), 0.8); letter-spacing: 0.1em; }
.spec-name { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--text-hi); letter-spacing: -0.01em; }
.spec-desc { font-size: 13.5px; font-weight: 300; line-height: 1.7; color: var(--text-lo); }
.spec-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); }
.spec-list { border-bottom: 1px solid var(--rule); }

/* Блоки-панели: волосяная рамка, без тени и подъёма */
.feature-card, .glow-card, .pricing-card, .dash-card, .panel, .stat-card, .profile-hero, .modal-box, .card {
  background: var(--bg-card);
  border: 1px solid var(--border-sm);
  box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
body.light .feature-card, body.light .glow-card, body.light .pricing-card, body.light .dash-card,
body.light .panel, body.light .stat-card, body.light .profile-hero, body.light .modal-box, body.light .card { background: var(--bg-card-hi); }
.feature-card, .glow-card, .pricing-card, .dash-card, .stat-card, .profile-hero, .panel {
  position: relative; border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
}
.feature-card::before, .glow-card::before, .pricing-card::before, .dash-card::before,
.stat-card::before, .profile-hero::before, .panel::before { display: none; }
.feature-card:hover, .glow-card:hover, .pricing-card:hover, .dash-card:hover, .stat-card:hover, .profile-hero:hover {
  transform: none; border-color: rgba(var(--accent-rgb), 0.4); box-shadow: none;
}
.panel:hover { border-color: var(--border); }

/* Возможности — плотные пронумерованные строки, а не три равные карточки */
.features-grid { display: block; border-bottom: 1px solid var(--rule); counter-reset: feat; }
.feature-card {
  counter-increment: feat;
  display: grid; grid-template-columns: 76px minmax(150px, 220px) minmax(0, 1fr);
  gap: 20px; align-items: baseline;
  padding: 20px 14px 20px 0; border: none; border-top: 1px solid var(--rule); background: none;
}
.feature-card::after {
  content: counter(feat, decimal-leading-zero);
  grid-column: 1; grid-row: 1;
  font-family: var(--font-mono); font-size: 11px; color: rgba(var(--accent-rgb), 0.8);
}
.feature-card h3 { grid-column: 2; grid-row: 1; font-size: 14px; font-weight: 500; color: var(--text-hi); margin: 0; }
.feature-card p { grid-column: 3; grid-row: 1; font-size: 13.5px; font-weight: 300; line-height: 1.7; color: var(--text-lo); }
.feature-card:hover { background: rgba(var(--fg), 0.018); }

/* --------------------------------------------------------------------------
   Сравнение скриншотов
   -------------------------------------------------------------------------- */
.preview-section { padding: 56px 32px 88px; max-width: 1000px; margin: 0 auto; }
.preview-title {
  font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 500;
  letter-spacing: -0.03em; text-align: left; color: var(--text-hi); margin-bottom: 8px;
}
.preview-sub { text-align: left; font-size: 13.5px; color: var(--text-lo); margin-bottom: 26px; font-weight: 300; }

.client-demo-compare {
  position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 16 / 9;
  background: var(--ink-850); border: 1px solid var(--border); cursor: ew-resize; touch-action: none;
  box-shadow: none;
}
.client-demo-compare::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(var(--fg), 0.05); }
.client-demo-compare-image {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
  filter: saturate(0.82) contrast(1.02);
}
.client-demo-compare-before { clip-path: inset(0 calc(100% - var(--compare-split, 50%)) 0 0); }
.client-demo-compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--compare-split, 50%); width: 1px; z-index: 3; pointer-events: none;
  background: rgba(var(--accent-rgb), 0.9);
}
.client-demo-compare-handle {
  position: absolute; top: 50%; left: var(--compare-split, 50%); z-index: 4; width: 40px; height: 40px; border-radius: 0;
  transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; pointer-events: none;
  color: var(--text-hi); background: rgba(10, 11, 10, 0.85); border: 1px solid rgba(var(--accent-rgb), 0.7);
  box-shadow: none; transition: background 0.2s, border-color 0.2s;
}
.client-demo-compare-handle svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: square; stroke-linejoin: miter; fill: none; }
.client-demo-compare:hover .client-demo-compare-handle { background: rgba(var(--accent-rgb), 0.85); color: var(--btn-primary-fg); border-color: rgba(var(--accent-rgb), 0.85); }

/* --------------------------------------------------------------------------
   Модули — лист спецификации
   -------------------------------------------------------------------------- */
.glow-cards-wrapper { padding: 0 0 20px; }
.glow-grid { display: block; border-bottom: 1px solid var(--rule); counter-reset: mod; }
.glow-card {
  counter-increment: mod;
  display: grid; grid-template-columns: 76px minmax(150px, 200px) minmax(0, 1fr) minmax(0, 240px);
  gap: 20px; align-items: baseline;
  padding: 20px 14px 20px 0; border: none; border-top: 1px solid var(--rule); background: none;
}
.glow-card::after {
  content: counter(mod, decimal-leading-zero);
  grid-column: 1; grid-row: 1;
  font-family: var(--font-mono); font-size: 11px; color: rgba(var(--accent-rgb), 0.8);
}
.glow-card h4 {
  grid-column: 2; grid-row: 1;
  font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--text-hi);
  letter-spacing: 0.02em; margin: 0;
}
.glow-card p { grid-column: 3; grid-row: 1; font-size: 13.5px; font-weight: 300; line-height: 1.7; color: var(--text-lo); }
.glow-card .glow-list { grid-column: 4; grid-row: 1; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.glow-card .glow-list li {
  display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em; color: var(--text-md);
  border: 1px solid var(--border-sm); padding: 3px 8px;
}
.glow-card .glow-list li::before { content: none; }
.glow-card:hover { background: rgba(var(--fg), 0.018); }

/* --------------------------------------------------------------------------
   Товары — горизонтальные строки спецификации
   -------------------------------------------------------------------------- */
.pricing-section { padding: 88px 32px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(var(--fg), 0.012); }
.pricing-grid { display: flex; flex-direction: column; gap: 0; max-width: 1180px; margin: 0 auto; align-items: stretch; border-bottom: 1px solid var(--rule); }

.pricing-card {
  display: grid; grid-template-columns: 240px minmax(0, 1fr);
  border: none; border-top: 1px solid var(--rule); background: none;
  border-radius: 0; padding: 0; text-align: left; overflow: visible;
  will-change: auto;
}
.pricing-card.pricing-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.pricing-card.pricing-card:hover { transform: none; border-color: var(--rule); box-shadow: none; }

.pricing-card .product-img {
  position: relative; z-index: 0; width: 100%; height: 100%; min-height: 148px;
  aspect-ratio: auto; flex-shrink: 0; overflow: hidden; contain: paint;
  transform: none; background: var(--ink-850); border-right: 1px solid var(--rule);
}
.pricing-card .product-img::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity 0.35s var(--ease);
  background: rgba(var(--accent-rgb), 0.35);
}
.pricing-card:hover .product-img::before { opacity: 1; }
.pricing-card .product-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
  filter: grayscale(1) contrast(1.1) brightness(0.72); transition: filter 0.35s var(--ease);
}
.pricing-card:hover .product-img img { filter: grayscale(0.55) contrast(1.05) brightness(0.85); }
.pricing-card .product-img::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 11, 10, 0.5), rgba(10, 11, 10, 0.15) 60%, rgba(10, 11, 10, 0.75));
}

.pricing-card .ver-badge {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 12px 14px; text-align: left; pointer-events: none;
}
.pricing-card .ver-badge .ver-num,
.pricing-card .ver-badge .ver-ed { position: relative; z-index: 1; display: block; text-shadow: none; }
.pricing-card .ver-badge .ver-num {
  font-family: var(--font-display); font-size: 17px; font-weight: 700;
  line-height: 1; letter-spacing: -0.02em; color: #fff;
}
.pricing-card .ver-badge .ver-ed {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
}

.pricing-card .card-body {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
  grid-template-areas:
    "name  price"
    "desc  price"
    "list  buy";
  gap: 6px 32px; align-content: center;
  padding: 26px 28px;
}
.pricing-card::before { display: none; }
.pricing-card .name {
  grid-area: name;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(var(--accent-rgb), 0.95); margin: 0;
}
.pricing-card .price {
  grid-area: price; text-align: right; align-self: center;
  font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 700;
  letter-spacing: -0.05em; color: var(--text-hi); margin: 0; font-variant-numeric: tabular-nums;
}
.pricing-card .price .currency { font-size: 16px; color: var(--text-lo); vertical-align: super; margin-right: 3px; }
.pricing-card .desc { grid-area: desc; font-size: 13px; color: var(--text-lo); margin: 0; }
.pricing-card .features-list {
  grid-area: list; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 8px 0 0;
}
.pricing-card .features-list li {
  position: relative; font-size: 12.5px; color: var(--text-md); padding: 2px 0 2px 14px;
}
.pricing-card .features-list li::before {
  content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 1px;
  background: rgba(var(--accent-rgb), 0.9);
}
.pricing-card .btn-buy { grid-area: buy; align-self: end; width: 100%; padding: 13px 18px; border-radius: 0; font-size: 11px; }
.pricing-card.featured { border-top-color: rgba(var(--accent-rgb), 0.4); }

/* Отзывы — бегущие строки протокола */
.reviews-strip {
  max-width: 1180px; margin: 0 auto 30px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.review-row { display: flex; gap: 8px; width: max-content; will-change: transform; animation: revScroll 64s linear infinite; }
.review-row.rev { animation-duration: 82s; animation-direction: reverse; }
.reviews-strip:hover .review-row { animation-play-state: paused; }

.review-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; min-width: 272px; max-width: 330px;
  background: rgba(var(--fg), 0.022); border: 1px solid var(--border-sm); border-radius: 0;
  transition: border-color 0.25s, background 0.25s;
}
.review-chip:hover { border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.04); }
.rev-ava {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #0b0c0a;
  text-shadow: none; box-shadow: none;
}
.rev-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; text-align: left; }
.rev-name { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-hi); line-height: 1.2; letter-spacing: 0.02em; }
.rev-stars { position: relative; display: inline-block; font-size: 9px; letter-spacing: 2px; line-height: 1; color: rgba(var(--fg), 0.16); white-space: nowrap; }
.rev-stars .fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: rgba(var(--accent-rgb), 0.95); text-shadow: none; }
.rev-text { font-size: 11.5px; font-weight: 300; line-height: 1.5; color: var(--text-lo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.light .review-chip { background: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */
.footer-wrap { position: relative; padding: 56px 32px 32px; border-top: 1px solid var(--rule); background: none; }
.footer-wrap::before { display: none; }
.footer-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 40px; }
.footer-inner:has(> .footer-links) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; max-width: 800px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .flicon {
  width: 26px; height: 26px; border-radius: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--text-md);
  background: transparent; border: 1px solid var(--border-hi);
}
.footer-brand .flicon img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand .flname { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; color: var(--text-hi); letter-spacing: 0.03em; }
.footer-brand .fcopy, .fcopy { font-size: 11.5px; line-height: 1.85; font-weight: 300; color: var(--text-dim); }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 12px; }
.footer-col a, .footer-links a { display: block; text-decoration: none; font-size: 12.5px; font-weight: 300; color: var(--text-dim); padding: 3px 0; transition: color 0.2s; }
.footer-col a:hover, .footer-links a:hover { color: var(--text-hi); translate: 0 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { padding: 0; }
.footer-links a:hover { color: var(--text-hi); }

/* --------------------------------------------------------------------------
   Модальные окна
   -------------------------------------------------------------------------- */
.modal-overlay, .modal {
  display: none; position: fixed; inset: 0; align-items: center; justify-content: center;
  background: rgba(6, 7, 6, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-overlay { z-index: 500; }
.modal { z-index: 200; }
.modal-overlay.active, .modal.active { display: flex; animation: fadeIn 0.22s ease both; }
.modal-box {
  position: relative; width: 92%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  border-radius: 0; padding: 32px; background: var(--bg-solid);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal-box, .modal.active .modal-box { animation: popIn 0.3s var(--ease) both; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 0;
  border: 1px solid var(--border); background: transparent; color: var(--text-lo); font-size: 13px;
  transition: color 0.2s, border-color 0.2s;
}
.modal-close:hover { color: var(--err); background: transparent; transform: none; border-color: rgba(var(--err), 0.5); }
.modal-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-hi); margin-bottom: 6px; letter-spacing: -0.02em; }
.modal-sub { font-size: 12.5px; color: var(--text-lo); margin-bottom: 22px; }
.modal-price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; margin-bottom: 18px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.modal-price-lbl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo); }
.modal-price-val { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.04em; color: var(--text-hi); }
.modal-price-val .old { font-family: var(--font-body); font-size: 13px; color: var(--text-dim); text-decoration: line-through; margin-right: 8px; font-weight: 400; }
.modal-field { margin-bottom: 16px; }
.modal-field label, .field label, .form-row label {
  display: block; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 7px;
}
.modal-field-row { display: flex; gap: 8px; }
.modal-field input {
  width: 100%; padding: 12px 13px; border-radius: 0; outline: none; font-size: 13px;
  background: rgba(var(--fg), 0.03); border: 1px solid var(--border); color: var(--text-hi);
  transition: border-color 0.2s, background 0.2s;
}
.modal-field input:focus { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--fg), 0.05); box-shadow: none; }
.modal-field input::placeholder, .field input::placeholder, .ainput::placeholder { color: var(--text-dim); }
.promo-btn {
  padding: 0 18px; border-radius: 0; background: transparent; border: 1px solid var(--border-hi);
  color: var(--text-md); font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
}
.promo-btn:hover { border-color: rgba(var(--accent-rgb), 0.6); color: rgba(var(--accent-rgb), 1); background: rgba(var(--accent-rgb), 0.06); }

.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); }
.pay-method {
  padding: 12px 6px; border-radius: 0; border: none; border-right: 1px solid var(--border);
  background: transparent; color: var(--text-md); font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pay-method:last-child { border-right: none; }
.pay-method:hover { background: rgba(var(--fg), 0.04); color: var(--text-hi); transform: none; }
.pay-method.active { background: rgba(var(--accent-rgb), 0.12); color: rgba(var(--accent-rgb), 1); box-shadow: none; border-right-color: var(--border); }
.pay-method-note { font-size: 11.5px; line-height: 1.6; color: var(--text-lo); margin-top: 9px; }
.pay-method-note:empty { display: none; }
.promo-msg { font-size: 11.5px; margin-top: 8px; min-height: 16px; }
.promo-msg.ok, .modal-status.ok { color: rgb(var(--ok)); }
.promo-msg.err, .modal-status.err { color: rgb(var(--err)); }
.modal-pay-btn { width: 100%; padding: 14px 0; border-radius: 0; margin-top: 10px; }
.modal-status { text-align: center; font-size: 12.5px; margin-top: 14px; min-height: 16px; color: var(--text-lo); }
.modal-actions { display: flex; gap: 8px; margin-top: 22px; justify-content: flex-end; }
.pay-success { display: none; text-align: left; padding: 6px 0; }
.pay-success.active { display: block; animation: fadeIn 0.3s ease both; }
.pay-success .checkmark {
  width: 44px; height: 44px; border-radius: 0; margin: 0 0 16px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  color: rgb(var(--ok)); background: transparent; border: 1px solid rgba(var(--ok), 0.5);
  box-shadow: none;
}
.pay-success h3 { font-size: 16px; font-weight: 700; color: var(--text-hi); margin-bottom: 6px; }
.pay-success p { font-size: 12.5px; color: var(--text-lo); margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   Личный кабинет
   -------------------------------------------------------------------------- */
.page-dashboard { display: flex; flex-direction: column; min-height: 100vh; }
.page-dashboard .main { flex: 1; padding: 132px 32px 64px; max-width: 1180px; margin: 0 auto; width: 100%; }

.profile-hero {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 24px;
  margin-bottom: 36px; padding: 24px 0; border: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  background: none; border-radius: 0; overflow: visible;
}
.profile-hero::after { display: none; }
.profile-avatar {
  position: relative; width: 64px; height: 64px; border-radius: 0; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  color: rgba(var(--accent-rgb), 1); background: transparent;
  border: 1px solid var(--border-hi); box-shadow: none; overflow: hidden; isolation: isolate;
}
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 0; display: block; z-index: 2; filter: grayscale(0.3); }
.profile-avatar::before { display: none; }
.profile-info h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-hi); }
.profile-info p { font-size: 12.5px; font-weight: 300; color: var(--text-lo); margin-top: 3px; }

.role-badge, .badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 0;
  font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.role-badge { margin-top: 9px; }
.role-owner, .badge-owner { background: rgba(var(--accent-rgb), 0.1); color: rgba(var(--accent-rgb), 1); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
.role-admin, .badge-admin { background: rgba(var(--info), 0.1); color: rgb(160, 180, 205); box-shadow: inset 0 0 0 1px rgba(var(--info), 0.35); }
.role-user, .badge-user { background: transparent; color: var(--text-md); box-shadow: inset 0 0 0 1px var(--border); }
.badge-active { background: rgba(var(--ok), 0.1); color: rgb(150, 195, 162); box-shadow: inset 0 0 0 1px rgba(var(--ok), 0.35); }
.badge-banned { background: rgba(var(--err), 0.1); color: rgb(210, 140, 130); box-shadow: inset 0 0 0 1px rgba(var(--err), 0.35); }
.badge-online { background: rgba(var(--ok), 0.1); color: rgb(150, 195, 162); box-shadow: inset 0 0 0 1px rgba(var(--ok), 0.4); }
.badge-offline { background: transparent; color: var(--text-dim); box-shadow: inset 0 0 0 1px var(--border); }
.subChk { accent-color: rgb(var(--accent-rgb)); width: 14px; height: 14px; cursor: pointer; }

/* Три статуса — строки спецификации, а не карточки */
.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 36px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dash-card {
  border: none; border-right: 1px solid var(--rule); border-radius: 0;
  padding: 20px 22px 20px 0; background: none;
}
.dash-card:last-child { border-right: none; }
.dash-card .dlbl { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 8px; }
.dash-card .dval { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.04em; color: var(--text-hi); }
.dash-card .dsub { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; font-weight: 300; }

.section-hd {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-lo);
}
.section-hd::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 40px; margin-bottom: 36px; }
.page-dashboard .panel { border: none; border-top: 1px solid var(--rule); border-radius: 0; padding: 22px 0; background: none; }

.info-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border-sm); }
.info-row:last-child { border-bottom: none; }
.info-lbl { font-size: 12.5px; color: var(--text-lo); }
.info-val { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--text-md); word-break: break-all; text-align: right; }
.info-val.big { font-family: var(--font-display); font-size: 15px; color: var(--text-hi); }
.purchase-row { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-sm); transition: background 0.2s; }
.purchase-row:last-child { border-bottom: none; }
.purchase-row:hover { padding-left: 0; background: rgba(var(--fg), 0.02); }
.purchase-name { flex: 1; font-size: 13.5px; font-weight: 500; color: var(--text-hi); }
.purchase-date { margin-right: auto; padding-right: 14px; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-dim); }
.purchase-price { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: rgba(var(--accent-rgb), 1); }

/* --------------------------------------------------------------------------
   Админка — техническая консоль
   -------------------------------------------------------------------------- */
.page-admin .main { padding: 132px 32px 80px; max-width: 1320px; margin: 0 auto; }
.page-admin .page-title { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 6px; color: var(--text-hi); }
.page-admin .page-sub { color: var(--text-lo); font-size: 13px; margin-bottom: 24px; }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 0;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-md); background: transparent; border: 1px solid var(--border);
}
.live-dot { width: 6px; height: 6px; border-radius: 0; background: rgb(var(--ok)); box-shadow: none; animation: pulseDot 1.8s ease-in-out infinite; }
.live-dot.off { background: rgba(var(--fg), 0.25); animation: none; }

.tabs {
  display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 26px; padding: 0;
  border: none; border-bottom: 1px solid var(--rule); border-radius: 0; background: none;
}
.tab-btn {
  padding: 11px 18px; border: none; border-bottom: 1px solid transparent; border-radius: 0;
  background: transparent; color: var(--text-lo); font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}
.tab-btn:hover { color: var(--text-hi); background: none; }
.tab-btn.active { color: var(--text-hi); background: none; border-bottom-color: var(--rule-accent); box-shadow: none; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin-bottom: 26px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.stat-card {
  border: none; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  border-radius: 0; padding: 18px;
  background: none;
}
.stat-card:hover { transform: none; border-color: var(--rule); border-right-color: var(--rule); }
.stat-card::before { display: none !important; }
.stat-lbl { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 8px; }
.stat-val { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.04em; color: var(--text-hi); font-variant-numeric: tabular-nums; }
.stat-hint { margin-top: 6px; font-size: 10.5px; color: var(--text-dim); }
.stat-card.ok .stat-val { color: rgb(var(--ok)); }
.stat-card.err .stat-val { color: rgb(var(--err)); }
.stat-card.warn .stat-val { color: rgb(var(--warn)); }
.stat-card.info .stat-val { color: rgb(var(--info)); }

.page-admin .panel { border: 1px solid var(--rule); border-radius: 0; padding: 0; margin-top: 18px; background: none; }
.panel-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px; border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-md);
}
.panel-body { padding: 6px 0; }

.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left; padding: 11px 14px; font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.16em;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.tbl td { padding: 12px 14px; vertical-align: middle; color: var(--text-md); border-bottom: 1px solid var(--border-sm); }
.tbl tr { cursor: pointer; transition: background 0.18s; }
.tbl tbody tr:hover td, .tbl tr:hover td { background: rgba(var(--accent-rgb), 0.045); }
.tbl tr:last-child td { border-bottom: none; }

.abtn {
  margin: 2px 2px 2px 0; padding: 6px 12px; border-radius: 0; background: transparent;
  border: 1px solid var(--border); color: var(--text-md);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
}
.abtn:hover { background: rgba(var(--fg), 0.05); border-color: var(--border-hi); color: var(--text-hi); transform: none; }
.abtn:active { transform: none; }
.abtn.g { color: rgb(150, 195, 162); border-color: rgba(var(--ok), 0.3); }
.abtn.g:hover { background: rgba(var(--ok), 0.1); border-color: rgba(var(--ok), 0.55); color: rgb(178, 215, 188); }
.abtn.r { color: rgb(210, 140, 130); border-color: rgba(var(--err), 0.3); }
.abtn.r:hover { background: rgba(var(--err), 0.1); border-color: rgba(var(--err), 0.55); color: rgb(225, 165, 155); }
.abtn.b { color: rgb(160, 180, 205); border-color: rgba(var(--info), 0.3); }
.abtn.b:hover { background: rgba(var(--info), 0.1); border-color: rgba(var(--info), 0.55); color: rgb(190, 206, 228); }
.abtn.accent { padding: 7px 16px; }

.ainput, .aselect {
  padding: 10px 12px; border-radius: 0; outline: none; font-size: 12.5px;
  background: rgba(var(--fg), 0.03); border: 1px solid var(--border); color: var(--text-hi);
  transition: border-color 0.2s, background 0.2s;
}
.ainput { width: 100%; }
.ainput:focus, .aselect:focus { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--fg), 0.05); box-shadow: none; }
.aselect option { background: var(--bg-solid); color: var(--text-hi); }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-row label { margin-bottom: 0; }

.color-palette { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cpick { width: 34px; height: 34px; border-radius: 0; border: 1px solid var(--border); transition: border-color 0.2s, transform 0.2s; }
.cpick:hover { transform: none; border-color: var(--border-hi); }
.cpick.active { transform: none; border-color: rgba(var(--fg), 0.85); box-shadow: 0 0 0 2px var(--bg-base), 0 0 0 3px rgba(var(--fg), 0.35); }

.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; margin-top: 0; background: var(--rule); }
.img-item { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0; background: var(--ink-850); border: none; transition: none; }
.img-item:hover { transform: none; border-color: transparent; }
.img-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); transition: filter 0.3s; }
.img-item:hover img { transform: none; filter: grayscale(0); }
.img-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 4px; justify-content: flex-end; padding: 8px; background: rgba(10, 11, 10, 0.85); translate: 0 100%; transition: translate 0.25s var(--ease); }
.img-item:hover .img-actions { translate: 0 0; }
.page-admin .modal-box { max-width: 520px; }
.page-admin .modal-box.wide { max-width: 760px; }

.hwid-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--rule); }
.hwid-row:last-child { border-bottom: none; }
.hwid-info { flex: 1; min-width: 130px; }
.hwid-name { font-size: 13px; font-weight: 500; color: var(--text-hi); }
.hwid-price { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-hi); }
.roles-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }

.user-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.user-actions .abtn { margin: 0; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.profile-field { padding: 12px 14px; border-radius: 0; background: var(--bg-base); border: none; }
.profile-field.full { grid-column: 1 / -1; }
.profile-k { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-lo); text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 4px; }
.profile-v { font-size: 13px; color: var(--text-hi); word-break: break-all; font-weight: 400; }
.profile-v.mono { font-family: var(--font-mono); font-size: 12px; color: var(--text-md); }
.sub-chip { display: inline-block; font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; margin: 2px 3px 2px 0; border-radius: 0; background: transparent; border: 1px solid rgba(var(--accent-rgb), 0.35); color: var(--text-md); }
.refresh-select {
  height: 30px; padding: 0 10px; border-radius: 0; background: transparent;
  border: 1px solid var(--border); color: var(--text-md);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
}

.toast {
  position: fixed; right: 24px; bottom: 24px; z-index: 600; max-width: 340px; padding: 13px 18px; border-radius: 0;
  font-size: 12.5px; color: var(--text-hi); background: var(--bg-solid); border: 1px solid var(--border-hi);
  box-shadow: var(--shadow-md); translate: 0 90px; opacity: 0; pointer-events: none;
  transition: translate 0.35s var(--ease), opacity 0.25s;
}
.toast.show { translate: 0 0; opacity: 1; }
.toast.success { border-color: rgba(var(--ok), 0.45); color: rgb(150, 195, 162); }
.toast.error { border-color: rgba(var(--err), 0.45); color: rgb(210, 140, 130); }

.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 0; background: rgba(var(--fg), 0.1); border: 1px solid var(--border); transition: background 0.25s var(--ease), border-color 0.25s; }
.switch .slider::before { content: ''; position: absolute; left: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 0; background: var(--text-lo); transition: transform 0.28s var(--ease), background 0.25s; }
.switch input:checked + .slider { background: rgba(var(--accent-rgb), 0.2); border-color: rgba(var(--accent-rgb), 0.6); }
.switch input:checked + .slider::before { transform: translateX(18px); background: rgba(var(--accent-rgb), 1); }

/* --------------------------------------------------------------------------
   Юридические документы
   -------------------------------------------------------------------------- */
.page-doc .main { padding: 140px 32px 90px; max-width: 760px; margin: 0 auto; }
.doc-title { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 10px; color: var(--text-hi); }
body.light .doc-title { color: var(--text-hi); }
.doc-date {
  display: block; margin-bottom: 40px; padding: 0 0 14px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
  background: none; border: none; border-bottom: 1px solid var(--rule); border-radius: 0;
}
.doc-section { position: relative; margin-bottom: 0; padding: 26px 0; border-radius: 0; background: none; border: none; border-bottom: 1px solid var(--border-sm); transition: none; }
.doc-section:hover { border-color: var(--border-sm); transform: none; }
.doc-section::before { display: none; }
.doc-section h2 {
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text-hi); margin-bottom: 12px;
}
.doc-section p, .doc-section li { font-size: 13.5px; font-weight: 300; line-height: 1.85; color: var(--text-md); margin-bottom: 8px; }
.doc-section ul { padding-left: 18px; }
.doc-section li { list-style: none; position: relative; padding-left: 14px; }
.doc-section li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 1px; background: rgba(var(--accent-rgb), 0.8); }
.doc-section li::marker { color: transparent; }
.doc-section strong { color: var(--text-hi); font-weight: 500; }

/* --------------------------------------------------------------------------
   Вход / регистрация — одна карточка по центру экрана
   -------------------------------------------------------------------------- */
.page-register { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px 16px; }
.bg-wrap { position: fixed; inset: 0; z-index: 0; }
.bg-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.3) contrast(1.1); transform: none; }
.bg-gradient { position: absolute; inset: 0; background: radial-gradient(ellipse 62% 62% at 50% 50%, rgba(10, 11, 10, 0.45), rgba(10, 11, 10, 0.93) 78%); }

.page-register .card {
  position: relative; z-index: 1;
  width: 100%; max-width: 424px; margin: 0 auto; padding: 40px 36px;
  display: block; text-align: center;
  border: 1px solid var(--border); border-radius: 0;
  background: rgba(10, 11, 10, 0.62);
  box-shadow: none; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: fadeIn 0.4s ease both; overflow: visible;
}
.page-register .card::before { display: none; }
.logo-row { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 30px; }
.logo-row .logo-icon {
  width: 34px; height: 34px; border-radius: 0; overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-md);
  background: transparent; border: 1px solid var(--border-hi); box-shadow: none;
}
.logo-row .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.logo-row .logo-text { font-size: 14px; letter-spacing: 0.04em; }
.page-register .tabs { padding: 0; margin-bottom: 26px; }
.page-register .tab-btn { flex: 1; padding: 11px 0; }
.form-pane-wrapper { position: relative; min-height: 320px; }
.form-pane { position: absolute; top: 0; left: 0; width: 100%; padding: 0 0 10px; opacity: 1; transform: none; pointer-events: none; will-change: transform, opacity; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: opacity 0.28s ease, transform 0.28s ease; }
.form-pane.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.form-pane.hidden, .hidden { display: none; }
.form-pane.slide-out-left { opacity: 0; transform: translateX(-16px); }
.form-pane.slide-out-right { opacity: 0; transform: translateX(16px); }
.form-pane.slide-in-left, .form-pane.slide-in-right { opacity: 1; transform: translateX(0); }
.title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; color: var(--text-hi); margin-bottom: 6px; text-align: center; }
.sub { font-size: 12.5px; font-weight: 300; color: var(--text-lo); margin-bottom: 22px; text-align: center; }
.field { margin-bottom: 14px; text-align: left; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 0; outline: none; font-size: 13.5px;
  background: rgba(var(--fg), 0.03); border: 1px solid var(--border); color: var(--text-hi);
  transition: border-color 0.2s, background 0.2s;
}
.field input:hover { border-color: var(--border-hi); }
.field input:focus { border-color: rgba(var(--accent-rgb), 0.7); background: rgba(var(--fg), 0.05); box-shadow: none; }
.btn-main { width: 100%; margin-top: 8px; padding: 14px 0; border-radius: 0; }
.status { margin-top: 14px; min-height: 20px; font-size: 12.5px; text-align: center; color: var(--text-lo); transition: color 0.2s; }
.status.err { color: rgb(var(--err)); }
.status.ok { color: rgb(var(--ok)); }
.status.load { color: rgb(var(--warn)); animation: glowPulse 1.4s ease-in-out infinite; }
.agreement-text { margin-top: 14px; font-size: 11.5px; line-height: 1.7; text-align: center; color: var(--text-lo); }
.agreement-text a { color: var(--text-md); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.agreement-text a:hover { color: rgba(var(--accent-rgb), 1); }
.back-link { display: block; margin-top: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-lo); text-decoration: none; transition: color 0.2s; text-align: center; }
.back-link:hover { color: var(--text-hi); translate: 0 0; }
.card-support { margin-top: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; line-height: 1.7; color: var(--text-dim); text-align: center; }
.card-support a { color: var(--text-lo); text-decoration: none; }
.card-support a:hover { color: rgba(var(--accent-rgb), 1); }

/* --------------------------------------------------------------------------
   Ошибки 403 / 404
   -------------------------------------------------------------------------- */
.page-error { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 100vh; overflow: hidden; }
.error-container { position: relative; z-index: 1; max-width: 640px; padding: 0 32px; text-align: center; animation: fadeUp 0.6s var(--ease) both; }
.error-code {
  font-family: var(--font-display); font-size: clamp(96px, 20vw, 200px); font-weight: 700; line-height: 0.86;
  letter-spacing: -0.07em; margin-bottom: 10px; color: rgba(var(--fg), 0.13);
  animation: none; filter: none;
}
.error-icon { display: none; }
.error-title { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-hi); margin-bottom: 14px; padding-top: 20px; border-top: 1px solid var(--rule); }
.error-title .hl { color: rgba(var(--accent-rgb), 1); }
.error-desc { max-width: 430px; margin: 0 auto 32px; font-size: 14px; font-weight: 300; line-height: 1.8; color: var(--text-lo); }
.error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.footer-text {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 1;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  color: var(--text-dim); white-space: nowrap; translate: none; text-transform: uppercase; text-align: center;
}
.footer-text a { color: var(--text-lo); text-decoration: none; transition: color 0.2s; }
.footer-text a:hover { color: var(--text-hi); }

/* --------------------------------------------------------------------------
   Адаптив
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .glow-card { grid-template-columns: 60px minmax(120px, 180px) minmax(0, 1fr); }
  .glow-card .glow-list { grid-column: 3; grid-row: 2; margin-top: 8px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-card:nth-child(2) { border-right: none; }
  .dash-card:nth-child(3) { grid-column: 1 / -1; border-right: none; border-top: 1px solid var(--rule); padding-left: 0; }
  .page-register { padding: 20px 14px; }
  .page-register .card { padding: 32px 24px; background: rgba(10, 11, 10, 0.76); }
  .bg-gradient { background: radial-gradient(ellipse 80% 70% at 50% 50%, rgba(10, 11, 10, 0.6), rgba(10, 11, 10, 0.96) 80%); }
  .pricing-card { grid-template-columns: 180px minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .header { padding: 12px 16px; }
  .header .nav, .header nav { display: none; }
  .header .right-section .header-ctrl:not(#langBtn) { display: none; }
  .hero { padding: 116px 20px 56px; }
  .hero-metrics { grid-template-columns: 1fr; max-width: none; }
  .hero-metrics .m-item { padding: 13px 0; }
  .page-main .hero-bg-logo { width: 300px; height: 300px; right: -80px; }
  .section, .pricing-section { padding: 64px 20px; }
  .feature-card, .spec-row { grid-template-columns: 44px minmax(0, 1fr); }
  .feature-card h3, .spec-name { grid-column: 2; }
  .feature-card p, .spec-desc { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .glow-card { grid-template-columns: 44px minmax(0, 1fr); }
  .glow-card h4 { grid-column: 2; }
  .glow-card p { grid-column: 2; grid-row: 2; margin-top: 4px; }
  .glow-card .glow-list { grid-column: 2; grid-row: 3; margin-top: 8px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .client-demo-compare-handle { width: 34px; height: 34px; }
  .client-demo-compare-handle svg { width: 16px; height: 16px; }
  .pricing-card { grid-template-columns: 1fr; }
  .pricing-card .product-img { min-height: 180px; border-right: none; border-bottom: 1px solid var(--rule); }
  .pricing-card .card-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "price" "desc" "list" "buy";
    padding: 22px 0 26px;
  }
  .pricing-card .price { text-align: left; margin: 6px 0; }
  .pricing-card .btn-buy { margin-top: 16px; }
  .page-dashboard .main { padding: 108px 16px 40px; }
  .page-admin .main { padding: 108px 16px 40px; }
  .page-doc .main { padding: 116px 18px 60px; }
  .sub-grid { grid-template-columns: 1fr; gap: 0; }
  .profile-hero { grid-template-columns: 56px minmax(0, 1fr); gap: 18px; }
  .profile-hero > div[style] { grid-column: 1 / -1; margin-left: 0 !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .tbl { font-size: 11.5px; }
  .tbl th, .tbl td { padding: 8px 10px; }
  .profile-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 24px 20px; }
  .error-container { padding: 0 24px; }
  .footer-text { bottom: 20px; }
}
@media (max-width: 480px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .dash-card:nth-child(3) { border-top: none; }
  .hero-buttons .btn-solid, .hero-buttons .btn-ghost { width: 100%; }
  .error-container { padding: 0 20px; }
  .error-actions { flex-direction: column; align-items: center; }
  .error-actions .btn-solid, .error-actions .btn-ghost { width: 100%; max-width: 280px; }
  .stats-grid { grid-template-columns: 1fr; }
  .page-register .card { padding: 28px 20px; }
  .page-register .tab-btn { font-size: 10.5px; letter-spacing: 0.08em; }
}

/* Совместимость: старое правило для hero-заголовка и документов */
.hero-content h1 .brand-title { font-size: inherit !important; }
.doc-section[style*="border-left"]::before { display: none; }
.doc-section strong { color: var(--text-hi) !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
