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

body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Неоновый заголовок */
.neon-text {
    font-size: 3.5em;
    text-align: center;
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #00ffff,
        0 0 30px #00ffff,
        0 0 40px #00ffff;
    animation: neonGlow 2s ease-in-out infinite alternate;
    margin-bottom: 10px;
}

@keyframes neonGlow {
    from {
        text-shadow: 
            0 0 5px #fff,
            0 0 10px #fff,
            0 0 20px #00ffff,
            0 0 30px #00ffff;
    }
    to {
        text-shadow: 
            0 0 10px #fff,
            0 0 20px #fff,
            0 0 30px #00ffff,
            0 0 40px #00ffff,
            0 0 50px #00ffff;
    }
}

.subtitle {
    text-align: center;
    color: #88ffff;
    font-size: 1.2em;
    margin-bottom: 40px;
    text-shadow: 0 0 10px #00ffff;
}

/* Навигационные кнопки */
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.neon-btn {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    padding: 15px 30px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 
        0 0 5px #00ffff,
        inset 0 0 5px #00ffff;
}

.neon-btn:hover {
    background: #00ffff;
    color: #0a0a0a;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        inset 0 0 10px #00ffff;
    transform: translateY(-2px);
}

/* Секции */
.section {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.section.active {
    display: block;
}

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

.section h2 {
    color: #00ffff;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
    text-shadow: 0 0 10px #00ffff;
}

/* Карточки загрузок */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.download-card:hover::before {
    left: 100%;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}

.download-card h3 {
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.download-card p {
    color: #88ffff;
    margin-bottom: 20px;
    line-height: 1.5;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #0a0a0a;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 255, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.3);
    background: linear-gradient(45deg, #00ccff, #0066ff);
}

/* Адаптивность */
@media (max-width: 768px) {
    .neon-text {
        font-size: 2.5em;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .neon-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
    }
}
/* Модальное окно */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: 2% auto;
    padding: 30px;
    border: 2px solid #00ffff;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    height: 85vh;           /* ← ФИКСИРОВАННАЯ высота */
    overflow-y: auto;       /* ← Прокрутка по вертикали */
    position: relative;
    box-shadow: 
        0 0 30px #00ffff,
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    animation: modalSlide 0.3s ease-out;
}

/* Контейнер для контента внутри модалки */
#modal-body {
    max-height: calc(85vh - 100px); /* ← Высота минус паддинги */
    overflow-y: auto;
    padding-right: 10px;
}

@keyframes modalSlide {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #00ffff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 10px #00ffff;
    transition: all 0.3s ease;
}

.close:hover {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000;
}

#modal-body h2 {
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ffff;
}

#modal-body p {
    margin-bottom: 15px;
    line-height: 1.6;
}

#modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

#modal-body li {
    margin-bottom: 8px;
    color: #88ffff;
}

/* Делаем карточки кликабельными */
.download-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 10px 25px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
}
/* Фон карточки с картинкой */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: -1;
    border-radius: 15px;
    transition: opacity 0.3s ease;
}

.download-card:hover .card-bg {
    opacity: 0.15;
}

/* Счётчик скачиваний */
.download-count {
    color: #88ffff;
    font-size: 0.9em;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #00ffff;
}

/* Стили для картинки в модальном окне */
.modal-image {
    width: 500px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 15px #00ffff;
    margin: 0 auto 20px auto;
    display: block;
}

.modal-download-btn {
    display: block;
    width: 200px;
    margin: 25px auto 0 auto;
    text-align: center;
}
/* Увеличил картинку в модалке */
.modal-image {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px #00ffff;
    margin: 0 auto 20px auto;
    display: block;
}
/* Подсветка активной кнопки навигации */
.nav-btn.active {
    background: #00ffff !important;
    color: #0a0a0a !important;
    box-shadow: 
        0 0 20px #00ffff,
        0 0 40px #00ffff,
        inset 0 0 10px #00ffff;
    transform: translateY(-2px);
}

/* Улучшил внешний вид списков в модалках */
#modal-body ul {
    margin: 15px 0;
    padding-left: 25px;
}

#modal-body li {
    margin-bottom: 8px;
    color: #88ffff;
    position: relative;
}

#modal-body li:before {
    content: "▸";
    color: #00ffff;
    position: absolute;
    left: -15px;
    text-shadow: 0 0 5px #00ffff;
}
/* Стили для скроллбара модалки */
#modal-body::-webkit-scrollbar {
    width: 6px;
}

#modal-body::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 3px;
}

#modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ffff, #0080ff);
    border-radius: 3px;
}

#modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00ccff, #0066ff);
}
