body.course-landing-page,
body.course-login-page {
    margin: 0;
    min-height: 100vh;
    background: #f3f5fa;
    color: #0f172a;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.course-landing-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 40;
}

body.course-landing-page .course-landing-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

body.course-landing-page {
    padding-top: 73px;
}

.course-landing-home {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.course-landing-home:hover {
    color: #2f6fed;
}

.course-landing-login,
.course-landing-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
}

.course-landing-login {
    border: 0;
    background: #60a5fa;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.course-landing-login:hover {
    background: #3b82f6;
    color: #fff;
}

.course-landing-register {
    border: 2px solid #22c55e;
    background: #fff;
    color: #15803d;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.18);
}

.course-landing-register:hover {
    background: #f0fdf4;
    color: #15803d;
}

.course-landing-login[hidden],
.course-landing-register[hidden],
.course-landing-actions .is-off {
    display: none !important;
}

.course-landing-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.course-login-notice {
    min-height: 20px;
    margin: 0 0 8px;
    color: #2f6fed;
    font-size: 14px;
    line-height: 1.45;
}

.course-login-notice a {
    color: #2f6fed;
    font-weight: 700;
    text-decoration: underline;
}

.course-login-notice a:hover {
    color: #2559c7;
}

.course-login-register {
    margin-top: 18px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.course-auth-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #2f6fed;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
}

.course-auth-link:hover {
    color: #2559c7;
}

.course-register-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2% 20px 20px;
}

.course-register-modal[hidden] {
    display: none;
}

.course-register-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
}

html.modal-open,
html.modal-open body {
    overflow: hidden !important;
    overscroll-behavior: none;
}
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
}

.course-register-dialog {
    position: relative;
    width: min(100%, 400px);
    max-height: 90vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.course-register-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
}

.course-register-dialog h2 {
    margin: 0 0 12px;
    font-size: 22px;
    color: #1e293b;
}

.course-register-dialog h2 i {
    margin-right: 8px;
}

.course-register-lead {
    margin: 0 0 16px;
    color: #64748b;
    font-size: 15px;
}

.course-register-steps {
    margin: 0 0 16px;
    padding-left: 20px;
    color: #334155;
    line-height: 1.55;
}

.course-register-steps a {
    color: #2f6fed;
    font-weight: 600;
}

.course-register-steps a.link-telegram {
    color: #229ed9;
}

.course-register-steps a.link-max {
    color: #ce5a82;
}

.course-register-note {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 13px;
}

.course-register-switch {
    margin: 18px 0 10px;
    text-align: left;
    font-size: 14px;
    color: #64748b;
}

.course-register-switch-login {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    background: #60a5fa;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.course-register-switch-login:hover {
    background: #3b82f6;
    color: #fff;
}

body.dark-mode .course-register-dialog {
    background: #151c2c;
    color: #e8eef8;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

body.dark-mode .course-register-dialog h2 {
    color: #e8eef8;
}

body.dark-mode .course-register-lead,
body.dark-mode .course-register-steps,
body.dark-mode .course-register-switch {
    color: #cbd5e1;
}

body.dark-mode .course-register-note {
    background: #121826;
    color: #94a3b8;
}

body.dark-mode .course-register-close {
    color: #cbd5e1;
}

.course-landing-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 24px 72px;
}

.course-landing-kicker {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.course-landing-hero h1 {
    margin: 0 0 14px;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.course-landing-lead {
    margin: 0;
    max-width: 62ch;
    color: #475569;
    font-size: 18px;
    line-height: 1.55;
}

.course-landing-other {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    padding: 18px 18px 16px;
}

.course-landing-author h2,
.course-landing-other h3 {
    margin: 0 0 8px;
    font-size: 17px;
    color: #0f172a;
}

.course-landing-program-wrap h2,
.course-landing-faq-wrap h2,
.course-landing-others-wrap h2 {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 750;
    color: #0f172a;
}

.course-landing-other p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.course-landing-program-wrap,
.course-landing-author,
.course-landing-faq-wrap,
.course-landing-highlights,
.course-landing-others-wrap {
    margin-top: 36px;
}

.course-landing-author {
    display: flex;
    align-items: stretch;
    gap: 20px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 10px;
}

.course-landing-author h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.course-landing-author-photo-wrap {
    flex: 0 0 240px;
    min-height: 280px;
}

.course-landing-author-photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    background: #e8edf5;
}

.course-landing-author-bio {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    font-size: 17px;
    line-height: 1.6;
}

.course-landing-author-bio li + li {
    margin-top: 8px;
}

.course-landing-faq {
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.course-landing-faq-item {
    padding: 16px 18px;
    border-top: 1px solid #eef2f7;
}

.course-landing-faq-item:first-child {
    border-top: none;
}

.course-landing-faq-item h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #0f172a;
}

.course-landing-faq-item p {
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.55;
}

.course-landing-program {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: landing-group;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.course-landing-program li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 12px 16px;
    border-top: 1px solid #eef2f7;
    color: #1e293b;
    font-size: 15px;
    line-height: 1.45;
}

.course-landing-program-text {
    min-width: 0;
}

.course-landing-program-blurb {
    color: #64748b;
    font-weight: 400;
}

.course-landing-program li:first-child {
    border-top: none;
}

.course-landing-program li::before {
    counter-increment: landing-group;
    content: counter(landing-group);
    flex: 0 0 1.6em;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

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

a.course-landing-other {
    color: inherit;
    text-decoration: none;
}

a.course-landing-other:hover {
    border-color: #93c5fd;
}

.course-landing-highlights {
    display: grid;
    grid-template-columns: 1.08fr 0.82fr 0.82fr;
    grid-template-rows: auto auto auto;
    gap: 14px;
}

.course-landing-hl {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.course-landing-hl--1 { grid-column: 1; grid-row: 1; }
.course-landing-hl--2 { grid-column: 1; grid-row: 2; }
.course-landing-hl--3 { grid-column: 1; grid-row: 3; }
.course-landing-hl--4 { grid-column: 2; grid-row: 1; }
.course-landing-hl--5 { grid-column: 2; grid-row: 2 / 4; }
.course-landing-hl--6 { grid-column: 3; grid-row: 1 / 4; }

.course-landing-hl--row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.course-landing-hl--stack {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    min-height: 100%;
}

.course-landing-hl--6 {
    justify-content: flex-start;
}

.course-landing-hl--5 {
    justify-content: flex-start;
}

.course-landing-hl-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-landing-hl--6 .course-landing-hl-copy {
    flex: 1;
}

.course-landing-hl h3 {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.25;
    color: #0f172a;
}

.course-landing-hl p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.course-landing-hl-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: #0f172a;
}

.course-landing-hl-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.course-landing-hl-icon--accent {
    color: #84cc16;
}

.course-landing-hl-icon--lg {
    width: 56px;
    height: 56px;
    margin: 8px 0;
    color: #2563eb;
}

.course-landing-hl--row .course-landing-hl-icon--lg {
    width: 42px;
    height: 42px;
    margin: 0;
}

.course-landing-hl-stat {
    margin: 0 0 10px;
    font-size: 48px;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #2563eb;
}

.course-landing-hl-stat span {
    font-weight: 650;
    font-size: 0.7em;
}

@media (max-width: 980px) {
    .course-landing-highlights {
        grid-template-columns: 1.12fr 0.88fr;
    }

    .course-landing-hl--6 {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 720px) {
    .course-landing-top {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
        justify-content: flex-start;
    }

    body.course-landing-page {
        padding-top: 0;
    }

    body.course-landing-page .course-landing-top {
        position: relative;
        width: auto;
    }

    .course-landing-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .course-landing-login,
    .course-landing-register {
        width: 100%;
        flex: none;
        min-width: 0;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 15px;
    }

    .course-register-modal {
        padding: max(8px, env(safe-area-inset-top, 0px)) 8px 8px;
        align-items: stretch;
    }

    .course-register-dialog {
        width: 100%;
        max-height: calc(100dvh - 16px);
    }

    .course-landing-body {
        max-width: none;
        width: 100%;
        padding: 16px 12px 28px;
        box-sizing: border-box;
    }

    .course-landing-hero h1 {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .course-landing-program-wrap h2,
    .course-landing-faq-wrap h2,
    .course-landing-others-wrap h2 {
        font-size: 22px;
    }

    .course-landing-program li {
        padding: 12px 14px;
        font-size: 14px;
    }

    .course-landing-others,
    .course-landing-highlights {
        grid-template-columns: 1fr;
    }

    .course-landing-hl--1,
    .course-landing-hl--2,
    .course-landing-hl--3,
    .course-landing-hl--4,
    .course-landing-hl--5,
    .course-landing-hl--6 {
        grid-column: auto;
        grid-row: auto;
    }

    .course-landing-author {
        flex-direction: column;
    }

    .course-landing-author-photo-wrap {
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1;
    }

    .course-landing-author-photo {
        object-position: center;
    }

    .course-landing-hl-stat {
        font-size: 36px;
    }
}

.cpp-learn-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cpp-learn-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 16px 18px;
}

.cpp-learn-item-body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.cpp-learn-num {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8eefc;
    color: #2f6fed;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpp-learn-item h3 {
    margin: 0 0 4px;
    font-size: 17px;
    color: #0f172a;
}

.cpp-learn-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.cpp-learn-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
}

.cpp-learn-lecture,
.cpp-learn-pdf,
.cpp-learn-actions a {
    white-space: nowrap;
}

.cpp-learn-lecture {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    font-family: inherit;
    cursor: pointer;
    border: 2px solid #93c5fd;
    background: #fff;
    color: #1d4ed8;
}

.cpp-learn-lecture:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.cpp-video-stub {
    margin: 0 0 32px;
}

.cpp-video-stub-frame {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 320px;
    aspect-ratio: 16 / 9;
    max-height: 520px;
    border-radius: 16px;
    background: #0f172a;
    color: #cbd5e1;
}

.cpp-video-stub-play {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
    position: relative;
}

.cpp-video-stub-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    transform: translate(-50%, -50%);
}

.cpp-video-stub-frame p {
    margin: 0;
    font-size: 16px;
}

body.dark-mode .cpp-learn-lecture {
    background: #151c2c;
    border-color: #334155;
    color: #93c5fd;
}

body.dark-mode .cpp-learn-lecture:hover {
    background: #1e293b;
}

body.dark-mode .cpp-learn-item {
    background: #151c2c;
    border-color: #243044;
}

body.dark-mode .cpp-learn-item h3 {
    color: #e8eef8;
}

body.dark-mode .cpp-learn-num {
    background: #1e293b;
    color: #93c5fd;
}

@media (max-width: 720px) {
    .cpp-learn-item {
        flex-direction: column;
        align-items: stretch;
    }

    .cpp-learn-actions {
        justify-content: stretch;
    }

    .cpp-learn-actions a {
        flex: 1;
    }
}
