/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

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

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

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
    animation: slideIn 0.4s ease;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #1a1a2e;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #8b0000;
    color: #fff;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #cc0000;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.modal-header h2 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.modal-header p {
    color: #aaa;
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(30, 30, 50, 0.8);
    border: 1px solid #444;
    border-radius: 10px;
    padding: 20px;
    transition: 0.3s;
}

.feature-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.feature-title {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
}

.feature-desc {
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.feature-list li {
    color: #aaa;
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #d4af37;
    font-weight: bold;
}

.modal-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.modal-footer p {
    color: #888;
    font-size: 13px;
    font-style: italic;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .modal-header h2 {
        font-size: 22px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}