/*
Theme Name: dds_kolibrisms.ru
Author: Мария Лебедева
Description: Образовательная онлайн-платформа с курсами, интенсивами и программами повышения квалификации по бизнес-администрированию, международному праву и сопровождению предпринимателей при переезде.
Version: 1.1
Text Domain: kolibri
*/

/* ============== Базовые переменные ============== */
:root {
    --bg-dark: #121212;
    --bg-navy: #0A192F;
    --bg-paper: #F8F9FA;
    --accent: #00E5A0;
    --accent-soft: rgba(0, 229, 160, 0.9);
    --accent-glow: rgba(0, 229, 160, 0.35);
    --honey: #F5B042;
    --turquoise: #4DD0E1;
    --heading: #1A1E24;
    --text: #2C3E50;
    --muted: #7F8C8D;
    --border: #E1E4E8;
    --shadow: 0 6px 24px rgba(10, 25, 47, 0.08);
    --shadow-hover: 0 14px 36px rgba(10, 25, 47, 0.14);
    --radius: 12px;
}

/* ============== Сброс и базовая типографика ============== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 12% -10%, rgba(0, 229, 160, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 92% 14%, rgba(245, 176, 66, 0.05) 0%, transparent 38%),
        var(--bg-paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Wix Madefor Display', 'Inter', sans-serif;
    color: var(--heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 1.4rem + 2.2vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.05rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--bg-navy);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}

a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

img { max-width: 100%; height: auto; }

ul, ol { padding-left: 1.25em; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--accent);
    background: rgba(0, 229, 160, 0.06);
    color: var(--heading);
    font-style: italic;
    border-radius: 0 var(--radius) var(--radius) 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--border);
}
th, td {
    padding: 0.7em 0.9em;
    border: 1px solid var(--border);
    text-align: left;
}
th {
    background: var(--bg-navy);
    color: #fff;
    font-weight: 600;
}
tr:nth-child(even) td { background: rgba(10, 25, 47, 0.03); }

code, pre {
    font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    background: rgba(10, 25, 47, 0.06);
    border-radius: 6px;
}
code { padding: 0.12em 0.4em; font-size: 0.92em; }
pre {
    padding: 1em 1.2em;
    overflow: auto;
    border: 1px solid var(--border);
}
pre code { background: none; padding: 0; }

/* ============== Контейнер ============== */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ============== Шапка ============== */
.site-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-navy) 100%);
    color: #fff;
    padding: 1.1em 0;
    border-bottom: 1px solid rgba(0, 229, 160, 0.2);
    position: relative;
}

.site-header::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--honey) 65%, transparent);
    opacity: 0.55;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.8em;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9em;
    min-width: 0;
    flex: 1 1 auto;
}

.brand a, .brand a:hover { border-bottom: none; }

.brand-mark {
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--turquoise) 60%, var(--bg-navy) 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 6px 16px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-mark svg { width: 32px; height: 32px; }

.brand-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    color: #fff;
    font-family: 'Wix Madefor Display', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    display: block;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 380px;
}

.brand-tagline {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-top: 2px;
    max-width: 420px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============== Главная навигация ============== */
.primary-nav { flex: 0 1 auto; }

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.4em;
    flex-wrap: wrap;
}

.primary-nav a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.55em 1em;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: none;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: var(--accent);
    background: rgba(0, 229, 160, 0.08);
    border-color: rgba(0, 229, 160, 0.25);
}

/* ============== Burger / Swarm menu ============== */
.nav-toggle[hidden] { display: none !important; }

.nav-toggle {
    background: rgba(0, 229, 160, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 229, 160, 0.4);
    border-radius: 10px;
    padding: 0.55em 0.9em;
    font-size: 0.92rem;
    cursor: pointer;
    font-family: inherit;
    align-items: center;
    gap: 0.5em;
    display: none;
}

.nav-toggle:hover { background: rgba(0, 229, 160, 0.22); }

.nav-toggle-icon {
    display: inline-block;
    width: 18px;
    height: 12px;
    position: relative;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after,
.nav-toggle-icon span {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon span { top: 5px; }
.nav-toggle-icon::after { bottom: 0; }

/* ============== Хлебные крошки ============== */
.breadcrumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin: 1.4em 0 1em;
    line-height: 1.5;
}
.breadcrumbs a {
    color: var(--bg-navy);
    border-bottom: none;
}
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep {
    color: var(--accent);
    margin: 0 0.3em;
    font-weight: 600;
}

/* ============== Основная разметка ============== */
.site-main { padding: 2em 0 3em; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 4%;
    align-items: start;
}

.layout-no-sidebar {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area { min-width: 0; }

/* ============== Hero-секция ============== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bg-navy) 0%, #112341 50%, var(--bg-dark) 100%);
    color: #fff;
    padding: 4em 0 4.5em;
    margin-bottom: 3em;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%; right: -8%;
    width: 480px; height: 480px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%; left: -10%;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(245, 176, 66, 0.18) 0%, transparent 60%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker {
    display: inline-block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.1em;
    padding: 0.35em 0.9em;
    border: 1px solid rgba(0, 229, 160, 0.4);
    border-radius: 999px;
    background: rgba(0, 229, 160, 0.08);
}

.hero h1 {
    color: #fff;
    margin-bottom: 0.5em;
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
}

.hero-lede {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
    max-width: 620px;
    margin-bottom: 1.6em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

/* ============== Кнопки ============== */
.btn {
    display: inline-block;
    padding: 0.85em 1.6em;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
    border-bottom: none;
}

.btn-primary {
    background: var(--accent-soft);
    color: var(--bg-dark);
    box-shadow: 0 8px 22px var(--accent-glow);
    backdrop-filter: blur(6px);
}
.btn-primary:hover {
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-navy);
    border: 1px solid var(--accent);
    outline: 2px dashed var(--honey);
    outline-offset: 3px;
}
.btn-secondary:hover {
    background: var(--bg-navy);
    color: #fff;
}

.btn-on-dark { color: #fff; }
.btn-on-dark.btn-secondary { color: var(--accent); }
.btn-on-dark.btn-secondary:hover { color: #fff; background: var(--accent); border-color: var(--accent); outline-color: var(--honey); }

/* ============== Тематические блоки (главная) ============== */
.theme-block {
    margin: 0 0 3em;
    padding: 2.6em 2.4em;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.theme-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: linear-gradient(180deg, var(--accent) 0%, var(--turquoise) 100%);
}

.theme-block--alt::before {
    background: linear-gradient(180deg, var(--honey) 0%, var(--accent) 100%);
}

.theme-block-eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.6em;
    display: block;
}

.theme-block h2 { margin-bottom: 0.6em; }

.theme-block-lede {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1.6em;
    max-width: 760px;
}

/* Колонки/сетки внутри блоков */
.feat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4em;
    margin-top: 1.6em;
}

.feat-card {
    padding: 1.4em 1.3em;
    background: rgba(0, 229, 160, 0.05);
    border-radius: 14px;
    border-left: 3px solid var(--accent);
    min-width: 0;
}

.feat-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4em;
    color: var(--bg-navy);
}

.feat-card .count {
    display: block;
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-navy);
    margin-bottom: 0.15em;
    line-height: 1;
}

.feat-card .count span { color: var(--accent); }

.feat-card p {
    font-size: 0.92rem;
    color: var(--muted);
    margin: 0;
}

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5em;
    margin-top: 1.6em;
    counter-reset: step;
}

.step {
    padding: 1.5em 1.4em;
    background: rgba(10, 25, 47, 0.03);
    border-radius: 14px;
    counter-increment: step;
    position: relative;
    min-width: 0;
}

.step::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: -14px; left: 1.2em;
    background: var(--honey);
    color: var(--bg-dark);
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(245, 176, 66, 0.4);
}

.step h3 {
    font-size: 1.05rem;
    margin: 0.5em 0 0.4em;
    color: var(--heading);
}

.step p { margin: 0; font-size: 0.95rem; }

/* ============== Карточки записей ============== */
.cards-section { margin: 0 0 3em; }
.cards-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.4em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6em;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    min-width: 0;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 229, 160, 0.35);
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-navy) 0%, var(--accent) 100%);
}

.card-thumb-wrap a {
    display: block;
    border-bottom: none;
}

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.card:hover .card-thumb-wrap img { transform: scale(1.04); }

.card-body {
    flex: 1;
    padding: 1.5em 1.4em 1.6em;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.5em;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6em;
    align-items: center;
}

.card-meta a {
    color: var(--accent);
    border-bottom: none;
}

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.6em;
    line-height: 1.35;
}

.card-title a {
    color: var(--heading);
    border-bottom: none;
}
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 1em;
    flex: 1;
}

.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid transparent;
    align-self: flex-start;
}
.card-more:hover { border-bottom-color: var(--accent); }
.card-more::after {
    content: ' →';
    transition: transform .2s ease;
    display: inline-block;
}
.card-more:hover::after { transform: translateX(3px); }

/* Левая акцентная полоса по тематике */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
    z-index: 2;
}
.card:nth-child(3n+2)::before { background: var(--honey); }
.card:nth-child(3n+3)::before { background: var(--turquoise); }

/* ============== Одиночная запись / страница ============== */
.entry-header {
    margin-bottom: 1.4em;
    padding-bottom: 1.2em;
    border-bottom: 1px solid var(--border);
}

.entry-title {
    margin-bottom: 0.4em;
}

.entry-meta {
    color: var(--muted);
    font-size: 0.9rem;
}

.entry-meta a { color: var(--accent); border-bottom: none; }

.entry-thumbnail {
    margin-bottom: 1.6em;
    border-radius: 16px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.02rem;
}

.entry-content h2 { margin-top: 1.5em; }
.entry-content h3 { margin-top: 1.3em; }

.entry-content img {
    border-radius: 12px;
    margin: 1em 0;
}

.entry-tags {
    margin: 2em 0 1em;
    font-size: 0.9rem;
    color: var(--muted);
}
.entry-tags a {
    display: inline-block;
    padding: 0.25em 0.75em;
    background: rgba(0, 229, 160, 0.08);
    border-radius: 999px;
    margin: 0 0.2em 0.4em 0;
    color: var(--bg-navy);
    border-bottom: none;
    font-size: 0.85rem;
}
.entry-tags a:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* ============== Пагинация ============== */
.pagination {
    margin: 2.5em 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    justify-content: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85em;
    border-radius: 10px;
    background: #fff;
    color: var(--bg-navy);
    border: 1px solid var(--border);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all .18s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .page-numbers.current {
    background: var(--bg-navy);
    color: var(--accent);
    border-color: var(--bg-navy);
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ============== Сайдбар и виджеты ============== */
.sidebar {
    min-width: 0;
}

.widget {
    background: #fff;
    border-radius: 16px;
    padding: 1.5em 1.4em;
    margin-bottom: 1.6em;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
}

.widget-title {
    font-size: 1.05rem;
    margin: 0 0 0.9em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid var(--accent);
    color: var(--heading);
    font-family: 'Wix Madefor Display', sans-serif;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    padding: 0.45em 0;
    border-bottom: 1px solid rgba(10, 25, 47, 0.06);
    color: var(--text);
}
.widget li:last-child { border-bottom: none; }

.widget a {
    color: var(--bg-navy);
    border-bottom: none;
    font-weight: 500;
}
.widget a:hover { color: var(--accent); }

.widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15em;
}

/* Виджеты в футере — на тёмном фоне */
.site-footer .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer .widget-title {
    color: #fff;
    border-bottom-color: var(--accent);
    font-size: 1rem;
}

.site-footer .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
}

.site-footer .widget a {
    color: rgba(255, 255, 255, 0.85);
}
.site-footer .widget a:hover {
    color: var(--accent);
}

.site-footer .widget .post-date {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .widget p { color: rgba(255, 255, 255, 0.7); }

/* ============== Поиск ============== */
.search-form {
    display: flex;
    gap: 0.5em;
    margin: 1em 0;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7em 1em;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-form button {
    padding: 0.7em 1.2em;
    background: var(--bg-navy);
    color: var(--accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: background .2s ease;
}

.search-form button:hover { background: var(--accent); color: var(--bg-navy); }

.widget .search-form { margin: 0; }

/* ============== Комментарии ============== */
.comments-area {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--border);
}

.comments-title { margin-bottom: 1em; }

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}

.comment-list li {
    padding: 1.2em 1.4em;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 1em;
}

.comment-author {
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.2em;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.7em;
}

.comment-body p:last-child { margin-bottom: 0; }

.comment-form-row {
    margin-bottom: 1em;
}
.comment-form-row label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.3em;
    color: var(--heading);
    font-weight: 500;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.comment-form .submit {
    padding: 0.8em 1.6em;
    background: var(--accent-soft);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.95rem;
    box-shadow: 0 6px 18px var(--accent-glow);
}
.comment-form .submit:hover { transform: translateY(-1px); }

/* ============== 404 ============== */
.error-404 {
    text-align: center;
    padding: 3em 1em;
}
.error-404-num {
    font-family: 'Wix Madefor Display', sans-serif;
    font-size: clamp(5rem, 4rem + 6vw, 9rem);
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--honey) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* ============== Подвал ============== */
.site-footer {
    background: linear-gradient(180deg, var(--bg-navy) 0%, var(--bg-dark) 100%);
    color: rgba(255, 255, 255, 0.78);
    padding: 3em 0 1.4em;
    margin-top: 3em;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--honey) 100%);
    opacity: 0.6;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4em;
    margin-bottom: 2em;
}

.footer-col { min-width: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1.2em;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.88rem;
}

/* ============== Cookie-баннер ============== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 1em;
    left: 1em;
    right: 1em;
    max-width: 760px;
    margin-inline: auto;
    background: linear-gradient(135deg, var(--bg-navy) 0%, var(--bg-dark) 100%);
    color: #fff;
    padding: 1.1em 1.4em;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 229, 160, 0.3);
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: wrap;
    z-index: 100;
    font-size: 0.92rem;
}

.cookie-banner p {
    margin: 0;
    flex: 1 1 260px;
    min-width: 0;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner button {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 10px;
    padding: 0.65em 1.4em;
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.92rem;
    transition: transform .15s ease, box-shadow .2s ease;
}

.cookie-banner button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============== Sticky-блок: «инструменты, не теория» ============== */
.tools-callout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2em;
    margin-top: 1.6em;
}
.tools-callout > div {
    padding: 1.4em 1.2em;
    background: linear-gradient(160deg, rgba(77, 208, 225, 0.12) 0%, rgba(0, 229, 160, 0.08) 100%);
    border-radius: 14px;
    border: 1px solid rgba(77, 208, 225, 0.35);
    text-align: center;
    min-width: 0;
}
.tools-callout strong {
    font-family: 'Wix Madefor Display', sans-serif;
    display: block;
    font-size: 1.8rem;
    color: var(--bg-navy);
    margin-bottom: 0.2em;
}
.tools-callout span { color: var(--muted); font-size: 0.9rem; }

/* ============== Адаптив ============== */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2em;
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body { font-size: 15.5px; }

    .header-row { gap: 1em; }

    .nav-toggle { display: inline-flex; }

    .primary-nav {
        flex: 1 0 100%;
        order: 3;
    }

    .primary-nav ul {
        display: none;
        flex-direction: column;
        gap: 0.3em;
        margin-top: 1em;
    }

    .primary-nav.is-open ul {
        display: flex;
    }

    .primary-nav a {
        display: block;
        background: rgba(255, 255, 255, 0.04);
    }

    .brand-name { max-width: 230px; }
    .brand-tagline { max-width: 250px; font-size: 0.78rem; }

    .layout-no-sidebar { width: 100%; }

    .hero { padding: 2.8em 0 3em; border-radius: 0; }

    .theme-block { padding: 1.6em 1.3em; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.8em;
    }

    .cookie-banner {
        bottom: 0;
        left: 0; right: 0;
        border-radius: 14px 14px 0 0;
        padding: 1em 1.2em;
    }
}

/* WP align/caption — стандартные классы */
.alignleft { float: left; margin: 0.4em 1.2em 0.6em 0; }
.alignright { float: right; margin: 0.4em 0 0.6em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.4em; }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}

/* Sticky elements */
.sticky-post {
    border-color: var(--honey);
}
.sticky-post::after {
    content: 'Закреплено';
    position: absolute;
    top: 0.8em; right: 0.8em;
    background: var(--honey);
    color: var(--bg-dark);
    padding: 0.2em 0.6em;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    z-index: 3;
}
