:root {
    --popup-width: 630px;
    --popup-height: 660px;
    --close-x: 26px;
    --close-y: 26px;
    --text-dist: 42px;
    --submit-width: 235px;
    --submit-height: 45px;
    --submit-radius: 23px;
    --submit-fontsize: 1.25em;
    --submit-dist: 10px;
    --thanks-button-dist: 30px;
}
#popup-july .popup-content {
    width: var(--popup-width);
    height: var(--popup-height);
    padding: 0 15px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-image: url(../images/hero/popup-back.webp);
    background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x,
            url("../images/hero/popup-back@2x.webp") 2x);
}
#popup-july .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}
#popup-july form {
    margin-top: var(--text-dist);
}
#popup-july .button {
    width: var(--submit-width);
    height: var(--submit-height);
    border-radius: var(--submit-radius);
    font-size: var(--submit-fontsize);
    margin-top: var(--submit-dist);
    padding: 0.2em 0 0;
}
#popup-july .popup-thanks .button {
    margin-top: var(--thanks-button-dist);
}
@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 11px;
        --close-y: 12px;
        --text-dist: 31px;
        --submit-dist: 11px;
        --thanks-button-dist: 24px;
    }
    #popup-july .popup-content {
        background-image: url(../images/hero/popup-back-m.webp);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.webp") 1x,
                url("../images/hero/popup-back-m@2x.webp") 2x);
    }
    #popup-july .popup-close {
        width: 47px;
    }
    #popup-july .popup-thanks {
        padding-bottom: 60px;
    }
}