/**
 * Lovable x Cursor — Дизайн-система v2.0.3
 * Объединенный файл для использования в AskExp Frontend
 */

/* ===== ИМПОРТ ШРИФТОВ ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== ДИЗАЙН-ТОКЕНЫ ===== */

:root {
  /* Цвета - основная палитра */
  --accent-primary: #4169E1;
  --accent-secondary: #2B6CEE;

  /* Цвета текста */
  --text-main: #1a1a1a;
  --text-secondary: #4b5563;
  --text-muted: #666666;
  --text-hero: #ffffff;

  /* Chart colors */
  --chart-color-1: #4169E1;
  --chart-color-2: #87cefa;
  --chart-color-3: #facc15;
  --chart-color-4: #34d399;
  --chart-color-5: #a78bfa;
  --chart-grid-line: rgba(255, 255, 255, 0.08);
  --chart-label: var(--text-muted);

  /* Фоны */
  --bg-main: #fafafa;
  --bg-surface: #ffffff;
  --bg-card: #f8f9fa;
  --bg-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Границы */
  --border-soft: #e1e5e9;
  --border-strong: #c1c7cd;

  /* Радиусы */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Отступы */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Типографика */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Z-индексы */
  --z-dropdown: 1000;
  --z-modal: 1050;
  --z-navbar: 1030;
  --z-toast: 1080;

  /* Анимации */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Текстуры и эффекты */
  --texture-grain: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.15'/%3E%3C/svg%3E");
  --glow-effect: 0 0 20px rgba(65, 105, 225, 0.3);

  /* Градиенты */
  --gradient-primary: linear-gradient(135deg, #4169E1, #2B6CEE);
  --gradient-secondary: linear-gradient(135deg, #667eea, #764ba2);
  --gradient-background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --gradient-background-dark: linear-gradient(135deg, #434343 0%, #000000 100%);
}

/* Темная тема */
[data-theme="dark"] {
  --text-main: #ffffff;
  --text-secondary: #d1d5db;
  --text-muted: #bbbbbb;
  --text-hero: #ffffff;

  --bg-main: #0f0f0f;
  --bg-surface: #1e1e1e;
  --bg-card: #1a1a1a;
  --bg-hero: var(--gradient-background-dark);

  --border-soft: #333333;
  --border-strong: #555555;

  --accent-primary: #4169E1;
  --accent-secondary: #60A5FA;

  --glow-effect: 0 0 16px rgba(65, 105, 225, 0.4);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-main);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  transition: all var(--transition-normal);
}

[data-theme="dark"] body,
[data-theme="dark"] html {
  background: #000000;
}

/* Grain эффект (статичный, без анимации) */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--texture-grain);
  pointer-events: none;
  z-index: -1;
  opacity: 0.3;
}

/* ===== КОМПОНЕНТЫ ===== */

/* Контейнеры */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Hero секции */
.hero {
  text-align: center;
  padding: var(--space-4xl) 0;
  background: var(--bg-hero);
  color: var(--text-hero);
  position: relative;
  overflow: hidden;
}

/* Hero с фоновым изображением - УДАЛЕН (объединен с новым стилем ниже) */

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.button-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow-effect);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.button-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.button-secondary:hover {
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.button-glow {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.button-glow:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

/* Размеры кнопок */
.button-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-sm);
}

.button-lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--font-size-lg);
}

/* Карточки */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-feature {
  text-align: center;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-lg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-main);
  margin-bottom: var(--space-md);
}

.card-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.card-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Переключатель темы */
.theme-toggle {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--font-size-lg);
}

.theme-toggle:hover {
  background: var(--bg-card);
  transform: scale(1.05);
}

/* Радужный текст */
.text-rainbow {
  background: linear-gradient(135deg, #2B6CEE, #4169E1, #60A5FA, #93C5FD);
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-pulse 3s ease-in-out infinite;
}

@keyframes rainbow-pulse {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Секции компонентов */
.component-section {
  padding: var(--space-4xl) 0;
  border-bottom: 1px solid var(--border-soft);
}

.component-title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--text-main);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.component-description {
  font-size: var(--font-size-lg);
  color: var(--text-muted);
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Сетки */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

/* Flex утилиты */
.flex {
  display: flex;
}

.gap-md {
  gap: var(--space-md);
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .examples-grid {
    grid-template-columns: 1fr;
  }

  .flex {
    flex-direction: column;
  }

  /* Отключаем фиксированный фон на мобильных */
  .hero-with-background,
  .expnote-hero {
    background-attachment: scroll;
  }
}

/* Статистика */
.stats-section {
  background: var(--bg-surface);
  padding: var(--space-3xl) 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.stat-item {
  padding: var(--space-lg);
}

.stat-number {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.stat-label {
  color: var(--text-muted);
  font-size: var(--font-size-base);
}

/* Футер */
.footer {
  background: var(--bg-surface);
  padding: var(--space-2xl) 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
}

/* ===== Навигация и футер (алисация под системные токены) ===== */
.ds-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-soft);
}

.ds-navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
}

.ds-nav-list {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  align-items: center;
}

.ds-nav-item {
  display: inline-flex;
}

.ds-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.ds-nav-link:hover {
  color: var(--accent-primary);
}

.ds-nav-cta .ds-button {
  margin-left: var(--space-md);
}

/* ═══════════════════════════════════════════════════════════
   Mobile Overlay Menu (Modern Design)
   ═══════════════════════════════════════════════════════════ */

/* Десктоп меню - скрыто на мобилке */
.desktop-menu {
  display: flex;
}

/* Мобильный header - скрыт на десктопе */
.mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Логотип и название */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-main);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-lg);
  transition: color var(--transition-normal);
}

.navbar-brand:hover {
  color: var(--accent-primary);
}

.navbar-logo {
  font-size: 1.5rem;
  line-height: 1;
}

.navbar-title {
  font-weight: 600;
}

/* Бургер-кнопка */
.navbar-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 1.75rem;
  padding: var(--space-xs);
  transition: transform 0.2s ease;
}

.navbar-toggle:hover {
  transform: scale(1.1);
}

.navbar-toggle-icon {
  display: block;
  line-height: 1;
}

/* Overlay контейнер */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
  opacity: 0;
}

.mobile-menu-overlay.hidden {
  display: none;
}

.mobile-menu-overlay:not(.hidden) {
  pointer-events: auto;
  opacity: 1;
}

/* Затемнение фона */
.mobile-menu-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Контейнер меню */
.mobile-menu-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: var(--bg-surface);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}

.mobile-menu-overlay:not(.hidden) .mobile-menu-container {
  transform: translateX(0);
}

/* Header меню */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-main);
}

/* Кнопка закрытия */
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-menu-close:hover {
  color: var(--accent-primary);
  transform: rotate(90deg);
}

/* Навигация */
.mobile-menu-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--space-md) 0;
  overflow-y: auto;
}

/* Ссылки меню */
.mobile-menu-link {
  display: block;
  padding: var(--space-lg) var(--space-xl);
  color: var(--text-main);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid var(--border-soft);
  transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
  color: var(--accent-primary);
  background: var(--surface-hover);
  transform: translateX(4px);
}

/* Кнопка Telegram */
.mobile-menu-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin: var(--space-xl) var(--space-xl) var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border: 2px solid var(--accent-primary);
  border-radius: 9999px;
  background: transparent;
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: all 0.2s ease;
}

.mobile-menu-telegram:hover {
  background: var(--accent-primary);
  color: var(--text-inverse);
  transform: scale(1.05);
}

/* Кнопки (алиас на системные) */
.ds-button {
  composes: button;
}

.ds-button-primary {
  composes: button-primary;
}

/* Если composes недоступен в среде, задаём алиасы вручную */
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: var(--space-sm);
}

.ds-button-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
}

.ds-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.4);
}

.ds-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-2xl) 0;
}

.ds-footer-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.ds-footer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin: 0 0 var(--space-md) 0;
  padding: 0;
}

.ds-footer-link {
  color: var(--text-muted);
  text-decoration: none;
}

.ds-footer-link:hover {
  color: var(--text-main);
}

/* ===== Таблицы ===== */
.ds-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
}

.ds-table th,
.ds-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-soft);
  text-align: left;
}

.ds-table thead th {
  background: var(--bg-card);
  font-weight: var(--font-weight-semibold);
}

.ds-table-compare td:first-child {
  font-weight: var(--font-weight-medium);
  color: var(--text-main);
}

/* ===== Аккордеон ===== */
.ds-accordion {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ds-accordion-item {
  border-bottom: 1px solid var(--border-soft);
}

.ds-accordion-toggle {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: transparent;
  color: var(--text-main);
  border: 0;
  cursor: pointer;
  font-size: var(--font-size-base);
}

.ds-accordion-toggle:hover {
  background: var(--bg-card);
}

.ds-accordion-content {
  display: none;
  padding: 12px 16px;
  color: var(--text-muted);
}

/* ===== Бейджи и sticky-CTA ===== */
.ds-badge {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.ds-sticky-cta {
  position: sticky;
  bottom: 0;
  background: var(--bg-surface);
  padding: 12px;
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--border-soft);
}

/* ===== Планы/тарифы ===== */
.ds-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-xl);
  align-items: stretch;
}

.ds-plan-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.ds-plan-card h2 {
  margin: 0;
  font-size: var(--font-size-xl);
}

.ds-price {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

.ds-plan-features {
  margin: 0;
  padding-left: 18px;
  flex: 1;
}

.ds-cta-row {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ДЛЯ ЛЕНДИНГА ===== */

/* Секции */
.ds-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.ds-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
}

/* Фоны секций */
.ds-bg-card {
  background: var(--bg-card);
}

.ds-bg-surface {
  background: var(--bg-surface);
}

/* Типографика */
.ds-heading-xl {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.ds-heading-lg {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.ds-heading-md {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.ds-heading-sm {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.ds-text-lg {
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

.ds-text-sm {
  font-size: var(--font-size-sm);
  line-height: 1.5;
}

.ds-text-center {
  text-align: center;
}

.ds-text-muted {
  color: var(--text-muted);
}

/* Отступы */
.ds-mb-xl {
  margin-bottom: var(--space-xl);
}

.ds-mb-lg {
  margin-bottom: var(--space-lg);
}

.ds-mb-md {
  margin-bottom: var(--space-md);
}

.ds-mt-md {
  margin-top: var(--space-md);
}

.ds-p-xl {
  padding: var(--space-xl);
}

.ds-block {
  display: block;
}

/* Кнопки */
.ds-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
}

.ds-button-primary {
  background: var(--accent-primary);
  color: white;
}

.ds-button-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.ds-button-lg {
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--font-size-lg);
}

.ds-button-group {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* Карточки */
.ds-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

/* Списки шагов */
.ds-steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-xl);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ds-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
}

.ds-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  color: white;
  border-radius: 50%;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.ds-step-text {
  margin: 0;
  font-size: var(--font-size-lg);
  line-height: 1.6;
}

/* Таблицы */
.ds-table-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.ds-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
}

.ds-table th,
.ds-table td {
  padding: var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}

.ds-table th {
  background: var(--bg-surface);
  font-weight: var(--font-weight-semibold);
  color: var(--text-main);
}

.ds-table tbody tr:hover {
  background: var(--bg-surface);
}

/* Навигация */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-md) 0;
  box-shadow: none;
  transition: all 0.3s ease;
}

.ds-navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.ds-nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
  margin: 0;
  padding: 0;
}

.ds-nav-item {
  margin: 0;
}

.ds-nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-normal);
}

.ds-nav-link:hover {
  color: var(--accent-primary);
}

.ds-nav-cta {
  margin-left: auto;
}

/* Футер */
.ds-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-4xl) 0 var(--space-lg);
  margin-top: auto;
}

.ds-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.ds-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  margin-bottom: var(--space-lg);
}

.ds-footer-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.ds-footer-link:hover {
  color: var(--text-main);
}

.ds-footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* ===== ЭФФЕКТНЫЕ КНОПКИ ИЗ ДИЗАЙН-СИСТЕМЫ ===== */

/* Базовые кнопки */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.button-primary {
  background: #4169E1;
  color: white;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-glow {
  background: linear-gradient(135deg, #4169E1, #2B6CEE);
  color: white;
  box-shadow: 0 4px 15px rgba(65, 105, 225, 0.4);
}

.button-glow:hover {
  box-shadow: 0 8px 25px rgba(65, 105, 225, 0.6);
  transform: translateY(-2px);
}

/* Анимация пульсации */
.animate-glow {
  animation: glow-pulse 2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 138, 77, 0.4);
  }

  100% {
    box-shadow: 0 8px 30px rgba(255, 138, 77, 0.8), 0 0 20px rgba(255, 85, 230, 0.3);
  }
}

/* Эффект подъема */
.lift-effect {
  transition: all 0.3s ease;
}

.lift-effect:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== TELEGRAM DEMO КОМПОНЕНТЫ ===== */

/* Hero с Telegram демо */
.expnote-hero {
  position: relative;
  background-color: #1a1a2e;
  /* Fallback цвет пока грузится картинка */
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-hero);
  overflow: hidden;
  padding: var(--space-4xl) 0;
  opacity: 1;
}

/* Класс добавляется после загрузки изображения */
.expnote-hero.bg-loaded {
  background-image: url('../../static/images/background.png');
  animation: hero-bg-fade-in 0.6s ease-out;
}

/* Анимация появления фона */
@keyframes hero-bg-fade-in {
  from {
    background-image: none;
    background-color: #1a1a2e;
  }

  to {
    background-image: url('../../static/images/background.png');
    background-color: transparent;
  }
}

/* Hero Grid адаптивность */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  min-height: 600px;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }

  .hero-grid>div:first-child {
    padding-right: 0 !important;
    max-width: none !important;
    text-align: center;
  }

  .hero-grid>div:last-child {
    padding-left: 0 !important;
    justify-content: center !important;
  }

  /* Адаптивные сетки */
  .features-grid-2x2,
  .family-grid {
    grid-template-columns: 1fr !important;
  }

  .roi-explanation-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== ЧЕРЕДУЮЩИЕСЯ ФОНЫ СЕКЦИЙ ===== */

/* Основной фон для всех секций */
.component-section {
  background: var(--bg-main);
}

/* Каждая вторая секция (начиная со второй) */
.component-section:nth-child(even) {
  background: var(--bg-surface);
  position: relative;
}

/* Добавляем тонкую границу для лучшего разделения */
.component-section:nth-child(even)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-soft);
}

.component-section:nth-child(even)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-soft);
}

/* Убран grain эффект - используем только background.png */

.expnote-hero .container {
  position: relative;
  z-index: 2;
}

.text-rainbow {
  background: var(--gradient-primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbow-glow 3s ease-in-out infinite alternate;
}

@keyframes rainbow-glow {
  0% {
    filter: hue-rotate(0deg);
  }

  100% {
    filter: hue-rotate(15deg);
  }
}

/* Telegram Demo стили */
.telegram-demo {
  max-width: 400px;
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  flex-shrink: 0;
  margin: 0;
}

.telegram-header {
  display: flex;
  align-items: center;
  padding: var(--space-md);
  background: #2481cc;
  color: white;
  gap: var(--space-md);
}

.telegram-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #34c759;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.telegram-info h4 {
  margin: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

.telegram-info p {
  margin: 0;
  font-size: var(--font-size-sm);
  opacity: 0.8;
}

.telegram-chat {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-height: 200px;
}

.message {
  max-width: 80%;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  position: relative;
  animation: message-appear 0.3s ease-out forwards;
}

.message.user {
  background: #007aff;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
}

.message.bot {
  background: var(--bg-card);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

@keyframes message-appear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Анимация типирования для демо */
.telegram-chat .message:nth-child(1) {
  animation-delay: 0s;
}

.telegram-chat .message:nth-child(2) {
  animation-delay: 0.5s;
}

/* Chart Styles */
.chart-container {
  position: relative;
  padding: var(--space-md);
  margin: var(--space-md) 0;
  border-radius: var(--radius-md);
  background: transparent;
}

.chart-md {
  min-height: 250px;
}

.chart-grid {
  stroke: var(--chart-grid-line);
  stroke-width: 1;
}

.chart-axis-label {
  font-size: 12px;
  fill: var(--chart-label);
}

.bar-value {
  font-size: 12px;
  font-weight: 500;
  fill: var(--text-main);
}

.bar-rect:hover {
  opacity: 0.8;
  cursor: pointer;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
}

.donut-center-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.donut-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

.donut-legend-item:hover {
  background: var(--bg-surface);
}

.donut-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.donut-legend-text {
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.donut-legend-value {
  font-weight: 500;
  color: var(--text-main);
}

/* Chart Tab Buttons */
.chart-tab-button.active {
  background: rgba(255, 138, 77, 0.1) !important;
  border-color: var(--accent-primary) !important;
}

/* FlyonUI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
}

.btn-soft {
  background: rgba(255, 138, 77, 0.1);
  color: var(--accent-primary);
  border-color: rgba(255, 138, 77, 0.2);
}

.btn-soft:hover {
  background: rgba(255, 138, 77, 0.2);
  border-color: var(--accent-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border-soft);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
}

.w-full {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  color: white;
}

.badge-primary {
  background: var(--accent-primary);
  color: white;
}

.icon-\[tabler--check\] {
  width: 1rem;
  height: 1rem;
}

.icon-\[tabler--arrow-right\] {
  width: 1rem;
  height: 1rem;
}

/* Footer Styles */
footer a:hover {
  color: var(--accent-primary) !important;
  transform: translateX(2px);
}

footer .card-feature {
  transition: all 0.3s ease;
}

footer .card-feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
}

/* Chart color variables */
:root {
  --chart-color-1: #4169E1;
  --chart-color-2: #87cefa;
  --chart-color-3: #facc15;
  --chart-color-4: #34d399;
  --chart-color-5: #a78bfa;
  --chart-color-6: #fb923c;
  --chart-color-7: #60a5fa;
  --chart-color-8: #f87171;
  --chart-grid-line: rgba(255, 255, 255, 0.08);
  --chart-label: var(--text-muted);
}

[data-theme="light"] {
  --chart-grid-line: rgba(0, 0, 0, 0.08);
  --chart-label: #777777;
}

/* Chart containers */
.chart-container {
  position: relative;
  padding: 16px;
  margin: 8px;
  border-radius: 8px;
  background: transparent;
}

.chart-md {
  min-height: 250px;
}

/* SVG chart styles */
.chart-grid {
  stroke: var(--chart-grid-line);
  stroke-width: 1;
}

.chart-axis-label {
  font-size: 12px;
  fill: var(--chart-label);
}

.bar-value {
  font-size: 12px;
  font-weight: 500;
  fill: var(--text-main);
}

/* Interactive states */
.pie-segment:hover,
.bar-rect:hover {
  opacity: 0.8;
  cursor: pointer;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1;
}

.donut-center-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Chart legends */
.pie-legend,
.donut-legend,
.line-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.pie-legend-item,
.donut-legend-item,
.line-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 0.875rem;
}

.pie-legend-item:hover,
.donut-legend-item:hover,
.line-legend-item:hover {
  background: var(--bg-surface);
}

.pie-legend-color,
.donut-legend-color,
.line-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pie-legend-text,
.donut-legend-text {
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.pie-legend-value,
.donut-legend-value {
  font-weight: 500;
  color: var(--text-main);
}

.telegram-chat .message:nth-child(3) {
  animation-delay: 1s;
}

.telegram-chat .message:nth-child(4) {
  animation-delay: 1.5s;
}

/* =================================
   BLOG STYLES
   ================================= */

/* Blog Grid Layout */
.ds-grid {
  display: grid;
  gap: var(--space-lg);
}

.ds-grid-2col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ds-gap-xl {
  gap: var(--space-xl);
}

/* Blog Page Layout */
.ds-blog-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 992px) {
  .ds-blog-layout {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

.ds-blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  text-align: left;
}

.ds-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

/* Blog Card (уменьшено на 20% по просьбе пользователя) */
.ds-blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  position: relative; /* Для растянутой кликабельной ссылки */
  border: 1px solid var(--border-soft);
}

.ds-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25), 
              0 0 24px color-mix(in srgb, var(--category-color, #6366f1) 18%, transparent);
  border-color: color-mix(in srgb, var(--category-color, #6366f1) 40%, transparent);
}

/* Blog Image */
.ds-blog-image {
  width: 100%;
  aspect-ratio: 16 / 9; /* Подстраиваемся под формат 16:9, чтобы избежать обрезания */
  overflow: hidden;
  background: var(--bg-surface);
}

.ds-blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ds-blog-card:hover .ds-blog-image img {
  transform: scale(1.05);
}

/* Blog Content */
.ds-blog-content {
  padding: 12px; /* Уменьшено с var(--space-md) для компактности */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ds-blog-meta {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-xs); /* Уменьшено с var(--space-sm) */
  font-size: 0.8rem;
  margin-top: auto; /* Прижимает мета-информацию к низу карточки */
}

.ds-blog-date {
  color: var(--text-muted);
}

.ds-blog-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-xs); /* Уменьшено с var(--space-sm) */
  line-height: 1.3;
}

.ds-blog-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ds-blog-title a:hover {
  color: var(--accent-primary);
}

.ds-blog-excerpt {
  color: var(--text-muted);
  margin-bottom: var(--space-sm); /* Уменьшено с var(--space-md) */
  line-height: 1.5;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* Ограничиваем 2 строками вместо 3 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ds-blog-meta-bottom {
  display: flex;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs); /* Уменьшено с var(--space-sm) */
  flex-wrap: wrap;
}

.ds-blog-author a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ds-blog-author a:hover {
  color: var(--accent-primary);
}

.ds-blog-title a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

/* Blog Content Spacing */
.ds-blog-content {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
  margin: 15px 0;
}

/* =================================
   ARTICLE PAGE STYLES
   ================================= */

/* Icon Styles */
.ds-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.ds-icon-sm {
  width: 16px;
  height: 16px;
}

/* Article Share Buttons */
.ds-article-share-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.ds-article-share-buttons a {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.ds-article-share-buttons a:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 138, 77, 0.3);
}

.ds-article-share-buttons svg {
  width: 16px;
  height: 16px;
}

/* Back to Blog Button */
.ds-button-ghost {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  transition: all 0.2s ease;
  margin-top: 20px;
}

.ds-button-ghost:hover {
  background: var(--bg-surface);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateX(-4px);
}

/* ==== Article layout & rhythm ================================================== */
.ds-article .ds-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--space-lg, 24px);
}

.ds-article-header {
  margin-bottom: var(--space-2xl, 48px);
}

.ds-article-header .ds-heading-xl {
  margin-bottom: var(--space-md, 16px);
  letter-spacing: var(--letter-spacing-tight, -0.025em);
}

.ds-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm, 12px) var(--space-lg, 24px);
  color: var(--text-muted, var(--text-secondary));
}

.ds-article-cover {
  margin: var(--space-xl, 32px) 0;
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
  max-width: 1200px;
}

.ds-article-cover img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.ds-article-content>*+* {
  margin-top: var(--space-lg, 24px);
}

.ds-article-content h2 {
  margin-top: var(--space-2xl, 48px);
  margin-bottom: var(--space-md, 16px);
}

.ds-article-content h3 {
  margin-top: var(--space-xl, 32px);
  margin-bottom: var(--space-sm, 12px);
}

.ds-article-content li {
  margin-bottom: var(--space-xs, 8px);
}

/* ==== Buttons (unify touch target) ============================================ */
.ds-button {
  min-height: 44px;
  padding: 0 var(--space-md, 16px);
  border-radius: var(--radius-md, 8px);
}

.ds-button-sm {
  min-height: 36px;
  padding: 0 var(--space-sm, 12px);
  font-size: var(--font-size-sm, 14px);
}

.ds-button-lg {
  min-height: 48px;
  padding: 0 var(--space-lg, 24px);
  font-size: var(--font-size-lg, 18px);
}

/* ==== Share buttons ============================================================ */
.ds-article-share {
  margin-top: var(--space-2xl, 48px);
}

.ds-article-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm, 12px);
}

.ds-article-share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft, var(--border));
  border-radius: var(--radius-md, 8px);
  text-decoration: none;
  color: var(--text-main, var(--text-primary));
}

/* ==== Likes block (sizes + semantic tokens) =================================== */
.ds-article-likes {
  max-width: 920px;
  margin: var(--space-2xl, 48px) auto;
  padding: var(--space-lg, 24px);
  background: var(--surface);
  border: 1px solid var(--border-soft, var(--border));
  border-radius: var(--radius-lg, 12px);
  text-align: center;
}

.ds-article-like-btn {
  min-height: 40px;
  padding: 0 var(--space-md, 16px);
  border-radius: var(--radius-md, 8px);
}

.ds-article-like-btn.active[data-type="like"] {
  background: var(--success-600, #16a34a);
  border-color: var(--success-600, #16a34a);
  color: #fff;
}

.ds-article-like-btn.active[data-type="dislike"] {
  background: var(--error-600, #dc2626);
  border-color: var(--error-600, #dc2626);
  color: #fff;
}

/* ==== CTA card ================================================================ */
.ds-card.ds-bg-gradient {
  margin-top: 35px;
  margin-bottom: 35px;
  padding: var(--space-2xl, 48px);
}

/* ==== Mobile tweaks ============================================================ */
@media (max-width: 768px) {
  .ds-article .ds-container {
    padding: 0 var(--space-md, 16px);
  }

  .ds-button-lg {
    width: 100%;
  }

  .ds-card.ds-bg-gradient .ds-flex {
    flex-direction: column;
    gap: var(--space-sm, 12px);
  }

  /* Header адаптивность */
  .ds-header {
    padding: var(--space-sm) 0;
  }

  .ds-navbar {
    padding: 0 var(--space-md);
  }

  /* Скрываем десктоп меню */
  .desktop-menu {
    display: none;
  }

  /* Показываем мобильный header */
  .mobile-header {
    display: flex;
  }

  /* Логотип меньше на мобилке */
  .navbar-brand {
    font-size: var(--font-size-base);
  }

  .navbar-logo {
    font-size: 1.25rem;
  }

  /* Меню на весь экран на мобилке */
  .mobile-menu-container {
    max-width: 100%;
  }
}

/* Body с открытым меню - блокируем скролл */
body.menu-open {
  overflow: hidden;
}

/* ===== LAZY LOADING АНИМАЦИИ ===== */
.section-lazy {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-lazy.section-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SKELETON LOADERS ===== */
.ds-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 37%,
    rgba(255, 255, 255, 0.03) 63%
  );
  background-size: 400% 100%;
  animation: ds-skeleton-shimmer 1.4s ease infinite;
  border-radius: 4px;
}

@keyframes ds-skeleton-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.ds-skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  height: 380px;
}

.ds-skeleton-image {
  height: 160px;
  width: 100%;
  border-radius: var(--radius-sm);
}

.ds-skeleton-title {
  height: 1.5rem;
  width: 80%;
  margin-top: var(--space-sm);
}

.ds-skeleton-text {
  height: 1rem;
  width: 100%;
}

.ds-skeleton-text-short {
  height: 1rem;
  width: 60%;
  margin-bottom: var(--space-md);
}

/* ============================================ */
/* LANDING LIQUID GLASS — NEW DESIGN (June 2026) */
/* ============================================ */

/* ===== AMBIENT BLOBS ===== */
.hero-ambient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: ambientFloat 20s ease-in-out infinite;
}

.ambient-blob--blue {
  width: 600px;
  height: 600px;
  top: -150px;
  left: -100px;
  background: radial-gradient(circle, rgba(65,105,225,0.2) 0%, transparent 70%);
  animation-delay: 0s;
}

.ambient-blob--purple {
  width: 500px;
  height: 500px;
  top: 100px;
  right: -100px;
  background: radial-gradient(circle, rgba(100,50,250,0.12) 0%, transparent 70%);
  animation-delay: -7s;
}

.ambient-blob--green {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes ambientFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  overflow: hidden;
  padding: var(--space-3xl) var(--space-lg);
}

.hero-section.hero-loaded .ambient-blob {
  opacity: 1;
  transition: opacity 1.5s ease;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.hero-hint {
  font-size: var(--font-size-sm);
  color: #94a3b8;
}

/* ===== GLASS PANEL ===== */
.glass-panel {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: var(--space-xl);
  transition: all 200ms ease-in-out;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 24px rgba(65, 105, 225, 0.15);
}

/* ===== LANDING BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family-base);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: all 200ms ease-in-out;
  line-height: 1.5;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  border-radius: 16px;
}

.btn-primary {
  background: #4169E1;
  color: #ffffff;
}

.btn-primary:hover {
  background: #2B6CEE;
  transform: translateY(-1px);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(43, 108, 238, 0.3);
}

.btn-glow:hover {
  box-shadow: 0 0 32px rgba(43, 108, 238, 0.5);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ===== SECTIONS ===== */
.section {
  padding: var(--space-4xl) var(--space-lg);
  background: #000000;
  position: relative;
}

.section-lazy {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.section--cta {
  padding: var(--space-3xl) var(--space-lg);
  background: linear-gradient(180deg, #000000 0%, #0d1b3e 100%);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  color: #94a3b8;
  text-align: center;
  margin-bottom: var(--space-2xl);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== QUIZ ===== */
.quiz-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #4169E1, #2DD4BF);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.quiz-counter {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  margin-bottom: var(--space-xl);
}

.quiz-question {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-2xl);
  line-height: 1.4;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
}

.btn-quiz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: 20px;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 200ms ease-in-out;
  min-width: 140px;
  font-family: var(--font-family-base);
}

.btn-quiz-icon {
  font-size: 1.5rem;
}

.btn-quiz--know {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn-quiz--know:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.btn-quiz--dont {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-quiz--dont:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
  transform: translateY(-2px);
}

.quiz-insight {
  padding: var(--space-md) var(--space-lg);
  border-radius: 12px;
  margin-bottom: var(--space-md);
  font-size: var(--font-size-sm);
  text-align: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-insight--know {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.quiz-insight--dont {
  background: rgba(65, 105, 225, 0.1);
  color: #93C5FD;
  border: 1px solid rgba(65, 105, 225, 0.2);
}

.quiz-insight-icon {
  margin-right: var(--space-sm);
}

.quiz-result {
  animation: slideIn 0.5s ease;
}

.quiz-result-score {
  margin-bottom: var(--space-xl);
}

.quiz-score-number {
  font-size: 4rem;
  font-weight: 700;
  color: #4169E1;
  display: block;
  line-height: 1;
}

.quiz-score-label {
  font-size: 1.125rem;
  color: #94a3b8;
}

.quiz-result-text {
  font-size: 1.125rem;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.quiz-result-cta {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

/* ===== CYCLE ===== */
.cycle-grid {
  display: flex;
  align-items: stretch;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  scroll-snap-type: x mandatory;
}

.cycle-step {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  scroll-snap-align: start;
  position: relative;
}

.cycle-step-number {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(65, 105, 225, 0.2);
  color: #4169E1;
  font-size: var(--font-size-sm);
  font-weight: 700;
}

.cycle-step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cycle-step-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.cycle-step-desc {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.cycle-arrow {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.2);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cycle-loop-hint {
  text-align: center;
  margin-top: var(--space-xl);
  color: #94a3b8;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.cycle-loop-icon {
  font-size: 1.25rem;
  animation: spin 4s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
}

.feature-card--accent {
  grid-column: span 2;
  border-color: rgba(65, 105, 225, 0.25);
  background: rgba(65, 105, 225, 0.06);
}

.feature-card--cta {
  border-color: rgba(65, 105, 225, 0.25);
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.feature-demo {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Chat bubbles */
.chat-bubble {
  padding: var(--space-sm) var(--space-md);
  border-radius: 12px;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 85%;
}

.chat-bubble--user {
  background: #4169E1;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble--ai {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== FAMILY GRID ===== */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
}

.pricing-card--featured {
  border-color: rgba(65, 105, 225, 0.4);
  background: rgba(65, 105, 225, 0.08);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #4169E1;
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
  white-space: nowrap;
}

.pricing-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.pricing-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-xs);
}

.pricing-period {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 400;
}

.pricing-for {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  margin-bottom: var(--space-xl);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
  text-align: left;
  flex-grow: 1;
}

.pricing-features li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--font-size-sm);
  color: #e2e8f0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ===== FAQ ===== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-lg);
}

.faq-card {
  padding: var(--space-xl);
}

.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-sm);
}

.faq-answer {
  font-size: var(--font-size-sm);
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

.hide-mobile {
  display: inline;
}

/* ===== LANDING RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-card--accent {
    grid-column: span 2;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-card--featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: calc(var(--space-4xl) + 64px) var(--space-md) var(--space-3xl);
  }

  .section {
    padding: var(--space-3xl) var(--space-md);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hide-mobile {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-lg {
    width: 100%;
    max-width: 320px;
  }

  /* Quiz mobile */
  .quiz-actions {
    flex-direction: row;
    gap: var(--space-md);
  }
  .btn-quiz {
    flex: 1;
    min-width: 0;
    padding: var(--space-lg) var(--space-md);
  }

  /* Cycle mobile - horizontal scroll */
  .cycle-grid {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cycle-step {
    min-width: 260px;
  }
  .cycle-arrow {
    display: none;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--accent {
    grid-column: span 1;
  }

  /* Pricing mobile */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* FAQ mobile */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .glass-panel {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.875rem;
  }
  .quiz-question {
    font-size: 1.125rem;
  }
  .quiz-score-number {
    font-size: 3rem;
  }
}

/* ============================================ */
/* PREMIUM VISUAL EFFECTS                       */
/* ============================================ */

/* ===== GRADIENT TEXT ===== */
.hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #93C5FD 40%, #4169E1 60%, #2DD4BF 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== STAGGERED HERO LOAD ===== */
.hero-content > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s ease forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.3s; }
.hero-content > *:nth-child(3) { animation-delay: 0.5s; }
.hero-content > *:nth-child(4) { animation-delay: 0.7s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== GLASS SHINE EFFECT ===== */
.glass-panel {
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 45%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.03) 55%,
    transparent 60%
  );
  transform: translateX(-100%) translateY(-100%) rotate(0deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.glass-panel:hover::before {
  animation: glassShine 0.8s ease forwards;
}

@keyframes glassShine {
  to { transform: translateX(30%) translateY(30%) rotate(0deg); }
}

/* Protect child content above shine */
.glass-panel > * {
  position: relative;
  z-index: 2;
}

/* ===== ANIMATED GRADIENT BORDER (PREMIUM CARD) ===== */
.pricing-card--featured {
  position: relative;
  border: none !important;
  background: rgba(65, 105, 225, 0.08) !important;
}

.pricing-card--featured::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #4169E1, #2DD4BF, #6432FA, #4169E1);
  background-size: 300% 300%;
  animation: borderGlow 4s ease-in-out infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes borderGlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ===== PARTICLES / STARS IN HERO ===== */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== SECTION STAGGER CHILDREN ===== */
.section-visible .glass-panel,
.section-visible .feature-card,
.section-visible .pricing-card,
.section-visible .faq-card,
.section-visible .cycle-step {
  animation: staggerFadeIn 0.5s ease forwards;
  opacity: 0;
}

.section-visible > .container > .features-grid > :nth-child(1),
.section-visible > .container > .pricing-grid > :nth-child(1),
.section-visible > .container > .faq-grid > :nth-child(1),
.section-visible > .container > .family-grid > :nth-child(1),
.section-visible > .container > .cycle-grid > :nth-child(1) { animation-delay: 0.05s; }

.section-visible > .container > .features-grid > :nth-child(2),
.section-visible > .container > .pricing-grid > :nth-child(2),
.section-visible > .container > .faq-grid > :nth-child(2),
.section-visible > .container > .family-grid > :nth-child(2),
.section-visible > .container > .cycle-grid > :nth-child(2) { animation-delay: 0.1s; }

.section-visible > .container > .features-grid > :nth-child(3),
.section-visible > .container > .pricing-grid > :nth-child(3),
.section-visible > .container > .faq-grid > :nth-child(3),
.section-visible > .container > .family-grid > :nth-child(3),
.section-visible > .container > .cycle-grid > :nth-child(3) { animation-delay: 0.15s; }

.section-visible > .container > .features-grid > :nth-child(4),
.section-visible > .container > .faq-grid > :nth-child(4),
.section-visible > .container > .family-grid > :nth-child(4),
.section-visible > .container > .cycle-grid > :nth-child(4) { animation-delay: 0.2s; }

.section-visible > .container > .features-grid > :nth-child(5),
.section-visible > .container > .faq-grid > :nth-child(5),
.section-visible > .container > .cycle-grid > :nth-child(5) { animation-delay: 0.25s; }

.section-visible > .container > .features-grid > :nth-child(6),
.section-visible > .container > .faq-grid > :nth-child(6) { animation-delay: 0.3s; }

@keyframes staggerFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== QUIZ CARD TRANSITIONS ===== */
.quiz-question {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-quiz {
  position: relative;
  overflow: hidden;
}

.btn-quiz::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 200ms ease;
}

.btn-quiz--know::after {
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}

.btn-quiz--dont::after {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
}

.btn-quiz:active::after {
  opacity: 1;
}

/* Quiz score counter animation */
.quiz-score-number {
  display: inline-block;
  animation: countPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes countPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* Confetti container */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  top: -10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg) scale(0); opacity: 0; }
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(65, 105, 225, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(65, 105, 225, 0.5);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(65, 105, 225, 0.3) transparent;
}

/* ===== SMOOTH SCROLL ===== */
html {
  scroll-behavior: smooth;
}

/* ===== BUTTON RIPPLE ===== */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 300ms ease;
}

.btn-primary:active::after {
  opacity: 1;
}

/* ===== CYCLE CONNECTOR LINES ===== */
.cycle-arrow {
  position: relative;
}

.cycle-arrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(65, 105, 225, 0.3), transparent);
}

/* ===== FEATURE CARD ACCENT GLOW ===== */
.feature-card--accent {
  position: relative;
}

.feature-card--accent::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.3), rgba(45, 212, 191, 0.2));
  z-index: -1;
  filter: blur(12px);
  opacity: 0;
  transition: opacity 400ms ease;
}

.feature-card--accent:hover::after {
  opacity: 1;
}

/* ===== FLOATING BADGE ===== */
.pricing-badge {
  animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-3px); }
}

/* ===== HOVER LIFT ALL INTERACTIVE ===== */
.feature-card:hover,
.faq-card:hover,
.cycle-step:hover,
.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-4px);
}

@media (max-width: 1024px) {
  .pricing-card--featured:hover {
    transform: translateY(-4px);
  }
}

/* ===== QUIZ PROGRESS GLOW ===== */
.quiz-progress-bar {
  box-shadow: 0 0 8px rgba(65, 105, 225, 0.4), 0 0 16px rgba(45, 212, 191, 0.2);
}

/* ===== SECTION DIVIDERS ===== */
.section + .section::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  margin: 0 auto;
  position: relative;
  top: calc(var(--space-4xl) * -0.5);
}

/* ===== LANDING FOOTER ===== */
.landing-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-xl) 0;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

[data-theme="dark"] .landing-footer {
  background: rgba(15, 15, 15, 0.7);
  border-top: 1px solid var(--glass-border);
}

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

.footer-section h4 {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

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

.footer-link--accent {
  color: var(--accent-primary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-link--accent:hover {
  color: var(--accent-primary-hover);
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-soft);
  opacity: 0.8;
}

.payment-logo {
  height: 24px;
  width: auto;
  filter: grayscale(1);
  transition: filter var(--transition-fast);
}

.payment-logo--mc {
  height: 32px;
}

.payment-logo:hover {
  filter: none;
}

.footer-legal {
  text-align: center;
  padding-top: var(--space-md);
}

.footer-legal-row {
  margin-bottom: var(--space-sm);
}

.footer-legal-name {
  font-size: var(--font-size-sm);
  color: var(--text-main);
}

.footer-legal-bullet {
  margin: 0 var(--space-sm);
  color: var(--text-muted);
}

.footer-legal-inn {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.footer-copyright {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}