/* слой затемнения */
#dm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(7, 14, 19, 0.8);
    display: none;
    overflow: auto;
    width: 100%;
    height: 100%;
    z-index: 2000;
}
#dm-overlay img { max-width: 100%; }
/* блочная таблица */
#dm-table {
    display: table;
    width: 100%;
    height: 100%;
}
/* ячейка блочной таблицы */
#dm-cell {
    display: table-cell;
    padding: 0 0;
    vertical-align: middle;
    text-align: center;
}
/* модальный блок */
#dm-modal {
    display: inline-block;
    padding: 0;
/* максимально возможная ширина */
    min-width: 25%;
    max-width: 96%;  
    background: #fbfcfc;
    color: #464646;
    text-align: left;
    border-radius: 4px;
/* внешняя тень блока */
    -webkit-box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.25);
/* анимация и время задержки */
    -webkit-animation: fade .8s;
    -moz-animation: fade .8s;
    animation: fade .8s;
}
#dm-modal-content {
    padding: 2rem 4rem;
    font-family: 'Arial';
	font-size: 14px;
	line-height: 16px;
    text-align: center;
	color: #000;
	box-sizing: border-box;
    border: 10px solid #9d9cab;
    border-radius: 4px;
}
#dm-modal-content a { color: var(--main-template-color); text-decoration: underline; }
#dm-modal-content a:visited { color: var(--main-template-color); text-decoration: underline; }
#dm-modal-content a:hover { color: var(--main-template-color); text-decoration: none; }
#dm-modal-content a:active { color: var(--main-template-color); text-decoration: none; }
#spec_content_tbl {
    width: 650px;
}
#dm-modal-content .title { 
    padding: 0.5rem 0;
    font-family: 'Arial';
    font-size: 2rem;
    line-height: 1.2;
    color: #000;
}
#dm-modal-content .title div { font-size: 0.9rem; }  

#dm-modal-content .inputtxt {
 height: 60px;
margin: 5px 0;
box-sizing: border-box;
color: #333;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
font-family: inherit;
font-size: 1em;
outline: 0;
width: 100%;
padding: 20px;
}
#dm-modal-content textarea {
 height: 100px;
margin: 5px 0;
box-sizing: border-box;
color: #333;
background-color: #fff;
background-image: none;
border: 1px solid #ccc;
font-family: inherit;
font-size: 1em;
outline: 0;
width: 100%;
padding: 20px;
}
#dm-modal-content .info { 
    padding: 0.5rem 0;
    font-size: 1rem;
    color: #000;
}
#dm-modal-content .subtitle { 
    padding: 0 0 2rem;
    color: #000;
}
#dm-modal-content .manager { padding: 0.5rem 0; text-align: center; }
#dm-modal-content .manager_img img { width: 170px; }
#dm-modal-content .manager_name { font-size: 1rem; margin-top: 1rem; font-weight: bold; text-transform: uppercase; }
#dm-modal-content .manager_info { margin: 0.3rem 0; color: #777; }
#dm-modal-content .agree { 
    padding: 1.5rem 0;
    font-size: 0.9rem;

}
#dm-modal-content .agree .success { font-weight: bold; font-size: 0.95rem; color: green; }

#dm-modal-content .inputfiles { margin-bottom: 2rem; }
#dm-modal-content input[type=file] { position: absolute; z-index: -1; opacity: 0; display: block; width: 0; height: 0; }
#dm-modal-content .upload_data_res { padding-top: 0.5rem; font-size: 0.9rem; color: #949494;  }
#dm-modal-content .upload_data_res p { display: inline-block; vertical-align: middle; margin-right: 1rem;  }
#dm-modal-content .input-file-list-item { vertical-align: middle; margin-right: 1rem; }
#dm-modal-content .input-file-list-item span { color: #000; }
#dm-modal-content .input-file-list-item i { margin-left: 0.5rem; padding: 0.3rem 0.5rem; color: #949494; background-color: #ededed; border-radius: 50%; }
#dm-modal-content .button { display: inline-block; margin-top: 0.7rem; font-size: 1rem; line-height: 1; color: #999; text-decoration: underline; cursor: pointer; } 
#dm-modal-content .button i { display: inline-block; vertical-align: middle; width: 40px; height: 40px; margin: 0 0.2rem 0 0; background: url(../images/files-ico.png) no-repeat; background-size: cover; }
#dm-modal-content .button:hover { border: 1px solid var(--main-color1); }


#dm-modal-content .submitbtn { 
    padding: 0;
    font-size: 1rem;
}
#dm-modal-content .submitbtn span { padding: 1.4rem 1.8rem;  } 
#dm-modal-content label { text-align: left; line-height: 1.7; margin: 0 auto; }
/*#dm-modal-content .submitbtn span:hover { color: #fff; background-color: #3c6279; } */
#close-dm-win {
    z-index: 9999;
    float: right;
    width: 22px;
    height: 22px;
    margin: 10px;
    padding: 10px;
    color: #000;
    background-color: ;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    background: #eee url(../images/iclose.svg) center center no-repeat;
    background-size: 20px 20px;
    border: 1px solid #ccc;
}
#close-dm-win::after {
/*
    display: block;
    border: 2px solid #cfd8dc;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
    content: 'X';
    -webkit-transition: all 0.6s;
    -moz-transition: all 0.6s;
    transition: all 0.6s;
    -webkit-transform: scale(0.85);
    -moz-transform: scale(0.85);
    -ms-transform: scale(0.85);
    transform: scale(0.85);
*/
}
#close-dm-win:hover:after {
/*
    border-color: #888;
    color: #888;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
*/
}

/* анимация при появлении затемнения и блоков с содержанием */
@-moz-keyframes fade {
    from { opacity: 0; }
to { opacity: 1 }
}
@-webkit-keyframes fade {
    from { opacity: 0; }
to { opacity: 1 } 
}
@keyframes fade {
    from { opacity: 0; }
to { opacity: 1 }
}

@media(max-width:767px) {
    #dm-modal { width: 100%; margin-top: 0.5rem; }
    #spec_content_tbl { width: 100%; padding: 0 1.5rem 1.5rem; }
    #spec_content_td { display: none; }
    #spec_content_td_spacer { display: none; }
    #dm-modal-content { padding: 0; }
    #dm-modal-content .title { padding: 1rem 0 0 0; line-height: 1; }
    #dm-modal-content label { text-align: left; line-height: 1.4; }
}
@media(min-width: 991px)  and (max-width: 1199px) {
    #dm-modal { min-width: 30%; }
    #dm-modal-content { padding: 1.5rem 2rem 0.5rem; }
    #dm-modal-content .title { padding: 1rem 0; font-size: 1.3rem; line-height: 1.3rem; }
    #dm-modal-content .inputtxt { width: 250px; margin: 0.3rem 0 0.3rem 0; padding: 0.6rem 0; font-size: 0.9rem; line-height: 0.9rem; }
    #dm-modal-content .submitbtn span { padding: 1rem 5rem;  } 
    #dm-modal-content .agree { padding: 1rem 0; font-size: 0.7rem; }
    #dm-modal-content .success_subtitle { padding: 0.5rem 0; font-size: 1rem; }
}
@media(min-width: 1200px)  and (max-width: 1599px) {

}