/*
Theme Name: dds_532-school.ru
Author: Анна Сергеевна Кузнецова
Description: Тема для информационно-образовательного портала: учебные материалы, подготовка к экзаменам, внеурочная деятельность.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sch532
*/

/* -------------------------------------------------
   1. Переменные и база
------------------------------------------------- */
:root {
    --bg: #F4F2F8;
    --bg-alt: #EBE6F0;
    --glass: rgba(255, 255, 255, 0.8);
    --footer: #1E1A2B;
    --side-bg: #FCFAFF;
    --line: #D4CAE0;
    --ink: #1A1627;
    --accent: #6B47E6;
    --accent-2: #00C9C9;
    --muted: #7C6F8C;
    --dots: #DCD4E8;
    --font-head: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Roboto", "Public Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image: radial-gradient(var(--dots) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -80px;
    width: 460px;
    height: 460px;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath fill='%236B47E6' fill-opacity='0.04' d='M318 66c34 30 52 82 40 128-12 46-54 86-101 108-47 22-99 26-131 3-32-23-44-73-38-119 6-46 30-88 66-113 36-25 84-33 118-25 34 8 54 33 46 18z'/%3E%3Ccircle cx='120' cy='300' r='70' fill='%2300C9C9' fill-opacity='0.04'/%3E%3C/svg%3E");
}

.site-topline {
    height: 4px;
    background: var(--accent-2);
    position: relative;
    z-index: 5;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

a:hover,
a:focus {
    background-size: 100% 1px;
}

p {
    margin: 0 0 1.1em;
}

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

h1 {
    font-size: 4.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 1.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h4 {
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, var(--bg-alt), var(--bg));
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    font-size: 1.1rem;
}

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

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border-radius: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
}

th,
td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Ромбовидные маркеры списков */
.entry-body ul,
.widget ul,
.checklist,
.fs ul {
    list-style: none;
    padding-left: 0;
}

.entry-body ul > li,
.fs ul > li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
}

.entry-body ul > li::before,
.fs ul > li::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 0.95em;
}

.entry-body ol {
    padding-left: 1.4rem;
}

/* -------------------------------------------------
   2. Контейнеры и раскладка
------------------------------------------------- */
.shell {
    width: min(92%, 1280px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

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

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

.site-main {
    padding: 2.6rem 0 4rem;
    position: relative;
    z-index: 1;
}

/* -------------------------------------------------
   3. Шапка
------------------------------------------------- */
.site-header {
    background: var(--glass);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 4;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 640px;
}

.brand a {
    background-image: none;
}

.brand-logo,
.brand-mark {
    width: 54px;
    height: 54px;
    display: block;
    flex: 0 0 54px;
}

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

.brand-name {
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: var(--ink);
    display: block;
}

.brand-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
}

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

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

.main-nav a {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 2px;
}

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

/* -------------------------------------------------
   4. Заголовки секций и кнопки
------------------------------------------------- */
.sec-title {
    position: relative;
    padding-left: 1em;
    margin-bottom: 1.4rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 2px;
    height: 2.1em;
    background: var(--accent);
}

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background-color: var(--accent);
    background-image: none;
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
    color: #10202B;
}

.btn-ghost {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent-2);
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(107, 71, 230, 0.18);
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.card-thumb {
    display: block;
    width: 100%;
    background-image: none;
}

.card-thumb img,
.thumb-fallback svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.thumb-fallback {
    display: block;
    width: 100%;
}

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

.card-title {
    font-size: 1.12rem;
    letter-spacing: 0.03em;
    text-transform: none;
    margin: 0 0 0.5rem;
}

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

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

.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-head);
    margin-bottom: 0.7rem;
}

.card-excerpt {
    color: #3B3348;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

.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-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

/* -------------------------------------------------
   6. Главная: секции
------------------------------------------------- */
.front-sections {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.4rem 0 4rem;
    position: relative;
    z-index: 1;
}

.fs {
    padding: 80px 2.4rem;
    margin-bottom: 2.2rem;
    border-radius: 8px;
}

.fs-plain {
    padding-left: 0;
    padding-right: 0;
}

.fs-alt {
    background: var(--bg-alt);
}

.fs p {
    max-width: 72ch;
}

/* Блок 1 — hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 5.5rem 3rem;
    background: linear-gradient(105deg, rgba(244, 242, 248, 0.94) 0%, rgba(244, 242, 248, 0.78) 45%, rgba(235, 230, 240, 0.24) 100%);
    min-height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-inner h1,
.hero-lead {
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.hero-eyebrow {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.hero-lead {
    max-width: 46ch;
    font-size: 1.12rem;
    color: #2A2437;
    margin-bottom: 2rem;
}

/* Блок 2 — чек-лист */
.checklist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.checklist li:last-child {
    border-bottom: 0;
}

.check-diamond {
    color: var(--accent);
    font-size: 1rem;
    line-height: 1.6;
    flex: 0 0 auto;
}

.check-text {
    flex: 1;
    min-width: 0;
}

.check-text strong {
    display: block;
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.92rem;
    margin-bottom: 0.25rem;
}

.check-text span {
    color: #3B3348;
    font-size: 0.97rem;
}

.check-mark {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: block;
    color: var(--accent-2);
    margin-top: 0.35rem;
}

/* Блок 4 — статистика */
.fs-stats {
    background: linear-gradient(120deg, var(--bg-alt) 0%, #E4EEF3 55%, var(--bg) 100%);
    border: 1px solid var(--line);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

.stat {
    min-width: 0;
    text-align: left;
}

.stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 3.4rem;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--accent-2);
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Блок 5 — рубрикатор */
.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.topic {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.8rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
    background-image: none;
    transition: border-color 0.22s ease, background-color 0.22s ease;
}

.topic:hover {
    border-color: var(--accent);
    background-color: var(--bg-alt);
}

.topic svg {
    width: 34px;
    height: 34px;
    color: var(--accent);
    display: block;
}

.topic b {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}

.topic span {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Последние записи на главной */
.fs-latest .cards {
    margin-top: 2rem;
}

/* -------------------------------------------------
   7. Хлебные крошки, пагинация
------------------------------------------------- */
.crumbs {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    font-family: var(--font-head);
    letter-spacing: 0.05em;
}

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

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

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background-color: #FFFFFF;
    background-image: none;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

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

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

/* -------------------------------------------------
   8. Запись и страница
------------------------------------------------- */
.entry-head {
    margin-bottom: 1.8rem;
}

.entry-title {
    font-size: 2.4rem;
    letter-spacing: 0.01em;
    text-transform: none;
}

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

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

.entry-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.entry-body h3 {
    font-size: 1.18rem;
    margin-top: 1.6rem;
}

.entry-body img {
    display: block;
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--muted);
}

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

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

.page-header h1 {
    font-size: 2.6rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

.no-posts {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
}

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

.sidebar .widget {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.widget-title {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

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

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

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

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

.sidebar .widget li::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: 0.55rem;
    color: var(--accent);
    font-size: 0.85em;
}

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

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

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

.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.search-form label {
    flex: 1;
    min-width: 0;
    display: block;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.search-form button {
    flex: 0 0 auto;
}

/* -------------------------------------------------
   10. Подвал
------------------------------------------------- */
.site-footer {
    background: var(--footer);
    color: #D8D2E4;
    padding: 3.4rem 0 1.8rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

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

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

.site-footer .widget {
    color: #D8D2E4;
    font-size: 0.95rem;
}

.site-footer .widget-title {
    color: #FFFFFF;
    position: relative;
    padding-left: 0.9em;
}

.site-footer .widget-title::before {
    content: "◇";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-2);
    font-size: 0.8em;
}

.site-footer .widget p {
    color: #C4BDD3;
}

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

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

.site-footer .widget a {
    color: #E4DFEE;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
}

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

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(212, 202, 224, 0.2);
    font-size: 0.82rem;
    color: #9C93AE;
}

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

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

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

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

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.06em;
}

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

.comment-actions {
    font-size: 0.8rem;
    font-family: var(--font-head);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.comment-respond {
    padding: 1.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    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.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    border-radius: 6px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.comment-form .submit:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #10202B;
}

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: rgba(30, 26, 43, 0.97);
    border-top: 2px solid var(--accent-2);
    color: #E4DFEE;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1;
}

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

.cookie-banner .btn {
    flex: 0 0 auto;
}

/* -------------------------------------------------
   13. 404
------------------------------------------------- */
.err-block {
    padding: 3rem 2.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #FFFFFF;
}

.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.err-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.6rem;
}

.err-search {
    margin-top: 1.6rem;
    max-width: 460px;
}

/* -------------------------------------------------
   13.5. Служебные классы WordPress
------------------------------------------------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.alignleft {
    float: left;
    margin: 0.4rem 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.4rem 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.sticky .card-meta::after {
    content: " · закреплено";
    color: var(--accent);
}

.no-posts .search-form {
    margin-top: 1.2rem;
}

/* -------------------------------------------------
   14. Адаптив
------------------------------------------------- */
@media (max-width: 960px) {
    h1 {
        font-size: 2.8rem;
    }

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

    .layout-single,
    .front-sections {
        width: 100%;
    }

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

    .main-nav {
        width: 100%;
    }

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

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

    .main-nav li {
        border-bottom: 1px solid var(--line);
        padding: 0.6rem 0;
    }

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

    .hero-inner {
        padding: 3.6rem 2rem;
        min-height: 380px;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .entry-title {
        font-size: 1.7rem;
    }

    .site-main {
        padding: 1.8rem 0 2.6rem;
    }

    .fs {
        padding: 2.6rem 1.3rem;
        margin-bottom: 1.6rem;
    }

    .fs-plain {
        padding-left: 0;
        padding-right: 0;
    }

    .fs-hero {
        padding: 0;
    }

    .hero-inner {
        padding: 2.6rem 1.4rem;
        min-height: 320px;
        background: linear-gradient(160deg, rgba(244, 242, 248, 0.96) 0%, rgba(244, 242, 248, 0.86) 60%, rgba(235, 230, 240, 0.5) 100%);
    }

    .topics,
    .stats-row,
    .footer-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat b {
        font-size: 2.6rem;
    }

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

    .err-block {
        padding: 2rem 1.3rem;
    }

    .comment-inner,
    .comment-respond {
        padding: 1.1rem 1.1rem;
    }
}
