/*
Theme Name: dds_noticias-minuto-ar.com
Author: Дмитрий Соколов
Description: Информационная тема о выборе жилья: сравнение новостроек и вторичной недвижимости. Японский минимализм, монохромная база с холодным акцентом.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mnar
*/

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

:root {
    --bg: #F4F6FA;
    --bg-alt: #E8ECF3;
    --head-bg: #1B212D;
    --foot-bg: #11161E;
    --side-bg: #FFFFFF;
    --ink: #1F2937;
    --accent: #3A7BD5;
    --accent-2: #5D8FC0;
    --accent-dark: #2E62AA;
    --muted: #8598A9;
    --line: #D8E0EA;
    --dash: #C8D4E0;
    --font-head: "Inter", "Manrope", "Segoe UI", "Trebuchet MS", Arial, sans-serif;
    --font-body: "PT Sans", "Source Sans Pro", "Segoe UI", Tahoma, Arial, sans-serif;
    --shell: min(92%, 1180px);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg,
        rgba(176, 196, 222, 0.30) 0,
        rgba(176, 196, 222, 0.30) 0.5px,
        transparent 0.5px,
        transparent 40px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.home::before,
body.page-template-page-blog::before {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -30px;
    width: 460px;
    height: 320px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 320'%3E%3Cg fill='none' stroke='%233A7BD5' stroke-width='4'%3E%3Crect x='20' y='20' width='420' height='280'/%3E%3Cpath d='M20 160h200M220 20v280M220 200h220M300 200v100M360 20v60M360 80h80'/%3E%3Crect x='60' y='60' width='60' height='40'/%3E%3Cpath d='M240 40h60M240 240h40'/%3E%3C/g%3E%3C/svg%3E");
}

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

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

/* =========================================================
   2. Типографика
   ========================================================= */

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

h1 {
    font-size: 3.2rem;
    letter-spacing: 0.03em;
}

h2 { font-size: 1.95rem; letter-spacing: 0.02em; }
h3 { font-size: 1.4rem; letter-spacing: 0.015em; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.18s ease, color 0.18s ease;
}

a:hover { border-bottom-color: var(--accent); }

.entry-content a { border-bottom: 1px dashed transparent; }
.entry-content a:hover { border-bottom-color: var(--accent); }

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

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    color: #2b3646;
    font-size: 1.08rem;
}

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

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 0.94em;
}

pre {
    background: #101722;
    color: #e6edf7;
    padding: 1.1rem 1.3rem;
    overflow-x: auto;
}

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

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

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

/* Заголовки секций: тонкая вертикальная линия слева */
.sec-title {
    position: relative;
    padding-left: 1.4rem;
    font-size: 2rem;
    letter-spacing: 0.025em;
    margin-bottom: 1.6rem;
}

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

/* Асимметричный акцент: квадрат 6x6 у заголовков внутри контента */
.entry-content h2 {
    position: relative;
    padding-left: 1.05rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.34em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    letter-spacing: 0.03em;
    padding: 0.72rem 1.5rem;
    border-radius: 3px;
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    color: #fff;
    border-bottom-color: var(--accent-dark);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-1px);
}

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

.site-head {
    position: relative;
    background: var(--head-bg);
    color: #E6EDF6;
    padding: 1.4rem 0 1.5rem;
}

.site-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(to right,
        var(--accent) 0, var(--accent) calc(50% - 110px),
        transparent calc(50% - 110px), transparent calc(50% + 110px),
        var(--accent) calc(50% + 110px), var(--accent) 100%);
}

.head-inner {
    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 460px;
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    color: #F2F6FB;
    line-height: 1.35;
    border: 0;
}

a.brand-name:hover { color: #fff; border: 0; }

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #93A6B9;
    max-width: 640px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: #E6EDF6;
    border-radius: 3px;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-head);
    font-size: 0.92rem;
    cursor: pointer;
}

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

.main-nav a {
    color: #D6E1EC;
    font-family: var(--font-head);
    font-size: 0.96rem;
    letter-spacing: 0.02em;
    border-bottom: 1px dashed transparent;
}

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

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

.site-main {
    display: block;
    padding: 2.6rem 0 4rem;
    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, 29fr);
    gap: 2.6rem;
    align-items: start;
}

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

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1.4rem;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
}

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    letter-spacing: 0.01em;
}

.crumbs a { color: var(--accent-2); }
.crumbs .sep { margin: 0 0.35rem; color: var(--dash); }

.page-title {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
    position: relative;
    padding-left: 1.4rem;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.14em;
    width: 3px;
    height: 1.2em;
    background: var(--accent);
}

.entry-content { margin-bottom: 2rem; }
.entry-content img { display: block; }

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
}

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

.dashed-rule {
    border: 0;
    border-top: 1px dashed var(--dash);
    margin: 3rem 0;
}

.dashed-rule.flush { margin-top: 0; }

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.10);
    border-bottom-color: var(--accent);
}

.card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

.card-thumb-wrap {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.card-title {
    font-size: 1.28rem;
    margin-bottom: 0.5rem;
}

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

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
    letter-spacing: 0.02em;
}

.card-excerpt {
    color: #3d4a5c;
    font-size: 0.97rem;
    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-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--accent);
    border-bottom: 1px dashed transparent;
}

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 1rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

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

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

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

.front-section {
    padding: 5rem 0;
    position: relative;
}

.front-section.alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(-45deg,
        rgba(176, 196, 222, 0.5) 0,
        rgba(176, 196, 222, 0.5) 0.5px,
        transparent 0.5px,
        transparent 40px);
}

.front-lead {
    color: #3d4a5c;
    max-width: 720px;
    margin-bottom: 2rem;
}

/* --- Блок 1: hero --- */

.fs-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

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

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(11, 22, 40, 0.72) 0%, rgba(27, 33, 45, 0.40) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 6rem 0 6.5rem;
}

.hero-box { max-width: 720px; }

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A9C6EC;
    margin-bottom: 1.1rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
}

.hero-title {
    color: #fff;
    font-size: 3.2rem;
    letter-spacing: 0.03em;
    margin-bottom: 1rem;
}

.hero-sub {
    color: #D7E3F1;
    font-size: 1.12rem;
    max-width: 620px;
    margin-bottom: 1.9rem;
}

/* --- Блок 2: чек-лист --- */

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 880px;
}

.checklist li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #26313f;
}

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

.checklist li .tick {
    position: absolute;
    left: 0;
    top: 0.28em;
    width: 22px;
    height: 22px;
    display: block;
}

.checklist li .tick svg { display: block; width: 22px; height: 22px; }

/* --- Блок 3: карта тем --- */

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

.topic-tile {
    display: block;
    border: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    padding: 2rem 1.4rem 1.6rem;
    text-align: center;
    color: var(--ink);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    min-width: 0;
}

.topic-tile:hover {
    background: rgba(58, 123, 213, 0.10);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.topic-tile svg {
    display: block;
    margin: 0 auto 1.1rem;
    width: 44px;
    height: 44px;
}

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

.topic-tile .tile-note {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

/* --- Блок 4: статистика --- */

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

.stat-cell {
    position: relative;
    padding: 1.6rem 1.4rem;
    text-align: center;
    min-width: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.stat-cell + .stat-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: var(--dash);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 3.5rem;
    line-height: 1.05;
    letter-spacing: 0.01em;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: #3d4a5c;
}

/* --- Блок последних записей --- */

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

.mini-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    min-width: 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(31, 41, 55, 0.10);
    border-bottom-color: var(--accent);
}

.mini-thumb { display: block; border: 0; }

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

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

.mini-title { font-size: 1.14rem; margin-bottom: 0.45rem; }
.mini-title a { color: var(--ink); border: 0; }
.mini-title a:hover { color: var(--accent); border: 0; }

.mini-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.mini-excerpt {
    font-size: 0.94rem;
    color: #3d4a5c;
    margin-bottom: 1rem;
}

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

.mini-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    border-bottom: 1px dashed transparent;
}

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

.section-foot { margin-top: 2.2rem; }

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

.sidebar .widget { margin-bottom: 1.9rem; }
.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title {
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

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

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--dash);
    color: var(--ink);
}

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

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sidebar .widget, .sidebar .widget p { color: var(--ink); }
.sidebar .post-date, .sidebar .widget .rss-date { color: var(--muted); font-size: 0.85rem; }

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

.site-foot {
    position: relative;
    background: var(--foot-bg);
    color: #C6D2DF;
    padding: 3.4rem 0 1.8rem;
    overflow: hidden;
}

.site-foot::before {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 380px;
    height: 250px;
    opacity: 0.06;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 320'%3E%3Cg fill='none' stroke='%233A7BD5' stroke-width='5'%3E%3Crect x='20' y='20' width='420' height='280'/%3E%3Cpath d='M20 160h200M220 20v280M220 200h220M300 200v100M360 20v60M360 80h80'/%3E%3Crect x='60' y='60' width='60' height='40'/%3E%3C/g%3E%3C/svg%3E");
}

.foot-cols {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    margin-bottom: 2.6rem;
}

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

.site-foot .widget-title {
    font-size: 1.02rem;
    letter-spacing: 0.04em;
    color: #F0F5FA;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

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

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget {
    color: #B9C7D6;
    font-size: 0.94rem;
}

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

.site-foot .widget li {
    padding: 0.42rem 0;
    border-bottom: 1px dashed rgba(198, 210, 223, 0.16);
}

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

.site-foot .widget a { color: #DCE6F1; }
.site-foot .widget a:hover { color: #fff; border-bottom-color: var(--accent); }
.site-foot .post-date { color: #8598A9; }

.foot-bottom {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(198, 210, 223, 0.14);
    padding-top: 1.4rem;
    font-size: 0.86rem;
    color: #8E9EAE;
}

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

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.96rem;
}

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

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--dash);
}

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

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

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

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

.comment-inner {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    padding: 1.1rem 1.3rem;
}

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

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

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

.comment-actions { font-size: 0.88rem; }

.comment-form p { margin-bottom: 1rem; }

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: #46536a;
    margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--ink);
}

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

.comment-form input[type="submit"] {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 0.72rem 1.5rem;
    border-radius: 3px;
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

/* =========================================================
   12. 404
   ========================================================= */

.err-code {
    font-family: var(--font-head);
    font-size: 5.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.err-box { max-width: 640px; }
.err-box .search-form { margin: 1.6rem 0; }

.no-results {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    padding: 1.6rem 1.8rem;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--head-bg);
    border-top: 2px solid var(--accent);
    color: #D8E3EF;
    padding: 1.1rem 1.6rem;
    font-size: 0.92rem;
}

.cookie-banner p { margin: 0; max-width: 820px; }
.cookie-banner a { color: #9DC1EE; }


/* Утилиты */

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

.entry-thumb {
    margin-bottom: 1.8rem;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
}

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

.no-comments {
    color: var(--muted);
    font-size: 0.92rem;
}

.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
    font-size: 0.86rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.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; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .page-title { font-size: 2rem; }
    .sec-title { font-size: 1.7rem; }

    .layout-with-sidebar {
        display: block;
    }

    .layout-with-sidebar .sidebar { margin-top: 2.4rem; }

    .layout-single { width: 100%; }

    .topic-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-section { padding: 3.6rem 0; }
    .hero-inner { padding: 4.4rem 0 4.6rem; }
    .stat-num { font-size: 2.8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.95rem; }
    .hero-title { font-size: 1.95rem; }
    .page-title { font-size: 1.7rem; }
    .sec-title { font-size: 1.45rem; }

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

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

    .main-nav.is-open { display: block; }

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

    .main-nav li {
        border-bottom: 1px dashed rgba(214, 225, 236, 0.2);
        padding: 0.55rem 0;
    }

    .head-inner { align-items: flex-start; }

    .card-row { flex-direction: column; }

    .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;
    }

    .topic-map { grid-template-columns: minmax(0, 1fr); }
    .stat-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell + .stat-cell::before { display: none; }
    .latest-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .front-section { padding: 2.8rem 0; }
    .hero-inner { padding: 3.2rem 0 3.4rem; }
    .checklist li { font-size: 1.06rem; padding-left: 2.4rem; }
    .stat-num { font-size: 3rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .comment-list ul.children { margin-left: 0.8rem; }
    body.home::before, body.page-template-page-blog::before { display: none; }
}
