/*
Theme Name: dds_nurteks.ru
Theme URI: https://nurteks.ru/
Author: Семенова Анастасия Семенова Анастасия
Description: Информационная тема о юридических нюансах покупки земли. Дизайн-концепция «Земельный кадастр»: японский минимализм, строгая документная типографика и навигационная картография.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: kadastr
*/

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

:root {
    --paper:      #F4F4F0;
    --paper-alt:  #EBE9E3;
    --paper-deep: #E0DCD4;
    --paper-soft: #FCFCF9;
    --ink:        #2B2B28;
    --dark:       #1E1E1C;
    --dark-lift:  #4B4B45;
    --rust:       #A65D3C;
    --rust-soft:  #C98F6F;
    --moss:       #4A6B5D;
    --mute:       #8A8782;
    --line:       #DCD9D2;
    --dot:        #C4BFB6;
    --font-head:  'Montserrat Alternates', 'Montserrat', 'Gotham', 'Futura', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
    --font-body:  'Inter', 'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
    --gap:        120px;
}

*, *::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.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(60deg,  rgba(230, 227, 220, 0.5) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(-60deg, rgba(230, 227, 220, 0.5) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg,   rgba(230, 227, 220, 0.4) 0 1px, transparent 1px 33px);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.18;
    color: var(--ink);
    font-weight: 700;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.5rem; margin-bottom: 1.1em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

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

a:hover { color: var(--dark); }

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main { display: block; padding: 46px 0 90px; }

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

.mt-l { margin-top: 2rem; }

/* ==================================================================
   2. Кнопки и ссылки
   ================================================================== */

.btn {
    display: inline-block;
    padding: 0.72em 1.5em;
    border: 2px solid var(--rust);
    border-radius: 0;
    background: transparent;
    color: var(--rust);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

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

.btn-solid {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--paper);
}

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

.entry-content a,
.card-excerpt a,
.widget a,
.tl-card a {
    color: var(--rust);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--rust);
    text-underline-offset: 3px;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget a:hover,
.tl-card a:hover {
    text-decoration-style: solid;
}

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

.site-top {
    position: static;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(43, 43, 40, 0.06);
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    margin-right: auto;
}

.brand-link { display: block; line-height: 0; }

.brand-logo { display: block; max-height: 60px; width: auto; }

.brand-mark { display: block; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
    color: var(--ink);
    max-width: 46ch;
}

.brand-desc {
    font-size: 0.78rem;
    color: var(--mute);
    max-width: 52ch;
}

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

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

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

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

.site-nav { min-width: 0; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: inline-block;
    padding: 0.3em 0;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--rust);
    border-bottom-color: var(--rust);
}

.nav-list .sub-menu {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

/* ==================================================================
   4. Раскладки
   ================================================================== */

.layout-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3%;
}

.layout-with-sidebar .content-area {
    flex: 0 1 67%;
    min-width: 0;
}

.layout-with-sidebar .sidebar {
    flex: 0 0 27%;
    min-width: 0;
}

.layout-single { display: block; }

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

.front { display: block; }

/* ==================================================================
   5. Хлебные крошки, заголовки секций
   ================================================================== */

.breadcrumbs {
    margin: 0 0 2.2rem;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--mute);
}

.breadcrumbs a {
    color: var(--moss);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.breadcrumbs a:hover { color: var(--rust); }

.breadcrumbs .sep { margin: 0 0.4rem; color: var(--dot); }

.page-title { font-size: 2.4rem; margin-bottom: 1.4rem; }

.sec-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

.sec-title::before {
    content: '';
    flex: 0 0 48px;
    height: 3px;
    background: var(--rust);
}

.sec-lead {
    max-width: 68ch;
    margin: 0 0 2.2rem;
    color: var(--mute);
}

.front-section { padding: calc(var(--gap) / 2) 0; }

.sec-divider {
    position: relative;
    height: 40px;
    background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.2px);
    background-size: 9px 1px;
    background-position: 0 50%;
    background-repeat: repeat-x;
}

.sec-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 74px;
    height: 38px;
    transform: translate(-50%, -50%);
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='74' height='38'%3E%3Cg stroke='%23C4BFB6' stroke-width='1' fill='none'%3E%3Cpath d='M13 6.5h48M13 18.5h48M13 30.5h48M18.5 2v34M30.5 2v34M42.5 2v34M54.5 2v34'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.empty-note { color: var(--mute); }

.archive-note { color: var(--mute); margin-bottom: 1.6rem; }

/* ==================================================================
   6. Hero
   ================================================================== */

.fs-hero {
    position: relative;
    padding: 3.4rem 2.4rem;
    border: 1px solid var(--line);
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(166, 93, 60, 0.10) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, rgba(74, 107, 93, 0.08) 0 1px, transparent 1px 26px);
    overflow: hidden;
}

.fs-hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 220px;
    height: 220px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cg stroke='%23A65D3C' stroke-width='1' fill='none' opacity='0.35'%3E%3Cpath d='M110 60v110M70 200h80M110 170l-30 30M110 170l30 30'/%3E%3Ccircle cx='110' cy='48' r='16'/%3E%3Cpath d='M84 48h52M110 22v52M60 84h100M96 40l28 16M96 56l28-16'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.6rem;
}

.hero-text { flex: 1 1 420px; min-width: 0; }

.hero-figure { flex: 0 1 380px; min-width: 0; }

.hero-figure img { display: block; width: 100%; height: auto; }

.hero-title {
    position: relative;
    padding-left: 66px;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 48px;
    height: 4px;
    background: var(--rust);
}

.hero-lead {
    max-width: 56ch;
    font-size: 1.05rem;
    color: #43433E;
}

.hero-actions { margin: 1.8rem 0 0; }

/* ==================================================================
   7. Таймлайн
   ================================================================== */

.timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background-image: repeating-linear-gradient(to bottom,
        var(--rust) 0 12px,
        transparent 12px 19px,
        var(--rust) 19px 23px,
        transparent 23px 34px);
}

.tl-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 0 0 1.6rem;
    min-width: 0;
}

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

.tl-num {
    position: relative;
    z-index: 1;
    flex: 0 0 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
    border: 2px solid var(--rust);
    color: var(--rust);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.tl-card {
    flex: 1 1 auto;
    min-width: 0;
    padding: 1.3rem 1.5rem;
    border: 1px solid var(--line);
    background: var(--paper-soft);
}

.tl-head { font-size: 1.05rem; margin-bottom: 0.5rem; }

.tl-card p { margin: 0; color: #46463F; }

/* ==================================================================
   8. Статистика
   ================================================================== */

.fs-stats {
    padding: 3rem 2.2rem;
    background-color: var(--paper-deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(43, 43, 40, 0.07) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(43, 43, 40, 0.07) 0 1px, transparent 1px 24px);
    border: 1px solid var(--line);
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.6rem 1.4rem;
    border-left: 1px solid var(--line);
}

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

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--moss);
}

.stat-cap {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.86rem;
    color: #4E4E48;
}

/* ==================================================================
   9. Карта тем
   ================================================================== */

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

.topic {
    display: block;
    padding: 1.6rem 1.5rem;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
    background: var(--paper-soft);
    border: 1px solid var(--line);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    transition: border-color 0.18s ease, background-color 0.18s ease;
}

.topic:hover {
    border-color: var(--rust);
    background: #FFFFFF;
    color: var(--ink);
}

.topic-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.topic-desc {
    display: block;
    font-size: 0.86rem;
    color: var(--mute);
}

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

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

.layout-with-sidebar .card-grid,
.layout-single .content-area .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--paper-alt);
    border: 1px solid var(--line);
    border-radius: 0;
}

.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--rust);
    transition: width 0.18s ease;
    z-index: 2;
}

.card:hover::before { width: 5px; }

.card:hover .card-title { transform: translateX(7px); }

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

.card-thumb a { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

.card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--moss);
    opacity: 0.3;
    mix-blend-mode: multiply;
    pointer-events: none;
}

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

.card-title {
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
    transition: transform 0.18s ease;
}

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

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

.card-meta {
    margin: 0 0 0.8rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mute);
}

.card-excerpt { flex: 1; font-size: 0.93rem; color: #46463F; }

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

.card-actions { margin: 1.2rem 0 0; }

.card-actions .btn { font-size: 0.74rem; padding: 0.6em 1.2em; }

.latest-more { margin-top: 2.2rem; }

/* ==================================================================
   11. Контент записи и страницы
   ================================================================== */

.entry { margin-bottom: 2.6rem; }

.entry-title { font-size: 2.4rem; margin-bottom: 0.8rem; }

.entry-meta {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mute);
}

.entry-meta a { color: var(--moss); text-decoration: none; }

.entry-meta a:hover { color: var(--rust); }

.meta-sep { margin: 0 0.5rem; color: var(--dot); }

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

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

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

.entry-content h2 { margin-top: 2.2rem; font-size: 1.55rem; }

.entry-content h3 { margin-top: 1.8rem; font-size: 1.2rem; }

.entry-content ul,
.entry-content ol { margin: 0 0 1.3em; padding-left: 1.6rem; }

.entry-content ul { list-style: none; padding-left: 1.9rem; }

.entry-content ul li {
    position: relative;
    margin-bottom: 0.5em;
}

.entry-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.55em;
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cg stroke='%23A65D3C' stroke-width='1.4' fill='none'%3E%3Ccircle cx='6' cy='6' r='4.4'/%3E%3Cpath d='M6 0v12M0 6h12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
}

.entry-content ol li { margin-bottom: 0.5em; }

.entry-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--paper-deep);
    border-left: 4px solid var(--rust);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

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

.entry-content img { display: block; height: auto; }

.entry-content figure { margin: 1.8rem 0; }

.entry-content table {
    width: 100%;
    margin: 1.8rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 0.94rem;
}

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

.entry-content th {
    background: var(--paper-alt);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.entry-content code,
.entry-content pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9rem;
    background: var(--paper-alt);
}

.entry-content pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

.entry-tags { margin-top: 1.6rem; font-size: 0.82rem; }

.entry-tags a { color: var(--moss); }

.page-links { margin-top: 1.4rem; font-size: 0.85rem; }

.post-switch {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.2rem;
    margin: 2.6rem 0;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}

.post-switch a { text-decoration: none; }

.switch-prev, .switch-next { min-width: 0; }

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

.sidebar {
    padding: 1.6rem 1.5rem;
    background-color: var(--paper-soft);
    background-image: repeating-linear-gradient(0deg, rgba(43, 43, 40, 0.035) 0 1px, transparent 1px 22px);
    border: 1px solid var(--line);
    align-self: flex-start;
}

.sidebar .widget { margin-bottom: 2rem; color: var(--ink); }

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

.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: '';
    flex: 0 0 26px;
    height: 2px;
    background: var(--rust);
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--dot);
    font-size: 0.92rem;
    color: var(--ink);
}

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

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

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

.sidebar .post-date { display: block; font-size: 0.76rem; color: var(--mute); }

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

.site-bottom {
    position: relative;
    padding: 3.4rem 0 2.2rem;
    background-color: var(--dark);
    color: #D8D5CC;
    overflow: hidden;
}

.site-bottom::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 220px;
    height: 200px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='200'%3E%3Cg stroke='%23A65D3C' stroke-width='1' fill='none' opacity='0.35'%3E%3Cpath d='M110 52v112M72 186h76M110 164l-28 22M110 164l28 22'/%3E%3Crect x='84' y='24' width='52' height='24'/%3E%3Cpath d='M60 66h100M110 12v12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
}

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

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

.site-bottom .widget { color: #D8D5CC; font-size: 0.92rem; }

.site-bottom .widget-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: #F2F0EA;
    margin-bottom: 1rem;
}

.site-bottom .widget-title::before {
    content: '';
    flex: 0 0 26px;
    height: 2px;
    background: var(--rust-soft);
}

.site-bottom .widget p { color: #C9C6BD; }

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

.site-bottom .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted #3A3A35;
}

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

.site-bottom .widget a {
    color: #E4C4B2;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.site-bottom .widget a:hover { color: #FFFFFF; text-decoration-style: solid; }

.copyright {
    position: relative;
    z-index: 1;
    margin: 2.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid #33332E;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: #A9A69D;
}

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

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

.pager .page-numbers {
    display: inline-block;
    padding: 0.55em 0.95em;
    min-width: 44px;
    text-align: center;
    border: 2px solid var(--line);
    border-radius: 0;
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-decoration: none;
}

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

.pager .page-numbers.current {
    background: var(--dark);
    border-color: var(--dark);
    color: var(--paper);
}

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

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

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.4rem 0;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65em 0.9em;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

textarea { width: 100%; }

input:focus, textarea:focus { outline: 2px solid var(--rust); outline-offset: 1px; }

.comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-title { font-size: 1.35rem; }

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

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

.comment-list li.comment,
.comment-list li.pingback {
    margin-bottom: 1.2rem;
    padding: 1.2rem 1.4rem;
    background: var(--paper-soft);
    border: 1px solid var(--line);
}

.comment-meta { font-size: 0.8rem; color: var(--mute); }

.comment-author .fn { font-style: normal; font-weight: 700; }

.comment-body p { margin-bottom: 0.6em; }

.comment-reply-link {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.comment-respond { margin-top: 1.6rem; }

.comment-reply-title { font-size: 1.15rem; }

.form-note { font-size: 0.84rem; color: var(--mute); }

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mute);
}

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

.comment-form input[type="submit"],
.comment-form .submit {
    padding: 0.72em 1.5em;
    border: 2px solid var(--dark);
    border-radius: 0;
    background: var(--dark);
    color: var(--paper);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover,
.comment-form .submit:hover {
    background: var(--dark-lift);
    border-color: var(--dark-lift);
}

.comments-closed { color: var(--mute); }

/* ==================================================================
   16. 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: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--dark);
    color: #E2DFD7;
    border-top: 3px solid var(--rust);
}

.cookie-text {
    flex: 1 1 320px;
    min-width: 0;
    margin: 0;
    font-size: 0.88rem;
}

.cookie-accept { flex: 0 0 auto; border-color: var(--rust); background: var(--rust); color: #FFFFFF; }

.cookie-accept:hover { background: var(--rust-soft); border-color: var(--rust-soft); }

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

@media (max-width: 960px) {
    :root { --gap: 84px; }

    h1 { font-size: 2.6rem; }

    .hero-title { font-size: 2.6rem; padding-left: 0; }

    .hero-title::before { position: static; display: block; margin-bottom: 1rem; }

    .card-grid,
    .layout-with-sidebar .card-grid,
    .layout-single .content-area .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .layout-with-sidebar .content-area { width: 100%; }

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

    .layout-single .content-area { width: 100%; }

    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    :root { --gap: 64px; }

    body { font-size: 16px; }

    h1, .hero-title, .entry-title, .page-title { font-size: 2rem; }

    .site-top-inner { padding: 14px 0; }

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

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

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .nav-list li { width: 100%; border-bottom: 1px dotted var(--dot); }

    .nav-list a { display: block; padding: 0.7em 0; }

    .card-grid,
    .layout-with-sidebar .card-grid,
    .layout-single .content-area .card-grid,
    .topic-grid,
    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .fs-hero { padding: 2rem 1.3rem; }

    .fs-stats { padding: 2rem 1.4rem; }

    .stat { flex: 1 1 100%; border-left: 0; padding: 0.9rem 0; border-top: 1px solid var(--line); }

    .stat:first-child { border-top: 0; padding-top: 0; }

    .stat-num { font-size: 3rem; }

    .topic { padding: 1.3rem 1.2rem; }

    .tl-item { gap: 1rem; }

    .tl-num { flex: 0 0 46px; height: 46px; font-size: 0.92rem; }

    .timeline::before { left: 22px; }

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

    .entry-content blockquote { padding: 1.3rem 1.3rem; }

    .sidebar { padding: 1.3rem 1.2rem; }

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

    .site-bottom::after, .fs-hero::after { width: 150px; height: 150px; background-size: contain; }
}
