﻿.schedule-block{
    padding-top: 32px;
}

.schedule-item {
    padding: 20px;
    border-radius: 20px;
    background: #f4f4f4;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: 200px 1fr 200px 140px 184px;
    grid-template-areas: "a b c d e";
    gap: 10px 24px;
    --font-weigth: 500;
    --font-weigth-light: 400;
    --line-height: 1.4;
    --color-text: #2e2e2e;
    --color-text-light: #979797;
    justify-content: space-between;
    font-family: Montserrat, sans-serif;
}

/**/

 

.open-learning-item {
    background: #FFFBF5;
}

.schedule-format, .page .schedule-format{
    line-height: 1.4;
    margin:0;
    font-size: 12px;
}

.schedule-date-block {
    grid-area: a;
    display: flex;
    flex-direction: column;
}

.schedule-course-block {
    grid-area: b;
    display:flex;
    flex-direction: column;
}

.schedule-complex-block {
    grid-area: d;
}

.schedule-price-block {
    grid-area: e;
    display:flex;
    flex-direction:column;
}

.schedule-date-flex {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.schedule-item .dt-text, .page .schedule-item .dt-text, .dt-text .new-show-select-link {
    font-size: 12px;
    font-weight: var(--font-weigth);
    line-height: 1.2;
    color: var(--color-text-light);
    margin-top: 0;
    margin-bottom: 5px;
}

.new-show-select-link:after {
    display: inline-block;
    margin-top: -4px;
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='6' viewBox='0 0 11 6' fill='none'%3E%3Cpath d='M1.5 1.5L4.9 4.05C5.25556 4.31667 5.74444 4.31667 6.1 4.05L9.5 1.5' stroke='%23777777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    font-weight: 600;
    font-size: 11px;
    margin-left: 5px;
}

.schedule-date-flex .date {
    font-size: 12px;
    font-weight: var(--font-weigth);
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    width: 90px;
}

    .free-learning .schedule-date-flex .date{
        width: auto;
    }

    .schedule-date-flex .date-start {
        background: rgba(52, 108, 228, 1);
    }

.schedule-date-flex .date-end {
    background: rgba(95, 95, 95, 1);
}

.schedule-date-flex .date-time, .schedule-date-flex .date-week {
    background: rgba(255, 255, 255, 1);
    color: var(--color-text);
    border: 1px solid #f4f4f4;
}

.formats-notes-block{
    margin-bottom: 0;
    margin-top: auto;
}

.schedule-item .course-link {
    font-size: 16px;
    font-weight: var(--font-weigth);
    line-height: 1.2;
    color: var(--color-text);
}

.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;
    flex-shrink:0;
}

    .dp-teacher-photo-wrapper img {
        display: block;
        width:76px;
    }

.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;
}


.schedule-item .complex-top {
    margin-bottom: 12px;
}

.schedule-item .complex-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.free-card-place {
    color: #2E2E2E;
    font-size: 14px;  
    font-weight: 600;
 
}

.schedule-item .metro-list {
    padding-left: 0;
}

    .schedule-item .metro-list li {
        font-size: 12px;
        font-weight: var(--font-weigth);
        color: var(--color-text);
        margin: 0 0 18px 0;
        position: relative;
        padding-left: 35px;        
    }

        .schedule-item .metro-list li:before {
            display: block;
            content: "";
            width: 26px;
            height: 26px;
            background: url("//cdn.specialist.ru/Content/File/newlk/lk-a/specialist_layouts/diploma_programms/img/metro-icon.png") center center no-repeat, #fff;
            background-size: 25px 25px, auto;
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 4px;
        }


        .open-learning-item .schedule-date-flex .date-time,
        .open-learning-item .schedule-date-flex .date-week {
            border: 1px solid #F4F4F4;
        }

.prices-tabs-list, .page .prices-tabs-list {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    padding-left: 0;
}

.page .price-tab{
    margin:0;
}

.price-tab a {
    display: block;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(190, 190, 190, 1);
    text-align: center;
    font-size: 12px;
    font-weight: var(--font-weigth);
    color: var(--color-text);
}

    .price-tab a.active {
        border: 1px solid rgba(52, 108, 228, 1)
    }

.prices-tab-content{
    flex:1;
}

.price-tab-content {
    display: none;
}

    .price-tab-content.active {
        display: flex;
        flex-direction:column;
        height:100%;
        justify-content: flex-end;
    }

    .price-tab-content form {
        margin-bottom: 0;
    }

.price-tab-content-flex{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.schedule-item .dp-price-header {
    color: #2E2E2E;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    margin:0;
}


.price-flex {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 2px;
    max-width: 200px;
    align-items: flex-end;
}

.prices-flex-block{
    display: flex;
    gap: 8px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -10px;
}

.schedule-item .full-price {
    font-size: 12px;
    font-weight: var(--font-weigth);
    text-decoration-line: line-through;
    color: var(--color-text);
    white-space: nowrap;
}

.schedule-item .price-discount {
    padding: 5px;
    border-radius: 3px 5px;
    background: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: var(--font-weigth);
    color: rgba(255, 101, 5, 1);
}



.schedule-item .final-price {
    font-size: 20px;
    font-weight: var(--font-weigth);
    color: var(--color-text);
    margin-bottom: 4px;
}



.schedule-item .final-price-discount {
    color: rgba(255, 101, 5, 1);
}

.schedule-item .type-dt-text, .page .schedule-item .type-dt-text {
    margin-bottom: 10px;
}

.red-button {
    display: block;
    cursor: pointer;
    padding: 10px 40px;
    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);
    width:100%;    
}

a.price-button{
    margin-bottom: 0;
    margin-top: auto;
}
    .price-button:hover {
        color: rgba(52, 108, 228, 1);
        background: #fff;
        transition: 0.3s;
        border: 1px solid #F4F4F4;
    }

.card-notes-block{
    margin-bottom: 0;
    margin-top: auto;
}

.card-note, .page .card-note {
    font-size: 12px;
    margin: 10px 0;
    line-height: var(--line-height);
}

.card-note:last-child, .page .card-note:last-child {
    margin-bottom:0;
    color: var(--color-text-light);

}

@media (max-width: 1140px) {
    .schedule-item {
        padding: 30px 10px;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-areas: "a b c" ". d e";
    }
}

@media (max-width: 792px) {
    .schedule-item {
        gap: 16px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "a b" "c d" ". e";
    }
}

@media (max-width: 480px) {
    .schedule-item {
        grid-template-columns: 1fr;
        grid-template-areas: "a" "b" "c" "d" "e";
        gap: 16px;
    }
}


/*для страницы курсов*/
.schedule-item.no-course {
    grid-template-columns: 200px 1fr 1fr 230px;
    grid-template-areas: "a c d e";
    min-height: 216px;
}

@media (max-width: 1140px) {
    .schedule-item.no-course {
        padding: 30px 10px;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "a c" "d e";
    }
}

@media (max-width: 792px) {
    .schedule-item.no-course {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .schedule-item.no-course {
        grid-template-columns: 1fr;
        grid-template-areas: "a" "c" "d" "e";
        gap: 16px;
    }
}

.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;
}