:root {
    --bg-primary: #050505;
    --bg-card: #0a0a0a;
    --border-default: #27272a;
    --border-hover: #dc2626;
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent: #7119ff;
    --accent-hover: #f7ff1a;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 24px; }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 48px; text-align: center; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
p { color: var(--text-secondary); font-size: 1.1rem; }
a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background-color: var(--accent); color: #ffffff;
    font-weight: 600; font-size: 1rem; padding: 14px 28px;
    border: none; border-radius: 6px; cursor: pointer;
    text-decoration: none; transition: all 0.2s ease;
}
.btn:hover { background-color: var(--accent-hover); color: #0a0a0a; transform: translateY(-1px); }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* HEADER */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-default);
    padding: 16px 0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo span { color: var(--accent); }

/* Sections */
section { padding: 96px 0; border-bottom: 1px solid var(--border-default); }
section:last-of-type { border-bottom: none; }

/* Hero */
.hero { text-align: center; padding: 120px 0 96px; }
.hero-sub { font-size: 1.25rem; max-width: 700px; margin: 0 auto 40px; color: var(--text-secondary); }
.video-placeholder {
    margin-top: 48px; border: 1px solid var(--border-default); border-radius: 12px;
    aspect-ratio: 16/9; background-color: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: border-color 0.3s ease;
}
.video-placeholder:hover { border-color: var(--accent); }
.play-icon { width: 64px; height: 64px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon::after { content: ''; border-left: 20px solid white; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 4px; }

/* Pain vs Solution */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pain-box, .solution-box { padding: 32px; border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border-default); }
.solution-box { border-color: var(--accent); }
.check-list { list-style: none; margin-top: 16px; }
.check-list li { margin-bottom: 12px; padding-left: 24px; position: relative; color: var(--text-secondary); }
.check-list li::before { content: '✕'; position: absolute; left: 0; color: var(--text-secondary); }
.solution-box .check-list li::before { content: '✓'; color: var(--accent); font-weight: bold; }

/* Syllabus Accordion */
.accordion-item { border-bottom: 1px solid var(--border-default); }
.accordion-header {
    width: 100%; padding: 24px 0; background: none; border: none; color: var(--text-primary);
    font-size: 1.1rem; font-weight: 600; text-align: left; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-header:hover { color: var(--accent); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-content p { padding-bottom: 24px; font-size: 1rem; }
.badge-hot {
    background: var(--accent); color: white; font-size: 0.7rem; font-weight: 700;
    padding: 3px 8px; border-radius: 4px; margin-left: 12px; vertical-align: middle; text-transform: uppercase;
}

/* Gallery */
.module-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.module-card {
    background: var(--bg-card); border: 1px solid var(--border-default);
    border-radius: 8px; overflow: hidden; transition: border-color 0.3s ease, transform 0.2s ease;
}
.module-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.module-img-placeholder {
    width: 100%; aspect-ratio: 16/9; background: #18181b;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); font-size: 0.9rem; border-bottom: 1px solid var(--border-default);
}
.module-img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }
.module-caption { padding: 16px; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); text-align: center; }

/* Cards (Audience, Tech) */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--bg-card); border: 1px solid var(--border-default); border-radius: 8px; padding: 32px; transition: border-color 0.3s ease; }
.card:hover { border-color: var(--border-hover); }
.tech-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.pill { background: var(--bg-card); border: 1px solid var(--border-default); color: var(--text-secondary); padding: 8px 20px; border-radius: 100px; font-size: 0.9rem; }

/* Author */
.author-block { display: flex; align-items: center; gap: 32px; max-width: 800px; margin: 0 auto; text-align: left; }
.author-avatar { width: 100px; height: 100px; border-radius: 50%; background: var(--border-default); flex-shrink: 0; border: 2px solid var(--accent); object-fit: cover; }

/* Final CTA */
.final-cta { text-align: center; background: var(--bg-card); border-top: 1px solid var(--border-default); }
.email-form { display: flex; max-width: 500px; margin: 32px auto 0; gap: 12px; }
.email-input {
    flex: 1; background: var(--bg-primary); border: 1px solid var(--border-default);
    color: var(--text-primary); padding: 14px 16px; border-radius: 6px; font-size: 1rem; outline: none;
}
.email-input:focus { border-color: var(--accent); }
.disclaimer { font-size: 0.85rem; color: var(--text-secondary); margin-top: 16px; }
.form-message { margin-top: 16px; font-size: 0.95rem; display: none; }

/* FOOTER */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border-default); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; font-size: 0.9rem; }
.copyright { color: var(--text-secondary); font-size: 0.85rem; }

/* SCROLL TO TOP BUTTON (BOTTOM LEFT) */
.scroll-top-btn {
    position: fixed; bottom: 24px; left: 24px;
    width: 48px; height: 48px;
    background-color: var(--bg-card); border: 1px solid var(--border-default);
    color: var(--text-primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer;
    opacity: 0; pointer-events: none; transition: all 0.3s ease;
    z-index: 90;
}
.scroll-top-btn:hover { border-color: var(--accent); color: var(--accent); }
.scroll-top-btn.visible { opacity: 1; pointer-events: auto; }

/* Mobile */
@media (max-width: 768px) {
    .grid-2, .author-block { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
    .email-form { flex-direction: column; }
    .author-avatar { margin: 0 auto 16px; }
    h1 { font-size: 2.2rem; }
    .header-inner { flex-direction: column; gap: 12px; }
}


/* === FINAL CTA (Оффер-карточка) === */
.final-cta {
    padding: 80px 0 120px;
}

.offer-card {
    max-width: 550px;
    margin: 0 auto;
    background: rgba(15, 15, 20, 0.95); /* Более плотный цвет, не прозрачный */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 2px solid #8b5cf6; /* Акцентная полоска сверху */
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    text-align: left; /* Текст по левому краю выглядит серьезнее */
}

.offer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.offer-title {
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 32px;
    color: #f1f5f9;
}

/* Чек-лист */
.offer-list {
    list-style: none;
    margin-bottom: 40px;
}
.offer-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.check-icon {
    color: #8b5cf6; /* Фиолетовые галочки */
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.offer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

/* Блок с ценой и формой */
.offer-price-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.price-tag {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}
.old-price {
    font-size: 1.3rem;
    color: #64748b;
    text-decoration: line-through;
}
.new-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.new-price {
    font-size: 2.8rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}
.price-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Форма */
.offer-form {
    display: flex;
    gap: 12px;
}
.offer-input {
    flex: 1;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.offer-input:focus {
    border-color: #8b5f96;
}
.offer-btn {
    white-space: nowrap;
    padding: 16px 32px;
    background: #8b5cf6;
    border-radius: 12px;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.offer-btn:hover {
    background: #7c3aed;
    box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.offer-disclaimer {
    margin-top: 24px;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
}
