.pc-hero { padding-top: 56px; padding-bottom: 24px; }
.pc-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
}
.pc-hero__title { margin-top: 14px; font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.pc-hero__text .wg-lead { margin-top: 12px; }
.pc-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.pc-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface);
    font-size: .88rem; font-weight: 600; color: var(--text);
}
.pc-chip--free { border-color: rgba(22, 163, 74, .35); background: rgba(22, 163, 74, .08); color: #15803d; }

.pc-poster {
    position: relative;
    margin: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #23324e;
    box-shadow: 0 40px 80px -30px rgba(20, 31, 54, .55), 0 0 0 1px rgba(20, 31, 54, .08);
    transform: rotate(1.2deg);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.pc-poster:hover { transform: rotate(0deg) translateY(-4px); }
.pc-poster img { display: block; width: 100%; height: auto; }
.pc-poster::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
    pointer-events: none;
}

.pc-flash {
    margin: 8px 0 0;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(108, 99, 255, .08);
    border: 1px solid rgba(108, 99, 255, .25);
    color: var(--text);
    font-weight: 600;
}

.pc-staff {
    margin: 12px 0 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .35);
    color: var(--text);
    font-size: .92rem;
}

.pc-note { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.pc-empty { color: var(--muted); text-align: center; padding: 24px; }

.pc-badge {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: 999px;
    background: var(--surface-2, #f4f5fa); border: 1px solid var(--line);
    color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.pc-badge--free { background: rgba(22, 163, 74, .1); border-color: rgba(22, 163, 74, .3); color: #15803d; }

.pc-preview {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}
.pc-preview__info { padding: 8px 6px 6px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.pc-preview__title { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.pc-preview__cta { margin-top: 6px; }

.pc-prose { color: var(--muted); line-height: 1.65; font-size: 1rem; }

.pc-player {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}
.pc-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.pc-player__empty { display: grid; place-items: center; height: 100%; color: #cbd5e1; padding: 24px; text-align: center; }

.pc-ended {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(6px);
    animation: pc-fade .35s ease;
}
.pc-ended[hidden] { display: none; }
.pc-ended__box { max-width: 420px; text-align: center; color: #fff; }
.pc-ended__icon { font-size: 2.2rem; }
.pc-ended__box h3 { margin: 8px 0 6px; font-size: 1.4rem; }
.pc-ended__box p { margin: 0 0 16px; color: #cbd5e1; }
.pc-ended__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }

.pc-link { border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.pc-lessons {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px;
}
.pc-lesson {
    display: flex; gap: 14px; align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line); border-radius: 20px;
    background: var(--surface);
    color: inherit; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pc-lesson:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--text); }
.pc-lesson.is-locked .pc-lesson__cover img { filter: grayscale(.6) brightness(.8); }
.pc-lesson.is-locked .pc-lesson__title { color: var(--muted); }

.pc-lesson__cover {
    position: relative; flex: 0 0 116px; min-height: 84px;
    border-radius: 14px; overflow: hidden;
    background: linear-gradient(150deg, #23324e, #3b4f75);
}
.pc-lesson__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-lesson__num {
    position: absolute; left: 10px; top: 8px;
    font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 1.3rem;
    color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.pc-lesson__state {
    position: absolute; right: 8px; bottom: 8px;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .92); color: #1f2a44; font-size: .8rem;
}
.pc-lesson__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 2px 4px 2px 0; }
.pc-lesson__label { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pc-lesson__title { font-size: 1.02rem; line-height: 1.3; }
.pc-lesson__desc { font-size: .88rem; color: var(--muted); line-height: 1.45; }

.pf-mentor .pf-mentor__aside {
    padding: 0;
    overflow: hidden;
    text-align: left;
    background: #22324f;
    box-shadow: 0 34px 70px -34px rgba(20, 31, 54, .7);
}
.pc-mentor-photo {
    position: relative;
    height: 360px;
    background: #22324f url("../images/foundation/portfolio/ukili-omarova-course.jpg") 96% 24% / 215% auto no-repeat;
}
.pc-mentor-photo::before,
.pc-mentor-photo::after {
    content: "";
    position: absolute; inset: 0;
}
.pc-mentor-photo::before { background: linear-gradient(90deg, #22324f 0%, #22324f 17%, rgba(34, 50, 79, .6) 26%, rgba(34, 50, 79, 0) 46%); }
.pc-mentor-photo::after { background: linear-gradient(180deg, rgba(34, 50, 79, 0) 50%, rgba(34, 50, 79, .7) 80%, #22324f 100%); }
.pc-mentor-info { position: relative; padding: 4px 28px 30px; }
.pf-mentor .pf-mentor__aside .wg-eyebrow { background: rgba(255, 255, 255, .12); color: #dbe4f5; letter-spacing: .14em; }
.pf-mentor .pf-mentor__aside .pf-mentor__name { color: #fff; margin: 14px 0 6px; font-size: 2rem; letter-spacing: -.02em; }
.pf-mentor .pf-mentor__aside .pf-mentor__role { color: rgba(226, 232, 245, .78); font-size: .92rem; line-height: 1.55; }

.pc-plan-current { cursor: default; border-color: rgba(22, 163, 74, .4); color: #15803d; }

/* Lesson page */
.pc-watch { padding-top: 32px; }
.pc-back { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; font-weight: 600; }
.pc-back:hover { color: var(--text); }
.pc-watch__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.pc-watch__head { margin: 20px 0 10px; }
.pc-watch__title { margin: 6px 0 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; }
.pc-watch__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pc-watch__side {
    position: sticky; top: 90px;
    padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
}
.pc-side__title { margin: 0 0 12px; font-size: 1rem; }
.pc-side__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pc-side__item {
    display: flex; gap: 10px; align-items: center;
    padding: 10px; border-radius: 14px;
    color: inherit; text-decoration: none; font-size: .92rem;
    transition: background .2s ease;
}
.pc-side__item:hover { background: var(--surface-2, #f4f5fa); }
.pc-side__item.is-current { background: rgba(108, 99, 255, .1); font-weight: 700; }
.pc-side__item.is-locked { color: var(--muted); }
.pc-side__num {
    flex: 0 0 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface-2, #f4f5fa); border: 1px solid var(--line);
    font-size: .8rem; font-weight: 700;
}
.pc-side__item.is-current .pc-side__num { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Checkout */
.pc-checkout { padding-top: 32px; }
.pc-checkout__grid { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; align-items: start; }
.pc-checkout__summary {
    position: sticky; top: 90px;
    border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: var(--surface);
    box-shadow: var(--shadow);
}
.pc-checkout__poster { display: block; width: 100%; height: 260px; object-fit: cover; object-position: 50% 22%; }
.pc-checkout__plan { padding: 20px 22px 22px; }
.pc-checkout__plan h2 { margin: 6px 0 10px; font-size: 1.6rem; }
.pc-checkout__total {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.pc-checkout__total strong { font-size: 1.5rem; }
.pc-checkout__switch { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .88rem; color: var(--muted); }
.pc-checkout__switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.pc-checkout__title { margin: 0 0 18px; }

.pc-state { margin-bottom: 18px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); }
.pc-state p { margin: 6px 0 0; color: var(--muted); }
.pc-state--pending { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .35); }
.pc-state--rejected { background: rgba(239, 68, 68, .07); border-color: rgba(239, 68, 68, .3); }

.pc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pc-step {
    display: flex; gap: 16px;
    padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface);
}
.pc-step__n {
    flex: 0 0 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--text); color: var(--surface); font-weight: 800;
}
.pc-step__body { flex: 1; min-width: 0; }
.pc-step__body h3 { margin: 4px 0 12px; font-size: 1.08rem; }

.pc-kaspi {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 14px;
    background: #f14635; color: #fff; text-decoration: none; font-weight: 700;
    box-shadow: 0 12px 24px -12px rgba(241, 70, 53, .8);
    transition: transform .2s ease;
}
.pc-kaspi:hover { transform: translateY(-2px); }
.pc-kaspi__ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); }

.pc-receipt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pc-file {
    position: relative; flex: 1 1 260px;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 14px;
    color: var(--muted); cursor: pointer;
    transition: border-color .2s ease;
}
.pc-file:hover { border-color: var(--accent); }
.pc-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pc-file__ico { font-weight: 800; color: var(--accent); }
.pc-file__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 980px) {
    .pc-hero__grid, .pc-preview, .pc-watch__grid, .pc-checkout__grid { grid-template-columns: 1fr; }
    .pc-poster { max-width: 520px; margin: 0 auto; transform: none; }
    .pc-watch__side, .pc-checkout__summary { position: static; }
}
@media (max-width: 520px) {
    .pc-lessons { grid-template-columns: 1fr; }
    .pc-lesson__cover { flex-basis: 92px; }
}
