/*
Theme Name: dds_geafricainnovationcentre.com
Theme URI: https://geafricainnovationcentre.com/
Author: Ирина Белова
Description: Тема для информационного сайта об инновациях и корпоративных практиках. Дизайн-концепция Lavender Tech.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: innocore
*/

/* ===== Переменные ===== */
:root {
    --bg: #F5F0FF;
    --bg-alt: #EAE2F7;
    --head-bg: #2D1B4E;
    --foot-bg: #1F1137;
    --side-bg: #F0EAF8;
    --text: #1E1428;
    --accent: #9B6BFF;
    --accent-2: #C9A7FF;
    --muted: #8B7A9E;
    --card-bg: #FFFFFF;
    --radius: 10px;
    --font-head: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Roboto", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
    --shadow-hi: 0 12px 26px rgba(139, 122, 158, 0.16);
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(155, 107, 255, 0.10) 1px, transparent 1.6px),
        linear-gradient(to right, rgba(155, 107, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(155, 107, 255, 0.035) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px, 28px 28px;
}

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

a { color: var(--accent); text-decoration: none; }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: 2.4rem; letter-spacing: 0.01em; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.12rem; }

ul, ol { padding-left: 1.3rem; }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main { display: block; }

.empty-note {
    padding: 1.6rem 1.8rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent-2);
    color: var(--muted);
}

/* ===== Кнопки ===== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    padding: 0.85rem 1.7rem;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.btn-solid:hover,
.btn-solid:focus {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px var(--accent-2), 0 10px 26px rgba(155, 107, 255, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-outline:hover,
.btn-outline:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(155, 107, 255, 0.35);
}

.btn-glow {
    box-shadow: 0 0 0 1px rgba(201, 167, 255, 0.5), 0 8px 30px rgba(155, 107, 255, 0.35);
}

/* ===== Анимированные подчёркивания ссылок ===== */
.entry-content a,
.crumbs a,
.card-more,
.foot-col a,
.sidebar a,
.post-nav a {
    position: relative;
}

.entry-content a::after,
.crumbs a::after,
.card-more::after,
.foot-col a::after,
.sidebar a::after,
.post-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.entry-content a:hover::after,
.crumbs a:hover::after,
.card-more:hover::after,
.foot-col a:hover::after,
.sidebar a:hover::after,
.post-nav a:hover::after {
    transform: scaleX(1);
}

/* ===== Заголовки секций и контента ===== */
.section-title,
.page-title,
.single-title {
    font-family: var(--font-head);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-title::before,
.entry-content h2::before,
.entry-content h3::before,
.widget-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px 2px rgba(155, 107, 255, 0.55);
    margin-right: 0.6rem;
    vertical-align: middle;
}

.section-title::after {
    content: "";
    display: block;
    width: 160px;
    height: 6px;
    margin-top: 0.85rem;
    background-image:
        radial-gradient(circle 3px at 3px 3px, var(--accent) 3px, transparent 3.5px),
        radial-gradient(circle 3px at 3px 3px, var(--accent) 3px, transparent 3.5px),
        repeating-linear-gradient(90deg, var(--accent) 0 9px, transparent 9px 17px);
    background-size: 6px 6px, 6px 6px, calc(100% - 22px) 2px;
    background-position: left center, right center, center center;
    background-repeat: no-repeat;
    opacity: 0.85;
}

.section-lead {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 2.2rem;
}

/* ===== Шапка ===== */
.site-top {
    background: var(--head-bg);
    color: #FFFFFF;
    border-bottom: 1px solid rgba(201, 167, 255, 0.18);
}

.site-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    padding: 1.2rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    color: #FFFFFF;
    flex: 1 1 auto;
}

.brand-mark { flex: 0 0 auto; display: block; }

.brand-svg { width: 44px; height: 44px; display: block; }

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #FFFFFF;
}

.brand-desc {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--accent-2);
    margin-top: 0.25rem;
    max-width: 60ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: #FFFFFF;
    padding: 0.55rem 0.85rem;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-2);
    margin: 3px 0;
}

.nav-toggle-label { margin-left: 0.4rem; }

.site-nav { flex: 0 0 auto; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li { position: relative; }

.nav-list a {
    display: inline-block;
    color: #F1EAFB;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent-2);
    border-bottom-color: var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.9rem;
}

/* ===== Раскладки ===== */
.page-wrap { padding: 2.4rem 0 3.4rem; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-head { margin-bottom: 2rem; }

.page-title { font-size: 2.2rem; margin-bottom: 0.5rem; }

.page-lead { color: var(--muted); max-width: 68ch; }

/* ===== Хлебные крошки ===== */
.crumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    word-break: break-word;
}

.crumbs a { color: var(--accent); }

.crumbs-sep { color: var(--accent-2); margin: 0 0.25rem; }

/* ===== Карточки записей ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.7rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card-bg);
    border: none;
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(139, 122, 158, 0.20);
    border-left-color: var(--accent-2);
}

.card-thumb {
    position: relative;
    overflow: hidden;
}

.card-thumb a { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(1) sepia(0.4) hue-rotate(218deg) saturate(2.4) brightness(0.98);
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(158deg, rgba(155, 107, 255, 0.22), rgba(45, 27, 78, 0.34));
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.35rem 1.4rem 1.5rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.6rem;
}

.card-title a { color: var(--text); }

.card-title a:hover { color: var(--accent); }

.card-excerpt { color: #46394F; font-size: 0.97rem; }

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.93rem;
    color: var(--accent);
    padding-top: 0.7rem;
}

/* ===== Главная: hero ===== */
.front-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #2D1B4E 0%, #34205C 55%, #241543 100%);
    color: #FFFFFF;
    padding: 5rem 0 5.4rem;
}

.hero-net {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    top: -140px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(201, 167, 255, 0.55), rgba(201, 167, 255, 0) 70%);
    filter: blur(30px);
    pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: 0.005em;
    color: #FFFFFF;
    margin-bottom: 1rem;
    max-width: 20ch;
}

.hero-sub {
    color: var(--accent-2);
    font-size: 1.08rem;
    max-width: 62ch;
    margin-bottom: 2rem;
}

/* ===== Главная: секции ===== */
.front-section {
    position: relative;
    padding: 4.4rem 0;
    overflow: hidden;
}

.front-section .shell { width: min(85%, 1180px); }

.front-section-alt {
    background: radial-gradient(ellipse at 50% -10%, #F2ECFC 0%, var(--bg-alt) 72%);
}

.front-section-alt::before,
.front-section-alt::after {
    content: "";
    position: absolute;
    left: -6%;
    width: 112%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(155, 107, 255, 0.28) 0 22px, transparent 22px 40px);
    transform: rotate(-3deg);
    pointer-events: none;
}

.front-section-alt::before { top: 12px; }

.front-section-alt::after { bottom: 12px; transform: rotate(3deg); }

/* Блок 2: цитата */
.quote-plate {
    margin: 0;
    padding: 2.6rem 2.4rem;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.35));
    border-radius: var(--radius);
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
    position: relative;
    padding-left: 3.1rem;
}

.quote-plate::before {
    content: "";
    position: absolute;
    left: 1.6rem;
    top: 2.6rem;
    bottom: 2.6rem;
    width: 3px;
    border-radius: 3px;
    background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 18px);
    box-shadow: 0 0 10px rgba(155, 107, 255, 0.5);
}

.quote-text {
    margin: 0 0 1.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.85rem;
    line-height: 1.32;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.quote-author { font-size: 0.95rem; color: var(--text); }

.quote-name { display: block; font-weight: 700; }

.quote-role { display: block; color: var(--muted); font-size: 0.9rem; }

/* Блок «последние записи» */
.fs-latest-more { margin-top: 2.2rem; }

/* Блок 3: таймлайн */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tl-item {
    position: relative;
    min-width: 0;
    padding: 0 0 2.1rem 3rem;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 26px;
    bottom: 0;
    border-left: 2px dashed rgba(139, 122, 158, 0.55);
}

.tl-item:last-child { padding-bottom: 0; }

.tl-item:last-child::before { display: none; }

.tl-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--accent);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.tl-item:hover .tl-dot,
.tl-item.is-active .tl-dot {
    background: var(--accent);
    box-shadow: 0 0 0 7px rgba(155, 107, 255, 0.16);
}

.tl-body {
    min-width: 0;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.tl-item:hover .tl-body,
.tl-item.is-active .tl-body {
    background: #FFFFFF;
    transform: translateX(4px);
}

.tl-step {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.tl-title { font-size: 1.25rem; margin-bottom: 0.4rem; }

.tl-text { margin: 0; color: #46394F; font-size: 0.97rem; }

/* Блок 4: карта тем */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: 1.7rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    position: relative;
    padding: 2.2rem 1.7rem 1.9rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    border: none;
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
    color: var(--text);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.topic-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.topic-icon {
    display: block;
    width: 40px;
    height: 40px;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: color 0.25s ease;
}

.topic-icon svg { width: 100%; height: 100%; display: block; }

.topic-name { font-size: 1.2rem; margin-bottom: 0.5rem; }

.topic-text { margin: 0; font-size: 0.96rem; color: #46394F; transition: color 0.25s ease; }

.topic-tile:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 34px rgba(155, 107, 255, 0.32);
}

.topic-tile:hover .topic-name,
.topic-tile:hover .topic-text,
.topic-tile:hover .topic-icon { color: #FFFFFF; }

/* ===== Контент записи и страницы ===== */
.single-post {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.2rem 2.2rem 2.4rem;
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
}

.single-title { font-size: 2.15rem; margin-bottom: 0.6rem; }

.single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.6rem;
}

.single-thumb { margin: 0 0 1.8rem; }

.single-thumb img { display: block; width: 100%; border-radius: var(--radius); }

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

.entry-content h2 { margin-top: 2.1rem; }

.entry-content h3 { margin-top: 1.7rem; }

.entry-content img { display: block; border-radius: var(--radius); margin: 1.4rem 0; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding-left: 1.4rem; }

.entry-content li { margin-bottom: 0.45em; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 3px solid var(--accent);
    background: var(--side-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: -2px 0 12px rgba(155, 107, 255, 0.25);
    color: #3A2E48;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid #D5C7E8;
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid #D5C7E8;
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.entry-content code,
.entry-content pre {
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.92rem;
}

.entry-content code { padding: 0.12em 0.4em; }

.entry-content pre { padding: 1rem 1.2rem; overflow-x: auto; }

.page-links { margin-top: 1.4rem; font-family: var(--font-head); }

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.8rem;
}

.tag-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    border: 2px solid var(--accent-2);
    color: var(--accent);
    font-size: 0.85rem;
    font-family: var(--font-head);
    font-weight: 600;
}

.tag-chip:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    font-family: var(--font-head);
    font-weight: 600;
}

.post-nav-prev, .post-nav-next { min-width: 0; max-width: 48%; }

/* ===== Сайдбар и виджеты ===== */
.sidebar {
    min-width: 0;
    background: radial-gradient(ellipse at 50% 0%, #F6F1FC 0%, var(--side-bg) 75%);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
    color: var(--text);
}

.sidebar .widget { margin-bottom: 1.9rem; }

.sidebar .widget:last-child { margin-bottom: 0; }

.widget-title {
    font-family: var(--font-head);
    font-size: 1.06rem;
    margin-bottom: 0.9rem;
}

.sidebar .widget-title { color: var(--text); }

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

.sidebar li {
    padding: 0.45rem 0 0.45rem 1rem;
    position: relative;
    border-bottom: 1px dashed rgba(139, 122, 158, 0.35);
}

.sidebar li:last-child { border-bottom: none; }

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.sidebar a { color: var(--text); }

.sidebar a:hover { color: var(--accent); }

.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }

/* ===== Подвал ===== */
.site-bottom {
    background: var(--foot-bg);
    color: #E4DBF2;
    padding: 3.2rem 0 2rem;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
}

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

.foot-col .widget-title { color: #FFFFFF; font-size: 1.02rem; }

.foot-col .widget-title::before { background: var(--accent-2); box-shadow: 0 0 8px 2px rgba(201, 167, 255, 0.4); }

.foot-col,
.foot-col p,
.foot-col li { color: #D6CBE8; font-size: 0.95rem; }

.foot-col a { color: #E9E0F7; }

.foot-col a:hover { color: var(--accent-2); }

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

.foot-col li {
    padding: 0.35rem 0 0.35rem 0.95rem;
    position: relative;
}

.foot-col li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
}

.foot-col .post-date { color: #A798BF; font-size: 0.8rem; display: block; }

.foot-copy {
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(201, 167, 255, 0.18);
    font-size: 0.88rem;
    color: #A798BF;
}

/* ===== Пагинация ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.55rem 0.85rem;
    border-radius: 6px;
    border: 2px solid var(--accent-2);
    background: #FFFFFF;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 107, 255, 0.32);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ===== Формы поиска и комментариев ===== */
.searchform { margin: 1.4rem 0; }

.searchform-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--muted);
}

.searchform-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.searchform-input,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 0.95rem;
    border: 2px solid #D5C7E8;
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.97rem;
}

.searchform-input:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 107, 255, 0.18);
}

.comments-block {
    margin-top: 2.6rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.9rem 2rem 2.1rem;
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
}

.comments-title { font-size: 1.4rem; }

.comments-list, .comments-list .children { list-style: none; margin: 0; padding: 0; }

.comments-list .children { padding-left: 1.4rem; margin-top: 1rem; }

.comment-item { margin-bottom: 1.3rem; }

.comment-inner {
    padding: 1.1rem 1.3rem;
    background: var(--side-bg);
    border-radius: var(--radius);
    border-left: 3px solid var(--accent-2);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author { font-family: var(--font-head); font-weight: 700; }

.comment-date { font-size: 0.82rem; color: var(--muted); }

.comment-hold { font-size: 0.85rem; color: var(--muted); }

.comment-actions { font-size: 0.9rem; font-family: var(--font-head); }

.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.35rem; font-family: var(--font-head); }

.comment-form p { margin-bottom: 1rem; }

.comment-form textarea { width: 100%; }

.comment-form .submit { width: auto; }

.comments-closed { color: var(--muted); }

/* ===== 404 ===== */
.notfound {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
    box-shadow: 0 6px 12px rgba(139, 122, 158, 0.08);
    text-align: left;
}

.notfound-code {
    display: block;
    font-family: var(--font-head);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 0.6rem;
}

.notfound-actions { margin-top: 1.4rem; }

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    padding: 1.1rem 1.6rem;
    background: rgba(31, 17, 55, 0.97);
    color: #E9E0F7;
    border-top: 2px solid var(--accent);
    box-shadow: 0 -8px 26px rgba(31, 17, 55, 0.32);
}

.cookie-text { margin: 0; font-size: 0.92rem; max-width: 78ch; min-width: 0; }

.cookie-accept { flex: 0 0 auto; }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    body { font-size: 16px; }

    .hero-title { font-size: 2.6rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .layout-single { width: 100%; }

    .front-section .shell { width: min(92%, 1180px); }

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

    .site-nav {
        flex: 1 1 100%;
        display: none;
    }

    .site-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 0.8rem;
    }

    .nav-list li { width: 100%; }

    .nav-list a {
        display: block;
        width: 100%;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(201, 167, 255, 0.18);
    }
}

@media (max-width: 600px) {
    .front-hero { padding: 3.4rem 0 3.6rem; }

    .hero-title { font-size: 2.05rem; }

    .hero-blob { width: 260px; height: 260px; top: -90px; right: -80px; }

    .front-section { padding: 3rem 0; }

    .section-title { font-size: 1.55rem; }

    .page-title, .single-title { font-size: 1.7rem; }

    .quote-plate { padding: 1.9rem 1.4rem 1.9rem 2.4rem; }

    .quote-plate::before { left: 1rem; top: 1.9rem; bottom: 1.9rem; }

    .quote-text { font-size: 1.3rem; }

    .single-post,
    .comments-block,
    .notfound { padding: 1.5rem 1.3rem 1.7rem; }

    .tl-item { padding-left: 2.4rem; }

    .tl-body { padding: 1rem 1.1rem; }

    .topic-tile { padding: 1.8rem 1.3rem 1.6rem; }

    .sidebar { padding: 1.3rem 1.2rem; }

    .cookie-banner { padding: 1rem 1.1rem; }

    .brand-desc { display: none; }

    .post-nav-prev, .post-nav-next { max-width: 100%; flex: 1 1 100%; }
}
