        .roadmap-section {
            padding: 4rem 0;
            position: relative; /* Для позиционирования видео-фона */
            overflow: hidden; /* Чтобы видео не вылезало за пределы */
        }

        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            padding: 2rem 0;
            position: relative; /* Чтобы контент был поверх видео */
            z-index: 2;
        }

        /* --- НОВЫЙ ЭФФЕКТ: Заполняющаяся линия времени --- */
        .timeline-progress {
            position: absolute;
            width: 4px;
            background: var(--action-blue);
            box-shadow: 0 0 10px var(--primary-blue);
            top: 0;
            left: 50%;
            margin-left: -2px;
            height: 0; /* Начальная высота 0, будет меняться через JS */
            z-index: 1; /* Под точками, но над серой линией */
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 4px;
            background-color: var(--border-color);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -2px;
            border-radius: 2px;
        }

        .timeline-item {
            padding: 10px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
        }

        .timeline-item.left {
            left: 0;
        }

        .timeline-item.right {
            left: 50%;
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            right: -10px;
            background-color: var(--background-color);
            border: 4px solid var(--primary-blue);
            top: 25px;
            border-radius: 50%;
            z-index: 1;
            will-change: transform; /* УЛУЧШЕНИЕ: Подсказка браузеру для оптимизации */
        }

        .timeline-item.right::after {
            left: -10px;
        }

        .timeline-content {
            padding: 25px 30px;
            background-color: var(--background-color-light);
            position: relative;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 20px rgba(0,0,0,0.05);
            transform-style: preserve-3d;
            transform: perspective(1000px) rotateX(var(--rotateX, 0deg)) rotateY(var(--rotateY, 0deg));
            will-change: transform; /* УЛУЧШЕНИЕ: Подсказка браузеру для оптимизации */
        }
        .timeline-item:hover .timeline-content {
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
        }

        .timeline-content h3 {
            margin-top: 0;
            font-size: 1.4rem;
        }

        .timeline-content .status {
            font-size: 0.9rem;
            font-weight: bold;
            padding: 4px 10px;
            border-radius: 15px;
            display: inline-block;
            margin-bottom: 15px;
        }

        .timeline-content .status.done {
            color: var(--text-green);
            background-color: rgba(34, 197, 94, 0.1);
        }

        .timeline-content .status.in-progress {
            color: var(--text-warning);
            background-color: rgba(245, 158, 11, 0.1);
        }

        .timeline-content .status.planned {
            color: var(--text-blue);
            background-color: rgba(59, 130, 246, 0.1);
        }

        .timeline-content ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .timeline-content ul li {
            padding-left: 25px;
            position: relative;
            margin-bottom: 10px;
            font-size: 0.95rem;
            opacity: 0;
            transform: translateX(20px);
        }
        .timeline-item.in-view .timeline-content ul li {
            opacity: 1;
            transform: translateX(0);
        }

        .timeline-content ul li::before {
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
            content: "058"; /* check-circle icon */
            position: absolute;
            left: 0;
            color: var(--text-green);
        }

        @media screen and (max-width: 768px) {
            .timeline::after, .timeline-progress {
                left: 20px;
                margin-left: 0;
            }
            .timeline-item {
                width: 100%;
                padding-left: 60px;
                padding-right: 15px;
            }
            .timeline-item.left, .timeline-item.right {
                left: 0;
            }
            .timeline-item::after {
                left: 10px;
            }
        }

        .section-video-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            opacity: 0.1;
            /* УЛУЧШЕНИЕ: Добавляем градиент для улучшения читаемости текста */
            background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3));
        }
        .section-video-bg video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .roadmap-section::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 2;
            background: radial-gradient(
                circle 400px at var(--mouse-x, -500px) var(--mouse-y, -500px),
                rgba(255, 255, 255, 0.08),
                transparent 80%
            );
            pointer-events: none;
            opacity: 0;
        }
        .roadmap-section:hover::before { opacity: 1; }

        .hero {
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .circleDecorWrap {
            position: absolute;
            z-index: -1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            pointer-events: none;
        }

        .circleDecorW {
            position: absolute;
            left: 50%;
            top: 50%;
            width: 1px;
            height: 1px;
        }

        .circleDecor {
            position: absolute;
            left: -45vw;
            top: -45vw;
            width: 90vw;
            height: 90vw;
            border-radius: 50%;
            border: 1px solid var(--border-color);
        }

        .gooey-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            filter: url(#gooey-filter);
            pointer-events: none;
            z-index: 1;
        }
        .gooey-blob {
            position: absolute;
            background: var(--action-blue);
            border-radius: 50%;
            opacity: 0.6;
        }

        .particles {
            position: absolute;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 0;
            pointer-events: none;
        }
        .particle {
            position: absolute;
            border-radius: 50%;
            background: var(--border-color);
            top: 100%;
        }

        @keyframes rotate-decor {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        @keyframes particle-float {
            0% { transform: translateY(0) translateX(0); opacity: 1; }
            100% { transform: translateY(-110vh) translateX(10vw); opacity: 0; }
        }

        /* --- УЛУЧШЕНИЕ: Уважение к настройкам пользователя (Accessibility) --- */
        @media (prefers-reduced-motion: no-preference) {
            .timeline-progress {
                transition: height 0.1s linear;
            }
            .timeline-item::after {
                transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            }
            .timeline-content {
                transition: transform 0.1s linear, box-shadow 0.3s ease;
            }
            .timeline-content ul li {
                transition: opacity 0.5s ease, transform 0.5s ease;
            }
            .roadmap-section::before {
                transition: opacity 0.4s ease-out;
            }
            .circleDecor {
                animation: rotate-decor 80s linear infinite;
            }
            .particle {
                animation: particle-float 25s infinite linear;
            }
        }

        /* Генерация частиц вынесена из-под медиа-запроса, чтобы они были, но не двигались */
        .particle:nth-child(1) { width: 7px; height: 7px; left: 10%; animation-delay: -2s; animation-duration: 15s; }
        .particle:nth-child(2) { width: 3px; height: 3px; left: 20%; animation-delay: -5s; animation-duration: 20s; }
        .particle:nth-child(3) { width: 5px; height: 5px; left: 30%; animation-delay: -10s; animation-duration: 25s; }
        .particle:nth-child(4) { width: 2px; height: 2px; left: 40%; animation-delay: -3s; animation-duration: 12s; }
        .particle:nth-child(5) { width: 6px; height: 6px; left: 50%; animation-delay: -8s; animation-duration: 18s; }
        .particle:nth-child(6) { width: 4px; height: 4px; left: 60%; animation-delay: -12s; animation-duration: 30s; }
        .particle:nth-child(7) { width: 2px; height: 2px; left: 70%; animation-delay: -1s; animation-duration: 14s; }
        .particle:nth-child(8) { width: 5px; height: 5px; left: 80%; animation-delay: -6s; animation-duration: 22s; }
        .particle:nth-child(9) { width: 3px; height: 3px; left: 90%; animation-delay: -9s; animation-duration: 28s; }
        .particle:nth-child(10) { width: 6px; height: 6px; left: 5%; animation-delay: -15s; animation-duration: 17s; }
        .particle:nth-child(11) { width: 4px; height: 4px; left: 25%; animation-delay: -4s; animation-duration: 23s; }
        .particle:nth-child(12) { width: 2px; height: 2px; left: 45%; animation-delay: -11s; animation-duration: 19s; }
        .particle:nth-child(13) { width: 5px; height: 5px; left: 65%; animation-delay: -7s; animation-duration: 26s; }
        .particle:nth-child(14) { width: 3px; height: 3px; left: 85%; animation-delay: -14s; animation-duration: 16s; }
        .particle:nth-child(15) { width: 7px; height: 7px; left: 95%; animation-delay: -2.5s; animation-duration: 21s; }

/* --- Стили для новых интерактивных элементов --- */

/* 1. Фильтры */
.roadmap-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    position: relative; /* Добавлено */
    z-index: 3; /* Добавлено */
}

.filter-btn {
    background-color: var(--background-color-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.filter-btn.active {
    background-color: var(--action-blue);
    color: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* 2. Ссылки на детали */
.details-link {
    color: var(--text-blue);
    text-decoration: none;
    margin-left: 8px;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.details-link:hover {
    color: var(--primary-blue-dark);
}

/* 3. Кнопки голосования */
.vote-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2px 8px;
    cursor: pointer;
    margin-left: 8px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.vote-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--primary-blue);
}

.vote-btn.voted {
    background-color: var(--primary-blue-light);
    border-color: var(--primary-blue);
    color: var(--primary-blue-dark);
    font-weight: bold;
}

/* ИСПРАВЛЕНИЕ: В темной теме текст на кнопке был черным и невидимым */
.dark-mode .vote-btn {
    color: var(--text-color);
}

.vote-count {
    margin-left: 4px;
}

/* 4. Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--background-color);
    padding: 2.5rem;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.visible .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.modal-close-btn:hover {
    opacity: 1;
}

.modal-content-area h2 {
    margin-top: 0;
    color: var(--text-blue);
}

.modal-content-area ul {
    list-style-type: disc;
    padding-left: 20px;
}

.modal-content-source {
    display: none; /* Скрываем исходный контент */
}

.modal-trigger {
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-trigger:hover {
    color: var(--text-blue);
}

/* Состояние приглушения для фильтрации */
.timeline-item.dimmed {
    opacity: 0.3;
    pointer-events: none; /* Добавлено это свойство */
    transition: opacity 0.4s ease;
}
