:root {
    --popup-width: 729px;
    --popup-height: 547px;
    --close-x: 32px;
    --close-y: 34px;
    --text-dist: 38px;
    --submit-width: 206px;
    --submit-height: 40px;
    --submit-radius: 20px;
    --submit-fontsize: 1.125em;
    --submit-dist: 6.5px;
    --thanks-button-dist: 35px;
}

#popup-july {
    --blue: #2a3b74;
}

#popup-july .popup-content {
    position: relative;
    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.jpg") 1x,
            url("../images/hero/popup-back@2x.jpg") 2x);
}

#popup-july .popup-content::before {
    content: '';
    position: absolute;
    top: -71px;
    left: -34px;
    width: 199px;
    height: 230px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-image: url(../images/hero/popup-decor.png);
    background-image: -webkit-image-set(url("../images/hero/popup-decor.png") 1x,
            url("../images/hero/popup-decor@2x.png") 2x);
    z-index: 2;
}

#popup-july .popup-close {
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    padding: 20px;
}

#popup-july form {
    margin-top: 29px;
}

#popup-july .button {
    width: 10.5em;
    height: 2em;
    border-radius: 1em;
    font-size: 1.2em;
    margin-top: 0;
    line-height: 1;
    padding: 0;
    border: none!important;
}

#popup-july .popup-thanks .button {
    margin-top: 20px;
}

#popup-july .form-action {
    text-align: center;
}

#popup-july .form-text {
    margin-top: 10px;
}

#popup-july .image {
    bottom: 0;
    right: -5.5em;
}

@supports (background: -webkit-named-image(i)) {
    #popup-july .button {
        padding-top: 4px;
    }
}

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

@media screen and (max-width: 567px) {
    :root {
        --popup-width: 100%;
        --popup-height: 100%;
        --close-x: 16px;
        --close-y: 20px;
        --text-dist: 21px;
        --submit-width: 150px;
        --submit-height: 33px;
        --submit-radius: 17px;
        --submit-fontsize: 0.8125em;
        --submit-dist: 10px;
        --thanks-button-dist: 24px;
    }

    #popup-july .popup-content {
        height: 100%;
        width: 100%;
        background-image: url(../images/hero/popup-back-m.png);
        background-image: -webkit-image-set(url("../images/hero/popup-back-m.png") 1x,
                url("../images/hero/popup-back-m@2x.png") 2x);
    }

    #popup-july .popup-content::before {
        display: none;
    }

    #popup-july .popup-form {
        width: 100%;
    }

    #popup-july form.uni-style {
        width: calc(100% - 35px);
    }

    #popup-july .thanks {
        width: 93%;
    }

    #popup-july .button {
        font-size: 1.2em;
    }

    @supports (background: -webkit-named-image(i)) {
        #popup-july .button {
            padding-top: 2px;
        }
    }
}