/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

/*общие настройки контейнеров*/
.xdget-row.row {
    margin-right: 0;
    margin-left: 0;
}

.xdget-trainingList .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.xdget-trainingList .row {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

.right_sidebar {
    padding-left: 30px !important;
    padding-right: 0 !important;
}

.left_block {
    padding-left: 0 !important;
    padding-right: 10px !important;
}

.stream-table {
    margin-left: 0 !important;
}

.stream-table tr td {
    padding-bottom: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
}

.html-content p {
    margin: 0 !important;
}

.breadcrumbs a, .breadcrumb {
    font-family: var(--font-family-text-regular);
}

.breadcrumbs a:last-child,
.breadcrumb li:last-child a {
    color: var(--color-assent-dark) !important;
}

.page-header h1,
.page-header h1 > a {
    font-family: var(--font-family-header-thin);
    color: var(--color-accent) !important;
    font-size: 20px !important;
}

body.isTrainingsPage .page-header h1 {
    display: none;
}

@media (max-width: 1024px) {
    .xdget-row.row {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .left_block,
    .right_sidebar {
        width: 100%;
    }
}
/*конец общих настроек*/

/*шапка курса*/
.mbHeader__info {
    position: relative;
    border-radius: 16px;
    padding: 56px 40px 36px;
    margin-bottom: 40px;
    background: var(--color-header-bg-light);
    background: var(--color-header-bg-grd);
    width: 100%;
}

.xdget-common-container img {
    max-width: 100%;
    height: var(--headerImgHeight);
}

.mbHeader__lable {
    display: none;
}

.mbHeader__title {
    font-family: var(--font-family-header-bold);
    margin-bottom: 4px;
    color: var(--color-text-light);
}

.mbHeader__title .html-content {
    font-size: 50px;
    padding-right: calc(var(--headPhotoWidth) - 0px);
    line-height: 1.2;
}

.mbHeader__descr {
    font-family: var(--font-family-text-regular);
    color: var(--color-text-light);
}

.mbHeader__descr .html-content {
    font-size: 22px;
    padding-right: calc(var(--headPhotoWidth) - 0px);
}

.mbHeader__photo {
    position: absolute;
    bottom: 0;
    right: 40px;
    width: var(--headPhotoWidth);
}

@media (max-width: 1024px) {
    .mbHeader__title .html-content {
        font-size: 56px;
    }

    .mbHeader__descr .html-content {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .mbHeader__info {
    padding: 52px 30px 28px;
}
    
    .mbHeader__title .html-content {
        font-size: 44px;
    }

    .mbHeader__descr .html-content {
        font-size: 18px;
    }

    .mbHeader__photo {
        right: 20px;
    }
}

@media (max-width: 520px) {
    .mbHeader__info {
        padding: 24px 20px 0;
        text-align: center;
    }

    .mbHeader__title .html-content,
    .mbHeader__descr .html-content {
        padding-right: 0;
    }

    .mbHeader__photo {
        position: static;
        margin-top: 12px;
        width: 100%;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 425px) {
    .mbHeader__info {
        padding: 24px 16px 0;
        text-align: center;
    }

    .mbHeader__title .html-content {
        font-size: 40px;
    }

    .mbHeader__descr .html-content {
        font-size: 16px;
    }
}

@media (max-width: 390px) {
    .mbHeader__title .html-content {
        font-size: 32px;
    }

    .mbHeader__descr .html-content {
        font-size: 16px;
    }

    .xdget-common-container img {
        height: 100%;
    }
}
/*конец шапка курса*/

/*инфо-блок (кнопки над модулями)*/
.org_button_block .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

.org_button_block .row:before,
.org_button_block .row:after {
    display: none !important;
}

.org_button_block {
    margin-bottom: 40px;
}

.org_button_colon {
    width: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 20px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.org_button {
    background: none;
    border: 1px solid var(--color-button-bg-light);
    padding: 20px 24px;
    border-radius: 50px;
    width: 100%;
    font-family: var(--font-family-text-regular);
    font-size: 22px;
    font-weight: 600;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    color: var(--color-assent-dark);
}

@media (max-width: 1280px) {
    .org_button {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .org_button {
        font-size: 16px;
    }
}

@media (max-width: 520px) {
    .org_button_block .row {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }

    .org_button_colon {
        width: 100%;
    }
}
/*конец инфо-блок*/

/*ЗАГОЛОВКИ НАД СПИСКОМ ТРЕНИНГОВ*/
h2.middle_header {
    font-family: var(--font-family-header-bold);
    color: var(--color-assent-dark);
    margin-bottom: 20px;
    font-size: 32px;
}

/*правый сайдбар*/
.sidebar_button {
    position: relative;
    background: none;
    border: 1px solid var(--color-button-bg-light);
    padding: 24px;
    border-radius: 50px;
    font-family: var(--font-family-text-regular);
    color: var(--color-assent-dark);
    font-weight: 600;
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

.sidebar_button a {
    font-family: var(--font-family-text-regular);
    color: var(--color-assent-dark);
    font-weight: 600;
}

.sidebar_button a:hover {
    text-decoration: none;
    color: var(--color-assent-dark) !important;
}

.sidebar_button:nth-child(1),
.sidebar_button:nth-child(2),
.sidebar_button:nth-child(3) {
    background: var(--color-button-bg-light);
    color: var(--color-text-light);
}

.right_sidebar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 20px;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
}

/*Иконки правого сайдбара*/
.sidebar_button::before {
    content: "";
    width: 45px;
    height: 45px;
    position: absolute;
    left: 20px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    pointer-events: none;
    -webkit-filter: var(--IconFilterColor);
    filter: var(--IconFilterColor);
}

.sidebar_button:nth-child(1)::before,
.sidebar_button:nth-child(2)::before,
.sidebar_button:nth-child(3)::before {
    -webkit-filter: var(--IconFilterWhite);
    filter: var(--IconFilterWhite);
}

.sidebar_button.tools::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/69/h/86155baae7339d385f536968c16d073f.png');
}

.sidebar_button.cosmetics::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/132/h/3b2abc282d44ba5629d68440c11a88e1.png');
}

.sidebar_button.schedule::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/157/h/942edc19d61ae7f73df81208a46e3295.png');
}

.sidebar_button.courses::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/357/h/529a5a0f28fd6ec7ef8fd72e816b4b7f.png');
}

.sidebar_button.confa::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/341/h/c595ba8f24bda9eaf6b5f43eb23914a7.png');
}

.sidebar_button.champ::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/79/h/29755d43ff7467ff51f9514d20692c9f.png');
}

.sidebar_button.consult::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/233/h/6e5e56030bf169001d8dd12fb6a4cff4.png');
}

.sidebar_button.support::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/220/h/0a8075214bc7bf3ac73b615bde6f0a05.png');
}

.sidebar_button.chat::before {
    background-image: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/205/h/f23175d7778eb3ed68ecc57115fb831a.png');
}

@media (max-width: 1024px) {
    .sidebar_button {
        width: calc(100% / 2 - 10px);
    }

    .right_sidebar {
        padding-left: 0 !important;
    }
}

@media (max-width: 768px) {
    .sidebar_button:nth-child(3),
    .sidebar_button:nth-child(7) {
        width: 100%;
    }
}

@media (max-width: 570px) {
    .sidebar_button {
        width: 100%;
    }
}
/*конец правый сайдбар*/

/* Анимация кнопок */
.sidebar_button,
.org_button {
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.sidebar_button:hover, .sidebar_button:focus,
.org_button:hover, .org_button:focus {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
}

/*список модулей*/

/* 
   ИСПРАВЛЕНИЕ ДЛЯ SAFARI / MacBook:
   Вместо display:grid на <table> используем flex-обёртку.
   tbody становится flex-контейнером с переносом строк,
   каждая .training-row занимает ровно 1/3 ширины.
*/

.stream-table {
    display: block;
    width: 100%;
    border-collapse: unset;
    margin-left: 0 !important;
}

.stream-table tbody {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.stream-table td {
    height: auto;
    vertical-align: top;
}

/* Каждая строка — карточка шириной 1/3 */
.stream-table .training-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    width: calc(33.333% - 14px);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.stream-table .training-row td {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 0;
    height: auto;
}

/* Ссылка-карточка растягивается на всю высоту */
.stream-table .custom_module {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 100%;
    padding: 20px;
    background: var(--color-container-bg-light);
    border: 1px solid var(--color-button-bg-light);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.module_description b {
    display: none !important;
}

.module_lessons {
    display: block;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    background: var(--color-button-bg-light);
    border-radius: 70px;
    padding: 2px 12px;
    font-family: var(--font-family-text-semibold);
    font-style: normal;
    font-size: 12px;
    line-height: 27px;
    letter-spacing: -0.03em;
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.stream-table .stream-title {
    font-family: var(--font-family-header-bold);
    font-style: normal;
    font-weight: normal;
    font-size: 22px !important;
    line-height: 24px;
    color: var(--color-assent-dark);
    margin-bottom: 10px;
    letter-spacing: .9px;
}

/* На странице программы скрываем недоступный курс из списка доступных */
.available .training-row.noaccess-mode-show {
    display: none;
}

/* Недоступный курс */
.unavailable .stream-table tr.training-row {
    display: none;
}

.unavailable .stream-table tr.training-row.noaccess-mode-show {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
}

.stream-table tr.noaccess-mode-show .module_lessons {
    display: none;
}

.stream-table tr.noaccess-mode-show td {
    height: 100%;
    vertical-align: top;
}

.stream-table tr.noaccess-mode-show .stream-title {
    margin-top: 50px;
}

.course .stream-table tr.noaccess-mode-show .stream-title {
    margin-top: 0;
}

.stream-table tr.noaccess-mode-show .custom_module {
    -webkit-filter: grayscale(90%);
    filter: grayscale(90%);
}

.stream-table tr.noaccess-mode-show .custom_module::after {
    content: url('https://fs.getcourse.ru/fileservice/file/download/a/563477/sc/191/h/a8adc5333844ae6d19bdc8585e0a7222.png');
    position: absolute;
    top: 10px;
    right: 16px;
    width: auto;
    height: auto;
    pointer-events: none;
    -webkit-filter: invert(40%) sepia(14%) saturate(269%) hue-rotate(125deg) brightness(91%) contrast(83%);
    filter: invert(40%) sepia(14%) saturate(269%) hue-rotate(125deg) brightness(91%) contrast(83%);
}

.course .stream-table tr.noaccess-mode-show .custom_module::after {
    display: none;
}

.course .stream-table .custom-module_progress b {
    color: var(--color-dark-neutral);
}

.course .stream-table .training-row.noaccess-mode-show .custom-module_progress {
    display: none;
}

.course .stream-table .training-row.noaccess-mode-show td {
    cursor: not-allowed !important;
}

/* Описание занимает всё свободное пространство */
.stream-table .module_description {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-family: var(--font-family-text-regular);
    font-size: 16px;
    opacity: .95;
    line-height: 1.3;
}

.stream-table .module_info {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -webkit-align-items: flex-start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 20px;
    font-family: var(--font-family-text-semibold);
}

/* До 1280px — 2 колонки (MacBook 13") */
@media (max-width: 1280px) {
    .stream-table .training-row {
        width: calc(50% - 10px);
    }
}

/* До 1220px — 2 колонки */
@media (max-width: 1220px) {
    .stream-table .training-row {
        width: calc(50% - 10px);
    }
}

/* До 580px — 1 колонка */
@media (max-width: 580px) {
    .stream-table .training-row {
        width: 100%;
    }
}

.module_button {
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.01em;
    color: var(--color-assent-dark);
    margin-top: 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.module_button > svg > rect {
    fill: var(--color-accent);
}

.stream-table .custom_module .module_button svg {
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.stream-table .custom_module.active .module_button svg,
.stream-table .custom_module:hover .module_button svg {
    -webkit-transform: translateX(10px);
    -ms-transform: translateX(10px);
    transform: translateX(10px);
}

.course_button {
    background: var(--color-accent);
    border-radius: 50px;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: -0.01em;
    color: var(--color-text-light);
    margin-top: 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.custom_module:hover .course_button,
.custom_module.active .course_button {
    -webkit-transform: translateY(-10px);
    -ms-transform: translateY(-10px);
    transform: translateY(-10px);
}

/*конец список модулей*/