/* page-schools */
/* =========================
   General
   ========================= */

.back-to__block {
    max-width: calc(var(--container-width) + (var(--container-left-right-paddings) * 2));
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-left-right-paddings);
    padding-top: 48px;
}

.back-to__btn {
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--orange);
}

.back-to__btn svg path {
    transition: stroke .4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .back-to__btn:hover {
        color: var(--orange-hover);
    }

    .back-to__btn:hover svg path {
        stroke: var(--orange-hover);
    }
}

.catalog {
    position: relative;
    padding-top: 24px;
    padding-bottom: 48px;
    display: flex;
    gap: 32px;
}

.catalog-list-section {
    padding-bottom: 48px;
}

.catalog-list-section > .catalog {
    padding-bottom: 20px;
}

.school-single-page .catalog {
    padding-top: 16px;
}

.catalog__left,
.catalog__right {
    width: 100%;
}

.catalog__left {
    gap: 32px;
}

.catalog__left__header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.catalog__left__header img {
    width: 120px;
    height: 120px;
}

.catalog__left__header h1 {
    max-width: 700px;
    text-align: left;
}

.catalog__left__header h1 span {
    color: var(--orange);
}

.universal-card-wrapper.catalog__left__content {
    border-radius: 28px;
    gap: 24px;
}

.catalog__left__content .content__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.catalog__left__content .search {
    max-width: 440px;
    width: 100%;
    position: relative;
    font-family: var(--font-onest);
}

.catalog__left__content .search__field {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #EBEDEF;
    border-radius: 999px;
    background: var(--bg);
    height: 43px;
    padding: 0 44px 0 44px;
    transition: border-color 0.4s ease;
    min-width: 220px;
}

.catalog__left__content .search__field:focus-within {
    border-color: var(--orange);
}

.catalog__left__content .search__icon {
    position: absolute;
    left: 16px;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.catalog__left__content .search__icon svg {
    width: 20px;
    height: 20px;
}

.catalog__left__content .search__input {
    padding: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    background: transparent;
}

.catalog__left__content .search__input::placeholder {
    color: #A7A8A8;
    font-family: var(--font-onest);
}

.catalog__left__content .search__clear {
    position: absolute;
    right: 16px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    user-select: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.catalog__left__content .search__clear svg {
    width: 20px;
    height: 20px;
}

.dropdown-result__option .search__opt-title {
    font-size: 16px;
}

.dropdown-result__option .search__opt-sub {
    font-size: 14px;
}

.catalog__left__content .content__header .selects {
    width: 100%;
    display: flex;
    gap: 8px;
}

.catalog__left__content .content__header .selects .dropdown-result__container {
    min-width: 250px;
}

.catalog__left__content .schools-count {
    min-height: 43px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border: 1px solid #EBEDEF;
    border-radius: 100px;
    background: var(--bg);
    color: #A7A8A8;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

@media screen and (min-width: 1201px) {
    .catalog__left__content .search {
        flex: 0 1 368px;
        max-width: 368px;
        min-width: 260px;
    }

    .catalog__left__content .content__header .selects,
    .catalog__left__content .content__header .selects .select {
        min-width: 0;
    }

    .catalog__left__content .content__header .selects .select {
        flex: 1 1 0;
    }

    .catalog__left__content .content__header .selects .select__header__text {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .catalog__left__content .content__header .selects .select__header svg,
    .catalog__left__content .schools-count {
        flex-shrink: 0;
    }
}

.content__schools__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.content__schools__part#content__schools__part-2 .collapsible__content-inner {
    padding-bottom: 0;
}

.content__school__wrapper {
    display: inline-block;
}

.universal-card-wrapper.content__school {
    height: 100%;
    padding: 16px 7px 13px 10px;
    gap: 4px;
    color: var(--text, #191919);
    transition: border-color .4s ease;
}

.universal-card-wrapper.content__school.recommend {
    border-color: var(--light-pink-hover);
}

@media (hover: hover) and (pointer: fine) {

    .universal-card-wrapper.content__school:hover,
    .universal-card-wrapper.content__school.recommend:hover {
        border-color: var(--orange);
    }
}

.content__school__recommend__banner {
    position: absolute;
    top: -11px;
    right: 24px;
    padding: 4px 8px;
    border-radius: 16px;
    background: #F96F48;
    font-size: 12px;
    font-weight: 500;
    color: var(--bg);
}

.content__school__reviews {
    align-items: center;
    gap: 4px;
}

.content__school__reviews__count {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #A7A8A8;
}

.content__school__no-reviews {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
}

.content__school__location {
    color: #919292;
}

.catalog__left__content .content__google__banner {
    aspect-ratio: 824 / 280;
}

.catalog__left__content .content__more.primary-btn {
    --btn-height: 48px;
    --btn-gap: 8px;
    background: var(--bg);
    color: var(--orange);
    border: 1px solid #EBEDEF;
}

.catalog__left__content .content__more.primary-btn.is-loading {
    pointer-events: none;
}

.catalog__left__content .content__more svg {
    width: 24px;
    height: 24px;
    transition: transform .4s ease;
}

.catalog__left__content .content__more.is-active svg {
    transform: rotateZ(180deg);
}

.catalog__left__content .content__more.primary-btn.is-loading svg {
    display: none;
}

.catalog__left__content .content__more.primary-btn .btn-loader-wrapper {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: none;
    justify-content: center;
    align-items: center;
}

.catalog__left__content .content__more.primary-btn .btn-loader {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border: 2px solid var(--orange);
    border-right-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: btn-loader-spin 0.65s linear infinite;
}

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

.catalog__left__content .content__more.primary-btn.is-loading .btn-loader-wrapper {
    display: inline-flex;
}

.catalog__right {
    position: relative;
    flex-shrink: 0;
    max-width: 342px;
}

.catalog__right__content {
    position: sticky;
    top: calc(98px + 24px);
    gap: 24px;
    z-index: 1;
}

.catalog__right__levels__card.card-text .card-text__img {
    width: 70px;
    height: 70px;
    top: -12px;
    right: -20px;
}

.catalog__right__levels__card .card__header {
    gap: 8px;
}

.catalog__right__levels__card .card__levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.catalog__right__levels__card .card__level {
    padding: 16px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid #BDBEBE;
    border-radius: 14px;
    color: var(--black);
}

.catalog__right__levels__card .card__level .point {
    display: inline-flex;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.catalog__nav__additional-space {
    height: 0;
}

.catalog .catalog__right__content__btn {
    --btn-gap: 8px;
    border: 1px solid #EBEDEF;
    background: var(--bg);
    color: var(--orange);
}

.catalog__right__content__btn svg {
    width: 24px;
    height: 24px;
    transition: transform .4s;
}

.catalog__right__content__btn.active svg {
    transform: rotate(180deg);
}

.universal-card-wrapper.catalog__nav {
    padding: 20px;
}

.catalog__nav__list {
    gap: 4px;
}

.catalog__nav__item {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 0;
    background: var(--bg);
    color: #A7A8A8;
    align-items: center;
    gap: 8px;
    transition: background .4s ease, color .4s ease;
    will-change: background, color;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.catalog__nav__item.active {
    background: var(--orange);
    color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
    .catalog__nav__item:hover {
        background: var(--orange);
        color: var(--bg);
    }
}

.catalog__nav__item svg {
    width: 22px;
    height: 22px;
}

.catalog__nav__item svg path,
.catalog__nav__item svg circle {
    transition: stroke .4s ease;
}

.catalog__nav__item.active svg path,
.catalog__nav__item.active svg circle {
    stroke: var(--bg);
}

@media (hover: hover) and (pointer: fine) {

    .catalog__nav__item:hover svg path,
    .catalog__nav__item:hover svg circle {
        stroke: var(--bg);
    }
}

.catalog__right__content .content__google__banner {
    aspect-ratio: 342 / 280;
}

@media screen and (max-width: 1200px) {
    .catalog__left__content .content__header {
        flex-direction: column-reverse;
    }

    .catalog__left__content .search {
        max-width: none;
    }

    .content__schools__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog__right {
        max-width: 280px;
    }

    .catalog__right__content {
        top: calc(61px + 24px);
    }
}

@media screen and (max-width: 768px) {
    .catalog-list-section {
        padding-bottom: 32px;
    }

    .back-to__block {
        padding-top: 16px;
    }

    .catalog {
        padding-top: 16px;
        padding-bottom: 0;
        flex-direction: column-reverse;
        gap: 24px;
    }

    .school-single-page .catalog {
        padding-bottom: 32px;
    }

    .catalog__left__header {
        flex-direction: column;
        gap: 16px;
    }

    .catalog__left__header img {
        display: none;
    }

    .universal-card-wrapper.catalog__nav {
        padding: 10px 16px;
    }

    .catalog__left__header h1 {
        --title-fs: 28px;
        text-align: center;
    }

    .universal-card-wrapper.catalog__left__content {
        padding: 32px 16px;
        border-radius: 16px;
        gap: 20px;
    }

    .catalog__left__content .content__header {
        gap: 12px;
    }

    .catalog__left__content .content__header .selects {
        flex-direction: column;
        gap: 12px;
    }

    .catalog__left__content .schools-count {
        width: 100%;
    }

    .content__schools__container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .catalog__left__content .content__google__banner {
        aspect-ratio: 1;
    }

    .catalog__left__content .google-ads-banner__img {
        border-radius: 16px;
    }

    .catalog__right {
        max-width: none;
    }

    .card-text.catalog__right__levels__card {
        padding: 20px;
    }
}

/* =========================
   Single
   ========================= */

.universal-card-wrapper.catalog__school__single {
    border-radius: 28px;
    gap: 24px;
}

.catalog__school__single .single__header {
    gap: 8px;
}

.catalog__school__single .single__header__top {
    justify-content: space-between;
    align-items: center;
}

.catalog__school__single .single__header__review {
    align-items: center;
    gap: 8px;
}

.catalog__school__single .single__header__review .star {
    width: 16px;
    height: 16px;
}

.catalog__school__single .single__header__review .count {
    font-family: var(--font-sf-pro-display);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
}

.catalog__school__single .single__header__recommend__banner {
    padding: 4px 8px;
    border-radius: 16px;
    background: #F96F48;
    display: inline-flex;
    font-size: 12px;
    font-weight: 500;
    color: var(--bg);
}

.catalog__school__single h1 {
    text-align: left;
}

.catalog__school__single h1 span {
    color: #C6C6C6;
}

.catalog__school__single .content__google__banner {
    aspect-ratio: 824 / 280;
}

.catalog__school__single .single__content {
    gap: 16px;
}

.catalog__school__single .single__content__card {
    border-width: 1px;
    border-bottom-width: 1px;
    border-radius: 28px;
    gap: 16px;
    overflow: hidden;
}

.catalog__school__single .single__content__card .flower-img {
    position: absolute;
    top: -47px;
    right: -23px;
    width: 94px;
    height: 94px;
}

.catalog__school__single .single__content__card .single__content__card__info {
    gap: 4px;
}

.catalog__school__single .single__content__card .single__content__card__info__title {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
}

.catalog__school__single .single__content__card .single__content__card__info__text,
.catalog__school__single .single__content__card .single__content__card__info__text__link {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text, #191919);
}

.catalog__school__single .single__content__card .single__content__card__info__text__link.website {
    appearance: none;
    -webkit-appearance: none;
    display: inline;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--orange);
    cursor: pointer;
    font-family: var(--font-onest);
    text-align: left;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media screen and (max-width: 768px) {
    .catalog__right__content .content__google__banner {
        display: none;
    }

    .universal-card-wrapper.catalog__school__single {
        gap: 16px;
    }

    .catalog__school__single .single__header {
        gap: 12px;
    }

    .catalog__school__single .content__google__banner {
        aspect-ratio: 1;
    }

    .catalog__school__single .single__content__card {
        padding: 16px;
        border-radius: 16px;
    }

    .catalog__school__single .single__content__card .flower-img {
        right: -47px;
    }

    .catalog__school__single .single__content__card .single__content__card__info__title {
        font-family: var(--font-sf-pro-display);
        color: var(--gray);
    }
}

/* page-online-courses */
/* =========================
   Catalog layout
   ========================= */

.catalog {
    position: relative;
    padding-top: 24px;
    padding-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.catalog__left,
.catalog__right {
    width: 100%;
}

.catalog__left {
    gap: 32px;
}

.catalog__left__header {
    display: flex;
    align-items: center;
    gap: 24px;
}

.catalog__left__header img {
    width: 120px;
    height: 120px;
}

.catalog__left__header h1 {
    text-align: left;
    flex-grow: 1;
    width: 100%;
    max-width: 100%;
}

/* =========================
   Right sidebar
   ========================= */

.catalog__right {
    position: relative;
    flex-shrink: 0;
    max-width: 342px;
}

.catalog__right__content {
    position: sticky;
    top: calc(98px + 24px);
    gap: 24px;
    z-index: 1;
}

.catalog__nav__additional-space {
    height: 0;
}

.universal-card-wrapper.catalog__nav {
    padding: 20px;
}

.catalog__nav__list {
    gap: 4px;
}

.catalog__nav__item {
    width: 100%;
    height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 0;
    background: var(--bg);
    color: #A7A8A8;
    align-items: center;
    gap: 8px;
    transition: background .4s ease, color .4s ease;
    will-change: background, color;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.catalog__nav__item.active {
    background: var(--orange);
    color: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
    .catalog__nav__item:hover {
        background: var(--orange);
        color: var(--bg);
    }
}

.catalog__nav__item svg {
    width: 22px;
    height: 22px;
}

.catalog__nav__item svg path,
.catalog__nav__item svg circle {
    transition: stroke .4s ease;
}

.catalog__nav__item.active svg path,
.catalog__nav__item.active svg circle {
    stroke: var(--bg);
}

@media (hover: hover) and (pointer: fine) {

    .catalog__nav__item:hover svg path,
    .catalog__nav__item:hover svg circle {
        stroke: var(--bg);
    }
}

/* =========================
   Courses filters
   ========================= */

.courses-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

/* Desktop filter bar */
.courses-filters__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.courses-filters__selects {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.courses-filters__mobile-bar {
    display: contents;
}

.courses-filters__mobile-actions {
    display: none;
}

/* cf-select: filter/sort dropdown button */
.cf-select {
    position: relative;
    font-family: var(--font-onest);
}

.cf-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
    min-width: 168px;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #EBEDEF;
    border-radius: 100px;
    background: var(--bg);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .4s ease, background .4s ease;
}

.cf-select__btn.is-open {
    border-color: #191919;
}

.cf-select__btn.is-open .cf-select__btn-text {
    color: var(--text, #191919);
}

.cf-select__btn.is-open .cf-select__arrow {
    color: var(--text, #191919);
}

.cf-select__btn-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
    font-family: var(--font-onest);
}

.cf-select__btn.has-value .cf-select__btn-text {
    color: var(--text, #191919);
}

.cf-select__arrow {
    width: 20px;
    height: 20px;
    color: #A7A8A8;
    transition: transform .4s ease;
    flex-shrink: 0;
}

.cf-select__btn.is-open .cf-select__arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.cf-select__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease, visibility .4s ease;
}

[data-filter="format"] {
    .cf-select__dropdown {
        width: 204px;
    }
}

[data-filter="level"],
[data-filter="provider"] {
    .cf-select__dropdown {
        width: 278px;
    }
}

[data-sort] .cf-select__btn {
    width: fit-content;
    min-width: fit-content;
    border-radius: 14px;
}

[data-sort] .cf-select__dropdown {
    width: 272px;
}

.cf-select__dropdown--right {
    left: auto;
    right: 0;
}

.cf-select__dropdown.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.cf-select__dropdown-container {
    background: var(--bg);
    border-radius: 12px;
    box-shadow: 0px 2.99px 10.47px 0px #14142B1A;
    border-top: 1px solid #F2F2F2;
    overflow: hidden;
}

.cf-select__dropdown-content {
    display: flex;
    flex-direction: column;
}

/* Checkbox option (multi-select) */
.cf-checkbox {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    border: 0;
    border-bottom: 1px solid #0000000D;
    background: transparent;
    font-family: var(--font-onest);
}

.cf-checkbox:hover {
    .cf-checkbox__label {
        color: #191919;
    }

    .cf-checkbox__box {
        border: 1px solid #505151;
    }
}

.cf-checkbox.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.cf-checkbox__box {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid #A7A8A8;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, border-color .3s ease;
}

.cf-checkbox.is-checked {
    .cf-checkbox__label {
        color: #191919;
    }
}

.cf-checkbox.is-checked .cf-checkbox__box {
    background: var(--orange);
    border-color: var(--orange);
}

.cf-checkbox .cf-checkbox__box svg {
    display: none;
    color: white;
}

.cf-checkbox.is-checked .cf-checkbox__box svg {
    display: block;
}

.cf-checkbox__label {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #7C7C7D;
    transition: color .3s ease;
}

.cf-checkbox__sublabel {
    color: #A7A8A8;
    font-weight: 400;
}

.cf-checkbox.is-active .cf-checkbox__label {
    color: #191919;
}

.cf-checkbox.is-active .cf-checkbox__box {
    background: var(--orange);
    border-color: var(--orange);
}

.cf-checkbox.is-active .cf-checkbox__box svg {
    display: block;
}

.courses-filters__apply-btn.primary-btn {
    --btn-height: 42px;
    --btn-padding: 10px 24px;
    --btn-font-size: 16px;
    --btn-border-radius: 100px;

    display: none;
    flex-shrink: 0;
    font-weight: 500;
}

.courses-filters__apply-btn.primary-btn.is-visible {
    display: inline-flex;
}

/* Sort option (single-select) */
.cf-sort-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 16px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text, #191919);
    white-space: nowrap;
    text-align: left;
    transition: background .4s ease;
}

.cf-sort-option:hover {
    background: #F9FAFB;
}

.cf-sort-option.is-active {
    background: #F9FAFB;
}

.cf-sort-option__check {
    width: 20px;
    height: 20px;
    color: var(--text, #191919);
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, visibility .3s ease;
}

.cf-sort-option.is-active .cf-sort-option__check {
    visibility: visible;
    opacity: 1;
}

/* =========================
   Filter tags (chips)
   ========================= */

.courses-filters__tags {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    min-height: 30px;
}

.courses-filters__tags-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cf-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 12px 6px 14px;
    background: #F3F3F3;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: var(--text, #191919);
    text-decoration: none;
    white-space: nowrap;
    transition: background .3s ease;
}

.cf-tag:hover {
    background: #E9E9E9;
}

.cf-tag__close {
    width: 14px;
    height: 14px;
    color: var(--text, #191919);
}

.courses-filters__results {
    margin-left: auto;
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
    white-space: nowrap;
    flex-shrink: 0;
}

.courses-filters__results strong {
    font-weight: 400;
}

/* =========================
   Mobile filter bar
   ========================= */

.cf-mobile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #EBEDEF;
    border-radius: 100px;
    background: var(--bg);
    cursor: pointer;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text, #191919);
    white-space: nowrap;
}

.cf-mobile-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* =========================
   Sort modal (mobile)
   ========================= */

.sort-modal__dialog {
    max-width: 480px;
}

.sort-modal__dialog .modal-title {
    margin-bottom: 20px;
}

.sort-modal__options {
    gap: 12px;
}

.sort-modal__option {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
}

.sort-modal__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sort-modal__option-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #EBEDEF;
    border-radius: 100px;
    background: var(--bg);
    color: var(--text);
    transition: border-color .3s ease;
}

.sort-modal__radio:checked+.sort-modal__option-inner {
    border-color: var(--orange);
}

.sort-modal__radio-circle {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #BDBEBE;
    border-radius: 50%;
    position: relative;
    transition: border-color .3s ease;
}

.sort-modal__radio:checked+.sort-modal__option-inner .sort-modal__radio-circle {
    border-color: var(--orange);
}

.sort-modal__radio:checked+.sort-modal__option-inner .sort-modal__radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sort-modal__option.is-active .sort-modal__option-inner {
    border-color: var(--orange);
}

.sort-modal__option.is-active .sort-modal__radio-circle {
    border-color: var(--orange);
}

.sort-modal__option.is-active .sort-modal__radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* =========================
   Filters modal (mobile)
   ========================= */

.filters-modal__dialog {
    max-width: 480px;
}

.filters-modal__dialog .modal-title {
    margin-bottom: 24px;
}

.filters-modal__section {
    margin-bottom: 24px;
}

.filters-modal__section-title {
    margin-bottom: 12px;
}

/* Pill buttons */
.filters-modal__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filters-modal__pill {
    height: 40px;
    padding: 0 27px;
    border: none;
    background-color: #F3F3F3;
    border-radius: 100px;
    cursor: pointer;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 40px;
    color: var(--text, #191919);
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.filters-modal__pill.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
}

.filters-modal__pill.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Provider list */
.filters-modal__providers {
    gap: 0;
}

.filters-modal__provider {
    width: 100%;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #F2F2F2;
    cursor: pointer;
    user-select: none;
    font-family: var(--font-onest);
}

.filters-modal__provider.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.filters-modal__provider.is-hidden-provider {
    display: none;
}

.filters-modal__provider.is-hidden-provider.is-shown {
    display: flex;
}

.filters-modal__provider-label {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text, #191919);
    font-family: var(--font-onest);
}

.filters-modal__provider.is-active .filters-modal__provider-label,
.filters-modal__provider.is-checked .filters-modal__provider-label {
    font-weight: 500;
}

.filters-modal__provider .cf-checkbox__box {
    width: 24px;
    height: 24px;
    border-radius: 8px;
}

.filters-modal__provider.is-active .cf-checkbox__box,
.filters-modal__provider.is-checked .cf-checkbox__box {
    background: var(--orange);
    border-color: var(--orange);
}

.filters-modal__provider .cf-checkbox__box svg {
    display: none;
    color: white;
}

.filters-modal__provider.is-active .cf-checkbox__box svg,
.filters-modal__provider.is-checked .cf-checkbox__box svg {
    display: block;
}

.filters-modal__show-more {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-onest);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--orange);
}

.filters-modal__show-more svg {
    width: 16px;
    height: 16px;
    transition: transform .4s ease;
}

.filters-modal__show-more.is-expanded svg {
    transform: rotate(180deg);
}

/* Footer */
.filters-modal__footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filters-modal__clear-btn.primary-btn {
    --btn-height: 48px;
    flex: 1;
    background: var(--bg);
    border: 1px solid #EBEDEF;
    color: var(--text, #191919);
}

.filters-modal__apply-btn.primary-btn {
    --btn-height: 48px;
    flex: 1;
}

/* =========================
   Course cards grid
   ========================= */

.course-cards-grid__wrapper {
    padding-bottom: 64px;
    position: relative;
    opacity: 1;
    transition: opacity .4s ease;
}

.course-cards-grid__wrapper.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.course-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Card wrapper */
.course-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-radius: 16px;
    border: 3px solid var(--border);
    border-bottom-width: 6px;
    transition: transform .3s ease, box-shadow .3s ease;
    color: var(--text);
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .course-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    }
}

/* Cover image area */
.course-card__cover {
    position: relative;
    width: calc(100% + 5px);
    margin-top: -3px;
    margin-left: -2.5px;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

.course-card__image {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Level badge */
.course-card__level {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13.5px 24px;
    height: 50px;
    background: #FFFFFF;
    border: 1px solid #BDBEBE;
    border-radius: 14px;
    font-family: var(--font-onest);
    font-size: 18px;
    font-weight: 500;
    line-height: 23px;
    color: #191919;
    box-shadow: 0px 4px 4px 0px #00000040;
}

.course-card__level-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--level-color, #F2C94C);
    flex-shrink: 0;
}

/* Card body */
.course-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px 0 28px;
    flex-grow: 1;
}

/* Author row */
.course-card__author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 24px;
    margin-bottom: 20px;
}

.course-card__author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.course-card__avatar {
    width: 34.36px;
    height: 34.36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.course-card__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #DDDDDD;
    color: #F85628;
    font-family: var(--font-onest);
    font-size: 16.8px;
    font-weight: 700;
    line-height: 1;
}

.course-card__author-name {
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #323232;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating */
.course-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.course-card__stars {
    align-items: center;
    gap: 1px;
}

.course-card__stars .star {
    width: 14px;
    height: 14px;
}

.course-card__rating-value {
    font-family: var(--font-onest);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--text);
    margin-left: 2px;
}

/* Title */
.course-card__title-link {
    display: inline-block;
}

.course-card__title {
    font-family: var(--font-onest);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
    display: block;
    text-decoration: underline solid var(--text) 1.5px;
    padding: 0 24px;
    margin-bottom: 20px;
}

/* Meta tags */
.course-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    padding: 0 24px;
    margin-bottom: 32px;
}

.course-card__meta-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 100px;
    background-color: var(--level-color);
}

.course-card__meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-onest);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    color: var(--level-color-text);
    white-space: nowrap;
}

.course-card__meta-tag svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--level-color-text);
}

.course-card__meta-sep {
    font-size: 13px;
    color: var(--level-color-text);
    line-height: 1;
}

/* Footer: price + CTA */
.course-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #D9D9D9;
    margin-top: auto;
    padding: 20px 24px 0;
}

.course-card__price-block {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.course-card__price {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

.course-card__old-price {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
    text-decoration: line-through;
}

.course-card__price-free {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text);
}

.course-card__price-purchased {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    color: #999999;
}

.course-card__cta.primary-btn {
    --btn-height: 40px;
    --btn-padding: 10px 35px;
    --btn-font-size: 16px;
    --btn-border-radius: 100px;
    font-weight: 500;
    flex-shrink: 0;

    svg {
        display: none;
    }
}

.course-pagination-block {
    margin-top: 64px;
}

.course-more-wrapper {
    margin-bottom: 16px;
    display: none;
    flex-direction: column;
    align-items: center;
}

.course-more-btn.primary-btn {
    --btn-height: 48px;
    --btn-gap: 8px;
    width: 100%;
    max-width: 330px;
    background: var(--bg);
    color: var(--orange);
    border: 1px solid #EBEDEF;
}

.course-more-btn svg {
    width: 24px;
    height: 24px;
}

/* =========================
   Responsive
   ========================= */

@media screen and (max-width: 1024px) {
    .catalog__right {
        max-width: 280px;
    }

    .catalog__right__content {
        top: calc(61px + 24px);
    }

    .course-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .catalog {
        padding-top: 16px;
        padding-bottom: 0;
        margin-bottom: 32px;
        flex-direction: column-reverse;
        gap: 24px;
    }

    .catalog__left__header {
        flex-direction: column;
        gap: 16px;
    }

    .catalog__left__header img {
        display: none;
    }

    .universal-card-wrapper.catalog__nav {
        padding: 10px 16px;
    }

    .catalog__left__header h1 {
        --title-fs: 28px;
        text-align: center;
    }

    .catalog__right {
        max-width: none;
    }

    /* Hide desktop filters, show mobile */
    .courses-filters {
        margin-bottom: 24px;
    }

    .courses-filters__bar {
        display: none;
    }

    .courses-filters__mobile-bar {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .courses-filters__mobile-actions {
        display: flex;
        justify-content: flex-start;
        gap: 12px;

        button {
            width: 158px;

            img {
                width: 24px;
                color: #F85628;
            }
        }
    }

    .courses-filters__mobile-bar.is-sticky {
        position: fixed;
        top: var(--courses-mobile-bar-top, 0px);
        left: 0;
        right: 0;
        z-index: 5;
        background: var(--bg);
        padding: 8px 16px 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .course-card__level {
        height: 40px;
        padding: 12px 18px;
    }

    .courses-filters__results {
        display: none;
    }

    .courses-filters__tags {
        min-height: auto;
    }

    .course-cards-grid__wrapper {
        padding-bottom: 32px;
    }

    .course-cards-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .course-card__body {
        padding: 24px 0 26px;
    }

    .course-card__author-row {
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .course-card__title {
        padding: 0 16px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .course-card__meta {
        padding: 0 16px;
        margin-bottom: 24px;
    }

    .course-card__footer {
        padding: 16px 16px 0;
    }

    .course-card__price {
        font-size: 24px;
    }

    .course-card__old-price {
        font-size: 20px;
    }

    .course-card__price-free {
        font-size: 20px;
    }

    .course-card__price-purchased {
        font-size: 16px;
    }

    .course-card__cta.primary-btn {
        --btn-padding: 8px;

        span {
            display: none;
        }

        svg {
            display: block;
        }
    }

    .course-pagination-block {
        margin-top: 16px;
    }

    .course-more-wrapper {
        display: flex;
    }
}


/* =========================
   Single course page
   ========================= */

.back-to__block {
    max-width: calc(var(--container-width) + (var(--container-left-right-paddings) * 2));
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-left-right-paddings);
    padding-top: 48px;
}

.back-to__btn {
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: var(--orange);
}

.back-to__btn svg path {
    transition: stroke .4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .back-to__btn:hover {
        color: var(--orange-hover);
    }

    .back-to__btn:hover svg path {
        stroke: var(--orange-hover);
    }
}

.sc-catalog {
    position: relative;
    padding-top: 48px;
    padding-bottom: 48px;
    display: flex;
    gap: 32px;
}

[data-page="single"] .sc-catalog {
    padding-top: 32px;
}

.sc-catalog__left,
.sc-catalog__right {
    width: 100%;
}

.sc-catalog__left {
    min-width: 0;

    .sc-catalog__hero {
        display: block;
    }
}

.sc-catalog__right {
    position: relative;
    flex-shrink: 0;
    max-width: 342px;

    .sc-catalog__hero {
        display: none;
    }
}

.sc-catalog__right__content {
    --sc-sidebar-sticky-top: calc(98px + 24px);
    --sc-sidebar-bottom-offset: 24px;
    position: sticky;
    top: var(--sc-sidebar-sticky-top);
    gap: 32px;
    z-index: 1;
}

.sc-catalog__hero {
    margin-bottom: 64px;
    border-radius: 24px;
    background-color: var(--level-color);
    padding: 38px 36px 86px;
    height: fit-content;
    position: relative;
}

.sc-catalog__hero h1,
.sc-catalog__hero p {
  position: relative;
  z-index: 1;
}

.sc-catalog__hero__chip {
    background-color: white;
    width: fit-content;
    border-radius: 999px;
    padding: 4px 6px;
    color: #F85628;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.sc-catalog__hero__title {
    color: #000000;
    font-size: 44px;
    font-weight: 600;
    margin-bottom: 20px;
}

.sc-catalog__hero__description {
    color: #242526;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

.sc-catalog__hero__flower {
    position: absolute;
    width: 111px;
    right: 33.61px;
    bottom: 4.63px;
}

.sc-catalog__about {
    margin-bottom: 64px;
}

.sc-catalog__about__title {
    font-weight: 700;
    color: #2A1C14;
    font-size: 32px;
    margin-bottom: 32px;
    text-align: center;
}

.sc-catalog__about__description {
    font-size: 18px;
    font-weight: 400;
    color: #242526;
    margin-bottom: 20px;
}

@media screen and (max-width: 1140px) {
    .sc-catalog__right__content {
        --sc-sidebar-sticky-top: calc(61px + 24px);
        --sc-sidebar-bottom-offset: 90px;
    }
}

@media screen and (max-width: 1024px) {
    .sc-catalog__right {
        max-width: 280px;
    }

    .sc-catalog__right__content {
        --sc-sidebar-sticky-top: calc(61px + 24px);
    }
}

@media screen and (max-width: 768px) {
    .back-to__block {
        padding-top: 16px;
    }

    .sc-catalog {
        padding-top: 32px;
        padding-bottom: 32px;
        flex-direction: column-reverse;
    }

    [data-page="single"] .sc-catalog {
        padding-bottom: 32px;
    }

    .sc-catalog__left {
        .sc-catalog__hero {
            display: none;
        }
    }

    .sc-catalog__right {
        max-width: none;

        .sc-catalog__hero {
            display: block;
        }
    }

    .sc-catalog__right__content {
        position: static;
    }

    .sc-catalog__hero {
        margin-bottom: 0;
        padding: 24px 16px 45px;
    }

    .sc-catalog__hero__chip {
        font-size: 12px;
    }

    .sc-catalog__hero__title {
        font-size: 28px;

    }

    .sc-catalog__hero__description {
        font-size: 18px;
        line-height: 26px;
    }

    .sc-catalog__hero__flower {
        width: 58px;
    }

    .sc-catalog__about {
        margin-bottom: 32px;
    }

    .sc-catalog__about__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .sc-catalog__about__description {
        font-size: 16px;
        margin-bottom: 16px;
    }
}

/* =========================
   Single: Benefits
   ========================= */

.sc-catalog__benefits {
    text-align: center;
    margin-bottom: 64px;
}

.sc-catalog__benefits__chip {
    width: fit-content;
    margin: 0 auto;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: #F85628;
    margin-bottom: 4px;
    background-color: #FFE5D0;
    padding: 4px 6px;
}

.sc-catalog__benefits__title {
    font-weight: 600;
    color: #2A1C14;
    font-size: 44px;
    margin-bottom: 48px;
}

.sc-catalog__benefits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 48px;
}

.sc-catalog__benefits__card {
    border-radius: 20px;
    padding: 50px 24px 24px;
    min-height: 170px;
    text-align: left;
    position: relative;
    border-width: 3px 3px 6px 3px;
    border-style: solid;
    border-color: var(--level-color);
    display: flex;
    flex-direction: column;
    justify-content: end;
}

.sc-catalog__benefits__number {
    position: absolute;
    top: -26px;
    left: 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 500;
    padding: 3px 32.5px;
    background-color: var(--level-color);
    color: var(--level-color-text);
    font-family: var(--font-serif);
}

.sc-catalog__benefits__text {
    font-size: 22px;
    font-weight: 500;
    color: #323232;
}

@media screen and (max-width: 1024px) {
    .sc-catalog__benefits__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .sc-catalog__benefits {
        margin-bottom: 32px;
    }

    .sc-catalog__benefits__chip {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .sc-catalog__benefits__title {
        font-size: 24px;
    }

    .sc-catalog__benefits__grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .sc-catalog__benefits__card {
        min-height: 130px;
    }

    .sc-catalog__benefits__number {
        font-size: 32px;
        padding: 3px 23.5px;
        top: -26px;
        left: 24px;
    }

    .sc-catalog__benefits__text {
        font-size: 16px;
    }
}

/* =========================
   Single: Sidebar card
   ========================= */

.universal-card-wrapper.sc-sidebar {
    --sc-sidebar-video-height: 0px;
    border-width: 3px 3px 6px 3px;
    border-style: solid;
    border-color: #F2F2F2;
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.universal-card-wrapper.sc-sidebar.sc-sidebar--with-video {
    --sc-sidebar-video-height: 200px;
}

.universal-card-wrapper.sc-sidebar.has-scroll::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 48px;
    background: linear-gradient(0deg, #FFFFFF 26.45%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    transition: opacity .4s ease;
    opacity: 1;
    z-index: 2;
}

.universal-card-wrapper.sc-sidebar.is-at-bottom::after {
    opacity: 0;
}

/* Video preview */
.sc-sidebar__video {
    position: relative;
    width: calc(100% + 5px);
    margin-top: -3px;
    margin-left: -2.5px;
    height: 200px;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}

.sc-sidebar__video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sc-sidebar__video__play-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00000063;
}

.sc-sidebar__play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--orange);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .4s ease, transform .4s ease;
}

.sc-sidebar__play-btn svg {
    margin-left: 4px;
}

@media (hover: hover) and (pointer: fine) {
    .sc-sidebar__play-btn:hover {
        background: var(--orange-hover);
        transform: scale(1.08);
    }
}

.course-auth-modal__dialog,
.product-auth-modal__dialog {
    max-width: 520px;
}

.course-auth-modal__title,
.product-auth-modal__title {
    display: block;
    padding-right: 36px;
    margin-bottom: 14px;
    line-height: 1.2;
}

.course-auth-modal__text,
.product-auth-modal__text {
    margin-bottom: 24px;
    color: var(--dark-gray);
}

.course-auth-modal__actions,
.product-auth-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.course-auth-modal__actions .primary-btn,
.product-auth-modal__actions .primary-btn {
    --btn-width: 100%;
    --btn-height: 48px;
    --btn-max-width: none;
    --btn-padding: 0 20px;
}

.course-auth-modal__secondary,
.product-auth-modal__secondary {
    background: var(--bg);
    color: var(--orange);
    border: 1px solid var(--orange);
    box-shadow: none;
}

.video-modal__dialog {
    max-width: 800px !important;
    padding: 32px !important;
    border-radius: 16px !important;
}

.video-modal__title {
    font-family: var(--font-onest);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #191919;
    margin: 0 40px 14px 0;
}

.video-modal__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #000;
}

.video-modal__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-modal__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #ffffff;
    border: none;
    color: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform .25s ease;
}

.video-modal__play:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.video-modal__close {
    width: 100%;
    height: 48px;
}

.video-modal__media {
    cursor: pointer;
}

.video-modal__media.is-playing {
    cursor: default;
}

.video-modal__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
    border: none;
}

.video-modal__media.is-playing .video-modal__poster,
.video-modal__media.is-playing .video-modal__play {
    opacity: 0;
    pointer-events: none;
}

.video-modal__media.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: var(--orange, #F85628);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: videoLoader 0.8s linear infinite;
    z-index: 3;
}

@keyframes videoLoader {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.video-modal__play svg {
    width: 28px;
    height: 28px;
}

@media screen and (max-width: 768px) {
    .video-modal__dialog {
        max-width: none !important;
        padding: 24px 16px !important;
    }

    .video-modal__title {
        margin: 0 38px 24px 0;
    }

    .video-modal__media {
        margin-bottom: 24px;
    }

    .video-modal__play {
        width: 40px;
        height: 40px;
    }

    .video-modal__play svg {
        width: 20px;
        height: 20px;
    }

    .video-modal__media.is-loading::after {
        width: 32px;
        height: 32px;
    }
}

/* Body */
.sc-sidebar__body {
    padding: 20px 0 calc(34px - 6px);
    max-height: calc(100dvh - var(--sc-sidebar-sticky-top) - var(--sc-sidebar-video-height) - var(--sc-sidebar-bottom-offset));
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
}

.sc-sidebar__body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.sc-sidebar__fake-scrollbar {
    position: absolute;
    top: var(--sc-sidebar-scrollbar-top, 0);
    right: 6px;
    width: 4px;
    height: var(--sc-sidebar-scrollbar-height, 100%);
    background-color: var(--border);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 3;
    height: calc(100% - 20px);
}

.universal-card-wrapper.sc-sidebar.has-scroll .sc-sidebar__fake-scrollbar {
    opacity: 1;
    pointer-events: auto;
}

.sc-sidebar__fake-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 79px;
    background-color: var(--orange);
    border-radius: 999px;
    transform: translateY(0);
    touch-action: none;
}

/* Price */
.sc-sidebar__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 0 28px;
    margin-bottom: 12px;
}

.sc-sidebar__price-current {
    font-family: var(--font-serif);
    font-size: 34px;
    font-weight: 700;
    color: var(--text);
}

.sc-sidebar__price-old {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: #A7A8A8;
    text-decoration: line-through;
}

/* Details list */
.sc-sidebar__details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sc-sidebar__detail {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F2F2F2;
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
    padding: 16px 28px;
}

.sc-sidebar__detail svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.sc-sidebar__detail strong {
    font-weight: 600;
}

/* CTA button */
.sc-sidebar__cta-wrapper {
    padding: 0 28px;
    margin-bottom: 16px;
}

.sc-sidebar__cta.primary-btn {
    --btn-height: 46px;
    --btn-width: 100%;
    --btn-border-radius: 100px;
    margin-bottom: 12px;
}

/* Note */
.sc-sidebar__note {
    font-family: var(--font-onest);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
    color: #A7A8A8;
    text-align: center;
}

@media screen and (max-width: 768px) {
    .universal-card-wrapper.sc-sidebar {
        border-radius: 16px;
    }

    .universal-card-wrapper.sc-sidebar::after {
        display: none;
    }

    .sc-sidebar__body {
        padding: 20px 0;
        max-height: none;
        overflow: visible;
    }

    .sc-sidebar__fake-scrollbar {
        display: none;
    }

    .sc-sidebar__cta.primary-btn {
        height: 44px;
        margin-bottom: 0;
    }

    .sc-sidebar__price-current {
        font-size: 28px;
    }

    .sc-sidebar__price-old {
        font-size: 18px;
    }

    .sc-sidebar__body {
        display: flex;
        flex-direction: column;
    }

    .sc-sidebar__price {
        order: 1;
    }

    .sc-sidebar__cta-wrapper {
        order: 2;
        padding: 0 16px;
    }

    .sc-sidebar__details {
        order: 3;
        margin-bottom: 0;
    }

    .sc-sidebar__detail {
        padding: 13px 16px;

        &:last-child {
            border-bottom: none;
        }
    }

    .sc-sidebar__note {
        display: none;
    }
}

/* =========================
   Single: Course Content Accordion
   ========================= */

.sc-catalog__course-content {
    margin-bottom: 64px;
    border-width: 3px 3px 6px 3px;
    border-style: solid;
    border-color: #F2F2F2;
    border-radius: 24px;
    padding: 49px 52px 21px;
    position: relative;
    overflow: hidden;

    &>svg:first-child {
        position: absolute;
        top: 0;
        left: 0;
        pointer-events: none;
        user-select: none;
    }

    &>svg:nth-child(2) {
        position: absolute;
        top: 0;
        right: 0;
        pointer-events: none;
        user-select: none;
    }
}

.sc-catalog__course-content__title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 32px;
}

.sc-catalog__accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sc-accordion-item {
    border-width: 1px 1px 3px 1px;
    border-style: solid;
    border-color: #EBEDEF;
    border-radius: 14px;
    background: #FFFFFF;
    overflow: hidden;
}

.sc-accordion-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 12px 32px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    color: #2A1C14;
}

.sc-accordion-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--orange, #F85628);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.sc-accordion-item__icon svg {
    margin-top: 2px;
    width: 24px;
    height: 24px;
}

/* Icon rotation */
.sc-accordion-item.active .sc-accordion-item__icon {
    transform: rotate(180deg);
}

.sc-accordion-item__collapsible-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.sc-accordion-item__body {
    padding: 12px 71px 29px 32px;
    font-size: 16px;
    color: #2A1C14;
}

.sc-accordion-item__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sc-accordion-item__list li {
    position: relative;
    padding-left: 24px;
    line-height: 1.5;
}

.sc-accordion-item__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    background-color: var(--level-color);
    /* light purple */
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
    .sc-catalog__course-content {
        padding: 48px 16px 42px;
        width: 100vw;
        position: relative;
        left: -14px;
        margin-bottom: 32px;

        &>svg:first-child {
            top: -14px;
            left: 0;
        }

        &>svg:nth-child(2) {
            top: 0;
            right: 0;
        }
    }

    .sc-catalog__course-content__title {
        font-size: 24px;
        margin-bottom: 24px;
        font-weight: 600;
    }

    .sc-accordion-item__header {
        font-size: 18px;
        padding: 15px 12px;
    }

    .sc-accordion-item__body {
        padding: 12px 52px 32px 12px;
    }

    .sc-accordion-item__list {
        font-size: 14px;
    }

    .sc-accordion-item__list li {
        padding-left: 16px;
    }

    .sc-accordion-item__list li::before {
        width: 8px;
        height: 8px;
        top: 6px;
    }
}

/* =========================
   Single: Author
   ========================= */

.sc-catalog__author {
    display: flex;
    align-items: center;
    gap: 38px;
    margin-bottom: 64px;
}

.sc-author__image-col {
    flex-shrink: 0;
    width: 275px;
    height: 360px;
    padding-left: 36px;
}

.sc-author__image-bg {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    color: var(--level-color);
    height: 100%;
}

.sc-author__image-bg img {
    display: none;
}

.sc-author__image-bg-desktop {
    height: 348px;
}

.sc-author__image-bg-mobile {
    display: none !important;
}

.sc-author__content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.sc-author__chip {
    background-color: #FFE5D0;
    color: #F85628;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 5px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.sc-author__name {
    font-size: 44px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    letter-spacing: -0.02em;
}

.sc-author__desc {
    font-size: 16px;
    line-height: 1.5;
    color: #666667;
    margin-bottom: 22px;
}

.sc-author__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sc-author__stars {
    display: flex;
    gap: 4px;
}

.sc-author__stars .star {
    width: 16px;
}

.sc-author__rating-text {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    font-family: var(--font-onest);
}

.sc-author__rating-text a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
}

.sc-author__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sc-author__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.sc-catalog__author-courses {
    margin-bottom: 64px;
}

.sc-catalog__author-courses__header {
    margin-bottom: 32px;
}

.sc-catalog__author-courses__title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
}

.sc-catalog__author-courses__list {
    display: block;

    &.no-swiper {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 24px;
    }

    &.no-swiper.one-item {
        grid-template-columns: repeat(auto-fit, minmax(300px, 424px));
    }

    .course-card {
        min-width: 0;
        height: 100%;
        flex: 1;

        .course-card__cover {
            aspect-ratio: 16 / 9.5;
        }

        .course-card__body {
            padding: 20px 0 22px;
        }
    }

    .cards-swiper__navigation {
        width: auto;
        top: calc((48px + 32px) * -1);
        left: auto;
        right: 8px;
        transform: none;
        gap: 11px;
    }
}

.sc-catalog__author-courses__list .cards-swiper__btn.is-hidden {
    opacity: 0.5;
    visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
    .sc-catalog__author-courses__list {
        .course-card:hover {
            transform: none;
            box-shadow: none;
        }
    }

    .sc-catalog__author-courses__list .cards-swiper__btn:hover {
        background: var(--orange);
    }

    .sc-catalog__author-courses__list .cards-swiper__btn:hover svg path {
        stroke: var(--bg);
    }
}

.sc-catalog__author-courses__list .cards-swiper__btn:active {
    background: var(--orange);
    scale: 0.9;
}

.sc-catalog__author-courses__list .cards-swiper__btn:active svg path {
    stroke: var(--bg);
}

@media (hover: hover) and (pointer: fine) {
    .sc-author__social:hover {
        transform: scale(1.1);
    }
}

@media screen and (max-width: 1024px) {
    .sc-catalog__author {
        gap: 24px;
    }

    .sc-author__image-col {
        width: 250px;
        padding-left: 0;
    }

    .sc-author__name {
        font-size: 36px;
    }
}

@media screen and (max-width: 876px) {
    .sc-catalog__author {
        flex-direction: column;
        gap: 0;
        text-align: left;
    }

    .sc-author__image-col {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        height: auto;
    }

    .sc-author__image-bg-mobile {
        display: block !important;
    }

    .sc-author__image-bg-desktop {
        display: none !important;
    }

    .sc-catalog__author-courses {
        margin-bottom: 28px;
    }
}

@media screen and (max-width: 768px) {
    .sc-catalog__author {
        margin-bottom: 32px;
    }

    .sc-author__image-col {
        max-width: 100%;
    }

    .sc-author__image-bg {
        height: auto;
    }

    .sc-author__image-bg img {
        display: none;
    }

    .sc-author__name {
        font-size: 24px;
        text-decoration: none;
        margin-bottom: 8px;
    }

    .sc-author__desc {
        font-size: 14px;
    }

    .sc-catalog__author-courses {
        margin-bottom: 32px;
    }

    .sc-catalog__author-courses__list {
        &.no-swiper {
            justify-content: center;
        }

        .cards-swiper__navigation {
            top: auto;
            bottom: calc((48px + 16px) * -1);
            left: 50%;
            right: auto;
            transform: translateX(-50%);
        }
    }

    .sc-catalog__author-courses__list.is-end .cards-swiper__btn-left {
        transform: none;
    }
}

/* =========================
   Mobile Sticky Buy Block
   ========================= */
.sc-sticky-buy-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    box-shadow: 0px -4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 32px 32px 0 0;
    padding: 16px 16px 20px;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sc-sticky-buy-wrapper.is-visible {
    transform: translateY(0);
}

.sc-sticky-buy__cta {
    width: 100%;
    height: 44px;
}

.sc-sticky-buy__note {
    font-size: 14px;
    font-weight: 400;
    color: #A7A8A8;
    text-align: center;
}

.sc-sticky-buy-wrapper--course,
.sc-sticky-buy-wrapper--product {
    padding: 16px 12px;
    gap: 0;
    border-top: 1px solid #EBEDEF;
    border-radius: 0;
    background: var(--bg);
    box-shadow: none;
}

.sc-sticky-buy-wrapper--course form,
.sc-sticky-buy-wrapper--product form {
    width: 100%;
}

@media screen and (min-width: 769px) {
    .sc-sticky-buy-wrapper {
        display: none !important;
    }
}
