/*
Theme Name: dds_sforgdocs.com
Author: Елена Воронова
Description: Информационная тема о рынке жилья: разбор документов, выбор объектов и проверка условий сделки. Дизайн в духе японского минимализма с архитектурным акцентом.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: sforgdocs
*/

/* ==================================================================
   Переменные
   ================================================================== */
:root {
    --bg:        #F9F7F4;
    --bg-alt:    #F1EEE7;
    --footer-bg: #2E2B27;
    --sidebar-bg:#FFFFFF;
    --ink:       #2C2A28;
    --accent:    #B3433A;
    --accent-2:  #8B7C6B;
    --muted:     #7B8A88;
    --line:      #E4DFD6;
    --shell:     1180px;
    --font-head: "Futura PT", "Century Gothic", "Trebuchet MS", -apple-system, "Segoe UI", sans-serif;
    --font-body: "Helvetica Neue", "Segoe UI", "PT Sans", Arial, sans-serif;
}

/* ==================================================================
   База
   ================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%237B8A88' stroke-width='1.1' opacity='0.07'%3E%3Ccircle cx='300' cy='320' r='96'/%3E%3Ccircle cx='300' cy='320' r='60'/%3E%3Cpath d='M300 224v192M204 320h192M232 252l136 136M368 252L232 388'/%3E%3Cpath d='M300 236l10 18h-20z' fill='%237B8A88' stroke='none'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, transparent 0, transparent 29px, rgba(123,138,136,0.06) 30px),
        repeating-linear-gradient(90deg, transparent 0, transparent 29px, rgba(123,138,136,0.06) 30px);
    background-position: right -40px bottom -40px, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
    background-attachment: fixed, fixed, fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
}

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

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

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

/* Красная строка — акцентная полоса в самом верху */
.page-top-rule {
    height: 3px;
    background: var(--accent);
    width: 100%;
}

/* ==================================================================
   Типографика
   ================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.18;
    color: var(--ink);
    letter-spacing: -0.01em;
}

h1 { font-size: 3.2rem; margin: 0 0 1.2rem; }
h2 { font-size: 2rem; margin: 0 0 0.9rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.6rem; }

p { margin: 0 0 1.1em; }

.content-area a:not(.btn) {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size .35s ease;
    padding-bottom: 1px;
}
.content-area a:not(.btn):hover {
    background-size: 100% 1px;
    background-image: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 7px);
}

/* ==================================================================
   Заголовки секций — «печать на полях»
   ================================================================== */
.section-head {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.6rem;
}
.section-head::before {
    content: "";
    position: absolute;
    left: 0; top: 0.15em; bottom: 0.15em;
    width: 3px;
    background: var(--accent);
}
.section-head .kicker {
    display: block;
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
}
.section-head .kicker::before {
    content: "◆ ";
    color: var(--accent);
    font-size: 0.6rem;
}
.section-head h2 {
    text-transform: lowercase;
    margin: 0;
}

.content-area h2 { position: relative; }
.content-area h2::before {
    content: "◆";
    position: absolute;
    left: -1.4rem; top: 0.28em;
    font-size: 0.62rem;
    color: var(--accent);
}
@media (max-width: 700px) {
    .content-area h2::before { display: none; }
}

/* ==================================================================
   Кнопки
   ================================================================== */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}
.btn:hover { background: var(--accent); color: #fff; }
.btn.btn-solid { background: var(--accent); color: #fff; }
.btn.btn-solid:hover { background: #97362e; }

/* ==================================================================
   Шапка
   ================================================================== */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-logo, .brand-svg { display: block; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--ink);
}
.brand-title a { color: inherit; }
.brand-desc {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.2rem;
    max-width: 42ch;
}

/* Навигация */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0; padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-color .25s, color .25s;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--accent); border-color: var(--accent); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.4rem 0.7rem;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--ink);
}

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

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.4rem; margin-top: 0.8rem; }
    .main-nav a { display: block; padding: 0.5rem 0; }
}

/* ==================================================================
   Раскладки
   ================================================================== */
.site-main { padding: 2.6rem 0 3.4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3rem;
    align-items: start;
}
.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
}
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 2.2rem; }
    .layout-single .content-area { width: 100%; }
}

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

/* ==================================================================
   Сайдбар
   ================================================================== */
.sidebar {
    min-width: 0;
    background: var(--sidebar-bg);
    box-shadow: 0 6px 24px rgba(46,43,39,0.08);
    padding: 1.6rem 1.5rem;
    border-top: 3px solid var(--accent);
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    text-transform: lowercase;
    color: var(--ink);
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--line);
}
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.4rem 0; border-bottom: 1px dotted var(--line); color: var(--ink); }
.sidebar li:last-child { border-bottom: none; }
.sidebar .post-date { display: block; font-size: 0.78rem; color: var(--muted); }

/* ==================================================================
   Карточки записей
   ================================================================== */
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg);
    border-radius: 0;
    border-right: 1px solid var(--bg-alt);
    border-bottom: 1px solid var(--bg-alt);
    border-top: 1px solid var(--line);
    margin-bottom: 1.8rem;
    padding: 0;
    overflow: hidden;
    transition: transform .3s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); }
.card:hover::before { transform: scaleY(1); }

.card-row { display: flex; gap: 0; align-items: stretch; }

.card-thumb-wrap {
    flex: 0 0 210px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}
.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(0.18) brightness(0.9) contrast(1.02);
}
.card-thumb-wrap::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(46,43,39,0.15), rgba(46,43,39,0.28));
    pointer-events: none;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.7rem;
    display: flex;
    flex-direction: column;
}
.card-meta {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.card-title { font-size: 1.35rem; margin: 0 0 0.6rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--ink); font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; padding-top: 0.8rem; }
.card-more a {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

@media (max-width: 600px) {
    .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;
    }
    .card-body { padding: 1.2rem 1.2rem; }
}

/* ==================================================================
   Разделители секций
   ================================================================== */
.seal-divider {
    border: none;
    text-align: center;
    margin: 2.6rem 20% 2.6rem;
    position: relative;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
}
.seal-divider::after {
    content: "";
    position: absolute;
    left: 50%; top: 50%;
    width: 22px; height: 22px;
    transform: translate(-50%, -50%);
    background: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 3.6L18.6 4l-.4 4.3 4.2 1.1-2.8 3.3 2.8 3.3-4.2 1.1.4 4.3-4.2-1.6L12 27l-2.4-3.9L5.4 24.7l.4-4.3-4.2-1.1L4.4 16 1.6 12.7l4.2-1.1L5.4 4l4.2 1.6z' fill='%23B3433A' opacity='0.85'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* ==================================================================
   Хлебные крошки
   ================================================================== */
.breadcrumbs {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed var(--line);
}
.breadcrumbs a { color: var(--accent-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--line); }

/* ==================================================================
   Пагинация
   ================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
    justify-content: center;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--font-head);
    color: var(--ink);
    background: var(--bg);
    transition: background-color .25s, color .25s, border-color .25s;
}
.pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; }

/* ==================================================================
   Записи и страницы
   ================================================================== */
.entry {
    background: var(--bg);
}
.entry-header { margin-bottom: 1.6rem; }
.entry-title { margin: 0 0 0.7rem; }
.entry-meta {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { width: 100%; display: block; border-top: 3px solid var(--accent); }
.entry-content p { margin-bottom: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8rem; }
.entry-content img { display: block; height: auto; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(180deg, var(--bg-alt), rgba(179,67,58,0.06));
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
}
table, th, td { border: 1px solid var(--line); }
th, td { padding: 0.7rem 0.9rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--font-head); }

/* ==================================================================
   Комментарии
   ================================================================== */
.comments-area { margin-top: 3rem; }
.comments-title { margin-bottom: 1.4rem; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0 0 0 1.6rem; padding: 0; }
.comment-inner {
    background: var(--sidebar-bg);
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--bg-alt);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.1rem;
}
.comment-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { font-size: 0.78rem; color: var(--muted); }
.comment-await { font-size: 0.85rem; color: var(--accent); }
.comment-reply a { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; }

.comment-respond {
    margin-top: 2rem;
    background: var(--bg-alt);
    padding: 1.6rem 1.7rem;
    border-radius: 2px;
    border-top: 3px solid var(--accent);
}
.comment-form label { display: block; font-family: var(--font-head); font-size: 0.85rem; 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.7rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}
.comment-form .submit,
.comment-form input[type="submit"] {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.75rem 1.6rem;
    border: none;
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

/* ==================================================================
   Форма поиска
   ================================================================== */
.search-form { display: flex; gap: 0.5rem; }
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font-size: 0.95rem;
}
.search-form .search-submit {
    font-family: var(--font-head);
    text-transform: uppercase;
    padding: 0 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

/* ==================================================================
   Подвал
   ================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: #cfc8bf;
    margin-top: 3rem;
    padding: 3rem 0 1.4rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
@media (max-width: 760px) {
    .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
}
.site-footer .widget-title {
    font-family: var(--font-head);
    font-size: 1rem;
    text-transform: lowercase;
    color: #fff;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(255,255,255,0.18);
}
.site-footer .widget { color: #cfc8bf; }
.site-footer a { color: #e4ddd2; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.35rem 0; border-bottom: 1px dotted rgba(255,255,255,0.1); }
.site-footer li:last-child { border-bottom: none; }
.site-footer .post-date { display: block; font-size: 0.76rem; color: #8f887e; }
.footer-copy {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
    font-size: 0.82rem;
    color: #8f887e;
    text-align: center;
}

/* ==================================================================
   Cookie-баннер
   ================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    background: var(--footer-bg);
    color: #e4ddd2;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    border-top: 3px solid var(--accent);
    font-size: 0.9rem;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner .btn { color: #fff; border-color: #fff; }
.cookie-banner .btn:hover { background: var(--accent); border-color: var(--accent); }

/* ==================================================================
   Главная страница
   ================================================================== */
.front { }
.front-wide { width: 85%; margin-inline: auto; }
@media (max-width: 960px) { .front-wide { width: 100%; } }

.front-section { padding: 3rem 0; }
.front-section.alt { background: var(--bg-alt); }

/* Блок 1 — Hero */
.hero {
    padding: 3.6rem 0 3.4rem;
    background: linear-gradient(180deg, var(--bg), var(--bg-alt));
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.4rem;
    align-items: center;
    position: relative;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}
.hero-kicker::before { content: "◆ "; color: var(--accent); }
.hero h1 { font-size: 3.2rem; line-height: 1.1; }
.hero-lead { font-size: 1.1rem; color: var(--ink); max-width: 46ch; margin-bottom: 1.8rem; }
.hero-visual { position: relative; }
.hero-visual img, .hero-visual svg { width: 100%; height: auto; display: block; }
.hero-seal {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    padding: 0.7rem 1rem;
    max-width: 15rem;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(46,43,39,0.25);
    border-radius: 2px;
}
@media (max-width: 860px) { .hero-seal { position: static; transform: none; margin-top: 1.4rem; display: inline-block; } }
@media (max-width: 620px) { .hero h1 { font-size: 2.3rem; } }

/* Блок 2 — Рубрикатор (мозаика) */
.rubrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 1.2rem;
}
.rubric {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.3rem 1.4rem;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--bg-alt);
    border-bottom: 1px solid var(--bg-alt);
    color: var(--ink);
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}
.rubric::after {
    content: "";
    position: absolute; inset: 8px;
    border: 1px dashed transparent;
    transition: border-color .3s ease;
    pointer-events: none;
}
.rubric:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(46,43,39,0.1); }
.rubric:hover::after { border-color: var(--accent); }
.rubric .rubric-icon { position: absolute; top: 1.2rem; left: 1.4rem; width: 40px; height: 40px; color: var(--accent); }
.rubric .rubric-icon svg { width: 100%; height: 100%; }
.rubric .rubric-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; }
.rubric .rubric-sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.2rem; }
.rubric.big { grid-column: span 2; grid-row: span 2; }
@media (max-width: 860px) {
    .rubrics { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .rubric.big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 520px) {
    .rubrics { grid-template-columns: 1fr; }
    .rubric.big { grid-column: span 1; }
}

/* Блок 3 — Таймлайн */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
    content: "";
    position: absolute;
    left: 120px; top: 0; bottom: 0;
    width: 0;
    border-left: 1px dashed var(--accent-2);
}
.tl-step {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 2rem;
    padding: 1.2rem 0 2rem;
}
.tl-num {
    font-family: var(--font-head);
    font-size: 4.2rem;
    font-weight: 700;
    color: rgba(139,124,107,0.22);
    line-height: 1;
    text-align: right;
}
.tl-body { position: relative; padding-left: 1.6rem; }
.tl-body::before {
    content: "";
    position: absolute;
    left: -1.55rem; top: 0.5rem;
    width: 12px; height: 12px;
    background: var(--accent);
    border: 2px solid var(--bg);
    border-radius: 50%;
}
.tl-body h3 { margin: 0 0 0.5rem; }
.tl-check { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.tl-check li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; font-size: 0.94rem; }
.tl-check li::before {
    content: "✓";
    position: absolute; left: 0; top: 0;
    color: var(--accent);
    font-weight: 700;
}
@media (max-width: 620px) {
    .timeline::before { left: 18px; }
    .tl-step { grid-template-columns: 1fr; gap: 0.4rem; padding-left: 2.4rem; }
    .tl-num { text-align: left; font-size: 3rem; }
    .tl-body { padding-left: 0; }
    .tl-body::before { left: -2.4rem; top: 0.6rem; }
}

/* Блок 4 — Статистика / факты */
.stats {
    background:
        linear-gradient(180deg, var(--bg-alt), rgba(179,67,58,0.05)),
        repeating-linear-gradient(0deg, transparent 0 19px, rgba(123,138,136,0.05) 20px),
        repeating-linear-gradient(90deg, transparent 0 19px, rgba(123,138,136,0.05) 20px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 3rem 2.2rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}
@media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stats-grid { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 0 0.4rem; }
.stat-num {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}
.stat-line {
    width: 44px; height: 1px;
    background: var(--accent);
    margin: 0.8rem auto;
}
.stat-label { font-size: 0.86rem; color: var(--muted); }
.stat-seal { width: 22px; height: 22px; margin: 0.6rem auto 0; color: var(--accent-2); opacity: 0.7; }
.stat-seal svg { width: 100%; height: 100%; }

.front-latest .latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }

/* ==================================================================
   Утилиты
   ================================================================== */
.text-illustration {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}
@media (max-width: 760px) { .text-illustration { grid-template-columns: 1fr; } }

.page-hero { padding: 2rem 0 0; }
.archive-title { margin-bottom: 0.4rem; }

.error-404 { text-align: center; padding: 2rem 0; }
.error-404 .code { font-family: var(--font-head); font-size: 6rem; color: var(--accent); line-height: 1; }
.error-404 .search-form { max-width: 440px; margin: 1.6rem auto; }
