.course-detail-page {
    min-height: 100vh;
    padding-top: 78px;
    background: #080808;
    color: #f5f5f5;
}

.course-detail-page .container {
    width: min(100% - 40px, 1180px);
    margin-right: auto;
    margin-left: auto;
}

.course-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(14px);
}

.course-brand {
    display: inline-flex;
    align-items: center;
}

.course-brand img {
    display: block;
    width: 82px;
    height: 68px;
    object-fit: contain;
}

.course-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 38px);
    font-size: 0.84rem;
    font-weight: 600;
}

.course-nav-links > a:not(.course-home-link) {
    color: #c5c5c5;
    transition: color 180ms ease;
}

.course-nav-links > a:not(.course-home-link):hover,
.course-text-link:hover,
.course-footer-content > a:last-child:hover {
    color: #ff762d;
}

.course-home-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(255, 111, 38, 0.55);
    border-radius: 999px;
    color: #ff762d;
    transition: background 180ms ease, color 180ms ease;
}

.course-home-link:hover {
    background: #ff6b1a;
    color: #080808;
}

.course-hero {
    position: relative;
    overflow: hidden;
    background: #101010 url('/img/20.png') center 42% / cover no-repeat;
}

.course-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 7, 7, 0.97) 0%, rgba(7, 7, 7, 0.86) 48%, rgba(7, 7, 7, 0.56) 100%),
        linear-gradient(0deg, #080808 0%, transparent 35%);
}

.course-hero-inner {
    position: relative;
    display: grid;
    min-height: 570px;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 340px);
    align-items: center;
    gap: clamp(38px, 8vw, 110px);
    padding-top: 58px;
    padding-bottom: 72px;
}

.course-hero-copy {
    max-width: 740px;
}

.course-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: #ff762d;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.course-detail-page h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.8rem, 6.7vw, 5.6rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.03;
    text-wrap: balance;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.course-description {
    max-width: 650px;
    margin: 22px 0 0;
    color: #d0d0d0;
    font-size: clamp(1rem, 1.7vw, 1.15rem);
    line-height: 1.8;
}

.course-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.course-cta {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 0 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7b32, #f0520a);
    box-shadow: 0 10px 30px rgba(255, 94, 0, 0.22);
    color: #fff;
    font-size: 0.93rem;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.course-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255, 94, 0, 0.34);
}

.course-cta i {
    font-size: 1.15rem;
}

.course-text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e5e5e5;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 180ms ease;
}

.course-poster-frame {
    position: relative;
    display: grid;
    width: 100%;
    max-width: 330px;
    aspect-ratio: 0.61;
    place-items: center;
    justify-self: end;
    overflow: hidden;
    margin: 0;
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(20, 20, 20, 0.84));
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55), 0 0 44px rgba(255, 94, 0, 0.11);
}

.course-poster {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 11px;
    object-fit: contain;
}

.course-poster[hidden] {
    display: none;
}

.course-poster-placeholder[hidden] {
    display: none;
}

.course-poster-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-radius: 11px;
    background: radial-gradient(circle at 50% 38%, rgba(255, 107, 26, 0.22), transparent 35%), #121212;
    color: #ff762d;
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-poster-placeholder i {
    font-size: 3rem;
}

.course-facts-section {
    position: relative;
    z-index: 2;
    padding: 0 0 74px;
    background: #080808;
}

.course-information {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    transform: translateY(-32px);
}

.course-information[hidden],
.course-disciplines-section[hidden] {
    display: none;
}

.course-info-card {
    display: grid;
    min-height: 148px;
    grid-template-columns: 46px minmax(0, 1fr);
    align-content: center;
    align-items: center;
    column-gap: 14px;
    row-gap: 6px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: linear-gradient(145deg, #191919, #111);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
}

.course-info-icon {
    display: grid;
    width: 44px;
    height: 44px;
    grid-row: span 2;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 107, 26, 0.12);
    color: #ff762d;
    font-size: 1.1rem;
}

.course-info-label {
    color: #aaa;
    font-size: 0.78rem;
    font-weight: 500;
}

.course-info-card strong {
    color: #fff;
    font-size: clamp(0.93rem, 1.4vw, 1.08rem);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.course-message {
    min-height: 1.4em;
    margin-top: -12px;
    margin-bottom: 0;
    color: #ff9a61;
    text-align: center;
}

.course-about-section,
.course-disciplines-section {
    padding: 78px 0;
    background: #111;
}

.course-about-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(40px, 9vw, 130px);
}

.course-section-heading .course-eyebrow {
    margin-bottom: 12px;
}

.course-detail-page h2 {
    margin: 0;
    color: #fff;
    font-family: 'Anton', sans-serif;
    font-size: clamp(2.15rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
}

.course-about-copy > p,
.course-disciplines-empty {
    margin: 0;
    color: #c4c4c4;
    font-size: 1rem;
    line-height: 1.9;
}

.course-inline-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: #ff762d;
    font-size: 0.9rem;
    font-weight: 700;
}

.course-inline-cta:hover {
    color: #ffa06c;
}

.course-disciplines-section {
    background: #080808;
}

.course-disciplines-section .course-section-heading {
    margin-bottom: 30px;
    text-align: center;
}

.course-disciplines-section .course-eyebrow {
    justify-content: center;
}

.course-disciplines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.course-disciplines li {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid #ff6b1a;
    border-radius: 7px;
    background: #141414;
    color: #ddd;
    font-size: 0.92rem;
}

.course-disciplines li i {
    color: #ff762d;
    font-size: 0.78rem;
}

.course-disciplines-empty {
    margin: 0;
    color: #aaa;
    text-align: center;
}

.course-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #080808;
}

.course-footer-content {
    display: flex;
    min-height: 104px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.course-footer-content .course-brand img {
    width: 68px;
    height: 58px;
}

.course-footer-content p {
    margin: 0;
    color: #888;
    font-size: 0.8rem;
}

.course-footer-content > a:last-child {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ddd;
    font-size: 0.83rem;
    font-weight: 600;
    transition: color 180ms ease;
}

@media (max-width: 760px) {
    .course-nav {
        min-height: 70px;
        padding: 0 20px;
    }

    .course-brand img {
        width: 70px;
        height: 60px;
    }

    .course-nav-links {
        gap: 14px;
        font-size: 0.78rem;
    }

    .course-nav-links > a:not(.course-home-link) {
        display: none;
    }

    .course-home-link {
        min-height: 39px;
        padding: 0 13px;
    }

    .course-detail-page {
        padding-top: 70px;
    }

    .course-hero-inner {
        min-height: auto;
        grid-template-columns: minmax(0, 1fr) minmax(145px, 220px);
        gap: 24px;
        padding-top: 54px;
        padding-bottom: 68px;
    }

    .course-eyebrow {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .course-detail-page h1 {
        font-size: clamp(2.3rem, 8vw, 4rem);
    }

    .course-description {
        font-size: 0.96rem;
    }

    .course-information {
        grid-template-columns: 1fr;
        gap: 10px;
        transform: translateY(-25px);
    }

    .course-info-card {
        min-height: 94px;
        padding: 16px 19px;
    }

    .course-about-layout {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .course-about-section,
    .course-disciplines-section {
        padding: 58px 0;
    }

    .course-footer-content {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .course-hero-inner {
        grid-template-columns: minmax(0, 1fr) 112px;
        align-items: start;
        gap: 15px;
        padding-top: 44px;
        padding-bottom: 50px;
    }

    .course-poster-frame {
        margin-top: 32px;
        padding: 5px;
        border-radius: 11px;
    }

    .course-poster,
    .course-poster-placeholder {
        border-radius: 7px;
    }

    .course-poster-placeholder {
        gap: 7px;
        font-size: 0.7rem;
    }

    .course-poster-placeholder i {
        font-size: 1.7rem;
    }

    .course-eyebrow {
        align-items: flex-start;
        font-size: 0.6rem;
        line-height: 1.5;
    }

    .course-detail-page h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
    }

    .course-description {
        margin-top: 15px;
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .course-hero-actions {
        align-items: flex-start;
        gap: 14px;
        margin-top: 22px;
    }

    .course-cta {
        min-height: 45px;
        gap: 7px;
        padding: 0 14px;
        font-size: 0.76rem;
    }

    .course-text-link {
        font-size: 0.76rem;
    }

    .course-about-section,
    .course-disciplines-section {
        padding: 48px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
