/* Страница /catalog/ — карточки home-course-mp; базовые стили в index.css (подключается в base.html) */

/*
 * В index.css у html/body задано overflow-x: hidden — это блокирует position:sticky относительно вьюпорта.
 * На странице каталога отключаем горизонтальный overflow-scroll containment через clip (без лишнего скролла).
 */
html.catalog-page,
body.catalog-page {
    overflow-x: visible;
}

@supports (overflow-x: clip) {
    html.catalog-page,
    body.catalog-page {
        overflow-x: clip;
    }
}

/* --- Layout: сайдбар слева + сетка курсов --- */
.catalog-all-page {
    background-color: #f9f8f6;
}

.catalog-page-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 28px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 16px;
}

.catalog-sidebar {
    flex: 0 0 260px;
    width: 260px;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Ширина блока карточек: 6×240 + 5×gap 16 + паддинги ленты ~50px; фильтры забирают оставшуюся ширину */
@media (min-width: 901px) {
    .catalog-page-layout .catalog-sidebar {
        flex: 1 1 260px;
        width: auto;
        max-width: none;
        min-width: 336px;
    }

    .catalog-page-layout .catalog-main-column {
        flex: 0 1 1575px;
        max-width: 100%;
        min-width: 0;
    }

    .catalog-all-page .catalog-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: calc(env(safe-area-inset-top, 0px) + var(--site-header-height, 60px) + 10px);
        align-self: flex-start;
    }
}

/* Блок фильтров — те же фон, рамка и скругление, что у .home-course-mp__panel; overflow: visible для дропдаунов */
.catalog-all-page .catalog-sidebar__panel.home-course-mp__panel {
    margin: 0;
    width: 100%;
    max-width: none;
    overflow: visible;
    padding: 22px 20px 24px;
    box-sizing: border-box;
}

.catalog-sidebar__title {
    margin: 0 0 18px;
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 18px;
    font-weight: 700;
    text-transform: lowercase;
    letter-spacing: -0.02em;
    color: #000;
}

@media (max-width: 900px) {
    .catalog-sidebar__title {
        display: none;
    }
}

.catalog-main-column {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 0;
}

/* Открытый filter-dropdown не должен уходить под #catalog-courses-panel (колонка ниже/справа в потоке) */
.catalog-all-page .catalog-sidebar:has(.filter-section.is-open),
.catalog-all-page .catalog-sidebar:has(.filter-dropdown.active) {
    z-index: 50;
}

@media (max-width: 900px) {
    .catalog-all-page .catalog-sidebar:has(.filter-section.is-open),
    .catalog-all-page .catalog-sidebar:has(.filter-dropdown.active) {
        position: relative;
    }
}

/* Иначе backdrop-filter и слой загрузки могут не проявляться из‑за overflow:hidden у .home-course-mp__panel */
#catalog-courses-panel.home-course-mp__panel,
.goods-courses-page .goods-courses-panel.home-course-mp__panel {
    overflow: visible;
}

.catalog-load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 20px var(--panel-pad-x, 25px) 8px;
    box-sizing: border-box;
}

/* Иначе author stylesheet побивает UA «hidden»: кнопка не скрывается при catalog_loaded_count >= total */
.catalog-load-more-wrap[hidden] {
    display: none !important;
}

.catalog-load-more-btn {
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #000;
    cursor: pointer;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        opacity 0.15s ease;
}

.catalog-load-more-btn:hover:not(:disabled) {
    background: #fafafa;
    border-color: #ccc;
}

.catalog-load-more-btn.is-busy {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}

.catalog-load-more-btn:focus-visible {
    outline: 2px solid rgb(255, 176, 92);
    outline-offset: 2px;
}

.catalog-courses-area {
    position: relative;
    isolation: isolate;
}

/* Блокировка страницы при полноэкранной загрузке каталога — по смыслу как body.login-modal-open */
body.catalog-loading-open {
    overflow: hidden !important;
    touch-action: none;
    overscroll-behavior: none;
}

/*
 * Полноэкранная загрузка курсов (каталог): затемнение + blur, как у модалки входа (.login-modal-overlay).
 * z-index ниже входа (10050) и ниже просмотра расписания (.image-modal), чтобы те окна оставались сверху.
 */
.catalog-loading.catalog-loading--overlay.catalog-loading--fullscreen {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: 10045;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px))
        max(20px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px))
        max(20px, env(safe-area-inset-left, 0px));
    margin: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.catalog-loading.catalog-loading--overlay.catalog-loading--fullscreen.catalog-loading--inactive {
    display: none !important;
    pointer-events: none !important;
}

.catalog-loading.catalog-loading--overlay.catalog-loading--fullscreen:not(.catalog-loading--inactive) {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.catalog-loading.catalog-loading--fullscreen .catalog-loading__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    pointer-events: none;
    text-align: center;
    max-width: min(360px, 100%);
}

.catalog-loading__spinner {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    animation: catalog-spin 0.72s linear infinite;
    box-sizing: border-box;
    box-shadow: none;
    filter: none;
}

.catalog-loading.catalog-loading--fullscreen .catalog-loading__hint {
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 15px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-shadow: none;
}

@keyframes catalog-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-loading.catalog-loading--overlay.catalog-loading--fullscreen {
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .catalog-loading__spinner {
        animation: none;
        border-top-color: rgba(255, 255, 255, 0.95);
        opacity: 0.95;
    }
}

.catalog-sidebar__segments {
    display: flex;
    width: 100%;
    margin: 0 0 22px;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.catalog-seg {
    flex: 1;
    margin: 0;
    padding: 11px 10px;
    border: none;
    border-right: 1px solid #ddd;
    background: #fff;
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 14px;
    color: #000;
    text-transform: lowercase;
    cursor: pointer;
    transition: background 0.15s ease;
}

.catalog-seg:last-child {
    border-right: none;
}

.catalog-seg:hover {
    background: #f5f5f5;
}

.catalog-seg--active {
    background: #e8e8e8;
}

.catalog-seg:focus-visible {
    outline: 2px solid rgb(255, 176, 92);
    outline-offset: 2px;
    z-index: 1;
}

.catalog-subject-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    padding-top: 6px;
}

/* Чипы предметов под блоком фильтров при закрытии дропдауна (до конца fade). */
.catalog-sidebar__panel .catalog-filters-bar.catalog-filters-bar--sidebar {
    position: relative;
    z-index: 1;
}
.catalog-sidebar__panel .catalog-subject-pills {
    position: relative;
    z-index: 0;
}
.catalog-sidebar__panel .catalog-filters-bar.catalog-filters-bar--sidebar:has(.filter-section.is-open) {
    z-index: 6;
}

.catalog-subject-pill {
    margin: 0;
    padding: 9px 16px;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 13px;
    color: #000;
    text-transform: lowercase;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.catalog-subject-pill:hover:not(.catalog-subject-pill--active) {
    background: #fafafa;
}

.catalog-subject-pill--active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.catalog-subject-pill:focus-visible {
    outline: 2px solid rgb(255, 176, 92);
    outline-offset: 2px;
}

.catalog-filters-bar--sidebar {
    position: relative;
    z-index: 10;
    margin-bottom: 0;
    padding-bottom: 14px;
}

/* как у .footer-bottom::before — разделитель под блоком фильтров сайдбара */
.catalog-filters-bar.catalog-filters-bar--sidebar::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 1.5px;
    border-radius: 1px;
    background: #ececec;
}

.catalog-filters-bar--sidebar .catalog-filters-bar__inner--sidebar {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 12px;
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.catalog-filters-bar--sidebar .catalog-filter--sidebar-stack {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
}

.catalog-filters-bar__inner--sidebar {
    position: relative;
}

.catalog-filters-bar--sidebar .catalog-filter--lvl-offscreen {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.catalog-filters-bar--sidebar .catalog-filter--id-sub-chipboard .filter-toggle,
.catalog-filters-bar--sidebar .catalog-filter--id-sub-chipboard .filter-dropdown {
    display: none !important;
}

.catalog-filters-bar--sidebar .catalog-filter {
    max-width: none;
}

.catalog-filters-bar--sidebar .filter-section {
    position: relative;
    display: block;
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 0;
    z-index: 1;
}

.catalog-filters-bar--sidebar .filter-section.is-open {
    z-index: 30;
}

.catalog-filters-bar--sidebar .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 38px 12px 14px;
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
    outline: none;
    position: relative;
}

.catalog-filters-bar--sidebar .filter-toggle.catalog-filter__toggle::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: rotate(45deg);
    pointer-events: none;
    transition: transform 0.2s ease;
}

/* Открыт: шеврон вверх (был rotate(45deg) «вниз») */
.catalog-filters-bar--sidebar .filter-section.is-open > .catalog-filter__toggle::after {
    transform: rotate(225deg);
}

.catalog-filters-bar--sidebar .filter-toggle:hover {
    background: #fafafa;
}

.catalog-filters-bar--sidebar .filter-text {
    color: #000;
    text-align: left;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-filters-bar--sidebar .filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    transform: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    /* Без нижнего padding: иначе список «обрезается» по внутреннему краю, а не по нижней границе блока */
    padding: 15px 15px 0;
    margin-top: 6px;
    margin-left: 0;
    max-height: 280px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    /* только прозрачность: transition: all тянул left/transform при смене fixed → absolute («уезжает вправо») */
    transition:
        opacity 0.22s ease,
        visibility 0s linear 0.22s;
    z-index: 100;
}

.catalog-filters-bar--sidebar .filter-dropdown.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.22s ease;
}

.catalog-filters-bar--sidebar .filter-toggle:focus-visible {
    outline: 2px solid rgb(255, 176, 92);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .catalog-page-layout {
        flex-direction: column;
        gap: 20px;
        margin-top: 12px;
    }

    .catalog-sidebar {
        flex: none;
        width: 100%;
    }

    .catalog-subject-pills {
        margin-top: 16px;
    }
}

/* Панель фильтров над списком курсов */
.catalog-filters-bar {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.catalog-filters-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 12px 16px;
    margin-top: 20px;
    padding: 18px 20px;
    background: #fff;
    border-radius: 20px;
    box-sizing: border-box;
    border: 1px solid #ededed;
}

.catalog-filter {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 140px;
    max-width: 220px;
}

/* Как .filter-toggle / .filter-dropdown в goods_courses (не для сайдбара каталога — там только .catalog-filters-bar--sidebar) */
.main .catalog-filters-bar:not(.catalog-filters-bar--sidebar) {
    z-index: 10;
    position: relative;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-section {
    position: relative;
    display: block;
    margin: 0;
    max-width: none;
    width: 100%;
    padding: 0;
    z-index: 1;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-section.is-open {
    z-index: 30;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    background: #ededed;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 12px 20px;
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
    outline: none;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-toggle:hover {
    background: #f5f5f5;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-text {
    color: #686868;
    text-align: center;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Как .filter-dropdown в goods_courses — не для сайдбара каталога (остаётся только полноформатное меню сайдбара / моб. fixed) */
.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    min-width: 100%;
    box-sizing: border-box;
    transform: none;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-top: 5px;
    margin-left: 0;
    max-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-dropdown.active {
    opacity: 1;
    visibility: visible;
}

.catalog-filters-bar .catalog-filter-dropdown__search {
    flex-shrink: 0;
    padding: 0 0 10px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.catalog-filters-bar .catalog-filter-search {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 12px;
    line-height: 1.35;
    color: #212121;
    background: #f3f3f3;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    outline: none;
}

/* Крест очистки (Chrome / Safari, type=search) — серый, как плейсхолдер */
.catalog-filters-bar .catalog-filter-search::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    cursor: pointer;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999999' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E")
        center / 14px 14px no-repeat;
}

.catalog-filters-bar .catalog-filter-search::-webkit-search-decoration,
.catalog-filters-bar .catalog-filter-search::-webkit-search-results-button,
.catalog-filters-bar .catalog-filter-search::-webkit-search-results-decoration {
    display: none;
}

.catalog-filters-bar .catalog-filter-search::placeholder {
    color: #999;
    font-size: 12px;
}

.catalog-filters-bar .catalog-filter-search:focus {
    border-color: rgb(255, 176, 92);
    background: #fff;
}

.catalog-filters-bar .filter-options-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 0 0;
    margin: 0;
    -webkit-overflow-scrolling: touch;
}

/* Сайдбар каталога: нижний «воздух» перенесён сюда — обрезка по низу совпадает с border-box .filter-dropdown */
.catalog-filters-bar--sidebar .filter-options-wrap {
    padding: 8px 0 15px;
}

.catalog-filters-bar .filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.catalog-filters-bar .filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 5px;
    transition: background-color 0.2s ease;
    border-radius: 4px;
}

.catalog-filters-bar .filter-option:hover {
    background-color: #f5f5f5;
}

.catalog-filters-bar .filter-option.active {
    background-color: #e0e0e0;
    font-weight: bold;
}

.catalog-filters-bar .filter-label {
    font-family: TTFirsNeue-Regular, var(--font-family);
    font-size: 12px;
    color: #000;
    cursor: pointer;
    user-select: none;
}

.catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-toggle:focus-visible {
    outline: 2px solid rgb(255, 176, 92);
    outline-offset: 2px;
}

.catalog-all-page__empty--inline {
    padding: 12px 16px;
    margin: 0 0 12px;
    text-align: center;
}

@media (max-width: 768px) {
    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .catalog-filters-bar__inner {
        margin-top: 15px;
        padding: 14px 16px;
        border-radius: 14px;
        gap: 10px;
    }

    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .catalog-filter {
        flex: 1 1 calc(50% - 8px);
        max-width: none;
    }

    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-toggle {
        font-size: 14px;
        padding: 10px 16px;
    }

    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-dropdown {
        min-width: 100%;
        max-height: 250px;
    }

    .catalog-filters-bar .filter-label {
        font-size: 13px;
    }

    .catalog-filters-bar .catalog-filter-search,
    .catalog-filters-bar .catalog-filter-search::placeholder {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .catalog-filters-bar__inner {
        margin-top: 12px;
    }
}

@media (max-width: 576px) {
    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-toggle {
        font-size: 13px;
        padding: 8px 12px;
        gap: 8px;
    }

    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-dropdown {
        max-height: 200px;
    }

    .catalog-filters-bar .filter-option {
        padding: 4px 0;
    }

    .catalog-filters-bar .filter-label {
        font-size: 12px;
    }

    .catalog-filters-bar .catalog-filter-search,
    .catalog-filters-bar .catalog-filter-search::placeholder {
        font-size: 12px;
    }
}

@media (max-width: 440px) {
    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-toggle {
        font-size: 12px;
        padding: 6px 10px;
    }

    .catalog-filters-bar:not(.catalog-filters-bar--sidebar) .filter-dropdown {
        max-height: 180px;
    }
}

/* Сетка каталога: столбик карточек; ПК — карточка на всю колонку; мобилка — фикс. ширина (см. блоки ниже) */
.home-course-mp--catalog .home-course-mp__scroll {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    touch-action: auto;
    cursor: default;
    user-select: auto;
    -webkit-user-select: auto;
}

/* Десктоп ≥769: ширина карточки каталога на колонку; market-layout — только в .catalog-all-page */
@media (min-width: 769px) {
    .catalog-all-page .home-course-mp--catalog .home-course-mp__scroll--catalog-goods .socet_content.course-item {
        scroll-snap-align: unset;
        box-sizing: border-box;
        margin: 0;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/*
 * ПК ≥769: goods/courses — row-карточка; market-мобилка только ≤768.
 */
@media (min-width: 769px) {
    .main__sch .course-item--catalog-market .block_1 {
        flex-direction: row !important;
        align-items: stretch !important;
        align-self: auto;
        padding: 7px;
        overflow: visible;
        gap: 30px;
    }

    .main__sch .course-item--catalog-market .block_1 .block {
        padding-inline: 0;
        width: auto;
    }

    .main__sch .course-item--catalog-market .block_1 .cont11 {
        padding-inline: 0;
        width: auto;
        max-width: none;
        align-self: flex-end;
        margin-top: auto;
    }

    .main__sch .course-item--catalog-market .block_1 .image-container::before {
        content: none !important;
        display: none !important;
        padding-bottom: 0 !important;
    }

    .main__sch .course-item--catalog-market .block_1 .image-container {
        width: auto !important;
        height: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: auto !important;
        display: inline-block;
    }

    .main__sch .course-item--catalog-market .block_1 .block_1_img {
        position: static !important;
        inset: auto !important;
        width: 280px !important;
        height: 280px !important;
        max-width: 280px !important;
        border-radius: 15px;
    }

    .main__sch .course-item--catalog-market .block_1 .block__bottom {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
        gap: 9px;
    }

    .main__sch .course-item--catalog-market .block_1 .block__bottom ul:nth-child(4) {
        display: block;
    }

    .main__sch .course-item--catalog-market .block_1 .buy_button--catalog-cards .catalog-schedule-cell {
        display: none !important;
    }

    .main__sch .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row {
        display: block !important;
        flex-direction: column !important;
        gap: 0;
    }

    .main__sch .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .course-btn.details-btn {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        display: block !important;
    }

    .goods-courses-page .main__sch .home-course-mp__scroll--catalog-goods {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 25px;
        width: 100%;
    }

    .goods-courses-page .main__sch .home-course-mp__scroll--catalog-goods > .course-item--catalog-market,
    .goods-courses-page .main__sch .home-course-mp__scroll--catalog-goods > .socet_content.course-item {
        width: 100%;
        max-width: 1400px;
        margin: 0;
        flex: none;
    }
}

/*
 * Market-карточки ≤768: мобильная вёрстка (квадратное превью, column, футер с расписанием).
 */
@media (max-width: 768px) {
    .catalog-all-page,
    .goods-courses-page,
    .home-section--recent,
    .main__sch {
        --catalog-thumb-gutter: 10px;
        --catalog-image-gutter: 6px;
    }

    .buy_button ul {
        margin: 0 0 5px 0;
    }

    .course-item--catalog-market .block_1 {
        flex-direction: column !important;
        align-items: stretch !important;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        min-width: 0 !important;
        gap: 0;
        box-sizing: border-box;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
        overflow: hidden;
    }

    .course-item--catalog-market .block_1 .block {
        padding-inline: var(--catalog-thumb-gutter);
        padding-block: 0;
        box-sizing: border-box;
        width: 100%;
        min-height: 0;
    }

    .course-item--catalog-market .block_1 .cont11 {
        padding-inline: var(--catalog-thumb-gutter);
        padding-block: 0;
        box-sizing: border-box;
        width: 100%;
        max-width: none;
    }

    .course-item--catalog-market .block_1 .image-container {
        display: block !important;
        width: calc(100% - 2 * var(--catalog-image-gutter)) !important;
        max-width: none !important;
        height: auto !important;
        padding: 0 !important;
        aspect-ratio: unset !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: var(--catalog-image-gutter) !important;
        position: relative;
        overflow: hidden;
        align-self: center !important;
        flex: 0 0 auto;
        box-sizing: border-box;
        line-height: 0;
        border-radius: 8px;
    }

    .course-item--catalog-market .block_1 .image-container::before {
        content: '';
        display: block;
        width: 100%;
        padding-bottom: 100%;
    }

    .course-item--catalog-market .block_1 .block_1_img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center;
        display: block;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        border-radius: inherit;
    }
}

/*
 * Мобилка каталога (≤768): ширина карточки и обеих .home-course-mp__panel — по брейкпоинтам
 * (не calc(100vw − …) от края экрана). Панель = карточка + 2× --panel-pad-x (как отступ ленты в index.css).
 */
@media (max-width: 768px) {
    .catalog-all-page,
    .goods-courses-page,
    .home-section--recent,
    .main__sch {
        --catalog-card-w: 288px;
        --catalog-thumb-gutter: 10px;
        --catalog-image-gutter: 6px;
    }

    .catalog-all-page #catalog-courses-panel.home-course-mp__panel,
    .goods-courses-page .goods-courses-panel.home-course-mp__panel {
        width: calc(var(--catalog-card-w) + 2 * var(--panel-pad-x, 18px));
        max-width: calc(var(--catalog-card-w) + 2 * var(--panel-pad-x, 18px));
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }

    /* Сайдбар фильтров: от краёв вьюпорта по 10px (с учётом safe-area) */
    .catalog-all-page .catalog-sidebar {
        padding-left: max(10px, env(safe-area-inset-left, 0px));
        padding-right: max(10px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    /* Панель фильтров на всю ширину внутри паддинга сайдбара (без прежнего сужения как у карточки) */
    .catalog-all-page .catalog-sidebar__panel.home-course-mp__panel {
        width: 100%;
        max-width: none;
        margin-top: 0;
        margin-bottom: 0;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    /*
     * Сайдбар: три фильтра (flow / sch / month) в одну строку. Четвёртый блок предметов
     * (chipboard + скрытый дропдаун) убираем из потока — выбор темы только чипами.
     */
    .catalog-all-page .catalog-filters-bar--sidebar .catalog-filters-bar__inner--sidebar {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 6px;
        position: relative;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .catalog-filter.catalog-filter--id-sub-chipboard.catalog-filter--sidebar-stack {
        position: absolute;
        left: -9999px;
        top: 0;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .catalog-filter--sidebar-stack {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .filter-toggle {
        padding: 10px 22px 10px 10px;
        font-size: 11px;
        border-radius: 8px;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .filter-toggle.catalog-filter__toggle::after {
        right: 7px;
        width: 5px;
        height: 5px;
        margin-top: -4px;
        border-right: 1px solid #555;
        border-bottom: 1px solid #555;
    }

    /* Текст — flex, стрелка ::after справа, без перекрытия */
    .catalog-all-page .catalog-filters-bar--sidebar .filter-text {
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
    }

    /*
     * Пункты списка: перебиваем общий @media (max-width: 576px) .filter-option { padding: 4px 0 },
     * чтобы на мобилке у .active был нормальный фон и отступы у подписи.
     */
    .catalog-all-page .catalog-filters-bar--sidebar .filter-option {
        padding: 5px 5px;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .filter-option.active {
        background-color: #e0e0e0;
        font-weight: bold;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .filter-option.active .filter-label {
        padding: 4px 8px;
        box-sizing: border-box;
    }

    /*
     * Открытый список: fixed + размеры из JS (syncActiveMobileCatalogDropdownLayout).
     * Закрытие без анимации — иначе при смене геометрии/CSS виден «съезд». Открытие — короткий fade только opacity.
     */
    .catalog-all-page .catalog-filters-bar--sidebar .filter-dropdown {
        transition: none;
    }

    .catalog-all-page .catalog-filters-bar--sidebar .filter-dropdown.active {
        position: fixed;
        z-index: 500;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        transform: none;
        max-height: none;
        min-height: 250px;
        min-width: 0;
        right: auto;
        box-sizing: border-box;
        visibility: visible;
        transition: opacity 0.2s ease;
    }

    /* Меньший зазор между блоком фильтров и колонкой с курсами (не правила самой панели курсов) */
    .catalog-all-page .catalog-page-layout {
        gap: 10px;
    }

    .catalog-all-page .home-course-mp--catalog .home-course-mp__scroll--catalog-goods {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .catalog-all-page .home-course-mp--catalog .home-course-mp__scroll--catalog-goods > .socet_content.course-item,
    .main__sch .home-course-mp__scroll--catalog-goods > .course-item--catalog-market {
        flex: 0 0 auto;
        width: var(--catalog-card-w);
        max-width: var(--catalog-card-w);
        min-width: 0;
        margin-left: auto;
        margin-right: auto;
        scroll-snap-align: unset;
        box-sizing: border-box;
    }

    .main__sch .home-course-mp__scroll--catalog-goods {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
    }

    .goods-courses-page .home-course-mp--catalog .home-course-mp__scroll--catalog-goods {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
        touch-action: pan-y pinch-zoom;
        overscroll-behavior: auto;
    }

    /* Моб. каталог: столбец «Расписание» в block__bottom скрыт — открытие через иконку у «Подробнее» */
    .course-item--catalog-market .block_1 .block__bottom {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
        justify-items: center;
        gap: 20px;
    }

    .course-item--catalog-market .block_1 .block__bottom ul {
        text-align: center;
        width: 100%;
    }

    .course-item--catalog-market .block_1 .block__bottom .up,
    .course-item--catalog-market .block_1 .block__bottom .down {
        text-align: center;
    }

    .course-item--catalog-market .block_1 .block__bottom ul:nth-child(4) {
        display: none;
    }

    /*
     * Футер карточки (моб. каталог): flex, не grid.
     * Grid + max-content + height:100%/aspect-ratio на iOS даёт нулевую 2‑ю колонку до reflow (клик по расписанию).
     * Слот под квадрат — flex:0 0 var(--catalog-schedule-side); ширина задаётся сразу (fallback + JS после вставки DOM).
     */
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row {
        display: flex !important;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .course-btn.details-btn,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row > .course-btn.details-btn,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row > .course-btn.details-btn {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        align-self: stretch;
        height: auto !important;
        box-sizing: border-box;
        margin-top: 0;
        padding-block: 6px;
        padding-inline: 12px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: center;
        display: block !important;
        border-radius: 6px;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row > .catalog-schedule-cell,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row > .catalog-schedule-cell {
        flex: 0 0 var(--catalog-schedule-side, var(--home-course-mp-action-h, 30px)) !important;
        width: var(--catalog-schedule-side, var(--home-course-mp-action-h, 30px)) !important;
        min-width: var(--catalog-schedule-side, var(--home-course-mp-action-h, 30px)) !important;
        max-width: var(--catalog-schedule-side, var(--home-course-mp-action-h, 30px)) !important;
        display: flex !important;
        align-items: stretch;
        justify-content: center;
        box-sizing: border-box;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta.reviews-cta--mobile,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta.reviews-cta--mobile {
        display: flex !important;
    }

    /*
     * Кнопка расписания в каталоге (моб.): прозрачный фон, обводка = толщине stroke иконки.
     * --has: иконка чёрная; hover — чёрный фон, белая иконка.
     * --empty: светло-серые обводка и иконка (100% непрозрачность), без hover.
     */
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta {
        --catalog-schedule-icon-size: 18px;
        --catalog-schedule-stroke-w: 1.5px;
        --catalog-schedule-empty-color: #d0d0d0;
        flex: 1 1 auto !important;
        align-self: stretch;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
        margin: 0;
        overflow: hidden;
        -webkit-tap-highlight-color: transparent;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: unset !important;
        border-radius: 6px;
        background: transparent !important;
        border: var(--catalog-schedule-stroke-w) solid #000 !important;
        box-shadow: none !important;
        outline: none;
        color: #000;
        cursor: pointer;
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        -webkit-transform: none !important;
        transform: none !important;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta .catalog-schedule-cta__icon,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta .home-course-mp__schedule-icon,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta .catalog-schedule-cta__icon,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta .home-course-mp__schedule-icon {
        display: block;
        flex-shrink: 0;
        width: var(--catalog-schedule-icon-size);
        height: var(--catalog-schedule-icon-size);
        pointer-events: none;
        fill: none;
        stroke: currentColor;
        stroke-width: var(--catalog-schedule-stroke-w);
        color: inherit;
    }

    /* Есть расписание */
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has {
        background: transparent !important;
        color: #000;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:hover,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:active,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:focus-visible,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:hover,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:active,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:focus-visible {
        background: #000 !important;
        border-color: #000 !important;
        color: #fff !important;
        outline: none;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:focus-visible,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--has:focus-visible {
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.25);
    }

    /* Нет расписания */
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--empty,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta:disabled,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--empty,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta:disabled {
        background: transparent !important;
        border: var(--catalog-schedule-stroke-w) solid var(--catalog-schedule-empty-color) !important;
        color: var(--catalog-schedule-empty-color);
        opacity: 1;
        cursor: not-allowed;
        pointer-events: none;
    }

    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--empty:hover,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta:disabled:hover,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta--empty:hover,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards .course-card-footer-row .catalog-schedule-cell button.catalog-schedule-cta:disabled:hover {
        background: transparent !important;
        border-color: var(--catalog-schedule-empty-color) !important;
        color: var(--catalog-schedule-empty-color) !important;
    }

    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row button,
    .course-item--catalog-market .block_1 .buy_button.buy_button--catalog-cards > .course-card-footer-row button {
        min-width: 0 !important;
    }

    /* На мобилке расписание видно; на ПК скрывается в блоке min-width:769px ниже. */
    .course-item--catalog-market .block_1 .buy_button--catalog-cards:not(.catalog-card-footer--desktop) .catalog-schedule-cell,
    .course-item--catalog-market .block_1 .buy_button--catalog-cards:not(.catalog-card-footer--desktop) .catalog-schedule-cell {
        visibility: visible;
        pointer-events: auto;
    }

    /* Типографика market-карточек на мобилке (единый вид каталог / goods/courses) */
    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .main_text {
        font-size: 13px;
        padding-top: 6px;
        margin-bottom: 8px;
        text-align: left;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .meduim p {
        font-size: 9px;
        padding: 3px 9px;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .meduim {
        justify-content: flex-start;
        align-content: flex-start;
        margin-bottom: 10px;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .cont11 {
        margin-top: 10px;
        padding: 12px 10px 8px;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .buy_button .cost_text,
    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .buy_button .cost {
        font-size: 12px;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .buy_button .course-btn.details-btn,
    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .buy_button button {
        font-size: 12px;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .buy_button .course-btn.details-btn {
        padding-block: 6px;
        padding-inline: 12px;
    }

    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .block__bottom .up,
    .home-course-mp__scroll.home-course-mp__scroll--catalog-goods .course-item--catalog-market .block_1 .block__bottom .down {
        font-size: 10px;
    }
}

@media (max-width: 390px) {
    .catalog-all-page,
    .goods-courses-page,
    .home-section--recent,
    .main__sch {
        --catalog-card-w: 278px;
    }
}

@media (max-width: 360px) {
    .catalog-all-page,
    .goods-courses-page,
    .home-section--recent,
    .main__sch {
        --catalog-card-w: 268px;
    }
}

@media (max-width: 320px) {
    .catalog-all-page,
    .goods-courses-page,
    .home-section--recent,
    .main__sch {
        --catalog-card-w: 258px;
    }
}

.home-course-mp--catalog .home-course-mp__scroll:hover {
    cursor: default;
}

/* Размеры/типографика карточек каталога — только index.css (--stack и --catalog-goods в одном наборе правил). */

.catalog-all-page__title {
    margin-bottom: 0.25em;
}

.catalog-all-page__empty {
    text-align: center;
    padding: 2rem 1em;
    color: #666;
    font-family: var(--font-family);
}

/*
 * ПК: широкая панель; по одному курсу на строку (полная ширина колонки с карточками).
 */
@media (min-width: 769px) {
    .catalog-all-page {
        box-sizing: border-box;
        /* ПК: чуть уже боковые поля всей страницы каталога (заголовок + блок .home-course-mp--catalog в одном ритме) */
        padding-left: max(16px, env(safe-area-inset-left, 0px));
        padding-right: max(16px, env(safe-area-inset-right, 0px));
        padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
    }

    /* ПК каталога: уже к краям (меньший «внешний» отступ слева/справа) + чуть больший max-width, чем на главной 1200 */
    .catalog-all-page .home-course-mp.home-course-mp--catalog {
        max-width: min(1320px, 100%);
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
        margin-bottom: 0;
        padding: 0;
        box-sizing: border-box;
    }

    .catalog-all-page .home-course-mp--catalog .home-course-mp__panel {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* ПК: в футере карточки только «Подробнее» на всю ширину. Календарь/расписание — только при max-width 768px (ещё см. JS syncCatalogCardScheduleButtons). */
    .catalog-all-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .course-card-footer-row,
    .home-section--recent .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .course-card-footer-row,
    .goods-courses-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .course-card-footer-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .catalog-all-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .catalog-schedule-cell,
    .home-section--recent .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .catalog-schedule-cell,
    .goods-courses-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .catalog-schedule-cell {
        display: none !important;
    }

    .catalog-all-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .catalog-schedule-cta,
    .home-section--recent .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .catalog-schedule-cta,
    .goods-courses-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .catalog-schedule-cta {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        position: absolute !important;
        width: 0 !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        clip-path: inset(50%) !important;
    }

    .catalog-all-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .course-card-footer-row .course-btn.details-btn,
    .home-section--recent .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .course-card-footer-row .course-btn.details-btn,
    .goods-courses-page .home-course-mp__scroll--catalog-goods .block_1 .buy_button--catalog-cards .course-card-footer-row .course-btn.details-btn {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
        align-self: stretch;
        box-sizing: border-box;
    }

    .catalog-all-page .home-course-mp--catalog .home-course-mp__scroll--catalog-goods {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .home-section--recent .home-course-mp__scroll--catalog-goods {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        overflow-x: visible;
        overflow-y: visible;
        scroll-snap-type: none;
    }

    .home-section--recent .home-course-mp__scroll--catalog-goods > .socet_content.course-item,
    .home-section--recent .home-course-mp__scroll--catalog-goods > .course-item--catalog-market {
        scroll-snap-align: unset;
        box-sizing: border-box;
        margin: 0;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
