/*Для новых модальных окон*/
#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(25,16,9,0.88);
}
.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: 10px;
    top: 10px;
    width: 22px;
    height: 22px;
    background-image: url(./img/close_pop.png);
    cursor: pointer;
}

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

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

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

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

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

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

.popup_block_headmenu, .popup_block_video {
    padding: 0;
}

.popup_block_headmenu .modal_close {
    display: none;
}

.popup_block_content {
    background-color: #ffffff;
    padding: 40px 50px 50px;
    border-radius: 2px;
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
}

.welcome_modal_img + .popup_block_content {
    border-radius: 0 0 2px 2px;
    -moz-border-radius: 0 0 2px 2px;
    -webkit-border-radius: 0 0 2px 2px;
}

.popup_block_video .popup_block_content {
    padding: 0;
    overflow: hidden;
}

.modal h2 {
    text-align: center;
    color: #ffffff;
    
    letter-spacing: 0.2px;
    font-size: 36px;
    font-weight: bold;
    padding: 0;
    margin-bottom: 30px;
}

.modal_descr {
    font-weight: 300;
    
    line-height: 28px;
    font-size: 16px;
    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: 13px;
    line-height: 24px;
    margin-bottom: 3px;
}

.newmodal_field textarea{
    height: 110px;
    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: 22px;
    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 .sova_button {
    width: auto;
    padding: 0 30px;
}

.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;

}

.standard_inputtext {
    border: 1px solid #000000;
    height: 38px;
    line-height: 38px;
    padding: 0 12px;
}

.standard_button {
    height: 40px;
    line-height: 40px;
    border: 0;
    border-bottom: 2px solid #770808;
    color: #ffffff;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    font-size: 15px;
    font-weight: bold;
    font-family: trebuchet ms;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
    background-color: #c51212;
    background-image: url(img/formbut.jpg);
    background-position: top;
}

.standard_button:hover {
    background-position: bottom;
    background-color: #ae0a0a;
}

@media only screen and (max-width: 880px) {
    .popup_block_content {
        padding: 50px 60px 60px;
    }
    
    .modal h2 {
        text-align: left;
        margin-left: 60px;
        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;
    }
}