/* Єдина палітра каталогів: токени походять від дизайн-системи --ks-*,
   запасні значення збережено для випадку, якщо design-system не завантажено. */
body.catalog-unified {
    --catalog-ink: var(--ks-text, #1c3032);
    --catalog-muted: var(--ks-muted, #617274);
    --catalog-accent: var(--ks-accent, #087c71);
    --catalog-border: var(--ks-border, #dce5e3);
    --catalog-surface: var(--ks-surface, #fff);
    --catalog-soft: var(--ks-surface-soft, #f2f6f4);
    --catalog-focus: var(--ks-focus-ring, rgba(8, 124, 113, .2));
    --catalog-radius: 12px;
    --catalog-control-min-h: 44px;
}

:root[data-theme="dark"] body.catalog-unified {
    --catalog-ink: var(--ks-text, #edf4f3);
    --catalog-muted: var(--ks-muted, #a9b8c4);
    --catalog-accent: var(--ks-accent, #73dfca);
    --catalog-border: var(--ks-border, rgba(255, 255, 255, .13));
    --catalog-surface: var(--ks-surface, #182936);
    --catalog-soft: var(--ks-surface-soft, #203542);
    --catalog-focus: var(--ks-focus-ring, rgba(115, 223, 202, .2));
}

/* Спільні примітиви публічних каталогів/сторінок (похідні від --ks-*).
   Увага: не змінювати еталони (/ , /service-automation, /disciplines, /tactical-symbols). */
body.catalog-unified :is(.library-book-page, .library-compare) .library-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 22px;
    color: var(--catalog-muted);
    font-size: 13px;
    line-height: 1.5;
}
body.catalog-unified :is(.library-book-page, .library-compare) .library-breadcrumbs a { color: var(--catalog-accent); text-decoration: none; }
body.catalog-unified :is(.library-book-page, .library-compare) .library-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
body.catalog-unified :is(.library-book-page, .library-compare) .library-breadcrumbs [aria-current] { color: var(--catalog-ink); }
body.catalog-unified :is(.library-book-page, .library-compare) .library-breadcrumbs > * { min-width: 0; overflow-wrap: anywhere; }
body.catalog-unified :is(.library-book-page, .library-compare, .library-bento.library-catalog:not(.disciplines-bento)) .library-button,
body.catalog-unified :is(.library-book-page, .library-compare, .library-bento.library-catalog:not(.disciplines-bento)) .lb-submit {
    min-height: var(--catalog-control-min-h);
}
body.catalog-unified :is(.library-book-page, .library-compare, .library-bento.library-catalog:not(.disciplines-bento)) :is(input, select, textarea, button, .library-button, .lb-submit, .lb-clear, .library-category, .lb-type, .lb-sort-tile nav a, .lb-active-filters a, .lb-book-open):focus-visible,
body.catalog-unified :is(.library-book-page, .library-compare, .library-bento.library-catalog:not(.disciplines-bento)) a:focus-visible {
    outline: 3px solid var(--ks-accent, var(--catalog-accent));
    outline-offset: 3px;
}
body.catalog-unified :is(.library-book-page, .library-compare) .library-details { overflow-x: auto; -webkit-overflow-scrolling: touch; }
body.catalog-unified :is(.library-book-page, .library-compare) .library-compare__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
body.catalog-unified .library-bento.library-catalog:not(.disciplines-bento) .lb-active-filters a,
body.catalog-unified .library-bento.library-catalog:not(.disciplines-bento) .lb-book-open,
body.catalog-unified .library-bento.library-catalog:not(.disciplines-bento) .lb-type,
body.catalog-unified .library-bento.library-catalog:not(.disciplines-bento) .lb-sort-tile nav a { min-height: var(--catalog-control-min-h); }
body.catalog-unified .library-bento.library-catalog:not(.disciplines-bento) .lb-book-open { align-items: center; justify-content: center; padding: 8px 10px; border-radius: 10px; }
body.catalog-unified .library-bento.library-catalog:not(.disciplines-bento) .lb-active-filters a { padding: 10px 14px; }
body.catalog-unified :is(.library-book-page, .library-compare) .library-details dt,
body.catalog-unified :is(.library-book-page, .library-compare) .library-details dd { min-width: 0; overflow-wrap: anywhere; }

body.catalog-unified .library-filters,
body.catalog-unified .ds-filters,
body.catalog-unified .teacher-journals-filters,
body.catalog-unified .ai-projects-page__filters,
body.catalog-unified .blog-search-row,
body.catalog-unified .certificates-search,
body.catalog-unified .materials-filters,
body.catalog-unified .mascot-filters,
body.catalog-unified .categories-search,
body.catalog-unified .ts-filters,
body.catalog-unified .learning-platforms-page__filters,
body.catalog-unified .service-automation-catalog__filter-panel {
    border: 1px solid var(--catalog-border);
    border-radius: 18px;
    background: var(--catalog-surface);
    box-shadow: 0 12px 30px rgba(37, 61, 71, .07);
}

body.catalog-unified .library-filters,
body.catalog-unified .ds-filters,
body.catalog-unified .ai-projects-page__filters,
body.catalog-unified .materials-filters,
body.catalog-unified .mascot-filters,
body.catalog-unified .ts-filters,
body.catalog-unified .service-automation-catalog__filter-panel {
    padding: 18px;
}

body.catalog-unified .library-filters label,
body.catalog-unified .ai-projects-page__filters label,
body.catalog-unified .teacher-journals-filters label,
body.catalog-unified .ts-filters label,
body.catalog-unified .learning-platforms-page__filters .form-label {
    color: var(--catalog-muted);
}

body.catalog-unified .library-filters input:not([type="hidden"]),
body.catalog-unified .library-filters select,
body.catalog-unified .teacher-journals-filters input:not([type="hidden"]),
body.catalog-unified .teacher-journals-filters select,
body.catalog-unified .ai-projects-page__filters input,
body.catalog-unified .ai-projects-page__filters select,
body.catalog-unified .ts-filters input,
body.catalog-unified .ts-filters select,
body.catalog-unified .learning-platforms-page__filters input,
body.catalog-unified .learning-platforms-page__filters select,
body.catalog-unified .certificates-search input,
body.catalog-unified .mascot-filters input,
body.catalog-unified .mascot-filters select,
body.catalog-unified .blog-search-row input[type="search"],
body.catalog-unified .categories-search,
body.catalog-unified .ds-catalog-searchbar,
body.catalog-unified .materials-searchbar,
body.catalog-unified .service-automation-catalog__search,
body.catalog-unified .service-automation-catalog__filters select {
    min-height: 46px;
    border: 1px solid var(--catalog-border);
    border-radius: 12px;
    background: var(--catalog-soft);
    color: var(--catalog-ink);
    box-shadow: none;
}

body.catalog-unified .ds-catalog-searchbar,
body.catalog-unified .materials-searchbar {
    display: flex;
    align-items: center;
    overflow: hidden;
}

body.catalog-unified .ds-catalog-searchbar input,
body.catalog-unified .materials-searchbar input {
    min-height: 44px;
    color: var(--catalog-ink);
}

body.catalog-unified .ds-catalog-searchbar input::placeholder,
body.catalog-unified .materials-searchbar input::placeholder,
body.catalog-unified .library-filters input::placeholder,
body.catalog-unified .teacher-journals-filters input::placeholder,
body.catalog-unified .ai-projects-page__filters input::placeholder,
body.catalog-unified .certificates-search input::placeholder,
body.catalog-unified .blog-search-row input::placeholder,
body.catalog-unified .service-automation-catalog__search input::placeholder {
    color: var(--catalog-muted);
    opacity: 1;
}

body.catalog-unified .library-filters input:focus,
body.catalog-unified .library-filters select:focus,
body.catalog-unified .teacher-journals-filters input:focus,
body.catalog-unified .teacher-journals-filters select:focus,
body.catalog-unified .ai-projects-page__filters input:focus,
body.catalog-unified .ai-projects-page__filters select:focus,
body.catalog-unified .ds-catalog-searchbar:focus-within,
body.catalog-unified .materials-searchbar:focus-within,
body.catalog-unified .certificates-search input:focus,
body.catalog-unified .mascot-filters input:focus,
body.catalog-unified .mascot-filters select:focus,
body.catalog-unified .blog-search-row input:focus,
body.catalog-unified .service-automation-catalog__search:focus-within,
body.catalog-unified .service-automation-catalog__filters select:focus {
    border-color: var(--catalog-accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--catalog-focus);
}

body.catalog-unified .library-categories,
body.catalog-unified .ds-topic-chips,
body.catalog-unified .materials-topics,
body.catalog-unified .blog-topics,
body.catalog-unified .teacher-topics,
body.catalog-unified .esign-task-nav,
body.catalog-unified .teacher-digital-platforms {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    padding: 3px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--catalog-border) transparent;
}

body.catalog-unified .library-categories > *,
body.catalog-unified .ds-topic-chips > *,
body.catalog-unified .materials-topics > *,
body.catalog-unified .blog-topics > *,
body.catalog-unified .teacher-topics > *,
body.catalog-unified .esign-task-nav > *,
body.catalog-unified .teacher-digital-platforms > * {
    flex: 0 0 auto;
}

body.catalog-unified .library-page .library-category,
body.catalog-unified .ds-topic-chip,
body.catalog-unified .materials-topic {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid var(--catalog-border);
    border-radius: 999px;
    background: var(--catalog-surface);
    color: var(--catalog-ink);
    font-weight: 600;
    text-decoration: none;
}

body.catalog-unified .blog-topics .blog-topic,
body.catalog-unified .teacher-topics a,
body.catalog-unified .esign-task-nav a,
body.catalog-unified .teacher-digital-platforms a {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 8px 15px;
    border: 1px solid var(--catalog-border);
    border-radius: 999px;
    background: var(--catalog-surface);
    color: var(--catalog-ink);
    font-weight: 600;
    text-decoration: none;
}

body.catalog-unified .blog-topics .blog-topic[aria-current="page"],
body.catalog-unified .teacher-topics a[aria-current="page"],
body.catalog-unified .esign-task-nav a[aria-current="page"],
body.catalog-unified .teacher-digital-platforms a[aria-current="page"] {
    border-color: var(--catalog-accent);
    background: var(--catalog-accent);
    color: #fff;
}

body.catalog-unified .library-page .library-category.is-active,
body.catalog-unified .ds-topic-chip.is-active,
body.catalog-unified .materials-topic.is-active {
    border-color: var(--catalog-accent);
    background: var(--catalog-accent);
    color: #fff;
}

body.catalog-unified .library-catalog-heading,
body.catalog-unified .presentations-library__heading,
body.catalog-unified .materials-library__heading,
body.catalog-unified .music-section-heading,
body.catalog-unified .rw-results-heading {
    gap: 12px;
}

body.catalog-unified .library-results,
body.catalog-unified .presentations-result-count,
body.catalog-unified .materials-library__count,
body.catalog-unified .music-section-heading__count,
body.catalog-unified .rw-result-count,
body.catalog-unified .learning-platforms-page__results {
    color: var(--catalog-muted);
}

body.catalog-unified .library-results strong,
body.catalog-unified .ds-results strong,
body.catalog-unified .rw-result-count strong {
    color: var(--catalog-ink);
}

body.catalog-unified .teacher-journals-filters details > summary,
body.catalog-unified .learning-platforms-page__filters > summary {
    color: var(--catalog-accent);
    font-weight: 700;
}

body.catalog-unified .teacher-journals-filters .btn-primary,
body.catalog-unified .learning-platforms-page__filters .btn-primary,
body.catalog-unified .library-page .library-button,
body.catalog-unified .ds-catalog-search-button,
body.catalog-unified .materials-filter-button,
body.catalog-unified .certificates-search button,
body.catalog-unified .blog-search-row button[type="submit"],
body.catalog-unified .ai-projects-page__filters button,
body.catalog-unified .ts-filters .ts-button {
    border-color: var(--catalog-accent);
    border-radius: 999px;
    background: var(--catalog-accent);
    color: #fff;
    font-weight: 700;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

body.catalog-unified .teacher-journals-filters .btn-primary:hover,
body.catalog-unified .learning-platforms-page__filters .btn-primary:hover,
body.catalog-unified .library-page .library-button:hover,
body.catalog-unified .ds-catalog-search-button:hover,
body.catalog-unified .materials-filter-button:hover,
body.catalog-unified .certificates-search button:hover,
body.catalog-unified .blog-search-row button[type="submit"]:hover,
body.catalog-unified .ai-projects-page__filters button:hover,
body.catalog-unified .ts-filters .ts-button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

body.catalog-unified .library-page a:focus-visible,
body.catalog-unified .library-page button:focus-visible,
body.catalog-unified .library-page input:focus-visible,
body.catalog-unified .library-page select:focus-visible,
body.catalog-unified .ds-public a:focus-visible,
body.catalog-unified .ds-public button:focus-visible,
body.catalog-unified .ai-projects-page a:focus-visible,
body.catalog-unified .ai-projects-page button:focus-visible,
body.catalog-unified .service-automation-catalog a:focus-visible,
body.catalog-unified .service-automation-catalog button:focus-visible,
body.catalog-unified .service-automation-catalog input:focus-visible,
body.catalog-unified .service-automation-catalog select:focus-visible {
    outline: 3px solid var(--catalog-accent);
    outline-offset: 3px;
}

/* У пошуку рамка має лишатися всередині поля */
body.catalog-unified .service-automation-catalog__search input:focus-visible { outline-offset: 0; }

/* Чіпи та посилання-шаблони — ті ж правила, що й в інших каталогах */
body.catalog-unified .service-automation-catalog__chip:not(.service-automation-catalog__chip--type):not(.service-automation-catalog__chip--current),
body.catalog-unified .service-automation-catalog__section-link {
    border-color: var(--catalog-border);
    background: var(--catalog-surface);
    color: var(--catalog-ink);
}

body.catalog-unified .service-automation-catalog__chip:hover,
body.catalog-unified .service-automation-catalog__section-link:hover {
    border-color: var(--catalog-accent);
}

/* Пагінація каталогу — ті самі стани, що й у shared-pagination.css */
body.catalog-unified .service-automation-catalog__page-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    max-width: 100%;
    padding: 5px;
    border: 1px solid var(--catalog-border);
    border-radius: 14px;
    background: var(--catalog-surface);
    box-shadow: var(--ks-shadow, 0 12px 30px rgba(37, 61, 71, .07));
}

body.catalog-unified .service-automation-catalog__page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

body.catalog-unified .service-automation-catalog__page-button {
    display: inline-grid;
    min-width: 36px;
    min-height: 36px;
    place-items: center;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--catalog-ink);
    box-shadow: none;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

body.catalog-unified .service-automation-catalog__page-button:hover:not(:disabled) {
    background: var(--catalog-soft);
    color: var(--catalog-accent);
    transform: translateY(-1px);
}

body.catalog-unified .service-automation-catalog__page-button[aria-current="page"] {
    background: var(--catalog-accent);
    color: var(--ks-on-accent, #fff);
}

body.catalog-unified .service-automation-catalog__page-button:disabled {
    color: var(--catalog-muted);
    opacity: .5;
    cursor: default;
    pointer-events: none;
}

body.catalog-unified .service-automation-catalog__page-button:focus-visible {
    outline: 3px solid var(--catalog-accent);
    outline-offset: 2px;
}

body.catalog-unified .service-automation-catalog__page-ellipsis { color: var(--catalog-muted); padding-inline: 3px; }
body.catalog-unified .service-automation-catalog__page-status { color: var(--catalog-muted); font-size: 12px; }

/* ============================================================
   ГОРИЗОНТАЛЬНА СІТКА КАТАЛОГІВ — еталон /service-automation
   1306px = ширина .footer-bento__grid; контейнер = 1306 + 2x16px
   Правила діють ТІЛЬКИ на catalog-unified: головна, about і
   data-hub завантажують інші файли й лишаються незмінними.
   ============================================================ */
:root {
    --ks-layout-container: 1338px;
    --ks-layout-content: 1306px;
}

/* Хедер: той самий контейнер, що й контент та футер */
body.catalog-unified .vine-navbar__container {
    max-width: var(--ks-layout-container);
    --falcon-gutter-x: clamp(1.5rem, 3vw, 2rem);
}

body.catalog-unified .vine-secondary-header__nav {
    max-width: var(--ks-layout-content);
    padding-inline: clamp(12px, 2vw, 16px);
}

/* Зовнішній контейнер сторінки */
body.catalog-unified .vine-main > .container {
    max-width: var(--ks-layout-container);
    --falcon-gutter-x: clamp(1.5rem, 3vw, 2rem);
}

/* Контент: одна ширина для всіх каталогів, без подвійних відступів */
body.catalog-unified .vine-main > .container > main,
body.catalog-unified .vine-main > .container > .ts-page {
    width: 100%;
    max-width: var(--ks-layout-content) !important;
    min-width: 0;
    margin-inline: auto;
}

/* Де main сам має клас container — лишаємо один gutter (зовнішній) */
body.catalog-unified .vine-main > .container > main.container {
    padding-inline: 0;
}

/* ============================================================
   ЄДИНИЙ ВИГЛЯД КАТАЛОГІВ — еталон /service-automation
   Значення взяті з service-automation-catalog.css. Застосовується
   через catalog-unified, тому не зачіпає головну/about/data-hub.
   ============================================================ */
:root {
    --catalog-font: var(--gen-font-family, 'Karla', sans-serif);
    --catalog-hero-pad: 32px;
    --catalog-hero-min-height: 336px;
    --catalog-hero-title: clamp(30px, 4.6vw, 52px);
    --catalog-hero-title-ls: -.03em;
    --catalog-hero-title-lh: 1.04;
    --catalog-stat-size: 46px;
    --catalog-stat-ls: -.03em;
    --catalog-card-radius: 24px;
    --catalog-filter-pad: 18px;
    --catalog-chip-radius: 8px;
    --catalog-chip-pad: 4px 8px;
    --catalog-chip-size: 11px;
}

/* /presentations: шрифт і блоки як на /service-automation */
body.catalog-unified .presentations-studio {
    --pr-display: var(--catalog-font);
    font-family: var(--catalog-font);
}

body.catalog-unified .presentations-studio :is(h1, h2, h3) {
    font-family: var(--catalog-font);
}

body.catalog-unified .presentations-studio .pr-hero__copy {
    min-height: var(--catalog-hero-min-height);
    padding: var(--catalog-hero-pad);
}

/* Еталонний hero без декоративних кіл */
body.catalog-unified .presentations-studio .pr-hero__copy::before,
body.catalog-unified .presentations-studio .pr-hero__copy::after {
    display: none;
}

body.catalog-unified .presentations-studio .pr-hero__copy .pr-hero__title {
    font-family: var(--catalog-font);
    font-size: var(--catalog-hero-title);
    letter-spacing: var(--catalog-hero-title-ls);
    line-height: var(--catalog-hero-title-lh);
}

body.catalog-unified .presentations-studio .pr-stat strong {
    font-size: var(--catalog-stat-size);
    letter-spacing: var(--catalog-stat-ls);
    line-height: 1;
}

body.catalog-unified .presentations-studio .pr-card {
    border-radius: var(--catalog-card-radius);
}

body.catalog-unified .presentations-studio .pr-filters {
    padding: var(--catalog-filter-pad);
}

body.catalog-unified .presentations-studio .pr-chip {
    min-height: 0;
    padding: var(--catalog-chip-pad);
    border-radius: var(--catalog-chip-radius);
    font-size: var(--catalog-chip-size);
}

/* /music — шрифт і блоки як в еталона */
body.catalog-unified .music-page {
    font-family: var(--catalog-font);
}

body.catalog-unified .music-hero {
    min-height: var(--catalog-hero-min-height);
    padding: var(--catalog-hero-pad);
    border-radius: var(--catalog-card-radius);
    background: var(--ks-hero, linear-gradient(135deg, #0B2639, #17516A));
    box-shadow: var(--ks-shadow, 0 7px 30px rgba(23, 63, 83, .06));
}

body.catalog-unified .music-hero::before,
body.catalog-unified .music-hero::after {
    display: none;
}

body.catalog-unified .music-hero h1 {
    font-family: var(--catalog-font);
    font-size: var(--catalog-hero-title);
    font-weight: 800;
    letter-spacing: var(--catalog-hero-title-ls);
    line-height: var(--catalog-hero-title-lh);
}

/* /blog */
body.catalog-unified .blog-index-page {
    font-family: var(--catalog-font);
}

body.catalog-unified .blog-index-page.blog-catalog :is(.blog-catalog__hero > div, .blog-catalog__filters, .blog-post-card, .blog-category-description, .blog-empty) {
    border-radius: var(--catalog-card-radius);
}

body.catalog-unified .blog-index-page.blog-catalog .blog-catalog__hero > div {
    padding: var(--catalog-hero-pad);
}

body.catalog-unified .blog-index-page.blog-catalog .blog-catalog__hero h1 {
    font-family: var(--catalog-font);
    font-size: var(--catalog-hero-title);
    font-weight: 800;
    letter-spacing: var(--catalog-hero-title-ls);
    line-height: var(--catalog-hero-title-lh);
}

/* /ai-projects */
body.catalog-unified .ai-projects-page {
    font-family: var(--catalog-font);
}

body.catalog-unified .ai-projects-page :is(.ai-projects-page__filters, .ai-project-card, .ai-projects-page__empty) {
    border-radius: var(--catalog-card-radius);
}

body.catalog-unified .ai-projects-page .kap-hero-copy h2 {
    font-family: var(--catalog-font);
    font-size: var(--catalog-hero-title);
    font-weight: 800;
    letter-spacing: var(--catalog-hero-title-ls);
    line-height: var(--catalog-hero-title-lh);
}

/* /ai-experience */
body.catalog-unified .ai-experience-page {
    font-family: var(--catalog-font);
}

body.catalog-unified .ai-experience-page__header {
    padding: var(--catalog-hero-pad);
    border-radius: var(--catalog-card-radius);
}

body.catalog-unified .ai-experience-page__header h1 {
    font-size: var(--catalog-hero-title);
    font-weight: 800;
    letter-spacing: var(--catalog-hero-title-ls);
    line-height: var(--catalog-hero-title-lh);
}

body.catalog-unified .ai-experience-page__card,
body.catalog-unified .ai-experience-page__empty {
    border-radius: var(--catalog-card-radius);
}

/* /trees — повний перехід на вигляд /service-automation */
body.catalog-unified .ks-tree-page {
    font-family: var(--catalog-font);
}

/* Hero: темний градієнт, білий текст, без декоративної графіки */
body.catalog-unified .ks-tree-page .data-hub-hero {
    min-height: var(--catalog-hero-min-height);
    padding: var(--catalog-hero-pad);
    border-color: transparent;
    background: var(--ks-hero, linear-gradient(135deg, #0B2639, #17516A));
    box-shadow: var(--ks-shadow, 0 7px 30px rgba(23, 63, 83, .06));
    color: #fff;
}

body.catalog-unified .ks-tree-page .data-hero-main {
    display: block;
    min-height: 0;
}

body.catalog-unified .ks-tree-page .data-hero-art,
body.catalog-unified .ks-tree-page .kt-hero-art {
    display: none;
}

body.catalog-unified .ks-tree-page .data-hub-hero .lb-eyebrow {
    color: rgba(255, 255, 255, .72);
}

body.catalog-unified .ks-tree-page .data-hub-hero h1,
body.catalog-unified .ks-tree-page .data-title h1 {
    color: #fff !important;
    font-family: var(--catalog-font);
    font-size: var(--catalog-hero-title);
    font-weight: 800;
    letter-spacing: var(--catalog-hero-title-ls);
    line-height: var(--catalog-hero-title-lh);
    -webkit-text-fill-color: #fff;
}

body.catalog-unified .ks-tree-page .data-hub-hero p,
body.catalog-unified .ks-tree-page .data-hero-copy > p {
    color: rgba(255, 255, 255, .82) !important;
    font-size: 16px;
    line-height: 1.65;
    -webkit-text-fill-color: rgba(255, 255, 255, .82);
}

/* Статистика — як плитки еталона */
body.catalog-unified .ks-tree-page .lb-count-tile {
    border-color: var(--ks-border, #D8E4EA);
    background: linear-gradient(135deg, #EDF4F7, #E6F0F3);
    color: var(--ks-text, #142E3D);
}

body.catalog-unified .ks-tree-page .lb-count-tile > span,
body.catalog-unified .ks-tree-page .lb-count-tile > p {
    color: var(--ks-muted, #526B78) !important;
    -webkit-text-fill-color: var(--ks-muted, #526B78);
}

body.catalog-unified .ks-tree-page .lb-count-tile > strong {
    font-size: var(--catalog-stat-size);
    font-weight: 800;
    letter-spacing: var(--catalog-stat-ls);
    line-height: 1;
}

/* Плитки й кнопки */
body.catalog-unified .ks-tree-page :is(.lb-tile, .data-card, .data-side-section, .data-reference-directory, .data-bottom-banner) {
    border-radius: var(--catalog-card-radius);
}

body.catalog-unified .ks-tree-page .ks-tree-button {
    border-radius: 8px;
    font-family: var(--catalog-font);
}

@media (max-width: 767.98px) {
    body.catalog-unified .library-filters,
    body.catalog-unified .ai-projects-page__filters,
    body.catalog-unified .ts-filters {
        grid-template-columns: minmax(0, 1fr);
    }

    body.catalog-unified .library-catalog-heading,
    body.catalog-unified .presentations-library__heading,
    body.catalog-unified .materials-library__heading,
    body.catalog-unified .music-section-heading,
    body.catalog-unified .rw-results-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    body.catalog-unified .teacher-journals-filters .journal-extra-filters__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 575.98px) {
    body.catalog-unified .service-automation-catalog__page-controls,
    body.catalog-unified .service-automation-catalog__page-numbers { gap: 3px; }

    body.catalog-unified .service-automation-catalog__page-button {
        min-width: 30px;
        min-height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.catalog-unified .teacher-journals-filters .btn-primary,
    body.catalog-unified .learning-platforms-page__filters .btn-primary,
    body.catalog-unified .library-page .library-button,
    body.catalog-unified .ds-catalog-search-button,
    body.catalog-unified .materials-filter-button,
    body.catalog-unified .certificates-search button,
    body.catalog-unified .blog-search-row button[type="submit"],
    body.catalog-unified .ai-projects-page__filters button,
    body.catalog-unified .ts-filters .ts-button,
    body.catalog-unified .service-automation-catalog__filter-heading button,
    body.catalog-unified .service-automation-catalog__view-switch button,
    body.catalog-unified .service-automation-catalog__page-button {
        transition: none;
    }
}
