/*
Theme Name: dds_webzhukova.ru
Theme URI: https://webzhukova.ru/
Author: Анна Жукова
Description: Тема для исследовательского блога о маркетинговых данных и экспериментах. Лавандово-стальной минимализм с элементами журнальной вёрстки.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: wzhlab
*/

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

:root {
    --paper: #F4F5F9;
    --paper-alt: #EBEDF5;
    --head-bg: #2B2D42;
    --foot-bg: #1E1F2E;
    --panel: #FFFFFF;
    --ink: #1A1A2E;
    --accent: #4A8DB7;
    --accent-dark: #3A7099;
    --accent-2: #B8A9C9;
    --muted: #8A8D9E;
    --rule: #E1E3EC;
    --dot: #D7DAE3;
    --shell: min(92%, 1180px);
    --font-head: "Manrope", "Inter", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
    --font-body: "PT Sans", "Open Sans", "Segoe UI", system-ui, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 14% 22%, var(--dot) 1px, transparent 1.4px),
        radial-gradient(circle at 68% 9%, var(--dot) 1px, transparent 1.4px),
        radial-gradient(circle at 41% 63%, var(--dot) 1px, transparent 1.4px),
        radial-gradient(circle at 88% 78%, var(--dot) 1px, transparent 1.4px),
        radial-gradient(circle at 7% 88%, var(--dot) 1px, transparent 1.4px);
    background-size: 340px 300px;
    background-attachment: fixed;
}

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

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

.entry-body a,
.widget a,
.trail a {
    position: relative;
}

.entry-body a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 1px;
    background: var(--accent-2);
    transition: right 0.25s ease;
}

.entry-body a:hover::after {
    right: 0;
}

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: 800;
}

h1 {
    font-size: 2.6rem;
}

h2 {
    font-size: 1.85rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 1.15em;
}

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

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--paper-alt);
    border-left: 4px solid var(--accent);
    font-size: 1.06rem;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    background: var(--panel);
}

table th,
table td {
    border: 1px solid var(--rule);
    padding: 0.65rem 0.85rem;
    text-align: left;
}

table th {
    background: var(--paper-alt);
    font-family: var(--font-head);
    font-weight: 700;
}

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    background: var(--paper-alt);
    font-size: 0.94em;
}

pre {
    padding: 1rem;
    overflow-x: auto;
    border-left: 4px solid var(--accent-2);
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

/* ============================================================
   2. Кнопки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.72rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-solid {
    background: var(--head-bg);
    border-color: var(--head-bg);
    color: #9FC7E0;
}

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

.btn-light {
    border-color: var(--accent-2);
    color: #EDE9F3;
}

.btn-light:hover,
.btn-light:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

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

.site-head {
    background: var(--head-bg);
    color: #EDEFF6;
    padding: 1.5rem 0;
}

.head-row {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

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

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

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

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

.brand-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.3;
    letter-spacing: 0.02em;
    color: #FFFFFF;
}

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

.brand-tagline {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #A7ABBE;
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: #EDEFF6;
    background: transparent;
    border: 2px solid #4A4D68;
    border-radius: 4px;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.nav-toggle-bars {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-2);
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent-2);
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

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

.main-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: 0.03em;
    color: #DDE1EC;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

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

/* ============================================================
   4. Каркас страницы
   ============================================================ */

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

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

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

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

.trail {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    line-height: 1.7;
}

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

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

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

.page-title {
    font-size: 2.2rem;
    margin-bottom: 1.6rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.7rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(43, 45, 66, 0.15);
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--paper-alt);
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46%;
    background: linear-gradient(to top, rgba(43, 45, 66, 0.35), rgba(43, 45, 66, 0));
    pointer-events: none;
}

.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #2B2D42 0%, #4A8DB7 100%);
    position: relative;
}

.card-thumb-empty::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 32px);
}

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

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

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

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

.card-excerpt {
    font-size: 0.94rem;
    color: #3D3F52;
    margin-bottom: 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-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.card-more:hover {
    border-bottom-color: var(--accent-2);
}

.post-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
    font-family: var(--font-head);
    letter-spacing: 0.03em;
}

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

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

.meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--accent-2);
    vertical-align: middle;
    margin: 0 0.35rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.2rem 0 0.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--panel);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

/* ============================================================
   7. Главная страница
   ============================================================ */

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

.front-section + .front-section {
    border-top: 1px solid var(--rule);
}

.front-section.alt {
    background: var(--paper-alt);
}

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.section-head {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

.section-head h2 {
    margin: 0 0 0.4rem;
    font-size: 2rem;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch;
}

.section-kicker {
    display: block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}

/* Блок 1 — Hero */

.hero {
    position: relative;
    background: var(--head-bg);
    color: #E8EAF3;
    padding: 4.6rem 2.4rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    pointer-events: none;
}

.hero-blob {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 420px;
    height: 420px;
    opacity: 0.05;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 4.2rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.hero-lead {
    color: #B9BDD0;
    font-size: 1.1rem;
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.9rem;
}

.hero-mark {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(184, 169, 201, 0.4);
    border-radius: 4px;
    padding: 0.3rem 0.9rem;
    margin-bottom: 1.4rem;
}

/* Блок 2 — Таймлайн */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.2rem;
    list-style: none;
    border-left: 2px solid var(--accent-2);
}

.timeline-item {
    position: relative;
    padding-bottom: 2.1rem;
    min-width: 0;
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: calc(-2.2rem - 7px);
    top: 0.55rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    transform: rotate(45deg);
}

.timeline-card {
    background: var(--panel);
    border-radius: 8px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
}

.timeline-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.timeline-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.timeline-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #3D3F52;
}

/* Блок 3 — Статистика */

.stats-plate {
    background: linear-gradient(135deg, #2B2D42 0%, #1E1F2E 100%);
    color: #E8EAF3;
    padding: 3rem 2.4rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
}

.stats-plate .stats-head {
    margin-bottom: 2.2rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

.stats-plate .stats-head h2 {
    color: #FFFFFF;
    margin: 0 0 0.4rem;
    font-size: 2rem;
}

.stats-plate .stats-head p {
    margin: 0;
    color: #A7ABBE;
    max-width: 62ch;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 1.8rem;
}

.stat-cell {
    min-width: 0;
    border-top: 2px solid rgba(184, 169, 201, 0.35);
    padding-top: 1rem;
}

.stat-number {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.9rem;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.92rem;
    color: var(--accent-2);
}

/* Блок 4 — Рубрикатор */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    background: var(--panel);
    border-left: 4px solid transparent;
    border-radius: 8px;
    padding: 1.5rem 1.5rem 1.6rem;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
    transition: border-color 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.topic-tile:hover {
    border-left-color: var(--accent);
    background: var(--paper-alt);
    transform: translateY(-4px);
}

.topic-tile svg {
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: 0.9rem;
}

.topic-tile h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: var(--ink);
}

.topic-tile p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.front-latest-actions {
    margin-top: 2rem;
}

/* ============================================================
   8. Запись и страница
   ============================================================ */

.entry {
    background: var(--panel);
    border-radius: 8px;
    padding: 2.2rem 2.3rem 2.6rem;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
}

.entry-header h1 {
    font-size: 2.35rem;
    margin-bottom: 0.6rem;
}

.entry-thumb {
    margin: 1.4rem 0 1.8rem;
    border-radius: 8px;
    overflow: hidden;
}

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

.entry-body h2,
.entry-body h3 {
    position: relative;
    padding-left: 18px;
    margin-top: 2rem;
}

.entry-body h2::before,
.entry-body h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

.entry-body img {
    border-radius: 8px;
}

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

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

.post-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.22rem 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    font-size: 0.82rem;
}

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

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

.side-column {
    min-width: 0;
}

.side-column .widget {
    background: var(--panel);
    color: var(--ink);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
}

.side-column .widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-left: 0.85rem;
    border-left: 4px solid var(--accent);
    color: var(--ink);
}

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

.side-column .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.94rem;
}

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

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

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

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

.side-column .widget p {
    color: #3D3F52;
    font-size: 0.94rem;
}

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

.site-foot {
    background: var(--foot-bg);
    color: #C4C8D8;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(184, 169, 201, 0.18);
}

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

.site-foot .widget {
    margin-bottom: 1.4rem;
    color: #C4C8D8;
}

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

.site-foot .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    margin: 0 0 0.9rem;
    padding-left: 0.8rem;
    border-left: 4px solid var(--accent-2);
}

.site-foot .widget p {
    color: #B4B8CA;
    font-size: 0.93rem;
    margin-bottom: 0.8rem;
}

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

.site-foot .widget li {
    padding: 0.35rem 0;
    font-size: 0.93rem;
}

.site-foot .widget a {
    color: #C4C8D8;
}

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

.site-foot .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #8A8D9E;
}

.foot-note {
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: #8A8D9E;
}

/* ============================================================
   11. Формы, комментарии
   ============================================================ */

.search-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--panel);
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--ink);
}

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

.comments-block {
    margin-top: 2.2rem;
    background: var(--panel);
    border-radius: 8px;
    padding: 1.9rem 2.1rem 2.2rem;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
}

.comments-title {
    font-size: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
}

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

.comment-list ol.children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--rule);
}

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

.comment-inner {
    background: var(--paper);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
}

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

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

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

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

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--rule);
    border-radius: 4px;
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-respond label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.comment-respond .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    padding: 0.72rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease;
}

.comment-respond .submit:hover {
    background: var(--accent);
    color: #FFFFFF;
}

/* ============================================================
   12. 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;
    background: var(--head-bg);
    color: #DDE1EC;
    padding: 1.1rem 1.6rem;
    border-top: 2px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    max-width: 80ch;
    min-width: 0;
}

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

/* ============================================================
   13. 404 и служебное
   ============================================================ */

.notice-plate {
    background: var(--panel);
    border-radius: 8px;
    padding: 2.2rem 2.3rem;
    box-shadow: 0 8px 20px rgba(43, 45, 66, 0.08);
}

.notice-plate .search-form {
    margin: 1.4rem 0;
    max-width: 460px;
}

.error-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 4.4rem;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 0.6rem;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

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

    .hero h1 {
        font-size: 2.9rem;
    }

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(184, 169, 201, 0.2);
        margin-top: 0.8rem;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(184, 169, 201, 0.2);
    }

    .main-nav a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: none;
    }
}

@media (min-width: 961px) {
    .main-nav {
        display: block !important;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.55rem;
    }

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

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

    .hero {
        padding: 2.8rem 1.4rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .stats-plate {
        padding: 2rem 1.4rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
    }

    .entry,
    .comments-block,
    .notice-plate {
        padding: 1.5rem 1.3rem 1.8rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        left: calc(-1.5rem - 7px);
    }

    .timeline-card {
        padding: 1.1rem 1.2rem;
    }

    .topic-tile {
        padding: 1.2rem 1.2rem 1.3rem;
    }

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

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