/* ==========================================================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
   ========================================================================== */
   :root {
    --bg: #09090b;
    --surface: #18181b;
    --surface-hover: #27272a;
    --border: #27272a;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --accent: #6366f1;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --success: #10b981;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    /* Добавляем сетку на фон (размер клетки 40px) */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed; /* Сетка стоит на месте при скролле */
    
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 24px; 
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 3rem; margin-bottom: 3rem; line-height: 1.1; }
h2 span { color: var(--accent); }
a { text-decoration: none; color: inherit; }

/* Вспомогательные классы */
.center-title { text-align: center; }

/* ==========================================================================
   2. UI ЭЛЕМЕНТЫ (Кнопки, Анимации)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--text-main); color: var(--bg);
    padding: 18px 40px; border-radius: 12px;
    font-weight: 600; font-size: 1.125rem;
    transition: all 0.3s ease; cursor: pointer; border: none; width: 100%;
}
.btn:hover { transform: translateY(-2px); background: #e4e4e7; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 0 20px var(--accent-glow); }
.btn-accent:hover { background: #4f46e5; box-shadow: 0 0 30px var(--accent-glow); }

.marquee-wrapper {
    background: var(--accent); color: white; padding: 12px 0;
    overflow: hidden; white-space: nowrap; font-weight: 600;
    font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; display: flex;
}
.marquee-content { display: flex; animation: marquee 20s linear infinite; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-text { padding-right: 20px; }

/* ==========================================================================
   3. СЕКЦИИ
   ========================================================================== */

/* Hero */
.hero { position: relative; padding: 100px 0 80px; border-bottom: 1px solid var(--border); }
.hero-glow {
    position: absolute; top: 50%; right: -10%; transform: translateY(-50%);
    width: 800px; height: 800px; border-radius: 50%; z-index: -1; pointer-events: none;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
}
.hero-badge {
    display: inline-block; border: 1px solid var(--border); padding: 8px 16px; 
    border-radius: 100px; font-size: 0.875rem; font-weight: 500; color: var(--text-muted); 
    margin-bottom: 2rem; background: rgba(255,255,255,0.03);
}
.hero h1 { font-size: 4.5rem; font-weight: 900; line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin-bottom: 3rem; }
.hero-btn-wrap { max-width: 300px; }

/* Hero Плашка */
.hero-stats-box {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px; padding: 24px 48px; margin-top: 4rem; gap: 40px;
    backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.hs-item { text-align: center; }
.hs-val { font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 8px; color: var(--text-main); letter-spacing: -0.02em; }
.highlight-text { background: linear-gradient(135deg, #a78bfa, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 30px rgba(99, 102, 241, 0.3); }
.hs-lbl { color: var(--text-muted); font-size: 1rem; line-height: 1.4; font-weight: 500; }
.hs-divider { width: 1px; height: 70px; background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent); }

/* Таймер */
.timer-section { padding: 60px 0; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.timer-title { font-size: 2rem; margin-bottom: 2rem; color: var(--text-muted); font-weight: 500; }
.timer-title span { color: var(--text-main); font-weight: 700; }
.timer-grid { display: flex; justify-content: center; gap: 20px; }
.timer-box { display: flex; flex-direction: column; align-items: center; }
.timer-num {
    font-size: 4rem; font-weight: 900; background: var(--bg); border: 1px solid var(--border); 
    border-radius: 16px; width: 100px; height: 100px; display: flex; align-items: center; 
    justify-content: center; line-height: 1;
}
.timer-label { margin-top: 12px; font-size: 0.875rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Problems (Карточки Болей) */
.problems { padding: 100px 0; }
.cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; transition: transform 0.3s ease; }
.card:hover { transform: translateY(-5px); }
.card-good { border-color: var(--success); box-shadow: 0 0 30px rgba(16, 185, 129, 0.05); }
.card-title { font-size: 1.5rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.card ul { list-style: none; }
.card li { padding: 16px 0; border-bottom: 1px solid var(--border); display: flex; gap: 16px; color: var(--text-muted); }
.card li:last-child { border-bottom: none; }
.icon-bad { color: var(--danger); font-weight: bold; }
.icon-good { color: var(--success); font-weight: bold; }

/* Format */
.format { padding: 100px 0; border-top: 1px solid var(--border); }
.format-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.f-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; transition: transform 0.3s ease; }
.f-card:hover { transform: translateY(-5px); }
.f-icon { 
    display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; 
    font-size: 1.8rem; background: rgba(255,255,255,0.05); border-radius: 12px; margin-bottom: 20px; line-height: 1;
}
.f-title { font-size: 1.25rem; margin-bottom: 12px; }
.f-desc { color: var(--text-muted); font-size: 0.95rem; }

/* Schedule */
.schedule { padding: 100px 0; border-top: 1px solid var(--border); }
.month-box { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; overflow: hidden; margin-bottom: 40px; }
.mb-accent { border-color: var(--accent); }
.month-header { background: rgba(255,255,255,0.03); padding: 24px 40px; border-bottom: 1px solid var(--border); font-size: 1.5rem; font-weight: 700; }
.mh-accent { color: var(--accent); background: rgba(99, 102, 241, 0.1); border-bottom: none; }
.week-row { display: grid; grid-template-columns: 120px 1fr; padding: 32px 40px; border-bottom: 1px solid var(--border); gap: 40px; }
.week-row:last-child { border-bottom: none; }
.week-num { color: var(--accent); font-weight: 600; }
.week-info h4 { font-size: 1.25rem; margin-bottom: 8px; }
.week-info p { color: var(--text-muted); margin-bottom: 12px; }
.week-result { display: inline-block; background: rgba(16, 185, 129, 0.1); color: var(--success); padding: 6px 12px; border-radius: 6px; font-size: 0.875rem; font-weight: 500; }
.community-choice { text-align: center; padding: 40px 40px 60px; background: linear-gradient(to bottom, rgba(99, 102, 241, 0.05), transparent); }
.community-choice h4 { font-size: 1.75rem; margin-bottom: 16px; }
.community-choice p { font-size: 1.125rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 24px; }
.community-choice .week-result { font-size: 1rem; }

/* Author */
.author { padding: 100px 0; border-top: 1px solid var(--border); }
.author-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: center; }
.author-img { width: 100%; aspect-ratio: 1; background: var(--surface); border-radius: 24px; border: 1px solid var(--border); object-fit: cover; }
.author h2 span { font-size: 1.5rem; color: var(--text-muted); }
.author-desc { font-size: 1.125rem; color: var(--text-muted); margin-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.stat-item { background: var(--surface); border: 1px solid var(--border); padding: 20px; border-radius: 16px; }
.stat-val { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.stat-lbl { color: var(--text-muted); font-size: 0.875rem; }

/* Pricing */
.pricing { padding: 100px 0; border-top: 1px solid var(--border); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 48px; position: relative; }
.price-card.premium { border-color: var(--accent); box-shadow: 0 0 40px rgba(99, 102, 241, 0.1); }
.price-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: white; padding: 6px 16px;
    border-radius: 100px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.05em;
}
.p-title { font-size: 1.5rem; color: var(--text-muted); margin-bottom: 16px; }
.p-price { font-size: 3.5rem; font-weight: 900; margin-bottom: 8px; line-height: 1; }
.p-old { text-decoration: line-through; color: var(--text-muted); margin-bottom: 32px; display: block; }
.p-list { list-style: none; margin-bottom: 40px; }
.p-list li { margin-bottom: 16px; display: flex; gap: 12px; align-items: flex-start; }
.p-list li::before { content: "✓"; color: var(--success); font-weight: bold; }

/* FAQ */
.faq { padding: 100px 0; border-top: 1px solid var(--border); }
.faq-wrapper { max-width: 800px; margin: 0 auto; } /* Центрируем и ограничиваем только сам список вопросов на ПК */
.faq-item { border-bottom: 1px solid var(--border); padding: 24px 0; cursor: pointer; }
.faq-q { font-size: 1.25rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; transition: color 0.3s; }
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--text-muted); transition: transform 0.3s; }
.faq-item.active-faq .faq-q::after { transform: rotate(45deg); }
.faq-item.active-faq .faq-q { color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; color: var(--text-muted); }
.faq-a-content { padding-top: 16px; }

/* Footer */
.footer { padding: 80px 0 40px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 60px; flex-wrap: wrap; gap: 40px; }
.footer-contact h4 { font-size: 1.5rem; margin-bottom: 8px; }
.footer-contact p { color: var(--text-muted); margin-bottom: 24px; }
.btn-outline { background: transparent; border: 1px solid var(--text-muted); color: var(--text-main); padding: 12px 24px; font-size: 1rem; width: auto; }
.btn-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); transform: none; }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a { color: var(--text-main); font-weight: 600; text-decoration: underline; text-decoration-color: var(--text-muted); text-underline-offset: 4px; }
.footer-socials a:hover { text-decoration-color: var(--text-main); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border); padding-top: 32px; flex-wrap: wrap; gap: 24px; }
.footer-legal { display: flex; flex-direction: column; gap: 12px; color: var(--text-muted); }
.footer-legal a { color: var(--text-muted); font-size: 0.875rem; }
.footer-legal a:hover { color: var(--text-main); }
.footer-meta { max-width: 400px; font-size: 0.75rem; color: #52525b; line-height: 1.4; }
.back-to-top { color: var(--text-muted); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; }
.back-to-top:hover { color: var(--text-main); }

/* ==========================================================================
   4. МОБИЛЬНАЯ АДАПТАЦИЯ (Тут всё центрируется)
   ========================================================================== */
@media (max-width: 768px) {
    .hero-glow { display: none; }
    .container { padding: 0 20px; }
    h2 { font-size: 2rem; margin-bottom: 2rem; line-height: 1.2; text-align: center; } 
    
    /* Hero */
    .hero { padding: 60px 0 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero-badge { margin: 0 auto 2rem auto; }
    .hero h1 { font-size: 2.5rem; margin-bottom: 1rem; text-align: center; }
    .hero p { font-size: 1.125rem; margin-bottom: 2.5rem; text-align: center; }
    .hero-btn-wrap { max-width: 100%; width: 100%; }
    
    .hero-stats-box {
        flex-direction: column; gap: 24px; padding: 32px 20px;
        width: 100%; margin-top: 2.5rem; display: flex;
    }
    .hs-val { font-size: 2.5rem; }
    .hs-divider { width: 100%; height: 1px; background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent); }

    /* Timer */
    .timer-section { padding: 50px 0; }
    .timer-title { font-size: 1.5rem; line-height: 1.3; }
    .timer-grid { gap: 12px; }
    .timer-num { width: 65px; height: 65px; font-size: 2rem; border-radius: 12px; }
    .timer-label { font-size: 0.75rem; }

    /* Grids */
    .cards-grid, .format-grid, .pricing-grid, .author-wrap { grid-template-columns: 1fr; gap: 20px; }
    
    /* Cards */
    .card { padding: 24px; }
    .card-title { font-size: 1.25rem; }
    
    /* Schedule */
    .month-header { padding: 20px; font-size: 1.25rem; text-align: center; }
    .week-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
    .week-info h4 { font-size: 1.125rem; }
    .community-choice { padding: 30px 20px; }
    .community-choice h4 { font-size: 1.5rem; }
    
    /* Author */
    .author-img { max-width: 300px; margin: 0 auto; }
    .author-wrap { gap: 30px; text-align: center; }
    
    /* Pricing */
    .price-card { padding: 32px 24px; }
    .p-price { font-size: 3rem; text-align: center; }
    .p-title, .p-old { text-align: center; }
    
    /* FAQ */
    .faq { padding: 60px 20px; } 
    .faq-wrapper { width: 100%; } 
    .faq-q { font-size: 1.125rem; }
    .faq-item { padding: 20px 0; }
    
    /* Footer */
    .footer { padding: 40px 20px 60px; text-align: center; }
    .footer-top { flex-direction: column; align-items: center; gap: 32px; }
    .footer-socials { justify-content: center; width: 100%; flex-wrap: wrap; gap: 20px; }
    .footer-bottom { flex-direction: column; align-items: center; gap: 20px; padding-top: 40px; text-align: center; }
    .footer-legal { align-items: center; }
    .footer-meta { text-align: center; }
}
