.page .dp-cards-list, .dp-cards-list{
    list-style-type: none!important;
    margin: 0;
    padding: 0;
    font-family: Montserrat, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.dp-grey{
    color: #6B7786;
    font-size: 12px;
}

.dp-bold{
    font-family: Montserrat;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

.page .dp-cards-item, .dp-cards-item{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 20px 30px 20px 35px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    min-height: calc(140px - 20px - 20px);    
    margin: 0 0 20px 0;
    position: relative;
}

.dp-cards-item::before{
    display: block;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: transparent;
}

.dp-complex {
   background: #eff6fb;
}

.dp-diplom {
   background: #eff6fb;
}

.dp-complex::before{
    background: #D1D1D1;
}

.dp-diplom::before{
    background: #2580C3;
}

.page .dp-subsection-header{
    font-size: 20px;
    padding-left: 20px;
    margin-top: 0px;
}

.dp-course-note{
    margin-bottom: 0;
    margin-top: auto;
    font-weight: 500;
    font-size: 12px;
    color: #2580C3;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid rgba(37, 128, 195, 0.2);
    align-self: flex-start;
    margin-bottom: -3px;
}

.useful_info_container {margin: 20px 0;}

/*ie11*/
_:-ms-fullscreen, :root .dp-cards-item {
    /*height: 100px;*/
}

@media screen and (max-width: 1000px){
    .dp-cards-item{
        padding: 15px;
        width: calc(100% - 15px * 2 - 5px);
    }
}

@media screen and (max-width: 930px){
    .dp-cards-item{
        flex-wrap: wrap;
        height: auto;
    }

    /*ie11*/
    _:-ms-fullscreen, :root .dp-cards-item {
        height: auto;
    }
}

@media screen and (max-width: 680px){
    .dp-cards-item{
        margin-bottom: 20px;
    }

    .dp-cards-item::before{
        top: 10px;
        height: 47px;
    }

}


.dp-date-block{
    width: calc(10% - 10px);
    display: flex;
    flex-direction: column;
    margin-right: 10px;
}

@media screen and (max-width: 930px){
    .dp-date-block{
        width: calc(20% - 5px);    
        margin-bottom: 20px;   
        margin-right: 5px;        
    }
}


@media screen and (max-width: 680px){
    .dp-date-block{
        width: 100%;
        margin-right: 0;
        display: block;
        position: relative;
        border-bottom: 1px solid #6B7786;
        padding-bottom: 10px;      
        margin-bottom: 0; 
    }
}

.dp-date-block-top{
    display: flex;
    margin-bottom: 10px;
}

.dp-discount-left{
    font-weight: 700;
    color: red;
}

.dp-icon{
    display: block;
    width: 30px;
    height: 25px;
    background-image: url('img/course-icon.svg');
    background-repeat: no-repeat;    
    margin-right: 8px;
}

.dp-complex .dp-icon{
    background-image: url('img/complex-icon.svg');
}

.dp-diplom .dp-icon{
    background-image: url('img/diplom-icon.svg');
}

.dp-other-date{
    margin-bottom: 0;
    margin-top: auto;       
}

.dp-other-date a{
    color: #004677;
    font-size: 12px;
}

.dp-date-text{
    font-size: 12px;
    font-weight: 600;
}

@media screen and (max-width: 680px){
    .dp-date-block-top{
        width: calc(50% - 15px - 5px);
        margin-bottom: 5px;       
    }

    .dp-other-date{
        width: calc(50% - 15px - 5px);
        margin-top: 0;       
    }

    .dp-date{
        width: calc(50% - 15px - 5px);
        position: absolute;
        bottom: 10px;
        right: 0;
    }


}

.dp-description-block{
    width: calc(45% - 15px);
    margin-right: 15px;
    display: flex;
    flex-direction: column;
}

 /*ie11*/
 _:-ms-fullscreen, :root .dp-description-block{
    width: calc(43% - 15px);
 }

@media screen and (max-width: 930px){
    .dp-description-block{
        width: calc(100% - 5px * 2 - 20%);
        margin-right: 5px;
        margin-bottom: 20px;
    }
}

@media screen and (max-width: 680px){
    .dp-description-block{
        width: 100%;
        margin-right: 0;
        border-bottom: 1px solid #6B7786;
        padding-top: 10px;
        padding-bottom: 10px;      
        margin-bottom: 0; 
    }
}

/*.dp-diplom .dp-type{
    font-size: 16px;
}*/

.dp-hours{
    margin-bottom: 10px;
    position: relative;
}

.dp-hours-text{
    white-space: nowrap;
}

.course-type-icons{
    position: absolute;
    right: 0;
}

.page .dp-course-name, .dp-course-name{
    margin: 0 0 10px 0;
}

.page .dp-course-name, .dp-course-name, .page .dp-course-name a, .dp-course-name a{
    font-family: Montserrat;
    font-weight: 700;
    font-size: 15px;
    color: #004677;
    /*display: block;*/
    /*max-height: 2.65em;*/
    overflow: hidden;    
    position: relative;
}

/*.dp-course-name a:after{
    display: block;
    width: 100%;
    height: 5px;
    position: absolute;
    bottom: 0;
    background-image: linear-gradient(to bottom, transparent, white);
    content: '';
}*/


@media screen and (max-width: 930px){
    .page .dp-course-name, .dp-course-name, .page .dp-course-name a, .dp-course-name a{
        height: auto;
        max-height: none;
    } 
}

.dp-duration{
    margin-bottom: 0;
    margin-top: auto;
}

.dp-duration-text{
    font-size: 12px;
}

@media screen and (max-width: 680px){
    .dp-duration>span{
        display: block;
    }
}

.page .track-discount{
    margin: 0;
    margin-top: auto;
    line-height: 1.2;
    font-size: 12px;
}

.dp-teacher-block{
    width: calc(25% - 10px);
    margin-right: 10px;
    display: flex;
    flex-shrink: 0;
    flex-basis: 190px;
    overflow: hidden;
}

@media screen and (max-width: 930px){
    .dp-teacher-block{
        margin-right: 5px;
        width: 100%;    
        margin-bottom: 20px;
        flex-basis: 100%;
    }
}


@media screen and (max-width: 680px){
    .dp-teacher-block{
        width: 100%;
        margin-right: 0;
        border-bottom: 1px solid #6B7786;
        padding-top: 10px;
        padding-bottom: 10px;      
        margin-bottom: 0; 
        flex-basis: auto;
    }
}

.dp-teacher-photo-wrapper{
    flex-shrink: 0;
    margin-right: 12px;
    width: 64px; 
    height: 100%;
    display: block;
}

.dp-teacher-photo{
    display: block;
    overflow: hidden;
    width: 64px; 
    height: 100%;
    position: relative;
}

@media screen and (max-width: 930px){
    .dp-teacher-photo-wrapper{
        display: none;
    }
}

@media screen and (max-width: 680px){
    .dp-teacher-header{
        margin-bottom: 5px;
    }
}

.dp-teacher-photo img{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: 100%;
    max-width: none;
}

.dp-teacher-about{
    display: flex;
    width: calc(100% - 64px - 12px);
    flex-direction: column;       
}

.dp-teacher-name{
    display: block;
}

.dp-teacher-name>div{
    line-height: 1.1;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: black;
    font-size: 12px;
}


.dp-teacher-name>.dp-teacher-last-name{
    font-family: Montserrat;        
    font-size: 14px;
    font-weight: 700;
    color: #004677;    
}

.dp-review{
    display: block;
    margin-bottom: 0;
    margin-top: auto;
    color: #004677;
    font-size: 12px;
}

@media screen and (max-width: 930px){
    .dp-teacher-about{
        flex-direction: row;
        margin-right: 0;
        width: 100%;
        flex-wrap: wrap;
        position: relative;
    }

    .dp-teacher-header{
        width: calc(20% - 5px);
        margin-right: 10px;
        line-height: 1;
    }

    .dp-teacher-name{
        width: calc(100% - 20% - 5px * 2);
    }

    .dp-teacher-name>div:not(.dp-teacher-last-name){
        display: inline-block;
    }

    .dp-review{
        width: calc(20% - 5px);
        position: absolute;
        bottom: 0.5em;
    }
}


@media screen and (max-width: 680px){
    .dp-teacher-about{
        flex-direction: column;
    }

    .max890.dp-teacher-header{
        display: block;
        width: 100%;
        line-height: 1.4;
    }
    
    
    .dp-teacher-name{
        margin-bottom: 5px;
    }

    .dp-review{
        position: static;
        width: 100%;
    }
}

.dp-price-block{
    width: calc(20% - 10px);
    margin-right: 10px;
    display: flex;
    justify-content: space-between;
    position: relative;    
}

.dp-diplom .dp-price-block{
    padding-bottom: 30px;
}

@media screen and (max-width: 930px){
    .dp-price-block{
        width: 80%;
        margin-right: 0;
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .dp-price-block-header{
        width: calc(26% - 5px);
        margin-right: 5px;
    }
}

@media screen and (max-width: 680px){
    .dp-price-block{
        width: 100%;  
        padding-top: 10px;        
        margin-bottom: 10px;
    }
}

.dp-price-header{
    margin-bottom: 10px;   
    white-space: nowrap;
}

.dp-price-discount{
    font-family: Montserrat;
    font-weight: 700;
    font-size: 16px;    
    color: #2580C3;
    margin-bottom: 5px;
    white-space: nowrap;
}

.dp-price-individual{
    margin-right: 10px;
}

@media screen and (max-width: 930px){
    .dp-price-individual{
        margin-right: 10%;
    }
}

@media screen and (max-width: 680px){
    .dp-price-individual{
        width: calc(50% + 5px + 15px);
        margin-right: 0;
    }

    .dp-price-header{
        margin-bottom: 5px;   
    }
}

.dp-price-full{
   text-decoration-line: line-through;
   color: #FF5800;
}

.dp-reg-block{   
    width: 10%;
}

 /*ie11*/
 _:-ms-fullscreen, :root .dp-reg-block{ 
    -ms-flex: 1 0 80px;
    display: flex;
    align-items: center;
 }


@media screen and (max-width: 930px){
    .dp-reg-block{
        width: 100%;        
    }
}

@media screen and (max-width: 930px){
    .dp-reg-block{
        width: 20%;
    }
}

@media screen and (max-width: 680px){
    .dp-reg-block{
        width: 100%;
    }
}

.dp-reg-button{
    font-family: Montserrat;
    display: block;
    width: 100%;
    background: #FF5800;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 11px;
    color: white;
    border: none;
    border-radius: 5px;
    margin-right: 0;
    margin-left: auto;
    padding: 10px 5px;
    outline: none;
    cursor: pointer;
    position: relative;
    top: 32px;
}

_:-ms-fullscreen, :root .dp-reg-block form,  _:-ms-fullscreen, :root .dp-reg-button{
    width: 100%;
}

@media screen and (max-width: 930px){
    .dp-reg-button{
        top: 0;
        width: 20%;
        left: auto;
        right: 0;
    }
}

@media screen and (max-width: 930px){
    .dp-reg-button{
        width: 100%;        
    }
}

@media screen and (max-width: 680px){
    .dp-reg-button{
        position: static;
        transform: none;
        margin: 0 auto;
        width: 40%;
    }
}

@media (max-width: 480px) {
    .dp-reg-button{
        width: 100%;
    }
}

.max890{
    display: none;
}

@media screen and (max-width: 890px){
    .max890{
        display: block;
    }
}

@media screen and (max-width: 680px){
    .max890{
        display: none;
    }

    .dp-cards-list{
        font-size: 9px;
    }

    .dp-course-name a, .dp-teacher-last-name{
        font-size: 12px;
    }

    .dp-price-discount{
        font-size: 14px;
    }
}

.dp-additional-left{
    margin-right: 40px;
}

.additional-course-header{
    margin-bottom: 4px;
}

.dp-additional-duration-block{
    margin-bottom: 20px;
}

.page .dp-additional-card ol{
    padding-left: 10px;
}

.page .dp-additional-card li{
    margin: 0 0 10px 0;
}

.dp-course-gift .dp-description-block{
    width: calc(100% - 10%);
    margin-right: 0;
}

.dp-course-gift-descr{
    margin-bottom: 20px;
}

.dp-course-gift-descr p, .page .dp-course-gift-descr p{
    margin: 0;
}

.dp-course-gift-price{
    color: red;
}

.dp-course-gift-price p{
    margin: 0;
}

.dp-course-gift-price-note{
    font-size: 10px;
}

.gift-icon{
    display: block;
    width: 60px;
    height: 60px;
    background-image: url('https://cdn.specialist.ru/Content/Image/Main/Tables/icon/gift-icon.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    margin-top: 20px;
}


@media (max-width: 930px ) {
    .dp-course-gift .dp-date-block{
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .gift-icon{
        margin-top: 0;
        width: 40px;
        height: 40px;
    }
}

@media (max-width:930px ) {
    .dp-course-gift .dp-date-block{
        width: 100%;
    }
}

@media (max-width: 680px) {
    .dp-course-gift .dp-date-block{
        display: flex;
        align-items: center;
    }

    .gift-icon{
        margin-top: 0;        
    }
}

.dp-diplom .credit-block{
    position: absolute; 
    left: 0;
    bottom: -5px; 
    white-space: nowrap;
    font-weight: 400;
    font-size: 13px;
    line-height: 1;
    color: #152C4E;
}

.dp-diplom .credit-block span{
    color: #257EBF;
    font-weight: 700;
    font-size: 15px;
    margin-right: 5px;
}

@media (max-width: 930px) {
    .dp-diplom .dp-price-block{
        padding-bottom: 60px;
    }
    .dp-diplom .credit-block{
        white-space: normal;
        bottom: 10px;
        line-height: 1.2;
    }
}


@media (max-width: 930px) {
    .dp-diplom .dp-price-block{
        padding-bottom: 40px;
    }
}

@media (max-width: 350px) {
    .dp-diplom .dp-price-block{
        padding-bottom: 60px;
    }
}

/*новое для модалки*/


.new-dp-teacher-block{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dp-teacher-block .teachers-modal-open-link{
    color: #004677;
    text-decoration: underline;
    text-decoration-style: dashed;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}

.dp-teacher-block .teachers-modal-open-link:hover{
    color: #2580C3;
}

.responses-link-wrapper{
    margin-bottom: 0;
    margin-top: auto;
}

.teachers-new-modal{
    position: fixed;
    display: none;
    z-index: 20;
}

.teachers-new-modal-shadow{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0.5);
}

.teachers-new-modal-body{
    background: white;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 60px 24px 40px 24px;
    max-width: 440px;
    width: 90%;
    z-index: 21;
    border-radius: 6px;
   
}

.teachers-new-modal-header, .page .teachers-new-modal-header{
    margin-top: 0;
    margin-bottom: 20px;
}

.teachers-new-modal-list, .page .teachers-new-modal-list{
    list-style-type: disc;
    padding-left: 16px;
    max-height: 90vh;
    overflow: auto;
}

.teachers-new-modal-list li, .page .teachers-new-modal-list li{
    color: black;
}

.loader-teacher-modal{
    position: relative;
    height: 30px;
}

.loader-teacher-modal-inner{
    position: absolute;
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid #004677;
    border-left: transparent;
    animation-name: loader-teacher-animate;
    animation-duration: 3s;
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%) rotate(0);
}

@keyframes loader-teacher-animate{
    from {
        transform: translateX(-50%) rotate(0);
    }
    to{
        transform: translateX(-50%) rotate(360deg);
    }
}

.teachers-new-modal-close{
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 40px;
    padding: 20px;
    border: none;
    background: transparent;
    line-height: 1;
    cursor: pointer;
    color: #506176;
}

.teacher-no-teacher, .page .teacher-no-teacher{
    font-size: 14px;
    font-weight: 700;
}

.new-dp-teacher-link-wrapper:after{
    display: block;
    content: "";
    width: 100%;
    max-width: 108px;
    height: 44px;
    background: url("img/all-trainers.png") left center no-repeat;
}


