:root {
    color-scheme: light;
    --ink: #102a43;
    --muted: #62758a;
    --teal: #117c79;
    --teal-dark: #0b625f;
    --paper: #f5f8fa;
    --line: #dce6eb;
    --white: #fff;
    --gold: #ffcf70
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.55
}

body.home-page {
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip
}

body.home-page main,
body.home-page .site-footer {
    width: 100%;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none
}

.site-header {
    height: 82px;
    padding: 0 max(5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid var(--line)
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    letter-spacing: -1px
}

.brand strong,
.brand small {
    display: block
}

.brand strong {
    font-size: 15px
}

.brand small {
    font-size: 10px;
    color: var(--muted);
    margin-top: 1px
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 650
}

.nav-button,
.catalog-filters button {
    border: 0;
    background: var(--teal);
    color: white;
    padding: 11px 17px;
    border-radius: 10px;
    font-weight: 700
}

.nav-button:hover,
.catalog-filters button:hover {
    background: var(--teal-dark)
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #102a43 0%, #174e62 56%, #117c79 100%);
    color: white;
    padding: 88px max(8vw, 28px) 82px
}

.home-hero:after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: 5%;
    top: -190px;
    border-radius: 50%;
    border: 1px solid #ffffff30;
    box-shadow: 0 0 0 44px #ffffff0a, 0 0 0 95px #ffffff08
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .15em;
    font-size: 11px;
    font-weight: 800;
    color: var(--teal)
}

.home-hero .eyebrow {
    color: #9ee3d7
}

.home-hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    letter-spacing: -.055em;
    line-height: 1.02;
    margin: 19px 0 18px;
    max-width: 720px
}

.home-hero p {
    font-size: 18px;
    color: #d9e6eb;
    max-width: 610px
}

.hero-actions {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-top: 30px
}

.app-download-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 42px auto;
    padding: 34px clamp(24px, 6vw, 72px);
    width: min(1120px, calc(100% - 48px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 38px #102a4310
}

.app-download-copy {
    max-width: 620px
}

.app-download-copy h2 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -.035em
}

.app-download-copy p {
    margin: 0 0 22px;
    color: var(--muted)
}

.app-download-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 19px;
    border-radius: 11px;
    background: var(--teal);
    color: #fff;
    font-weight: 750
}

.app-download-button:hover {
    background: var(--teal-dark)
}

.app-download-qr {
    display: flex;
    flex: 0 0 230px;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px;
    color: var(--ink);
    text-align: center
}

.app-download-qr img {
    display: block;
    width: 220px;
    height: 220px;
    margin-bottom: 7px;
    image-rendering: pixelated
}

.app-download-qr strong {
    font-size: 16px
}

.app-download-qr span {
    color: var(--muted);
    font-size: 13px
}

@media (max-width: 640px) {
    .app-download-section {
        flex-direction: column;
        gap: 18px;
        margin: 26px auto;
        padding: 26px 20px;
        text-align: center
    }

    .app-download-qr {
        flex-basis: auto
    }
}

.button-primary,
.button-quiet {
    display: inline-flex;
    padding: 13px 20px;
    border-radius: 11px;
    font-weight: 750
}

.button-primary {
    background: #fff;
    color: var(--ink)
}

.button-quiet {
    border: 1px solid #ffffff65;
    color: #fff
}

.section-wrap {
    padding: 64px max(6vw, 24px)
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 25px
}

.section-heading h2,
.page-intro h1,
.detail-copy h2 {
    margin: 5px 0 0;
    letter-spacing: -.04em
}

.section-heading h2 {
    font-size: 32px
}

.text-link,
.back-link {
    color: var(--teal-dark);
    font-weight: 750
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.course-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 17px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px #102a4312
}

.course-card-link {
    display: block;
    height: 100%
}

.course-art {
    height: 162px;
    background: linear-gradient(135deg, #d9f0ec, #dce8f3);
    background-size: cover;
    background-position: center;
    position: relative;
    display: grid;
    place-items: center
}

.course-art-mark {
    font-size: 42px;
    font-weight: 850;
    letter-spacing: -.09em;
    color: #117c7933
}

.course-art-mark span {
    color: var(--teal)
}

.badge {
    position: absolute;
    top: 13px;
    left: 13px;
    background: #ffffffdf;
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 9px;
    border-radius: 99px
}

.course-card-content {
    padding: 19px
}

.course-card-content .eyebrow {
    font-size: 9px
}

.course-card h3 {
    font-size: 19px;
    letter-spacing: -.025em;
    margin: 7px 0
}

.course-card p {
    color: var(--muted);
    font-size: 13px;
    min-height: 40px;
    margin: 0
}

.course-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 19px;
    font-size: 13px;
    font-weight: 800
}

.course-card-bottom>.text-link {
    font-size: 12px
}

.page-intro {
    padding: 58px max(6vw, 24px) 36px;
    background: #fff
}

.page-intro h1 {
    font-size: clamp(34px, 4vw, 49px);
    max-width: 740px
}

.page-intro>p {
    color: var(--muted);
    margin: 9px 0 0
}

.catalog-filters {
    margin-top: 26px;
    display: flex;
    gap: 10px;
    max-width: 820px
}

.catalog-filters input,
.catalog-filters select {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink)
}

.catalog-filters input {
    flex: 1;
    min-width: 150px
}

.catalog-filters select {
    min-width: 170px
}

.empty-state {
    grid-column: 1/-1;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 38px;
    text-align: center
}

.empty-state p,
.muted {
    color: var(--muted)
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    padding: 30px 0 5px;
    color: var(--muted);
    font-size: 14px
}

.pagination a {
    font-weight: 750;
    color: var(--teal-dark)
}

.course-hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    min-height: 410px;
    background: white
}

.course-hero-copy {
    padding: 46px max(5vw, 25px) 48px max(8vw, 28px)
}

.back-link {
    display: inline-block;
    margin-bottom: 27px;
    font-size: 13px
}

.course-hero h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.07;
    letter-spacing: -.05em;
    margin: 10px 0 14px
}

.lead {
    color: var(--muted);
    font-size: 17px;
    max-width: 670px
}

.course-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 22px 0
}

.course-meta span {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 6px 11px;
    font-size: 12px;
    color: var(--muted)
}

.price-line {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap
}

.price-line strong {
    font-size: 23px
}

.price-line del {
    color: var(--muted)
}

.price-line span {
    flex-basis: 100%;
    font-size: 12px;
    color: var(--muted)
}

.course-hero-art {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #102a43, #117c79);
    background-size: cover;
    background-position: center;
    color: white;
    font-weight: 800;
    font-size: clamp(38px, 5vw, 62px);
    letter-spacing: -.06em;
    line-height: 1.03;
    padding: 30px
}

.course-hero-art b {
    color: #9ee3d7
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 38px;
    padding: 55px max(8vw, 28px) 75px
}

.detail-copy h2 {
    font-size: 30px;
    max-width: 480px
}

.prose {
    margin-top: 18px;
    color: #475c6f;
    max-width: 660px;
    white-space: normal
}

.outline-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 24px
}

.outline-panel h2 {
    margin: 5px 0 15px;
    font-size: 22px
}

.module-item {
    border-top: 1px solid var(--line);
    padding: 14px 0
}

.module-item summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 750;
    list-style: none
}

.module-item summary::-webkit-details-marker {
    display: none
}

.module-item summary:after {
    content: "+";
    color: var(--teal);
    margin-left: auto
}

.module-item[open] summary:after {
    content: "−"
}

.module-item small {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap
}

.module-item ul {
    list-style: none;
    padding: 5px 0 0;
    margin: 0
}

.module-item li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    color: #506579;
    font-size: 13px
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 27px max(6vw, 24px);
    background: #102a43;
    color: white;
    font-size: 13px
}

.site-footer p {
    margin: 3px 0 0;
    color: #bdcbd5;
    font-size: 12px
}

.site-footer>span {
    color: #bdcbd5
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

@media(max-width:900px) {
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .course-hero {
        grid-template-columns: 1fr
    }

    .course-hero-art {
        min-height: 200px
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 28px
    }
}

@media(max-width:600px) {
    .site-header {
        height: 72px;
        padding: 0 17px
    }

    .brand {
        gap: 8px
    }

    .brand-mark {
        width: 37px;
        height: 37px
    }

    .brand small {
        font-size: 9px
    }

    .site-header nav {
        gap: 12px;
        font-size: 12px
    }

    .nav-button {
        padding: 9px 11px
    }

    .home-hero {
        padding: 65px 24px
    }

    .home-hero h1 {
        font-size: 45px
    }

    .home-hero p {
        font-size: 16px
    }

    .section-wrap {
        padding: 45px 18px
    }

    .section-heading {
        align-items: start;
        flex-direction: column
    }

    .section-heading h2 {
        font-size: 28px
    }

    .course-grid {
        grid-template-columns: 1fr;
        gap: 14px
    }

    .course-art {
        height: 145px
    }

    .page-intro {
        padding: 42px 19px 28px
    }

    .page-intro h1 {
        font-size: 36px
    }

    .catalog-filters {
        display: grid;
        grid-template-columns: 1fr
    }

    .catalog-filters input,
    .catalog-filters select {
        width: 100%
    }

    .course-hero-copy {
        padding: 28px 20px 34px
    }

    .course-hero h1 {
        font-size: 39px
    }

    .course-hero-art {
        min-height: 155px
    }

    .detail-layout {
        padding: 38px 18px 52px
    }

    .outline-panel {
        padding: 19px
    }

    .site-footer {
        align-items: start;
        flex-direction: column;
        padding: 23px 20px
    }

    .pagination {
        gap: 12px;
        font-size: 12px
    }
}

.featured-instructors {
    background: #fff
}

.instructor-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px
}

.public-instructor-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper)
}

.public-instructor-card>img,
.public-instructor-avatar {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    object-fit: cover;
    border-radius: 13px
}

.public-instructor-avatar {
    display: grid;
    place-items: center;
    background: #dff0ed;
    color: var(--teal);
    font-size: 23px;
    font-weight: 850
}

.public-instructor-card h3 {
    margin: 0;
    font-size: 16px
}

.public-instructor-card p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5
}

.public-instructor-card .instructor-card-title {
    color: var(--teal-dark);
    font-weight: 750
}

.banner-showcase-section {
    padding-top: 8px
}

.banner-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.banner-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(16, 42, 67, .06)
}

.banner-card img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover
}

.banner-card-copy {
    padding: 18px
}

.banner-card-copy strong {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--ink)
}

.banner-card-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6
}

@media(max-width:900px) {
    .instructor-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }
}

@media(max-width:600px) {
    .instructor-card-grid {
        grid-template-columns: 1fr
    }

    .banner-showcase {
        grid-template-columns: 1fr
    }
}
