﻿#popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.0);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
    opacity: 0;
    transition: opacity .4s ease;
}

    #popup-overlay.show {
        display: flex;
        opacity: 1;
        background: rgba(0,0,0,0.7);
    }

#popup-window {
    background: #fff;
    max-width: 400px;
    width: 100%;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
}

    #popup-window.show {
        transform: scale(1);
        opacity: 1;
    }

/* Крестик */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #333;
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
}

    .close-btn:hover {
        background: #007acc;
    }

/* Мобильная адаптация */
@media (max-width: 480px) {
    #popup-window {
        padding: 15px;
        border-radius: 10px;
    }
}
