.yt-course-catalog {
    display: grid;
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 70px;
    color: #2b1b13;
}

.yt-public-course-catalog-page .yt-account-shell {
    display: block;
    width: 100%;
    max-width: none;
}

.yt-public-course-catalog-page .yt-account-shell__sidebar,
.yt-public-course-catalog-page .yt-account-shell__rail {
    display: none;
}

.yt-public-course-catalog-page .yt-account-shell__main,
.yt-public-course-catalog-page .yt-account-shell__panel,
.yt-public-course-catalog-page .yt-account-shell__panel > .shell,
.yt-public-course-catalog-page .yt-account-shell__panel .prose {
    width: 100%;
    max-width: none;
}

.yt-public-course-catalog-page .yt-account-shell__panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.yt-course-catalog__hero {
    position: relative;
    overflow: hidden;
    padding: clamp(34px, 7vw, 76px);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 22%, rgba(255, 201, 90, 0.55), transparent 28%),
        linear-gradient(125deg, #a91816 0%, #d4471c 53%, #efaa36 100%);
    color: #fffaf3;
    box-shadow: 0 24px 60px rgba(142, 42, 23, 0.2);
}

.yt-course-catalog__hero::after {
    content: '';
    position: absolute;
    right: -8%;
    bottom: -58%;
    width: 50%;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(255, 255, 255, 0.05), 0 0 0 92px rgba(255, 255, 255, 0.04);
}

.yt-course-catalog__hero > span,
.yt-course-catalog__eyebrow,
.yt-course-catalog__account span {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.yt-course-catalog__hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: inherit;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.04;
}

.yt-course-catalog__hero p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 18px 0 0;
    font-size: clamp(17px, 2vw, 22px);
}

.yt-course-catalog__principles {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 26px;
}

.yt-course-catalog__principles span {
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(92, 24, 16, 0.16);
    font-size: 13px;
}

.yt-course-catalog__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.yt-course-catalog__eyebrow {
    color: #b42318;
}

.yt-course-catalog__intro h2,
.yt-course-catalog__account h2 {
    margin: 0;
    font-size: clamp(27px, 3.4vw, 42px);
    line-height: 1.2;
}

.yt-course-catalog__intro > p {
    max-width: 480px;
    margin: 0;
    color: #78665a;
}

.yt-course-catalog__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.yt-course-card {
    display: grid;
    grid-template-columns: 90px minmax(0, 1.55fr) minmax(210px, 0.72fr) minmax(170px, auto);
    align-items: center;
    gap: clamp(20px, 3vw, 38px);
    min-height: 220px;
    padding: clamp(24px, 3.2vw, 36px);
    border: 1px solid #e2d7cc;
    border-radius: 24px;
    background: linear-gradient(155deg, #fffefd, #faf5ef);
    box-shadow: 0 15px 38px rgba(66, 42, 29, 0.08);
}

.yt-course-card.is-available {
    border-color: rgba(183, 48, 30, 0.35);
    background:
        radial-gradient(circle at 100% 0, rgba(230, 126, 34, 0.16), transparent 38%),
        linear-gradient(155deg, #fffefd, #fff5ed);
}

.yt-course-card.is-coming {
    background: linear-gradient(155deg, #fffdf9, #f4eee7);
}

.yt-course-card__top,
.yt-course-card__footer {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
}

.yt-course-card__top {
    align-self: stretch;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 22px;
    border-right: 1px solid #e7dad0;
}

.yt-course-card__number {
    color: #c64a28;
    font: 700 38px/1 Georgia, serif;
}

.yt-course-card__status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2e9e0;
    color: #786154;
    font-size: 11px;
    font-weight: 700;
}

.is-available .yt-course-card__status {
    background: #fff0e4;
    color: #a82319;
}

.yt-course-card h3 {
    margin: 0;
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 1.18;
}

.yt-course-card p {
    margin: 14px 0 0;
    color: #746257;
    line-height: 1.75;
}

.yt-course-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.yt-course-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 9px;
    border-bottom: 1px solid #eee4dc;
}

.yt-course-card dt {
    color: #968276;
    font-size: 12px;
}

.yt-course-card dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.yt-course-card__footer strong {
    font-size: 17px;
}

.yt-course-card__footer {
    align-items: flex-end;
    flex-direction: column;
}

.yt-course-card__footer a,
.yt-course-catalog__account a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b42318, #e88625);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.yt-course-card__footer > span {
    color: #a08d80;
    font-size: 13px;
    font-weight: 700;
}

.yt-course-catalog__account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: clamp(26px, 4vw, 44px);
    border-radius: 24px;
    background: #2b211b;
    color: #fff8f0;
}

.yt-course-catalog__account h2 {
    color: inherit;
}

.yt-course-catalog__account p {
    margin: 10px 0 0;
    color: #d6c7bc;
}

.yt-course-catalog__notice {
    margin: -12px auto 0;
    color: #917f73;
    font-size: 12px;
    text-align: center;
}

.yt-my-courses-switcher {
    display: grid;
    gap: 18px;
    margin: 0 0 26px;
    padding: clamp(20px, 3vw, 30px);
    border: 1px solid rgba(83, 54, 36, 0.14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 94% 10%, rgba(226, 139, 47, 0.16), transparent 30%),
        linear-gradient(145deg, #fffdf9, #fff7ed);
    box-shadow: 0 15px 40px rgba(69, 43, 28, 0.07);
}

.yt-my-courses-switcher__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.yt-my-courses-switcher__heading span {
    color: #b42318;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.yt-my-courses-switcher__heading h2 {
    margin: 5px 0 0;
    font-size: clamp(24px, 3vw, 34px);
}

.yt-my-courses-switcher__heading p {
    margin: 7px 0 0;
    color: #79665a;
}

.yt-my-courses-switcher__heading > a {
    padding: 9px 13px;
    border: 1px solid #dfcbbd;
    border-radius: 10px;
    color: #8e2c20;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.yt-my-courses-switcher__list {
    display: grid;
    gap: 9px;
}

.yt-my-courses-switcher__rights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.yt-my-courses-switcher__rights > div {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #e7d9ce;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.72);
}

.yt-my-courses-switcher__rights span {
    color: #907b6e;
    font-size: 11px;
}

.yt-my-courses-switcher__rights strong {
    overflow: hidden;
    color: #3b291f;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yt-my-course-tab {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 13px 15px;
    border: 1px solid #e5d9cf;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.75);
}

.yt-my-course-tab > span {
    color: #b34b2d;
    font: 700 20px/1 Georgia, serif;
}

.yt-my-course-tab > div {
    display: grid;
    gap: 3px;
}

.yt-my-course-tab strong {
    color: #32231b;
}

.yt-my-course-tab small {
    color: #8d796c;
}

.yt-my-course-tab > a,
.yt-my-course-tab > em {
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 11px;
    font-style: normal;
    font-weight: 750;
    text-decoration: none;
}

.yt-my-course-tab > a {
    background: linear-gradient(135deg, #b42318, #e48427);
    color: #fff;
}

.yt-my-course-tab > em {
    background: #eee7e0;
    color: #948176;
}

.yt-my-course-tab.is-current {
    border-color: rgba(180, 35, 24, 0.3);
    background: #fff5ec;
}

.yt-my-course-tab.is-disabled {
    opacity: 0.72;
}

.yt-my-courses-switcher__sync {
    margin: 0;
    color: #927e72;
    font-size: 12px;
}

.yt-my-courses-switcher__materials {
    display: grid;
    grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px 17px;
    border: 1px solid #decbbd;
    border-radius: 14px;
    background: linear-gradient(110deg, #fffaf4, #f6eee5);
    color: #35251d;
    text-decoration: none;
}

.yt-my-courses-switcher__materials > span {
    font-size: 15px;
    font-weight: 800;
}

.yt-my-courses-switcher__materials > small {
    color: #887468;
    line-height: 1.55;
}

.yt-my-courses-switcher__materials > strong {
    color: #a83b26;
    font-size: 12px;
}

.yt-my-courses-switcher__materials > strong b {
    margin-left: 4px;
    font-size: 17px;
}

.yt-current-course-content {
    scroll-margin-top: 28px;
}

@media (max-width: 900px) {
    .yt-my-courses-switcher__materials {
        grid-template-columns: 1fr auto;
    }

    .yt-my-courses-switcher__materials > small {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .yt-course-card {
        grid-template-columns: 76px minmax(0, 1fr);
        min-height: 0;
    }

    .yt-course-card dl,
    .yt-course-card__footer {
        grid-column: 2;
    }

    .yt-course-card__footer {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 720px) {
    .yt-course-catalog {
        width: min(100% - 20px, 1180px);
        margin-top: 10px;
    }

    .yt-course-catalog__hero {
        border-radius: 22px;
    }

    .yt-course-catalog__intro,
    .yt-course-catalog__account {
        align-items: stretch;
        flex-direction: column;
    }

    .yt-course-card {
        grid-template-columns: 1fr;
    }

    .yt-course-card__top {
        align-items: center;
        align-self: auto;
        flex-direction: row;
        padding: 0 0 14px;
        border-right: 0;
        border-bottom: 1px solid #e7dad0;
    }

    .yt-course-card dl,
    .yt-course-card__footer {
        grid-column: auto;
    }

    .yt-my-courses-switcher__heading {
        flex-direction: column;
    }

    .yt-my-course-tab {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .yt-my-courses-switcher__rights {
        grid-template-columns: 1fr;
    }

    .yt-my-course-tab > a,
    .yt-my-course-tab > em {
        grid-column: 2;
        justify-self: start;
    }
}
