﻿.main-container, .sections-list {
    --font-weigth: 500;
    --font-weigth-light: 400;
    --line-height: 1.4;
    --color-text: #2e2e2e;
    --color-text-light: #979797;
}

.schedule-list, .page .schedule-list {
    padding-left:0;
}

.schedule-item, .page .schedule-item {
    padding: 20px 30px 20px 26px;
    border-radius: 20px;
    background: #f4f4f4;
    margin: 0 0 24px 0;
    display: grid;
    grid-template-columns: 150px auto 240px 250px;
    grid-template-areas: "a b c d";
    gap: 2px clamp(16px, 3.3vw, 100px);
    border-left: 4px solid #f4f4f4;
}

.dp-diplom, .page .dp-diplom {
    border-left-color: #346CE4;
    background: #EFF2F7;
}

.dp-diplom, .page .dp-complex {
    border-left-color: #DFDFDF;
    background: #EFF2F7;
}

.open-learning-item {
    background: #FFFBF5;
}

.schedule-item section {
    margin-bottom: 0;
}

.schedule-format {
    line-height: 1.4;
}

.schedule-date-block {
    grid-area: a;
}

.schedule-course-block {
    grid-area: b;
    display: flex;
    flex-direction: column;    
}

.schedule-complex-block {
    grid-area: c;
}

.schedule-price-block {
    grid-area: d;
}


.schedule-item .dt-text {
    color: #777;    
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3; /* 15.6px */  
    margin: 0 0 4px 0;
}

.date-dl{
    margin-bottom: 10px;
}

.schedule-item .date {
    font-size: 14px;
    font-weight: var(--font-weigth);
    color: #fff;
    padding: 5px 15px;
    border-radius: 5px;
    width: fit-content;
    white-space: nowrap;
}

.schedule-item .date-start {
    background: rgba(52, 108, 228, 1);
}

.date-flex{
    display: flex;
    gap: 1px;

}

.schedule-item .date-time {
    background: rgba(255, 255, 255, 1);
    color: var(--color-text);
    border: 1px solid #f4f4f4;
    padding: 5px 10px;
}

.dp-other-date a{
    color: #777;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3; /* 15.6px */
    margin-bottom: 4px;
    text-decoration: underline;
}

.schedule-item .course-link {
    font-size: 16px;
    font-weight: var(--font-weigth);
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 8px;
}

.schedule-item .course-type-text {
    position: relative;
    margin-bottom: 8px;
}

.course-type-text svg{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: -28px;
}

.dp-complex .course-type-text svg{
    left: -28px;
}

.dp-diplom .course-type-text svg{
    left: -28px;
}

.course-marks-block, .page .course-marks-block {
    padding-left: 0;
    display: flex;
    gap: 8px;
    list-style-type: none;
}

.course-marks-block li, .page .course-marks-block li{
    margin: 0;
    flex-shrink: 0;
}

.schedule-course-notes{
    margin-bottom: 0;
    margin-top: auto;
}

.schedule-course-notes .dt-text:last-child{
    margin-bottom: 0;
}

.schedule-course-notes .phone-link{
    white-space: nowrap;
}

.schedule-teacher-block {
    grid-area: c;
}

.schedule-item .teacher-block-header{
    margin-bottom: 8px;
}

.teacher-flex {
    display: flex;
    gap: 10px;
}

.dp-teacher-photo-wrapper{
    display: block;
    width: 76px;
    border-radius:5px;
    overflow: hidden;
}

.dp-teacher-photo-wrapper img{
    display: block;
}

.dp-teacher-about{
    display: flex;
    flex-direction: column;
}

.dp-teacher-name {
    color: #2E2E2E;
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    letter-spacing: -0.28px;
}

.dp-teacher-last-name{
    font-weight: 600;
}

.dp-diplom .teachers-modal-open-link, 
.dp-complex .teachers-modal-open-link {
    display: block;
    color: #777;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 4px;
    text-decoration: underline;
}

    .dp-diplom .teachers-modal-open-link img, 
    .dp-complex .teachers-modal-open-link {
        display: block;
        margin-bottom: 10px;
    }

    .dp-diplom .teachers-modal-open-link span,
    .dp-complex .teachers-modal-open-link span {
        display: block;
    }

    .schedule-price-block {
        padding-left: 24px;
        border-left: 1px solid #DBDBDB;
    }

.prices-block-flex {
    display: flex;
    gap: 24px;
    /*justify-content: space-between;*/
    align-items: flex-end;
    margin-bottom: 20px;
}

.price-flex {
    display: flex;
    gap: 2px;
    justify-content: space-between;
    margin-bottom: 2px;
    max-width: 200px;
    align-items: center;
    position: relative;
}

.dp-price{
    padding-top: 0px;
    /*flex: 1;*/
}

.dp-price-header {
    color: #2E2E2E;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3; /* 15.6px */
}

.full-price {
    font-size: 14px;
    font-weight: var(--font-weigth);
    text-decoration-line: line-through;
    color: #777;
    white-space: nowrap;
}

.price-discount {
    padding: 0px 4px;
    border-radius: 3px 5px;
    background: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: var(--font-weigth);
    color: rgba(255, 101, 5, 1);
    position: absolute;
    top: -4px;
    left: 100%;
    transform: translateX(-20%);
    z-index: 2;
}

.final-price {
    font-size: 18px;
    font-weight: var(--font-weigth);
    color: var(--color-text);
    margin-bottom: 0;
    white-space: nowrap;
}

.final-price-discount {
    color: rgba(255, 101, 5, 1);
}

.final-gift-price {
    font-size: 16px;
    white-space: normal;
}

.red-button {
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
    background: rgba(255, 101, 5, 1);
    border: none;
    font-size: 14px;
    font-weight: var(--font-weigth);
    color: #fff;
}

.price-button {
    background: rgba(52, 108, 228, 1);
    transition: 0.3s;
    border: 1px solid rgba(52, 108, 228, 1);
}

    .price-button:hover {
        color: rgba(52, 108, 228, 1);
        background: #fff;
        transition: 0.3s;
        border: 1px solid #F4F4F4;
    }

/*Для карточки Курс в подарок*/
.dp-course-gift .course-note-text:last-child {
    margin-bottom: 0;
}

.dp-course-gift .hours-dl {
    margin-bottom:0;
}

.dp-course-gift .gift-description-text p {
    margin: 0;
    color: #2E2E2E;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6; /* 19.2px */
}

.gift-picture-block{
    text-align: right;
    border-left: 0;
}

.gift-picture-wrapper {
    border-radius: 10px;
    background: #FFF;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 110px;
}


/*Конец Для карточки Курс в подарок*/
@media (max-width: 1022px) {
    .schedule-item, .page .schedule-item {
        padding: 30px 15px;
    }  
}

@media (max-width: 992px) {
    .schedule-item, .page .schedule-item {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: "a b c" ". . d";
    }

    .schedule-price-block{
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 792px) {
    .schedule-item, .page .schedule-item {
        gap: 16px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "a b" "c d";
    }
}

@media (max-width: 550px) {
    .schedule-item, .page .schedule-item {
        grid-template-columns: 1fr;
        grid-template-areas: "a" "b" "c" "d";
        gap: 24px;
    }

    .course-type-text{
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .course-type-text svg {
        position: static;
        transform: translateY(0);
    }

    .prices-block-flex{
        gap: 24px;
    }
}



.schedule-price-header-block {
    position: relative;
    display: flex;
    align-items: center;
    /*width: fit-content;*/
    margin-bottom: 5px;
}

.schedule-item  .schedule-price-header-block > .dt-text {
        margin-bottom: 0;
    }


.page .price-note-nds, .page .content-block .price-note-nds {
    color: #777;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

