/* Основные переменные и сброс стилей */
:root {
    /* Цветовая палитра */
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --secondary-light: #8b5cf6;
    --accent: #06b6d4;
    --accent-light: #22d3ee;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --virus: #dc2626;
    --antivirus: #059669;
    
    /* Нейтральные цвета */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #e2e8f0;
    --light: #f8fafc;
    --white: #ffffff;
    
    /* Фоны */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-terminal: rgba(15, 23, 42, 0.95);
    
    /* Тени */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.2);
    
    /* Радиусы */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Шрифты */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

/* Фон с элементами кода */
.code-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image: 
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.2em;
    pointer-events: none;
}

/* Главный заголовок */
.main-header {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.main-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    animation: gradientMove 3s ease infinite;
}

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

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

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-primary);
}

.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.title-line.accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.header-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    font-weight: 500;
}

/* Терминал диагностики */
.diagnostic-terminal {
    background: var(--bg-terminal);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 2rem 0 3rem;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-glow);
    font-family: var(--font-mono);
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-title {
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
}

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

.terminal-controls .close { background: #ff5f57; }
.terminal-controls .min { background: #ffbd2e; }
.terminal-controls .max { background: #28ca42; }

.terminal-content {
    color: var(--light);
    font-size: 0.875rem;
    line-height: 1.6;
}

.command {
    color: var(--accent-light);
    font-weight: 600;
}

.virus-tag {
    color: #f87171;
    font-weight: 600;
}

.warning {
    color: #fbbf24;
    font-weight: 600;
}

.success {
    color: #34d399;
    font-weight: 600;
}

/* Кнопка CTA */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.cta-button.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

/* Навигация */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--gray-light);
    color: var(--gray);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-light);
}

.nav-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* Основное содержимое */
.content-section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Карточки контента */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.content-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.content-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.content-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Подразделы */
.subsection {
    margin-bottom: 4rem;
}

.subsection h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subsection-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Визуализация нейронов */
.neuroscience-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .neuroscience-explanation {
        grid-template-columns: 1fr;
    }
}

.neuron-visual {
    position: relative;
    height: 300px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--radius-lg);
    border: 2px dashed var(--gray-light);
    overflow: hidden;
}

.neuron {
    position: absolute;
    width: 40px;
    height: 40px;
}

.neuron-body {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 50%;
    z-index: 2;
}

.neuron.old-path .neuron-body {
    background: var(--virus);
}

.neuron.new-path .neuron-body {
    background: var(--antivirus);
}

.neuron-axon {
    position: absolute;
    width: 2px;
    height: 100px;
    background: currentColor;
    top: 40px;
    left: 19px;
    z-index: 1;
}

.neuron.old-path .neuron-axon {
    color: rgba(220, 38, 38, 0.3);
}

.neuron.new-path .neuron-axon {
    color: rgba(5, 150, 105, 0.3);
}

.neuron-dendrites {
    position: absolute;
    width: 60px;
    height: 2px;
    background: currentColor;
    top: 19px;
    left: 40px;
    z-index: 1;
}

.old-path {
    top: 50px;
    left: 100px;
}

.new-path {
    top: 150px;
    left: 200px;
}

.path-label {
    position: absolute;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.old-path-label {
    top: 20px;
    left: 50px;
    color: var(--virus);
    background: rgba(220, 38, 38, 0.1);
}

.new-path-label {
    top: 220px;
    left: 180px;
    color: var(--antivirus);
    background: rgba(5, 150, 105, 0.1);
}

/* Цикл пророчества */
.prophecy-cycle {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.cycle-step {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-light);
    text-align: center;
    transition: transform 0.3s ease;
}

.cycle-step:hover {
    transform: translateY(-5px);
}

.cycle-step.result {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
}

.cycle-step.result h4 {
    color: var(--white);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.cycle-step.result .step-number {
    background: var(--white);
    color: var(--primary);
}

.cycle-step h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.cycle-step p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.5;
}

.cycle-step.result p {
    color: rgba(255, 255, 255, 0.9);
}

/* Каналы заражения */
.infection-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.channel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.channel-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.channel-number {
    font-size: 2rem;
    font-weight: 800;
    opacity: 0.8;
}

.channel-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    flex: 1;
    margin: 0 1rem;
}

.channel-icon {
    font-size: 1.5rem;
}

.channel-subtitle {
    padding: 0.5rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.channel-examples {
    padding: 1.5rem;
}

.example {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-light);
}

.example:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.example-source {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.example-quote {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.example-impact {
    font-size: 0.75rem;
    color: var(--gray);
}

/* Принципы антивируса */
.antivirus-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.principle-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-light);
    text-align: center;
}

.principle-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.principle-icon.wrong {
    color: var(--danger);
}

.principle-icon.right {
    color: var(--success);
}

.principle-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Сравнение примеров */
.comparison-examples {
    margin: 4rem 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.wrong-example, .right-example {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-light);
}

.wrong-example .example-header {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--danger);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.right-example .example-header {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: var(--success);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.example-content {
    padding: 1.5rem;
}

.example-quote {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border-left: 4px solid currentColor;
}

.wrong-example .example-quote {
    border-left-color: var(--danger);
}

.right-example .example-quote {
    border-left-color: var(--success);
}

.example-reaction {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.example-reaction i {
    font-size: 1.25rem;
    color: var(--primary);
    margin-top: 0.125rem;
}

/* Алгоритм */
.algorithm-section {
    margin: 4rem 0;
}

.algorithm-steps {
    margin: 2rem 0;
}

.algorithm-step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    transition: transform 0.3s ease;
}

.algorithm-step:hover {
    transform: translateX(10px);
}

.step-marker {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1.125rem;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

/* Методология */
.methodology-phase {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    margin: 3rem 0;
}

.phase-zero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
}

.phase-header {
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phase-zero .phase-header {
    background: rgba(255, 255, 255, 0.15);
}

.phase-badge {
    background: var(--white);
    color: var(--primary);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
}

.phase-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.phase-zero .phase-header h3 {
    color: var(--white);
}

.phase-content {
    padding: 2rem;
}

.phase-instruction {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.phase-instruction:last-child {
    margin-bottom: 0;
}

.instruction-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.phase-zero .instruction-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.instruction-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.phase-zero .instruction-content h4 {
    color: var(--white);
}

.phase-zero .instruction-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Таймлайн */
.timeline-container {
    margin: 4rem 0;
}

.timeline-phase {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-phase:last-child {
    margin-bottom: 0;
}

.timeline-phase::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    opacity: 0.2;
}

.timeline-header {
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.phase-duration {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.phase-subtitle {
    color: var(--gray);
    font-size: 0.875rem;
}

.timeline-tasks {
    padding-left: 2rem;
}

.task {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-light);
    position: relative;
}

.task::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 2rem;
    width: 1rem;
    height: 2px;
    background: var(--primary);
}

.task-week {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.task h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.task p {
    color: var(--gray);
    margin-bottom: 1rem;
}

.task-example {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-top: 1rem;
}

.example-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Инструменты */
.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tool-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-light);
    text-align: center;
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-10px);
}

.tool-card.community {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
}

.tool-card.community h3,
.tool-card.community p {
    color: var(--white);
}

.tool-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tool-card.community .tool-icon {
    color: var(--white);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.tool-card p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.tool-card.community p {
    color: rgba(255, 255, 255, 0.9);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.community-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.community-link {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.community-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Подписка на рассылку */
.newsletter-signup {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.newsletter-signup h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-signup p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.signup-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.signup-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1rem;
    outline: none;
}

.signup-form button {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.signup-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.privacy-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
}

/* Футер */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer-logo {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.logo-icon {
    font-size: 3rem;
}

.logo-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.logo-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    flex: 1;
    min-width: 300px;
}

.copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.copyright p:last-child {
    margin-bottom: 0;
}

.system-info {
    display: flex;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 2rem;
    color: var(--gray);
}

.modal-footer {
    padding: 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: flex-end;
}

.modal-download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .header-subtitle {
        font-size: 1.125rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .signup-form {
        flex-direction: column;
    }
    
    .signup-form input,
    .signup-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .nav-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}