/* ═══════════════════════════════════════════════════════════
   home.css — Главный лендинг FOMO&TEMA
   Версия: 2026-05-26 (landing redesign, чистый layout без app shell)
   ═══════════════════════════════════════════════════════════ */

/* ── Сброс и базовые переменные ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Бренд-палитра — см. memory/00_core/brand_palette.md */
  --green: #0d9488;
  --green-text: #14b8a6;
  --green-dim: rgba(13,148,136,0.14);
  --green-border: rgba(13,148,136,0.35);
  --green-hover: #14b8a6;
  --green-accent: #00ff88;
  --blue-hover: #0284c7;
  --bg: #0b0e11;
  --bg2: #161a1e;
  --bg3: #1e2329;
  --border: #2a2e39;
  --text: #d1d4dc;
  --muted: #848e9c;
  --red: #f6465d;
  --strong: #ffffff;
  --placeholder: #3a4050;
  --row-border: #1a1e24;
  --shadow: rgba(0,0,0,0.4);
  --yellow: #f7c948;
  --yellow-text: var(--yellow);
  --blue: #0369a1;
  --blue-text: #0369a1;
  --blue-dim: rgba(3, 105, 161, 0.14);
  --blue-border: rgba(3, 105, 161, 0.35);
  /* Cyan-accent — голубой акцент для Grid-стратегий (зафиксирован 2026-05-27 в brand_palette.md) */
  --cyan-accent: #00c8ff;
  --purple: #a78bfa;
}

[data-theme="light"] {
  /* Бренд-палитра в светлой теме — см. memory/00_core/brand_palette.md §2 */
  --green: #0d9488;
  --green-text: #0f766e;
  --green-hover: #14b8a6;
  --green-dim: rgba(13,148,136,0.10);
  --green-border: rgba(13,148,136,0.35);
  --green-accent: #00b86b;
  --blue: #0369a1;
  --blue-text: #0369a1;
  --blue-hover: #075985;
  --blue-dim: rgba(3, 105, 161, 0.10);
  --blue-border: rgba(3, 105, 161, 0.35);
  --cyan-accent: #0099cc;
  --bg: #e8ecf2;
  --bg2: #f6f8fb;
  --bg3: #dde2ea;
  --border: #b8c2d0;
  --text: #0f1117;
  --muted: #606878;
  --red: #c82b45;
  --strong: #000000;
  --placeholder: #a0a8b8;
  --row-border: #dde2ea;
  --shadow: rgba(0,0,0,0.15);
  --yellow: #d4a017;
  --yellow-text: #7a5900;
  --purple: #7c3aed;
}

html {
  scroll-behavior: smooth;
  /* P1 фикс: компенсируем sticky-topbar 56px чтобы при клике по якорю заголовок секции не уходил под полоску */
  scroll-padding-top: 56px;
  /* Firefox — тонкий скроллбар во всей странице */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* P1 фикс — глобальное уважение к prefers-reduced-motion (вестибулярные расстройства).
   Отключает анимации, transitions, smooth-scroll и hover-transform при системной настройке. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Точечно отключаем hover-transform на интерактивных карточках (translateY вызывает «прыжок») */
  .eco-card:hover,
  .edu-format-card:hover,
  .cg-card:hover,
  .service-compact:hover,
  .ab-card:hover,
  .pr-card:hover { transform: none; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* WebKit — единый стиль скроллбара для всей страницы и любых прокручиваемых блоков */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: rgba(13, 148, 136, 0.35); }
::-webkit-scrollbar-corner { background: transparent; }

/* ── A11y — focus-visible для всех интерактивных (Закон 15.18) ── */
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* ── Контейнер ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-pad { padding: 60px 0; border-top: 1px solid var(--border); }

/* ── Общие элементы типографики ── */
.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-text);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 42px;
  font-weight: 900;
  color: var(--strong);
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 48px;
}

.accent { color: var(--green-text); }

.link-green {
  color: var(--green-text);
  text-decoration: none;
}
.link-green:hover { text-decoration: underline; }

/* Inline-ссылки внутри текстовых блоков лендинга — единый стиль */
.section-sub a,
.hero-disclaimer a,
.footer-disclaimer a,
.pr-pay-hint a,
.what-is-desc a,
.modal-subtitle a {
  color: var(--green-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.section-sub a:hover,
.hero-disclaimer a:hover,
.footer-disclaimer a:hover,
.pr-pay-hint a:hover,
.what-is-desc a:hover,
.modal-subtitle a:hover {
  color: var(--green);
}

/* ════════════════════════════════════════════════════════════
   1. ВЕРХНЯЯ ПОЛОСКА (topbar)
   ════════════════════════════════════════════════════════════ */

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.topbar-logo {
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--strong);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.topbar-logo i { color: var(--green-text); }
.topbar-logo:hover { color: var(--green-text); }

/* Центральная группа всех навигационных ссылок. Центрируется auto-margin'ами между логотипом и кнопками. */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 auto;
}

.topbar-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
}
.topbar-link:hover { color: var(--strong); }

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

/* Гамбургер-кнопка для открытия мобильного меню (скрыта на десктопе) */
.topbar-burger {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.topbar-burger:hover { border-color: var(--text); background: var(--bg2); }
.topbar-burger:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.topbar-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.topbar-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.topbar-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.topbar-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню — full-screen оверлей под топбаром */
.mobile-menu {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  display: none;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-inner {
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-menu-link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-height: 48px;
  transition: background 0.15s, color 0.15s;
}
.mobile-menu-link:hover { background: var(--bg2); color: var(--green-text); }
.mobile-menu-link:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.mobile-menu-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
/* Модификатор: actions размещены сверху меню — разделитель снизу, отступ сверху не нужен */
.mobile-menu-actions--top {
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 16px;
  padding-bottom: 20px;
  border-top: none;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-actions .btn-outline-sm,
.mobile-menu-actions .btn-green-sm {
  flex: 1;
  justify-content: center;
  min-height: 44px;
  /* Перебиваем display:none из @media (max-width: 768px) на .topbar-auth-link — здесь auth-кнопки внутри гамбургера должны быть видны */
  display: inline-flex !important;
}

/* Блокировка скролла body когда mobile-меню открыто */
body.no-scroll { overflow: hidden; }

/* Кнопка «Установить как приложение» в гамбургер-меню — скрыта пока JS не определит что установка возможна */
.mobile-menu-install {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  margin: 16px 0 0;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 10px;
  color: var(--green-text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s, border-color 0.15s;
}
.mobile-menu-install:not([hidden]) { display: inline-flex; }
.mobile-menu-install:hover { background: rgba(13, 148, 136, 0.22); border-color: var(--green-hover); }
.mobile-menu-install:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.mobile-menu-install i { font-size: 16px; }

/* Шаги установки на iOS */
.install-ios-steps {
  list-style: decimal;
  padding-left: 28px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.install-ios-steps li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}
.install-ios-steps strong { color: var(--strong); }
.install-ios-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* Показ гамбургера и mobile-меню на ≤1024px (там же где скрывается topbar-center) */
@media (max-width: 1024px) {
  .topbar-burger { display: flex; }
  .mobile-menu { display: block; }
}
/* На ≤768px скрываем кнопки «Войти/Регистрация» из топбара — они переезжают только в гамбургер-меню.
   Это гарантирует что на телефоне топбар содержит только: логотип слева + тема + гамбургер справа.
   Поднял порог с 640 до 768 после визуального теста на iPhone-классе устройств 2026-05-27. */
@media (max-width: 768px) {
  /* Двойной селектор — поднимаем специфичность чтобы перебить .btn-outline-sm/.btn-green-sm display:inline-flex,
     иначе на телефоне «Войти/Регистрация» не уходят в гамбургер-меню. */
  .btn-outline-sm.topbar-auth-link,
  .btn-green-sm.topbar-auth-link { display: none !important; }
  .topbar-actions { gap: 8px; }
}

/* Переключатель темы в топбаре */
.theme-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}
.theme-toggle-btn:hover { color: var(--strong); border-color: var(--text); background: var(--bg2); }
.theme-toggle-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.theme-toggle-btn .theme-icon-sun,
.theme-toggle-btn .theme-icon-moon { line-height: 1; }
/* В тёмной теме показываем солнце (нажми → станет светло) */
[data-theme="dark"] .theme-toggle-btn .theme-icon-moon,
:root:not([data-theme="light"]) .theme-toggle-btn .theme-icon-moon { display: none; }
/* В светлой теме показываем луну (нажми → станет темно) */
[data-theme="light"] .theme-toggle-btn .theme-icon-sun { display: none; }

/* ── Кнопки ── */
.btn-outline-sm {
  padding: 8px 20px;
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
.btn-outline-sm:hover { border-color: var(--green-text); color: var(--green-text); }

.btn-green-sm {
  padding: 8px 20px;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
.btn-green-sm:hover { background: #14b8a6; box-shadow: 0 0 20px rgba(13,148,136,0.3); }

.btn-primary {
  padding: 14px 32px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.btn-primary:hover { background: #14b8a6; box-shadow: 0 0 24px rgba(13,148,136,0.3); }
.btn-primary:active { filter: brightness(0.92); }
.btn-secondary:active { background: var(--bg3); }
.btn-green-sm:active { filter: brightness(0.92); }
.btn-outline-sm:active { background: var(--bg3); }
.cta-link:active { filter: brightness(0.95); }
.modal-close:active { background: var(--bg2); }
.back-to-top:active { background: rgba(13, 148, 136, 0.18); }
.eco-card:active { transform: translateY(-1px); }
.theme-toggle-btn:active { background: var(--bg3); }
.palette-btn:active { filter: brightness(0.9); } /* временные палитры */
.two-thing-chip:active { background: rgba(13, 148, 136, 0.10); }

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
}
.btn-secondary:hover { border-color: var(--green-text); color: var(--green-text); }

.btn-lg { padding: 16px 40px; font-size: 16px; }

/* ════════════════════════════════════════════════════════════
   2. HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
}

/* Фоновые градиенты — декоративные, CSS-only (Закон 15.11) */
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,136,204,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 24px;
}

.hero-eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--green);
  display: inline-block;
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 80px;
  line-height: 1.0;
  color: var(--strong);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 20px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  padding: 11px 22px;
  font-size: 14px;
  min-height: 40px;
}

.hero-disclaimer {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 520px;
  line-height: 1.5;
}
.hero-disclaimer i { margin-top: 2px; flex-shrink: 0; color: var(--green-text); opacity: 0.7; }


/* Стрелка «прокрути вниз» */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBounce 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.scroll-hint i { font-size: 18px; color: var(--green-text); opacity: 0.7; }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 1; }
}

/* ════════════════════════════════════════════════════════════
   HERO — 5 карточек экосистемы (T-13, S-public-site-2026-05-26)
   ════════════════════════════════════════════════════════════ */
.hero-ecosystem {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 40px;
  margin-bottom: 48px;
}

.eco-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.eco-card:hover {
  border-color: var(--green-text);
  background: var(--bg3);
  transform: translateY(-2px);
}
.eco-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Центральная карточка FOMO&TEMA выделена зелёной рамкой */
.eco-card.featured {
  border-color: var(--green-border);
  background: var(--green-dim);
}
.eco-card.featured:hover {
  border-color: var(--green-text);
  background: rgba(13,148,136,0.18);
}

.eco-card-icon {
  font-size: 24px;
  color: var(--green-text);
  line-height: 1;
}

.eco-card-name {
  font-weight: 800;
  font-size: 14px;
  color: var(--strong);
  line-height: 1.2;
}

.eco-card-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.eco-card-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-text);
  line-height: 1.2;
}

/* ════════════════════════════════════════════════════════════
   МОДАЛКИ (T-13, Закон 15.18 a11y)
   ════════════════════════════════════════════════════════════ */
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: modalFadeIn 0.2s ease;
}

/* Когда hidden — браузер скрывает (нативный [hidden]) */
.modal-overlay[hidden] { display: none; }

.modal-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 32px 28px;
  position: relative;
  animation: modalSlideIn 0.2s ease;
}

.modal-content--placeholder {
  max-width: 480px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  /* 44×44 везде (Apple HIG min touch-target) — было 36×36, увеличено по итогам финального QA 2026-05-27 */
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: border-color 0.18s, color 0.18s;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--green-text); color: var(--strong); }
.modal-close:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.modal-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--strong);
  margin-bottom: 4px;
  padding-right: 48px; /* место под крестик */
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Узкая модалка для текстовых разделов (FOMO&TEMA, Cryptorg и т.п.) */
.modal-content--narrow { max-width: 760px; }

.modal-cta-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 20px;
  text-align: center;
  line-height: 1.5;
}

/* Приписка-note под карточками в модалках (после блока контента) */
.modal-foot-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.modal-foot-note i {
  color: var(--green-text);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Placeholder-модалки */
.modal-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0 16px;
  text-align: center;
}

.modal-placeholder-icon {
  font-size: 48px;
  color: var(--green-text);
  opacity: 0.5;
}

.modal-placeholder-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 340px;
}

.modal-placeholder-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-text);
  text-decoration: none;
  transition: opacity 0.18s;
}
.modal-placeholder-link:hover { opacity: 0.75; }

/* ════════════════════════════════════════════════════════════
   СТИЛИ СТРАТЕГИЙ ДЛЯ МОДАЛКИ (перенесено из strategies/index.html)
   ════════════════════════════════════════════════════════════ */
.str-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 8px;
}

.str-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.str-card:hover {
  border-color: rgba(13,148,136,0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.str-card-top {
  padding: 24px 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.str-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.str-icon.smart { background: rgba(13,148,136,0.1); color: var(--green-text); }
.str-icon.grid  { background: rgba(0,200,255,0.1); color: #00c8ff; }

.str-card-head { flex: 1; }

.str-card-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--strong);
  margin-bottom: 4px;
  font-family: 'Urbanist', sans-serif;
}

.str-card-type {
  font-size: 11px;
  color: var(--muted);
}

.str-card-badges {
  padding: 12px 24px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.str-badge {
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.str-badge.green   { background: rgba(13,148,136,0.1);  color: var(--green-text); border: 1px solid rgba(13,148,136,0.2); }
.str-badge.blue    { background: rgba(0,200,255,0.1);  color: #00c8ff;            border: 1px solid rgba(0,200,255,0.2); }
.str-badge.neutral { background: var(--bg2);            color: var(--muted);       border: 1px solid var(--border); }

.str-card-desc {
  padding: 14px 24px 0;
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

.str-card-features {
  padding: 16px 24px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.str-card-features li {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.str-card-features li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-text);
  flex-shrink: 0;
  margin-top: 5px;
}
.str-card.grid-card .str-card-features li::before { background: #00c8ff; }

.str-card-rec {
  padding: 12px 24px 20px;
  margin-top: auto;
}

.str-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(13,148,136,0.08);
  color: var(--green-text);
  border: 1px solid rgba(13,148,136,0.15);
}

/* ETF-STRIP удалена (T-13, S-public-site-2026-05-26) — виджет переехал в модалку Скринера */

/* Шапка виджета: эйбрау + табы — в горизонтальной полосе разводим по краям */
.etf-widget-head {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.etf-head-info { min-width: 0; }

.etf-widget-eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-text);
}

/* Табы BTC / ETH / SOL */
.etf-widget-tabs {
  display: flex;
  gap: 6px;
}

.etf-widget-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, background 0.18s;
  min-height: 34px;
}

.etf-widget-tab:hover {
  border-color: var(--green-border);
  color: var(--strong);
}

.etf-widget-tab.active,
.etf-widget-tab[aria-selected="true"] {
  border-color: var(--green-text);
  color: var(--green-text);
  background: var(--green-dim);
}

.etf-widget-tab:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.etf-tab-icon {
  font-size: 13px;
  line-height: 1;
}

/* Основная зона виджета: 3 колонки в горизонтальной полосе */
.etf-widget-body {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* Состояния ETF-виджета (loading / fallback) — P2 QA-fix 2026-05-27 */
.hero-etf-widget[data-state="loading"] .etf-widget-body { opacity: 0.5; }
.hero-etf-widget[data-state="fallback"] .etf-widget-body {
  display: block;
  text-align: center;
  padding: 32px 16px;
}
.etf-widget-fallback {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Колонки горизонтальной полосы */
.etf-col { min-width: 0; }

.etf-col-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.etf-col-weeks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.etf-col-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Заголовок «Последний торговый день — пятница» */
.etf-last-day-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* Крупный блок: тикер + сумма потока + дата */
.etf-hero-flow {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.etf-hero-asset {
  font-family: 'Urbanist', sans-serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  color: var(--muted);
}

/* Цвета тикера по активу */
.hero-etf-widget[data-asset="btc"] .etf-hero-asset { color: var(--yellow-text); }
.hero-etf-widget[data-asset="eth"] .etf-hero-asset { color: var(--blue-text); }
.hero-etf-widget[data-asset="sol"] .etf-hero-asset { color: var(--purple); }

.etf-hero-amount {
  font-family: 'Urbanist', sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.0;
  color: var(--muted);
}

.etf-hero-amount.positive { color: var(--green-text); }
.etf-hero-amount.negative { color: var(--red); }
.etf-hero-amount.neutral  { color: var(--muted); }

.etf-hero-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Секции недель */
.etf-week {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.etf-week-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.etf-week-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.etf-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg3);
  min-width: 0;
}

.etf-day-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: lowercase;
  line-height: 1;
}

.etf-day-value {
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.etf-day-value.positive { color: var(--green-text); }
.etf-day-value.negative { color: var(--red); }
.etf-day-value.neutral  { color: var(--muted); }

/* Блок итогов: 2×2 в правой колонке полосы */
.etf-summaries {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.etf-sum {
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 6px;
  min-width: 0;
}

.etf-sum-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.etf-sum-value {
  font-family: 'Urbanist', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.etf-sum-value.positive { color: var(--green-text); }
.etf-sum-value.negative { color: var(--red); }
.etf-sum-value.neutral  { color: var(--muted); }

/* ════════════════════════════════════════════════════════════
   3. ЧТО ЭТО
   ════════════════════════════════════════════════════════════ */
.what-is { background: var(--bg2); }

.what-is-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
}

.what-is-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 24px;
}
.what-is-item:last-child { border-bottom: none; }

.what-is-main {
  font-family: 'Urbanist', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--strong);
  flex-shrink: 0;
  width: 500px;
}

.what-is-desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

/* .modal-what-is удалён вместе с модалкой #modal-fomotema */

/* ════════════════════════════════════════════════════════════
   4. ПЛАТФОРМА FOMO&TEMA — секция #fomotema
   ════════════════════════════════════════════════════════════ */

/* Заголовки секции #fomotema — крупнее эйбрау, меньше h2 */
#fomotema .section-eyebrow { font-size: 14px; }
#fomotema .section-title { font-size: 32px; }
@media (max-width: 768px) {
  #fomotema .section-title { font-size: 26px; }
}

/* Списки стратегий/индикаторов внутри пронумерованной карточки — горизонтальные чипсы */
.two-thing-lists {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.two-thing-list {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.two-thing-list-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-text);
  flex-shrink: 0;
  min-width: 100px;
}
.two-thing-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.two-thing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  background: var(--bg3, #1a1a1a);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.two-thing-chip i {
  font-size: 9px;
  color: var(--muted);
  transition: color 0.15s;
}
.two-thing-chip:hover {
  border-color: var(--green-text);
  color: var(--green-text);
  background: rgba(13, 148, 136, 0.06);
}
.two-thing-chip:hover i { color: var(--green-text); }
.two-thing-chip:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
@media (max-width: 480px) {
  .two-thing-list { flex-direction: column; align-items: flex-start; gap: 6px; }
  .two-thing-list-title { min-width: 0; }
}

/* Подзаголовок блока внутри секции (аналог modal-section-title, нейтральное имя) */
.block-eyebrow {
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-text);
  margin: 40px 0 16px;
}

/* Блок «Две вещи» — 2-колоночный грид на десктопе */
.two-things {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 8px;
}

/* Буллит-лист (нейтральное имя, работает и в секции, и в модалке) */
.bullets-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bullets-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}
.bullets-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.bullets-list li strong {
  color: var(--strong);
  font-weight: 700;
  display: inline;
  margin-right: 4px;
}

/* 4 компактные карточки 2×2 (без списков внутри) */
.services-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.service-compact {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.service-compact:hover {
  border-color: var(--green-border);
  transform: translateY(-2px);
}

.service-compact-icon {
  font-size: 28px;
  color: var(--green-text);
  margin-bottom: 12px;
}

.service-compact-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 8px;
}

.service-compact-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* ════════════════════════════════════════════════════════════
   5. ДЛЯ КОГО — двухколоночная секция
   ════════════════════════════════════════════════════════════ */
.who-for { background: var(--bg2); }

/* Две карточки-смыслы (новички / профессионалы) */
.who-for-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 48px;
}
.who-for-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
}
.who-for-card:hover { border-color: var(--green-border); }
.who-for-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 4px;
}
.who-for-card-icon--pro {
  background: var(--blue-dim);
  border-color: var(--blue-border);
  color: var(--blue-text);
}
.who-for-card-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--strong);
  margin: 0;
}
.who-for-card-text {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Общий список «Что внутри» */
.who-for-features {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px;
}
.who-for-features .block-eyebrow {
  margin: 0 0 18px;
}
.who-for-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
}
.who-for-features-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.who-for-features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.85;
}
@media (max-width: 768px) {
  .who-for-features-list { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════
   6. КАК ПОЛУЧИТЬ ДОСТУП — 3 шага
   ════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  margin-bottom: 40px;
}

.step-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  color: var(--green-text);
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.step-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--strong);
  margin-bottom: 12px;
}

.step-optional {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.step-list li {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.step-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.7;
}

.step-safe {
  font-size: 12px;
  color: var(--green-text);
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  opacity: 0.85;
}
.step-safe i { margin-top: 1px; flex-shrink: 0; }

.steps-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ════════════════════════════════════════════════════════════
   7. ТАРИФЫ (pricing) — pr-* классы, 1-в-1 с /pricing/
   ════════════════════════════════════════════════════════════ */
.pr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; margin-bottom: 40px; }
@media (max-width: 900px) { .pr-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pr-grid { grid-template-columns: 1fr; } }

.pr-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 28px 24px; position: relative; display: flex; flex-direction: column; gap: 0; transition: border-color .2s; }
.pr-card:hover { border-color: var(--muted); }
/* Сохраняем брендовую обводку на featured/pro даже при hover (раньше базовый hover её перекрывал) */
.pr-card.featured { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.pr-card.featured:hover { border-color: var(--green-hover); box-shadow: 0 0 0 1px var(--green-hover), 0 0 28px rgba(13, 148, 136, 0.22); }
.pr-card.pro { border-color: var(--blue); }
.pr-card.pro:hover { border-color: var(--blue-hover); box-shadow: 0 0 0 1px var(--blue-hover), 0 0 28px rgba(3, 105, 161, 0.25); }

.pr-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pr-badge.green { background: var(--green); color: #fff; }
.pr-badge.blue { background: var(--blue); color: #fff; }

.pr-plan-name { font-size: 22px; font-weight: 800; color: var(--strong); margin-bottom: 4px; }
.pr-plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.5; }

.pr-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.pr-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text); margin-bottom: 10px; line-height: 1.45; }
.pr-feature i { color: var(--muted); margin-top: 2px; flex-shrink: 0; width: 14px; }
.pr-feature i.ok { color: var(--green); }
.pr-feature i.ok-blue { color: var(--blue); }
.pr-feature a {
  color: var(--green-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--green-border);
  font-weight: 600;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.pr-feature a:hover {
  color: var(--strong);
  text-decoration-color: var(--green-text);
}
.pr-feature a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 2px;
}
/* В тарифе PRO эксклюзивные ссылки — синий акцент */
.pr-feature.pr-highlight a,
.pr-card.pro .pr-feature.pr-highlight a {
  color: var(--blue-text);
  text-decoration-color: var(--blue-border);
}
.pr-feature.pr-highlight a:hover {
  color: var(--blue-hover);
  text-decoration-color: var(--blue-text);
}

.pr-highlight { color: var(--blue); font-weight: 600; }

.pr-cta { display: block; text-align: center; padding: 14px 20px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; transition: opacity .15s; margin-top: 20px; }
.pr-cta.green { background: var(--green); color: #fff; }
.pr-cta.green:hover { opacity: .88; }
.pr-cta.blue { background: var(--blue); color: #fff; }
.pr-cta.blue:hover { opacity: .88; }
.pr-cta.outline { border: 1px solid var(--border); color: var(--text); }
.pr-cta.outline:hover { border-color: var(--muted); color: var(--strong); }

/* Таблица цен */
.pr-table-wrap { margin-bottom: 48px; }
.pr-table-title { font-size: 14px; font-weight: 700; color: var(--strong); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pr-table { width: 100%; border-collapse: collapse; }
.pr-table th, .pr-table td { padding: 12px 16px; font-size: 13px; border-bottom: 1px solid var(--border); text-align: left; }
.pr-table th { color: var(--muted); font-weight: 600; background: var(--bg3, #1a1a1a); }
.pr-table th:first-child { border-radius: 8px 0 0 0; }
.pr-table th:last-child { border-radius: 0 8px 0 0; }
.pr-table td { color: var(--text); }
.pr-table td:first-child { color: var(--muted); }
.pr-table td.val { font-weight: 700; color: var(--strong); }
.pr-table td.discount { color: var(--green); font-size: 12px; font-weight: 600; }
.pr-table tr:last-child td { border-bottom: none; }
.pr-table-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .pr-table-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   7.5. СЕКЦИЯ «ЧАСТЬ ЭКОСИСТЕМЫ CRYPTORG»
   ════════════════════════════════════════════════════════════ */
.ecosystem { background: var(--bg2); }

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.ecosystem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.ecosystem-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s;
}
.ecosystem-card:hover { border-color: var(--green-border); transform: translateY(-3px); }
.ecosystem-card:hover::before { background: var(--green); }

.eco-icon-wrap {
  font-size: 28px;
  color: var(--green-text);
  line-height: 1;
}

.ecosystem-card h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--strong);
}

.ecosystem-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.eco-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-text);
  margin-top: 4px;
  display: inline-block;
  transition: opacity 0.18s;
}
.ecosystem-card:hover .eco-card-link { opacity: 0.75; }

/* ════════════════════════════════════════════════════════════
   8. ОБ АВТОРАХ
   ════════════════════════════════════════════════════════════ */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.author-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.author-card:hover { border-color: var(--green-border); }

.author-card-header {
  height: 80px;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(13,148,136,0.06) 100%);
  position: relative;
  flex-shrink: 0;
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg2);
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: rgba(13,148,136,0.25);
  font-family: 'Urbanist', sans-serif;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.author-card-body {
  padding: 56px 24px 28px;
  text-align: center;
}

.author-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--strong);
  font-family: 'Urbanist', sans-serif;
  margin-bottom: 4px;
}

.author-handle {
  font-size: 13px;
  color: var(--green-text);
  margin-bottom: 14px;
}

.author-bio-short {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 18px;
  text-align: left;
}
.author-bio-short strong { color: var(--strong); }

.author-card-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.author-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg3);
  transition: border-color 0.15s, color 0.15s;
  min-height: 36px;
}
.author-card-link:hover { border-color: var(--green-border); color: var(--green-text); }

/* ════════════════════════════════════════════════════════════
   9. FAQ — CSS-only аккордеон через details/summary
   ════════════════════════════════════════════════════════════ */
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg2);
  transition: border-color 0.18s;
}
.faq-item[open] { border-color: var(--green-border); }

.faq-question {
  list-style: none;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--strong);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
  transition: color 0.15s;
}
.faq-question:hover { color: var(--green-text); }

/* Убираем дефолтный маркер в разных браузерах */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; }

/* Иконка раскрытия через псевдоэлемент */
.faq-question::after {
  content: '\f107';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 14px;
  color: var(--green-text);
  flex-shrink: 0;
  transition: transform 0.25s;
}
details[open] > .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ════════════════════════════════════════════════════════════
   10. ФИНАЛЬНЫЙ CTA
   ════════════════════════════════════════════════════════════ */
.final-cta {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.final-cta-inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px;
}

.final-cta-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: var(--strong);
  margin: 0 0 20px;
  line-height: 1.1;
}

.final-cta-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.final-cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Единый стиль кнопок-ссылок в финальном CTA — все одинакового размера */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--bg3, #1a1a1a);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cta-link i { font-size: 14px; color: var(--muted); transition: color 0.15s; }
.cta-link:hover {
  border-color: var(--green-text);
  color: var(--green-text);
  background: rgba(13, 148, 136, 0.06);
}
.cta-link:hover i { color: var(--green-text); }
.cta-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Главная кнопка — выделена зелёной обводкой и текстом, без яркой заливки */
.cta-link--accent {
  border-color: var(--green-text);
  color: var(--green-text);
}
.cta-link--accent i { color: var(--green-text); }
.cta-link--accent:hover {
  background: rgba(13, 148, 136, 0.12);
  box-shadow: 0 0 16px rgba(13, 148, 136, 0.18);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--strong);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand i { color: var(--green-text); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a,
.footer-links button {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer-links a:hover,
.footer-links button:hover { color: var(--green-text); }
.footer-links a:focus-visible,
.footer-links button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* Дисклеймер о рисках — Закон 19 */
.footer-disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  opacity: 0.8;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
}

/* ════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ — breakpoint 1024px
   ════════════════════════════════════════════════════════════ */
/* etf-strip breakpoint 1280px удалён (T-13) */
@media (max-width: 1280px) {
  .etf-hero-amount { font-size: 28px; }
  .etf-hero-asset  { font-size: 22px; }
}

@media (max-width: 1024px) {
  .container { padding: 0 24px; }

  /* Hero одноколоночный */
  .hero-inner { padding: 60px 24px; }
  .hero-title { font-size: 64px; }
  .hero-sub { font-size: 18px; }

  .topbar-center { display: none; } /* Скрываем всю центральную группу ссылок на планшете */

  /* Карточки экосистемы — 3 колонки на планшете */
  .hero-ecosystem { grid-template-columns: repeat(3, 1fr); }

  /* Модалки на планшете */
  .modal-content { padding: 28px 24px 24px; }
  .str-cards { grid-template-columns: 1fr 1fr; }

  /* ETF-виджет в модалке на планшете */
  .etf-widget-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .etf-summaries   { grid-template-columns: repeat(4, 1fr); }
  .etf-hero-amount { font-size: 30px; }
  .etf-hero-asset  { font-size: 24px; }

  .what-is-main { font-size: 26px; width: 360px; min-width: 0; }
  .what-is-item { gap: 16px; }

  .steps-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Экосистема — 1 колонка на планшете */
  .ecosystem-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ════════════════════════════════════════════════════════════
   АДАПТИВНОСТЬ — breakpoint 768px (мобиле)
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section-pad { padding: 44px 0; }

  /* Topbar */
  .landing-topbar { padding: 0 16px; }
  .topbar-center { display: none; }
  .topbar-actions { gap: 8px; }
  .btn-outline-sm, .btn-green-sm { padding: 8px 14px; font-size: 13px; }

  /* Hero */
  .hero-inner { padding: 48px 16px 64px; gap: 32px; }
  .hero-title { font-size: 48px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }

  /* Карточки экосистемы — 1 колонка на мобиле */
  .hero-ecosystem { grid-template-columns: 1fr; gap: 10px; margin-top: 28px; }

  /* Модалки на мобиле */
  .modal-overlay { padding: 12px; }
  .modal-content { padding: 24px 18px 20px; max-height: 85vh; }
  .modal-title { font-size: 20px; }
  .str-cards { grid-template-columns: 1fr; }

  /* ETF-виджет в модалке на мобиле */
  .etf-widget-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .etf-hero-amount { font-size: 26px; }
  .etf-hero-asset  { font-size: 20px; }
  .etf-summaries   { grid-template-columns: repeat(2, 1fr); }
  .etf-day-value   { font-size: 10px; }

  /* Что это — стек */
  .what-is-item { flex-direction: column; gap: 8px; }
  .what-is-main { font-size: 24px; width: auto; min-width: 0; }
  .what-is-desc { font-size: 15px; }

  /* Секция FOMO&TEMA — все блоки в столбик */
  .two-things { grid-template-columns: 1fr; gap: 12px; }
  .services-compact-grid { grid-template-columns: 1fr; gap: 12px; }
  .block-eyebrow { margin: 28px 0 12px; }

  /* Для кого — 1 колонка */
  .who-for-cards { grid-template-columns: 1fr; gap: 14px; margin-bottom: 32px; }

  /* Шаги — 1 колонка */
  .steps-grid { grid-template-columns: 1fr; }
  .steps-cta { flex-direction: column; }
  .steps-cta .btn-primary,
  .steps-cta .btn-secondary { width: 100%; justify-content: center; }

  /* Тарифы — медиа-правила вынесены в блок .pr-* выше */

  /* Авторы — 1 колонка */
  .authors-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Section titles */
  .section-title { font-size: 32px; }
  .final-cta-title { font-size: 28px; }
  .final-cta-actions { flex-direction: column; }
  .final-cta-actions .cta-link { width: 100%; justify-content: center; }

  /* Footer */
  .footer-links { gap: 8px 16px; }
  /* Touch-targets ≥44px на мобильном (Apple HIG) */
  .footer-links a,
  .footer-links button { padding: 10px 4px; min-height: 44px; display: inline-flex; align-items: center; }

  /* Кнопки в топбаре — увеличиваем touch-target */
  .btn-outline-sm, .btn-green-sm { padding: 11px 14px; font-size: 13px; min-height: 44px; }
  .theme-toggle-btn { width: 44px; height: 44px; }

  /* Чипсы стратегий/индикаторов — крупнее на тач */
  .two-thing-chip { padding: 8px 12px; min-height: 36px; }

  /* Ссылки в авторских карточках */
  .ab-card-link { padding: 10px 14px; min-height: 40px; }

  /* Крестик модалки */
  .modal-close { width: 44px; height: 44px; }

  /* FAQ summary — больше padding для тапа; left padding для дыхания текста от края карточки */
  details.faq-item summary.faq-question { padding: 16px 36px 16px 16px; min-height: 56px; }

  /* what-is-main защита от overflow */
  .what-is-main { max-width: 100%; }
}

/* ══════════════════════════════════════════════════════════
   T-14: Новые модалки Cryptorg / CTG / Academy
   ══════════════════════════════════════════════════════════ */

/* Сброс дефолтного стиля кнопки — topbar-link (кнопки Cryptorg/Академия/CTG) */
button.topbar-link {
  background: transparent;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  /* color/font-size/font-weight уже наследуются из общего .topbar-link */
}

/* Сброс дефолтного стиля кнопки — hero «Бесплатное обучение» */
button.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  font-family: inherit;
  cursor: pointer;
}

/* Сброс дефолтного стиля кнопки — ecosystem-card */
button.ecosystem-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

/* Бейдж «бесплатно» в модалке Academy */
.modal-edu-badge {
  display: inline-block;
  background: var(--green-dim, rgba(13,148,136,0.08));
  color: var(--green-text, #0d9488);
  border: 1px solid var(--green-border, rgba(13,148,136,0.2));
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Метка секции внутри модалки */
.modal-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  margin-top: 4px;
}

/* Ментор в модалке Academy */
.modal-mentor {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--bg3, #1e2329);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
.modal-mentor-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--green-text, #0d9488);
}
.modal-mentor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-mentor-info { display: flex; flex-direction: column; gap: 2px; }
.modal-mentor-name { font-size: 16px; font-weight: 800; color: var(--strong); }
.modal-mentor-handle { font-size: 12px; color: var(--green-text, #0d9488); }
.modal-mentor-role { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.modal-mentor-bio { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* Учебный план: 6 нумерованных шагов сеткой 3×2 */
.modal-roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.modal-roadmap-card {
  background: var(--bg3, #1e2329);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.modal-roadmap-num {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'Urbanist', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--border);
}
.modal-roadmap-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--green-dim, rgba(13,148,136,0.08));
  color: var(--green-text, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.modal-roadmap-title { font-size: 13px; font-weight: 800; color: var(--strong); }
.modal-roadmap-desc { font-size: 11px; color: var(--muted); line-height: 1.5; }

/* Сетка преимуществ внутри модалок (Cryptorg, CTG) — 3×2 */
.modal-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 8px 0 24px;
}
.modal-benefit {
  background: var(--bg3, #1e2329);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-dim, rgba(13,148,136,0.08));
  color: var(--green-text, #0d9488);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.modal-benefit-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--strong);
}
.modal-benefit-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}

/* Две карточки бирж в строку */
.modal-exchanges-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-exchange-card {
  background: var(--bg3, #1e2329);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.modal-exchange-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.modal-exchange-head h3 {
  font-family: 'Urbanist', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--strong);
}
.modal-exchange-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 12px;
}
.modal-exchange-features li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.modal-exchange-features li::before {
  content: '✓';
  color: var(--green-text, #0d9488);
  flex-shrink: 0;
}
.modal-exchange-kyc {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}
.modal-exchange-kyc.required { background: rgba(255,152,0,0.12); color: #ff9800; }
.modal-exchange-kyc.optional { background: rgba(13,148,136,0.12); color: var(--green-text, #0d9488); }

/* Сетка комиссий */
.modal-fees-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.modal-fee {
  background: var(--bg3, #1e2329);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
}
.modal-fee--accent {
  border-color: var(--green-border, rgba(13,148,136,0.2));
  background: var(--green-dim, rgba(13,148,136,0.08));
}
.modal-fee-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.modal-fee-value {
  font-family: 'Urbanist', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--strong);
}
.modal-fee--accent .modal-fee-value { color: var(--green-text, #0d9488); }

/* CTA-блок внутри модалки */
.modal-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.modal-cta-row .btn-primary,
.modal-cta-row .btn-secondary { flex: 1; min-width: 180px; justify-content: center; }
@media (max-width: 480px) {
  .modal-cta-row .btn-primary,
  .modal-cta-row .btn-secondary { min-width: 0; width: 100%; }
  .modal-cta-row { flex-direction: column; }
}

/* Блок «две вещи» — используется в секции #fomotema (grid) и может использоваться в модалках (flex) */
/* .modal-two-things удалён вместе с модалкой; сетка .two-things описана в разделе 4 */
.two-thing {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg3, #1a1a1a);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.two-thing-num {
  flex-shrink: 0;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(13, 148, 136, 0.35);
  color: var(--green);
  font-family: 'Urbanist', sans-serif;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.two-thing-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.two-thing-body strong {
  display: block;
  color: var(--strong);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.two-thing-body p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
}
@media (max-width: 640px) {
  .two-thing { padding: 14px; gap: 12px; }
  .two-thing-num { width: 32px; height: 32px; font-size: 15px; }
  .two-thing-body strong { font-size: 14px; }
  .two-thing-body p { font-size: 12.5px; }
}

/* Подзаголовок секции внутри модалки */
.modal-section-title {
  font-family: 'Urbanist', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-text, #0d9488);
  margin: 32px 0 4px;
}

/* Буллит-лист внутри модалки */
.modal-bullets {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.modal-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  color: var(--text, #c0c0c0);
  line-height: 1.65;
}
.modal-bullets li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.modal-bullets li strong {
  color: var(--strong);
  font-weight: 700;
  display: inline;
  margin-right: 4px;
}

/* Текстовые блоки в модалке CTG */
.modal-text-block {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* Технические детали CTG */
.modal-ctg-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--bg3, #1e2329);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
}
.modal-ctg-tech-item { display: flex; gap: 6px; }
.modal-ctg-tech-label { color: var(--strong); font-weight: 700; }
.modal-ctg-contract {
  font-family: monospace;
  color: var(--green-text, #0d9488);
  cursor: help;
}

/* Адаптивность модалок ≤768px */
@media (max-width: 768px) {
  .modal-benefits-grid,
  .modal-roadmap-grid { grid-template-columns: 1fr; }
  .modal-exchanges-grid { grid-template-columns: 1fr; }
  .modal-fees-row { grid-template-columns: 1fr; }
  .modal-mentor { flex-direction: column; text-align: center; }
  .modal-ctg-tech { flex-direction: column; gap: 8px; }
}

/* Секция «Об авторах» — расширенная */
.ab-platform {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 28px 32px;
  margin-bottom: 36px;
}
.ab-platform-h {
  font-size: 16px;
  font-weight: 800;
  color: var(--strong);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ab-platform-h i { color: var(--green); }
.ab-platform-p {
  font-size: 13px;
  color: var(--text);
  line-height: 1.75;
  margin: 0;
}

.ab-founders {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.ab-card {
  flex: 1;
  min-width: 280px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.ab-card:hover { border-color: rgba(13, 148, 136, 0.25); }

.ab-card-header {
  height: 80px;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(13, 148, 136, 0.06) 100%);
  position: relative;
  flex-shrink: 0;
}
.ab-card-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--bg2);
  position: absolute;
  bottom: -48px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: rgba(13, 148, 136, 0.25);
}
.ab-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.ab-card-body {
  padding: 56px 20px 24px;
  text-align: center;
}
.ab-card-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--strong);
  margin-bottom: 2px;
}
.ab-card-handle {
  font-size: 13px;
  color: var(--green);
  margin-bottom: 12px;
}
.ab-card-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
  text-align: left;
}

.ab-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ab-tl-item {
  display: flex;
  gap: 12px;
  position: relative;
  padding-bottom: 14px;
}
.ab-tl-item:last-child { padding-bottom: 0; }
.ab-tl-item:last-child .ab-tl-line { display: none; }
.ab-tl-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
}
.ab-tl-year {
  font-size: 11px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}
.ab-tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 4px;
  flex-shrink: 0;
}
.ab-tl-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  margin-top: 4px;
}
.ab-tl-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding-top: 2px;
}

.ab-card-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ab-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg3);
  transition: border-color 0.15s, color 0.15s;
}
.ab-card-link:hover {
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--green);
}
.ab-card-link:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.ab-card-link i { font-size: 11px; }

/* .ab-contact* — удалены 2026-05-27 (мёртвый код; блок «Связаться с нами» убран ранее) */

@media (max-width: 640px) {
  .ab-founders { flex-direction: column; }
  .ab-platform { padding: 20px 16px 24px; }
}

/* ───────────────────────────────────────────────────────
   Кнопка «наверх» — плавающая, появляется после скролла
   ─────────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.35);
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--green);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(13, 148, 136, 0.6);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 0.15s linear; transform: none; }
  .back-to-top.is-visible { transform: none; }
}
@media (max-width: 768px) {
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; font-size: 16px; }
}

/* ══════════════════════════════════════════════════════════
   EDUCATION SECTION (Cryptorg Academy) — перенос с /education/
   ══════════════════════════════════════════════════════════ */
.edu .container { max-width: 1180px; }

.edu-top-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.edu-eyebrow { margin: 0; flex-shrink: 0; font-size: 1.4em; letter-spacing: 2px; }
.edu-free-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; background: rgba(13,148,136,0.08); border: 1px solid rgba(13,148,136,0.3); color: var(--green-text, var(--green)); font-size: 14px; font-weight: 700; white-space: nowrap; margin-left: auto; }
[data-theme="light"] .edu-free-badge { background: rgba(0,158,99,0.08); border-color: rgba(0,158,99,0.35); }
@media (max-width: 1000px) { .edu-free-badge { white-space: normal; margin-left: 0; } }
@media (max-width: 600px) { .edu-free-badge { font-size: 12px; padding: 8px 16px; } }

.edu-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 40px; align-items: center; margin-bottom: 64px; }
.edu-title { text-align: left; margin-bottom: 16px; }
.edu-title .accent { color: var(--green); }
.edu-hero-sub { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 28px; max-width: 600px; }
.edu-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.edu-mentor-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.edu-mentor-avatar { width: 96px; height: 96px; border-radius: 50%; border: 3px solid var(--green); overflow: hidden; flex-shrink: 0; background: var(--bg); display: flex; align-items: center; justify-content: center; font-family: 'Urbanist', sans-serif; font-size: 36px; font-weight: 900; color: var(--green); }
.edu-mentor-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.edu-mentor-body { min-width: 0; }
.edu-mentor-name { font-family: 'Urbanist', sans-serif; font-size: 24px; font-weight: 900; color: var(--strong); margin-bottom: 4px; }
.edu-mentor-handle { font-size: 13px; color: var(--green-text, var(--green)); margin-bottom: 12px; font-weight: 700; }
.edu-mentor-bio { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }
.edu-mentor-bio a { color: var(--green-text, var(--green)); text-decoration: underline; text-decoration-color: rgba(13,148,136,0.4); text-underline-offset: 2px; transition: color 0.15s; }
.edu-mentor-bio a:hover { color: var(--strong); }
@media (max-width: 900px) { .edu-hero-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .edu-mentor-card { grid-template-columns: 1fr; text-align: center; } .edu-mentor-avatar { margin: 0 auto; } }

.edu-subeyebrow { margin-top: 56px; margin-bottom: 12px; }
.edu-h3 { font-family: 'Urbanist', sans-serif; font-size: 32px; font-weight: 900; color: var(--strong); line-height: 1.15; margin-bottom: 12px; }
.edu-h3-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; max-width: 700px; }

.edu-format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 64px; }
.edu-format-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.edu-format-card:hover { border-color: var(--green); transform: translateY(-2px); }
.edu-format-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(13,148,136,0.1); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.edu-format-title { font-family: 'Urbanist', sans-serif; font-size: 16px; font-weight: 700; color: var(--strong); margin-bottom: 8px; line-height: 1.3; }
.edu-format-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
@media (max-width: 980px) { .edu-format-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .edu-format-grid { grid-template-columns: 1fr; } }

.edu-cryptorg { background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 36px; margin-bottom: 28px; }
.edu-cg-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.edu-cg-h-icon { font-size: 28px; color: var(--green); }
.edu-cg-title { font-family: 'Urbanist', sans-serif; font-size: 26px; font-weight: 900; color: var(--strong); margin: 0; line-height: 1.2; }
.edu-cg-sub { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; max-width: 820px; }
.edu-cg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.edu-cg-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 20px; transition: border-color 0.2s; }
.edu-cg-card:hover { border-color: var(--green); }
.edu-cg-icon { width: 36px; height: 36px; border-radius: 8px; background: rgba(13,148,136,0.1); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 16px; margin-bottom: 12px; }
.edu-cg-card-title { font-family: 'Urbanist', sans-serif; font-size: 15px; font-weight: 700; color: var(--strong); margin-bottom: 6px; }
.edu-cg-card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.edu-cg-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 980px) { .edu-cg-grid { grid-template-columns: repeat(2, 1fr); } .edu-cryptorg { padding: 28px 20px; } }
@media (max-width: 600px) { .edu-cg-grid { grid-template-columns: 1fr; } }

.edu-bonus { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px 32px; margin-bottom: 28px; background: linear-gradient(135deg, rgba(13,148,136,0.12) 0%, rgba(13,148,136,0.04) 100%); border: 1px solid rgba(13,148,136,0.3); border-radius: 16px; position: relative; overflow: hidden; }
.edu-bonus::before { content: ''; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(13,148,136,0.12) 0%, transparent 65%); pointer-events: none; }
.edu-bonus-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; position: relative; z-index: 1; }
.edu-bonus-body { position: relative; z-index: 1; }
.edu-bonus-title { font-family: 'Urbanist', sans-serif; font-size: 20px; font-weight: 800; color: var(--strong); margin-bottom: 6px; line-height: 1.25; }
.edu-bonus-text { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0; }
.edu-bonus-text strong { color: var(--green-text, var(--green)); }
[data-theme="light"] .edu-bonus { background: linear-gradient(135deg, rgba(0,158,99,0.1) 0%, rgba(0,158,99,0.03) 100%); border-color: rgba(0,158,99,0.35); }
@media (max-width: 600px) { .edu-bonus { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; } .edu-bonus-icon { margin: 0 auto; } }

.edu-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edu-cta-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.2s; }
.edu-cta-card.edu-cta-blue { border-color: rgba(19,128,247,0.4); }
.edu-cta-card.edu-cta-blue:hover { border-color: var(--blue); }
.edu-cta-card.edu-cta-green { border-color: rgba(13,148,136,0.4); }
.edu-cta-card.edu-cta-green:hover { border-color: var(--green); }
.edu-cta-h { font-family: 'Urbanist', sans-serif; font-size: 19px; font-weight: 800; color: var(--strong); margin: 0; display: flex; align-items: center; gap: 10px; }
.edu-cta-blue .edu-cta-h i { color: var(--blue); }
.edu-cta-green .edu-cta-h i { color: var(--green); }
.edu-cta-p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; flex: 1; }
.edu-cta-card .btn-primary, .edu-cta-card .btn-secondary { align-self: center; margin-top: auto; }
@media (max-width: 800px) { .edu-cta-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   CRYPTORG SECTION — единый блок про Cryptorg после Академии
   ══════════════════════════════════════════════════════════ */
.cryptorg-section .container { max-width: 1180px; }
.cg-eyebrow { margin-bottom: 14px; }
.cg-h2 { text-align: left; margin-bottom: 14px; }
.cg-sub { font-size: 16px; color: var(--muted); line-height: 1.65; margin-bottom: 36px; max-width: 880px; }
.cg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.cg-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: border-color 0.2s, transform 0.2s; }
.cg-card:hover { border-color: var(--green); transform: translateY(-2px); }
.cg-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(13,148,136,0.1); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.cg-card-title { font-family: 'Urbanist', sans-serif; font-size: 17px; font-weight: 800; color: var(--strong); margin-bottom: 8px; line-height: 1.3; }
.cg-card-desc { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }
.cg-bonus { margin-top: 8px; margin-bottom: 28px; }
.cg-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 980px) { .cg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cg-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   MODAL CTG — новый дизайн по аналогии с /ctg/ hero
   ══════════════════════════════════════════════════════════ */
.modal-ctg-wide { max-width: 920px; }
.modal-ctg-title { font-family: 'Urbanist', sans-serif; line-height: 1.15; }
.modal-ctg-accent { color: var(--green); }

.modal-ctg-soon { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; margin: 20px 0 24px; background: rgba(255,170,0,0.08); border: 1px solid rgba(255,170,0,0.3); border-radius: 12px; color: var(--text); font-size: 14px; line-height: 1.55; }
.modal-ctg-soon i { color: #ffaa00; font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.modal-ctg-soon strong { color: #ffaa00; }
[data-theme="light"] .modal-ctg-soon { background: rgba(204,123,0,0.08); border-color: rgba(204,123,0,0.35); }
[data-theme="light"] .modal-ctg-soon i, [data-theme="light"] .modal-ctg-soon strong { color: #b86b00; }

.modal-ctg-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }

.modal-ctg-strip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; margin-bottom: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.modal-ctg-strip-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--green); }
.modal-ctg-strip-pills { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.modal-ctg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: rgba(13,148,136,0.08); border: 1px solid rgba(13,148,136,0.25); border-radius: 999px; font-size: 12px; color: var(--text); font-weight: 600; }
.modal-ctg-pill i { color: var(--green); font-size: 11px; }

.modal-ctg-tg { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px; margin-bottom: 24px; background: linear-gradient(135deg, rgba(0,136,204,0.1) 0%, rgba(0,136,204,0.04) 100%); border: 1px solid rgba(0,136,204,0.3); border-radius: 14px; }
.modal-ctg-tg-info { display: flex; align-items: flex-start; gap: 16px; }
.modal-ctg-tg-icon { width: 48px; height: 48px; border-radius: 50%; background: #0088cc; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.modal-ctg-tg-title { font-family: 'Urbanist', sans-serif; font-size: 18px; font-weight: 800; color: var(--strong); margin: 0 0 6px; line-height: 1.3; }
.modal-ctg-tg-desc { font-size: 13px; color: var(--text); line-height: 1.55; margin: 0 0 10px; }
.modal-ctg-tg-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.modal-ctg-tg-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: rgba(0,136,204,0.12); border-radius: 999px; font-size: 11px; color: #4fa3d8; font-weight: 600; }
.modal-ctg-tg-pill i { font-size: 10px; }
.modal-ctg-tg-cta { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.modal-ctg-tg-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: #0088cc; color: #fff; border-radius: 8px; font-weight: 700; font-size: 14px; text-decoration: none; transition: background 0.15s; white-space: nowrap; }
.modal-ctg-tg-btn:hover { background: #006fa3; }
.modal-ctg-tg-name { font-size: 12px; color: var(--muted); font-family: monospace; }
@media (max-width: 700px) { .modal-ctg-tg { grid-template-columns: 1fr; } .modal-ctg-tg-cta { flex-direction: row; justify-content: center; } }

.modal-ctg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.modal-ctg-stat { padding: 16px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.modal-ctg-stat--accent { border-color: rgba(13,148,136,0.4); background: rgba(13,148,136,0.04); }
.modal-ctg-stat-lbl { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; font-weight: 700; }
.modal-ctg-stat-val { font-family: 'Urbanist', sans-serif; font-size: 18px; font-weight: 900; color: var(--strong); margin-bottom: 4px; }
.modal-ctg-stat--accent .modal-ctg-stat-val { color: var(--green); }
.modal-ctg-stat-sub { font-size: 11px; color: var(--muted); line-height: 1.4; }
@media (max-width: 700px) { .modal-ctg-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .modal-ctg-stats { grid-template-columns: 1fr; } }

/* Кликабельный контракт */
.modal-ctg-stat-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--green); transition: color 0.15s; }
.modal-ctg-stat-link:hover { color: var(--strong); }
.modal-ctg-stat-link i { font-size: 11px; opacity: 0.7; }

/* Блок «Зачем держать CTG» — компактный список с пометками этапа разработки */
.modal-ctg-benefits { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.modal-ctg-benefits-title { font-family: 'Urbanist', sans-serif; font-size: 22px; font-weight: 900; color: var(--strong); margin: 0 0 18px; }
.modal-ctg-benefits-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-ctg-benefit { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.modal-ctg-benefit-icon { width: 38px; height: 38px; border-radius: 8px; background: rgba(13,148,136,0.1); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.modal-ctg-benefit-body { min-width: 0; }
.modal-ctg-benefit-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-family: 'Urbanist', sans-serif; font-size: 15px; font-weight: 800; color: var(--strong); margin-bottom: 8px; line-height: 1.3; }
.modal-ctg-benefit-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; }
.modal-ctg-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.modal-ctg-badge i { font-size: 9px; }
.modal-ctg-badge-live { background: rgba(13,148,136,0.12); color: var(--green); border: 1px solid rgba(13,148,136,0.3); }
.modal-ctg-badge-wip { background: rgba(255,170,0,0.1); color: #ffaa00; border: 1px solid rgba(255,170,0,0.3); }
[data-theme="light"] .modal-ctg-badge-wip { background: rgba(204,123,0,0.1); color: #b86b00; border-color: rgba(204,123,0,0.3); }
@media (max-width: 700px) { .modal-ctg-benefits-list { grid-template-columns: 1fr; } }

/* Финальный CTA внизу модалки CTG */
.modal-ctg-final-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }


/* install-help (universal install instructions) */
.install-help-section {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 12px;
  background: rgba(255,255,255,0.02);
  transition: border-color .2s, background .2s;
}
.install-help-section--active {
  border-color: var(--green);
  background: rgba(13, 148, 136, 0.08);
  order: -1; /* активная секция всплывает наверх в flex-контейнере */
}
.install-help-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.install-help-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--green);
}
.install-help-section--active .install-help-icon { color: var(--green); }
.install-help-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--strong, #fff);
  line-height: 1.3;
}
.install-help-steps {
  margin: 6px 0 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
}
.install-help-steps li { margin-bottom: 6px; }
.install-help-steps li:last-child { margin-bottom: 0; }
.install-help-steps strong { color: var(--strong, #fff); }
.install-help-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}
.install-help-note strong { color: var(--text); }
.install-help-foot {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
/* Flex-стэк секций чтобы порядок управлялся через order */
#modal-install-help .modal-content { display: flex; flex-direction: column; }
#modal-install-help .install-help-section { order: 0; }


/* ref-code-note (under Cryptorg registration buttons) */
.cta-with-ref {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.cta-with-ref .btn-primary { width: 100%; box-sizing: border-box; justify-content: center; text-align: center; }
.ref-code-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.2px;
  line-height: 1.4;
}
.ref-code-note strong {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}


/* reviews block (Academy Telegram group) */
#reviews .section-eyebrow { color: var(--green); }
.reviews-cta {
  display: flex;
  justify-content: center;
  margin: 8px 0 28px;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 1100px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--bg2, #0f1419);
  border: 1px solid var(--border, #1f2937);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, transform .2s;
}
.review-card:hover { border-color: var(--green); transform: translateY(-2px); }
.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  flex-shrink: 0;
}
.review-author {
  font-weight: 700;
  color: var(--strong, #fff);
  font-size: 15px;
}
.review-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.review-card.is-expanded .review-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.review-toggle {
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
}
.review-toggle:hover { color: var(--green-hover); text-decoration: underline; }
.review-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }
/* Hide toggle if text is short enough to not be clamped */
.review-card[data-clamped="false"] .review-toggle { display: none; }

.review-source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding-top: 8px;
  border-top: 1px solid var(--border, #1f2937);
  transition: color .2s;
}
.review-source:hover { color: var(--green); }
.review-source i { font-size: 14px; }

.reviews-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}


/* review-date (added with dated reviews) */
.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.review-date {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}


/* edu-hero-reviews-link (link to reviews under Academy hero actions) */
.edu-hero-reviews-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s, transform .2s;
}
.edu-hero-reviews-link:hover {
  color: var(--green-hover);
  transform: translateX(2px);
}
.edu-hero-reviews-link i { font-size: 14px; }


/* reviews-show-all (first row + modal) */
.reviews-grid > .review-card:nth-child(n+5) { display: none; }
@media (max-width: 1100px) {
  .reviews-grid > .review-card:nth-child(n+5) { display: none; }
  .reviews-grid > .review-card:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
  .reviews-grid > .review-card:nth-child(n+2) { display: none; }
}
.reviews-show-all {
  display: flex;
  justify-content: center;
  margin: 14px 0 0;
}
.reviews-show-all .btn-secondary { gap: 8px; }

.modal-reviews-wide { max-width: 760px; display: flex; flex-direction: column; }
#modal-reviews-all .reviews-all-list {
  margin-top: 18px;
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-right: 6px;
}
#modal-reviews-all .reviews-all-list::-webkit-scrollbar { width: 8px; }
#modal-reviews-all .reviews-all-list::-webkit-scrollbar-thumb {
  background: var(--border, #1f2937);
  border-radius: 4px;
}
#modal-reviews-all .reviews-all-list .review-card { width: 100%; }
#modal-reviews-all .reviews-all-list .review-card .review-text {
  -webkit-line-clamp: unset !important;
  overflow: visible !important;
  display: block !important;
}
#modal-reviews-all .reviews-all-list .review-card .review-toggle { display: none; }


/* reviews heading row (title + inline join button) */
.reviews-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
}
.reviews-section-title {
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.reviews-cta-inline {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 640px) {
  .reviews-heading-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .reviews-cta-inline { justify-content: center; }
}


/* reviews modal fullscreen toggle */
.modal-expand {
  position: absolute;
  top: 16px;
  right: 68px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border, #1f2937);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background .2s, color .2s, border-color .2s;
}
.modal-expand:hover {
  background: rgba(13, 148, 136, 0.12);
  border-color: var(--green);
  color: var(--green);
}
.modal-expand:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Fullscreen state: applied on modal-content via JS */
.modal-content.is-fullscreen {
  max-width: 95vw !important;
  width: 95vw;
  max-height: 92vh !important;
  height: 92vh;
  display: flex;
  flex-direction: column;
}
#modal-reviews-all .modal-content.is-fullscreen .reviews-all-list {
  max-height: none;
  flex: 1;
  overflow-y: auto;
}
/* Two columns when fullscreen + viewport wide enough */
@media (min-width: 900px) {
  #modal-reviews-all .modal-content.is-fullscreen .reviews-all-list {
    column-count: 2;
    column-gap: 16px;
  }
  #modal-reviews-all .modal-content.is-fullscreen .reviews-all-list > .review-card {
    break-inside: avoid;
    margin-bottom: 16px;
    display: block; /* override flex from .review-card to allow break-inside */
  }
}

/* On small screens hide the expand button — already takes full width */
@media (max-width: 640px) {
  .modal-expand { display: none; }
}

/* extra breathing room around Cryptorg → Reviews boundary (line was too close to ref-code button) */



/* Equal button heights inside .cg-actions: align top so .btn-secondary doesn't stretch past .btn-primary, both stay at min-height 48px */
.cg-actions { align-items: flex-start; }
