/*
Theme Name: dds_wunderbirdworld.com
Author: Раиса Корнилова
Description: Тема для информационного сайта об одежде и экипировке для наблюдения за птицами. Журнальный брутализм, холодная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: wbird
*/

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
    --paper: #F4F6F9;
    --paper-alt: #E8EDF2;
    --ink: #1A212B;
    --ink-deep: #0F151E;
    --sheet: #FFFFFF;
    --signal: #D32F2F;
    --signal-dark: #B71C1C;
    --steel: #B0BEC5;
    --dim: #78909C;
    --grot: 'Roboto Condensed', 'Arial Narrow', 'PT Sans Narrow', 'Helvetica Neue', Arial, sans-serif;
    --serif: Georgia, 'Times New Roman', 'Droid Serif', serif;
}

/* ============ СБРОС И БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(26, 33, 43, 0.045) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, rgba(26, 33, 43, 0.045) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(0deg, rgba(26, 33, 43, 0.05) 0 1px, transparent 1px 100px),
        repeating-linear-gradient(90deg, rgba(26, 33, 43, 0.05) 0 1px, transparent 1px 100px);
}

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

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

/* ============ КОНТЕЙНЕРЫ ============ */
.shell { width: min(92%, 1240px); margin-inline: auto; }
.shell-narrow { width: min(85%, 1140px); margin-inline: auto; }

.site-main { display: block; padding-bottom: 70px; }
.page-body { padding-top: 34px; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { width: 92.5%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

/* ============ ТИПОГРАФИКА ============ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--grot);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.06;
    color: var(--ink);
    text-transform: none;
    margin: 1.6em 0 0.35em;
}
h1 { font-size: 4.2rem; margin-top: 0; }
h2 { font-size: 2.4rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.35rem; }
h5, h6 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 1.15em; }
ul, ol { margin: 0 0 1.3em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    border-left: 6px solid var(--signal);
    background: var(--paper-alt);
    font-size: 1.12rem;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: 'Courier New', monospace; background: var(--paper-alt); }
pre { padding: 1rem 1.2rem; overflow-x: auto; border-left: 4px solid var(--steel); }

a { color: var(--signal); }

.entry-content a,
.widget-shell a,
.card-excerpt a {
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(var(--signal), var(--signal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
    transition: background-size 0.25s ease;
}
.entry-content a:hover,
.widget-shell a:hover,
.card-excerpt a:hover { background-size: 100% 3px; }

/* Таблицы */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; border: 2px solid var(--ink); }
.entry-content th, .entry-content td { border: 1px solid var(--steel); padding: 0.6rem 0.8rem; text-align: left; }
.entry-content th { background: var(--paper-alt); font-family: var(--grot); font-weight: 700; }

/* Цифровой акцент — нумерованные списки в тексте */
.entry-content ol { list-style: none; padding-left: 3.2rem; counter-reset: dds-num; }
.entry-content ol > li { position: relative; counter-increment: dds-num; margin-bottom: 0.7em; }
.entry-content ol > li::before {
    content: counter(dds-num, decimal-leading-zero);
    position: absolute;
    left: -3.2rem;
    top: -0.55em;
    font-family: var(--grot);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--signal);
    line-height: 1;
}

/* ============ КНОПКИ ============ */
.btn, .btn-line {
    display: inline-block;
    font-family: var(--grot);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    padding: 0.78rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn {
    background: var(--signal);
    color: #000000;
    border: 3px solid var(--signal);
}
.btn:hover, .btn:focus { background: var(--signal-dark); border-color: var(--signal-dark); color: #000000; transform: translateY(-2px); }

.btn-line {
    background: transparent;
    color: var(--ink);
    border: 3px solid var(--steel);
}
.btn-line:hover, .btn-line:focus { background: var(--signal); border-color: var(--signal); color: #FFFFFF; transform: translateY(-2px); }

/* ============ ШАПКА ============ */
.site-top {
    background: var(--ink);
    color: #FFFFFF;
    border-bottom: 5px solid var(--signal);
    position: static;
}
.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 320px; }
.brand-logo, .brand-mark { flex: 0 0 auto; display: block; width: 58px; height: 58px; }
.brand-logo { width: auto; max-height: 62px; }
.brand-text { min-width: 0; }
.brand-title {
    display: block;
    font-family: var(--grot);
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.15;
    color: #FFFFFF;
    text-decoration: none;
}
.brand-title:hover { color: var(--signal); }
.brand-desc { display: block; margin-top: 5px; font-size: 0.82rem; line-height: 1.4; color: var(--steel); }

.nav-toggle {
    display: none;
    font-family: var(--grot);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: transparent;
    color: #FFFFFF;
    border: 3px solid var(--steel);
    border-radius: 2px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--signal); color: var(--signal); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav li { margin: 0; }
.site-nav a {
    display: block;
    font-family: var(--grot);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border: 2px solid transparent;
    border-radius: 2px;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: #000000; background: var(--signal); }
.site-nav .sub-menu { display: none; }

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
    font-family: var(--grot);
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 18px 0 16px;
    border-bottom: 3px dashed var(--steel);
    margin-bottom: 30px;
}
.breadcrumbs a { color: var(--ink); text-decoration: none; font-weight: 700; }
.breadcrumbs a:hover { color: var(--signal); }
.breadcrumbs .sep { color: var(--signal); margin: 0 6px; font-weight: 700; }

/* ============ ЗАГОЛОВКИ РАЗДЕЛОВ ============ */
.sec-head { position: relative; margin-bottom: 26px; padding-left: 0; }
.sec-num {
    position: absolute;
    left: -4.2rem;
    top: -0.5rem;
    font-family: var(--grot);
    font-weight: 700;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--signal);
}
.sec-head h2 { margin: 0; font-size: 2.6rem; }
.sec-lead { margin-top: 12px; max-width: 62ch; }

/* ============ ГЛАВНАЯ: СЕКЦИИ ============ */
.front-section { padding: 80px 0; border-bottom: 3px dashed var(--steel); position: relative; }
.front-section:last-of-type { border-bottom: 0; }
.fs-alt {
    background-color: var(--paper-alt);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='220' viewBox='0 0 320 220'%3E%3Cg fill='none' stroke='%231A212B' stroke-width='3'%3E%3Crect x='30' y='60' width='90' height='110' rx='6'/%3E%3Crect x='200' y='60' width='90' height='110' rx='6'/%3E%3Cpath d='M120 90h80M120 130h80'/%3E%3Ccircle cx='75' cy='170' r='26'/%3E%3Ccircle cx='245' cy='170' r='26'/%3E%3Cpath d='M52 60V38h46v22M222 60V38h46v22'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -20px bottom -10px;
    background-size: 320px auto;
}
.fs-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(232, 237, 242, 0.86);
    pointer-events: none;
    z-index: 0;
}
.fs-alt > * { position: relative; z-index: 1; }

/* Блок 1 — текст + техническая иллюстрация */
.fs-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 46px; align-items: center; }
.fs-duo-figure { border: 4px solid var(--steel); background: #FFFFFF; padding: 14px; }
.fs-duo-figure img { display: block; width: 100%; height: auto; }
.fs-duo-cap { display: block; margin-top: 10px; font-family: var(--grot); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); }

.callout-dark {
    position: relative;
    margin-top: 28px;
    padding: 1.8rem 1.9rem;
    background: var(--ink);
    color: #FFFFFF;
}
.callout-dark h3 { color: #FFFFFF; margin: 0 0 0.5em; font-size: 1.45rem; }
.callout-dark p { margin: 0; color: #DCE3EA; }
.corner-flag::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 34px solid var(--signal);
    border-left: 34px solid transparent;
}

/* Блок 2 — чек-лист */
.checklist { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; }
.checklist::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: 12px; width: 3px; background: var(--steel); }
.checklist li { position: relative; margin: 0 0 26px; padding-left: 26px; min-width: 0; }
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 4px;
    width: 21px;
    height: 21px;
    border: 3px solid var(--steel);
    background: var(--paper);
    transition: background-color 0.18s ease, border-color 0.18s ease;
}
.checklist li:hover::before { background: var(--signal); border-color: var(--signal); }
.checklist b { display: block; font-family: var(--grot); font-size: 1.32rem; line-height: 1.15; margin-bottom: 4px; }
.checklist p { margin: 0; color: #35414F; }

/* Блок 3 — статистика */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper-alt); border: 3px solid var(--steel); }
.stat-cell { padding: 2.2rem 1.4rem; border-left: 4px solid var(--steel); min-width: 0; text-align: center; }
.stat-cell:first-child { border-left: 0; }
.stat-num { display: block; font-family: var(--grot); font-weight: 700; font-size: 3.6rem; line-height: 1; color: var(--signal); }
.stat-cap { display: block; margin-top: 10px; font-family: var(--grot); font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.stat-note { margin-top: 18px; font-size: 0.92rem; color: var(--dim); }

/* Блок 4 — карта тем */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.6rem;
    background: #FFFFFF;
    border: 3px solid var(--steel);
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.topic-tile:hover { border-color: var(--signal); transform: translateX(5px); }
.topic-tile svg { display: block; width: 42px; height: 42px; margin-bottom: 14px; }
.topic-name { display: block; font-family: var(--grot); font-weight: 700; font-size: 1.35rem; line-height: 1.1; margin-bottom: 8px; }
.topic-desc { display: block; font-size: 0.95rem; color: #404C5A; }
.topic-tile.is-accent { background: var(--signal); border-color: var(--signal); color: #FFFFFF; position: relative; }
.topic-tile.is-accent .topic-desc { color: #FFE3E3; }
.topic-tile.is-accent:hover { background: var(--signal-dark); border-color: var(--signal-dark); }

/* Лента последних записей на главной */
.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.front-more { margin-top: 34px; }

/* ============ КАРТОЧКИ ЗАПИСЕЙ ============ */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-bottom: 26px;
    background: #FFFFFF;
    border: 0;
    border-left: 3px solid var(--steel);
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.card:hover { border-left-color: var(--signal); transform: translateX(5px); }
.card-layout { display: flex; flex-wrap: nowrap; gap: 20px; padding: 20px 22px; }
.card-thumb-wrap { flex: 0 0 180px; overflow: hidden; }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img { display: block; width: 100%; height: 180px; object-fit: cover; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.card-title { font-family: var(--grot); font-size: 1.5rem; line-height: 1.1; margin: 0 0 8px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--signal); }
.card-meta { font-family: var(--grot); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.card-excerpt { color: #35414F; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 8px;
    font-family: var(--grot);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--signal);
    text-decoration: none;
}
.card-more:hover { color: var(--signal-dark); }

/* Вертикальные карточки в ленте главной */
.latest-grid .card-layout { flex-direction: column; gap: 16px; }
.latest-grid .card-thumb-wrap { flex: none; width: 100%; }
.latest-grid .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 10; }

/* ============ ЗАПИСЬ И СТРАНИЦА ============ */
.entry-header { margin-bottom: 26px; }
.entry-title { font-size: 3.2rem; margin: 0 0 12px; }
.entry-meta { font-family: var(--grot); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.entry-thumb { margin: 0 0 28px; border: 4px solid var(--steel); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { margin-bottom: 34px; }
.entry-content img { display: block; }
.entry-footer { padding-top: 18px; border-top: 3px dashed var(--steel); font-family: var(--grot); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.entry-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.entry-footer a:hover { color: var(--signal); }

.archive-head { margin-bottom: 30px; }
.archive-head h1 { font-size: 3rem; }

/* ============ САЙДБАР ============ */
.sidebar { min-width: 0; }
.widget-shell {
    background: var(--sheet);
    border: 3px solid var(--steel);
    border-radius: 0;
    padding: 1.5rem 1.5rem;
    margin-bottom: 26px;
    color: var(--ink);
}
.widget-shell .widget-title {
    font-family: var(--grot);
    font-size: 1.3rem;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 4px solid var(--signal);
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.widget-shell ul { list-style: none; margin: 0; padding: 0; }
.widget-shell li { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--steel); }
.widget-shell li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.widget-shell a { color: var(--ink); text-decoration: none; font-weight: 700; }
.widget-shell a:hover { color: var(--signal); }
.widget-shell .post-date { display: block; font-family: var(--grot); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); }
.widget-shell p { color: #35414F; }

/* ============ ФОРМА ПОИСКА ============ */
.search-line { display: flex; gap: 10px; flex-wrap: wrap; }
.search-line input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    font-family: var(--serif);
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 3px solid var(--steel);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
}
.search-line input[type="search"]:focus { outline: none; border-color: var(--signal); }
.search-line button { flex: 0 0 auto; }

/* ============ ПАГИНАЦИЯ ============ */
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; padding-top: 26px; border-top: 3px dashed var(--steel); }
.pager .page-numbers {
    display: inline-block;
    font-family: var(--grot);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--ink);
    background: #FFFFFF;
    border: 3px solid var(--steel);
    border-radius: 2px;
    padding: 0.5rem 0.95rem;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.pager .page-numbers:hover { background: var(--signal); border-color: var(--signal); color: #FFFFFF; transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--signal); border-color: var(--signal); color: #000000; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* ============ КОММЕНТАРИИ ============ */
.comments-zone { margin-top: 40px; padding-top: 26px; border-top: 3px dashed var(--steel); }
.comments-zone h2 { font-size: 1.9rem; margin-top: 0; }
.comment-list { list-style: none; margin: 0 0 30px; padding: 0; }
.comment-list ol.children { list-style: none; margin: 18px 0 0 26px; padding: 0; }
.comment-box { background: #FFFFFF; border-left: 3px solid var(--steel); padding: 1.1rem 1.3rem; margin-bottom: 18px; }
.comment-head { font-family: var(--grot); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dim); margin-bottom: 8px; }
.comment-head b { color: var(--ink); font-size: 1.05rem; }
.comment-body p:last-child { margin-bottom: 0; }
.comment-reply-link { font-family: var(--grot); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; color: var(--signal); text-decoration: none; }
.comment-respond { background: var(--paper-alt); border: 3px solid var(--steel); padding: 1.6rem 1.7rem; }
.comment-respond .comment-reply-title { margin-top: 0; font-size: 1.6rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 1rem;
    padding: 0.65rem 0.8rem;
    border: 3px solid var(--steel);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
}
.comment-form label { display: block; font-family: var(--grot); font-weight: 700; text-transform: uppercase; font-size: 0.88rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.comment-form .form-submit input {
    font-family: var(--grot);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--signal);
    color: #000000;
    border: 3px solid var(--signal);
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}
.comment-form .form-submit input:hover { background: var(--signal-dark); border-color: var(--signal-dark); }

/* ============ 404 ============ */
.zone-404 { padding: 30px 0 20px; }
.zone-404 .code-404 { font-family: var(--grot); font-weight: 700; font-size: 8rem; line-height: 1; color: var(--signal); }
.zone-404 .search-line { max-width: 520px; margin: 24px 0; }

/* ============ ПОДВАЛ ============ */
.site-bottom { background: var(--ink-deep); color: #C9D3DC; border-top: 5px solid var(--signal); padding: 56px 0 26px; }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.foot-col { min-width: 0; }
.foot-col .widget-shell { background: transparent; border: 0; border-top: 3px solid var(--steel); padding: 18px 0 0; margin-bottom: 22px; color: #C9D3DC; }
.foot-col .widget-shell .widget-title { color: #FFFFFF; border-bottom: 0; padding-bottom: 0; margin-bottom: 14px; }
.foot-col .widget-shell p { color: #C9D3DC; }
.foot-col .widget-shell a { color: #FFFFFF; }
.foot-col .widget-shell a:hover { color: var(--signal); }
.foot-col .widget-shell li { border-bottom: 1px dashed #33404E; }
.foot-col .widget-shell .post-date { color: #8496A6; }
.foot-copy {
    margin-top: 34px;
    padding-top: 20px;
    border-top: 3px dashed #33404E;
    font-family: var(--grot);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8496A6;
}

/* ============ COOKIE-БАННЕР ============ */
.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: 16px;
    padding: 1.1rem 1.6rem;
    background: var(--ink);
    color: #FFFFFF;
    border-top: 5px solid var(--signal);
}
.cookie-banner p { margin: 0; font-size: 0.95rem; max-width: 74ch; }
.cookie-banner a { color: #FFFFFF; }

/* ============ СЛУЖЕБНОЕ ============ */
.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;
}
.comment-form p { margin-bottom: 1.1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .entry-content figcaption { font-family: var(--grot); font-size: 0.9rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.alignleft { float: left; margin: 0 1.4rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    h1 { font-size: 3rem; }
    .entry-title { font-size: 2.4rem; }
    .sec-head h2 { font-size: 2.1rem; }
    .sec-num { position: static; display: block; margin-bottom: 6px; font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .layout-single { width: 100%; }
    .fs-duo { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(3) { border-left: 0; }
    .stat-cell:nth-child(n+3) { border-top: 4px solid var(--steel); }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-block; }
    .site-nav { flex: 1 1 100%; }
    .site-nav ul { flex-direction: column; gap: 2px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.3rem; }
    .entry-title { font-size: 2rem; }
    .sec-head h2 { font-size: 1.8rem; }
    .shell, .shell-narrow { width: 90%; }
    .front-section { padding: 46px 0; }
    .latest-grid, .topic-grid, .foot-grid, .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; border-top: 4px solid var(--steel); }
    .stat-cell:first-child { border-top: 0; }
    .card-layout { flex-direction: column; gap: 16px; padding: 16px 18px; }
    .card-thumb-wrap { flex: none; width: 100%; position: static; }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .callout-dark { padding: 1.4rem 1.3rem; }
    .fs-duo-figure { padding: 10px; }
    .zone-404 .code-404 { font-size: 5rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .stat-cell { padding: 1.6rem 1.2rem; }
    .topic-tile { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
}
