.learning-paths-page {
    display: grid;
    gap: 0;
}

.learning-path-tone-violet {
    --path-accent: #6b5cf0;
    --path-ink: #5848d8;
    --path-soft: #f4f1ff;
    --path-line: #ded6ff;
}

.learning-path-tone-cyan {
    --path-accent: #0b8298;
    --path-ink: #087489;
    --path-soft: #eefbfd;
    --path-line: #c7edf4;
}

.learning-path-tone-rose {
    --path-accent: #bb3f72;
    --path-ink: #a83263;
    --path-soft: #fff2f7;
    --path-line: #f5cddd;
}

.learning-path-tone-gold {
    --path-accent: #9b6918;
    --path-ink: #8a5a12;
    --path-soft: #fff8e8;
    --path-line: #f2dfae;
}

.learning-path-tone-green {
    --path-accent: #248458;
    --path-ink: #1d7a4c;
    --path-soft: #eefbf4;
    --path-line: #cbeedb;
}

.learning-path-tone-blue {
    --path-accent: #416ac1;
    --path-ink: #3153a4;
    --path-soft: #eef3ff;
    --path-line: #ccd9f5;
}

.learning-paths-header {
    margin-bottom: 16px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--soft-line);
}

.learning-paths-header h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.learning-paths-header p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.learning-path-tabs {
    max-width: 100%;
    flex-wrap: wrap;
    overflow: visible;
    margin-bottom: 16px;
    padding: 0;
}

.learning-path-tab {
    min-height: 34px;
    padding-inline: 14px;
    border-color: var(--path-line);
    background: var(--path-soft);
    color: var(--path-ink);
    font-size: 12.5px;
}

.learning-path-tab:hover {
    border-color: var(--path-accent);
    background: var(--path-soft);
    color: var(--path-ink);
}

.learning-path-tab.active {
    border-color: var(--path-accent);
    background: var(--path-accent);
    color: #fff;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--path-accent) 22%, transparent);
}

.learning-path-tab-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
}

.learning-path-tab-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.learning-path-panel {
    min-width: 0;
}

.learning-path-summary {
    min-height: 92px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-card);
}

.learning-path-summary-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--path-line);
    border-radius: 10px;
    background: var(--path-soft);
    color: var(--path-ink);
}

.learning-path-summary-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.learning-path-summary-copy {
    min-width: 0;
}

.learning-path-summary-copy h3 {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.learning-path-summary-copy p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.learning-path-count {
    display: inline-flex;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.learning-path-sequence-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 20px 0 10px;
}

.learning-path-sequence-head h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.learning-path-sequence-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.learning-path-course {
    max-width: 190px;
    flex: 0 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learning-path-panel .lesson-index {
    border: 1px solid var(--path-line);
    background: var(--path-soft);
    color: var(--path-ink);
}

.learning-path-panel .learning-path-lesson {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.learning-path-panel .learning-path-lesson:hover {
    border-color: var(--path-line);
    box-shadow: 0 9px 24px color-mix(in srgb, var(--path-accent) 8%, transparent);
}

.learning-path-lesson .lesson-action {
    min-width: 132px;
}

.learning-path-lesson .learning-path-action {
    width: 132px;
    min-height: 34px;
    padding: 0 13px;
    border-color: #0c0c0f;
    border-radius: 8px;
    background: #0c0c0f;
    font-size: 13px;
}

.learning-path-lesson .learning-path-action:hover {
    border-color: #26262b;
    background: #26262b;
    box-shadow: 0 8px 18px rgba(15, 15, 20, 0.14);
}

.learning-path-noscript {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .learning-paths-header {
        margin-bottom: 12px;
        padding-bottom: 14px;
    }

    .learning-paths-header h2 {
        font-size: 26px;
    }

    .learning-path-tabs {
        width: calc(100% + 16px);
        max-width: none;
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -16px;
        margin-bottom: 14px;
        padding: 0 16px 5px 0;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

    .learning-path-tabs::-webkit-scrollbar {
        display: none;
    }

    .learning-path-tab {
        scroll-snap-align: start;
    }

    .learning-path-summary {
        min-height: 0;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 12px;
        padding: 15px;
    }

    .learning-path-summary-copy h3 {
        font-size: 18px;
    }

    .learning-path-count {
        grid-column: 2;
        justify-self: start;
    }

    .learning-path-sequence-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        margin-top: 17px;
    }

    .learning-path-lesson .lesson-title-line {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .learning-path-course {
        justify-self: start;
        max-width: 100%;
    }

    .learning-path-lesson .lesson-title-line h3 {
        line-height: 1.45;
        white-space: normal;
    }

    .learning-path-lesson .lesson-action {
        min-width: 0;
    }

    .learning-path-lesson .learning-path-action {
        width: min(100%, 180px);
    }

}
