.popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup.hidden {
    display: none;
}

.popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    animation: fadeIn .25s ease;
    /* border: solid 2px yellow; */
}

.popup-window {
    /* background-color: black; */
    /* background: linear-gradient(90deg, #12585d 0%, #0d2d2f 100%); */
    /* background-color: #2C8B90; */
    /* background-color: #2F7F94; */
    background-color: #1E5F73;
    position: relative;
    width: min(920px, 95%);
    max-height: 90vh;
    /* overflow-y: auto; */
    /* background: #fff; */
    border-radius: 18px;
    padding: 36px;
    padding-top: 0px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
    animation: popupIn .35s cubic-bezier(.2, .8, .2, 1);
    /* border: solid 2px #D6BE72; */
    /* border: solid 2px yellow; */
}

.form h2 {
    font-family: 'PlayfairDisplay', serif;
    font-size: 40px;
    font-weight: 300;
    margin-top: 0;
    color: #d6bf72;
    padding-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    /* border: solid 2px yellow; */
}

.submit-b button {
    margin-left: auto;
    margin-right: auto;
    display: block;
    justify-content: center;
    margin-top: 20px;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 18px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
    color: #d6bf72;
}


/* Анимации */

@keyframes popupIn {
    from {
        transform: translateY(40px) scale(.95);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}