/* ============================================================
   _hero.css — стартовый экран: фон-картина с overlay, заголовок,
   подзаголовок, две CTA-кнопки, тёмная карточка справа со списком
   фич, бейдж «7 модулей», stats-bar (если используется), все
   animation'ы появления (heroSlideUp / hcReveal / statReveal /
   pulse-dot).

   Зависит от _base.css (палитра, .btn, --radius-*).
   ============================================================ */

/* ── Фон + контейнер ─────────────────────────────────────── */
.hero-wrap {
  position: relative; overflow: hidden;
}
.hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  opacity: 1;
  filter: saturate(0.75) brightness(1.05);
  z-index: 0; pointer-events: none;
}
.hero-bg-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(244,239,230,0.95) 0%,
    rgba(244,239,230,0.82) 35%,
    rgba(244,239,230,0.30) 65%,
    rgba(244,239,230,0.05) 100%
  );
}
.hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 108px 48px 60px 80px;
  max-width: 1280px; margin: 0 auto;
}
/* Solo-вариант: одна колонка слева, картина видна справа на 95% */
.hero--solo {
  grid-template-columns: 1fr;
}
.hero--solo .hero-left {
  max-width: 720px;
}

/* ── Левая колонка: тэг, заголовок, sub, кнопки ─────────── */
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 99px;
  background: linear-gradient(135deg, #3A0A12 0%, #6B1520 100%);
  border: 1px solid rgba(180, 60, 80, 0.5);
  box-shadow: 0 0 0 1px rgba(180,60,80,0.12), 0 4px 20px rgba(139,26,44,0.28);
  font-size: 14px; font-weight: 600; color: #FFE0E4;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px #22c55e; }
  50%      { box-shadow: 0 0 10px #22c55e, 0 0 20px rgba(34,197,94,0.4); }
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 700; line-height: 1.08;
  letter-spacing: -0.015em; color: var(--dark);
  margin-bottom: 20px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-1);
  font-weight: 700;
}

.hero-sub {
  font-size: 17px; line-height: 1.65;
  color: #2A1C10; max-width: 420px;
  margin-bottom: 36px; font-weight: 450;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-actions .btn-ghost { padding: 12px 22px; font-size: 14px; }

/* ── Правая карточка с «Что получает каждый ученик» ─────── */
.hero-card {
  background: var(--dark);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194,125,42,0.6), transparent);
}
.hc-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #B0A89A; margin-bottom: 24px;
}
.hc-items { display: flex; flex-direction: column; gap: 12px; }
.hc-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: background 0.2s, transform 0.2s;
}
.hc-item:hover { background: rgba(255,255,255,0.07); transform: translateX(3px); }
.hc-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(194,125,42,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.hc-title { font-size: 14px; font-weight: 600; color: #F4EFE6; margin-bottom: 4px; }
.hc-desc { font-size: 12.5px; color: #B0A89A; line-height: 1.55; }

.hero-badge {
  position: absolute; bottom: -16px; right: 24px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-badge-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.hero-badge-title { font-size: 13px; font-weight: 600; color: var(--dark); }
.hero-badge-sub { font-size: 11px; color: var(--faint); }

/* ── Stats bar (опционально) ─────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  padding: 48px 48px;
  display: flex; gap: 64px;
  max-width: 1200px; margin: 0 auto;
}
.stat-val { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stat-label { font-size: 13px; color: var(--faint); margin-top: 4px; }

/* ── Animations ──────────────────────────────────────────── */
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-left > * {
  animation: heroSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-left > *:nth-child(1) { animation-delay: 0.05s; }
.hero-left > *:nth-child(2) { animation-delay: 0.18s; }
.hero-left > *:nth-child(3) { animation-delay: 0.30s; }
.hero-left > *:nth-child(4) { animation-delay: 0.42s; }

.hero-right {
  animation: heroSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

@keyframes hcReveal {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-card .hc-item {
  opacity: 0;
  animation: hcReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-card .hc-item:nth-child(1) { animation-delay: 0.75s; }
.hero-card .hc-item:nth-child(2) { animation-delay: 0.92s; }
.hero-card .hc-item:nth-child(3) { animation-delay: 1.09s; }
.hero-card .hc-item:nth-child(4) { animation-delay: 1.26s; }

@keyframes statReveal {
  from { opacity: 0; transform: scale(0.85) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.stats-bar [data-count] { animation: statReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stats-bar [data-count]:nth-child(1) { animation-delay: 0.55s; }
.stats-bar [data-count]:nth-child(2) { animation-delay: 0.65s; }
.stats-bar [data-count]:nth-child(3) { animation-delay: 0.75s; }
.stats-bar [data-count]:nth-child(4) { animation-delay: 0.85s; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 80px 24px 48px; gap: 32px; min-height: auto; }
  .hero-sub { max-width: 100%; }
  .hero-right { max-width: 480px; }
  .hero-actions .btn { padding: 14px 24px; font-size: 15px; }

  .stats-bar { padding: 24px 20px; gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  /* Картина должна быть видна — мягкий градиент, не плотная заливка */
  .hero-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(244,239,230,0.92) 0%,
      rgba(244,239,230,0.72) 40%,
      rgba(244,239,230,0.88) 100%
    );
  }
  .hero { padding: 72px 20px 56px; min-height: auto; }
  .hero-headline { font-size: clamp(28px, 7.5vw, 38px); line-height: 1.25; }
  .hero-headline .underline-accent::after { bottom: -1px; height: 2px; }
  .hero-right { display: none; }

  /* Только одна главная CTA на мобиле — Telegram-кнопка убрана, она в шапке-бургере
     и в FAB после прокрутки. Hero не перегружен. */
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-ghost { display: none; }
  .trial-btn-wrap { width: 100%; }
  .trial-btn-wrap .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 14px;
  }

  .stats-bar { flex-direction: column; gap: 16px; align-items: flex-start; padding: 24px 20px; }
  .stat-val { font-size: 22px; }
}
