.hystmodal__opened,.hystmodal__shadow {
    position:fixed;
    right:0;
    left:0;
    overflow:hidden;
}
.hystmodal__shadow {
    border:none;
    display:block;
    width:100%;
    top:0;
    bottom:0;
    pointer-events:none;
    z-index:150;
    opacity:0;
    transition:opacity .15s ease;
    background-color:#000;
}
.hystmodal__shadow--show {
    pointer-events:auto;
    opacity:.6;
}
.hystmodal {
    position:fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    overflow:hidden;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    opacity:1;
    pointer-events:none;
    display:flex;
    flex-flow:column nowrap;
    justify-content:flex-start;
    z-index:151;
    visibility:hidden;
}
.hystmodal--active {
    opacity:1;
}
.hystmodal--active,.hystmodal--moved {
    pointer-events:auto;
    visibility:visible;
}
.hystmodal__wrap {
    flex-shrink:0;
    flex-grow:0;
    width:100%;
    min-height:100%;
    margin:auto;
    display:flex;
    flex-flow:column nowrap;
    align-items:center;
    justify-content:center;
}
.hystmodal__window {
    width: 1000px;
    /*height: 630px;*/
    height: unset;
    background: #fff;
    border-radius: 5px;
    box-sizing: border-box;
    padding: 0px 0px 40px 0px;
    overflow:visible;
    transition:transform .2s ease 0s,opacity .2s ease 0s;
    transform:scale(.9);
    opacity:0; 
}
.hystmodal--active .hystmodal__window {
    transform:scale(1);
    opacity:1;

    overflow: hidden;
}
.hystmodal__close {
    position:absolute;
    z-index:152;
    top:15px;
    right:40px;
    display:block;
    width:15px;
    height:15px;
    background-color:transparent;
    background-position:50%;
    background-repeat:no-repeat;
    background-image:url("../img/svg/close.svg");
    background-size:100% 100%;
    border:none;
    font-size:0;
    cursor:pointer;
    outline:none;
}
/* .hystmodal__close:focus {
    outline:2px dotted #afb3b9;
    outline-offset:2px;
} */

/* Стилизация формы */
.modal-name {
    width: 100%;
    background: #002D63;
    padding: 10px 0px;
    font-family: "Exo2Regular", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 29px;
    color: #FFFFFF;
    text-align: center;
}
.modal-body {
    width: 100%;
    height: max-content;
    box-sizing: border-box;
    padding: 30px 250px;
    margin: 0px;
    position: relative;
}
.modal-body::after {
    content: "";
    position: absolute;
    bottom: 0px;
    right: 0px;
    background-image: url(../img/photo/bg-modal.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 326px;
    height: 318px;
}
.modal-body .main-form {
    box-sizing: border-box;
    padding: 0px 0px 0px;
    width: 100%;
    background: transparent;
    box-shadow: none;
    border-radius: 0px;
    z-index: 153;
    position: relative;
}
.modal-body .main-form textarea {
    height: 80px !important;
}
.modal-body .btn {
    margin: 0 auto;
}

@media (max-width: 1600px) {
    .hystmodal__window {
        width: 1200px;
    }

    .modal-title::before {
        width: 257px;
        height: 203px;
        top: 60px;
        right: -306px;
    }
    .formValide::after {
        width: 247px;
        height: 181px;
        top: 0px;
        right: -342px;
    }
    .modal-map {
        width: 73%;
        height: 580px;
    }
    .hystmodal__window-second {
        width: 1000px;
    }
}
@media (max-width: 1400px) {
    .hystmodal__window {
        width: 1200px;
    }
}
@media (max-width: 1280px) {
    .hystmodal__window {
        width: 1130px;
        height: min-content;
    }
}
@media (max-width: 1180px) {
    .hystmodal__window {
        width: 1000px;
    }
}
@media (max-width: 1024px) {
    .hystmodal__window {
        width: 880px;
    }
    .modal-body {
        padding: 30px 200px;
    }
}
@media (max-width: 890px) {
    .hystmodal__window {
        width: 760px;
    }
    .modal-body {
        padding: 30px 130px;
    }
    .modal-body::after {
        width: 237px;
        height: 234px;
    }
}
@media (max-width: 854px) {
    .hystmodal__window {
        width: 600px;
    }
    .modal-body::after {
        display: none;
    }
}
@media (max-width:767px) {
    .hystmodal__close {
        top: 13px;
        right: 30px;
        width: 20px;
        height: 21px;
    }
    .hystmodal__window {
        margin:0;
    }
}
@media (max-width:720px) {
    .hystmodal__window {
        width: 560px;
    }
}
@media (max-width:600px) {
    .hystmodal__window {
        width: 100%;
    }
    .modal-body {
        padding: 5%;
    }
}
@media (max-width:400px) {
    .modal-title {
        font-size: 20px;
        line-height: 22px;
    }
    .hystmodal__close {
        top: 13px;
        right: 20px;
    }
}