/*
Theme Name: dds_olympafrica.com
Author: Кирилл Андреев
Description: Тема для информационного сайта об олимпийском движении и инициативах.
Version: 1.1
Text Domain: olympnav
*/

/* ============================================================
   1. Переменные и база
   ============================================================ */

:root {
    --bg: #F7F5FC;
    --bg-alt: #EEEAFA;
    --head-bg: #2A253A;
    --foot-bg: #1D1A28;
    --side-bg: #FFFFFF;
    --ink: #1E1A2B;
    --accent: #9F7BED;
    --accent-2: #4FD1C5;
    --accent-soft: #B39DDB;
    --muted: #8A84A0;
    --line: #E3DEF0;
    --card-hover: #F0ECFA;
    --font-head: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "DM Sans", "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(159, 123, 237, 0.03) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(-45deg, rgba(159, 123, 237, 0.03) 0 1px, transparent 1px 15px);
    background-size: 30px 30px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(159, 123, 237, 0.05) 0%, rgba(159, 123, 237, 0.05) 55%, rgba(159, 123, 237, 0) 72%);
    filter: blur(30px);
    pointer-events: none;
    z-index: 0;
}

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

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

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

h1 {
    font-size: 4.2rem;
    letter-spacing: 0.02em;
}

h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.18rem; }

p {
    margin: 0 0 1.1em;
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.site-main {
    padding: 3rem 0 4.5rem;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
}

/* ============================================================
   2. Кнопки и ссылки
   ============================================================ */

.btn {
    display: inline-block;
    padding: 0.85em 2.1em;
    border-radius: 40px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 3px 8px rgba(30, 26, 43, 0.22), 0 2px 6px rgba(159, 123, 237, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-soft);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: inset 0 3px 8px rgba(30, 26, 43, 0.18), 0 12px 24px rgba(159, 123, 237, 0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: inset 0 2px 6px rgba(159, 123, 237, 0.12);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: transparent;
    color: var(--accent-soft);
    border-color: var(--accent-soft);
    box-shadow: inset 0 2px 6px rgba(159, 123, 237, 0.1), 0 12px 22px rgba(159, 123, 237, 0.25);
}

.entry-content a,
.crumbs a,
.widget-area a,
.comment-text a {
    position: relative;
    transition: color 0.2s ease;
}

.entry-content a:hover,
.comment-text a:hover {
    color: var(--accent-soft);
}

.entry-content a::before,
.comment-text a::before {
    content: "•";
    position: absolute;
    left: -0.75em;
    opacity: 0;
    color: var(--accent);
    transition: opacity 0.2s ease;
}

.entry-content a:hover::before,
.comment-text a:hover::before {
    opacity: 1;
}

/* ============================================================
   3. Шапка
   ============================================================ */

.site-header {
    background: var(--head-bg);
    color: #FFFFFF;
    position: relative;
    z-index: 2;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: #FFFFFF;
    max-width: 620px;
}

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
}

.brand-logo {
    width: auto;
    max-height: 52px;
}

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

.brand-title {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    line-height: 1.35;
}

.brand-tagline {
    font-size: 0.78rem;
    color: #B7B0CB;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 40px;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.85rem;
    padding: 0.55em 1.3em;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #E6E1F2;
    font-family: var(--font-head);
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ============================================================
   4. Хлебные крошки
   ============================================================ */

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.4rem 0 0;
}

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

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

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

/* ============================================================
   5. Заголовки секций
   ============================================================ */

.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin: 0 0 1.6rem;
    text-align: left;
    font-size: 2.1rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    bottom: 0.16em;
    width: 3px;
    background: var(--accent);
}

.sec-title::after,
.tech-dot::after {
    content: ".";
    color: var(--accent);
    font-weight: 800;
    margin-left: 0.25em;
    font-size: 1.15em;
    line-height: 0;
}

.sec-lead {
    color: var(--muted);
    max-width: 46em;
    margin-bottom: 2.2rem;
}

/* ============================================================
   6. Карточки записей
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.cards-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    background: var(--card-hover);
    border-left-color: var(--accent);
}

.card-thumb-wrap {
    display: block;
    overflow: hidden;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

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

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

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

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

.card-excerpt {
    color: #494259;
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
}

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

.card-foot {
    margin-top: auto;
}

.post-meta {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 0.7rem;
}

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

.meta-sep {
    color: var(--line);
}

.card-more {
    font-family: var(--font-head);
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--accent);
}

.card-more:hover {
    color: var(--accent-soft);
}

/* ============================================================
   7. Главная — секции
   ============================================================ */

.fs {
    padding: 4.5rem 0;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(159, 123, 237, 0.08) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(-45deg, rgba(159, 123, 237, 0.08) 0 1px, transparent 1px 15px);
    background-size: 30px 30px;
}

.fs-shift {
    padding-left: 4%;
}

/* 7.1 Текст + иллюстрация */

.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.duo-text,
.duo-media,
.stat-cell,
.footer-col {
    min-width: 0;
}

.duo-text p {
    color: #494259;
}

.duo-points {
    list-style: none;
    margin: 1.4rem 0 1.8rem;
    padding: 0;
}

.duo-points li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.75rem;
    font-size: 0.97rem;
}

.duo-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    transform: rotate(45deg);
}

.duo-media img {
    width: 100%;
    height: auto;
    display: block;
    clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}

/* 7.2 Таймлайн */

.tline {
    position: relative;
    padding: 1rem 0 0;
}

.tline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
    opacity: 0.55;
}

.tline-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 2.4rem 0;
    min-width: 0;
}

.tline-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.4rem 3rem;
}

.tline-dot {
    position: absolute;
    top: 0.35rem;
    right: -17px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tline-item:nth-child(even) .tline-dot {
    right: auto;
    left: -17px;
}

.tline-dot svg {
    width: 15px;
    height: 15px;
}

.tline-year {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--accent-2);
    margin-bottom: 0.35rem;
}

.tline-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

.tline-item p {
    color: #494259;
    font-size: 0.95rem;
    margin: 0;
}

/* 7.3 Статистика */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    text-align: center;
    padding: 2.2rem 2rem;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 0.4rem;
}

/* 7.4 Карта тем */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--head-bg);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 1.9rem 1.6rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.topic-tile svg {
    width: 30px;
    height: 30px;
    margin-bottom: 1rem;
}

.topic-tile-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.topic-tile-desc {
    display: block;
    font-size: 0.87rem;
    color: #C0B9D4;
    line-height: 1.55;
}

.topic-tile:hover {
    background: var(--accent);
    color: var(--ink);
    transform: translateY(-4px);
}

.topic-tile:hover .topic-tile-desc {
    color: #2C2340;
}

.topic-tile:hover svg [stroke] {
    stroke: var(--ink);
}

/* 7.5 Последние записи на главной */

.fs-latest .fs-actions {
    margin-top: 2.4rem;
}

/* ============================================================
   8. Контент записи и страницы
   ============================================================ */

.entry-header {
    margin-bottom: 1.8rem;
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.entry-thumb {
    margin-bottom: 1.8rem;
}

.entry-thumb img {
    width: 100%;
    border-radius: 12px;
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.8em;
}

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

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

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.5rem 1.8rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 10px;
    color: #40394f;
}

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

.entry-content img {
    border-radius: 10px;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.95rem;
}

.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

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

.archive-lead {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* ============================================================
   9. Сайдбар и виджеты
   ============================================================ */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(42, 37, 58, 0.05);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    position: relative;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--accent);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #3B3450;
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
}

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

.sidebar .widget a {
    color: #2E2842;
}

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

.sidebar .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

/* ============================================================
   10. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.9rem;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.9rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: inset 0 3px 8px rgba(30, 26, 43, 0.2);
}

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

/* ============================================================
   11. Комментарии
   ============================================================ */

.comments-area {
    margin-top: 3rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 2.4rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.6rem;
    padding: 0;
}

.comment-inner {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-left: 4px solid var(--line);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}

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

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

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

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

.comment-actions {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

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

.comment-form label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form .submit {
    display: inline-block;
    padding: 0.85em 2.1em;
    border-radius: 40px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: inset 0 3px 8px rgba(30, 26, 43, 0.22);
}

.comment-form .submit:hover {
    background: var(--accent-soft);
}

/* ============================================================
   12. Форма поиска, 404
   ============================================================ */

.search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 480px;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.search-form button {
    padding: 0.75em 1.6em;
    border-radius: 40px;
    border: none;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
    box-shadow: inset 0 3px 8px rgba(30, 26, 43, 0.22);
}

.search-form button:hover {
    background: var(--accent-soft);
}

.sidebar .search-form {
    max-width: none;
}

.error-box {
    padding: 2.6rem 2.4rem;
    background: var(--bg-alt);
    border-radius: 12px;
    background-image:
        repeating-linear-gradient(45deg, rgba(159, 123, 237, 0.08) 0 1px, transparent 1px 15px),
        repeating-linear-gradient(-45deg, rgba(159, 123, 237, 0.08) 0 1px, transparent 1px 15px);
    background-size: 30px 30px;
}

.error-code {
    font-family: var(--font-head);
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

.error-actions {
    margin-top: 1.6rem;
}

/* ============================================================
   13. Подвал
   ============================================================ */

.site-footer {
    background: var(--foot-bg);
    color: #CFC9DE;
    padding: 3.4rem 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.site-footer .widget {
    min-width: 0;
    color: #CFC9DE;
    font-size: 0.94rem;
}

.site-footer .widget p,
.site-footer .widget li {
    color: #CFC9DE;
}

.site-footer .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    padding-left: 0.8rem;
    position: relative;
}

.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--accent);
}

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

.site-footer .widget li {
    padding: 0.42rem 0;
}

.site-footer .widget a {
    color: #D9D3E8;
}

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

.site-footer .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: #9C95B2;
}

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.85rem;
    color: #9C95B2;
}

/* ============================================================
   14. Cookie-баннер
   ============================================================ */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.8rem;
    background: var(--head-bg);
    color: #E6E1F2;
    font-size: 0.88rem;
    box-shadow: 0 -8px 26px rgba(29, 26, 40, 0.28);
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

.cookie-banner a {
    color: var(--accent-soft);
}

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.6em 1.8em;
    border-radius: 40px;
    border: none;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    box-shadow: inset 0 3px 8px rgba(30, 26, 43, 0.22);
}

.cookie-accept:hover {
    background: var(--accent-soft);
}

/* ============================================================
   15. Адаптив
   ============================================================ */

@media (max-width: 960px) {
    h1 { font-size: 2.9rem; }
    .entry-title { font-size: 2.1rem; }
    .sec-title { font-size: 1.8rem; }

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

    .layout-single {
        width: 100%;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .duo {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .fs-shift {
        padding-left: 0;
    }

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

    .main-nav {
        flex: 1 0 100%;
    }

    .main-nav[hidden] {
        display: none !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 1rem;
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.6rem; }
    .entry-title { font-size: 1.75rem; }
    .sec-title { font-size: 1.55rem; }

    .fs {
        padding: 3rem 0;
    }

    .site-main {
        padding: 2rem 0 3rem;
    }

    .cards-grid,
    .topic-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .stats-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
        padding: 1.8rem 1.4rem;
    }

    .stat-num {
        font-size: 3rem;
    }

    .tline::before {
        left: 14px;
    }

    .tline-item,
    .tline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 3rem;
    }

    .tline-dot,
    .tline-item:nth-child(even) .tline-dot {
        left: -2px;
        right: auto;
        width: 30px;
        height: 30px;
    }

    .footer-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .error-box {
        padding: 1.8rem 1.4rem;
    }

    .entry-content blockquote {
        padding: 1.2rem 1.2rem;
    }

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

    .card-body {
        padding: 1.2rem 1.2rem 1.4rem;
    }

    .duo-media img,
    .entry-thumb img {
        clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
    }
}
