.modal-bg, .modal-bg__video{
    position: fixed;
    min-height: 670px;;
    height: 110%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0, 0.5);
    z-index: 10;
    display: none;
}
.modal-bg_show{
    display: block;
    overflow: scroll;
    padding-bottom: 50px;
}
.modal{
    max-width: 692px;
    background: #fff;
    padding: 40px 10px 30px 10px;
    position: absolute;
    margin: 0 auto;
    top: 50px;
    right: 0;
    left: 0;
}
.modal__close{
    position: absolute;
    top: 40px;
    right: 40px;
    cursor: pointer;
}
.modal__title{
    font-family: SegoeBold;
    font-size: 2.2rem;
    color: #333333;
}
.modal__hint, .modal__label{
    font-family: SegoeLight;
    font-size: 1.1rem;
}
.modal__required{
    font-family: SegoeLight;
    font-size: 1rem;
    color: #eb5757;
}
.form-wrap{
    width: 470px;
    margin: 0 auto;
}
.modal__form{
    display: flex;
    flex-direction: column;
}
.modal__input, .modal__form textarea{
    border: none;
    border-bottom: 1px solid #E5E5E5;
}
.modal__input{
    height: 35px;
    font-family: SegoeUI;
    font-size: 1.3rem;
    color: #333333;
    position: relative;
}
.modal__textarea{
    font-family: SegoeUi;
    font-size: 1.3rem;
    color: #333333;
}
.modal__submit{
    width: 290px;
    height: 70px;
    background: #004F97;
    color: #F2F2F2;
    display: flex;
    align-items: center;
    justify-content: center;
    display: block;
    margin: 0 auto;
    border: none;
}
.modal__submit:hover{
    background: linear-gradient(96.73deg, #004F97 -34.76%, #1082EB 106.42%);
}
.modal__submit:active{
    background: linear-gradient(101.19deg, #004F97 1.3%, #071624 129.19%);
}
.modal__submit:disabled{
    background: #F2F2F2;
    color: #BDBDBD;
}
.modal__checkbox{
    width: 17px;
    height: 17px !important;
    height: auto;
    position: relative;
}
.modal__checkbox::before{
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    border: 1px solid #000;
    background: #fff;
}
.modal__form .modal__checkbox:checked::before{
    background: url('/img/checked.svg');
    background-size: contain;
}
.modal__conf{
    font-size: .85rem;
    line-height: 1.4;
    font-family: SegoeLight;
}
.error-field{
    border-color:  #EB5757;
    color: #EB5757;
}
.modal-video{
    position: absolute;
    top:0;
    right:0;
    left:0;
    margin: auto;
    opacity: 0;
    max-width: 1000px;
    width: 90%;
    margin-top: 10%;
}
.wrap-video{
    position: absolute;
    width: 100%;
    padding-top: 56.25%;
}
.video{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
}
.modal-video_show{
    opacity: 1;
}
@media screen and (max-width: 768px){
    .modal{
        top: 0;
        padding: 20px 10px 15px 10px;
        height: 100vh;
    }
}
@media screen and (max-width: 520px){
    .form-wrap{
        width: 290px;
    }
    .modal__title{
        font-size: 1.6rem;
    }
    .modal__close{
        top: 20px;
        right: 20px;
    }
    .modal__hint, .modal__label{
        font-size: .8rem;
    }
    .modal__input{
        height: 25px;
        font-size: 1rem;
    }
    .modal__form textarea{
        font-size: 1rem;
    }
    .modal__submit{
        width: 190px;
        height: 35px;
    }
}