/* kinologlife.online — global styles (all pages) */

/* ── Custom cursor — розовая лапка (PNG с прозрачным фоном, hotspot у нижних подушечек) ── */

body,
body a,
input,
button,
textarea,
select {
    cursor: url('cursor-paw-pink.png') 16 28, auto;
}

a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
.clickable {
    cursor: url('cursor-paw-pink.png') 16 28, pointer;
}

/* Click ripple — paw squeeze animation (картинка лапки подставляется из JS) */
.kl-paw-click {
    position: fixed;
    width: 32px;
    height: 32px;
    pointer-events: none;
    z-index: 999999;
    background: center/contain no-repeat;
    animation: kl-paw-squeeze 0.35s ease-out forwards;
    transform: translate(-50%, -50%);
    opacity: 0.85;
}

@keyframes kl-paw-squeeze {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.85;
    }
    40% {
        transform: translate(-50%, -50%) scale(0.55);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   DARK BACKGROUND — force on ALL inner pages (override theme #fff)
   Nuclear specificity to guarantee no white leaks on mobile
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page),
html body:not(.kl-landing-page) {
    background: #060610 !important;
    background-color: #060610 !important;
    color: #dedee8 !important;
}

body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .site,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .site-content,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .content-area,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .content-area-inner,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .site-main,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .site-main-inner,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) article.post-card,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content,
body:not(.kl-landing-page) #page,
body:not(.kl-landing-page) .site-wrapper,
body:not(.kl-landing-page) .wrapper,
body:not(.kl-landing-page) .page-wrapper,
body:not(.kl-landing-page) .main-wrapper,
body:not(.kl-landing-page) .container,
body:not(.kl-landing-page) main,
body:not(.kl-landing-page) section,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .post-card__body,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .post-card__content,
body:not(.kl-landing-page) .post-card__footer,
body:not(.kl-landing-page) .wpc-plans-wrapper,
body:not(.kl-landing-page) .wpc-plan,
body:not(.kl-landing-page) .wpc-plan-card,
body:not(.kl-landing-page) .sidebar,
body:not(.kl-landing-page) #secondary,
body:not(.kl-landing-page) aside,
body:not(.kl-landing-page) .widget,
body:not(.kl-landing-page) .widget-area {
    background-color: transparent !important;
    background: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SITE HEADER & NAVIGATION — dark theme on ALL inner pages
   (landing page overrides these with its own template styles)
   ═══════════════════════════════════════════════════════════════════ */

/* Don't apply to landing page */
body:not(.kl-landing-page) .site-header {
    background: rgba(10, 10, 20, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Sticky-шапка под админ-бар WordPress */
@media screen and (min-width: 783px) {
    body.admin-bar:not(.kl-landing-page) .site-header {
        top: 32px !important;
    }
}

@media screen and (max-width: 782px) {
    body.admin-bar:not(.kl-landing-page) .site-header {
        top: 46px !important;
    }
}

body:not(.kl-landing-page) .site-header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    row-gap: 8px !important;
    flex-wrap: nowrap !important;
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 12px 24px !important;
    min-height: 56px !important;
}

/* Логотип — одна строка. Меню — перенос строк (flex-wrap), БЕЗ горизонтального скролла (он давал «полоску со стрелкой» в Windows). */
body:not(.kl-landing-page) .site-branding {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding-right: 12px !important;
    padding-top: 0 !important;
}

body:not(.kl-landing-page) .site-branding .site-title,
body:not(.kl-landing-page) .site-branding .site-branding__title {
    margin: 0 !important;
    line-height: 1.2 !important;
    display: block !important;
}

body:not(.kl-landing-page) .main-navigation {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Контейнер ul в теме WPCommunity */
body:not(.kl-landing-page) .main-navigation > div {
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

/* ── Logo / site title ── */

body:not(.kl-landing-page) .site-branding .site-title a,
body:not(.kl-landing-page) .site-branding__title a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.01em;
    white-space: nowrap !important;
}

body:not(.kl-landing-page) .site-branding .site-description {
    display: none !important;
}

/* ── Desktop navigation ── */

body:not(.kl-landing-page) .main-navigation .menu {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    align-content: center !important;
    justify-content: flex-end !important;
    gap: 2px 6px !important;
    row-gap: 6px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    max-width: 100% !important;
}

body:not(.kl-landing-page) .main-navigation .menu-item a,
body:not(.kl-landing-page) .main-navigation .menu-item .removed-link {
    color: rgba(232, 232, 240, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.82rem !important;
    font-weight: 500 !important;
    padding: 7px 11px !important;
    border-radius: 8px !important;
    transition: color 0.2s, background 0.2s !important;
    display: inline-block !important;
    white-space: nowrap !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body:not(.kl-landing-page) .main-navigation .menu-item a:hover,
body:not(.kl-landing-page) .main-navigation .menu-item .removed-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

body:not(.kl-landing-page) .main-navigation .menu-item.current-menu-item > a,
body:not(.kl-landing-page) .main-navigation .menu-item.current-menu-item > .removed-link,
body:not(.kl-landing-page) .main-navigation .menu-item.current_page_item > a,
body:not(.kl-landing-page) .main-navigation .menu-item.current_page_item > .removed-link {
    color: #c9943e !important;
    background: rgba(201, 148, 62, 0.1) !important;
}

/* ── Submenu (dropdown) ── */

body:not(.kl-landing-page) .main-navigation .sub-menu {
    background: rgba(18, 18, 30, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    min-width: 200px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    list-style: none !important;
    /* Позиция задаётся в @media (min-width: 992px): top/left без «щели» от margin-top */
}

body:not(.kl-landing-page) .main-navigation .sub-menu .menu-item a {
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-size: 0.85rem !important;
    display: block !important;
}

body:not(.kl-landing-page) .main-navigation .sub-menu .menu-item a:hover {
    background: rgba(201, 148, 62, 0.1) !important;
    color: #c9943e !important;
}

/*
 * Десктоп (после базовых правил меню — иначе каскад перебивает «пилюлю»):
 * как на лендинге — стеклянная капсула, бренд | меню (перенос внутри) | виджеты шапки.
 */
@media (min-width: 992px) {
    body:not(.kl-landing-page) .site-header {
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
        padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px)) !important;
    }

    body.admin-bar:not(.kl-landing-page) .site-header {
        padding-top: 6px !important;
    }

    body:not(.kl-landing-page) .site-header-inner {
        max-width: 1400px !important;
        margin: 10px auto 0 !important;
        padding: 10px 22px !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 12px 18px !important;
        row-gap: 10px !important;
        min-height: 0 !important;
        background: rgba(10, 10, 20, 0.72) !important;
        backdrop-filter: blur(28px) saturate(1.35) !important;
        -webkit-backdrop-filter: blur(28px) saturate(1.35) !important;
        border: 1px solid rgba(255, 255, 255, 0.07) !important;
        border-radius: 999px !important;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.38) !important;
    }

    body:not(.kl-landing-page) .site-branding {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        max-width: none !important;
        margin-right: 0 !important;
        padding-right: 8px !important;
    }

    body:not(.kl-landing-page) .site-branding .site-title a,
    body:not(.kl-landing-page) .site-branding__title a {
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        background: linear-gradient(135deg, #dbb06a 0%, #c9943e 50%, #dbb06a 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 0.03em !important;
        white-space: nowrap !important;
    }

    body:not(.kl-landing-page) .main-navigation {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        justify-content: flex-end !important;
    }

    body:not(.kl-landing-page) .main-navigation > div {
        justify-content: flex-end !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body:not(.kl-landing-page) .main-navigation .menu {
        justify-content: flex-end !important;
        align-content: center !important;
        flex-wrap: wrap !important;
        gap: 2px 4px !important;
        row-gap: 6px !important;
    }

    body:not(.kl-landing-page) .main-navigation .menu-item a,
    body:not(.kl-landing-page) .main-navigation .menu-item .removed-link {
        padding: 6px 10px !important;
        font-size: 12px !important;
        font-weight: 500 !important;
        letter-spacing: 0.02em !important;
        border-radius: 999px !important;
        color: rgba(255, 255, 255, 0.58) !important;
        background: transparent !important;
    }

    body:not(.kl-landing-page) .main-navigation .menu-item a:hover,
    body:not(.kl-landing-page) .main-navigation .menu-item .removed-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.07) !important;
    }

    body:not(.kl-landing-page) .main-navigation .menu-item.current-menu-item > a,
    body:not(.kl-landing-page) .main-navigation .menu-item.current-menu-item > .removed-link,
    body:not(.kl-landing-page) .main-navigation .menu-item.current_page_item > a,
    body:not(.kl-landing-page) .main-navigation .menu-item.current_page_item > .removed-link {
        color: #1a1408 !important;
        background: linear-gradient(135deg, #e8c078 0%, #c9943e 50%, #dbb06a 100%) !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 14px rgba(201, 148, 62, 0.28) !important;
    }

    body:not(.kl-landing-page) .header-html-1 {
        display: flex !important;
        align-items: center !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        margin-left: auto !important;
    }

    body:not(.kl-landing-page) .header-html-1 .widget-navigation {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 4px 8px !important;
        margin: 0 !important;
    }

    body:not(.kl-landing-page) .header-html-1 .widget-navigation__item-wrap {
        display: inline-flex !important;
        align-items: center !important;
    }

    body:not(.kl-landing-page) .main-navigation--hamburger.hamburger {
        flex: 0 0 auto !important;
    }

    body:not(.kl-landing-page) .main-navigation .sub-menu {
        border-radius: 14px !important;
        margin-top: 0 !important;
    }

    /*
     * Подменю: курсор не должен «проваливаться» в зазор между <li> и .sub-menu
     * и между колонками 2→3 уровня (Зарубежные курсы → список).
     */
    body:not(.kl-landing-page) .site-header,
    body:not(.kl-landing-page) .site-header-inner {
        overflow: visible !important;
    }

    body:not(.kl-landing-page) .main-navigation,
    body:not(.kl-landing-page) .main-navigation > div {
        overflow: visible !important;
    }

    body:not(.kl-landing-page) .main-navigation .menu-item {
        position: relative !important;
    }

    body:not(.kl-landing-page) .main-navigation .sub-menu {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        margin-left: 0 !important;
        z-index: 5000 !important;
    }

    /* Тема по умолчанию: display:none; открываем при наведении / фокусе с клавиатуры */
    body:not(.kl-landing-page) .main-navigation .menu-item:hover > .sub-menu,
    body:not(.kl-landing-page) .main-navigation .menu-item:focus-within > .sub-menu {
        display: flex !important;
        -webkit-box-orient: vertical !important;
        flex-direction: column !important;
    }

    /* Невидимый «мост» над первым уровнем dropdown */
    body:not(.kl-landing-page) .main-navigation .menu-item-has-children > .sub-menu::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: -14px !important;
        height: 14px !important;
    }

    /* Второй уровень: панель справа, мост слева от неё (щель до правого края родителя) */
    body:not(.kl-landing-page) .main-navigation .sub-menu .menu-item {
        position: relative !important;
    }

    body:not(.kl-landing-page) .main-navigation .sub-menu .sub-menu {
        top: 0 !important;
        left: 100% !important;
        margin-top: 0 !important;
        margin-left: 0 !important;
    }

    body:not(.kl-landing-page) .main-navigation .sub-menu .menu-item-has-children > .sub-menu::before {
        content: "" !important;
        position: absolute !important;
        left: -18px !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 18px !important;
    }

    /* Класс .focus из navigation.js (тач / Tab): держим панель открытой */
    body:not(.kl-landing-page) .main-navigation .menu-item.focus > .sub-menu {
        display: flex !important;
        -webkit-box-orient: vertical !important;
        flex-direction: column !important;
    }
}

/* ── Dropdown arrow icon ── */

body:not(.kl-landing-page) .menu-expand-icon svg {
    width: 14px !important;
    height: 14px !important;
    fill: currentColor !important;
    margin-left: 4px !important;
    vertical-align: middle !important;
    opacity: 0.6;
}

/* ── Hamburger button — let theme JS control visibility via .visible class ── */

body:not(.kl-landing-page) .js-hamburger.visible {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    gap: 6px !important;
    cursor: pointer !important;
}

body:not(.kl-landing-page) .js-hamburger span,
body:not(.kl-landing-page) .js-hamburger .hamburger__line,
body:not(.kl-landing-page) .js-hamburger div {
    display: block !important;
    width: 24px !important;
    height: 2px !important;
    background: #e8e8f0 !important;
    border-radius: 2px !important;
    transition: transform 0.3s, opacity 0.3s !important;
}

/* ── Mobile menu ── */

body:not(.kl-landing-page) .mobile-menu {
    background: rgba(12, 12, 22, 0.98) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 14px 20px !important;
}

body:not(.kl-landing-page) .mobile-menu .menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}

body:not(.kl-landing-page) .mobile-menu .menu-item a,
body:not(.kl-landing-page) .mobile-menu .menu-item .removed-link,
body:not(.kl-landing-page) .mobile-menu .mobile-left-menu__item {
    color: rgba(232, 232, 240, 0.85) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    display: block !important;
    transition: color 0.2s, background 0.2s !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body:not(.kl-landing-page) .mobile-menu .menu-item a:hover,
body:not(.kl-landing-page) .mobile-menu .mobile-left-menu__item:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

body:not(.kl-landing-page) .mobile-menu .current-menu-item a,
body:not(.kl-landing-page) .mobile-menu .current-menu-item .mobile-left-menu__item {
    color: #c9943e !important;
    background: rgba(201, 148, 62, 0.08) !important;
}

/* Mobile submenu */
body:not(.kl-landing-page) .mobile-menu .sub-menu {
    padding-left: 16px !important;
    margin-top: 2px !important;
    border-left: 2px solid rgba(201, 148, 62, 0.2) !important;
    list-style: none !important;
}

body:not(.kl-landing-page) .mobile-menu .sub-menu a {
    font-size: 0.88rem !important;
    padding: 10px 16px !important;
    color: rgba(232, 232, 240, 0.7) !important;
}

/* ── Widget navigation items in mobile ── */

body:not(.kl-landing-page) .mobile-menu .widget-navigation__item-wrap {
    display: block !important;
}

body:not(.kl-landing-page) .mobile-menu .widget-navigation__icon {
    display: none !important;
}

/* ── Dark mode toggle in mobile menu ── */

body:not(.kl-landing-page) .mobile-menu .js-dark-mode {
    margin-top: 8px !important;
    padding: 8px 16px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMBS — dark theme on all inner pages
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .breadcrumbs-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:not(.kl-landing-page) .breadcrumbs {
    background: transparent !important;
    color: rgba(138, 138, 154, 0.9) !important;
    font-size: 0.82rem !important;
    padding: 12px 0 4px !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

body:not(.kl-landing-page) .breadcrumbs-element {
    display: inline !important;
}

body:not(.kl-landing-page) .breadcrumbs a,
body:not(.kl-landing-page) .breadcrumbs .breadcrumbs-item__link {
    color: rgba(138, 138, 154, 0.9) !important;
    text-decoration: none !important;
}

body:not(.kl-landing-page) .breadcrumbs a:hover,
body:not(.kl-landing-page) .breadcrumbs .breadcrumbs-item__link:hover {
    color: #c9943e !important;
}

body:not(.kl-landing-page) .breadcrumbs .breadcrumbs-separator {
    color: rgba(138, 138, 154, 0.4) !important;
    margin: 0 6px !important;
}

body:not(.kl-landing-page) .breadcrumbs .breadcrumbs-item__text {
    color: rgba(200, 200, 210, 0.7) !important;
}

body:not(.kl-landing-page) .breadcrumbs span[itemprop="name"] {
    color: inherit !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ALL INNER PAGES — dark background & text (reinforced)
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) {
    background: #060610 !important;
    background-color: #060610 !important;
    color: #e8e8f0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

body:not(.kl-landing-page) #page {
    background: transparent !important;
    background-color: transparent !important;
}

/* ═══════════════════════════════════════════════════════════════════
   CUSTOM FOOTER — в том же ключе, что тёмная шапка (blur, скругления)
   ═══════════════════════════════════════════════════════════════════ */

/* Hide WPCommunity branding & theme footer block — ALL pages including landing */
.site-footer__block,
.site-info,
.site-footer .site-footer__block,
.site-footer .site-info,
body .site-footer__block,
body .site-info {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Подложка колонтитула — как у .site-header */
.site-footer,
#colophon,
body .site-footer,
body #colophon {
    background: linear-gradient(180deg, rgba(8, 8, 16, 0.98) 0%, #060610 45%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: rgba(175, 175, 190, 0.88) !important;
    padding: 0 !important;
}

/*
 * Кастомный подвал из wp_footer(): блок идёт ПОСЛЕ закрытия #page, поэтому не внутри
 * .site-footer — без своего фона наследуется светлая подложка body (напр. kl-kb-issled-article).
 */
.kl-footer {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 52px 20px 0 !important;
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(10, 10, 20, 0.55) 0%, #060610 38%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: rgba(175, 175, 190, 0.88) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* «Карточка» с колонками — визуально ближе к современным блокам сайта */
.kl-footer__top {
    max-width: 1240px;
    margin: 0 auto 8px;
    padding: clamp(26px, 4vw, 38px) clamp(22px, 3vw, 40px) clamp(30px, 4vw, 42px);
    display: grid;
    grid-template-columns: minmax(220px, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(22px, 3.5vw, 40px);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 48px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* minmax(0,1fr) + min-width:0 на колонках — без «обрезанных» слов и ломаной сетки */
.kl-footer__col {
    min-width: 0;
}

/* ── Brand column ── */
.kl-footer__brand-name {
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: -0.022em;
    line-height: 1.15;
}

.kl-footer__brand-name span {
    background: linear-gradient(135deg, #e0ae5c, #dbb06a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kl-footer__brand-desc {
    font-size: 0.94rem;
    color: rgba(190, 190, 205, 0.82);
    line-height: 1.68;
    margin-top: 12px;
    max-width: min(420px, 100%);
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Реквизиты ИП (модерация Робокасса / юр.блок) */
.kl-footer__legal {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(160, 160, 175, 0.82);
}

.kl-footer__legal p {
    margin: 0 0 6px;
}

.kl-footer__legal strong {
    color: rgba(200, 200, 215, 0.92);
    font-weight: 600;
}

/* Страницы «Информация о магазине» / оферта */
.kl-community-paper .kl-shop-info,
.kl-community-paper .wp-legal-block {
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}

.kl-community-paper .kl-shop-info h1,
.kl-community-paper .kl-shop-info h2,
.kl-community-paper .wp-legal-block h1,
.kl-community-paper .wp-legal-block h2 {
    font-weight: 700;
    color: rgba(28, 24, 18, 0.95);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.kl-community-paper .kl-shop-info h1,
.kl-community-paper .wp-legal-block h1 {
    font-size: 1.65rem;
    margin-top: 0;
}

.kl-community-paper .kl-shop-info p,
.kl-community-paper .kl-shop-info li,
.kl-community-paper .wp-legal-block p,
.kl-community-paper .wp-legal-block li {
    color: rgba(44, 38, 30, 0.92);
    line-height: 1.65;
}

.kl-community-paper .kl-offer-docx {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    background: rgba(201, 148, 62, 0.12);
    border: 1px solid rgba(201, 148, 62, 0.28);
}

.kl-community-paper .kl-offer-docx__link {
    font-weight: 700;
    color: #8b5a12 !important;
    text-decoration: none !important;
}

.kl-community-paper .kl-offer-docx__link:hover {
    text-decoration: underline !important;
}

.kl-community-paper .kl-offer-lead {
    font-size: 1.02rem;
    color: rgba(60, 52, 42, 0.88);
    margin-bottom: 1.5rem;
}

/* ── Footer social icons ── */
.kl-footer__social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.kl-footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(195, 195, 210, 0.88) !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.kl-footer__social a:hover {
    background: rgba(201, 148, 62, 0.14);
    border-color: rgba(201, 148, 62, 0.35);
    color: #f0d4a8 !important;
    transform: translateY(-1px);
}

/* ── Link columns — без «канцелярского» uppercase ── */
.kl-footer__col-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.93);
    text-transform: none;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.kl-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kl-footer__links li {
    margin-bottom: 9px;
}

.kl-footer__links a {
    color: rgba(184, 184, 200, 0.92) !important;
    text-decoration: none !important;
    font-size: 0.94rem;
    line-height: 1.5;
    transition: color 0.2s;
    display: inline-block;
    overflow-wrap: anywhere;
}

.kl-footer__links a:hover {
    color: #e8c37a !important;
}

/* Свернутый блок юр. ссылок в колонке футера */
.kl-footer__col--support .kl-footer__more {
    margin-top: 6px;
}

.kl-footer__more-summary {
    cursor: pointer;
    list-style: none;
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(232, 195, 122, 0.95);
    padding: 10px 0 6px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.kl-footer__more-summary::-webkit-details-marker {
    display: none;
}

.kl-footer__more-summary::before {
    content: "";
    display: inline-block;
    width: 0.4em;
    height: 0.4em;
    border-right: 2px solid rgba(232, 195, 122, 0.9);
    border-bottom: 2px solid rgba(232, 195, 122, 0.9);
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.kl-footer__more[open] .kl-footer__more-summary::before {
    transform: rotate(45deg);
    margin-top: 2px;
}

.kl-footer__more-summary:hover {
    color: #f0d4a8;
}

.kl-footer__links--nested {
    margin: 4px 0 0;
    padding: 4px 0 0 12px;
    border-left: 2px solid rgba(232, 195, 122, 0.22);
}

.kl-footer__links--nested li:first-child {
    margin-top: 2px;
}

/* ── Bottom bar ── */
.kl-footer__bottom {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 8px 32px;
    margin-top: 4px;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(145, 145, 165, 0.68);
}

.kl-footer__bottom a {
    color: rgba(150, 150, 170, 0.72) !important;
    text-decoration: none !important;
}

.kl-footer__bottom a:hover {
    color: #c9943e !important;
}

.kl-footer__bottom-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

/* ── Footer responsive (планшет и мобильный: одна колонка, без «ломаной» сетки) ── */
@media (max-width: 991px) {
    .site-footer,
    #colophon {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .kl-footer {
        max-width: none !important;
        box-sizing: border-box !important;
        padding: 36px 16px 0 !important;
    }

    .kl-footer__top {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        border-radius: 18px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .kl-footer__bottom {
        padding-left: max(16px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(16px, env(safe-area-inset-right, 0px)) !important;
    }

    .kl-footer__brand {
        grid-column: 1 / -1 !important;
    }

    .kl-footer__brand-desc {
        max-width: 100% !important;
    }

    .kl-footer__links a {
        word-break: break-word !important;
    }

    .kl-footer__bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        align-items: center !important;
    }

    .kl-footer__bottom-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 14px !important;
    }
}

@media (max-width: 480px) {
    .kl-footer__top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Средние ширины: бренд на всю строку, колонки парами — ровнее, чем 4 узкие */
@media (max-width: 1100px) and (min-width: 992px) {
    .kl-footer__top {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .kl-footer__brand {
        grid-column: 1 / -1;
    }

    .kl-footer__brand-desc {
        max-width: 42rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — mobile header & layout
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    body:not(.kl-landing-page) .site-header-inner {
        padding: 10px 16px !important;
        min-height: 50px !important;
    }

    body:not(.kl-landing-page) .site-branding .site-title a,
    body:not(.kl-landing-page) .site-branding__title a {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 991px) {
    /* Без горизонтального скролла из‑за шапки/меню */
    body:not(.kl-landing-page) {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    body:not(.kl-landing-page) #page,
    body:not(.kl-landing-page) .site {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    body:not(.kl-landing-page) .site-header {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body:not(.kl-landing-page) .site-header-inner {
        align-items: center !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 8px 12px !important;
        padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
        min-height: 48px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body:not(.kl-landing-page) .site-branding {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        padding-top: 0 !important;
        padding-right: 8px !important;
        overflow: hidden !important;
    }

    body:not(.kl-landing-page) .site-branding .site-title a,
    body:not(.kl-landing-page) .site-branding__title a {
        font-size: 0.85rem !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        word-break: break-word !important;
    }

    /* Горизонтальное меню в шапке убираем — только бургер + выездное меню */
    body:not(.kl-landing-page) .site-header-inner .main-navigation ul.menu,
    body:not(.kl-landing-page) .site-header-inner .main-navigation .menu {
        display: none !important;
    }

    body:not(.kl-landing-page) .main-navigation .menu-expand-icon {
        display: none !important;
    }

    body:not(.kl-landing-page) .main-navigation {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        margin-left: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    body:not(.kl-landing-page) .main-navigation > div {
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        width: auto !important;
    }

    /* Бургер на мобильных всегда виден (тема иногда вешает только .visible) */
    body:not(.kl-landing-page) .js-hamburger {
        display: flex !important;
        flex-shrink: 0 !important;
    }

    body:not(.kl-landing-page) .mobile-menu {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Breadcrumbs — compact on mobile */
    body:not(.kl-landing-page) .breadcrumbs-container {
        background: transparent !important;
        padding: 0 !important;
    }

    body:not(.kl-landing-page) .breadcrumbs {
        font-size: 0.72rem !important;
        padding: 8px 0 0 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        background: transparent !important;
    }

    /* Content area — full width */
    body:not(.kl-landing-page) .site-content {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    /* Sidebar — hide on all mobile */
    body:not(.kl-landing-page) .sidebar,
    body:not(.kl-landing-page) #secondary,
    body:not(.kl-landing-page) aside.widget-area,
    body:not(.kl-landing-page) .widget-area {
        display: none !important;
    }

    /* Content area full width */
    body:not(.kl-landing-page) .content-area {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   HIDE SIDEBAR & SEARCH WIDGET on ALL inner pages (desktop + mobile)
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .sidebar,
body:not(.kl-landing-page) #secondary,
body:not(.kl-landing-page) aside.widget-area,
body:not(.kl-landing-page) .widget-area,
body:not(.kl-landing-page) .site-content > aside,
body:not(.kl-landing-page) .site-sidebar {
    display: none !important;
}

body:not(.kl-landing-page) .content-area {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 !important;
}

body:not(.kl-landing-page) .site-content {
    display: block !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
}

/* KB: /baza-znaniy/ — полноширинный лендинг базы знаний (режим с одной рубрикой на главной) */
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-main,
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-main-inner,
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .content-area,
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .content-area-inner {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) {
    background: #0c0b14 !important;
    background-color: #0c0b14 !important;
    color: #f0ebe3 !important;
}

/* Воздух под фиксированным меню и над базой знаний (baza-znaniy) */
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs-container {
    padding: clamp(4.75rem, 11vw, 6.5rem) clamp(1rem, 3vw, 2rem) 0 !important;
    margin-bottom: 0.25rem !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs {
    padding: 0.65rem 0 1.5rem !important;
    color: rgba(240, 235, 227, 0.62) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 0 !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs a,
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__link {
    color: rgba(240, 235, 227, 0.85) !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs a:hover,
body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__link:hover {
    color: #dbb06a !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__text {
    color: rgba(240, 235, 227, 0.62) !important;
}

body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-separator {
    color: rgba(255, 255, 255, 0.22) !important;
}

/* Кнопки/карточки KB: стили задаются встроенным <style> в контенте страницы — не дублируем здесь */

/* ═══════════════════════════════════════════════════════════════════
   INNER PAGE CONTENT — dark theme, consistent styling
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .entry-content {
    color: #dedee8;
    font-size: 1rem;
    line-height: 1.7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body:not(.kl-landing-page) .entry-content a {
    color: #c9943e;
    text-decoration: none;
    border-bottom: 1px solid rgba(201,148,62,0.3);
    transition: color 0.2s, border-color 0.2s;
}

body:not(.kl-landing-page) .entry-content a:hover {
    color: #dbb06a;
    border-bottom-color: #dbb06a;
}

body:not(.kl-landing-page):not(.single-post) .post-card__header {
    display: none !important;
}

/* KL cloud / встроенное видео: flex + min-height у article/entry тянули блок вниз («дыра»). Native/iframe тоже. */
body:not(.kl-landing-page) .site-main > article:has(.kl-cloud-video),
body:not(.kl-landing-page) .site-main > article:has(.kl-kinescope-embed),
body:not(.kl-landing-page) .site-main > article:has(.kl-lesson-supplement) {
    min-height: 0 !important;
    overflow: visible !important;
}

body:not(.kl-landing-page) .entry-content:has(.kl-cloud-video),
body:not(.kl-landing-page) .entry-content:has(.kl-kinescope-embed),
body:not(.kl-landing-page) .entry-content:has(.kl-lesson-supplement) {
    display: block !important;
    flex: none !important;
    flex-grow: 0 !important;
    min-height: 0 !important;
}

body:not(.kl-landing-page) .wp-block-shortcode:has(.kl-cloud-video),
body:not(.kl-landing-page) .wp-block-html:has(.kl-kinescope-embed) {
    display: block !important;
    min-height: 0 !important;
    max-width: 100% !important;
}

/* Встроенный iframe: не padding-top:56% (ломается внутри flex), а aspect-ratio */
body:not(.kl-landing-page) .kl-kinescope-embed {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    background: #0a0a12;
    border-radius: 12px;
    overflow: hidden;
    margin: 0.35em 0 1.25em;
}

body:not(.kl-landing-page) .kl-kinescope-embed iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   Страница урока / видео: содержание по таймкодам + описание (под плеером)
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .kl-lesson-supplement {
    margin-top: 2rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.kl-landing-page) .kl-lesson-lead {
    font-size: 1.06rem;
    line-height: 1.55;
    color: rgba(232, 232, 242, 0.95);
    margin: 0 0 1.5rem;
    max-width: 40rem;
}

body:not(.kl-landing-page) .kl-lesson-h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 1.85rem 0 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

body:not(.kl-landing-page) .kl-lesson-supplement .kl-lesson-h2:first-of-type {
    margin-top: 0.25rem;
}

body:not(.kl-landing-page) .kl-lesson-hint {
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(198, 198, 215, 0.62);
    margin: 0 0 1rem;
    max-width: 38rem;
}

body:not(.kl-landing-page) .kl-lesson-hint code {
    font-size: 0.9em;
    padding: 0.12em 0.35em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(232, 232, 242, 0.9);
}

body:not(.kl-landing-page) .kl-chapter-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.035);
    overflow: hidden;
}

body:not(.kl-landing-page) .kl-chapter-row {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body:not(.kl-landing-page) .kl-chapter-row:last-child {
    border-bottom: 0;
}

body:not(.kl-landing-page) .kl-chapter-link {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: baseline;
    padding: 12px 16px;
    color: #e8e8f2 !important;
    border-bottom: none !important;
    text-decoration: none !important;
    transition: background 0.15s ease;
}

body:not(.kl-landing-page) .kl-chapter-link:hover {
    background: rgba(201, 148, 62, 0.1);
    color: #fff !important;
}

body:not(.kl-landing-page) .kl-chapter-time {
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9943e;
    min-width: 3.25rem;
}

body:not(.kl-landing-page) .kl-chapter-text {
    flex: 1 1 12rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

body:not(.kl-landing-page) .kl-chapter-row--placeholder .kl-chapter-text {
    color: rgba(198, 198, 215, 0.55);
    font-style: italic;
}

body:not(.kl-landing-page) .kl-chapter-row--static {
    display: flex;
    gap: 14px;
    align-items: baseline;
    padding: 12px 16px;
}

body:not(.kl-landing-page) .kl-lesson-body {
    max-width: 42rem;
    font-size: 0.98rem;
    line-height: 1.75;
    color: rgba(222, 222, 232, 0.96);
}

body:not(.kl-landing-page) .kl-lesson-body p {
    margin: 0 0 1em;
}

body:not(.kl-landing-page) .kl-lesson-body p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    body:not(.kl-landing-page) .kl-chapter-link {
        padding: 11px 14px;
    }

    body:not(.kl-landing-page) .kl-lesson-h2 {
        font-size: 1.08rem;
    }
}

/* K9 shield / курс: посадочная с модулями видео */
body:not(.kl-landing-page) .kl-k9-lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: rgba(232, 232, 242, 0.95);
    max-width: 46rem;
    margin-bottom: 1.25rem;
}

body:not(.kl-landing-page) .kl-course-program {
    margin-top: 2.25rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body:not(.kl-landing-page) .kl-course-program-heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

body:not(.kl-landing-page) .kl-course-program-note {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(198, 198, 215, 0.72);
    margin: 0 0 1.5rem;
    max-width: 42rem;
}

body:not(.kl-landing-page) .kl-course-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

body:not(.kl-landing-page) .kl-course-module-card {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 1.1rem 1.2rem 1.15rem;
    transition: border-color 0.15s ease, background 0.15s ease;
}

body:not(.kl-landing-page) .kl-course-module-card:hover {
    border-color: rgba(201, 148, 62, 0.35);
    background: rgba(201, 148, 62, 0.06);
}

body:not(.kl-landing-page) .kl-course-module-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

body:not(.kl-landing-page) .kl-course-module-meta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c9943e;
    margin: 0 0 0.5rem;
}

body:not(.kl-landing-page) .kl-course-module-soon {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(198, 198, 215, 0.55);
    margin: 0;
    font-style: italic;
}

body:not(.kl-landing-page) a.kl-course-module-card--link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    border-bottom: none !important;
}

body:not(.kl-landing-page) a.kl-course-module-card--link:hover .kl-course-module-title {
    color: #dbb06a;
}

body:not(.kl-landing-page) .kl-course-module-cta {
    font-size: 0.86rem;
    font-weight: 600;
    color: #c9943e;
    margin: 0;
    font-style: normal;
}

body:not(.kl-landing-page) .kl-k9-back {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
}

body:not(.kl-landing-page) .kl-k9-back a {
    color: #c9943e !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

body:not(.kl-landing-page) .kl-k9-back a:hover {
    color: #dbb06a !important;
}

/* K9 вводная: блок под каждым роликом */
body:not(.kl-landing-page) .site-main > article:has(.kl-k9-video-block),
body:not(.kl-landing-page) .entry-content:has(.kl-k9-video-block) {
    min-height: 0 !important;
}

body:not(.kl-landing-page) .kl-k9-video-block {
    margin: 0 0 2.5rem;
    padding: 0 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

body:not(.kl-landing-page) .kl-k9-video-block:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

body:not(.kl-landing-page) .kl-k9-video-heading {
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

body:not(.kl-landing-page) .kl-k9-video-num {
    color: #c9943e;
    font-variant-numeric: tabular-nums;
    margin-right: 0.25em;
}

body:not(.kl-landing-page) .kl-k9-video-desc {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(210, 210, 225, 0.88);
    margin: 0 0 1rem;
    max-width: 44rem;
}

body:not(.kl-landing-page) .kl-k9-video-block .kl-kinescope-embed {
    margin-top: 0.35em;
}

@media (max-width: 768px) {
    body:not(.kl-landing-page) .kl-course-program-heading {
        font-size: 1.18rem;
    }

    body:not(.kl-landing-page) .kl-k9-video-heading {
        font-size: 1.02rem;
    }

    body:not(.kl-landing-page) .kl-k9-video-block {
        margin-bottom: 2rem;
        padding-bottom: 1.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   О КЛУБЕ (About) page styles
   ═══════════════════════════════════════════════════════════════════ */

.kl-about-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 0 64px;
}

.kl-about-hero {
    text-align: center;
    padding: 48px 0 40px;
}

.kl-about-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.kl-about-hero h1 span {
    background: linear-gradient(135deg, #c9943e, #dbb06a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kl-about-subtitle {
    font-size: 1.15rem;
    color: rgba(200, 200, 215, 0.7);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

.kl-about-section {
    margin-bottom: 48px;
}

.kl-about-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(201,148,62,0.2);
    letter-spacing: -0.01em;
}

.kl-about-section > p {
    color: rgba(220, 220, 232, 0.85);
    line-height: 1.8;
    margin: 0 0 16px;
    font-size: 1rem;
}

.kl-about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.kl-about-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.kl-about-card:hover {
    border-color: rgba(201,148,62,0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.kl-about-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.kl-about-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.kl-about-card p {
    color: rgba(160,160,175,0.8);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.kl-about-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kl-about-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
}

.kl-about-check {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201,148,62,0.12);
    color: #c9943e;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
}

.kl-about-list-item p {
    margin: 0;
    color: rgba(220,220,232,0.85);
    line-height: 1.55;
    font-size: 0.95rem;
}

.kl-about-list-item strong {
    color: #fff;
}

.kl-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.kl-about-stat {
    padding: 28px 16px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}

.kl-about-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #c9943e, #dbb06a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.kl-about-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(160,160,175,0.7);
}

.kl-about-cta {
    text-align: center;
    padding: 48px 32px;
    background: rgba(201,148,62,0.04);
    border: 1px solid rgba(201,148,62,0.12);
    border-radius: 20px;
}

.kl-about-cta h2 {
    border-bottom: none;
}

.kl-about-cta p {
    max-width: 440px;
    margin: 0 auto 24px;
}

.kl-about-btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #c9943e 100%);
    color: #0a0a14 !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 12px;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.02em;
}

.kl-about-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201,148,62,0.3);
    color: #0a0a14 !important;
}

@media (max-width: 768px) {
    .kl-about-page {
        padding: 16px 0 40px;
    }

    .kl-about-hero {
        padding: 24px 0 28px;
    }

    .kl-about-hero h1 {
        font-size: 1.6rem;
    }

    .kl-about-subtitle {
        font-size: 0.95rem;
    }

    .kl-about-grid {
        grid-template-columns: 1fr;
    }

    .kl-about-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .kl-about-stat {
        padding: 20px 12px;
    }

    .kl-about-stat-num {
        font-size: 1.5rem;
    }

    .kl-about-cta {
        padding: 32px 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   КОНТАКТЫ (Contacts) page styles
   ═══════════════════════════════════════════════════════════════════ */

.kl-contacts-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 0 64px;
}

.kl-contacts-hero {
    text-align: center;
    padding: 48px 0 40px;
}

.kl-contacts-hero h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.kl-contacts-subtitle {
    font-size: 1.1rem;
    color: rgba(200,200,215,0.65);
}

.kl-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.kl-contacts-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 28px 24px;
    transition: border-color 0.3s, transform 0.3s;
}

.kl-contacts-card:hover {
    border-color: rgba(201,148,62,0.3);
    transform: translateY(-3px);
}

.kl-contacts-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.kl-contacts-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.kl-contacts-card p {
    margin: 0 0 6px;
    font-size: 0.95rem;
}

.kl-contacts-card a {
    color: #c9943e !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(201,148,62,0.3) !important;
    transition: color 0.2s;
}

.kl-contacts-card a:hover {
    color: #dbb06a !important;
    border-bottom-color: #dbb06a !important;
}

.kl-contacts-hint {
    color: rgba(160,160,175,0.6) !important;
    font-size: 0.82rem !important;
    margin-top: 4px !important;
}

.kl-contacts-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kl-contacts-social a {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 10px;
    font-size: 0.88rem;
    transition: background 0.2s, border-color 0.2s;
}

.kl-contacts-social a:hover {
    background: rgba(201,148,62,0.1);
    border-color: rgba(201,148,62,0.3) !important;
}

.kl-contacts-section {
    margin-bottom: 40px;
}

.kl-contacts-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(201,148,62,0.2);
}

.kl-contacts-faq {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kl-contacts-faq-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px 24px;
}

.kl-contacts-faq-item h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.kl-contacts-faq-item p {
    color: rgba(200,200,215,0.75);
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0;
}

.kl-contacts-faq-item a {
    color: #c9943e !important;
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .kl-contacts-page {
        padding: 16px 0 40px;
    }

    .kl-contacts-hero {
        padding: 24px 0 28px;
    }

    .kl-contacts-hero h1 {
        font-size: 1.6rem;
    }

    .kl-contacts-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   SINGLE NEWS POST — card style matching /news/ page
   ═══════════════════════════════════════════════════════════════════ */

body.single-post .site-content {
    max-width: min(1180px, calc(100vw - 32px)) !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* --- Hide theme breadcrumbs on single post --- */
body.single-post .breadcrumbs,
body.single-post .breadcrumb {
    display: none !important;
}

/* База знаний: крошки нужны (тема скрывает их для «обычных» постов) */
body.single-post.kl-kb-bz-article .breadcrumbs,
body.single-post.kl-kb-bz-article .breadcrumb {
    display: block !important;
}

/* --- Post card — «подложка» под тёмную тему сообщества (не бумажные статьи БЗ — их kl-articles) --- */
body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) article.post-card {
    background: rgba(14, 14, 26, 0.92) !important;
    backdrop-filter: blur(18px) saturate(1.2) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.09) !important;
    border-radius: 20px !important;
    padding: 36px 32px 32px !important;
    box-sizing: border-box !important;
    margin-top: 40px !important;
    margin-bottom: 32px !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(201, 148, 62, 0.06) inset !important;
}

/* --- Header: show title, hide vote/avatar junk --- */
body.single-post .post-card__header {
    display: block !important;
    padding: 0 !important;
    margin: 0 0 24px !important;
    border: none !important;
    background: none !important;
}

body.single-post .post-card__header .post-meta,
body.single-post .post-card__header .post-card__meta {
    display: none !important;
}

body.single-post .post-card__title {
    display: block !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 0 20px !important;
    border-bottom: 2px solid rgba(201,148,62,0.25) !important;
    letter-spacing: -0.01em;
    text-align: left !important;
}

/* --- Текст записи: на всю ширину карточки (без узкой «колонки в колонке»); бумажные статьи БЗ — kl-articles --- */
body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content {
    color: rgba(218, 218, 230, 0.92) !important;
    font-size: 1.06rem !important;
    line-height: 1.88 !important;
    text-align: left !important;
    letter-spacing: 0.01em;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content p {
    margin-bottom: 1.35em !important;
    margin-top: 0 !important;
    text-align: left !important;
    color: rgba(218, 218, 230, 0.92) !important;
}

body.single-post .entry-content p.kl-news-body-p {
    margin-bottom: 1.4em !important;
    text-indent: 0 !important;
}

body.single-post .entry-content h3.kl-news-subhead {
    font-size: 1.18rem !important;
    font-weight: 700 !important;
    color: #e8c078 !important;
    line-height: 1.38 !important;
    margin: 2rem 0 0.85rem !important;
    padding: 0 0 0.45rem !important;
    border-bottom: 1px solid rgba(201, 148, 62, 0.22) !important;
    letter-spacing: 0.02em !important;
    text-align: left !important;
}

body.single-post .entry-content h3.kl-news-subhead:first-child {
    margin-top: 0 !important;
}

body.single-post .entry-content .kl-news-body-p + .kl-news-subhead {
    margin-top: 1.75rem !important;
}

body.single-post .entry-content em {
    color: rgba(201, 148, 62, 0.65);
    font-style: italic;
}

/* --- Источник: только блок с классом (не красим последний абзац тела) --- */
body.single-post .entry-content .kl-news-source-line {
    display: block;
    margin-top: 2rem !important;
    margin-bottom: 0 !important;
    padding-top: 1.25rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: rgba(160, 160, 175, 0.55) !important;
    font-size: 0.86rem !important;
    line-height: 1.5 !important;
}

body.single-post .entry-content .kl-news-source-line a {
    color: #c9943e !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(201,148,62,0.2) !important;
    font-style: normal;
    transition: color 0.2s, border-color 0.2s;
}

body.single-post .entry-content .kl-news-source-line a:hover {
    color: #dbb06a !important;
    border-bottom-color: #dbb06a !important;
}

/* --- Footer: views/comments bar --- */
body.single-post .post-card__footer {
    margin-top: 20px !important;
    padding-top: 16px !important;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
}

body.single-post .post-card__footer .post-meta {
    display: flex !important;
    gap: 16px;
    align-items: center;
}

body.single-post .post-card__footer .post-meta__views,
body.single-post .post-card__footer .post-meta__comments a,
body.single-post .post-card__footer .post-meta__date {
    color: rgba(160,160,175,0.45) !important;
    font-size: 0.8rem !important;
}

body.single-post .post-card__footer .post-meta__views svg,
body.single-post .post-card__footer .post-meta__comments svg {
    fill: rgba(160,160,175,0.3) !important;
    width: 16px !important;
    height: 16px !important;
}

body.single-post .post-card__footer .vote,
body.single-post .post-card__footer .post-meta__access,
body.single-post .post-card__footer .post-meta__bookmarks,
body.single-post .post-card__footer .post-meta__right {
    display: none !important;
}

/* --- Back to news link (injected via JS) --- */
body.single-post .kl-back-to-news {
    display: block;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    color: rgba(201,148,62,0.6) !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s;
}

body.single-post .kl-back-to-news:hover {
    color: #dbb06a !important;
}

/* --- Одиночная публикация в рубрике «Новости»: бумажная поверхность как у /novosti/ --- */
body.single-post.kl-news-surface,
html body.single-post.kl-news-surface {
    background: #e9e4d8 !important;
    background-color: #e9e4d8 !important;
    color: #161412 !important;
}

body.single-post.kl-news-surface .site-content {
    max-width: min(1280px, 100%) !important;
}

body.single-post.kl-news-surface #page,
body.single-post.kl-news-surface .site {
    background: transparent !important;
}

body.single-post.kl-news-surface article.post-card {
    background: rgba(252, 251, 248, 0.97) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    box-shadow: 0 14px 44px rgba(28, 25, 22, 0.11) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.single-post.kl-news-surface .post-card__title {
    font-family: Georgia, 'Times New Roman', serif !important;
    color: #1a1814 !important;
    border-bottom-color: rgba(201, 148, 62, 0.35) !important;
}

body.single-post.kl-news-surface .entry-content,
body.single-post.kl-news-surface .entry-content p {
    color: #2a2722 !important;
}

body.single-post.kl-news-surface .entry-content h3.kl-news-subhead {
    color: #7c4218 !important;
    border-bottom-color: rgba(171, 107, 26, 0.35) !important;
}

body.single-post.kl-news-surface .entry-content .kl-news-source-line {
    border-top-color: rgba(22, 20, 18, 0.12) !important;
    color: #6b6560 !important;
}

body.single-post.kl-news-surface .entry-content em {
    color: rgba(124, 66, 24, 0.85) !important;
}

body.single-post.kl-news-surface .comments-area {
    background: rgba(252, 251, 248, 0.92) !important;
    border-color: rgba(22, 20, 18, 0.1) !important;
}

body.single-post.kl-news-surface .comments-area .comments-title,
body.single-post.kl-news-surface .comments-area h2,
body.single-post.kl-news-surface .comments-area h3 {
    color: #1a1814 !important;
}

body.single-post.kl-news-surface .post-card__footer {
    border-top-color: rgba(22, 20, 18, 0.1) !important;
}

body.single-post.kl-news-surface .post-card__footer .post-meta__views,
body.single-post.kl-news-surface .post-card__footer .post-meta__comments a,
body.single-post.kl-news-surface .post-card__footer .post-meta__date {
    color: #6b6560 !important;
}

body.single-post.kl-news-surface .post-navigation a,
body.single-post.kl-news-surface .nav-links a {
    color: #92400e !important;
}

body.single-post.kl-news-surface .post-navigation a:hover,
body.single-post.kl-news-surface .nav-links a:hover {
    color: #b45309 !important;
}

body.single-post.kl-news-surface .kl-back-to-news {
    border-top-color: rgba(22, 20, 18, 0.12) !important;
    color: #92400e !important;
}

body.single-post.kl-news-surface .kl-back-to-news:hover {
    color: #b45309 !important;
}

/* --- Post navigation --- */
body.single-post .post-navigation,
body.single-post .nav-links {
    margin-top: 0;
    padding: 20px 0;
}

body.single-post .post-navigation a,
body.single-post .nav-links a {
    color: rgba(201,148,62,0.6) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 0.88rem;
    transition: color 0.2s;
}

body.single-post .post-navigation a:hover,
body.single-post .nav-links a:hover {
    color: #dbb06a !important;
}

/* --- Comments section --- */
body.single-post .comments-area {
    background: rgba(255,255,255,0.015) !important;
    border: 1px solid rgba(255,255,255,0.04) !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    margin-bottom: 32px !important;
}

body.single-post .comments-area .comments-title,
body.single-post .comments-area h2,
body.single-post .comments-area h3 {
    color: #fff !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* --- Tablet --- */
@media (max-width: 1024px) {
    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) article.post-card {
        padding: 28px 24px 24px !important;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    body.single-post .site-content {
        max-width: 100% !important;
        padding: 0 16px !important;
    }

    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) article.post-card {
        padding: 20px 16px 18px !important;
        border-radius: 12px !important;
        margin-top: 20px !important;
    }

    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .post-card__title {
        font-size: 1.25rem !important;
        padding-bottom: 14px !important;
    }

    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content {
        font-size: 0.96rem !important;
        line-height: 1.78 !important;
        max-width: 100% !important;
    }

    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content p,
    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content p.kl-news-body-p {
        margin-bottom: 1.2em !important;
    }

    body.single-post .entry-content h3.kl-news-subhead {
        font-size: 1.05rem !important;
        margin: 1.5rem 0 0.65rem !important;
    }

    body.single-post .comments-area {
        padding: 20px 18px !important;
        border-radius: 12px !important;
    }
}

@media (max-width: 480px) {
    body.single-post .site-content {
        padding: 0 12px !important;
    }

    body.single-post:not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) article.post-card {
        padding: 18px 12px 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NEWS page — тот же визуальный язык, что и блок «База знаний» (.kl-kb-hub)
   ═══════════════════════════════════════════════════════════════════ */

.kl-news-page {
    max-width: min(1240px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 28px 0 56px;
}

/* Шапка раздела как .kl-kb-hub__head (левое выравнивание, те же пропорции) */
.kl-news-hero {
    text-align: left;
    padding: 28px 0 24px;
    margin-bottom: 8px;
}

.kl-news-hero h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.kl-news-subtitle {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(200, 200, 215, 0.72);
    max-width: 52rem;
}

.kl-news-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

/* Карточка новости = .kl-kb-hub__card */
.kl-news-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px 16px;
    min-height: 108px;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    position: relative;
}

.kl-news-item:first-child {
    border-color: rgba(201, 148, 62, 0.28);
    background: rgba(201, 148, 62, 0.06);
}

.kl-news-item:first-child::before {
    content: 'НОВОЕ';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(201, 148, 62, 0.2);
    color: #dbb06a;
}

.kl-news-item:hover {
    border-color: rgba(201, 148, 62, 0.35);
    background: rgba(201, 148, 62, 0.06);
    transform: translateY(-2px);
    box-shadow: none;
}

.kl-news-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f0f8;
    margin: 0;
    line-height: 1.35;
    padding-right: 56px;
}

.kl-news-item h3 a {
    color: inherit !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s;
}

.kl-news-item h3 a:hover {
    color: #dbb06a !important;
}

.kl-news-item .kl-news-excerpt {
    flex: 1;
    color: rgba(180, 180, 195, 0.75);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kl-news-item p {
    color: rgba(180, 180, 195, 0.75);
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0;
}

.kl-news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(160, 160, 175, 0.55);
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.kl-news-meta .kl-news-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.kl-news-meta .kl-news-date::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(201,148,62,0.5);
}

.kl-news-source {
    color: #c9943e !important;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: color 0.2s;
}

a.kl-news-source:hover {
    color: #dbb06a !important;
    text-decoration: underline !important;
}

.kl-news-readmore {
    margin-left: auto;
    color: rgba(201,148,62,0.7) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s;
}

.kl-news-readmore:hover {
    color: #dbb06a !important;
}

/* --- Pagination --- */

.kl-news-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 40px 0 20px;
}

.kl-news-pagination a,
.kl-news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: all 0.25s;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(160,160,175,0.7) !important;
}

.kl-news-pagination a:hover {
    background: rgba(201,148,62,0.1);
    border-color: rgba(201,148,62,0.3);
    color: #c9943e !important;
}

.kl-news-pagination .current {
    background: linear-gradient(135deg, #c9943e, #dbb06a);
    border-color: transparent;
    color: #0a0a14 !important;
    font-weight: 700;
}

/* --- Yandex/Dzen-style tabs + headline list ([kl_news] v2) --- */

.kl-news-yandex {
    margin-top: 4px;
    margin-bottom: 28px;
    padding: 20px 18px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.kl-news-yandex-empty,
.kl-news-yandex-panel-empty {
    text-align: center;
    color: rgba(200, 200, 215, 0.5);
    padding: 28px 16px;
    font-size: 0.95rem;
    margin: 0;
}

.kl-news-yandex-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    row-gap: 10px;
    overflow: visible;
    padding: 0 0 16px;
    margin: 0 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* без горизонтального скролла — иначе на Windows видна «крутилка» скроллбара */
}

.kl-news-yandex-tab {
    flex: 0 0 auto;
    appearance: none;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(200, 200, 215, 0.75);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.07);
    line-height: 1.3;
    text-align: center;
    max-width: 100%;
}

.kl-news-yandex-tab:hover {
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.kl-news-yandex-tab.is-active {
    color: #0a0a14;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #c9943e 100%);
    border-color: transparent;
    box-shadow: 0 2px 14px rgba(201, 148, 62, 0.28);
}

@media (max-width: 900px) {
    .kl-news-yandex-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        gap: 8px;
        padding-bottom: 10px;
        margin-left: -4px;
        margin-right: -4px;
        padding-left: 4px;
        padding-right: 4px;
        scrollbar-width: thin;
        mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
        -webkit-mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
    }

    .kl-news-yandex-tabs::-webkit-scrollbar {
        height: 3px;
    }

    .kl-news-yandex-tabs::-webkit-scrollbar-thumb {
        background: rgba(201, 148, 62, 0.35);
        border-radius: 99px;
    }

    .kl-news-yandex-tab {
        flex: 0 0 auto;
        scroll-snap-align: start;
        font-size: 0.8rem;
        padding: 11px 16px;
        min-height: 44px;
        box-sizing: border-box;
        white-space: nowrap;
        max-width: min(92vw, 20rem);
        text-align: center;
    }
}

.kl-news-yandex-panels {
    position: relative;
    min-height: 120px;
    margin-top: 4px;
    padding-top: 4px;
}

.kl-news-yandex-panel[hidden] {
    display: none !important;
}

.kl-news-dzen-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.kl-news-dzen-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.kl-news-dzen-item + .kl-news-dzen-item {
    border-top: none;
}

.kl-news-dzen-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit;
    box-sizing: border-box;
    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.15s,
        box-shadow 0.2s;
}

.kl-news-dzen-card:hover {
    border-color: rgba(201, 148, 62, 0.38);
    background: rgba(201, 148, 62, 0.07);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.kl-news-dzen-card:focus-visible {
    outline: 2px solid #c9943e;
    outline-offset: 3px;
}

.kl-news-dzen-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(201, 148, 62, 0.09));
    overflow: hidden;
}

.kl-news-dzen-thumb--ph {
    background: linear-gradient(145deg, rgba(58, 52, 48, 0.92), rgba(24, 22, 28, 0.96));
}

.kl-news-dzen-thumb-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kl-news-dzen-source-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(10, 10, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.kl-news-dzen-source-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.kl-news-dzen-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px 14px;
}

.kl-news-dzen-card-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.94) !important;
    letter-spacing: -0.02em;
}

.kl-news-dzen-card:hover .kl-news-dzen-card-title {
    color: #dbb06a !important;
}

.kl-news-dzen-excerpt {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(180, 180, 198, 0.72);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kl-news-dzen-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.kl-news-dzen-date {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(180, 180, 198, 0.55);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.kl-news-dzen-source-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: rgba(201, 148, 62, 0.88);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kl-news-dzen-meta-ico {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.kl-news-dzen-meta-ico img {
    width: 14px;
    height: 14px;
    object-fit: contain;
    display: block;
}

.kl-news-dzen-card--no-thumb .kl-news-dzen-body {
    padding-top: 14px;
}

.kl-news-yandex-panel:not(.is-expanded) .kl-news-dzen-item:nth-child(n + 6) {
    display: none;
}

.kl-news-dzen-item--lead .kl-news-dzen-card-title {
    font-size: 1.05rem;
}

@media (min-width: 900px) {
    .kl-news-dzen-item--lead.kl-news-dzen-item--has-thumb {
        grid-column: span 2;
    }

    .kl-news-dzen-item--lead.kl-news-dzen-item--has-thumb .kl-news-dzen-thumb {
        aspect-ratio: 21 / 9;
    }
}

@media (max-width: 768px) {
    .kl-news-yandex-panel .kl-news-dzen-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kl-news-dzen-item--lead.kl-news-dzen-item--has-thumb {
        grid-column: auto;
    }

    .kl-news-dzen-item--lead.kl-news-dzen-item--has-thumb .kl-news-dzen-thumb {
        aspect-ratio: 16 / 9;
    }

    .kl-news-dzen-card {
        border-radius: 12px;
    }

    .kl-news-dzen-body {
        padding: 11px 13px 13px;
        gap: 5px;
    }

    .kl-news-dzen-card--no-thumb .kl-news-dzen-body {
        padding-top: 13px;
    }

    .kl-news-dzen-card-title {
        font-size: 0.94rem;
        line-height: 1.38;
    }

    .kl-news-dzen-item--lead .kl-news-dzen-card-title {
        font-size: 1rem;
    }

    .kl-news-dzen-excerpt {
        font-size: 0.78rem;
        line-height: 1.42;
        -webkit-line-clamp: 2;
    }

    .kl-news-dzen-meta {
        gap: 6px 10px;
        padding-top: 6px;
    }

    .kl-news-dzen-source-label {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .kl-news-yandex-more {
        min-height: 48px;
        padding: 12px 18px;
        font-size: 0.88rem;
        border-radius: 12px;
    }

    .kl-news-date-filter__toggle {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-height: 48px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
}

.kl-news-yandex-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 148, 62, 0.35);
    border-radius: 12px;
    color: rgba(201, 148, 62, 0.95) !important;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
}

.kl-news-yandex-more:hover {
    background: rgba(201, 148, 62, 0.12);
    border-color: rgba(201, 148, 62, 0.55);
    color: #dbb06a !important;
}

.kl-news-yandex-more[hidden],
.kl-news-yandex-panel.is-expanded .kl-news-yandex-more {
    display: none;
}

.kl-news-yandex-chevron {
    opacity: 0.75;
}

/* Архив ленты по дню (календарь под вкладками рубрик) */
.kl-news-date-filter {
    position: relative;
    margin: 0 0 14px;
    max-width: 100%;
}

.kl-news-date-filter__toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(220, 220, 230, 0.88);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
    line-height: 1.25;
}

.kl-news-date-filter__toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.kl-news-date-filter__toggle-main {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.94);
}

.kl-news-date-filter__toggle-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(201, 148, 62, 0.85);
    letter-spacing: 0.02em;
}

.kl-news-date-filter__popover {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 80;
    min-width: 272px;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(28, 28, 38, 0.98), rgba(16, 16, 24, 0.99));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.kl-news-date-filter__popover[hidden] {
    display: none !important;
}

.kl-news-date-filter__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.kl-news-date-filter__prev,
.kl-news-date-filter__next {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
    padding: 0;
}

.kl-news-date-filter__prev:hover,
.kl-news-date-filter__next:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.kl-news-date-filter__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    flex: 1;
}

.kl-news-date-filter__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(180, 180, 198, 0.45);
    text-align: center;
}

.kl-news-date-filter__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.kl-news-date-filter__pad {
    min-height: 36px;
}

.kl-news-date-filter__day {
    position: relative;
    min-height: 36px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(230, 230, 240, 0.88);
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.kl-news-date-filter__day:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.kl-news-date-filter__day--has::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 5px;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(201, 148, 62, 0.9);
}

.kl-news-date-filter__day.is-selected {
    background: linear-gradient(135deg, rgba(220, 200, 150, 0.35), rgba(201, 148, 62, 0.45));
    border-color: rgba(201, 148, 62, 0.55);
    color: #fff;
}

.kl-news-date-filter__foot {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.kl-news-date-filter__clear {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(201, 148, 62, 0.9) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.kl-news-date-filter__clear:hover {
    color: #dbb06a !important;
}

.kl-news-day-banner {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(201, 148, 62, 0.1);
    border: 1px solid rgba(201, 148, 62, 0.22);
    color: rgba(220, 215, 230, 0.88);
    font-size: 0.84rem;
    line-height: 1.45;
}

.kl-news-day-banner a {
    color: #dbb06a !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: 6px;
}

.kl-news-day-banner a:hover {
    text-decoration: underline !important;
}

@media (max-width: 480px) {
    .kl-news-date-filter__popover {
        left: 0;
        right: 0;
        min-width: 0;
        width: 100%;
        max-width: min(100vw - 24px, 320px);
    }
}

/* ── Под лентой [kl_news]: последние статьи + база знаний ── */

.kl-news-after {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.kl-latest-articles__head,
.kl-kb-hub__head {
    margin-bottom: 24px;
}

.kl-latest-articles__title,
.kl-kb-hub__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.kl-latest-articles__lead,
.kl-kb-hub__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: rgba(200, 200, 215, 0.72);
    max-width: 52rem;
}

.kl-latest-articles__empty {
    color: rgba(200, 200, 215, 0.75);
    font-size: 0.95rem;
}

.kl-latest-articles__empty a {
    color: #dbb06a;
    text-decoration: underline;
}

/* Карусель «Последние статьи» */
.kl-latest-articles__carousel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
}

.kl-latest-articles__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 148, 62, 0.35) rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2px 0 10px;
}

.kl-latest-articles__viewport::-webkit-scrollbar {
    height: 6px;
}

.kl-latest-articles__viewport::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 6px;
}

.kl-latest-articles__viewport::-webkit-scrollbar-thumb {
    background: rgba(201, 148, 62, 0.35);
    border-radius: 6px;
}

.kl-latest-articles__track {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 4px 2px 6px;
    min-height: 100%;
}

.kl-latest-articles__slide {
    flex: 0 0 min(300px, calc(100vw - 56px));
    scroll-snap-align: start;
    max-width: 300px;
}

.kl-latest-articles__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 280px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(14, 14, 26, 0.75);
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.kl-latest-articles__card:hover {
    border-color: rgba(201, 148, 62, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

.kl-latest-articles__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(145deg, rgba(30, 28, 45, 0.95) 0%, rgba(18, 16, 28, 1) 100%);
    overflow: hidden;
}

.kl-latest-articles__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.kl-latest-articles__card:hover .kl-latest-articles__img {
    transform: scale(1.04);
}

.kl-latest-articles__card--locked .kl-latest-articles__media::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(200deg, rgba(26, 24, 20, 0.2) 0%, transparent 55%);
}

.kl-latest-articles__lock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(18, 16, 14, 0.78);
    color: #f3e8d4;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.kl-latest-articles__lock-icon {
    display: block;
    flex-shrink: 0;
}

.kl-latest-articles__card--locked .kl-latest-articles__img {
    filter: brightness(0.94) saturate(0.95);
}

.kl-latest-articles__ph {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(201, 148, 62, 0.15) 0%,
        rgba(80, 70, 50, 0.35) 45%,
        rgba(20, 18, 32, 0.9) 100%
    );
}

.kl-latest-articles__ph::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(201,148,62,0.25)' stroke-width='1'%3E%3Cpath d='M4 16l4-4 4 4 8-8'/%3E%3Ccircle cx='9' cy='7' r='2'/%3E%3C/svg%3E")
        center / 48px 48px no-repeat;
    opacity: 0.9;
}

.kl-latest-articles__card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px 16px;
}

.kl-latest-articles__card-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.94) !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.kl-latest-articles__card-date {
    margin-top: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(160, 160, 175, 0.65);
}

.kl-latest-articles__nav {
    align-self: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #dbb06a;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    font-family: inherit;
}

.kl-latest-articles__nav:hover {
    background: rgba(201, 148, 62, 0.12);
    border-color: rgba(201, 148, 62, 0.35);
    color: #f0d090;
}

.kl-latest-articles__nav:focus-visible {
    outline: 2px solid #c9943e;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .kl-latest-articles__carousel {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .kl-latest-articles__nav {
        display: none;
    }

    .kl-latest-articles__slide {
        flex-basis: min(280px, calc(100vw - 40px));
        max-width: 280px;
    }
}

.kl-latest-articles__more {
    margin: 16px 0 0;
}

.kl-latest-articles__more-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #c9943e;
    text-decoration: none;
}

.kl-latest-articles__more-link:hover {
    color: #dbb06a;
}

.kl-kb-hub__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.kl-kb-hub__card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    position: relative;
    min-height: 108px;
}

a.kl-kb-hub__card:hover {
    border-color: rgba(201, 148, 62, 0.35);
    background: rgba(201, 148, 62, 0.06);
    transform: translateY(-2px);
}

.kl-kb-hub__card--soon {
    opacity: 0.88;
    cursor: default;
}

.kl-kb-hub__card-title {
    font-weight: 700;
    font-size: 1rem;
    color: #f0f0f8;
}

.kl-kb-hub__card-hint {
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(180, 180, 195, 0.75);
}

.kl-kb-hub__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(201, 148, 62, 0.2);
    color: #dbb06a;
}

.kl-kb-hub__badge--member {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 52px);
    text-align: right;
    line-height: 1.25;
}

/* Под лентой новостей: один блок «Исследования» + замок */
.kl-kb-hub--research-solo .kl-kb-hub__grid {
    grid-template-columns: 1fr;
    max-width: min(560px, 100%);
}

.kl-kb-hub__card--research-lock {
    padding-top: 22px;
    padding-right: 20px;
    min-height: 120px;
    border-color: rgba(201, 148, 62, 0.22) !important;
}

.kl-kb-hub__lock {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(201, 148, 62, 0.14);
    color: #92400e;
}

.kl-kb-hub__lock-icon {
    flex-shrink: 0;
}

.kl-kb-hub__card--research-lock .kl-kb-hub__card-title {
    padding-left: 48px;
    padding-right: 6rem;
}

.kl-kb-hub__card--research-lock .kl-kb-hub__card-hint {
    padding-left: 48px;
}

/* Устаревшие пункты таб-бара профиля (актуальный архив — /category/atricle/) */
body:not(.kl-landing-page) .wpc-tabs a[href*="/stati"],
body:not(.kl-landing-page) .wpc-tab-links a[href*="/stati"],
body:not(.kl-landing-page) .wpc-user-profile a[href*="/stati"],
body:not(.kl-landing-page) .wpc-account a[href*="/stati"],
body:not(.kl-landing-page) .wpc-tabs a[href*="/articles"],
body:not(.kl-landing-page) .wpc-tab-links a[href*="/articles"],
body:not(.kl-landing-page) .wpc-user-profile a[href*="/articles"],
body:not(.kl-landing-page) .wpc-account a[href*="/articles"],
body:not(.kl-landing-page) .wpc-tabs a[href*="/courses"],
body:not(.kl-landing-page) .wpc-tab-links a[href*="/courses"],
body:not(.kl-landing-page) .wpc-user-profile a[href*="/courses"],
body:not(.kl-landing-page) .wpc-account a[href*="/courses"] {
    display: none !important;
}

/* --- Tablet --- */

@media (max-width: 1024px) {
    .kl-news-page {
        padding: 20px 0 44px;
    }

    .kl-news-item {
        padding: 16px 14px;
        min-height: 0;
    }

    .kl-news-yandex {
        padding: 16px 14px 18px;
    }
}

/* --- Mobile --- */

@media (max-width: 768px) {
    /* Лента новостей на всю ширину экрана (viewport), с учётом выреза */
    .kl-news-page {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding: 12px max(12px, env(safe-area-inset-left, 0px)) 32px
            max(12px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }

    .kl-news-hero {
        padding: 16px 0 16px;
    }

    .kl-news-hero h1 {
        font-size: 1.25rem;
    }

    .kl-news-subtitle {
        font-size: 0.88rem;
    }

    .kl-news-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .kl-news-item {
        padding: 16px 14px;
        border-radius: 12px;
        min-height: 0;
    }

    .kl-news-item:first-child::before {
        top: 10px;
        right: 10px;
        font-size: 0.6rem;
        padding: 2px 7px;
    }

    .kl-news-item h3 {
        font-size: 0.95rem;
        padding-right: 48px;
    }

    .kl-news-item p,
    .kl-news-item .kl-news-excerpt {
        font-size: 0.8rem;
        line-height: 1.45;
        -webkit-line-clamp: 3;
    }

    .kl-news-meta {
        padding-top: 8px;
        font-size: 0.74rem;
        gap: 8px;
    }

    .kl-news-pagination {
        padding: 28px 0 12px;
        gap: 6px;
    }

    .kl-news-pagination a,
    .kl-news-pagination span {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 10px;
        border-radius: 12px;
    }

    .kl-news-yandex {
        padding: 12px 0 14px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .kl-news-yandex-tabs {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   NEWS — «бумажный» режим как у /baza-znaniy/ (триггер: .kl-news-page в контенте)
   Перебивает тёмную сетку: фон #e9e4d8, карточки ленты, крошки, блоки под лентой.
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-main,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-main-inner,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .content-area,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .content-area-inner {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #2a2722 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) {
    background: #e9e4d8 !important;
    background-color: #e9e4d8 !important;
    color: #161412 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) #page,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site {
    background: transparent !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs-container {
    padding: clamp(4.75rem, 11vw, 6.5rem) clamp(1rem, 3vw, 2rem) 0 !important;
    margin-bottom: 0.25rem !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs {
    padding: 0.65rem 0 1.25rem !important;
    color: #5c574f !important;
    border-bottom: 1px solid rgba(22, 20, 18, 0.08) !important;
    margin-bottom: 0 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs a,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-item__link {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs a:hover,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-item__link:hover {
    color: #b91c1c !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-item__text {
    color: #5c574f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-separator {
    color: rgba(22, 20, 18, 0.28) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__body {
    padding: 0 clamp(1rem, 3vw, 2rem) 2.5rem !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__title,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__title a,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card h2 a {
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__title a:hover,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card h2 a:hover {
    color: #b45309 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-page {
    max-width: min(1280px, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 0 0 2.25rem;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-hero {
    text-align: left;
    padding: 0.35rem 0 1.15rem;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-hero h1 {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(1.35rem, 2.5vw, 1.75rem) !important;
    font-weight: 700 !important;
    color: #1a1814 !important;
    margin: 0 0 0.5rem !important;
    border-left: 3px solid #ab6b1a !important;
    padding-left: 1rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.25 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-subtitle {
    color: #5c574f !important;
    font-size: 0.95rem !important;
    max-width: 40rem;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-content a {
    color: #7c4218 !important;
    border-bottom: 1px solid rgba(124, 66, 24, 0.32) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-content a:hover {
    color: #b91c1c !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) a.kl-kb-hub__card,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) a.kl-latest-articles__card,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) a.kl-news-dzen-card,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-readmore,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__more-link,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination a {
    border-bottom: none !important;
}

/* Лента [kl_news]: вкладки и карточки строк */
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex {
    background: rgba(252, 251, 248, 0.94) !important;
    border: 1px solid rgba(22, 20, 18, 0.12) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 12px 36px rgba(28, 25, 22, 0.08) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tabs {
    border-bottom-color: rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab {
    background: rgba(255, 255, 255, 0.55) !important;
    color: #3d3a36 !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab:hover {
    background: rgba(255, 255, 255, 0.88) !important;
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab.is-active {
    color: #1a1408 !important;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #c9943e 100%) !important;
    box-shadow: 0 2px 12px rgba(201, 148, 62, 0.25) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle {
    position: relative;
    padding-left: 2.75rem !important;
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(22, 20, 18, 0.12) !important;
    color: #2a2722 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(146, 64, 14, 0.5);
    border-radius: 5px;
    box-sizing: border-box;
    opacity: 0.9;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle::after {
    content: '';
    position: absolute;
    left: calc(1rem + 3px);
    top: calc(50% - 7px);
    width: 0.55rem;
    height: 2px;
    background: rgba(146, 64, 14, 0.5);
    border-radius: 1px;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle-main {
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle-sub {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-panel .kl-news-dzen-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 272px), 1fr)) !important;
    gap: 1rem 1.1rem !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    box-shadow: none !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item::before {
    display: none !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(252, 249, 242, 0.95) 100%) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 10px 28px rgba(42, 38, 34, 0.07) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card:hover {
    border-color: rgba(201, 148, 62, 0.42) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 34px rgba(171, 107, 26, 0.12) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-thumb {
    background: linear-gradient(160deg, rgba(252, 248, 240, 1), rgba(235, 220, 195, 0.45)) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-thumb--ph {
    background: linear-gradient(145deg, rgba(245, 240, 232, 0.98), rgba(220, 200, 165, 0.4)) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-source-badge {
    background: rgba(255, 252, 248, 0.94) !important;
    border-color: rgba(22, 20, 18, 0.1) !important;
    box-shadow: 0 4px 14px rgba(42, 38, 34, 0.1) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-panel .kl-news-dzen-body {
    padding: 0.85rem 1rem 1rem !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card--no-thumb .kl-news-dzen-body {
    padding-top: 1.05rem !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item + .kl-news-dzen-item {
    border-top: none !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card-title {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.015em !important;
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item--lead .kl-news-dzen-card-title {
    font-size: clamp(1.08rem, 2.4vw, 1.28rem) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card:hover .kl-news-dzen-card-title {
    color: #b45309 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-excerpt {
    color: #5c574f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-meta {
    border-top-color: rgba(22, 20, 18, 0.08) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-date {
    color: #6b6560 !important;
    font-size: 0.78rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-source-label {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-meta-ico {
    background: rgba(252, 248, 240, 0.95) !important;
    border-color: rgba(22, 20, 18, 0.12) !important;
    box-shadow: 0 1px 4px rgba(42, 38, 34, 0.06) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-meta-ico img {
    width: 13px !important;
    height: 13px !important;
}

@media (min-width: 900px) {
    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item--lead.kl-news-dzen-item--has-thumb {
        grid-column: span 2 !important;
    }
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-more {
    color: #7c4218 !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border-color: rgba(201, 148, 62, 0.45) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-more:hover {
    background: rgba(201, 148, 62, 0.12) !important;
    color: #92400e !important;
    border-color: rgba(201, 148, 62, 0.55) !important;
}

@media (max-width: 900px) {
    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tabs::-webkit-scrollbar-thumb {
        background: rgba(146, 64, 14, 0.32);
        border-radius: 99px;
    }
}

@media (max-width: 768px) {
    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-page {
        max-width: none !important;
        width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        padding-left: max(12px, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(12px, env(safe-area-inset-right, 0px)) !important;
        padding-top: 0 !important;
        padding-bottom: 1.75rem !important;
        box-sizing: border-box !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-hero {
        padding: 0.25rem 0 0.85rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-hero h1 {
        font-size: clamp(1.08rem, 4.5vw, 1.32rem) !important;
        padding-left: 0.75rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-subtitle {
        font-size: 0.84rem !important;
        line-height: 1.45 !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex {
        padding: 0.75rem 0 1rem !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: 0 8px 28px rgba(28, 25, 22, 0.06) !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tabs {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab {
        min-height: 44px !important;
        padding: 10px 14px !important;
        font-size: 0.78rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-panel .kl-news-dzen-list {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item--lead.kl-news-dzen-item--has-thumb {
        grid-column: auto !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card {
        border-radius: 12px !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-panel .kl-news-dzen-body {
        padding: 0.65rem 0.8rem 0.85rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card--no-thumb .kl-news-dzen-body {
        padding-top: 0.8rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card-title {
        font-size: 0.96rem !important;
        line-height: 1.36 !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-item--lead .kl-news-dzen-card-title {
        font-size: 1.05rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-excerpt {
        font-size: 0.78rem !important;
        line-height: 1.42 !important;
        -webkit-line-clamp: 2 !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-meta {
        gap: 0.35rem 0.65rem !important;
        padding-top: 0.45rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-source-label {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        font-size: 0.74rem !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 50px !important;
        box-sizing: border-box !important;
        padding-top: 11px !important;
        padding-bottom: 11px !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-more {
        min-height: 48px !important;
        border-radius: 12px !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__body {
        padding-left: max(0.85rem, env(safe-area-inset-left, 0px)) !important;
        padding-right: max(0.85rem, env(safe-area-inset-right, 0px)) !important;
    }

    /* подстраховка от микроскролла по X из-за 100vw */
    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) {
        overflow-x: clip !important;
    }
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-day-banner {
    background: rgba(201, 148, 62, 0.12) !important;
    border-color: rgba(201, 148, 62, 0.28) !important;
    color: #3d3a36 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-day-banner a {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-empty,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-panel-empty {
    color: #6b6560 !important;
}

/* Старый список .kl-news-item (если есть) */
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item {
    background: rgba(252, 251, 248, 0.94) !important;
    border-color: rgba(22, 20, 18, 0.1) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item:first-child {
    border-color: rgba(201, 148, 62, 0.35) !important;
    background: rgba(252, 248, 235, 0.96) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3 a {
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item .kl-news-excerpt,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item p {
    color: #5c574f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-meta {
    border-top-color: rgba(22, 20, 18, 0.08) !important;
    color: #6b6560 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-meta .kl-news-date::before {
    background: rgba(201, 148, 62, 0.65) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination a,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination span {
    background: rgba(255, 255, 255, 0.75) !important;
    border-color: rgba(22, 20, 18, 0.12) !important;
    color: #3d3a36 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination a:hover {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination .current {
    color: #1a1408 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-readmore {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-source {
    color: #92400e !important;
}

/* Блоки под лентой — база знаний и статьи */
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-after {
    border-top-color: rgba(22, 20, 18, 0.12) !important;
    margin-top: 28px !important;
    padding-top: 26px !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub--research-solo .kl-kb-hub__grid {
    max-width: min(600px, 100%) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card--research-lock {
    border-color: rgba(171, 107, 26, 0.3) !important;
    box-shadow: 0 10px 32px rgba(42, 38, 34, 0.08) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__lock {
    background: rgba(201, 148, 62, 0.2) !important;
    color: #78350f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__badge--member {
    background: rgba(22, 20, 18, 0.07) !important;
    color: #5c4d3d !important;
    border: 1px solid rgba(22, 20, 18, 0.08) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__title,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__title {
    font-family: Georgia, 'Times New Roman', serif !important;
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__lead,
body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__lead {
    color: #5c574f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card {
    background: rgba(252, 251, 248, 0.92) !important;
    border-color: rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card-title {
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card-hint {
    color: #5c574f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) a.kl-kb-hub__card:hover {
    border-color: rgba(201, 148, 62, 0.45) !important;
    background: rgba(255, 252, 245, 0.98) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__badge {
    background: rgba(201, 148, 62, 0.2) !important;
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card {
    background: rgba(252, 251, 248, 0.96) !important;
    border-color: rgba(22, 20, 18, 0.1) !important;
    box-shadow: 0 8px 28px rgba(28, 25, 22, 0.1) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
    box-shadow: 0 14px 40px rgba(28, 25, 22, 0.14) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__lock-badge {
    background: rgba(120, 53, 15, 0.88) !important;
    color: #fff8e8 !important;
    box-shadow: 0 3px 16px rgba(120, 53, 15, 0.35) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card--locked .kl-latest-articles__media::after {
    background: linear-gradient(200deg, rgba(120, 53, 15, 0.12) 0%, transparent 55%) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__media {
    background: linear-gradient(145deg, #e8e4dc 0%, #d4cfc4 100%) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__ph {
    background: linear-gradient(
        135deg,
        rgba(201, 148, 62, 0.12) 0%,
        rgba(120, 100, 70, 0.2) 45%,
        rgba(60, 55, 48, 0.35) 100%
    ) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card-title {
    color: #1a1814 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card-date {
    color: #6b6560 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__empty {
    color: #5c574f !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__empty a {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__more-link {
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__more-link:hover {
    color: #b45309 !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__nav {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: rgba(22, 20, 18, 0.12) !important;
    color: #92400e !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__viewport {
    scrollbar-color: rgba(201, 148, 62, 0.45) rgba(22, 20, 18, 0.06) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__viewport::-webkit-scrollbar-track {
    background: rgba(22, 20, 18, 0.05) !important;
}

body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__viewport::-webkit-scrollbar-thumb {
    background: rgba(201, 148, 62, 0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   ARTICLES ARCHIVE (category/atricle) — dark cards + mobile
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .posts-archive,
body:not(.kl-landing-page) .posts-list,
body:not(.kl-landing-page) .archive-posts,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) .site-main > article,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 16px !important;
    margin-bottom: 18px !important;
    overflow: hidden;
}

body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__body {
    padding: 24px 28px !important;
}

body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__title,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__title a,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card h2 a {
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    transition: color 0.2s;
}

body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__title a:hover,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card h2 a:hover {
    color: #dbb06a !important;
}

body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__excerpt,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .entry-summary,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__content {
    color: rgba(200,200,215,0.7) !important;
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
}

body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__footer,
body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-meta {
    border-top: 1px solid rgba(255,255,255,0.04) !important;
    padding-top: 12px !important;
    margin-top: 14px !important;
}

body:not(.kl-landing-page) .post-meta__date,
body:not(.kl-landing-page) .post-meta__views,
body:not(.kl-landing-page) .post-meta__comments,
body:not(.kl-landing-page) .post-meta__comments a,
body:not(.kl-landing-page) .post-meta span,
body:not(.kl-landing-page) .post-meta a {
    color: rgba(160,160,175,0.5) !important;
    font-size: 0.8rem !important;
}

body:not(.kl-landing-page) .post-meta svg {
    fill: rgba(160,160,175,0.3) !important;
}

body:not(.kl-landing-page) .vote,
body:not(.kl-landing-page) .post-meta__access,
body:not(.kl-landing-page) .post-meta__bookmarks {
    display: none !important;
}

/* Archive page title */
body:not(.kl-landing-page) .page-title,
body:not(.kl-landing-page) .archive-title,
body:not(.kl-landing-page) .category-title {
    color: #fff !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid rgba(201,148,62,0.2) !important;
    letter-spacing: -0.02em;
}

body:not(.kl-landing-page) .archive-description,
body:not(.kl-landing-page) .category-description {
    color: rgba(200,200,215,0.65) !important;
    font-size: 0.95rem !important;
    margin-bottom: 28px !important;
}

/* ═══════════════════════════════════════════════════════════════════
   JOIN / SUBSCRIBE page — dark theme
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .wpc-plans-wrapper,
body:not(.kl-landing-page) .wpc-plans,
body:not(.kl-landing-page) .wpc-subscription-plans {
    background: transparent !important;
}

body:not(.kl-landing-page) .wpc-plan,
body:not(.kl-landing-page) .wpc-plan-card,
body:not(.kl-landing-page) .wpc-plan-item {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 16px !important;
    color: #dedee8 !important;
    transition: border-color 0.3s, transform 0.3s;
}

body:not(.kl-landing-page) .wpc-plan:hover,
body:not(.kl-landing-page) .wpc-plan-card:hover {
    border-color: rgba(201,148,62,0.3) !important;
    transform: translateY(-2px);
}

body:not(.kl-landing-page) .wpc-plan-title,
body:not(.kl-landing-page) .wpc-plan-name,
body:not(.kl-landing-page) .wpc-plan h3 {
    color: #fff !important;
}

body:not(.kl-landing-page) .wpc-plan-price,
body:not(.kl-landing-page) .wpc-plan-amount {
    color: #c9943e !important;
    font-weight: 800 !important;
}

body:not(.kl-landing-page) .wpc-plan-description,
body:not(.kl-landing-page) .wpc-plan p {
    color: rgba(200,200,215,0.7) !important;
}

body:not(.kl-landing-page) .wpc-plan-button,
body:not(.kl-landing-page) .wpc-plan button,
body:not(.kl-landing-page) .wpc-plan a.button,
body:not(.kl-landing-page) input[type="submit"],
body:not(.kl-landing-page) button.button,
body:not(.kl-landing-page) .wp-block-button__link {
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #c9943e 100%) !important;
    color: #0a0a14 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 28px !important;
    cursor: pointer !important;
    transition: transform 0.2s, box-shadow 0.2s !important;
}

body:not(.kl-landing-page) .wpc-plan-button:hover,
body:not(.kl-landing-page) input[type="submit"]:hover,
body:not(.kl-landing-page) button.button:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 16px rgba(201,148,62,0.3) !important;
}

/* Form fields */
body:not(.kl-landing-page) input[type="text"],
body:not(.kl-landing-page) input[type="email"],
body:not(.kl-landing-page) input[type="password"],
body:not(.kl-landing-page) input[type="url"],
body:not(.kl-landing-page) input[type="search"],
body:not(.kl-landing-page) textarea,
body:not(.kl-landing-page) select {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 10px !important;
    color: #e8e8f0 !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    transition: border-color 0.2s;
}

body:not(.kl-landing-page) input:focus,
body:not(.kl-landing-page) textarea:focus,
body:not(.kl-landing-page) select:focus {
    border-color: rgba(201,148,62,0.4) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201,148,62,0.1) !important;
}

body:not(.kl-landing-page) label {
    color: rgba(200,200,215,0.85) !important;
}

body:not(.kl-landing-page) ::placeholder {
    color: rgba(160,160,175,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE page — dark theme
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page) .wpc-profile,
body:not(.kl-landing-page) .wpc-account,
body:not(.kl-landing-page) .wpc-user-profile,
body:not(.kl-landing-page) .profile-wrapper {
    background: transparent !important;
    color: #dedee8 !important;
}

body:not(.kl-landing-page) .wpc-profile h2,
body:not(.kl-landing-page) .wpc-profile h3,
body:not(.kl-landing-page) .wpc-account h2,
body:not(.kl-landing-page) .wpc-account h3 {
    color: #fff !important;
}

body:not(.kl-landing-page) .wpc-profile-card,
body:not(.kl-landing-page) .wpc-account-section,
body:not(.kl-landing-page) .wpc-profile-section {
    background: rgba(255,255,255,0.025) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 16px !important;
    padding: 24px !important;
    margin-bottom: 18px !important;
}

body:not(.kl-landing-page) .wpc-tabs,
body:not(.kl-landing-page) .wpc-tab-links {
    background: transparent !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

body:not(.kl-landing-page) .wpc-tab-link,
body:not(.kl-landing-page) .wpc-tabs a {
    color: rgba(200,200,215,0.7) !important;
    text-decoration: none !important;
}

body:not(.kl-landing-page) .wpc-tab-link.active,
body:not(.kl-landing-page) .wpc-tab-link:hover,
body:not(.kl-landing-page) .wpc-tabs a:hover {
    color: #c9943e !important;
}

/* ═══════════════════════════════════════════════════════════════════
   COMMUNITY PAPER — about, contacts, join, profile, video, offer (MU-plugin body class)
   Кремовый фон и типографика как у /news/ и бумажного режима БЗ
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page).kl-community-paper {
    background: #e9e4d8 !important;
    background-color: #e9e4d8 !important;
    color: #161412 !important;
}

body:not(.kl-landing-page).kl-community-paper #page,
body:not(.kl-landing-page).kl-community-paper .site {
    background: transparent !important;
}

body:not(.kl-landing-page).kl-community-paper .site-content {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.kl-landing-page).kl-community-paper .site-main,
body:not(.kl-landing-page).kl-community-paper .site-main-inner,
body:not(.kl-landing-page).kl-community-paper .content-area,
body:not(.kl-landing-page).kl-community-paper .content-area-inner {
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body:not(.kl-landing-page).kl-community-paper .entry-content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 clamp(1rem, 3vw, 2rem) 2.5rem !important;
    color: #2a2722 !important;
}

body:not(.kl-landing-page).kl-community-paper .entry-content a {
    color: #7c4218 !important;
    border-bottom: 1px solid rgba(124, 66, 24, 0.32) !important;
}

body:not(.kl-landing-page).kl-community-paper .entry-content a:hover {
    color: #b91c1c !important;
}

/* Видео-страница и оферта: комфортная ширина колонки */
body:not(.kl-landing-page).kl-community-paper.page-video .entry-content,
body:not(.kl-landing-page).kl-community-paper.page-offer .entry-content {
    max-width: 46rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body:not(.kl-landing-page).kl-community-paper.page-video .entry-title,
body:not(.kl-landing-page).kl-community-paper.page-offer .entry-title {
    text-align: center;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

body:not(.kl-landing-page).kl-community-paper .breadcrumbs-container {
    padding: clamp(4.75rem, 11vw, 6.5rem) clamp(1rem, 3vw, 2rem) 0 !important;
    margin-bottom: 0.25rem !important;
}

body:not(.kl-landing-page).kl-community-paper .breadcrumbs {
    padding: 0.65rem 0 1.25rem !important;
    color: #5c574f !important;
    border-bottom: 1px solid rgba(22, 20, 18, 0.08) !important;
    margin-bottom: 0 !important;
}

body:not(.kl-landing-page).kl-community-paper .breadcrumbs a,
body:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__link {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .breadcrumbs a:hover,
body:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__link:hover {
    color: #b91c1c !important;
}

body:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__text {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-separator {
    color: rgba(22, 20, 18, 0.28) !important;
}

body:not(.kl-landing-page).kl-community-paper article.post-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}

body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__body {
    padding: 0 clamp(1rem, 3vw, 2rem) 2.5rem !important;
}

body:not(.kl-landing-page).kl-community-paper .page-title,
body:not(.kl-landing-page).kl-community-paper .archive-title,
body:not(.kl-landing-page).kl-community-paper .entry-title,
body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__title,
body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__title a,
body:not(.kl-landing-page).kl-community-paper article.post-card h1 a,
body:not(.kl-landing-page).kl-community-paper article.post-card h2 a {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__title a:hover,
body:not(.kl-landing-page).kl-community-paper article.post-card h2 a:hover {
    color: #b45309 !important;
}

body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__excerpt,
body:not(.kl-landing-page).kl-community-paper article.post-card .entry-summary,
body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__content {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper article.post-card .post-card__footer,
body:not(.kl-landing-page).kl-community-paper article.post-card .post-meta {
    border-top-color: rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page).kl-community-paper .post-meta__date,
body:not(.kl-landing-page).kl-community-paper .post-meta__views,
body:not(.kl-landing-page).kl-community-paper .post-meta__comments,
body:not(.kl-landing-page).kl-community-paper .post-meta__comments a,
body:not(.kl-landing-page).kl-community-paper .post-meta span,
body:not(.kl-landing-page).kl-community-paper .post-meta a {
    color: #6b6560 !important;
}

body:not(.kl-landing-page).kl-community-paper .post-meta svg {
    fill: rgba(22, 20, 18, 0.28) !important;
}

/* О клубе */
body:not(.kl-landing-page).kl-community-paper .kl-about-hero h1 {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important;
    font-weight: 700 !important;
    color: #1a1814 !important;
    border-left: 3px solid #ab6b1a !important;
    padding-left: 1rem !important;
    text-align: left !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-subtitle {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-section h2 {
    color: #1a1814 !important;
    border-bottom-color: rgba(22, 20, 18, 0.12) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-section > p {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-card,
body:not(.kl-landing-page).kl-community-paper .kl-about-stat,
body:not(.kl-landing-page).kl-community-paper .kl-about-list-item {
    background: rgba(252, 251, 248, 0.94) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 22px rgba(42, 38, 34, 0.06) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-card:hover {
    border-color: rgba(201, 148, 62, 0.38) !important;
    box-shadow: 0 12px 32px rgba(42, 38, 34, 0.1) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-card h3 {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-card p {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-list-item p {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-list-item strong {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-stat-label {
    color: #6b6560 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-cta {
    background: rgba(252, 251, 248, 0.92) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-cta h2 {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-about-cta p {
    color: #5c574f !important;
}

/* О клубе — один заголовок, без сайдбара, центрированный hero (страница с .kl-about-page) */
body.kl-community-paper:has(.kl-about-page) aside.widget-area {
    display: none !important;
}

body.kl-community-paper:has(.kl-about-page) .content-area {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.kl-community-paper:has(.kl-about-page) .post-card__header {
    display: none !important;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-page {
    box-sizing: border-box;
    max-width: min(52rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(0.35rem, 1.5vw, 0.85rem) clamp(0.75rem, 2.5vw, 1.25rem) clamp(2rem, 4vw, 3.5rem);
}

body.kl-community-paper:has(.kl-about-page) .entry-content {
    padding-bottom: clamp(1.5rem, 4vw, 2.75rem) !important;
}

body.kl-community-paper:has(.kl-about-page) .breadcrumbs-container {
    max-width: min(52rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.75rem, 2.5vw, 1.25rem) !important;
    padding-right: clamp(0.75rem, 2.5vw, 1.25rem) !important;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-hero {
    text-align: center;
    padding: clamp(1rem, 4vw, 2.25rem) 0 clamp(1.25rem, 3vw, 2rem);
    margin: 0 auto;
    max-width: 40rem;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-hero h1 {
    border-left: none !important;
    padding-left: 0 !important;
    text-align: center !important;
    font-size: clamp(1.45rem, 4.2vw, 2.05rem) !important;
    line-height: 1.22 !important;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-hero h1 span {
    display: inline;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 34rem;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-section {
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

body.kl-community-paper:has(.kl-about-page) .kl-about-btn:focus-visible {
    outline: 2px solid #92400e;
    outline-offset: 3px;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stats-lead {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #5c574f !important;
    max-width: 40rem;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.75rem), 1fr));
    gap: 1rem 1.15rem;
    align-items: stretch;
    text-align: initial;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stats .kl-about-stat {
    min-height: 100%;
    box-sizing: border-box;
    padding: 1.2rem 1.25rem !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stat--metric {
    text-align: center !important;
    justify-content: center;
    border-color: rgba(171, 107, 26, 0.22) !important;
    background: linear-gradient(
            165deg,
            rgba(255, 252, 248, 0.99) 0%,
            rgba(252, 248, 240, 0.97) 100%
        )
        !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 10px 30px rgba(171, 107, 26, 0.07) !important;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stat--metric .kl-about-stat-num {
    font-size: clamp(2.1rem, 5.5vw, 2.85rem) !important;
    margin-bottom: 0.4rem !important;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stat--metric .kl-about-stat-label {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
    color: #5c574f !important;
    max-width: 15rem;
    margin: 0 auto;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stat--usp {
    text-align: left;
    border-left: 3px solid rgba(201, 148, 62, 0.42) !important;
    padding-left: 1.1rem !important;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stat--usp .kl-about-stat-num {
    display: block;
    font-size: clamp(0.94rem, 2.1vw, 1.06rem) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-bottom: 0.45rem !important;
    background: none !important;
    -webkit-text-fill-color: #1a1814 !important;
    color: #1a1814 !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    letter-spacing: -0.015em;
}

body.kl-community-paper:has(.kl-about-page) .kl-about-stat--usp .kl-about-stat-label {
    font-size: 0.82rem !important;
    line-height: 1.52 !important;
    color: #5c574f !important;
    text-align: left;
}

@media (max-width: 640px) {
    body.kl-community-paper:has(.kl-about-page) .kl-about-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    body.kl-community-paper:has(.kl-about-page) .kl-about-stats .kl-about-stat {
        padding: 1.05rem 1rem !important;
    }

    body.kl-community-paper:has(.kl-about-page) .kl-about-stat--metric .kl-about-stat-num {
        font-size: 2.35rem !important;
    }

    body.kl-community-paper:has(.kl-about-page) .kl-about-stat--usp .kl-about-stat-num {
        font-size: 1rem !important;
    }

    body.kl-community-paper:has(.kl-about-page) .kl-about-grid {
        grid-template-columns: 1fr !important;
        gap: 0.85rem !important;
    }

    body.kl-community-paper:has(.kl-about-page) .kl-about-list-item {
        padding: 0.85rem 1rem !important;
    }
}

/* Контакты — один H1, без сайдбара, адаптивная сетка (как about) */
body.kl-community-paper:has(.kl-contacts-page) aside.widget-area {
    display: none !important;
}

body.kl-community-paper:has(.kl-contacts-page) .content-area {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

body.kl-community-paper:has(.kl-contacts-page) .post-card__header {
    display: none !important;
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-page {
    box-sizing: border-box;
    max-width: min(52rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding: clamp(0.35rem, 1.5vw, 0.85rem) clamp(0.75rem, 2.5vw, 1.25rem) clamp(2rem, 4vw, 3.5rem);
}

body.kl-community-paper:has(.kl-contacts-page) .entry-content {
    padding-bottom: clamp(1.5rem, 4vw, 2.75rem) !important;
}

body.kl-community-paper:has(.kl-contacts-page) .breadcrumbs-container {
    max-width: min(52rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.75rem, 2.5vw, 1.25rem) !important;
    padding-right: clamp(0.75rem, 2.5vw, 1.25rem) !important;
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-hero {
    text-align: center;
    padding: clamp(1rem, 4vw, 2.25rem) 0 clamp(1.25rem, 3vw, 2rem);
    margin: 0 auto;
    max-width: 40rem;
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-hero h1 {
    border-left: none !important;
    padding-left: 0 !important;
    text-align: center !important;
    font-size: clamp(1.45rem, 4.2vw, 2.05rem) !important;
    line-height: 1.22 !important;
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-subtitle {
    margin-left: auto;
    margin-right: auto;
    max-width: 36rem;
    line-height: 1.55;
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.75rem), 1fr)) !important;
    gap: 1rem 1.15rem !important;
    margin-bottom: clamp(2rem, 4vw, 2.75rem) !important;
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-section {
    margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-faq {
    gap: 0.85rem !important;
}

@media (max-width: 640px) {
    body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-card {
        padding: 1.05rem 1rem !important;
    }

    body.kl-community-paper:has(.kl-contacts-page) .kl-contacts-faq-item {
        padding: 1rem 1rem !important;
    }
}

/* Контакты */
body:not(.kl-landing-page).kl-community-paper .kl-contacts-hero h1 {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem) !important;
    font-weight: 700 !important;
    color: #1a1814 !important;
    border-left: 3px solid #ab6b1a !important;
    padding-left: 1rem !important;
    text-align: left !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-subtitle {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-card,
body:not(.kl-landing-page).kl-community-paper .kl-contacts-faq-item {
    background: rgba(252, 251, 248, 0.94) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset, 0 8px 22px rgba(42, 38, 34, 0.06) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-card:hover {
    border-color: rgba(201, 148, 62, 0.38) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-card h3 {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-card p {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-hint {
    color: #6b6560 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-social a {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-section h2 {
    color: #1a1814 !important;
    border-bottom-color: rgba(22, 20, 18, 0.12) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-faq-item h4 {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-contacts-faq-item p {
    color: #5c574f !important;
}

/* Вступить / тарифы */
body:not(.kl-landing-page).kl-community-paper .wpc-plan,
body:not(.kl-landing-page).kl-community-paper .wpc-plan-card,
body:not(.kl-landing-page).kl-community-paper .wpc-plan-item {
    background: rgba(252, 251, 248, 0.94) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    color: #2a2722 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset, 0 8px 22px rgba(42, 38, 34, 0.06) !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-plan-title,
body:not(.kl-landing-page).kl-community-paper .wpc-plan-name,
body:not(.kl-landing-page).kl-community-paper .wpc-plan h3 {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-plan-description,
body:not(.kl-landing-page).kl-community-paper .wpc-plan p {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-plan:hover,
body:not(.kl-landing-page).kl-community-paper .wpc-plan-card:hover {
    border-color: rgba(201, 148, 62, 0.38) !important;
}

/* Профиль / ЛК */
body:not(.kl-landing-page).kl-community-paper .wpc-profile,
body:not(.kl-landing-page).kl-community-paper .wpc-account,
body:not(.kl-landing-page).kl-community-paper .wpc-user-profile,
body:not(.kl-landing-page).kl-community-paper .profile-wrapper {
    color: #2a2722 !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-profile h2,
body:not(.kl-landing-page).kl-community-paper .wpc-profile h3,
body:not(.kl-landing-page).kl-community-paper .wpc-account h2,
body:not(.kl-landing-page).kl-community-paper .wpc-account h3 {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-profile-card,
body:not(.kl-landing-page).kl-community-paper .wpc-account-section,
body:not(.kl-landing-page).kl-community-paper .wpc-profile-section {
    background: rgba(252, 251, 248, 0.94) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-tabs,
body:not(.kl-landing-page).kl-community-paper .wpc-tab-links {
    border-bottom-color: rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-tab-link,
body:not(.kl-landing-page).kl-community-paper .wpc-tabs a {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .wpc-tab-link.active,
body:not(.kl-landing-page).kl-community-paper .wpc-tab-link:hover,
body:not(.kl-landing-page).kl-community-paper .wpc-tabs a:hover {
    color: #92400e !important;
}

/* Профиль (/profile/) — тема даёт label 240px + input width:100% → гигантский разрыв и длинное поле */
body.kl-community-paper.page-profile .post-card .entry-content,
body.kl-community-paper.page-profile .site-main .entry-content,
body.kl-community-paper.page-profile .content-area .entry-content {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

body.kl-community-paper.page-profile .wpc-tabs,
body.kl-community-paper.page-profile .wpc-tab-links {
    flex-wrap: wrap !important;
    gap: 0.2rem 1rem !important;
    row-gap: 0.35rem !important;
}

@media (min-width: 768px) {
    body.kl-community-paper.page-profile .profile-form__label {
        flex: 0 0 10rem !important;
        max-width: 34%;
        padding-top: 0.55rem !important;
    }

    body.kl-community-paper.page-profile .profile-form__body {
        flex: 0 1 auto !important;
        max-width: min(26rem, 100%) !important;
        width: auto !important;
    }
}

body.kl-community-paper.page-profile .profile-form__row {
    gap: 0.65rem 1rem !important;
    align-items: flex-start !important;
}

body.kl-community-paper.page-profile .profile-form__body .btn,
body.kl-community-paper.page-profile .profile-form__body button[type="submit"],
body.kl-community-paper.page-profile .profile-form__body input[type="submit"] {
    width: auto !important;
    min-width: 11rem;
    margin-top: 0.35rem;
    padding: 0.55rem 1.35rem !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    line-height: 1.25 !important;
    color: #14100a !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer;
    background: linear-gradient(135deg, #dbb06a 0%, #c9943e 45%, #b8832f 100%) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.38) inset,
        0 2px 10px rgba(42, 34, 24, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.kl-community-paper.page-profile .profile-form__body .btn:hover,
body.kl-community-paper.page-profile .profile-form__body button[type="submit"]:hover,
body.kl-community-paper.page-profile .profile-form__body input[type="submit"]:hover {
    filter: brightness(1.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.42) inset,
        0 4px 16px rgba(201, 148, 62, 0.35);
    transform: translateY(-1px);
}

body.kl-community-paper.page-profile .profile-form__body .btn:focus-visible,
body.kl-community-paper.page-profile .profile-form__body button[type="submit"]:focus-visible,
body.kl-community-paper.page-profile .profile-form__body input[type="submit"]:focus-visible {
    outline: 2px solid #92400e;
    outline-offset: 2px;
}

/* «Купить» (ссылка на /join/) — как кнопка клуба, большая зона клика */
body.kl-community-paper.page-profile .profile-form__body a[href*="/join"],
body.kl-community-paper.page-profile .wpc-user-profile a[href*="/join"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: 0.65rem !important;
    margin-top: 0.1rem;
    padding: 0.55rem 1.2rem !important;
    min-height: 2.65rem;
    min-width: 8rem;
    box-sizing: border-box;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    border: none !important;
    border-radius: 10px !important;
    color: #14100a !important;
    background: linear-gradient(135deg, #dbb06a 0%, #c9943e 45%, #b8832f 100%) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.38) inset,
        0 2px 10px rgba(42, 34, 24, 0.14);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    vertical-align: middle;
}

body.kl-community-paper.page-profile .profile-form__body a[href*="/join"]:hover,
body.kl-community-paper.page-profile .wpc-user-profile a[href*="/join"]:hover {
    color: #0d0a06 !important;
    filter: brightness(1.04);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.42) inset,
        0 4px 16px rgba(201, 148, 62, 0.35);
    transform: translateY(-1px);
}

body.kl-community-paper.page-profile .profile-form__body a[href*="/join"]:focus-visible,
body.kl-community-paper.page-profile .wpc-user-profile a[href*="/join"]:focus-visible {
    outline: 2px solid #92400e;
    outline-offset: 2px;
}

/* Прочие ссылки в полях профиля — обычный вид */
body.kl-community-paper.page-profile .profile-form__body a:not([href*="/join"]) {
    margin-left: 0.35em;
}

/* Гостевой блок входа — страница профиля: тема даёт body page-template-template-account, а не page-profile */
body.kl-community-paper.page-profile .auth-form {
    max-width: min(26rem, 100%);
    width: 100%;
}

/* ═══ Вход / регистрация на /profile/ (гость) — карточка, золотая кнопка, читаемые ссылки ═══ */
body:not(.logged-in).kl-community-paper.page-template-template-account .site-content {
    align-items: stretch;
}

body:not(.logged-in).kl-community-paper.page-template-template-account aside.widget-area {
    display: none !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .content-area {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .site-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 2.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .breadcrumbs-container {
    width: 100%;
    max-width: min(28rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .post-card {
    width: 100%;
    max-width: min(26rem, 100%);
    margin: 0.5rem auto 0;
    background: rgba(252, 251, 248, 0.98) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    border-radius: 18px !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 14px 42px rgba(42, 38, 34, 0.08) !important;
    overflow: hidden;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .post-card__header {
    padding: 1.35rem 1.5rem 1rem !important;
    text-align: center;
    border-bottom: 1px solid rgba(22, 20, 18, 0.07);
    background: transparent !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .post-card__title {
    margin: 0 !important;
    font-size: clamp(1.28rem, 3.2vw, 1.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #1a1814 !important;
    border: none !important;
    padding: 0 !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .post-card__content {
    padding: 1.35rem 1.5rem 1.6rem !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form {
    max-width: none !important;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form + .auth-form {
    margin-top: 0.25rem;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #3d3a36 !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row {
    margin-bottom: 1rem;
    gap: 0.45rem;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:last-child {
    margin-bottom: 0;
}

/* Строка: подпись + «Забыли?» в одну линию, поле ниже */
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(label + .pseudo-link) {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.35rem 0.75rem;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(label + .pseudo-link) label {
    grid-column: 1;
    margin: 0 !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(label + .pseudo-link) .pseudo-link {
    grid-column: 2;
    justify-self: end;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(label + .pseudo-link) .input,
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(label + .pseudo-link) input {
    grid-column: 1 / -1;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(button.btn) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1rem;
    margin-top: 0.25rem;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .input,
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input[type="text"],
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input[type="email"],
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input[type="password"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.72rem 0.95rem !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(22, 20, 18, 0.14) !important;
    color: #1a1814 !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .input:focus,
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input:focus {
    border-color: rgba(201, 148, 62, 0.65) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201, 148, 62, 0.18) !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .btn,
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form button[type="submit"] {
    flex: 1 1 auto;
    min-width: 9.5rem;
    padding: 0.72rem 1.25rem !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    color: #14100a !important;
    background: linear-gradient(135deg, #dbb06a 0%, #c9943e 45%, #b8832f 100%) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.38) inset,
        0 3px 12px rgba(201, 148, 62, 0.28);
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .btn:hover,
body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form button[type="submit"]:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.42) inset,
        0 5px 18px rgba(201, 148, 62, 0.38);
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .pseudo-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.2rem 0.35rem;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    color: #7c4218 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
    border-radius: 6px;
    flex-shrink: 0;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .pseudo-link:hover {
    color: #92400e !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .pseudo-link:focus-visible {
    outline: 2px solid #92400e;
    outline-offset: 2px;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__description {
    margin-top: 0.35rem;
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
    color: #5c574f !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__description code {
    font-size: 0.78em;
    padding: 0.1rem 0.35rem;
    background: rgba(22, 20, 18, 0.06);
    border-radius: 6px;
    color: #3d3a36 !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form label {
    font-weight: 600 !important;
    color: #2a2722 !important;
}

body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row label:not([for]) {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 500 !important;
    cursor: pointer;
}

@media (max-width: 480px) {
    body:not(.logged-in).kl-community-paper.page-template-template-account .site-main {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    body:not(.logged-in).kl-community-paper.page-template-template-account .post-card {
        border-radius: 14px !important;
    }

    body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(button.btn) {
        flex-direction: column;
        align-items: stretch;
    }

    body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .btn,
    body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form button[type="submit"] {
        width: 100% !important;
        min-width: 0;
    }

    body:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__row:has(button.btn) .pseudo-link {
        justify-content: center;
        width: 100%;
        min-height: 2.5rem;
    }
}

/* Формы на светлом фоне */
body:not(.kl-landing-page).kl-community-paper input[type="text"],
body:not(.kl-landing-page).kl-community-paper input[type="email"],
body:not(.kl-landing-page).kl-community-paper input[type="password"],
body:not(.kl-landing-page).kl-community-paper input[type="url"],
body:not(.kl-landing-page).kl-community-paper input[type="search"],
body:not(.kl-landing-page).kl-community-paper textarea,
body:not(.kl-landing-page).kl-community-paper select {
    background: rgba(255, 255, 255, 0.88) !important;
    border: 1px solid rgba(22, 20, 18, 0.14) !important;
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper label {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper ::placeholder {
    color: rgba(22, 20, 18, 0.38) !important;
}

/* Описание курса K9 shield (школа, тренер, содержание) */
body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru {
    margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
    padding: 0 0 clamp(1.1rem, 2.5vw, 1.5rem);
    border-bottom: 1px solid rgba(22, 20, 18, 0.08);
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__h {
    margin: 1.35rem 0 0.55rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.06rem, 2.2vw, 1.22rem);
    font-weight: 700;
    color: #1a1814 !important;
    letter-spacing: -0.02em;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__h:first-child {
    margin-top: 0;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru p {
    margin: 0 0 0.9rem;
    font-size: clamp(0.92rem, 1.9vw, 0.98rem);
    line-height: 1.66;
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__eq {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    color: #524a44 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__note {
    margin-top: 1rem !important;
    margin-bottom: 0.75rem !important;
    padding: 0.8rem 1rem;
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    color: #4a423c !important;
    background: rgba(201, 148, 62, 0.09);
    border: 1px solid rgba(171, 107, 26, 0.22);
    border-radius: 12px;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__src {
    margin-bottom: 0 !important;
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    color: #6b6560 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__src a {
    color: #7c4218 !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__src a:hover {
    color: #b45309 !important;
}

/* Видеокурс K9 / программа модулей */
body:not(.kl-landing-page).kl-community-paper .kl-k9-lead {
    color: #3d3a36 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-program {
    border-top-color: rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-program-heading {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-program-note {
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-module-card {
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    background: rgba(252, 251, 248, 0.94) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-module-card:hover {
    border-color: rgba(201, 148, 62, 0.35) !important;
    background: rgba(255, 252, 245, 0.98) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-module-title {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-course-module-soon {
    color: #6b6560 !important;
}

body:not(.kl-landing-page).kl-community-paper a.kl-course-module-card--link:hover .kl-course-module-title {
    color: #b45309 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-k9-back {
    border-top-color: rgba(22, 20, 18, 0.1) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-k9-video-block {
    border-bottom-color: rgba(22, 20, 18, 0.08) !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-k9-video-heading {
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper .kl-k9-video-desc {
    color: #5c574f !important;
}

/* ═══════════════════════════════════════════════════════════════════
   GLOBAL MOBILE ADAPTATION — all internal pages
   ═══════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Force no white anywhere (кроме бумажных лендингов БЗ, новостей и community paper) */
    body:not(.kl-landing-page):not(:has(.kl-kb-explorer--research-solo)):not(:has(.kl-news-page)):not(.kl-news-surface):not(.kl-community-paper),
    html body:not(.kl-landing-page):not(:has(.kl-kb-explorer--research-solo)):not(:has(.kl-news-page)):not(.kl-news-surface):not(.kl-community-paper) {
        background: #060610 !important;
        background-color: #060610 !important;
    }

    body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)),
    html body:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) {
        background: #e9e4d8 !important;
        background-color: #e9e4d8 !important;
        color: #161412 !important;
    }

    body:not(.kl-landing-page).kl-community-paper,
    html body:not(.kl-landing-page).kl-community-paper {
        background: #e9e4d8 !important;
        background-color: #e9e4d8 !important;
        color: #161412 !important;
    }

    body:not(.kl-landing-page) #page,
    body:not(.kl-landing-page) .site,
    body:not(.kl-landing-page) .site-wrapper,
    body:not(.kl-landing-page) .wrapper,
    body:not(.kl-landing-page) .container,
    body:not(.kl-landing-page) .site-content,
    body:not(.kl-landing-page) .content-area,
    body:not(.kl-landing-page) .content-area-inner,
    body:not(.kl-landing-page) .site-main,
    body:not(.kl-landing-page) .site-main-inner,
    body:not(.kl-landing-page) main,
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .entry-content,
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .post-card__body,
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article) .post-card__content,
    body:not(.kl-landing-page) .post-card__footer,
    body:not(.kl-landing-page) .sidebar,
    body:not(.kl-landing-page) #secondary,
    body:not(.kl-landing-page) aside,
    body:not(.kl-landing-page) .widget,
    body:not(.kl-landing-page) .widget-area,
    body:not(.kl-landing-page) .wpc-plans-wrapper,
    body:not(.kl-landing-page) .wpc-profile,
    body:not(.kl-landing-page) .wpc-account {
        background: transparent !important;
        background-color: transparent !important;
    }

    /* Re-apply needed backgrounds on mobile after wildcard clear */
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card,
    body:not(.kl-landing-page):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) .kl-news-item,
    body:not(.kl-landing-page):not(.kl-community-paper) .kl-about-card,
    body:not(.kl-landing-page):not(.kl-community-paper) .kl-about-stat,
    body:not(.kl-landing-page):not(.kl-community-paper) .kl-about-list-item,
    body:not(.kl-landing-page):not(.kl-community-paper) .kl-contacts-card,
    body:not(.kl-landing-page):not(.kl-community-paper) .kl-contacts-faq-item,
    body:not(.kl-landing-page):not(.kl-community-paper) .wpc-plan,
    body:not(.kl-landing-page):not(.kl-community-paper) .wpc-plan-card,
    body:not(.kl-landing-page):not(.kl-community-paper) .wpc-profile-card,
    body:not(.kl-landing-page):not(.kl-community-paper) .wpc-account-section {
        background: rgba(255,255,255,0.025) !important;
        background-color: rgba(255,255,255,0.025) !important;
    }

    body:not(.kl-landing-page):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) .kl-news-item:first-child {
        background: rgba(201,148,62,0.03) !important;
        background-color: rgba(201,148,62,0.03) !important;
    }

    body:not(.kl-landing-page) .kl-about-cta {
        background: rgba(201,148,62,0.04) !important;
        background-color: rgba(201,148,62,0.04) !important;
    }

    body:not(.kl-landing-page) .site-header,
    body:not(.kl-landing-page) .site-header-inner {
        background: rgba(10, 10, 20, 0.95) !important;
        background-color: rgba(10, 10, 20, 0.95) !important;
    }

    body:not(.kl-landing-page) .mobile-menu {
        background: rgba(12, 12, 22, 0.98) !important;
        background-color: rgba(12, 12, 22, 0.98) !important;
    }

    /* Бумажные разделы: шапка и выезжающее меню не «старый» тёмный бар */
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .site-header {
        background: rgba(252, 251, 248, 0.96) !important;
        background-color: rgba(252, 251, 248, 0.96) !important;
        backdrop-filter: blur(14px) saturate(1.15) !important;
        -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
        border-bottom: 1px solid rgba(22, 20, 18, 0.1) !important;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.88) inset,
            0 8px 28px rgba(42, 38, 34, 0.07) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .site-header-inner {
        background: transparent !important;
        background-color: transparent !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .site-branding .site-title a,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .site-branding__title a {
        color: #1a1814 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .js-hamburger span,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .js-hamburger .hamburger__line,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .js-hamburger div {
        background: #3d3a36 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu {
        background: rgba(252, 251, 248, 0.98) !important;
        background-color: rgba(252, 251, 248, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(22, 20, 18, 0.1) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .menu-item a,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .menu-item .removed-link,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .mobile-left-menu__item {
        color: #3d3a36 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .menu-item a:hover,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .mobile-left-menu__item:hover {
        color: #1a1814 !important;
        background: rgba(201, 148, 62, 0.12) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .current-menu-item a,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .current-menu-item .mobile-left-menu__item {
        color: #92400e !important;
        background: rgba(201, 148, 62, 0.16) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .sub-menu {
        border-left-color: rgba(201, 148, 62, 0.35) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .mobile-menu .sub-menu a {
        color: #5c574f !important;
    }

    /* Footer dark on mobile */
    .site-footer,
    #colophon,
    body .site-footer,
    body #colophon,
    .kl-footer {
        background: #060610 !important;
        background-color: #060610 !important;
    }

    /* «Бумажные» страницы: подвал в той же палитре, что контент (не чёрный слой) */
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) :is(.site-footer, #colophon),
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) body .site-footer,
    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) body #colophon {
        background: linear-gradient(180deg, #ebe6da 0%, #e0d9cc 72%, #d8d0c2 100%) !important;
        background-color: #e2dccf !important;
        border-top: 1px solid rgba(22, 20, 18, 0.1) !important;
        color: #5c574f !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer {
        background: linear-gradient(180deg, rgba(252, 251, 248, 0.97) 0%, #ebe6da 48%, #e2dccf 100%) !important;
        background-color: #e9e4d8 !important;
        border-top: 1px solid rgba(22, 20, 18, 0.1) !important;
        color: #5c574f !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__top {
        background: rgba(255, 255, 255, 0.72) !important;
        border: 1px solid rgba(22, 20, 18, 0.1) !important;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.92) inset,
            0 14px 36px rgba(42, 38, 34, 0.07) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__brand-name {
        color: #1a1814 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__brand-desc {
        color: #5c574f !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__legal {
        border-top-color: rgba(22, 20, 18, 0.1) !important;
        color: #6b6560 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__legal strong {
        color: #3d3a36 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__social a {
        background: rgba(255, 255, 255, 0.85) !important;
        border-color: rgba(22, 20, 18, 0.12) !important;
        color: #3d3a36 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__social a:hover {
        background: rgba(201, 148, 62, 0.14) !important;
        border-color: rgba(201, 148, 62, 0.42) !important;
        color: #92400e !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__col-title {
        color: #1a1814 !important;
        border-bottom-color: rgba(22, 20, 18, 0.1) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__links a {
        color: #3d3a36 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__links a:hover {
        color: #b45309 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__more-summary {
        color: #92400e !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__more-summary::before {
        border-right-color: rgba(146, 64, 14, 0.75) !important;
        border-bottom-color: rgba(146, 64, 14, 0.75) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__links--nested {
        border-left-color: rgba(201, 148, 62, 0.38) !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__bottom {
        color: #6b6560 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__bottom a {
        color: #7c4218 !important;
    }

    body:not(.kl-landing-page):is(
        .kl-news-surface,
        .kl-community-paper,
        :has(.kl-news-page),
        :has(.kl-kb-explorer--research-solo),
        .kl-kb-issled-article,
        .kl-kb-metody-kb-article,
        .kl-kb-bz-article
    ) .kl-footer__bottom a:hover {
        color: #b45309 !important;
    }

    /* Article cards mobile */
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card {
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }

    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__body {
        padding: 18px 16px !important;
    }

    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__title,
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__title a {
        font-size: 0.98rem !important;
    }

    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__excerpt,
    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .entry-summary {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Page title mobile */
    body:not(.kl-landing-page) .page-title,
    body:not(.kl-landing-page) .archive-title,
    body:not(.kl-landing-page) .category-title {
        font-size: 1.4rem !important;
        margin-bottom: 16px !important;
        padding-bottom: 12px !important;
    }

    /* Join/subscribe mobile */
    body:not(.kl-landing-page) .wpc-plans-wrapper {
        padding: 0 !important;
    }

    body:not(.kl-landing-page) .wpc-plan,
    body:not(.kl-landing-page) .wpc-plan-card {
        border-radius: 12px !important;
        margin-bottom: 14px !important;
    }

    /* Profile mobile */
    body:not(.kl-landing-page) .wpc-profile-card,
    body:not(.kl-landing-page) .wpc-account-section {
        padding: 18px 16px !important;
        border-radius: 12px !important;
    }

    /* Form fields mobile */
    body:not(.kl-landing-page) input[type="text"],
    body:not(.kl-landing-page) input[type="email"],
    body:not(.kl-landing-page) input[type="password"],
    body:not(.kl-landing-page) textarea {
        font-size: 16px !important; /* Prevent iOS zoom */
        padding: 12px 14px !important;
        border-radius: 10px !important;
    }

    body:not(.kl-landing-page) input[type="submit"],
    body:not(.kl-landing-page) button.button,
    body:not(.kl-landing-page) .wpc-plan-button {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #c9943e 100%) !important;
        background-color: #c9943e !important;
    }

    /* Comments mobile */
    body.single-post .comments-area {
        padding: 18px 14px !important;
        border-radius: 12px !important;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body:not(.kl-landing-page) .site-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    body:not(.kl-landing-page):not(.kl-kb-issled-article):not(.kl-kb-metody-kb-article):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) article.post-card .post-card__body {
        padding: 14px 12px !important;
    }

    .kl-footer {
        padding: 32px 12px 0 !important;
    }

    .kl-footer__bottom {
        padding: 16px 4px 26px !important;
        font-size: 0.76rem !important;
    }

    /* News cards extra small */
    body:not(.kl-landing-page):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) .kl-news-item {
        padding: 14px 12px !important;
    }

    body:not(.kl-landing-page):not(:is(.kl-news-surface, :has(.kl-news-page), .kl-community-paper)) .kl-news-item h3 {
        font-size: 0.92rem !important;
        padding-right: 44px !important;
    }

    /* About cards extra small */
    .kl-about-card {
        padding: 20px 16px !important;
    }

    .kl-about-cta {
        padding: 24px 14px !important;
    }

    .kl-contacts-card {
        padding: 20px 16px !important;
    }

    .kl-contacts-faq-item {
        padding: 16px 14px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING PAGE — footer (baza-светлая полоса, без «чёрного зазора» под CTA)
   ═══════════════════════════════════════════════════════════════════ */

body.kl-landing-page .site-footer,
body.kl-landing-page #colophon {
    background: linear-gradient(180deg, #eef4fb 0%, #e2eaf6 52%, #d9e4f6 100%) !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: clamp(1.25rem, 4vw, 2rem) 24px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 -12px 40px -28px rgba(15, 23, 42, 0.12) !important;
}

body.kl-landing-page .site-footer__block {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

html.kl-theme-light body.kl-landing-page .site-info {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.5rem 1rem !important;
    padding: 0.5rem 0 0 !important;
    margin: 0 auto !important;
    max-width: 56rem !important;
    border: none !important;
    background: transparent !important;
    color: #64748b !important;
    font-size: 0.8125rem !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

html.kl-theme-light body.kl-landing-page .site-info a {
    color: #2563eb !important;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(37, 99, 235, 0.25) !important;
}

html.kl-theme-light body.kl-landing-page .site-info a:hover {
    color: #1e40af !important;
    border-bottom-color: rgba(30, 64, 175, 0.45) !important;
}

body.kl-landing-page .site-info {
    height: auto !important;
}

/* ═══════════════════════════════════════════════════════════════════
   JOIN / Вступить — в одной системе с Community Paper (крем, карточки как about/contacts)
   ═══════════════════════════════════════════════════════════════════ */

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout {
    box-sizing: border-box;
    max-width: min(920px, 100%);
    margin: 0 auto 2rem;
    padding: clamp(1.25rem, 3vw, 1.85rem) clamp(1.1rem, 2.5vw, 1.65rem) clamp(1.35rem, 3vw, 1.9rem);
    border-radius: 18px;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    background: rgba(252, 251, 248, 0.94) !important;
    background-color: rgba(252, 251, 248, 0.94) !important;
    color: #2a2722 !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(42, 38, 34, 0.07) !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__top {
    margin-bottom: 1.05rem;
    padding-bottom: 0.05rem;
    border-bottom: 1px solid rgba(22, 20, 18, 0.07);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__eyebrow {
    margin: 0 0 0.4rem;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a4d12 !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__heading {
    margin: 0 0 0.55rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    font-weight: 700;
    color: #1a1814 !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
    border-left: 3px solid #ab6b1a;
    padding-left: 0.85rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__top .kl-sub-checkout__lead {
    margin: 0;
    line-height: 1.65;
    color: #5c574f !important;
    font-size: clamp(0.92rem, 2vw, 1rem);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__lead {
    margin: 0 0 1rem;
    line-height: 1.65;
    color: #5c574f !important;
    font-size: clamp(0.92rem, 2vw, 1rem);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__lead strong {
    color: #1a1814;
    font-weight: 600;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__status {
    margin: 0 0 1.1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(220, 252, 231, 0.65) !important;
    border: 1px solid rgba(34, 120, 70, 0.22) !important;
    color: #166534 !important;
    font-size: 0.92rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__status strong {
    color: #14532d;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__warn {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(255, 241, 242, 0.85) !important;
    border: 1px solid rgba(190, 18, 60, 0.2) !important;
    color: #7f1d1d !important;
    font-size: 0.88rem;
    line-height: 1.55;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__warn code {
    font-size: 0.76rem;
    word-break: break-all;
    color: #451a03;
    background: rgba(255, 255, 255, 0.7);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: clamp(1rem, 2.5vw, 1.35rem);
    margin-top: 1.15rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__grid:has(.kl-sub-checkout__card:only-child) {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card {
    box-sizing: border-box;
    padding: clamp(1.15rem, 2.5vw, 1.4rem);
    border-radius: 14px;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    background: rgba(255, 254, 252, 0.88) !important;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 6px 18px rgba(42, 38, 34, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card:hover {
    border-color: rgba(201, 148, 62, 0.35) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 10px 26px rgba(42, 38, 34, 0.09);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card--accent {
    position: relative;
    padding-top: clamp(1.35rem, 2.5vw, 1.65rem);
    border-color: rgba(171, 107, 26, 0.35) !important;
    background: rgba(255, 252, 246, 0.95) !important;
    box-shadow:
        0 0 0 1px rgba(201, 148, 62, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 8px 22px rgba(42, 38, 34, 0.06);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__badge {
    position: absolute;
    top: 0.72rem;
    right: 0.72rem;
    z-index: 1;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b3810 !important;
    background: rgba(201, 148, 62, 0.22);
    border: 1px solid rgba(171, 107, 26, 0.4);
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    pointer-events: none;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__staff-intro,
body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__staff-note {
    color: #5c574f !important;
    line-height: 1.62;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__staff-note {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__staff-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__staff-main {
    flex: 1 1 13rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card--staff-row .kl-sub-checkout__form {
    margin-top: 0.35rem !important;
    padding-top: 0 !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card--staff-row .kl-sub-checkout__btn {
    line-height: 1.38;
    padding-top: 0.92rem;
    padding-bottom: 0.92rem;
    white-space: normal;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card--staff-row .kl-sub-checkout__badge.kl-sub-checkout__badge--staff-access {
    position: static !important;
    top: auto !important;
    right: auto !important;
    z-index: auto;
    flex: 0 0 auto;
    align-self: flex-start;
    text-align: center;
    max-width: min(100%, 15rem);
    padding: 0.5rem 0.85rem;
    font-size: 0.65rem;
    letter-spacing: 0.052em;
    line-height: 1.38;
    word-break: break-word;
    hyphens: auto;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__fine--staff-hint {
    font-size: 0.88rem;
    color: #54524c !important;
    max-width: 46rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout--staff-panel .kl-sub-checkout__top .kl-sub-checkout__lead:last-of-type {
    margin-bottom: 0;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.02rem, 2vw, 1.12rem);
    font-weight: 700;
    color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price {
    margin: 0 0 0.75rem;
    font-size: clamp(1.35rem, 3.5vw, 1.65rem);
    font-weight: 800;
    color: #8a4d12 !important;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price-old {
    font-size: 0.58em;
    font-weight: 600;
    color: #6b6560 !important;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    letter-spacing: 0;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price-current {
    font-size: 1em;
    font-weight: 800;
    color: #8a4d12 !important;
    letter-spacing: -0.02em;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price .kl-sub-checkout__period {
    display: inline-block;
    margin-left: 0;
    padding: 0.22rem 0.55rem;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4a4540 !important;
    background: rgba(22, 20, 18, 0.06);
    border-radius: 999px;
    vertical-align: middle;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__list {
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    color: #3d3a36 !important;
    line-height: 1.55;
    font-size: 0.92rem;
    flex: 1 1 auto;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__list li::marker {
    color: #ab6b1a;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__form {
    margin-top: auto;
    padding-top: 0.35rem;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__btn {
    width: 100%;
    box-sizing: border-box;
    padding: 0.82rem 1.1rem;
    border: none;
    border-radius: 12px;
    font-size: 0.98rem;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 45%, #c9943e 100%) !important;
    color: #1a1814 !important;
    box-shadow: 0 4px 14px rgba(201, 148, 62, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 148, 62, 0.42);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page a.kl-sub-checkout__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note a {
    color: #7c4218 !important;
    font-weight: 700;
    border-bottom: 1px solid rgba(124, 66, 24, 0.35);
    text-decoration: none !important;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note a:hover {
    color: #b91c1c !important;
    border-bottom-color: rgba(185, 28, 28, 0.45);
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__fine {
    margin: 1.35rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(22, 20, 18, 0.08);
    font-size: 0.76rem;
    line-height: 1.5;
    color: #6b6560 !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note--muted {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(245, 243, 239, 0.95) !important;
    border: 1px solid rgba(22, 20, 18, 0.1) !important;
    color: #5c574f !important;
}

body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note--muted a {
    color: #7c4218 !important;
    font-weight: 700;
    border-bottom: 1px solid rgba(124, 66, 24, 0.32);
}

/* Запас: страница join без класса бумаги — нейтральный светлый вид */
body.kl-join-checkout-page:not(.kl-community-paper) .kl-sub-checkout {
    box-sizing: border-box;
    max-width: min(920px, 100%);
    margin: 0 auto 2rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(22, 24, 35, 0.55) !important;
    color: #e8e6e3 !important;
}

body.kl-join-checkout-page:not(.kl-community-paper) .kl-sub-checkout__heading {
    color: #fde68a !important;
    border-left: 3px solid #c9943e;
    padding-left: 0.85rem;
    font-size: clamp(1.25rem, 3vw, 1.65rem);
}

/* Старый WPShop / тема: 490 ₽ и т.п. (дубль вырезается в PHP; подстраховка в CSS) */
body.kl-join-checkout-page .entry-content .subscriptions,
body.kl-join-checkout-page .entry-content form.js-subscription-form {
    display: none !important;
}

body.kl-join-checkout-page #kl-sub-checkout ~ * .wpc-plans-wrapper,
body.kl-join-checkout-page .entry-content .wpc-plans-wrapper {
    display: none !important;
}

@media (max-width: 600px) {
    body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout {
        padding: 1.1rem 0.9rem 1.3rem;
        margin-bottom: 1.35rem;
        border-radius: 14px;
    }

    body:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__grid {
        gap: 0.95rem;
    }
}
/* =================================================================
   KL MODERN DARK — inner pages = landing v2 (body.kl-modern-dark)
   Перебивает кремовый kl-community-paper / kl-news-surface более высокой специфичностью.
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page) {
    --kl-md-bg: #0c0b14;
    --kl-md-text: #f0ebe3;
    --kl-md-muted: rgba(240, 235, 227, 0.62);
    --kl-md-card: rgba(255, 255, 255, 0.07);
    --kl-md-card-deep: rgba(255, 255, 255, 0.04);
    --kl-md-border: rgba(255, 255, 255, 0.1);
    --kl-md-accent: #c9943e;
    --kl-md-accent-2: #dbb06a;
    --kl-md-link: #dbb06a;
    --kl-md-link-hover: #f5efe6;
    --kl-md-font-display: "Outfit", system-ui, sans-serif;
    --kl-md-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── База: фон и текст ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) {
    background: var(--kl-md-bg) !important;
    background-color: var(--kl-md-bg) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper #page,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) #page,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site {
    background: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-content {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-content a {
    color: var(--kl-md-link) !important;
    border-bottom-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content a:hover,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-content a:hover {
    color: var(--kl-md-link-hover) !important;
}

/* Заголовки страниц и карточек */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .page-title,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .archive-title,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-title,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .post-card__title,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .post-card__title a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .page-title,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .entry-title,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__title,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__title a {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .post-card__title a:hover,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__title a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .post-card__excerpt,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .entry-summary,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .post-card__content,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .post-card__excerpt,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) article.post-card .entry-summary {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .post-meta__date,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .post-meta__views,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .post-meta a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .post-meta__date,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .post-meta a {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .post-meta svg,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .post-meta svg {
    fill: rgba(240, 235, 227, 0.35) !important;
}

/* Крошки */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs {
    color: var(--kl-md-muted) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs a,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__link,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-item__link {
    color: rgba(240, 235, 227, 0.85) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs a:hover,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__text,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-item__text {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-separator,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .breadcrumbs .breadcrumbs-separator {
    color: rgba(255, 255, 255, 0.22) !important;
}

/* ── О клубе ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-hero h1,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-about-page) .kl-about-hero h1 {
    font-family: var(--kl-md-font-display) !important;
    color: var(--kl-md-text) !important;
    border-left-color: var(--kl-md-accent) !important;
    -webkit-text-fill-color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-subtitle,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-stats-lead {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-section h2 {
    color: var(--kl-md-text) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-section > p {
    color: rgba(240, 235, 227, 0.78) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-card,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-stat,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-list-item,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-cta {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-card:hover {
    border-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-card h3,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-cta h2 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-card p,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-cta p {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-list-item p {
    color: rgba(240, 235, 227, 0.78) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-list-item strong {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-stat-label {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-stat-num {
    color: var(--kl-md-accent-2) !important;
    -webkit-text-fill-color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-about-page) .kl-about-stat--metric {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border-color: rgba(201, 148, 62, 0.28) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 16px 40px rgba(0, 0, 0, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-about-page) .kl-about-stat--usp .kl-about-stat-num {
    color: var(--kl-md-text) !important;
    -webkit-text-fill-color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-about-page) .kl-about-stat--usp .kl-about-stat-label {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-btn:focus-visible {
    outline-color: var(--kl-md-accent) !important;
}

/* ── Контакты ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-hero h1 {
    font-family: var(--kl-md-font-display) !important;
    color: var(--kl-md-text) !important;
    border-left-color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-subtitle {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-card,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-faq-item {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 40px rgba(0, 0, 0, 0.3) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-card:hover {
    border-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-card h3,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-section h2 {
    color: var(--kl-md-text) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-card p,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-faq-item p {
    color: rgba(240, 235, 227, 0.78) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-hint {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-faq-item h4 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-social a {
    background: var(--kl-md-card-deep) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
}

/* ── Join / тарифы ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan-card,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan-item {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 44px rgba(0, 0, 0, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan-title,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan-name,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan h3 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan-description,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan p {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan:hover,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-plan-card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
}

/* ── Новости: hero и лента ── */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-hero h1 {
    font-family: var(--kl-md-font-display) !important;
    color: var(--kl-md-text) !important;
    border-left-color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-subtitle {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tabs {
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab {
    background: var(--kl-md-card-deep) !important;
    color: var(--kl-md-muted) !important;
    border: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-tab.is-active {
    color: #1a1408 !important;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #c9943e 100%) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle {
    background: var(--kl-md-card-deep) !important;
    border-color: var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle-main {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date-filter__toggle-sub {
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 14px 36px rgba(0, 0, 0, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card:hover {
    border-color: rgba(201, 148, 62, 0.42) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-thumb {
    background: linear-gradient(160deg, rgba(40, 38, 55, 1), rgba(22, 20, 35, 0.5)) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-thumb--ph {
    background: linear-gradient(145deg, rgba(35, 33, 48, 0.95), rgba(20, 18, 32, 0.5)) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-source-badge {
    background: var(--kl-md-card) !important;
    border-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card-title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-card:hover .kl-news-dzen-card-title {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-excerpt {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-meta {
    border-top-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-date {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-source-label {
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-dzen-meta-ico {
    background: var(--kl-md-card-deep) !important;
    border-color: var(--kl-md-border) !important;
}

/* Запись новости (single) */
body.kl-modern-dark.single-post.kl-news-surface .entry-content,
body.kl-modern-dark.single-post.kl-news-surface .entry-content p {
    color: rgba(240, 235, 227, 0.88) !important;
}

body.kl-modern-dark.single-post.kl-news-surface .post-card__title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark.single-post.kl-news-surface .post-navigation a,
body.kl-modern-dark.single-post.kl-news-surface .nav-links a,
body.kl-modern-dark.single-post.kl-news-surface .kl-back-to-news {
    color: var(--kl-md-link) !important;
}

body.kl-modern-dark.single-post.kl-news-surface .post-navigation a:hover,
body.kl-modern-dark.single-post.kl-news-surface .kl-back-to-news:hover {
    color: var(--kl-md-link-hover) !important;
}

body.kl-modern-dark.single-post.kl-news-surface .comments-area {
    color: var(--kl-md-muted) !important;
}

/* ── Видео / общий контент страницы ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.page-video .entry-content,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.page-video .entry-title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content h2,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content h3,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content h4 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content p,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content li {
    color: rgba(240, 235, 227, 0.82) !important;
}

/* ── Join checkout (оплата) — тёмное стекло вместо крема ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout {
    border: 1px solid var(--kl-md-border) !important;
    background: var(--kl-md-card) !important;
    color: var(--kl-md-text) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 20px 50px rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__top {
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__eyebrow {
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__heading {
    font-family: var(--kl-md-font-display) !important;
    color: var(--kl-md-text) !important;
    border-left-color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__lead,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__top .kl-sub-checkout__lead {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__lead strong {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__fine {
    border-top-color: var(--kl-md-border) !important;
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note--muted {
    background: var(--kl-md-card-deep) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note a,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note--muted a {
    color: var(--kl-md-link) !important;
    border-bottom-color: rgba(201, 148, 62, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note a:hover {
    color: var(--kl-md-link-hover) !important;
}

/* =================================================================
   KL MODERN DARK — Header & Footer (перекрываем кремовый/светлый)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-header,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-header {
    background: rgba(12, 11, 20, 0.92) !important;
    background-color: rgba(12, 11, 20, 0.92) !important;
    backdrop-filter: blur(20px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
    border-bottom: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-header-inner,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-header-inner {
    background: transparent !important;
    background-color: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-branding .site-title a,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-branding .site-branding__title a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-branding .site-title a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-branding .site-branding__title a {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .main-navigation a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .main-navigation a {
    color: rgba(240, 235, 227, 0.7) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .main-navigation a:hover,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .main-navigation a:hover {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .js-hamburger span,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .js-hamburger span {
    background-color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .mobile-menu,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .mobile-menu {
    background: rgba(12, 11, 20, 0.96) !important;
    border: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .mobile-menu a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .mobile-menu a {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer {
    background: rgba(8, 7, 14, 0.95) !important;
    color: var(--kl-md-muted) !important;
    border-top: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer a {
    color: rgba(240, 235, 227, 0.75) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer a:hover,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer h3,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer h4,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer .widget-title,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer h3,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer h4 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-info,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-info {
    color: var(--kl-md-muted) !important;
    border-top-color: var(--kl-md-border) !important;
}

/* ── KL MODERN DARK — Блоки под лентой: карусель статей + KB hub ── */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card-title {
    color: rgba(255, 255, 255, 0.94) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__card-date {
    color: rgba(160, 160, 175, 0.65) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__media {
    background: linear-gradient(145deg, rgba(30, 28, 45, 0.95) 0%, rgba(18, 16, 28, 1) 100%) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__lock-badge {
    background: rgba(18, 16, 14, 0.78) !important;
    color: #f3e8d4 !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__lead {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__nav {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #dbb06a !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__nav:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(201, 148, 62, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-latest-articles__more-link {
    color: var(--kl-md-link) !important;
}

/* KB hub cards (Исследования / Методы) */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) a.kl-kb-hub__card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card-title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card-hint {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__lead {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__badge {
    background: rgba(201, 148, 62, 0.2) !important;
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__badge--member {
    background: rgba(255, 255, 255, 0.07) !important;
    color: var(--kl-md-muted) !important;
    border-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__lock {
    background: rgba(201, 148, 62, 0.2) !important;
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-kb-hub__card--research-lock {
    border-color: rgba(201, 148, 62, 0.3) !important;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.3) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-after {
    border-top-color: var(--kl-md-border) !important;
}

/* News day banner */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-day-banner {
    background: rgba(201, 148, 62, 0.08) !important;
    border-color: rgba(201, 148, 62, 0.25) !important;
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-day-banner a {
    color: var(--kl-md-accent) !important;
}

/* News readmore, pagination */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-readmore {
    color: var(--kl-md-link) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination a,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination span {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: var(--kl-md-border) !important;
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination a:hover {
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-pagination .current {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-more {
    color: var(--kl-md-accent) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(201, 148, 62, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-more:hover {
    background: rgba(201, 148, 62, 0.12) !important;
    color: var(--kl-md-accent-2) !important;
}

/* Old .kl-news-item */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item {
    background: var(--kl-md-card) !important;
    border-color: var(--kl-md-border) !important;
    box-shadow: none !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item:first-child {
    border-color: rgba(201, 148, 62, 0.3) !important;
    background: rgba(201, 148, 62, 0.06) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3 a {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item .kl-news-excerpt,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item p {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-meta {
    border-top-color: var(--kl-md-border) !important;
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-empty,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-yandex-panel-empty {
    color: var(--kl-md-muted) !important;
}

/* =================================================================
   KL MODERN DARK — Формы (input, select, textarea)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper input[type="text"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper input[type="email"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper input[type="password"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper input[type="url"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper input[type="search"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper textarea,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper select {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
    border-radius: 12px !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper input:focus,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper textarea:focus,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper select:focus {
    border-color: rgba(201, 148, 62, 0.55) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(201, 148, 62, 0.15) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper label {
    color: rgba(240, 235, 227, 0.82) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper ::placeholder {
    color: rgba(240, 235, 227, 0.35) !important;
}

/* =================================================================
   KL MODERN DARK — Profile / Login / Auth form
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-profile,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-account,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-user-profile,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .profile-wrapper {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-profile h2,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-profile h3,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-account h2,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-account h3 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-profile-card,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-account-section,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-profile-section {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
    backdrop-filter: blur(14px);
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tabs,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tab-links {
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tab-link,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tabs a {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tab-link.active,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tab-link:hover,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .wpc-tabs a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .post-card {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(18px);
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .post-card__title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .post-card__header {
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form h3 {
    color: rgba(240, 235, 227, 0.82) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .input,
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input[type="text"],
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input[type="email"],
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input[type="password"] {
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .input:focus,
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form input:focus {
    border-color: rgba(201, 148, 62, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(201, 148, 62, 0.15) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form label {
    color: rgba(240, 235, 227, 0.82) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .pseudo-link {
    color: var(--kl-md-link) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .pseudo-link:hover {
    color: var(--kl-md-link-hover) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__description {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form__description code {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(240, 235, 227, 0.78) !important;
}

/* Кнопки submit в profile/auth */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .profile-form__body .btn,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .profile-form__body button[type="submit"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .profile-form__body input[type="submit"],
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .btn,
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form button[type="submit"] {
    color: #1a1408 !important;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
    box-shadow: 0 4px 18px rgba(201, 148, 62, 0.3) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .profile-form__body .btn:hover,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .profile-form__body button[type="submit"]:hover,
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form .btn:hover,
body.kl-modern-dark:not(.logged-in).kl-community-paper.page-template-template-account .auth-form button[type="submit"]:hover {
    box-shadow: 0 8px 28px rgba(201, 148, 62, 0.45) !important;
    transform: translateY(-1px);
}

/* =================================================================
   SAFETY NET — light community pages must stay readable.
   The old `kl-modern-dark` class can remain in page/cache for a short time
   after deploy, so these rules intentionally come after dark overrides.
   ================================================================= */

body:not(.kl-landing-page).kl-community-paper {
    background: #e9e4d8 !important;
    color: #161412 !important;
}

body:not(.kl-landing-page).kl-community-paper .site-content,
body:not(.kl-landing-page).kl-community-paper .content-area,
body:not(.kl-landing-page).kl-community-paper .site-main,
body:not(.kl-landing-page).kl-community-paper .post-card,
body:not(.kl-landing-page).kl-community-paper .post-card__content,
body:not(.kl-landing-page).kl-community-paper .entry-content,
body:not(.kl-landing-page).kl-community-paper .auth-form,
body:not(.kl-landing-page).kl-community-paper .wpc-profile,
body:not(.kl-landing-page).kl-community-paper .wpc-account,
body:not(.kl-landing-page).kl-community-paper .wpc-user-profile,
body:not(.kl-landing-page).kl-community-paper .profile-wrapper {
    color: #1f1b16 !important;
}

body:not(.kl-landing-page).kl-community-paper .post-card,
body:not(.kl-landing-page).kl-community-paper .wpc-profile-card,
body:not(.kl-landing-page).kl-community-paper .wpc-account-section,
body:not(.kl-landing-page).kl-community-paper .wpc-profile-section {
    background: rgba(252, 251, 248, 0.98) !important;
    border-color: rgba(22, 20, 18, 0.11) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.88) inset,
        0 12px 34px rgba(42, 38, 34, 0.08) !important;
}

body:not(.kl-landing-page).kl-community-paper h1,
body:not(.kl-landing-page).kl-community-paper h2,
body:not(.kl-landing-page).kl-community-paper h3,
body:not(.kl-landing-page).kl-community-paper h4,
body:not(.kl-landing-page).kl-community-paper h5,
body:not(.kl-landing-page).kl-community-paper h6,
body:not(.kl-landing-page).kl-community-paper .post-card__title,
body:not(.kl-landing-page).kl-community-paper .auth-form h3,
body:not(.kl-landing-page).kl-community-paper .wpc-profile h2,
body:not(.kl-landing-page).kl-community-paper .wpc-profile h3,
body:not(.kl-landing-page).kl-community-paper .wpc-account h2,
body:not(.kl-landing-page).kl-community-paper .wpc-account h3 {
    color: #1a1814 !important;
    -webkit-text-fill-color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper p,
body:not(.kl-landing-page).kl-community-paper li,
body:not(.kl-landing-page).kl-community-paper dt,
body:not(.kl-landing-page).kl-community-paper dd,
body:not(.kl-landing-page).kl-community-paper span,
body:not(.kl-landing-page).kl-community-paper .auth-form__description,
body:not(.kl-landing-page).kl-community-paper .profile-form__label,
body:not(.kl-landing-page).kl-community-paper label {
    color: #3d3a36 !important;
    -webkit-text-fill-color: currentColor !important;
}

body:not(.kl-landing-page).kl-community-paper a,
body:not(.kl-landing-page).kl-community-paper .pseudo-link {
    color: #7c4218 !important;
    -webkit-text-fill-color: #7c4218 !important;
}

body:not(.kl-landing-page).kl-community-paper a:hover,
body:not(.kl-landing-page).kl-community-paper .pseudo-link:hover {
    color: #92400e !important;
    -webkit-text-fill-color: #92400e !important;
}

body:not(.kl-landing-page).kl-community-paper input[type="text"],
body:not(.kl-landing-page).kl-community-paper input[type="email"],
body:not(.kl-landing-page).kl-community-paper input[type="password"],
body:not(.kl-landing-page).kl-community-paper input[type="url"],
body:not(.kl-landing-page).kl-community-paper input[type="search"],
body:not(.kl-landing-page).kl-community-paper textarea,
body:not(.kl-landing-page).kl-community-paper select {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(22, 20, 18, 0.16) !important;
    color: #1a1814 !important;
    -webkit-text-fill-color: #1a1814 !important;
}

body:not(.kl-landing-page).kl-community-paper input::placeholder,
body:not(.kl-landing-page).kl-community-paper textarea::placeholder {
    color: rgba(22, 20, 18, 0.42) !important;
    -webkit-text-fill-color: rgba(22, 20, 18, 0.42) !important;
}

body:not(.kl-landing-page).kl-community-paper input[type="checkbox"],
body:not(.kl-landing-page).kl-community-paper input[type="radio"] {
    accent-color: #c9943e;
}

/* =================================================================
   KL MODERN DARK — Видеокурс K9 / модули
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru {
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__h {
    font-family: var(--kl-md-font-display) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru p {
    color: rgba(240, 235, 227, 0.78) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__eq {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__note {
    color: rgba(240, 235, 227, 0.78) !important;
    background: rgba(201, 148, 62, 0.08) !important;
    border-color: rgba(201, 148, 62, 0.25) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__src {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-about-ru__src a {
    color: var(--kl-md-link) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-k9-lead {
    color: rgba(240, 235, 227, 0.78) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-program {
    border-top-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-program-heading {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-program-note {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-module-card {
    border: 1px solid var(--kl-md-border) !important;
    background: var(--kl-md-card) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 32px rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(14px);
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-module-card:hover {
    border-color: rgba(201, 148, 62, 0.35) !important;
    background: rgba(255, 255, 255, 0.09) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-module-title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-course-module-soon {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper a.kl-course-module-card--link:hover .kl-course-module-title {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-k9-back {
    border-top-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-k9-video-block {
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-k9-video-heading {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-k9-video-desc {
    color: var(--kl-md-muted) !important;
}

/* =================================================================
   KL MODERN DARK — News list items (общие)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item:hover {
    border-color: rgba(201, 148, 62, 0.3) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item:first-child {
    background: rgba(201, 148, 62, 0.06) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-title,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3 a {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-item h3 a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-excerpt {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-source-line,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-date {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-source {
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-section h2,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-section-title {
    color: var(--kl-md-text) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-more-link,
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-load-more {
    color: var(--kl-md-link) !important;
    border-color: var(--kl-md-border) !important;
}

/* Лента статей (горизонтальная) */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-articles-ribbon-card {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-articles-ribbon-card:hover {
    border-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-articles-ribbon-title {
    color: var(--kl-md-text) !important;
}

/* Исследования card */
body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-research-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%) !important;
    border: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .kl-news-research-card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
}

/* =================================================================
   KL MODERN DARK — Mobile media queries: override cream/paper
   ================================================================= */

@media (max-width: 768px) {
    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper,
    html body.kl-modern-dark:not(.kl-landing-page).kl-community-paper {
        background: var(--kl-md-bg) !important;
        background-color: var(--kl-md-bg) !important;
        color: var(--kl-md-text) !important;
    }

    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)),
    html body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) {
        background: var(--kl-md-bg) !important;
        background-color: var(--kl-md-bg) !important;
        color: var(--kl-md-text) !important;
    }

    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-header,
    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-header {
        background: rgba(12, 11, 20, 0.95) !important;
        background-color: rgba(12, 11, 20, 0.95) !important;
    }

    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-header-inner,
    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-header-inner {
        background: transparent !important;
    }

    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .mobile-menu,
    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .mobile-menu {
        background: rgba(12, 11, 20, 0.98) !important;
    }

    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-branding .site-title a,
    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-branding__title a,
    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-branding .site-title a,
    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-branding__title a {
        color: transparent !important;
        -webkit-text-fill-color: transparent;
        background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }

    body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .js-hamburger span,
    body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .js-hamburger span {
        background-color: var(--kl-md-text) !important;
    }
}

/* =================================================================
   KL MODERN DARK — Join checkout cards (kl-sub-checkout)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 16px 44px rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card--accent {
    border-color: rgba(201, 148, 62, 0.35) !important;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%) !important;
    box-shadow: 0 0 0 1px rgba(201, 148, 62, 0.15), 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 18px 48px rgba(0, 0, 0, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price-old {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__price-current {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__period {
    color: var(--kl-md-muted) !important;
    border-color: var(--kl-md-border) !important;
    background: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__list {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__list li {
    color: rgba(240, 235, 227, 0.82) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__list li::before {
    color: var(--kl-md-accent) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__btn {
    color: #1a1408 !important;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
    box-shadow: 0 4px 18px rgba(201, 148, 62, 0.3) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__btn:hover {
    box-shadow: 0 8px 28px rgba(201, 148, 62, 0.45) !important;
    transform: translateY(-1px);
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__note a {
    color: var(--kl-md-link) !important;
    border-bottom-color: rgba(201, 148, 62, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__badge {
    color: var(--kl-md-accent-2) !important;
    background: rgba(201, 148, 62, 0.18) !important;
    border-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__card--staff-row .kl-sub-checkout__badge.kl-sub-checkout__badge--staff-access {
    position: static !important;
    top: auto !important;
    right: auto !important;
    flex: 0 0 auto;
    align-self: flex-start;
    max-width: min(100%, 15rem);
    padding: 0.5rem 0.85rem;
    letter-spacing: 0.052em;
    line-height: 1.38;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__staff-note {
    color: rgba(240, 235, 227, 0.88) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__fine--staff-hint {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__warn {
    color: var(--kl-md-muted) !important;
    background: rgba(201, 148, 62, 0.06) !important;
    border-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper.kl-join-checkout-page .kl-sub-checkout__status {
    color: var(--kl-md-text) !important;
}

/* =================================================================
   KL MODERN DARK — About CTA block + button (Готовы начать?)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-btn,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-cta .kl-about-btn {
    color: #1a1408 !important;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
    box-shadow: 0 4px 18px rgba(201, 148, 62, 0.3) !important;
    border: none !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-btn:hover {
    box-shadow: 0 8px 28px rgba(201, 148, 62, 0.45) !important;
    transform: translateY(-2px);
}

/* =================================================================
   KL MODERN DARK — Footer: подвал (general)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page) .site-footer {
    background: rgba(8, 7, 14, 0.95) !important;
    color: var(--kl-md-muted) !important;
    border-top: 1px solid var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page) .site-footer *,
body.kl-modern-dark:not(.kl-landing-page) .site-footer .site-footer__block,
body.kl-modern-dark:not(.kl-landing-page) .site-footer .site-info {
    background: transparent !important;
    background-color: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page) .site-footer a {
    color: rgba(240, 235, 227, 0.72) !important;
}

body.kl-modern-dark:not(.kl-landing-page) .site-footer a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page) .site-footer h3,
body.kl-modern-dark:not(.kl-landing-page) .site-footer h4,
body.kl-modern-dark:not(.kl-landing-page) .site-footer .widget-title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page) .site-info {
    color: var(--kl-md-muted) !important;
    border-top-color: var(--kl-md-border) !important;
    background: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page) .site-footer .site-info a {
    color: rgba(240, 235, 227, 0.55) !important;
}

/* =================================================================
   KL MODERN DARK — About / Contacts emoji icons (чтобы не пропадали)
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-about-card .kl-about-icon,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-contacts-card .kl-contacts-icon {
    background: rgba(201, 148, 62, 0.12) !important;
    border: 1px solid rgba(201, 148, 62, 0.25) !important;
}

/* =================================================================
   KL MODERN DARK — Вход / wp-login + profile auth forms override
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .post-card__header,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card .post-card__footer {
    border-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper article.post-card {
    background: transparent !important;
    border: none !important;
}

/* =================================================================
   KL MODERN DARK — KB Landing / Rubric Hubs / Block Hubs / Articles
   Фон страницы + типографика; карточки/кнопки — во встроенных стилях HTML
   ================================================================= */

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) {
    background: var(--kl-md-bg) !important;
    background-color: var(--kl-md-bg) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs {
    color: var(--kl-md-muted) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs a,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__link {
    color: rgba(240, 235, 227, 0.8) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs a:hover {
    color: var(--kl-md-accent-2) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__text {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-separator {
    color: rgba(255, 255, 255, 0.2) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content a:not([class*="kl-kb-x__"]):not([class*="kl-rubric-hub__"]):not([class*="kl-rs-"]) {
    color: var(--kl-md-link) !important;
    border-bottom-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content a:not([class*="kl-kb-x__"]):not([class*="kl-rubric-hub__"]):not([class*="kl-rs-"]):hover {
    color: var(--kl-md-link-hover) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content h1,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content h2,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content h3 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content p,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content li {
    color: rgba(240, 235, 227, 0.82) !important;
}

/* ── KB Header override on research-solo pages ── */
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-header {
    background: rgba(12, 11, 20, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-header-inner {
    background: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-branding .site-title a,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-branding__title a {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .main-navigation a {
    color: rgba(240, 235, 227, 0.7) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .main-navigation a:hover {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .js-hamburger span {
    background-color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .mobile-menu {
    background: rgba(12, 11, 20, 0.96) !important;
    border-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .mobile-menu a {
    color: var(--kl-md-text) !important;
}

/* ── KB research-solo hero: усиление контраста в тёмной теме ── */
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__h1 {
    color: #f0ebe3 !important;
    -webkit-text-fill-color: #f0ebe3 !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__h1 em {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(120deg, #fde68a, #dbb06a, #f472b6) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__deck,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__lead {
    color: rgba(240, 235, 227, 0.82) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__deck strong,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__lead strong {
    color: #f0ebe3 !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__sig {
    color: rgba(240, 235, 227, 0.58) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__batch {
    color: rgba(240, 235, 227, 0.82) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__mast {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__ticks li {
    color: rgba(240, 235, 227, 0.58) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__ticks {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Figure placeholder: тёмный полосатый фон вместо светлого */
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__figure--empty {
    background: linear-gradient(145deg, rgba(30, 27, 45, 0.9) 0%, rgba(18, 17, 28, 0.95) 100%),
        repeating-linear-gradient(
            -12deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 10px,
            rgba(255, 255, 255, 0.06) 10px,
            rgba(255, 255, 255, 0.06) 20px
        ) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__figure {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__figure::after {
    color: rgba(240, 235, 227, 0.55) !important;
}

/* Flow infographic section (1-2-3-4) */
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-flow__note {
    color: rgba(240, 235, 227, 0.82) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-flow__t {
    color: rgba(240, 235, 227, 0.58) !important;
}

/* Block hub footer */
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-block-hub-footer {
    border-top-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(240, 235, 227, 0.58) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-block-hub-footer a {
    color: #dbb06a !important;
}

/* ── Методы дрессировки: inline #kl-metody-outline-style + карточки рубрики (перебить встроенные цвета) ── */
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-metody-h3 {
    color: #f0ebe3 !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-metody-ul,
body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-metody-ul li {
    color: rgba(240, 235, 227, 0.84) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__chapters-lead {
    color: rgba(240, 235, 227, 0.78) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-block-hub-topic {
    color: #f0ebe3 !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.36) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-title {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-desc {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-soon {
    color: rgba(240, 235, 227, 0.55) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) a.kl-rubric-hub__card-link {
    color: #dbb06a !important;
    border-bottom-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) a.kl-rubric-hub__card-link:hover {
    color: #fde68a !important;
}

body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-visual--metody-ph {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* ── KB Rubric Hub Pages (kormlenie-baza-znaniy, byt-i-ukhod-baza-znaniy, etc.) ── */
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-block-hub-shell),
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-rubric-hub__grid),
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has([class*="kl-rubric-hub"]),
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has([class*="kl-block-hub"]) {
    background: var(--kl-md-bg) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .kl-block-hub-shell,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub"] {
    background: transparent !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__card"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__card"] {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__card"]:hover,
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__card"]:hover {
    border-color: rgba(201, 148, 62, 0.4) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__title"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__title"] {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__desc"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__desc"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__lead"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__lead"] {
    color: var(--kl-md-muted) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__section-title"],
body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__section-title"] {
    color: var(--kl-md-text) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

/* ── KB Article (single) — тёмная оболочка только для прочих статей БЗ (.kl-kb-bz-article).
   Исследования / Методы: бумажная тема в kl-articles.css + paywall (#kl-kb-*-after-force-dark);
   не переопределять здесь — иначе тёмный фон + «чернила» дают невидимый заголовок. ── */
body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article {
    background: var(--kl-md-bg) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content {
    color: rgba(240, 235, 227, 0.88) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content h1,
body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content h2,
body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content h3 {
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content a {
    color: var(--kl-md-link) !important;
    border-bottom-color: rgba(201, 148, 62, 0.35) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .breadcrumbs {
    color: var(--kl-md-muted) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .breadcrumbs a {
    color: rgba(240, 235, 227, 0.8) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-header {
    background: rgba(12, 11, 20, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom-color: var(--kl-md-border) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-header-inner {
    background: transparent !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-branding .site-title a,
body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-branding__title a {
    color: transparent !important;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #c9943e 0%, #dbb06a 50%, #e8a87c 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .main-navigation a {
    color: rgba(240, 235, 227, 0.7) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .js-hamburger span {
    background-color: var(--kl-md-text) !important;
}

/* KB article card: прозрачная карточка только у bz; issled/metody — подложка из kl-articles */
body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article article.post-card {
    background: transparent !important;
}

/* TOC — только bz; issled/metody оформляет kl-articles */
body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .table-of-contents {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
}

body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .table-of-contents a {
    color: var(--kl-md-link) !important;
}

/*
 * Бумажные статьи БЗ (методы / исследования): kl-global подключается после kl-articles —
 * без дубля с html+body тёмная «карточка» и светлый текст из других правил перебивают бумагу.
 * Литеральные цвета = не зависят от порядка CSS-переменных.
 */
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article {
    background: linear-gradient(180deg, #e9e4d8 0%, #dcd6c8 100%) !important;
    color: #161412 !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card {
    background: rgba(252, 251, 248, 0.92) !important;
    border: 1px solid rgba(28, 25, 22, 0.12) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 18px 48px rgba(28, 25, 22, 0.1) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card .post-card__excerpt,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card .entry-summary,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card .post-card__excerpt,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card .entry-summary {
    color: #3d3a36 !important;
    -webkit-text-fill-color: #3d3a36 !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content p,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content li,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content p,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content li {
    color: #3d3a36 !important;
    -webkit-text-fill-color: #3d3a36 !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content strong,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content b,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content strong,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content b {
    color: #161412 !important;
    -webkit-text-fill-color: #161412 !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content h1,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content h2,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content h3,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content h1,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content h2,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content h3 {
    color: #161412 !important;
    -webkit-text-fill-color: #161412 !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .kl-metody-article-lead,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .kl-metody-article-prose,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .kl-metody-callout {
    color: #3d3a36 !important;
    -webkit-text-fill-color: #3d3a36 !important;
}

html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .post-card__title,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .post-card__header h1,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .post-card__title,
html body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .post-card__header h1 {
    color: #161412 !important;
    -webkit-text-fill-color: #161412 !important;
}

/* ── KB Bibliography article format ── */
.kl-kb-article--bibliography {
    max-width: 68rem;
    margin: 0 auto;
    line-height: 1.72;
    padding: 0 1.5rem;
}
.kl-kb-article--bibliography .kl-kb-lead {
    font-size: 1.15rem;
    line-height: 1.72;
    color: #2c2a26;
    margin-bottom: 1.6rem;
    max-width: 58rem;
}
.kl-kb-article--bibliography h2 {
    font-size: 1.32rem;
    font-weight: 700;
    margin: 2.2rem 0 0.8rem;
    color: #1a1816;
}
.kl-kb-article--bibliography h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.8rem 0 0.6rem;
    color: #2c2a26;
}
.kl-kb-article--bibliography ul {
    padding-left: 1.4rem;
    margin: 0.6rem 0 1rem;
}
.kl-kb-article--bibliography ul li {
    margin-bottom: 0.5rem;
}
.kl-kb-divider {
    border: none;
    border-top: 1px solid rgba(28, 25, 20, 0.12);
    margin: 2rem 0;
}
.kl-kb-bibliography {
    margin: 1rem 0 2rem;
}
.kl-kb-bib-list {
    list-style: decimal;
    padding-left: 1.6rem;
    margin: 0.5rem 0 1.2rem;
}
.kl-kb-bib-list li {
    margin-bottom: 1.2rem;
    line-height: 1.62;
    color: #2c2a26;
    position: relative;
}
.kl-kb-bib-list li strong {
    color: #1a1816;
}
.kl-kb-bib-list li em {
    font-style: italic;
}
.kl-kb-bib-list li br + br {
    display: none;
}
.kl-kb-bib-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6d5c3e;
    background: rgba(180, 160, 120, 0.12);
    border: 1px solid rgba(180, 160, 120, 0.25);
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1.4;
}
.kl-kb-bib-btn:hover {
    background: rgba(180, 160, 120, 0.22);
    border-color: rgba(180, 160, 120, 0.45);
    color: #4a3c28;
    text-decoration: none;
}
.kl-kb-bib-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Dark-mode overrides for bibliography articles */
body.kl-modern-dark .kl-kb-article--bibliography .kl-kb-lead,
body.kl-modern-dark .kl-kb-bib-list li,
body.kl-modern-dark .kl-kb-article--bibliography ul li,
body.kl-modern-dark .kl-kb-article--bibliography p {
    color: #3d3a36 !important;
    -webkit-text-fill-color: #3d3a36 !important;
}
body.kl-modern-dark .kl-kb-article--bibliography h2 {
    color: #161412 !important;
    -webkit-text-fill-color: #161412 !important;
}
body.kl-modern-dark .kl-kb-article--bibliography h3 {
    color: #2c2a26 !important;
    -webkit-text-fill-color: #2c2a26 !important;
}
body.kl-modern-dark .kl-kb-bib-list li strong {
    color: #161412 !important;
    -webkit-text-fill-color: #161412 !important;
}
body.kl-modern-dark .kl-kb-divider {
    border-top-color: rgba(28, 25, 20, 0.18) !important;
}
body.kl-modern-dark .kl-kb-bib-btn {
    color: #a89570 !important;
    -webkit-text-fill-color: #a89570 !important;
    background: rgba(168, 149, 112, 0.1) !important;
    border-color: rgba(168, 149, 112, 0.22) !important;
}
body.kl-modern-dark .kl-kb-bib-btn:hover {
    background: rgba(168, 149, 112, 0.18) !important;
    border-color: rgba(168, 149, 112, 0.35) !important;
    color: #c4b48a !important;
    -webkit-text-fill-color: #c4b48a !important;
}

/* KB community banner in articles */
body.kl-modern-dark:not(.kl-landing-page) .kl-kb-community-banner {
    background: var(--kl-md-card) !important;
    border: 1px solid var(--kl-md-border) !important;
    color: var(--kl-md-text) !important;
}

/* Mobile KB */
@media (max-width: 768px) {
    body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo),
    html body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) {
        background: var(--kl-md-bg) !important;
        color: var(--kl-md-text) !important;
    }

    body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-header {
        background: rgba(12, 11, 20, 0.95) !important;
    }

    body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article,
    html body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article {
        background: var(--kl-md-bg) !important;
        color: var(--kl-md-text) !important;
    }
}

/* Universal fallback: inline cream → тёмный фон (не трогаем бумажные статьи БЗ — там крем намеренный) */
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background: #e9e4d8"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background-color: #e9e4d8"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background:#e9e4d8"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background-color:#e9e4d8"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background: #fcfbf8"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background-color: #fcfbf8"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background: rgb(233"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background-color: rgb(233"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background: rgb(252"],
body.kl-modern-dark:not(.kl-landing-page):not(.kl-kb-metody-kb-article):not(.kl-kb-issled-article) [style*="background-color: rgb(252"] {
    background: var(--kl-md-bg) !important;
    background-color: var(--kl-md-bg) !important;
}

/* =================================================================
   KL THEME LIGHT — переключатель светлый / тёмный (localStorage: kl-theme)
   html.kl-theme-light — ранний script (mu-plugin kl-theme-early.php)
   ================================================================= */

html.kl-theme-light {
    color-scheme: light;
}

/* Токены modern-dark для светлой темы */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page),
body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) {
    --kl-md-bg: #faf8f5;
    --kl-md-text: #1a1a2e;
    --kl-md-muted: rgba(26, 26, 46, 0.58);
    --kl-md-card: rgba(0, 0, 0, 0.04);
    --kl-md-card-deep: rgba(0, 0, 0, 0.03);
    --kl-md-border: rgba(0, 0, 0, 0.1);
    --kl-md-accent: #b07d2e;
    --kl-md-accent-2: #c9943e;
    --kl-md-link: #a86f1f;
    --kl-md-link-hover: #1a1a2e;
    --kl-md-font-display: "Outfit", system-ui, sans-serif;
    --kl-md-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Базовый фон внутренних страниц */
html.kl-theme-light body:not(.kl-landing-page) {
    background: #faf8f5 !important;
    background-color: #faf8f5 !important;
    color: #1a1a2e !important;
}

/* Шапка — мобильная полоса */
html.kl-theme-light body:not(.kl-landing-page) .site-header {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

html.kl-theme-light body:not(.kl-landing-page) .site-branding .site-title a,
html.kl-theme-light body:not(.kl-landing-page) .site-branding__title a {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    background: none !important;
}

html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item a,
html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item .removed-link {
    color: rgba(26, 26, 46, 0.78) !important;
}

html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item a:hover,
html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item .removed-link:hover {
    color: #1a1a2e !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

html.kl-theme-light body:not(.kl-landing-page) .main-navigation .sub-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12) !important;
}

html.kl-theme-light body:not(.kl-landing-page) .main-navigation .sub-menu .menu-item a:hover {
    background: rgba(176, 125, 46, 0.12) !important;
    color: #a86f1f !important;
}

/* Десктоп: стеклянная капсула в шапке */
@media (min-width: 992px) {
    html.kl-theme-light body:not(.kl-landing-page) .site-header-inner {
        background: rgba(255, 255, 255, 0.88) !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    }

    html.kl-theme-light body:not(.kl-landing-page) .site-branding .site-title a,
    html.kl-theme-light body:not(.kl-landing-page) .site-branding__title a {
        color: transparent !important;
        -webkit-text-fill-color: transparent !important;
        background: linear-gradient(135deg, #a86f1f 0%, #c9943e 50%, #b07d2e 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }

    html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item a,
    html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item .removed-link {
        color: rgba(26, 26, 46, 0.62) !important;
    }

    html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item a:hover,
    html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item .removed-link:hover {
        color: #1a1a2e !important;
        background: rgba(0, 0, 0, 0.05) !important;
    }

    html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item.current-menu-item > a,
    html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item.current_page_item > a {
        color: #1a1408 !important;
        background: linear-gradient(135deg, #e8c078 0%, #c9943e 50%, #dbb06a 100%) !important;
    }
}

/* Мобильное меню */
html.kl-theme-light body:not(.kl-landing-page) .mobile-menu,
html.kl-theme-light body:not(.kl-landing-page) .mobile-menu .menu {
    background: #fff !important;
    color: #1a1a2e !important;
}

html.kl-theme-light body:not(.kl-landing-page) .mobile-menu .menu-item a {
    color: #1a1a2e !important;
}

/* Кнопка переключения темы */
.kl-theme-toggle {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(232, 232, 240, 0.9) !important;
    cursor: pointer !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s !important;
    vertical-align: middle !important;
}

.kl-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(201, 148, 62, 0.45) !important;
    color: #fff !important;
}

.kl-theme-toggle:focus-visible {
    outline: 2px solid #c9943e !important;
    outline-offset: 2px !important;
}

.kl-theme-toggle svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

html.kl-theme-light .kl-theme-toggle {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-theme-toggle:hover {
    background: rgba(176, 125, 46, 0.12) !important;
    border-color: rgba(176, 125, 46, 0.35) !important;
    color: #a86f1f !important;
}

@media (min-width: 992px) {
    html.kl-theme-light body:not(.kl-landing-page) .kl-theme-toggle {
        border-color: rgba(0, 0, 0, 0.1) !important;
        background: rgba(255, 255, 255, 0.65) !important;
    }
}

/* Лендинг: кнопка на тёмном фоне (переопределяется ниже в kl-landing-paper при light) */
body.kl-landing-page .kl-theme-toggle {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #f0ebe3 !important;
}

/* KB: исследования / методы — inline --rs-* (важно: !important — иначе встроенный skin после head перебивает) */
html.kl-theme-light .kl-kb-explorer--research-solo {
    --rs-ink: #1a1a2e !important;
    --rs-ink-soft: rgba(26, 26, 46, 0.82) !important;
    --rs-muted: rgba(26, 26, 46, 0.55) !important;
    --rs-paper: #faf8f5 !important;
    --rs-paper-dark: #f3f0ec !important;
    --rs-edge: rgba(0, 0, 0, 0.1) !important;
    --rs-accent: #a86f1f !important;
    --rs-accent-soft: #c9943e !important;
    --rs-teal: #0d9488 !important;
    background: var(--rs-paper) !important;
    border-top-color: rgba(176, 125, 46, 0.45) !important;
    color: var(--rs-ink) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rs-hero {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
    background:
        radial-gradient(ellipse 85% 65% at 12% 18%, rgba(201, 148, 62, 0.12), transparent 58%),
        radial-gradient(ellipse 70% 55% at 88% 8%, rgba(192, 132, 252, 0.08), transparent 52%),
        radial-gradient(ellipse 60% 45% at 50% 95%, rgba(13, 148, 136, 0.06), transparent 55%),
        linear-gradient(180deg, #f3f0ec 0%, #faf8f5 100%) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rs-hero__mast {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Главный проводник базы (kl-kb-explorer без research-solo) */
html.kl-theme-light .kl-kb-explorer:not(.kl-kb-explorer--research-solo) {
    --kb-ink: #1a1a2e;
    --kb-muted: rgba(26, 26, 46, 0.62);
    --kb-dim: rgba(26, 26, 46, 0.45);
    --kb-card: rgba(0, 0, 0, 0.04);
    --kb-card-border: rgba(0, 0, 0, 0.1);
    --kb-deep: #faf8f5;
    color: var(--kb-ink) !important;
}

html.kl-theme-light .kl-kb-explorer:not(.kl-kb-explorer--research-solo)::before {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(192, 132, 252, 0.08), transparent),
        radial-gradient(ellipse 60% 40% at 100% 30%, rgba(94, 234, 212, 0.05), transparent),
        radial-gradient(ellipse 50% 50% at 0% 80%, rgba(244, 193, 90, 0.05), transparent),
        #faf8f5 !important;
}

/* Встроенные хабы рубрик: карточки */
html.kl-theme-light .kl-rubric-hub {
    --bg: #faf8f5;
    --card: rgba(0, 0, 0, 0.04);
    --text: #1a1a2e;
    --muted: rgba(26, 26, 46, 0.58);
    --accent: #a86f1f;
    --line: rgba(0, 0, 0, 0.1);
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub {
    --text: var(--rs-ink);
    --muted: var(--rs-muted);
    --accent: var(--rs-accent);
}

/*
 * Light theme: modern-dark задаёт .entry-content p/li светлый цвет с !important
 * (строки ~7316 и ~8061) — на кремовом фоне KB текст исчезает. Снимаем и
 * оставляем светлый текст только внутри тёмного kl-kb-x__hero.
 */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content p,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content li {
    color: rgba(26, 26, 46, 0.88) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content .kl-kb-x__hero p,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .entry-content .kl-kb-x__hero li {
    color: rgba(244, 241, 234, 0.92) !important;
}

html.kl-theme-light body.kl-modern-dark.single-post.kl-news-surface .entry-content,
html.kl-theme-light body.kl-modern-dark.single-post.kl-news-surface .entry-content p {
    color: rgba(26, 26, 46, 0.88) !important;
}

/* Крошки: перебить !important modern-dark (community + KB research-solo) */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs {
    color: rgba(26, 26, 46, 0.58) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__link,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__link {
    color: #3d3a36 !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__link:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__link:hover {
    color: #b91c1c !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__text,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-item__text {
    color: #5c574f !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-separator,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .breadcrumbs .breadcrumbs-separator {
    color: rgba(22, 20, 18, 0.28) !important;
}

/* Подпись «fig. 1» на иллюстрации — не светло-серая на светлом hero */
html.kl-theme-light .kl-kb-explorer--research-solo .kl-rs-hero__figure::after {
    color: rgba(26, 26, 46, 0.42) !important;
}

/*
 * LIGHT THEME + kl-modern-dark: блок ~8286 задаёт светлый текст hero с !important —
 * на кремовом фоне заголовок/лид исчезают. Перебиваем с html.kl-theme-light.
 * Плюс body:not (строки ~1251) даёт тёмный фон — на светлой теме нужен крем.
 */
html.kl-theme-light body:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) {
    background: #faf8f5 !important;
    background-color: #faf8f5 !important;
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__h1 {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__h1 em {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(120deg, #b45309, #c9943e, #be185d) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__deck,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__lead {
    color: rgba(26, 26, 46, 0.88) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__deck strong,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__lead strong {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__sig {
    color: rgba(26, 26, 46, 0.55) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__batch {
    color: rgba(26, 26, 46, 0.72) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__ticks li {
    color: rgba(26, 26, 46, 0.62) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__ticks {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__mast {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__figure--empty {
    background:
        linear-gradient(145deg, rgba(243, 240, 236, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%),
        repeating-linear-gradient(
            -12deg,
            rgba(0, 0, 0, 0.03),
            rgba(0, 0, 0, 0.03) 10px,
            rgba(0, 0, 0, 0.06) 10px,
            rgba(0, 0, 0, 0.06) 20px
        ) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-hero__figure {
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.55) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-flow__note {
    color: rgba(26, 26, 46, 0.88) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rs-flow__t {
    color: rgba(26, 26, 46, 0.55) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-block-hub-footer {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
    color: rgba(26, 26, 46, 0.55) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-block-hub-footer a {
    color: #a86f1f !important;
}

/* Методы: тёмные правила ~8369 — в light нужен тёмный текст */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-metody-h3 {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-metody-ul,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-metody-ul li {
    color: rgba(26, 26, 46, 0.88) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__chapters-lead {
    color: rgba(26, 26, 46, 0.78) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-block-hub-topic {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card:hover {
    border-color: rgba(176, 125, 46, 0.4) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-title {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-desc {
    color: rgba(26, 26, 46, 0.72) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-soon {
    color: rgba(26, 26, 46, 0.5) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) a.kl-rubric-hub__card-link {
    color: #a86f1f !important;
    border-bottom-color: rgba(176, 125, 46, 0.35) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) a.kl-rubric-hub__card-link:hover {
    color: #92400e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .kl-rubric-hub__card-visual--metody-ph {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* ── LIGHT THEME: KB page body + header (research-solo, rubric-hub, block-hub, articles) ── */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo),
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-block-hub-shell),
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has([class*="kl-rubric-hub"]),
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article {
    background: #faf8f5 !important;
    color: #1a1a2e !important;
}

/* Header → светлый на всех KB-страницах */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-header,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has(.kl-block-hub-shell) .site-header,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper:has([class*="kl-rubric-hub"]) .site-header,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-header,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .site-header,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .site-header {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-header-inner,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-header-inner,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .site-header-inner,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .site-header-inner {
    background: transparent !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-branding .site-title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-branding__title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-branding .site-title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .site-branding__title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .site-branding .site-title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .site-branding__title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .site-branding .site-title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .site-branding__title a {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
    background: none !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .main-navigation a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .main-navigation a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .main-navigation a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .main-navigation a {
    color: rgba(26, 26, 46, 0.78) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .main-navigation a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .main-navigation a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .main-navigation a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .main-navigation a:hover {
    color: #1a1a2e !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .js-hamburger span,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .js-hamburger span,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .js-hamburger span,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .js-hamburger span {
    background-color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .mobile-menu,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .mobile-menu,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .mobile-menu,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .mobile-menu {
    background: #fff !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .mobile-menu a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .mobile-menu a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .mobile-menu a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .mobile-menu a {
    color: #1a1a2e !important;
}

/* ── LIGHT THEME: KB article entry-content ── */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content p,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content li,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content p,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content li,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content p,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content li,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content p,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content li {
    color: rgba(26, 26, 46, 0.88) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content h1,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content h2,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content h3,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content h1,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content h2,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content h3,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content h1,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content h2,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content h3,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content h1,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content h2,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content h3 {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .entry-content a:not([class*="kl-kb-x__"]):not([class*="kl-rubric-hub__"]):not([class*="kl-rs-"]),
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .entry-content a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .entry-content a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .entry-content a {
    color: #a86f1f !important;
    border-bottom-color: rgba(176, 125, 46, 0.35) !important;
}

/* ── LIGHT THEME: KB rubric hub / block hub cards (inline dark styles → light) ── */
html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__card {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(8px) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__card:hover {
    border-color: rgba(176, 125, 46, 0.4) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(176, 125, 46, 0.15) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__card-visual {
    background: #e8e4de !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__card-title {
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__card-desc {
    color: rgba(26, 26, 46, 0.72) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__card-soon {
    color: rgba(26, 26, 46, 0.5) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__wip {
    border-color: rgba(0, 0, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__wip-body {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__chapter {
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__footer {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__footer a {
    color: #0d9488 !important;
    border-bottom-color: rgba(13, 148, 136, 0.3) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-rubric-hub__footer a:hover {
    color: #a86f1f !important;
    border-bottom-color: rgba(176, 125, 46, 0.45) !important;
}

/* Carousel strip edge-fade → cream instead of dark */
html.kl-theme-light .kl-kb-explorer--research-solo .kl-kb-x__carousel-strip::before {
    background: linear-gradient(90deg, rgba(250, 248, 245, 0.97) 0%, transparent 100%) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-kb-x__carousel-strip::after {
    background: linear-gradient(-90deg, rgba(250, 248, 245, 0.97) 0%, transparent 100%) !important;
}

/* Block hub footer border */
html.kl-theme-light .kl-kb-explorer--research-solo .kl-block-hub-footer {
    border-top-color: rgba(0, 0, 0, 0.1) !important;
}

/* Values row background */
html.kl-theme-light .kl-kb-explorer--research-solo .kl-kb-x__values {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06) !important;
}

html.kl-theme-light .kl-kb-explorer--research-solo .kl-kb-x__value {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

@media (min-width: 768px) {
    html.kl-theme-light .kl-kb-explorer--research-solo .kl-kb-x__value {
        border-right-color: rgba(0, 0, 0, 0.06) !important;
    }
}

/* Main section (carousel cards wrapper) */
html.kl-theme-light .kl-kb-explorer:not(.kl-kb-explorer--research-solo) .kl-kb-x__main-section {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06) !important;
}

/* Carousel strip edges for non-research explorer */
html.kl-theme-light .kl-kb-explorer:not(.kl-kb-explorer--research-solo) .kl-kb-x__carousel-strip::before {
    background: linear-gradient(90deg, rgba(250, 248, 245, 0.97) 0%, transparent 100%) !important;
}

html.kl-theme-light .kl-kb-explorer:not(.kl-kb-explorer--research-solo) .kl-kb-x__carousel-strip::after {
    background: linear-gradient(-90deg, rgba(250, 248, 245, 0.97) 0%, transparent 100%) !important;
}

/* Explorer cards */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__card {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__card:hover {
    border-color: rgba(176, 125, 46, 0.4) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12) !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__card-visual {
    background: #e8e4de !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__card-title {
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__card-desc {
    color: rgba(26, 26, 46, 0.72) !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__card-num {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}

/* Carousel slide visual */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__carousel-slide-visual {
    background: #e8e4de !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__carousel-slide {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08) !important;
}

/* Carousel h3 titles */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__carousel-slide-body h3 {
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__carousel-title {
    color: #1a1a2e !important;
}

/* Section headings */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__main-section-head h2 {
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__cluster-titles h2 {
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__value h3 {
    color: #1a1a2e !important;
}

/* Footer block */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__footer {
    background: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* Car buttons (prev/next) */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__car-btn {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: #1a1a2e !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__car-btn:hover {
    background: rgba(176, 125, 46, 0.12) !important;
    border-color: rgba(176, 125, 46, 0.4) !important;
}

/* Link "Открыть раздел целиком" */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__link-all {
    color: #0d9488 !important;
    border-bottom-color: rgba(13, 148, 136, 0.35) !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__link-all:hover {
    color: #a86f1f !important;
    border-bottom-color: rgba(176, 125, 46, 0.5) !important;
}

/* Orb decorative */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__orb {
    background: linear-gradient(145deg, rgba(176, 125, 46, 0.2), rgba(13, 148, 136, 0.15)) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06) !important;
}

/* Path pills */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__path-pill {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

html.kl-theme-light .kl-kb-explorer .kl-kb-x__path-select {
    border-color: rgba(0, 0, 0, 0.12) !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    color: #1a1a2e !important;
}

/* Stat pills */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__stat {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

/* KB article breadcrumbs */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .breadcrumbs,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .breadcrumbs,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .breadcrumbs {
    color: rgba(26, 26, 46, 0.55) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .breadcrumbs a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .breadcrumbs a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .breadcrumbs a {
    color: #3d3a36 !important;
}

/* KB article post-card */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article article.post-card,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card {
    background: transparent !important;
}

/* Заголовок/лид в шапке карточки (не внутри .entry-content) — перебить body.single-post #fff на кремовом фоне */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article article.post-card .post-card__title,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card .post-card__title,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card .post-card__title,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article article.post-card .post-card__header h1,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card .post-card__header h1,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card .post-card__header h1 {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article article.post-card .post-card__excerpt,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card .post-card__excerpt,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card .post-card__excerpt,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article article.post-card .entry-summary,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article article.post-card .entry-summary,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article article.post-card .entry-summary {
    color: rgba(26, 26, 46, 0.72) !important;
    -webkit-text-fill-color: rgba(26, 26, 46, 0.72) !important;
}

/* KB TOC */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .kl-metody-toc,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .table-of-contents,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-bz-article .table-of-contents {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-metody-kb-article .kl-metody-toc a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-kb-issled-article .table-of-contents a {
    color: #a86f1f !important;
}

/* KB community banner */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .kl-kb-community-banner {
    background: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a2e !important;
}

/* Rubric hub overrides from modern-dark → light */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__card"],
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__card"] {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a2e !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__card"]:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__card"]:hover {
    border-color: rgba(176, 125, 46, 0.4) !important;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__title"],
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__title"] {
    color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__desc"],
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__desc"],
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__lead"],
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__lead"] {
    color: rgba(26, 26, 46, 0.62) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-rubric-hub__section-title"],
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper [class*="kl-block-hub__section-title"] {
    color: #1a1a2e !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

/* Sections intro border */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__sections-intro {
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

/* Carousel strip border */
html.kl-theme-light .kl-kb-explorer .kl-kb-x__carousel-strip {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

/* Main section left accent bar — keep colourful */

/* Mobile */
@media (max-width: 768px) {
    html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):has(.kl-kb-explorer--research-solo) .site-header {
        background: rgba(255, 255, 255, 0.95) !important;
    }
}

/*
 * KB research-solo — светлая тема БЕЗ :has() на body (совместимость + перебой встроенного skin).
 * Цепочка .entry-content .kl-kb-explorer — хаб всегда в контенте записи.
 */
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo {
    --rs-ink: #1a1a2e !important;
    --rs-ink-soft: rgba(26, 26, 46, 0.82) !important;
    --rs-muted: rgba(26, 26, 46, 0.55) !important;
    --rs-paper: #faf8f5 !important;
    --rs-paper-dark: #f3f0ec !important;
    --rs-edge: rgba(0, 0, 0, 0.1) !important;
    --rs-accent: #a86f1f !important;
    --rs-accent-soft: #c9943e !important;
    --rs-teal: #0d9488 !important;
    color: var(--rs-ink) !important;
    background: var(--rs-paper) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    background:
        radial-gradient(ellipse 85% 65% at 12% 18%, rgba(201, 148, 62, 0.12), transparent 58%),
        radial-gradient(ellipse 70% 55% at 88% 8%, rgba(192, 132, 252, 0.08), transparent 52%),
        radial-gradient(ellipse 60% 45% at 50% 95%, rgba(13, 148, 136, 0.06), transparent 55%),
        linear-gradient(180deg, #f3f0ec 0%, #faf8f5 100%) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__h1 {
    color: #1a1a2e !important;
    -webkit-text-fill-color: #1a1a2e !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__h1 em {
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    background: linear-gradient(120deg, #b45309, #c9943e, #be185d) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__deck,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__lead {
    color: rgba(26, 26, 46, 0.88) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__sig {
    color: rgba(26, 26, 46, 0.55) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__batch {
    color: rgba(26, 26, 46, 0.72) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__ticks li {
    color: rgba(26, 26, 46, 0.62) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo p:not([class*="kl-rs-hero"]):not([class*="kl-rubric-hub"]),
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo li {
    color: rgba(26, 26, 46, 0.88) !important;
}

body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo .kl-rs-hero__h1,
body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo p.kl-rs-hero__deck,
body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo p.kl-rs-hero__lead {
    color: #1a1a2e !important;
}

body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo p.kl-rs-hero__deck,
body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) .entry-content .kl-kb-explorer--research-solo p.kl-rs-hero__lead {
    color: rgba(26, 26, 46, 0.88) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   KL BAZA SINGLE THEME LOCK — как baza.kinologlife.online, без светло/тёмного.
   Последним в файле: перебивает более ранние kl-modern-dark правила при конфликтах.
   ═══════════════════════════════════════════════════════════════════════════ */

html.kl-theme-light {
    --kl-baza-ink: #0f172a;
    --kl-baza-ink-soft: #475569;
    --kl-baza-muted: #64748b;
    --kl-baza-bg-top: #f5f8fc;
    --kl-baza-bg-bottom: #eaf0f8;
    --kl-baza-primary: #2563eb;
    --kl-baza-primary-soft: #dbeafe;
    --kl-baza-line: #e2e8f0;
    --kl-baza-cyan: #06b6d4;
}

html.kl-theme-light body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

html.kl-theme-light .kl-theme-toggle,
html.kl-theme-light .mobile-menu .js-dark-mode,
html.kl-theme-light .dark-mode-switch-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}

html.kl-theme-light body:not(.kl-landing-page) {
    background: linear-gradient(180deg, var(--kl-baza-bg-top) 0%, var(--kl-baza-bg-bottom) 100%) !important;
    background-color: var(--kl-baza-bg-bottom) !important;
    background-attachment: fixed !important;
    color: var(--kl-baza-ink) !important;
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper {
    background: linear-gradient(180deg, var(--kl-baza-bg-top) 0%, var(--kl-baza-bg-bottom) 100%) !important;
    background-color: var(--kl-baza-bg-bottom) !important;
    background-attachment: fixed !important;
    color: var(--kl-baza-ink) !important;
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .entry-content {
    color: var(--kl-baza-ink-soft) !important;
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .entry-content a {
    color: var(--kl-baza-primary) !important;
    border-bottom-color: rgba(37, 99, 235, 0.38) !important;
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .entry-content a:hover {
    color: #1e40af !important;
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .breadcrumbs-container {
    color: var(--kl-baza-muted);
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .breadcrumbs,
html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__text {
    color: var(--kl-baza-muted) !important;
}

html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .breadcrumbs a,
html.kl-theme-light body:not(.kl-landing-page).kl-community-paper .breadcrumbs .breadcrumbs-item__link {
    color: var(--kl-baza-ink-soft) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page),
body.kl-theme-light.kl-modern-dark:not(.kl-landing-page) {
    --kl-md-bg: #f8fafc;
    --kl-md-text: #0f172a;
    --kl-md-muted: rgba(71, 85, 105, 0.95);
    --kl-md-card: rgba(255, 255, 255, 0.82);
    --kl-md-card-deep: rgba(255, 255, 255, 0.94);
    --kl-md-border: rgba(226, 232, 240, 0.95);
    --kl-md-accent: #2563eb;
    --kl-md-accent-2: #1d4ed8;
    --kl-md-link: #2563eb;
    --kl-md-link-hover: #1e3a8a;
    --kl-md-font-display: "Inter", system-ui, sans-serif;
    --kl-md-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-header,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%) !important;
    background-color: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(14px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 8px 30px -12px rgba(15, 23, 42, 0.12),
        0 2px 6px -2px rgba(15, 23, 42, 0.06) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-branding .site-title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-branding .site-branding__title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-branding .site-title a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-branding .site-branding__title a {
    color: var(--kl-baza-ink) !important;
    -webkit-text-fill-color: var(--kl-baza-ink) !important;
    background: linear-gradient(120deg, #0f172a 0%, #2563eb 55%, #1e40af 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .main-navigation a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .main-navigation a {
    color: rgba(15, 23, 42, 0.72) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .main-navigation a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .main-navigation a:hover {
    color: var(--kl-baza-primary) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .mobile-menu,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .mobile-menu {
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid var(--kl-baza-line) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .mobile-menu a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .mobile-menu a {
    color: var(--kl-baza-ink) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer {
    background: linear-gradient(180deg, #e8eef6 0%, #dfe8f5 100%) !important;
    color: var(--kl-baza-ink-soft) !important;
    border-top: 1px solid var(--kl-baza-line) !important;
    box-shadow: none !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer a,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer a {
    color: rgba(15, 23, 42, 0.78) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer a:hover,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer a:hover {
    color: var(--kl-baza-primary) !important;
}

html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer h3,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer h4,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page).kl-community-paper .site-footer .widget-title,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer h3,
html.kl-theme-light body.kl-modern-dark:not(.kl-landing-page):is(.kl-news-surface, :has(.kl-news-page)) .site-footer h4 {
    color: var(--kl-baza-ink) !important;
}

/* Внутр. шапка в светлом режиме: ближе к baza-glass вместо плоского #faf8f5 */
@media (min-width: 992px) {
    html.kl-theme-light body:not(.kl-landing-page) .site-header-inner {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 100%) !important;
        backdrop-filter: blur(14px) saturate(150%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(150%) !important;
        border: 1px solid rgba(255, 255, 255, 0.95) !important;
        box-shadow:
            0 1px 0 rgba(255, 255, 255, 0.72) inset,
            0 8px 30px -12px rgba(15, 23, 42, 0.11) !important;
    }
}

html.kl-theme-light body:not(.kl-landing-page) .site-header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 100%) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95) !important;
    backdrop-filter: blur(12px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(12px) saturate(145%) !important;
}

html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item a:hover,
html.kl-theme-light body:not(.kl-landing-page) .main-navigation .menu-item .removed-link:hover {
    color: var(--kl-baza-primary) !important;
    background: rgba(37, 99, 235, 0.08) !important;
}
