/*
Theme Name: dds_onlysq.ru
Author: Андрей Беляев
Description: Индивидуальная тема для информационного сайта о языковых моделях и интеграциях. Холодная лавандовая палитра, японский минимализм, техническая сетка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: llmnav
*/

:root {
    --bg: #F4F2FA;
    --bg-alt: #EBE6F2;
    --head-bg: #2A2533;
    --head-bg-2: #3D3450;
    --foot-bg: #1E1A26;
    --ink: #1E1A26;
    --accent: #7C5CBF;
    --accent-dark: #5E3F9E;
    --accent-soft: #B8A6D9;
    --muted: #8A7A9E;
    --line: #D3CCE0;
    --grid: #E6E0F0;
    --sans: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* --- скрытие через атрибут hidden --- */
.cookie-banner[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 0.5px, transparent 0.5px),
        linear-gradient(90deg, var(--grid) 0.5px, transparent 0.5px);
    background-size: 40px 40px;
}

body::after {
    content: "";
    position: fixed;
    right: -110px;
    bottom: -110px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-soft) 0%, rgba(184, 166, 217, 0) 70%);
    opacity: 0.15;
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

.site-header, .site-main, .site-footer, .cookie-banner { position: relative; z-index: 1; }

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

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

.entry-content a,
.widget a,
.crumbs a {
    position: relative;
}

.entry-content a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.entry-content a:hover::after,
.crumbs a:hover::after { transform: scaleX(1); }

/* --- контейнеры --- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.narrow { width: 85%; margin-left: auto; margin-right: auto; }

@media (max-width: 960px) {
    .narrow { width: 100%; }
}

/* --- типографика --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.22;
    color: var(--ink);
    margin: 1.8rem 0 0.9rem;
}

h1 { font-size: 3.2rem; letter-spacing: 0.02em; margin-top: 0; }
h2 { font-size: 1.9rem; letter-spacing: 0.015em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

h2, h3 { position: relative; padding-left: 1.35em; }

h2::before, h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

p { margin: 0 0 1.1em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(120deg, rgba(124, 92, 191, 0.07), rgba(184, 166, 217, 0.07));
    border-left: 3px solid var(--accent);
    color: var(--ink);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

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

ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4em; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 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-weight: 700; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

/* --- кнопки --- */
.btn {
    display: inline-block;
    padding: 0.82rem 1.8rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.02em;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-2px); }

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

.btn-ghost:hover { background: rgba(124, 92, 191, 0.1); color: var(--accent-dark); transform: translateY(-2px); }

/* --- шапка --- */
.site-header {
    background: var(--head-bg);
    color: #EFEBF6;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(184, 166, 217, 0.18);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

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

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

.brand-title {
    display: block;
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff;
    line-height: 1.3;
}

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

.nav-toggle {
    display: none;
    padding: 0.55rem 0.95rem;
    border: 2px solid var(--accent-soft);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    color: #E6E0F0;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover { color: #fff; border-bottom-color: var(--accent); }

@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; }
    .main-nav ul { flex-direction: column; gap: 0.7rem; padding-top: 0.9rem; }
}

/* --- основной блок --- */
.site-main { padding: 2.6rem 0 4rem; }
.front-main { padding: 0 0 4rem; }

.layout-single { display: block; }

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

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.layout-with-sidebar .content-area { min-width: 0; }

@media (max-width: 960px) {
    .layout-with-sidebar { display: block; }
    .layout-single .content-area { width: 100%; }
    .layout-with-sidebar .sidebar { margin-top: 2.6rem; }
}

/* --- хлебные крошки --- */
.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

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

/* --- заголовки секций --- */
.section-title {
    position: relative;
    padding-left: 2.2rem;
    margin: 0 0 1.7rem;
    font-size: 1.95rem;
    letter-spacing: 0.02em;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
}

.section-lead {
    margin: -0.6rem 0 2rem 2.2rem;
    max-width: 68ch;
    color: var(--muted);
}

/* --- разделитель-пунктир --- */
.dots-divider {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0 0 2.4rem;
}

.dots-divider span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-soft);
    display: block;
}

/* --- секции главной --- */
.front-section { padding: 80px 0; }
.front-section.is-alt { background: var(--bg-alt); }

/* 1. Hero */
.fs-hero {
    padding: 92px 0;
    background: linear-gradient(135deg, var(--head-bg) 0%, var(--head-bg-2) 100%);
    color: #F2EEF9;
}

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

.hero-copy { min-width: 0; }

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    border: 1px solid rgba(184, 166, 217, 0.4);
    border-radius: 4px;
}

.hero-title { color: #fff; margin-bottom: 1.1rem; }

.hero-text {
    color: #D9D1E8;
    max-width: 52ch;
    margin-bottom: 1.9rem;
}

.hero-art { min-width: 0; display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 460px; height: auto; }

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .fs-hero { padding: 64px 0; }
}

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

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.05rem 0;
    border-bottom: 1px solid rgba(124, 92, 191, 0.16);
    line-height: 1.85;
    min-width: 0;
}

.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex: 0 0 auto; margin-top: 0.35rem; }
.checklist strong { display: block; letter-spacing: 0.01em; }
.checklist span { min-width: 0; }
.checklist em { font-style: normal; color: var(--muted); }

/* 3. Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat-cell {
    padding: 0.4rem 1.4rem;
    border-left: 1px solid var(--line);
    min-width: 0;
    text-align: center;
}

.stat-cell:first-child { border-left: 0; }

.stat-num {
    display: block;
    font-size: 2.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--head-bg);
    line-height: 1.15;
}

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

@media (max-width: 700px) {
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat-cell:nth-child(odd) { border-left: 0; }
}

/* 4. Карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 2rem 1.9rem;
    background: #FBFAFE;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(42, 37, 51, 0.08);
    color: var(--ink);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-tile:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(42, 37, 51, 0.16);
}

.topic-icon { display: block; margin-bottom: 1rem; color: var(--accent-soft); }
.topic-tile:hover .topic-icon { color: #fff; }

.topic-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.4rem;
}

.topic-note { display: block; font-size: 0.9rem; color: var(--muted); }
.topic-tile:hover .topic-note { color: rgba(255, 255, 255, 0.85); }

@media (max-width: 700px) {
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
}

/* --- CTA-плашка --- */
.cta-plate {
    padding: 2.5rem 2.2rem;
    border-radius: 10px;
    background: linear-gradient(120deg, rgba(124, 92, 191, 0.09), rgba(184, 166, 217, 0.09));
    border: 1px solid rgba(124, 92, 191, 0.2);
    text-align: center;
}

.cta-plate p { max-width: 62ch; margin-left: auto; margin-right: auto; color: var(--muted); }

/* --- карточки записей --- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.7rem;
}

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

@media (max-width: 960px) {
    .cards-grid, .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
    .cards-grid, .cards-list { grid-template-columns: minmax(0, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FBFAFE;
    border-radius: 8px;
    border-top: 3px solid transparent;
    box-shadow: 0 4px 12px rgba(42, 37, 51, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 16px rgba(42, 37, 51, 0.16);
    border-top-color: var(--accent);
}

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

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(124, 92, 191, 0.42), rgba(184, 166, 217, 0.12));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.card:hover .card-thumb::after { opacity: 1; }

.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(45deg, rgba(124, 92, 191, 0.08) 0 10px, transparent 10px 20px),
        var(--bg-alt);
}

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

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

.card-title::before { display: none; }
.card-title a { color: var(--ink); transition: color 0.2s ease; }
.card-title a:hover { color: var(--accent); }

.card-excerpt { color: #3B3348; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot { margin-top: auto; padding-top: 1.1rem; }

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.post-cat {
    padding: 0.24rem 0.75rem;
    background: rgba(124, 92, 191, 0.12);
    color: var(--accent-dark);
    font-size: 0.78rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.post-cat:hover { background: rgba(124, 92, 191, 0.22); }

.card-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

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

/* --- одиночная запись / страница --- */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { margin-bottom: 0.9rem; font-size: 2.5rem; }

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.entry-content { min-width: 0; }
.entry-content img { border-radius: 8px; }

.entry-tags { margin-top: 2rem; font-size: 0.88rem; color: var(--muted); }
.entry-tags a { margin-right: 0.5rem; }

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.entry-nav span { display: block; color: var(--muted); font-size: 0.8rem; }

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

/* --- сайдбар --- */
.sidebar { min-width: 0; }

.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.4rem 1.5rem;
    border-radius: 8px;
    background: rgba(251, 250, 254, 0.72);
    backdrop-filter: blur(6px);
    border-left: 2px solid var(--accent-soft);
    box-shadow: 0 4px 12px rgba(42, 37, 51, 0.06);
    color: var(--ink);
}

.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(124, 92, 191, 0.14);
    line-height: 1.5;
}

.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); font-size: 0.95rem; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* --- подвал --- */
.site-footer {
    background: var(--foot-bg);
    color: #CFC7DE;
    padding: 3.4rem 0 1.8rem;
    margin-top: 3rem;
}

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

@media (max-width: 860px) {
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
}

.site-footer .widget { min-width: 0; color: #CFC7DE; }

.site-footer .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    margin: 0 0 1rem;
}

.site-footer .widget-title::before { background: var(--accent-soft); }

.site-footer .widget p { color: #CFC7DE; font-size: 0.93rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }

.site-footer .widget li {
    padding: 0.38rem 0;
    line-height: 1.5;
}

.site-footer .widget a { color: #E3DCEF; font-size: 0.93rem; }
.site-footer .widget a:hover { color: var(--accent-soft); }
.site-footer .widget .post-date { display: block; font-size: 0.78rem; color: #9C90AF; }

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(184, 166, 217, 0.2);
    font-size: 0.85rem;
    color: #9C90AF;
}

/* --- пагинация (type => plain) --- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: #FBFAFE;
    color: var(--ink);
    font-size: 0.92rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 700;
}

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

/* --- форма поиска --- */
.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-form label { flex: 1 1 180px; min-width: 0; }

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

.search-form input[type="search"]:focus { outline: none; border-color: var(--accent); }

.search-form button {
    padding: 0.72rem 1.4rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-form button:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* --- комментарии --- */
.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 ol.children { list-style: none; padding-left: 1.6rem; }

.comment-item {
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
    background: #FBFAFE;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(42, 37, 51, 0.06);
}

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

.comment-author { font-weight: 700; }
.comment-date { font-size: 0.82rem; color: var(--muted); }
.comment-hold { font-size: 0.86rem; color: var(--muted); }
.comment-actions { font-size: 0.88rem; }

.comment-respond {
    padding: 1.7rem 1.8rem;
    background: var(--bg-alt);
    border-radius: 8px;
}

.comment-respond .comment-reply-title { margin-top: 0; }

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

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

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

.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }

.comment-form .submit {
    padding: 0.78rem 1.7rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* --- 404 --- */
.err-code {
    font-size: 5.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-soft);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.err-box {
    padding: 2.4rem 2.2rem;
    background: #FBFAFE;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(42, 37, 51, 0.08);
}

.err-box .search-form { margin: 1.4rem 0; }

/* --- cookie-баннер --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: var(--head-bg);
    color: #E6E0F0;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; min-width: 0; max-width: 78ch; }
.cookie-banner a { color: var(--accent-soft); }

.cookie-banner button {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-banner button:hover { background: var(--accent-dark); transform: translateY(-2px); }

/* --- адаптив типографики --- */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }
    .section-title { font-size: 1.65rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .entry-title { font-size: 1.7rem; }
    .front-section { padding: 56px 0; }
    .fs-hero { padding: 52px 0; }
    .stat-num { font-size: 2.2rem; }
    .cta-plate { padding: 1.8rem 1.4rem; }
    .err-box { padding: 1.7rem 1.4rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .topic-tile { padding: 1.6rem 1.4rem; }
    .sidebar .widget { padding: 1.2rem 1.2rem; }
    blockquote { padding: 1.2rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
}
