/**
 * Детальная страница видеоурока (Design Lab, как courses-page / страница курса).
 */
.lesson-show-dl__grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 28px 32px;
    align-items: stretch;
    padding-bottom: 64px;
    color: rgba(255, 255, 255, 0.92);
}

@media (max-width: 991px) {
    .lesson-show-dl__grid {
        grid-template-columns: 1fr;
    }
}

.lesson-show-dl__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    height: 100%;
}

.lesson-show-dl__sidebar > .lesson-show-dl__panel:first-of-type {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.lesson-show-dl__sidebar > .lesson-show-dl__panel:first-of-type .lesson-show-dl__nav-list {
    flex: 1 1 auto;
    min-height: 0;
}

.lesson-show-dl__sidebar > .lesson-show-dl__cta {
    margin-top: auto;
}

.lesson-show-dl__panel {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 18px 16px 16px;
}

.lesson-show-dl__panel-title {
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.lesson-show-dl__nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: min(60vh, 520px);
    overflow-y: auto;
}

.lesson-show-dl__nav-list li + li {
    margin-top: 4px;
}

.lesson-show-dl__nav-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    line-height: 1.4;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 1px solid transparent;
}

.lesson-show-dl__nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.lesson-show-dl__nav-link.is-active {
    border-color: rgba(249, 212, 66, 0.45);
    background: rgba(249, 212, 66, 0.08);
    color: rgba(255, 255, 255, 0.98);
}

.lesson-show-dl__nav-num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.95);
}

.lesson-show-dl__nav-link.is-active .lesson-show-dl__nav-num {
    background: #f9d442;
    color: #12141a;
}

.lesson-show-dl__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.lesson-show-dl__download:hover {
    border-color: #f9d442;
    background: rgba(255, 255, 255, 0.06);
}

.lesson-show-dl__cta {
    text-align: center;
}

.lesson-show-dl__cta-text {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.lesson-show-dl__cta-link {
    display: inline-block;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 10px;
    transition: border-color 0.2s, background 0.2s;
}

.lesson-show-dl__cta-link:hover {
    border-color: #f9d442;
    background: rgba(255, 255, 255, 0.06);
}

.lesson-show-dl__article {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: rgba(255, 255, 255, 0.92);
}

.lesson-show-dl__article .lesson-show-dl__pager {
    margin-top: auto;
}

.lesson-show-dl__access-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(109, 153, 133, 0.45);
    background: rgba(109, 153, 133, 0.12);
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.lesson-show-dl__media {
    margin-bottom: 28px;
}

.lesson-show-dl__video {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a0b0d;
    aspect-ratio: 16 / 9;
}

.lesson-show-dl__video video,
.lesson-show-dl__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.lesson-show-dl__locked {
    padding: 28px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 28px;
}

.lesson-show-dl__locked p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.lesson-show-dl__locked-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lesson-show-dl__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    transition: border-color 0.2s, background 0.2s;
}

.lesson-show-dl__btn:hover {
    border-color: #f9d442;
    background: rgba(255, 255, 255, 0.06);
}

.lesson-show-dl__btn--gold {
    border-color: #f9d442;
    background: rgba(249, 212, 66, 0.12);
    color: #f9d442;
}

.lesson-show-dl__btn--gold:hover {
    background: rgba(249, 212, 66, 0.2);
    color: #fff;
}

.lesson-show-dl__lead {
    margin: 0 0 16px;
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.94);
}

.lesson-show-dl__desc {
    margin: 0 0 28px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
}

.lesson-show-dl__empty {
    margin: 0 0 24px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
}

.lesson-show-dl__pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
}

.lesson-show-dl__pager-col {
    flex: 1 1 auto;
    min-width: 0;
}

.lesson-show-dl__pager-col--center {
    text-align: center;
}

.lesson-show-dl__pager-col--end {
    text-align: right;
}

@media (max-width: 640px) {
    .lesson-show-dl__pager-col,
    .lesson-show-dl__pager-col--end {
        text-align: left;
    }
}

.lesson-show-dl__course-line {
    margin: 0 0 20px;
    font-size: 14px;
    opacity: 0.85;
}

.lesson-show-dl__course-line a {
    color: #f9d442;
    text-decoration: none;
}

.lesson-show-dl__course-line a:hover {
    text-decoration: underline;
}
