/* === МОДАЛЬНОЕ ОКНО === */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 99999 !important; /* Самый верхний слой */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-window {
    background: white;
    width: 90%; max-width: 400px;
    padding: 30px;
    border-radius: 15px;
    position: relative;
    text-align: center;
}
.close-modal {
    position: absolute; top: 10px; right: 15px;
    font-size: 28px; cursor: pointer; color: #555;
    line-height: 1;
}

/* === МОБИЛЬНОЕ МЕНЮ === */
@media (max-width: 768px) {
    /* Скрываем меню по умолчанию */
    .nav-links {
        display: none !important; /* Жестко скрываем */
        position: absolute;
        top: 70px; /* Высота шапки */
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        z-index: 10000 !important;
    }
    
    /* Класс для открытия */
    .nav-links.mobile-active {
        display: flex !important;
    }

    /* Бургер должен быть кликабельным */
    .burger {
        display: block !important;
        cursor: pointer;
        z-index: 10001;
    }
}