:root {
  --ink: #0b1110;
  --ink-soft: #121b18;
  --ink-card: #18231f;
  --paper: #f5f7f2;
  --surface: #ffffff;
  --line: #dce3dc;
  --muted: #64706a;
  --green: #00c96b;
  --green-dark: #007f47;
  --lime: #c9ff4a;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(11, 17, 16, .11);
  --radius: 18px;
  --shell: min(1240px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.shell--narrow { max-width: 850px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: 12px; left: 12px; padding: 12px 16px; color: var(--ink); background: var(--lime); border-radius: 10px; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.site-header { position: sticky; z-index: 50; top: 0; width: 100%; color: var(--white); background: rgba(11, 17, 16, .96); border-bottom: 1px solid rgba(255,255,255,.09); backdrop-filter: blur(16px); }
.site-header__inner { min-height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand img { width: auto; max-width: 255px; height: 46px; object-fit: contain; }
.brand__mark { width: 44px; height: 37px; display: grid; place-items: center; color: var(--ink); background: var(--green); border-radius: 50% 50% 48% 46%; box-shadow: -12px 6px 0 -5px var(--green), 12px 6px 0 -5px var(--green); }
.brand__mark span { font-weight: 900; font-size: 22px; }
.brand__copy { display: grid; text-transform: uppercase; font-style: normal; line-height: .9; letter-spacing: -.025em; }
.brand__copy strong { font-size: 14px; font-weight: 800; }
.brand__copy em { color: var(--green); font-size: 21px; font-weight: 900; font-style: normal; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav__list, .site-footer ul { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 10px 13px; color: #dbe3df; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav .current-menu-item a, .site-nav a.is-current { color: var(--white); background: rgba(255,255,255,.08); }
.header-search-button { width: 42px; height: 42px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border: 0; border-radius: 50%; cursor: pointer; }
.header-search-button svg, .catalog-controls svg, .hero-search svg, .download-button svg, .download-note svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-toggle { display: none; margin-left: auto; width: 42px; height: 42px; padding: 10px; border: 0; background: transparent; }
.nav-toggle > span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: var(--white); }

.search-dialog { width: min(760px, calc(100% - 28px)); padding: 0; color: var(--ink); background: var(--surface); border: 0; border-radius: 22px; box-shadow: var(--shadow); }
.search-dialog::backdrop { background: rgba(4, 8, 7, .8); backdrop-filter: blur(5px); }
.search-dialog__panel { padding: 30px; }
.search-dialog__top { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.search-dialog__top p { margin: 0; font-size: 25px; font-weight: 800; letter-spacing: -.035em; }
.search-dialog__top button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 25px; cursor: pointer; }
.live-search { margin-top: 24px; }
.live-search > label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.live-search > div:not(.search-results) { display: grid; grid-template-columns: 1fr auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.live-search input { min-width: 0; padding: 16px; border: 0; outline: none; }
.live-search button { padding: 0 22px; border: 0; color: var(--white); background: var(--green-dark); font-weight: 750; cursor: pointer; }
.search-dialog .search-results { display: grid; gap: 8px; margin-top: 16px; color: var(--muted); }
.search-dialog .search-results a { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 12px; padding: 8px; color: var(--ink); border-radius: 12px; text-decoration: none; }
.search-dialog .search-results a:hover { background: var(--paper); }
.search-dialog .search-results a span { width: 62px; height: 42px; display: grid; place-items: center; overflow: hidden; color: var(--green-dark); background: #e6f5ec; border-radius: 8px; font-size: 11px; font-weight: 900; }
.search-dialog .search-results img { width: 100%; height: 100%; object-fit: cover; }
.search-dialog .search-results strong { font-size: 14px; }

.home-hero { position: relative; overflow: hidden; color: var(--white); background: var(--ink); }
.home-hero::after { position: absolute; content: ""; width: 520px; height: 520px; top: -260px; right: -120px; border: 100px solid rgba(0, 201, 107, .12); border-radius: 50%; }
.home-hero__grid, .course-hero__grid { position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, #000, transparent 82%); }
.home-hero__inner { position: relative; z-index: 1; min-height: 660px; padding-block: 76px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); align-items: center; gap: 86px; }
.eyebrow { margin: 0 0 14px; color: var(--green-dark); font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.home-hero .eyebrow, .course-hero .eyebrow, .section-heading--light .eyebrow { color: var(--lime); }
.eyebrow > span { display: inline-block; width: 24px; height: 2px; margin: 0 9px 3px 0; background: currentColor; }
.home-hero h1 { max-width: 780px; margin: 0; font-size: clamp(48px, 6.3vw, 88px); line-height: .98; letter-spacing: -.065em; text-wrap: balance; }
.home-hero__lead { max-width: 650px; margin: 24px 0 0; color: #aebbb5; font-size: 19px; line-height: 1.65; }
.hero-search { max-width: 700px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 34px; padding: 7px 7px 7px 18px; color: #76827d; background: var(--white); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.24); }
.hero-search input { width: 100%; min-width: 0; padding: 13px 4px; border: 0; outline: 0; }
.hero-search button { padding: 14px 20px; color: var(--ink); background: var(--lime); border: 0; border-radius: 10px; font-weight: 800; cursor: pointer; }
.hero-stats { display: flex; gap: 30px; margin-top: 32px; }
.hero-stats > span { display: grid; }
.hero-stats strong { font-size: 22px; }
.hero-stats small { color: #8f9d97; font-size: 12px; }
.hero-featured { display: grid; gap: 10px; }
.hero-featured__label { display: flex; justify-content: space-between; padding: 0 4px 5px; color: #8f9d97; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.hero-featured__label span:first-child { color: var(--lime); font-weight: 800; }
.hero-mini-card { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 16px; padding: 10px; color: var(--white); background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 15px; text-decoration: none; transition: transform .2s, background .2s; }
.hero-mini-card:hover { transform: translateX(-5px); background: rgba(255,255,255,.1); }
.hero-mini-card__image { width: 110px; aspect-ratio: 16/9; display: grid; place-items: center; overflow: hidden; color: var(--ink); background: var(--green); border-radius: 10px; font-weight: 900; }
.hero-mini-card__image img { width: 100%; height: 100%; object-fit: cover; }
.hero-mini-card > span:nth-child(2) { min-width: 0; display: grid; gap: 6px; }
.hero-mini-card small { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero-mini-card strong { display: -webkit-box; overflow: hidden; font-size: 14px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-mini-card b { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }

.category-strip { background: var(--green); }
.category-strip__inner { min-height: 108px; display: grid; grid-template-columns: 185px 1fr; align-items: center; gap: 24px; }
.category-strip__heading { display: grid; gap: 8px; }
.category-strip__heading > span { font-size: 12px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.category-strip__heading > a { width: fit-content; padding: 0 0 3px; background: transparent; border: 0; border-bottom: 1px solid rgba(11,17,16,.5); border-radius: 0; font-size: 11px; }
.category-strip__heading > a b { transition: transform .2s; }
.category-strip__heading > a:hover { background: transparent; }
.category-strip__heading > a:hover b { transform: translateX(3px); }
.category-strip__items { display: flex; flex-wrap: wrap; gap: 8px; overflow: visible; padding: 14px 0; }
.category-strip__items a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; background: rgba(255,255,255,.34); border: 1px solid rgba(0,0,0,.08); border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 750; }
.category-strip__items a:hover { background: var(--white); }
.category-strip__items small { min-width: 22px; height: 22px; display: grid; place-items: center; background: rgba(11,17,16,.1); border-radius: 50%; font-size: 10px; }

.section { padding: 92px 0; }
.section--ink { color: var(--white); background: var(--ink-soft); }
.section--catalog { padding-top: 44px; min-height: 480px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1; letter-spacing: -.05em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1px solid currentColor; text-decoration: none; font-size: 13px; font-weight: 800; }
.text-link:hover span { transform: translateX(4px); }
.text-link span { transition: transform .2s; }
.catalog-cta { display: flex; justify-content: center; margin-top: 46px; }
.catalog-cta a { display: inline-flex; align-items: center; gap: 10px; padding: 15px 22px; color: var(--white); background: var(--green-dark); border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 800; transition: transform .2s, background .2s; }
.catalog-cta a:hover { transform: translateY(-2px); background: var(--ink); }
.course-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; }
.course-card { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .24s, box-shadow .24s; }
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-grid--dark .course-card { color: var(--white); background: var(--ink-card); border-color: rgba(255,255,255,.09); }
.course-card__image { position: relative; aspect-ratio: 16/9; display: block; overflow: hidden; background: #dfe9e2; }
.course-card__image > img { position: absolute; inset: 0; width: 100% !important; max-width: none; height: 100% !important; object-fit: cover; transition: transform .45s; }
.course-card:hover .course-card__image img { transform: scale(1.045); }
.course-card__placeholder { width: 100%; height: 100%; display: grid; place-content: center; text-align: center; color: var(--green-dark); background-image: linear-gradient(135deg, #e5f5e9, #d7efe3); }
.course-card__placeholder b { font-size: 30px; letter-spacing: -.06em; }
.course-card__placeholder small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; }
.course-card__arrow { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); background: var(--lime); border-radius: 50%; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.course-card__body { padding: 18px; }
.course-card__meta, .course-card__footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.course-card__meta a, .course-card__meta > span { overflow: hidden; color: var(--green-dark); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.course-grid--dark .course-card__meta a { color: var(--green); }
.course-card__meta small { flex: 0 0 auto; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.course-card h2 { margin: 12px 0 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; }
.course-card h2 a { display: -webkit-box; overflow: hidden; text-decoration: none; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.course-card__body > p { margin: 0 0 16px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.course-card__footer { padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; text-transform: uppercase; }
.course-grid--dark .course-card__footer { border-color: rgba(255,255,255,.1); }

.catalog-hero { padding: 78px 0 64px; color: var(--white); background: var(--ink); }
.catalog-hero h1 { margin: 0; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.06em; }
.catalog-hero > .shell > p:last-child { max-width: 650px; margin: 18px 0 0; color: #aebbb5; font-size: 17px; }
.breadcrumbs { display: flex; gap: 8px; margin-bottom: 34px; color: #8f9d97; font-size: 12px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.catalog-controls { padding: 22px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.catalog-controls form { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: end; }
.catalog-controls__search { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; }
.catalog-controls__search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; }
.catalog-controls form > label { display: grid; gap: 6px; }
.catalog-controls form > label span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-controls select { min-height: 48px; padding: 0 36px 0 12px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.catalog-controls form > button, .search-form button { min-height: 48px; padding: 0 20px; color: var(--white); background: var(--green-dark); border: 0; border-radius: 11px; font-weight: 800; cursor: pointer; }
.catalog-chips { display: flex; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 7px; padding-top: 16px; }
.catalog-chips a { flex: 0 0 auto; align-self: flex-start; padding: 8px 11px; color: var(--muted); background: var(--paper); border-radius: 999px; text-decoration: none; font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.catalog-chips a:hover, .catalog-chips a.is-active { color: var(--ink); background: var(--lime); }
.pagination { margin-top: 48px; }
.pagination ul { display: flex; justify-content: center; gap: 7px; padding: 0; list-style: none; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.pagination .current { color: var(--ink); background: var(--lime); border-color: var(--lime); font-weight: 800; }
.empty-state { grid-column: 1/-1; padding: 80px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

.course-hero { position: relative; overflow: hidden; padding: 72px 0; color: var(--white); background: var(--ink); }
.course-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr); align-items: center; gap: 64px; }
.course-hero__media { overflow: hidden; aspect-ratio: 16/9; background: var(--ink-card); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 28px 70px rgba(0,0,0,.36); }
.course-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.course-hero__placeholder { height: 100%; display: grid; place-content: center; text-align: center; color: var(--green); background-image: radial-gradient(circle at 50% 40%, rgba(0,201,107,.23), transparent 35%), linear-gradient(135deg, #17241f, #0b1110); }
.course-hero__placeholder span { font-size: 80px; font-weight: 900; line-height: 1; }
.course-hero__placeholder strong { letter-spacing: .3em; }
.course-categories { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.course-categories a { padding: 7px 10px; color: var(--lime); background: rgba(201,255,74,.09); border: 1px solid rgba(201,255,74,.2); border-radius: 999px; text-decoration: none; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.course-hero h1 { margin: 0; font-size: clamp(38px, 4.7vw, 65px); line-height: 1; letter-spacing: -.055em; text-wrap: balance; }
.course-author { margin: 18px 0 0; color: #aebbb5; }
.course-author strong { color: var(--white); }
.course-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 28px 0; overflow: hidden; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; }
.course-facts span { min-width: 0; display: grid; gap: 5px; padding: 14px; background: var(--ink); }
.course-facts small { color: #7f8d87; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.course-facts strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.course-lead { color: #b5c0bb; line-height: 1.65; }
.download-button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; max-width: 530px; padding: 15px 17px; color: var(--ink); background: var(--lime); border-radius: 13px; text-decoration: none; box-shadow: 0 18px 45px rgba(201,255,74,.13); transition: transform .2s, box-shadow .2s; }
.download-button:hover { transform: translateY(-3px); box-shadow: 0 24px 52px rgba(201,255,74,.2); }
.download-button > span { display: grid; }
.download-button small { font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.download-button strong { font-size: 16px; }
.download-button b { width: 32px; height: 32px; display: grid; place-items: center; background: rgba(11,17,16,.1); border-radius: 50%; }
.download-note { max-width: 540px; display: flex; align-items: flex-start; gap: 9px; margin: 12px 0 0; color: #7f8d87; font-size: 11px; line-height: 1.45; }
.download-note svg { flex: 0 0 auto; width: 16px; }
.download-unavailable { display: inline-block; padding: 14px 16px; color: #cbd3cf; background: rgba(255,255,255,.06); border-radius: 10px; }

.course-body { padding: 84px 0; }
.course-body__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 70px; }
.prose h1, .prose h2, .prose h3, .prose h4 { letter-spacing: -.035em; line-height: 1.15; }
.prose h2 { margin: 0 0 28px; font-size: clamp(30px, 4vw, 46px); }
.entry-content { color: #35403b; font-size: 16px; line-height: 1.8; }
.entry-content > * { max-width: 100%; }
.entry-content h1 { font-size: 32px; }
.entry-content h2 { margin-top: 2em; font-size: 27px; }
.entry-content h3 { margin-top: 1.7em; font-size: 22px; }
.entry-content a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content img { height: auto; border-radius: 12px; }
.entry-content iframe { max-width: 100%; }
.course-summary { margin: 0 0 38px; }
.course-summary h2 { margin: 0 0 18px; font-size: 27px; }
.course-summary__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.course-summary table { width: 100%; border-collapse: collapse; background: var(--surface); }
.course-summary th, .course-summary td { width: 50%; padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.course-summary th { color: var(--ink); background: #e9f6ed; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.course-summary td { color: #35403b; font-size: 14px; line-height: 1.45; }
.course-summary td:first-child { color: var(--muted); font-weight: 700; }
.course-summary tr:last-child td { border-bottom: 0; }
.course-aside { position: sticky; top: 104px; }
.course-aside > div { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 44px rgba(11,17,16,.06); }
.course-aside h2 { margin: 0 0 20px; font-size: 26px; letter-spacing: -.04em; }
.course-aside dl { margin: 0; }
.course-aside dl div { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.course-aside dt { color: var(--muted); font-size: 12px; }
.course-aside dd { margin: 0; text-align: right; font-size: 12px; font-weight: 750; }
.related { padding-top: 0; }

.page-main { padding: 72px 0 100px; }
.page-prose { padding: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.page-prose > h1 { margin: 0 0 32px; font-size: clamp(42px, 6vw, 68px); }
.not-found { min-height: 70vh; padding: 90px 0; display: grid; place-items: center; text-align: center; }
.not-found .shell > span { display: block; color: var(--green); font-size: 110px; font-weight: 950; line-height: .8; letter-spacing: -.08em; opacity: .25; }
.not-found h1 { margin: 18px 0; font-size: clamp(38px, 6vw, 64px); letter-spacing: -.06em; }
.not-found p:not(.eyebrow) { color: var(--muted); }
.search-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; max-width: 580px; margin: 30px auto; }
.search-form input { width: 100%; height: 48px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }

.site-footer { padding: 68px 0 24px; color: #c2ccc7; background: #070c0b; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .5fr); gap: 80px; }
.brand--footer { margin-bottom: 18px; }
.site-footer p { max-width: 460px; color: #7f8c86; font-size: 13px; line-height: 1.7; }
.site-footer h2 { margin: 0 0 18px; color: var(--white); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { display: grid; align-items: start; gap: 10px; }
.site-footer li { list-style: none; }
.site-footer li a { color: #9ba8a2; text-decoration: none; font-size: 13px; }
.site-footer li a:hover { color: var(--green); }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 20px; color: #5d6963; border-top: 1px solid rgba(255,255,255,.08); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }

.categories-hero { padding-bottom: 72px; }
.categories-directory { padding-top: 54px; }
.categories-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-directory-card { min-width: 0; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.category-directory-card:hover { transform: translateY(-3px); border-color: #b8cec0; box-shadow: 0 15px 35px rgba(11,17,16,.08); }
.category-directory-card--all { color: var(--white); background: var(--green-dark); border-color: var(--green-dark); }
.category-directory-card__icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--green-dark); background: #e4f6e9; border-radius: 12px; font-size: 18px; font-weight: 900; }
.category-directory-card--all .category-directory-card__icon { color: var(--ink); background: var(--lime); }
.category-directory-card > span:nth-child(2) { min-width: 0; display: grid; gap: 5px; }
.category-directory-card strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; }
.category-directory-card small { color: var(--muted); font-size: 11px; }
.category-directory-card--all small { color: #c7dbd1; }
.category-directory-card > b { font-size: 18px; }

@media (max-width: 1080px) {
  .home-hero__inner { grid-template-columns: 1fr 340px; gap: 48px; }
  .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .course-hero__inner { gap: 38px; }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header__inner { min-height: 68px; }
  .nav-toggle { display: block; cursor: pointer; }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; margin: 0; padding: 12px 20px 22px; background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.09); }
  .site-nav.is-open { display: block; }
  .site-nav__list { display: grid; }
  .site-nav a { padding: 13px; }
  .header-search-button { margin-left: 0; }
  .home-hero__inner { min-height: auto; grid-template-columns: 1fr; padding-block: 66px; }
  .home-hero h1 { font-size: clamp(44px, 12vw, 68px); }
  .hero-featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-featured__label { grid-column: 1/-1; }
  .hero-mini-card { grid-template-columns: 1fr; align-items: start; }
  .hero-mini-card__image { width: 100%; }
  .hero-mini-card > b { display: none; }
  .category-strip__inner { grid-template-columns: 1fr; gap: 0; padding-top: 20px; }
  .category-strip__heading { grid-template-columns: 1fr auto; align-items: center; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-hero__inner { grid-template-columns: 1fr; }
  .course-hero__media { max-width: 620px; }
  .course-body__grid { grid-template-columns: 1fr; }
  .course-aside { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 44px; }
  .site-footer__grid > div:first-child { grid-column: 1/-1; }
  .categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --shell: min(100% - 28px, 1240px); --radius: 15px; }
  .brand__copy strong { font-size: 11px; }
  .brand__copy em { font-size: 17px; }
  .brand__mark { width: 37px; height: 31px; }
  .header-search-button { width: 38px; height: 38px; }
  .home-hero__inner { padding-block: 52px; }
  .home-hero h1 { font-size: 42px; }
  .home-hero__lead { font-size: 16px; }
  .hero-search { grid-template-columns: auto 1fr; }
  .hero-search button { grid-column: 1/-1; }
  .hero-stats { gap: 16px; justify-content: space-between; }
  .hero-stats strong { font-size: 18px; }
  .hero-featured { grid-template-columns: 1fr; }
  .hero-mini-card { grid-template-columns: 92px 1fr; }
  .hero-mini-card__image { width: 92px; }
  .section { padding: 66px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .course-grid { grid-template-columns: 1fr; }
  .catalog-hero { padding: 58px 0 48px; }
  .catalog-controls form { grid-template-columns: 1fr; }
  .course-hero { padding: 44px 0 54px; }
  .course-hero__inner { gap: 30px; }
  .course-hero h1 { font-size: 39px; }
  .course-facts { grid-template-columns: repeat(2, 1fr); }
  .course-body { padding: 62px 0; }
  .page-prose { padding: 28px 20px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > div:first-child { grid-column: auto; }
  .site-footer__bottom { align-items: flex-start; flex-direction: column; }
  .search-dialog__panel { padding: 22px; }
  .live-search > div:not(.search-results) { grid-template-columns: 1fr; }
  .live-search button { min-height: 46px; }
  .categories-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
