/*Для новых модальных окон*/
#modal_container{
    position: fixed;
    width: 100%;
    height: 100%;
    left:0;
    top:0;
    z-index: 10;
    visibility:hidden;
}
#modal_container.open_container{
    visibility: visible;
}
body.blocked_body{
    overflow: hidden;
    min-height: 100%;
}
.modal_overlay{
    position: fixed;
    overflow: auto;
    width: 100%;
    height: 100%;
    top:0px;
    left:0px;
    overflow-y: scroll;
    text-align: center;
    background-color: rgba(0,57,112,0.8);
}
.modal_overlay_inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: table;
    table-layout: fixed;
}

.modal_overlay_inner2 {
    display: table-cell;
    width: 100%;
    height: 100%;
}
.modal_overlay_close {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;   
}
.modal_overlay.not_overlay {
    background-image: none;
    overflow-y: visible;
    position: absolute;
}
.modal_after{
    display: inline-block;
    height: 100%;
    width: 0px;
    vertical-align: middle;
}
.modal{
    z-index: 1;
    display: inline-block !important;
    position: relative;
    max-width: 80%;
    vertical-align: middle;
    margin: 30px 0;
    text-align: left;
}
.modal_close{
    display: none;
    position: absolute;
    right: 20px;
    top: 20px;
    width: 22px;
    height: 22px;
    background-image: url(./img/close_pop.png);
    cursor: pointer;
}

.modal_close2 {
    z-index: 10;
    top: 20px;
    right: 20px;
    width: 68px;
    height: 68px;
    display: block;
    position: absolute;
    border: 1px solid #F3E301;
    cursor: pointer;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
}

.modal_close2:hover {
    background-color: #F3E301;
    border-color: #F3E301;
}

.modal_close2 .icon_inner {
    pointer-events: none;
}

.modal_close2 .icon_inner_auto {
    background-image: url(/img/modal_close_yellow.png);
}

.modal_close2 .icon_inner_hover {
    background-image: url(/img/modal_close_blue.png);
}

/*Пользовательские стили*/
.poplight{
    cursor: pointer;
}
.popup_block{
    display:none;
    
    background-color: transparent;
}

.popup_block_headmenu {
    padding: 0;
}

.popup_block_headmenu .modal_close {
    display: none;
}

.popup_block_content {
    background-color: #e9e7dd;
    padding: 60px 100px 70px;
    border-radius: 20px;
    -moz-border-radius: 20px;
    -webkit-border-radius: 20px;
}

.modal h2 {
    font-size: 40px;
    font-weight: 900;
    padding: 0;
    margin: 0;
    margin-bottom: 35px;
}

.modal_descr {
    line-height: 24px;
    font-size: 14px;
    margin-bottom: 25px;
}

.modal_notnull_warning {
    font-size: 16px;
    color: rgba(236,247,255,0.5);
    line-height: 20px;
    margin-left: 100px;
    margin-top: 20px;
}

.newmodal_caption {
    font-size: 14px;
    line-height: 24px;
    margin-bottom: 2px;
}

.newmodal_caption_notnull {
    color: #8F8D82;
}

.newmodal_field textarea{
    height: 120px;
    resize: none;
    line-height: normal;
    padding-top: 14px;
    font-family: inherit;
}

.newmodal_field input[type="text"]#captcha.captcha {
    width: 140px;
    float: left;

}


.newmodal_field .captcha_block {
    float: right;
    padding-top: 7px;
    padding-bottom: 3px;
}

.newmodal_button {
    display: inline-block;
}


.newmodal_field {
    
    
}

.newmodal_list {
    text-align: justify;
}

.newmodal_item {
    margin-bottom: 25px;
    display: inline-block;
    text-align: left;
    vertical-align: top;
    width: 100%;
}

.newmodal_item_half {
    width: 48.27%;
}

.newmodal_submit {
    margin-top: 30px;
    text-align: left;
}

.newmodal_submit .orland_button3 {
    width: 180px;
}

.popup_block_center h2{
    text-align: center;
}

.popup_block_center .newmodal_submit {
    text-align: center;
}


.popup_block_wide .newmodal_caption {
    width: 200px;
    float: left;
}

.popup_block_wide .newmodal_field {
    width: 275px;
    float: left;
}

.popup_block_wide .newmodal_field input[type="text"], .popup_block_wide .newmodal_field input[type="password"] {
    width: 275px;
    float: left;
}


.popup_block_center {
    text-align: center;
}


.glob_popup_block {
    padding-left: 30px;
    padding-right: 30px;
}

.glob_popup_block h2{
    text-align: center;
}
.glob_popup_block .newmodal_submit {

}

.newmodal_notnull {
    font-size: 18px;
    color: #ff0000;
    line-height: 17px;
}

.newmodal_line_tpl {
    margin-bottom: 29px;
    margin-top: 26px;
    width: 100%;
    height: 1px
}

.newmodal_line {
    border-top: 1px solid #e5dac0;
    left: 0;
    width: 100%;
    position: absolute;

}


.popup_block_wide {
    padding: 22px 58px 33px 62px;
}

.popup_block_wide img.btn_close {
    margin-right: -29px;
}

.popup_block_wide h2{
    margin-bottom: 20px;
}

.popup_block_wide .newmodal_item {
    margin-bottom: 5px;
}

.newmodal_checkbox {
    padding-top: 10px;
}

.newmodal_checkbox input[type="checkbox"], .newmodal_checkbox label {
    float: left;
    color: #322e2b;
    margin-right: 7px;
    cursor: pointer;
}

.newmodal_links {
    text-align: center;
    margin-top: 10px;
    color: #2b2262;
}

.newmodal_links a{
    margin-left: 4px;
    margin-right: 4px;
    color: #2b2262;

}

.newmodal_field_hint {
    color: #322e2b;
    margin-top: 3px;
}

.newmodal_text{
    margin-bottom: 8px;
    color: #322e2b;
}

.modal input[type="text"]#smscode {
    width: 418px;

}
.popup_inblock_wide input[type="text"]#smscode {
    width: 275px;

}

.newmodal_submit .rudnik_button2 {
    padding: 0 50px;
}

@media only screen and (max-width: 1000px) {
    .modal_close2 {
        display: none;
    }
    
    .modal_close {
        display: block;
    }
    
    
    
}

@media only screen and (max-width: 880px) {
    .popup_block_content {
        padding: 50px 60px 60px;
    }
    
    .modal h2 {
        text-align: left;
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .modal_notnull_warning {
        margin-top: 15px;
        margin-left: 60px;
    }
    
    .modal_close2 {
        width: 40px;
        height: 40px;
        border-color: #ffffff;
    }
    
    .newmodal_item_half {
        width: 100%;
    }
}

@media only screen and (max-width: 560px) {
    .modal{
        max-width: 90%;
    }
    
    .popup_block_content {
        padding: 20px 30px 30px;
    }
    
    .modal h2 {
        margin-left: 0;
    }
    
    .modal_notnull_warning {
        margin-left: 0;
        font-size: 14px;
    }
}