.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none !important;
    z-index: 1000;
    gap: 0 !important;
    border-radius: 30px !important;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%) !important;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15) !important;
    padding: 16px !important;
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    width: 620px;
    height: fit-content;
}

body.dark .popup {
    background: linear-gradient(180deg, #252525 0%, #141414 100%) !important;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15) !important;
}

.popup_body {
    border-radius: 20px;
    border: 3px solid #997759;
    padding: 40px;
    position: relative;
    background: linear-gradient(0deg, #FFF 0%, #FFF 100%), linear-gradient(180deg, #E0E0E0 0%, rgba(224, 224, 224, 0.85) 100%);
    width: 100%;
    height: 100%;
}

body.dark .popup_body {
    background: linear-gradient(180deg, #252525 0%, #141414 100%);
    border: 3px solid #877751;
}

.popup_body:after {
    content: "";
    position: absolute;
    bottom: 4px;
    height: calc(100% - 10px);
    left: 4px;
    border: 1px dotted #997759;
    border-radius: 16px;
    width: calc(100% - 10px);
    pointer-events: none;
}

.popup_text {
    font-family: Colus;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 36px;
    letter-spacing: -0.32px;
    padding-bottom: 8px;
    max-width: 410px;
}

.popup_more {
    padding-bottom: 67px;
    max-width: 290px;
    line-height: 24px;
    font-size: 18px;
}

.sova {
    position: absolute;
    right: -20px;
    bottom: 0;
    z-index: 6;
    pointer-events: none;
}

body.dark .popup_text span {
    color: #BD9C49;
    background: linear-gradient(180deg, #FFE5A3 0%, #CBA74C 63.5%, #EECE7F 79%, #8C7845 98.5%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: none;
}

.popup_text span {
    color: #AA0909;
}

.butstyle {
    margin: 0 !important;
    position: relative !important;
}

@media (max-width: 660px) {

    .sova {
        display: none;
    }

    .popup {
        width: 95% !important;
    }

    .popup_body {
        padding: 30px;
    }

    .popup_text {
        font-size: 24px;
        line-height: 25px;
    }

    .popup_more {
        padding-bottom: 32px;
    }

    .popup .btn {
        width: 250px !important;
        height: 52px !important;
        min-height: 52px !important;
    }
}