/* ============================================================================
   FUZZYAI TESSERACT DESIGN SYSTEM | LIGHT AURORA & GLASSMORPHISM THEME
   Шаблон: platform_managed_apps/pdf_privacy_converter/templates/css/theme.tpl.css
   Компилируется в: src/css/theme.css
   ============================================================================ */

:root {
  --bg-page: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.86);
  --bg-surface-solid: #ffffff;
  --bg-soft: #f1f5f9;
  --bg-hover: #e2e8f0;
  --border-light: rgba(15, 23, 42, 0.08);
  --border-accent: rgba(79, 70, 229, 0.35);
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --brand-indigo: #4f46e5;
  --brand-violet: #7c3aed;
  --brand-cyan: #06b6d4;
  --brand-emerald: #10b981;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --btn-h: 42px;
  --btn-h-lg: 48px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 24px 60px rgba(15, 23, 42, 0.08), 0 4px 16px rgba(79, 70, 229, 0.05);
  --transition: 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Живой переливающийся фон Aurora Mesh */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.32;
  animation: auroraFloat 16s ease-in-out infinite alternate;
}

.aurora-blob-1 {
  width: 560px;
  height: 560px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle, var(--brand-indigo), #c7d2fe);
}

.aurora-blob-2 {
  width: 520px;
  height: 520px;
  top: 10%;
  right: -140px;
  background: radial-gradient(circle, var(--brand-cyan), #bae6fd);
  animation-delay: -5s;
}

.aurora-blob-3 {
  width: 480px;
  height: 480px;
  bottom: -140px;
  left: 30%;
  background: radial-gradient(circle, var(--brand-emerald), #bbf7d0);
  animation-delay: -10s;
}

@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(36px, 24px) scale(1.06); }
  100% { transform: translate(-24px, 40px) scale(0.96); }
}

a {
  color: var(--brand-indigo);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-violet);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: rgba(79, 70, 229, 0.08);
  color: var(--brand-indigo);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.87em;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================================
   ШАПКА И ФИРМЕННЫЙ ЛОГОТИП ТЕССЕРАКТА
   ============================================================================ */

.wave-dot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 20px;
  pointer-events: none;
}

.header-floating-pill {
  pointer-events: auto;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 62px;
  padding: 8px 12px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 42px -10px rgba(15, 23, 42, 0.10),
    0 2px 8px rgba(79, 70, 229, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text-main);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text-main);
}

.tesseract-badge-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.16));
  border: 1px solid rgba(79, 70, 229, 0.22);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

.cobrand-sep {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 1.05rem;
  user-select: none;
}

.uni-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.95), rgba(224, 242, 254, 0.85));
  border: 1px solid rgba(29, 78, 216, 0.18);
  box-shadow: 0 2px 8px rgba(29, 78, 216, 0.06);
  white-space: nowrap;
}

.uni-emblem-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff, #e0f2fe);
  border: 1px solid rgba(29, 78, 216, 0.18);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.08);
  overflow: hidden;
  flex-shrink: 0;
}

.uni-emblem-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uni-partner-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.uni-partner-code {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: 0.01em;
}

.uni-partner-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: #0284c7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(241, 245, 249, 0.72);
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 6px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  color: var(--brand-indigo);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-header-compact {
  height: 38px !important;
  padding: 0 15px !important;
  border-radius: 999px !important;
  font-size: 0.84rem !important;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(241, 245, 249, 0.9);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.tier-pill.pro-active {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.45);
}

/* ============================================================================
   ЕДИНЫЕ КНОПКИ (СТРОГО ОДИНАКОВАЯ ВЫСОТА И ВЫРАВНИВАНИЕ)
   ============================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1.5px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-lg {
  height: var(--btn-h-lg);
  padding: 0 28px;
  font-size: 0.98rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-violet) 50%, var(--brand-cyan) 100%);
  background-size: 160% 160%;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover:not(:disabled) {
  background-position: right center;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.36);
}

.btn-sbp {
  background: linear-gradient(135deg, var(--brand-emerald) 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.26);
}

.btn-sbp:hover:not(:disabled) {
  filter: brightness(1.06);
  box-shadow: 0 12px 26px rgba(16, 185, 129, 0.35);
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--brand-indigo);
  color: var(--brand-indigo);
  background: var(--bg-page);
}

.btn-text-danger {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-rose);
  font-size: 0.84rem;
  font-weight: 600;
  height: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.btn-text-danger:hover {
  background: rgba(225, 29, 72, 0.15);
}

/* ============================================================================
   HERO-БЛОК И РАБОЧАЯ КАРТОЧКА КОНВЕРТЕРА
   ============================================================================ */

main {
  flex: 1;
}

.hero {
  padding: 42px 0 36px;
  text-align: center;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-sm);
  color: var(--brand-indigo);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.03em;
  max-width: 880px;
  margin: 0 auto 14px;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-indigo) 0%, var(--brand-cyan) 55%, var(--brand-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 22px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.scenario-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 26px;
}

.scenario-chip {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.scenario-chip:hover {
  border-color: var(--brand-indigo);
  color: var(--brand-indigo);
  transform: translateY(-1px);
}

.workspace-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow:
    0 34px 80px -16px rgba(15, 23, 42, 0.12),
    0 12px 28px -8px rgba(79, 70, 229, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  text-align: left;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mode-tab {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mode-tab:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-cyan));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.25);
}

.op-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.opt-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.opt-group input,
.opt-group select {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 7px;
  padding: 6px 10px;
  font-size: 0.88rem;
}

.dropzone {
  display: block;
  border: 2px dashed rgba(79, 70, 229, 0.34);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.85), rgba(238, 242, 255, 0.65));
  padding: 42px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.06);
  transform: scale(1.005);
}

.dropzone-icon {
  font-size: 2.3rem;
  margin-bottom: 8px;
}

.dropzone-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.dropzone-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.files-queue {
  margin-top: 18px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.queue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.queue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.queue-item-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.action-bar {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.perf-badge {
  display: inline-flex;
  align-items: center;
  height: var(--btn-h);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  font-weight: 600;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 0 14px;
  border-radius: var(--radius-md);
}

.result-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.36);
}

.result-panel.error {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.35);
  color: #9f1239;
}

.result-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ============================================================================
   СЕКЦИИ ПРЕИМУЩЕСТВ, ТАРИФОВ, FAQ И АНИМАЦИЯ ПРОКРУТКИ
   ============================================================================ */

.section {
  padding: 46px 0;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.info-card,
.legal-card,
.plan-card {
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.info-card:hover,
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  margin-bottom: 10px;
  color: var(--brand-indigo);
  font-size: 1.1rem;
  font-weight: 700;
}

.info-card p,
.legal-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.plan-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.plan-card.pro {
  border: 2px solid var(--brand-emerald);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 245, 0.86));
}

.plan-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.plan-tag.pro-tag {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

.plan-price {
  font-size: 2.25rem;
  font-weight: 800;
  margin: 8px 0 14px;
  color: var(--text-main);
}

.plan-price span {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-list {
  list-style: none;
  margin-bottom: 22px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.plan-list li {
  margin-bottom: 8px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-list details {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.98rem;
}

.faq-list details p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
   МОДАЛЬНОЕ ОКНО СБП И АКТИВАЦИИ КЛЮЧА
   ============================================================================ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-card);
  color: var(--text-main);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--bg-soft);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  font-size: 1.35rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}

.modal-body {
  margin-top: 14px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.modal-input {
  width: 100%;
  height: var(--btn-h);
  padding: 0 13px;
  margin: 12px 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 0.94rem;
}

.sbp-qr-box {
  margin: 14px 0;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1px solid var(--border-light);
  color: #0f172a;
  text-align: center;
}

/* ============================================================================
   ФУТЕР
   ============================================================================ */

.site-footer {
  border-top: 1px solid var(--border-light);
  background: rgba(255, 255, 255, 0.88);
  padding: 40px 0 28px;
  margin-top: 36px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.footer-col h4 {
  color: var(--text-main);
  margin-bottom: 10px;
  font-size: 0.96rem;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.footer-col a:hover {
  color: var(--brand-indigo);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

/* ============================================================================
   ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ (152-ФЗ / 422-ФЗ), ЧЕКБОКСЫ СОГЛАСИЯ И БАННЕР
   ============================================================================ */

.legal-doc-scroll {
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.legal-doc-scroll h4 {
  color: var(--text-main);
  margin: 14px 0 6px;
  font-size: 0.96rem;
}

.legal-doc-scroll p {
  margin-bottom: 8px;
}

.legal-doc-scroll ul {
  padding-left: 18px;
  margin-bottom: 10px;
}

.legal-doc-scroll li {
  margin-bottom: 5px;
}

.legal-doc-meta {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.legal-req-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
}

.consent-box-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  border: 1px solid var(--border-light);
}

.consent-email-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.consent-check-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--text-secondary);
  cursor: pointer;
}

.consent-check-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand-indigo);
  flex-shrink: 0;
  cursor: pointer;
}

.storage-notice-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 880px);
  z-index: 75;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

/* ============================================================================
   РЕКЛАМНЫЕ СЛОТЫ (7 ПОЗИЦИЙ) И МАРКИРОВКА ЕРИД ПО 38-ФЗ
   ============================================================================ */

.ad-slot-container {
  margin: 18px auto;
  width: 100%;
  min-width: 0;
}

.ad-zone-grid .ad-slot-container {
  margin: 0 !important;
  height: 100%;
}

.ad-zone-grid .ad-unit {
  height: 100%;
}

.ad-slot-top_ribbon {
  margin: 14px auto 0;
}

.ad-slot-floating_corner {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: min(92vw, 340px);
  z-index: 70;
  margin: 0;
}

.ad-unit {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  text-align: left;
  overflow: hidden;
  max-width: 100%;
}

.ad-erid-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.ad-erid-tag {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 6px;
}

.ad-erid-token {
  font-size: 0.72rem;
  padding: 1px 6px;
}

.ad-unit img,
.ad-unit video,
.ad-banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 0 auto;
}

.ad-native-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.ad-native-title {
  display: block;
  font-size: 0.98rem;
  color: var(--text-main);
  margin-bottom: 3px;
}

.ad-native-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.ad-cta-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 0.84rem;
}

@media (max-width: 860px) {
  .nav-links,
  .tier-pill {
    display: none;
  }
  .storage-notice-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ad-slot-floating_corner {
    position: static;
    width: 100%;
    margin: 14px auto;
  }
}