/**
 * Обновление внешнего вида: шрифт, хедер/футер, акценты (Kadence)
 */

:root {
    --kbt-accent: #f59e0b;
    --kbt-accent-soft: rgba(245, 158, 11, 0.22);
    --kbt-surface: #0b1120;
    --kbt-surface-2: #0f172a;
    --kbt-border: rgba(148, 163, 184, 0.22);
    --kbt-text: #e8edf3;
}

body {
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: 0.01em;
}

/* --- Header --- */
#masthead.site-header {
    border-bottom: 1px solid var(--kbt-border) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

#main-header.site-header-wrap {
    background: linear-gradient(
        180deg,
        rgba(11, 17, 32, 0.97) 0%,
        rgba(15, 23, 42, 0.94) 100%
    ) !important;
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}

.site-header-upper-inner-wrap,
.site-header-inner-wrap {
    border-bottom: none !important;
}

.site-header-row-container-inner {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.site-header .site-branding .site-title,
.site-header .site-branding .site-title a {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.site-header .site-branding .site-description {
    opacity: 0.85;
    font-size: 0.92em;
}

/* Навигация (Kadence: .main-navigation .primary-menu-container) */
.main-navigation .primary-menu-container > ul > li.menu-item > a,
.site-header .menu-toggle-open,
.site-header .mobile-navigation ul li a,
#mobile-drawer .drawer-inner .mobile-menu-container a {
    font-weight: 500 !important;
    letter-spacing: 0.03em;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.menu-item.current_page_item > a {
    color: var(--kbt-accent) !important;
}

.main-navigation .header-menu-container ul li a:focus-visible {
    outline: 2px solid var(--kbt-accent-soft);
    outline-offset: 2px;
}

/* Кнопки в шапке */
.site-header .button.header-button-wrap .button,
.site-header .header-html-wrap .button {
    border-radius: 8px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 14px var(--kbt-accent-soft);
}

/* --- Footer --- */
#colophon.site-footer {
    margin-top: 0 !important;
}

.site-footer-wrap {
    background: linear-gradient(
        180deg,
        rgba(8, 12, 22, 1) 0%,
        rgba(11, 17, 32, 0.98) 45%,
        #070b14 100%
    ) !important;
    border-top: 1px solid var(--kbt-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-footer .footer-navigation a,
.site-footer #footer-navigation a,
.site-footer .footer-menu a,
.site-footer .widget-area a {
    color: var(--kbt-text) !important;
    transition: color 0.2s ease;
}

.site-footer .footer-navigation a:hover,
.site-footer #footer-navigation a:hover,
.site-footer .footer-menu a:hover,
.site-footer .widget-area a:hover {
    color: var(--kbt-accent) !important;
}

.site-footer .footer-widget-area,
.site-footer .site-info {
    color: rgba(203, 213, 225, 0.92);
}

.site-footer .footer-navigation .menu li a {
    padding: 0.35em 0.5em;
}

/* Ряды футера */
.site-top-footer-wrap,
.site-middle-footer-wrap,
.site-bottom-footer-wrap {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Копирайт / нижняя полоса */
.site-footer .site-footer-bottom-section,
.site-footer .footer-bottom,
.site-bottom-footer-wrap .site-footer-row-container-inner {
    border-top: 1px solid rgba(148, 163, 184, 0.12) !important;
    padding-top: 1rem !important;
    padding-bottom: 1.25rem !important;
}

/* Контент: чуть плотнее типографика */
.entry-content,
.content-wrap {
    line-height: 1.65;
}

h1, h2, h3, .entry-title {
    letter-spacing: -0.02em;
}
