/**
 * НЕЙРО-ЮНИТ v5.0 - Complete Stylesheet
 * All bugs fixed, all classes synchronized with HTML
 */

/* ==========================================
   CSS VARIABLES
   ========================================== */
:root {
    --bg: #050510;
    --bg-secondary: #0a0a1a;
    --neon: #00F0FF;
    --neon-glow: rgba(0, 240, 255, 0.3);
    --accent: #ff6b35;
    --error: #FF2050;
    --success: #27ca40;
    --gold: #FFAA00;
    --text: #ffffff;
    --text-muted: #8b949e;
    --border: #333;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 12px;
    --transition: 0.3s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    color: var(--neon);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--text);
    text-shadow: 0 0 10px var(--neon);
}

/* ==========================================
   MATRIX BACKGROUND ANIMATION
   ========================================== */
#matrix {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.12;
    pointer-events: none;
}

/* ==========================================
   CONTAINER & SECTIONS
   ========================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--neon), var(--text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 0;
}

/* video-fallback removed by patch1 — GIF не требует fallback */

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(5,5,16,0.4) 0%, rgba(5,5,16,0.95) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-glow), rgba(255,107,53,0.2));
    border: 1px solid var(--neon);
    border-radius: 50px;
    padding: 10px 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 30px;
    animation: badgePulse 2s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 20px var(--neon-glow); }
    50% { box-shadow: 0 0 40px var(--neon-glow); }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--neon) 0%, #00ff88 50%, var(--neon) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

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

.hero-subtitle {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 10px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    animation: bounce 2s ease infinite;
}

.scroll-indicator span {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--neon);
    border-bottom: 2px solid var(--neon);
    transform: rotate(45deg);
    margin: 0 auto;
}

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

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon), #00c8d4);
    color: var(--bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--neon-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--neon);
    color: var(--neon);
}

.btn-secondary:hover {
    background: var(--neon);
    color: var(--bg);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #ff8f35);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,107,53,0.4);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.2rem;
}

/* ==========================================
   GAME SECTION
   ========================================== */
.game-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.game-timer-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.timer-label {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--error);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,32,80,0.1), rgba(255,32,80,0.05));
    border: 3px solid var(--error);
    animation: timerPulse 1s ease infinite;
}

.timer-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--error);
    line-height: 1;
}

.timer-value.urgent {
    animation: urgentBlink 0.5s ease infinite;
}

.timer-value.critical {
    animation: criticalBlink 0.25s ease infinite;
}

@keyframes timerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255,32,80,0.3); }
    50% { box-shadow: 0 0 40px rgba(255,32,80,0.5); }
}

@keyframes urgentBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes criticalBlink {
    0%, 100% { opacity: 1; color: var(--error); }
    50% { opacity: 0.5; color: #ff6666; }
}

.timer-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Game Cards */
.game-cards {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.game-card {
    position: relative;
    width: 280px;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border);
    background: #000;
    transition: var(--transition);
}

.game-card:hover:not(.disabled) {
    border-color: var(--neon);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--neon-glow);
}

.game-card.disabled {
    pointer-events: none;
    opacity: 0.7;
}

.game-card.correct {
    border-color: var(--success);
    box-shadow: 0 0 30px rgba(39,202,64,0.5);
}

.game-card.wrong {
    border-color: var(--error);
}

.card-video {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-play {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,107,53,0.5);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neon);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    pointer-events: none;
}

.game-card:hover .card-play {
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    border-color: var(--neon);
}

.card-number {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: var(--bg);
    border: 2px solid var(--neon);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--neon);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.game-card.disabled .card-overlay {
    opacity: 1;
}

/* Game Message */
.game-message {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius);
    display: none;
}

.game-message.active {
    display: block;
}

.game-result {
    padding: 30px;
    border-radius: var(--radius);
    background: rgba(0,0,0,0.5);
}

.game-result h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.game-result.timeout h3,
.game-result.lose h3 {
    color: var(--error);
}

.game-result.partial-win h3 {
    color: var(--gold);
}

.game-result.won h3 {
    color: var(--success);
}

/* ==========================================
   MODAL (Prize)
   ========================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg));
    border: 2px solid var(--success);
    border-radius: var(--radius);
    padding: 50px;
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    border-color: var(--error);
    color: var(--error);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 2rem;
    color: var(--success);
    margin-bottom: 20px;
}

.modal-text {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Overview modal (Узнать больше) */
.modal-content.modal-overview {
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    border-color: var(--neon);
}

.modal-overview-intro {
    margin-bottom: 20px;
}

.overview-list {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.overview-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.overview-list li:last-child {
    border-bottom: none;
}

.overview-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neon);
    color: var(--bg);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50%;
}

.overview-list li strong {
    color: var(--text);
}

.overview-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Prize modal form */
.prize-lead-form .form-group {
    margin-bottom: 16px;
}

.prize-lead-form .btn-full {
    width: 100%;
    margin-top: 8px;
}

.prize-form-success {
    text-align: center;
}

.prize-form-success .success-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.prize-form-success h4 {
    margin-bottom: 12px;
    color: var(--success);
}

.prize-form-success p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ==========================================
   TRANSFORMATION SECTION
   ========================================== */
.transformation-section {
    background: var(--bg);
}

.transform-stages {
    max-width: 700px;
    margin: 0 auto;
}

.transform-stage {
    background: linear-gradient(135deg, rgba(0,240,255,0.05), rgba(0,240,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.transform-stage.active {
    display: block;
    animation: stageEnter 0.6s ease-out;
}

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

.stage-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.stage-icon--img {
    font-size: 0;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.1);
    transition: var(--transition);
}

.stage-icon--img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.transform-stage.active .stage-icon--img {
    border-color: var(--neon);
    box-shadow: 0 8px 30px var(--neon-glow);
}

.stage-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--neon);
}

.stage-description {
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.8;
}

.stage-visual {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.brain-icon.animated,
.skeleton-icon.animated,
.superhero-icon.animated {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    animation: iconPulse 2s ease infinite;
}

.brain-icon.animated {
    background: radial-gradient(circle, var(--neon) 0%, transparent 70%);
}

.skeleton-icon.animated {
    background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
}

.superhero-icon.animated {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Transformation Video */
.transformation-video {
    margin-top: 40px;
    display: none;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--accent);
}

.transformation-video.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.transformation-video video {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    background: #000;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================
   TERMINAL SECTION
   ========================================== */
.terminal-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
}

.terminal-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: #0d1117;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: #161b22;
    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;
    gap: 8px;
}

.terminal-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) { background: #ff5f56; }
.terminal-dots span:nth-child(2) { background: #ffbd2e; }
.terminal-dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.terminal-output {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.terminal-line {
    margin-bottom: 5px;
}

.terminal-line.command {
    color: var(--neon);
}

.terminal-line.success {
    color: var(--success);
}

.terminal-line.separator {
    color: var(--text-muted);
}

.terminal-line.highlight {
    color: var(--gold);
    font-weight: 600;
}

.terminal-footer {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #161b22;
    border-top: 1px solid var(--border);
}

.terminal-footer .btn {
    flex: 1;
}

#terminal-copy {
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

#terminal-copy.visible {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   GENERATOR SECTION
   ========================================== */
.generator-section {
    background: var(--bg);
}

.generator-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.generator-form {
    background: linear-gradient(135deg, rgba(0,240,255,0.05), transparent);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 20px var(--neon-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.generator-output {
    display: none;
    margin-bottom: 20px;
}

.generator-output.active {
    display: block;
}

.generated-prompt {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-x: auto;
    color: var(--text);
}

#copy-pedagogue {
    display: none;
    margin: 0 auto;
}

#copy-pedagogue.visible {
    display: inline-flex;
}

/* ==========================================
   HOMEWORK SECTION
   ========================================== */
.homework-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.homework-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.homework-prompt-block,
.homework-input-block {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
}

.homework-prompt-block h4,
.homework-input-block h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--neon);
}

.prompt-container {
    max-height: 300px;
    overflow: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.homework-prompt {
    background: #0d1117;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.8;
    white-space: pre-wrap;
    color: var(--text);
    border: none;
    margin: 0;
}

#homework-input {
    width: 100%;
    min-height: 200px;
    resize: vertical;
    margin-bottom: 20px;
}

.homework-output {
    display: none;
}

.homework-output.active {
    display: block;
}

.homework-result {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--success) var(--score), var(--border) var(--score));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    position: relative;
}

.score-circle::before {
    content: '';
    width: 100px;
    height: 100px;
    background: var(--bg);
    border-radius: 50%;
    position: absolute;
}

.score-value {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.feedback-list {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.feedback-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.next-step {
    font-size: 1.1rem;
    color: var(--neon);
}

/* ==========================================
   OFFER SECTION
   ========================================== */
.offer-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 50%, var(--bg-secondary) 100%);
    padding: 120px 0;
}

.offer-card {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    background: linear-gradient(135deg, rgba(0,240,255,0.03), rgba(255,107,53,0.03));
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 60px;
    align-items: start;
}

@media (max-width: 900px) {
    .offer-card {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

.offer-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.offer-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 25px;
    color: var(--text);
}

.offer-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 35px;
}

.offer-description strong {
    color: var(--neon);
}

.offer-features {
    list-style: none;
    margin-bottom: 35px;
}

.offer-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-check {
    color: var(--success);
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    text-shadow: 0 0 10px var(--success);
}

.feature-text {
    color: var(--text);
}

.highlight-number {
    color: var(--neon);
    font-weight: 700;
    font-size: 1.1em;
}

.feature-note {
    color: var(--text-muted);
    font-size: 0.9em;
}

.offer-stats {
    background: rgba(0,0,0,0.4);
    border-left: 3px solid var(--success);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.offer-stats strong {
    color: var(--success);
    font-size: 1.2em;
}

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

/* Lead Form */
.offer-form-wrapper {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}

.lead-form .form-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text);
}

.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form input {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.lead-form input:focus {
    outline: none;
    border-color: var(--neon);
    box-shadow: 0 0 20px var(--neon-glow);
}

.lead-form input::placeholder {
    color: var(--text-muted);
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.form-note a {
    color: var(--text-muted);
    text-decoration: underline;
}

.form-success {
    text-align: center;
    padding: 30px;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--success);
    margin-bottom: 15px;
}

.telegram-link {
    margin-top: 20px;
}

.telegram-link a {
    color: var(--neon);
    font-weight: 600;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: #000;
    padding: 60px 0;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--neon), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--neon);
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 15px 30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 1rem;
    z-index: 2000;
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    border-color: var(--success);
}

.toast-error {
    border-color: var(--error);
}

.toast-warning {
    border-color: var(--gold);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .game-cards {
        flex-direction: column;
        align-items: center;
    }
    
    .game-card {
        width: 100%;
        max-width: 300px;
    }
    
    .offer-card {
        gap: 40px;
    }
    
    .terminal-footer {
        flex-direction: column;
    }
    
    .timer-circle {
        width: 100px;
        height: 100px;
    }
    
    .timer-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .offer-card {
        padding: 25px;
    }
    
    .offer-form-wrapper {
        padding: 25px;
    }
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon);
}

/* ==========================================
   SELECTION
   ========================================== */
::selection {
    background: var(--neon);
    color: var(--bg);
}


/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255,107,53,0.2);
    border-top-color: var(--neon);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.preloader-text {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 20px;
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.preloader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}


/* ==========================================
   CONTENT LOADING STATE
   ========================================== */
.content-hidden {
    display: none !important;
}

.content-loading .game-section,
.content-loading .speaker-section,
.content-loading .comic-section,
.content-loading .quiz-section,
.content-loading .transformation-section,
.content-loading .terminal-section,
.content-loading .generator-section,
.content-loading .homework-section,
.content-loading .offer-section,
.content-loading footer {
    display: none;
}

/* Preloader overrides for active state */
.preloader {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   SPEAKER SECTION
   ========================================== */
.speaker-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
}

.speaker-layout {
    display: grid;
    grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.speaker-photo-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    background: #000;
}

.speaker-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.speaker-header {
    text-align: left;
    margin-bottom: 24px;
}

.speaker-text p + p {
    margin-top: 12px;
}

.speaker-text strong {
    color: var(--neon);
}

.speaker-stats {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.speaker-stat {
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.speaker-stat-value {
    display: block;
    font-weight: 800;
    color: var(--neon);
    font-size: 1rem;
    margin-bottom: 4px;
}

.speaker-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   COMIC SECTIONS
   ========================================== */
.comic-section {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.comic-image {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: #000;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.comic-cta {
    text-align: center;
}

/* ==========================================
   QUIZ SECTION
   ========================================== */
.quiz-section {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg) 100%);
}

.quiz-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.quiz-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon), #00ff88);
    border-radius: 2px;
    transition: width 0.5s ease;
}

.quiz-step-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.quiz-questions {
    position: relative;
    min-height: 320px;
}

.quiz-question {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    display: flex;
    flex-direction: column;
}

.quiz-question.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.quiz-question.exit-left {
    transform: translateX(-40px);
    opacity: 0;
    visibility: hidden;
}

.quiz-question-title {
    font-size: clamp(1.1rem, 3vw, 1.35rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 28px;
    text-align: center;
    line-height: 1.6;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 24px;
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.25s ease;
    line-height: 1.5;
}

.quiz-option:hover {
    border-color: var(--neon);
    background: rgba(0, 240, 255, 0.08);
    transform: translateX(6px);
    box-shadow: 0 4px 20px var(--neon-glow);
}

.quiz-option:active {
    transform: translateX(6px) scale(0.98);
}

.quiz-option.selected {
    border-color: var(--neon);
    background: rgba(0, 240, 255, 0.15);
    pointer-events: none;
}

.quiz-option-letter {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--neon);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--neon);
    transition: all 0.25s ease;
}

.quiz-option:hover .quiz-option-letter {
    background: var(--neon);
    color: var(--bg);
}

.quiz-option.selected .quiz-option-letter {
    background: var(--neon);
    color: var(--bg);
}

.quiz-option-text {
    flex: 1;
}

/* Quiz result card */
.quiz-result {
    display: none;
}

.quiz-result.active {
    display: block;
    animation: quizResultAppear 0.6s ease-out;
}

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

.quiz-result-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), rgba(0, 240, 255, 0.02));
    border: 1px solid var(--neon);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: 0 10px 40px var(--neon-glow);
}

.quiz-result-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.quiz-result-type {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--neon);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.quiz-result-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 28px;
}

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

@media (max-width: 768px) {
    .quiz-questions {
        min-height: 380px;
    }

    .quiz-option {
        padding: 16px 18px;
        font-size: 0.95rem;
    }

    .quiz-result-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .quiz-questions {
        min-height: 420px;
    }

    .quiz-option {
        padding: 14px 14px;
        gap: 12px;
    }

    .quiz-option-letter {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }
}

@media (max-width: 900px) {
    .speaker-layout {
        grid-template-columns: 1fr;
    }
    
    .speaker-header {
        text-align: center;
    }
    
    .speaker-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .comic-grid {
        grid-template-columns: 1fr;
    }
    
    .speaker-stats {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .speaker-stats {
        grid-template-columns: 1fr;
    }
}
