:root {
    --popup-width: 759px;
    --popup-height: 532px;
    --close-x: 41px;
    --close-y: 29px;
    --text-dist: 23px;
    --submit-width: 224px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.0625em;
    --submit-dist: 8px;
    --thanks-button-dist: 22px;
}

#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.jpg);
    background-image: -webkit-image-set(url("../images/hero/popup-back.webp") 1x,
            url("../images/hero/popup-back@2x.webp") 2x);
    background-image: image-set(url("../images/hero/popup-back.webp") type("image/webp") 1x,
            url("../images/hero/popup-back@2x.webp") type("image/webp") 2x);
}

#popup-july .popup-content:before {
    content: '';
    display: block;
    position: absolute;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}

#popup-july .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: var(--close-y) var(--close-x);
}
#popup-july .popup-form {
    margin-top: 15px;
    width: 100%;
}
#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 {
    width: 194px;
    margin-top: var(--thanks-button-dist);
}

@media screen and (min-width: 568px) {
}

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 10px;
        --close-y: 18px;
        --text-dist: 14px;
        --submit-width: 190px;
        --submit-height: 32px;
        --submit-radius: 16px;
        --submit-fontsize: 0.9375em;
        --submit-dist: 4px;
        --thanks-button-dist: 22px;
    }

    #popup-july .popup-content {
        background-image: url(../images/hero/popup-back-m.jpg);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.webp") 1x,
                url("../images/hero/popup-back-m@2x.webp") 2x);
        background-image: image-set(url("../images/hero/popup-back-m.webp") type("image/webp") 1x,
                url("../images/hero/popup-back-m@2x.webp") type("image/webp") 2x);
    }
    #popup-july .popup-close {
        width: 47px;
    }
    #popup-july .popup-thanks .button {
        width: 150px;
    }
}