.lock {
    overflow: hidden;
}

.popups-container {
    position: relative;
    overflow-x: hidden;
}
.popup-wrapper {
    position: relative;
    transition: all 0.8s ease;
    max-width: 751px;
    margin: auto;
    width: 99%;
}


.popup-container {
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 50%;
    z-index: 1000;
    width: 101%;
    transform: translateX(-50%);
    height: 100%;
    min-height: 100vh;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
    padding: 80px 0;
    display: flex;
}



.popup-container:has(.modal-closing) {
    opacity: 0!important;
    transition: all 0.8s ease;
}

.popup-container:has(.modal.modal-opened){
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    position: fixed;
}


.modal {
    transform: perspective(600px) translate(0, -100%) rotateX(45deg);
    opacity: 0; /* Початкове значення прозорості */
    transition: transform 0.8s ease, opacity 0.5s ease, all 0.8s ease; /* Додаємо плавний перехід для opacity */
    cursor: default;
    position: relative;
    display: block;
    height: fit-content;
    padding: 50px;
    background: #fffbee;
}



.modal-opened {
    transform: perspective(600px) translate(0, 0) rotateX(0deg);
    opacity: 1; /* Робимо модальне вікно видимим */
}

.modal-closing {
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
    opacity: 0; /* Робимо модальне вікно невидимим */
}




.modal-close.default-close {
    display: flex;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}


.modal-close.default-close svg {
    width: 40px;
    height: 40px;
}

.popup-container .btn {
    top: unset;
    right: unset;
}

@media screen and (min-width: 1600px) {
    .popup-wrapper {
        max-width: 951px;
    }


}

@media screen and (max-width: 1024.98px) {
    .modal {
        height: fit-content;
        padding: 20px;
    }

    .modal-close.default-close {
        top: 10px;
        right: 10px;
    }

    .modal-close.default-close svg {
        width: 30px;
        height: 30px;
    }

.popup-container {
    padding: 60px 15px;
}

.act-popup__heading {
    max-width: 272px;
    margin-bottom: 10px;
}

    .modal p {
        line-height: 1.5;
    }
}

