@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/manrope-latin-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Source Serif 4";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/assets/fonts/source-serif-4-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
:root[data-theme="light"] {
    --bg: #F7FAFF;
    --bg-hero: #F7FAFF;
    --bg-catalog: #EEF3FF;
    --surface: #FFFFFF;
    --ink: #14221F;
    --muted: #4A5A55;
    --line: #D5E3D8;
    --pine: #1A3D34;
    --pine-2: #24574A;
    --mint: #2F8A6A;
    --clay: #C45C3A;
    --cta: #1A3D34;
    --cta-hover: #24574A;
    --cta-text: #FFFFFF;
    --badge-format-bg: #D8F3E4;
    --badge-format-ink: #0E6A44;
    --focus: #1A3D34;
    --shadow: 0 8px 28px rgba(20, 34, 31, 0.08);
    --shadow-hover: 0 14px 36px rgba(20, 34, 31, 0.12);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    --serif: "Source Serif 4", Georgia, serif;
    --sans: Manrope, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
    --topic-programming: linear-gradient(145deg, #4F46E5, #06B6D4);
    --topic-data-ai: linear-gradient(145deg, #7C3AED, #EC4899);
    --topic-design: linear-gradient(145deg, #F97316, #FACC15);
    --topic-marketing: linear-gradient(145deg, #EF4444, #F97316);
    --topic-business: linear-gradient(145deg, #0EA5E9, #22C55E);
    --topic-languages: linear-gradient(145deg, #10B981, #84CC16);
    --topic-cybersecurity: linear-gradient(145deg, #0F766E, #134E4A);
    --topic-mobile: linear-gradient(145deg, #2563EB, #38BDF8);
    --topic-product: linear-gradient(145deg, #D97706, #F59E0B);
    --topic-finance: linear-gradient(145deg, #047857, #34D399);
    --topic-video: linear-gradient(145deg, #DB2777, #F472B6);
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #0F1715;
    --bg-hero: #0F1715;
    --bg-catalog: #15231E;
    --surface: #1A2421;
    --ink: #E8EEEA;
    --muted: #A8B7B0;
    --line: #2C3B36;
    --pine: #D7EBE3;
    --pine-2: #B7E0D2;
    --cta: #1F6F5B;
    --cta-hover: #2F8A6A;
    --cta-text: #FFFFFF;
    --badge-format-bg: #143528;
    --badge-format-ink: #9BE7C4;
    --focus: #8FCBB4;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 14px 36px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
}
body.public {
    background: var(--bg);
    transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.theme-switch {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
}
.theme-switch button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 4px 10px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.theme-switch button svg { width: 16px; height: 16px; flex: 0 0 auto; }
:root[data-theme="light"] .theme-switch [data-theme-choice="light"],
:root[data-theme="dark"] .theme-switch [data-theme-choice="dark"] {
    background: var(--cta);
    color: var(--cta-text);
}
@media (max-width: 639px) {
    .theme-switch button { min-width: 36px; padding: 6px; }
    .theme-switch button span { display: none; }
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: var(--pine);
    font-family: var(--serif);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-decoration: none;
    min-height: 44px;
}
.mark { width: 32px; height: 32px; flex: 0 0 auto; }
.nav { display: flex; gap: 8px; }
.nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.nav a:hover { background: rgba(26, 61, 52, 0.06); }
.nav a[aria-current="page"] { background: var(--bg-catalog); color: var(--pine); }
.nav-toggle {
    display: none;
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--pine);
    font-weight: 700;
    cursor: pointer;
}

.hero {
    padding: 48px 0 32px;
    background:
        radial-gradient(circle at 8% 12%, rgba(79, 70, 229, 0.22), transparent 26rem),
        radial-gradient(circle at 92% 8%, rgba(236, 72, 153, 0.2), transparent 24rem),
        radial-gradient(circle at 72% 88%, rgba(34, 197, 94, 0.18), transparent 22rem),
        var(--bg-hero);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 32px;
    align-items: center;
}
.hero h1, .page-title, .course-copy h1 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    font-weight: 600;
}
.lede { margin: 0; max-width: 42rem; font-size: 1.08rem; color: var(--ink); }
.hero-art { min-height: 280px; }
.hero-art svg { width: 100%; height: auto; display: block; }
.notice, .step, .panel, .course-copy, .filters-drawer, .catalog-table, .empty-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}
.notice {
    margin: 24px 0 0;
    padding: 16px 18px;
    background: #F7F4EC;
    color: var(--ink);
}
.notice .hint { margin: 8px 0 0; }
.search {
    display: flex;
    gap: 10px;
    margin-top: 24px;
    max-width: 640px;
}
.search-field {
    position: relative;
    flex: 1;
}
.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}
.search input, .stack input, .stack textarea, .stack select, .filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: var(--radius-pill);
    padding: 12px 16px;
    min-height: 48px;
    color: var(--ink);
}
.search input { padding-left: 42px; }
.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--cta);
    color: var(--cta-text);
    text-decoration: none;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 180ms ease;
}
.btn:hover { background: var(--cta-hover); box-shadow: var(--shadow-hover); }
.btn.ghost {
    background: var(--surface);
    color: var(--pine);
    border: 1px solid var(--line);
    box-shadow: none;
}
.btn.ghost:hover { background: var(--bg-catalog); }

.topic-tiles {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
    margin-top: 32px;
}
.topic-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 132px;
    padding: 16px;
    border-radius: var(--radius-md);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.topic-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 18, 40, 0.42), rgba(15, 18, 40, 0.08));
}
.topic-tile.all::before { display: none; }
.topic-tile .topic-icon, .topic-tile strong, .topic-tile .tile-count { position: relative; z-index: 1; }
.topic-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.topic-tile.active { outline: 2px solid var(--pine); outline-offset: 3px; }
.topic-tile.all { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.topic-tile.programming { background: var(--topic-programming); }
.topic-tile.data-ai { background: var(--topic-data-ai); }
.topic-tile.design { background: var(--topic-design); }
.topic-tile.marketing { background: var(--topic-marketing); }
.topic-tile.business { background: var(--topic-business); }
.topic-tile.languages { background: var(--topic-languages); }
.topic-tile.cybersecurity { background: var(--topic-cybersecurity); }
.topic-tile.mobile { background: var(--topic-mobile); }
.topic-tile.product { background: var(--topic-product); }
.topic-tile.finance { background: var(--topic-finance); }
.topic-tile.video { background: var(--topic-video); }
.topic-tile strong { font-size: 1rem; line-height: 1.2; letter-spacing: -0.02em; }
.tile-count { margin-top: auto; font-size: 0.82rem; font-weight: 600; opacity: 0.92; }
.topic-icon { width: 24px; height: 24px; }

#courses { scroll-margin-top: 88px; }
.catalog-band { background: var(--bg-catalog); padding: 48px 0 64px; }
.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}
.catalog-head h2, .section h2, .panel h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 600;
}
.count-line { margin: 8px 0 0; color: var(--ink); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; }
.view-switch { display: flex; gap: 8px; }
.view-switch button {
    min-height: 44px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
}
.view-switch button[aria-pressed="true"] { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.filters-drawer { padding: 8px 12px 12px; margin-bottom: 20px; }
.filters-drawer summary {
    display: none;
    min-height: 44px;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
}
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}
.filter-bar label {
    display: grid;
    gap: 6px;
    min-width: 140px;
    flex: 1 1 140px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}
.filter-bar select { border-radius: var(--radius-sm); }
.filter-bar .btn { flex: 0 0 auto; }

.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 200ms ease, box-shadow 200ms ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.card:hover, .card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover), 0 0 0 2px var(--c1), 0 0 18px color-mix(in srgb, var(--c1) 45%, transparent);
    animation: card-glow 1.6s ease-in-out infinite;
}
.cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 16 / 10;
    padding: 14px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
}
.cover-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(8, 16, 32, 0.72), rgba(8, 16, 32, 0.08) 58%),
        linear-gradient(145deg, var(--c1), var(--c2));
    transition: transform 200ms ease;
}
.cover-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1.1px, transparent 1.1px);
    background-size: 14px 14px;
}
.card:hover .cover-bg { transform: scale(1.03); }
.cover-motif { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cover-motif svg, .topic-tile .motif { width: 100%; height: 100%; display: block; }
.topic-tile .cover-motif { z-index: 0; }
.motif-blob { filter: blur(12px); }
.cover-icon, .cover-provider { position: relative; z-index: 1; }
.cover-icon { position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; }
.cover-icon svg { width: 28px; height: 28px; }
.cover-provider { font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 18px; flex: 1; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
}
.badge-format { background: var(--badge-format-bg); color: var(--badge-format-ink); border-color: transparent; }
.card-title { margin: 0; font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.02em; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.school { color: var(--muted); font-size: 0.92rem; }
.card-desc, .price-note {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}
.card-desc { -webkit-line-clamp: 3; color: var(--ink); }
.price-note { -webkit-line-clamp: 2; color: var(--muted); font-size: 0.82rem; }
.card-body .btn { width: 100%; margin-top: auto; }
.ribbon {
    align-self: flex-start;
    background: #fff1dc;
    color: #8a4b12;
    border-radius: var(--radius-pill);
    padding: 3px 8px;
    font-size: 0.78rem;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.catalog-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.catalog-table th, .catalog-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.catalog-table th {
    position: static;
    background: var(--surface);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.catalog-table tr:last-child td { border-bottom: 0; }
.catalog-table a:not(.btn) { font-weight: 700; text-decoration: none; }
.catalog-table a:not(.btn):hover { text-decoration: underline; }
.catalog-table .btn { min-height: 44px; padding: 8px 14px; white-space: nowrap; }
.clip { max-width: 220px; color: var(--muted); font-size: 0.88rem; }
.empty-box { padding: 24px; color: var(--muted); }

.section { padding: 48px 0 64px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.step { padding: 18px; }
.step h2, .step h3, .step strong { display: block; margin: 8px 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.03em; }
.step p, .panel p { margin: 0; }
.step-icon { width: 28px; height: 28px; color: var(--pine); }
.course {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    padding: 36px 0 70px;
    align-items: start;
}
.course-cover { min-height: 320px; border-radius: var(--radius-lg); aspect-ratio: auto; }
.course-copy { padding: 24px; }
.course-copy .btn { margin-top: 8px; }
.meta { color: var(--muted); margin: 0 0 8px; }
.hint { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); background: var(--bg); }
.site-footer a { color: var(--pine); }
.languages-label { margin: 18px 0 8px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; }
.langs { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.langs a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.langs a.active { color: var(--ink); font-weight: 700; }

.admin-top { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 18px; }
.login-box { width: min(440px, 100%); margin: 12vh auto; padding: 24px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.status { border-radius: var(--radius-pill); padding: 3px 8px; background: #ece7df; }
.status.on { background: var(--badge-format-bg); color: var(--badge-format-ink); }
.panels { display: grid; gap: 14px; margin-top: 16px; }
.stack { display: grid; gap: 8px; }
.plus { margin-top: 8px; }
.error { color: #9d3e18; margin: 0 0 10px; }
.panel { padding: 18px; }
.kicker, .eyebrow { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

body.admin { background: #f3efe6; color: #1c1915; font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; }
body.admin .site-header { position: static; background: #1b3330; color: #f7f3ea; border-bottom: 0; }
body.admin .logo, body.admin .nav a { color: #f7f3ea; }
body.admin .nav a:hover, body.admin .nav a[aria-current="page"] { background: transparent; color: #fff; }
body.admin .page-title { font-family: Georgia, serif; }

@media (max-width: 980px) {
    .hero-grid, .steps, .course { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .catalog-table th { top: 0; }
}
@media (max-width: 680px) {
    .nav-toggle { display: inline-flex; padding: 8px 12px; }
    .header-row { flex-wrap: nowrap; }
    .logo { font-size: 1.25rem; gap: 8px; }
    .brand { gap: 8px; }
    .nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        flex-direction: column;
        padding: 8px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
    }
    .nav.is-open { display: flex; }
    .grid, .search, .admin-top, .catalog-head { display: grid; }
    .grid { grid-template-columns: 1fr; }
    .hero { padding-top: 32px; }
    .topic-tiles {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .topic-tile { flex: 0 0 168px; }
    .filters-drawer summary { display: flex; }
    .filters-drawer:not([open]) > .filter-bar { display: none; }
    .filter-bar .btn { width: 100%; }
}
@media (min-width: 681px) {
    .filters-drawer:not([open]) > .filter-bar { display: flex !important; }
}
@keyframes card-glow {
    0%, 100% { box-shadow: var(--shadow-hover), 0 0 0 2px var(--c1), 0 0 16px color-mix(in srgb, var(--c1) 40%, transparent); }
    50% { box-shadow: var(--shadow-hover), 0 0 0 2px var(--c2), 0 0 28px color-mix(in srgb, var(--c2) 55%, transparent); }
}
[hidden] { display: none !important; }
.filter-dock {
    position: sticky;
    top: 76px;
    z-index: 12;
    margin: 0 0 20px;
    padding: 8px 0 12px;
    background: color-mix(in srgb, var(--bg) 84%, transparent);
    backdrop-filter: blur(12px);
}
.topic-pills { display: flex; gap: 8px; overflow-x: auto; flex-wrap: nowrap; padding: 2px 2px 8px; }
.pill, .pill-main, .pill-clear, .reset-link, .seg button, .pop button {
    font: inherit;
    cursor: pointer;
}
.pill, .pill-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: none;
}
.pill { flex: 0 0 auto; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--dot, var(--pine)); }
.pill.is-on {
    color: #fff;
    border-color: transparent;
    background-image: linear-gradient(rgba(15, 18, 40, 0.22), rgba(15, 18, 40, 0.22)), var(--topic, var(--pine));
    box-shadow: var(--shadow);
}
.pill.is-on .dot { background: #fff; }
.pill.programming { --topic: var(--topic-programming); }
.pill.programming:hover { border-color: #4F46E5; color: #4F46E5; }
.pill.data-ai { --topic: var(--topic-data-ai); }
.pill.data-ai:hover { border-color: #7C3AED; color: #7C3AED; }
.pill.design { --topic: var(--topic-design); }
.pill.design:hover { border-color: #F97316; color: #C2410C; }
.pill.marketing { --topic: var(--topic-marketing); }
.pill.marketing:hover { border-color: #EF4444; color: #DC2626; }
.pill.business { --topic: var(--topic-business); }
.pill.business:hover { border-color: #0EA5E9; color: #0369A1; }
.pill.languages { --topic: var(--topic-languages); }
.pill.languages:hover { border-color: #10B981; color: #047857; }
.pill.cybersecurity { --topic: var(--topic-cybersecurity); }
.pill.cybersecurity:hover { border-color: #0F766E; color: #0F766E; }
.pill.mobile { --topic: var(--topic-mobile); }
.pill.mobile:hover { border-color: #2563EB; color: #2563EB; }
.pill.product { --topic: var(--topic-product); }
.pill.product:hover { border-color: #D97706; color: #B45309; }
.pill.finance { --topic: var(--topic-finance); }
.pill.finance:hover { border-color: #047857; color: #047857; }
.pill.video { --topic: var(--topic-video); }
.pill.video:hover { border-color: #DB2777; color: #BE185D; }
.pill.is-on:hover, .pill.is-on:hover .dot { color: #fff; background-color: transparent; }
.pill.is-on:hover { color: #fff; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-spacer { flex: 1 1 auto; }
.drop { position: relative; }
.pill-pair { display: inline-flex; align-items: center; }
.pill-clear {
    height: 44px;
    margin-left: -12px;
    padding: 0 12px 0 4px;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 999px 999px 0;
    background: var(--bg-catalog);
    color: var(--ink);
    font-weight: 700;
}
.pill-pair .pill-main { border-radius: 999px 0 0 999px; }
.pill-pair:not(:has(.pill-clear:not([hidden]))) .pill-main, .pill-clear[hidden] + .pill-main { border-radius: 999px; }
.caret { color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .pop button[data-sort] {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
}
.seg button[aria-pressed="true"], .pop button[data-sort][aria-pressed="true"] { background: var(--pine); color: #fff; border-color: var(--pine); }
.pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 6;
    width: min(280px, calc(100vw - 40px));
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
}
.drop-end .pop { left: auto; right: 0; }
.lang-search {
    width: 100%;
    min-height: 40px;
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
}
.lang-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.lang-list label { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 2px; font-weight: 600; }
.reset-link {
    border: 0;
    background: transparent;
    color: var(--pine);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    min-height: 44px;
}
.view-switch {
    position: relative;
    display: inline-flex;
    gap: 0;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
}
.view-glider {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 4px);
    border-radius: var(--radius-pill);
    background: var(--pine);
    transition: transform 180ms ease;
}
.view-switch.is-table .view-glider { transform: translateX(100%); }
.view-switch button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    min-width: 92px;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--ink);
    font-weight: 700;
}
.view-switch button[aria-pressed="true"] { color: #fff; background: transparent; border-color: transparent; }
.view-switch svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.empty-box { display: grid; justify-items: center; gap: 12px; padding: 36px 20px; text-align: center; }
.empty-art { width: min(220px, 70%); height: auto; }
.site-header, .site-footer, .notice, .panel, .course-copy, .filters-drawer, .catalog-table, .empty-box, .nav, .nav a, .search input, .filter-bar select, .nav-toggle, .theme-switch, .theme-switch button, .shelf-btn {
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body.public,
    .card, .card:hover, .card:focus-within, .topic-tile, .topic-tile:hover, .btn, .cover-bg, .card:hover .cover-bg, .view-glider,
    .site-header, .site-footer, .notice, .panel, .course-copy, .filters-drawer, .nav, .nav a, .theme-switch, .theme-switch button {
        transition: none;
        transform: none;
        animation: none;
    }
    .card:hover, .card:focus-within {
        box-shadow: var(--shadow), 0 0 0 2px var(--c1);
    }
}
:root[data-theme="dark"] .hero {
    background:
        radial-gradient(circle at 8% 12%, rgba(79, 70, 229, 0.35), transparent 24rem),
        radial-gradient(circle at 90% 0%, rgba(236, 72, 153, 0.28), transparent 20rem),
        #0F1715;
}
:root[data-theme="dark"] .notice { background: #24312C; }
:root[data-theme="dark"] .topic-tile.all { background: var(--surface); color: var(--ink); }

.header-row .compact-search { display: none; margin: 0; flex: 1 1 280px; max-width: 440px; }
.header-row .compact-search input, .header-row .compact-search .btn { min-height: 44px; }
.hero .search input, .hero .search .btn { min-height: 56px; }
body.public .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); }
.nav-label { margin: 12px 8px 4px; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav-topics, .nav-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-topics a, .nav-langs a { min-height: 44px; }
.nav-extra .search { margin-top: 8px; max-width: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(160px, 0.7fr) minmax(0, 1.4fr); gap: 28px 32px; align-items: start; }
.footer-brand strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; letter-spacing: -0.03em; }
.footer-note { margin: 12px 0 0; max-width: 36rem; color: var(--muted); }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-links a { min-height: 36px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.shelf { padding: 12px 0 8px; }
.shelf-head, .shelf-tools { display: flex; align-items: center; gap: 10px; }
.shelf-head { justify-content: space-between; }
.shelf-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.03em; line-height: 1.2; }
.see-all { color: var(--pine); font-weight: 700; }
.shelf-btn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink); font-size: 1.4rem; cursor: pointer; }
.shelf-row { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 16px 2px 12px; }
.shelf-row .card { flex: 0 0 min(280px, 82vw); scroll-snap-align: start; }
.crumbs { display: block; margin: 0 0 14px; color: var(--muted); font-size: 0.82rem; font-weight: 600; line-height: 1.4; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 0; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.crumbs li:not(:last-child)::after { content: "›"; margin: 0 8px; color: var(--muted); font-weight: 500; }
.crumbs a { color: var(--pine); font-weight: 700; text-decoration: none; }
.crumbs [aria-current="page"] { display: inline-block; max-width: min(100%, 36rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fine-print { margin: 10px 0 0; max-width: 40rem; color: var(--muted); font-size: 0.82rem; }
.about-actions { margin: 8px 0 0; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    padding: 20px;
    color: var(--ink);
}
.contact-card h2 { margin: 12px 0 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.contact-card p { margin: 0 0 8px; }
.contact-card a { color: var(--pine); font-weight: 700; }
.contact-icon { width: 28px; height: 28px; color: var(--pine); display: block; }
.contact-reply { margin-top: 20px; }
.topic-intro { max-width: 46rem; margin: 8px 0 8px; }
.topic-intro p { margin: 0 0 12px; }
.topic-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.topic-links a { color: var(--pine); font-weight: 700; }
.more-link { margin: 4px 0 0; }
.more-link a { color: var(--pine); font-weight: 700; }
.legal-doc { padding: 28px 0 48px; }
.legal-doc .wrap { max-width: 760px; }
.legal-doc h1 { margin: 0 0 8px; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.15; }
.legal-date { margin: 0 0 18px; color: var(--muted); }
.legal-toc { margin: 18px 0 28px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; }
.legal-toc li { margin: 4px 0; }
.legal-toc a { color: var(--pine); font-weight: 700; }
.legal-doc section { margin: 0 0 22px; }
.legal-doc h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.25; }
.legal-doc p, .legal-doc li { line-height: 1.6; }
.legal-facts { margin: 8px 0 0; padding-left: 1.2rem; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0; }
.legal-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal-table th { background: color-mix(in srgb, var(--bg-catalog) 70%, var(--surface)); }
.legal-kind { color: var(--muted); }
.course-page { padding-bottom: 12px; }
.trust-names { margin: 22px 0 0; color: var(--muted); }
.trust .trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 681px) {
    .header-row .compact-search { display: flex; }
    .nav-extra { display: none; }
    .catalog-table th { position: sticky; top: 210px; z-index: 2; }
}
@media (max-width: 980px) {
    .footer-grid, .trust .trust-grid, .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    .nav.is-open { max-height: calc(100dvh - 88px); overflow: auto; z-index: 30; }
    body.menu-open { overflow: hidden; }
}
.partner-mark {
    display: inline-flex;
    align-items: center;
    margin-right: 6px;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--pine) 12%, var(--surface));
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.filter-note { margin: 8px 0 0; color: var(--muted); font-size: 0.85rem; }
.path-list, .path-steps { display: grid; gap: 16px; }
.path-card, .path-steps li, .quiz fieldset, .quiz-result {
    margin: 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}
.path-card h2, .path-steps h2 { margin: 0 0 8px; font-size: 1.25rem; }
.path-steps { list-style: none; padding-left: 0; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz { display: grid; gap: 14px; }
.quiz fieldset { border: 1px solid var(--line); }
.quiz legend { padding: 0 6px; font-weight: 700; }
.quiz-option { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; }
.quiz-result { margin-top: 22px; }
.quiz-result .grid { margin-top: 16px; }
@media (max-width: 680px) {
    .path-card, .path-steps li, .quiz fieldset { padding: 14px; }
}
