/*
Theme Name: dds_bg678top.com
Author: Алексей Громов
Description: Тема для информационного портала о разделе имущества и ипотечных обязательств при разводе.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: imdel
*/

/* ---------- Переменные ---------- */
:root {
    --bg: #F4F6F9;
    --bg-alt: #EBEEF3;
    --dark: #1A1E2C;
    --aside: #E8ECF2;
    --text: #1F242F;
    --accent: #C67A3A;
    --accent-dark: #A9642C;
    --steel: #B0B8C5;
    --muted: #7A8291;
    --line: #E0E4EB;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Служебные правила скрытия ---------- */
.cookie-banner[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke='%231A1E2C' stroke-width='2' opacity='0.05'%3E%3Ccircle cx='110' cy='110' r='84'/%3E%3Ccircle cx='110' cy='110' r='66'/%3E%3Crect x='62' y='92' width='96' height='36'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, rgba(26, 30, 44, 0.035) 0 1px, transparent 1px 7px);
    background-repeat: no-repeat, repeat;
    background-position: right 40px bottom 60px, top left;
    background-attachment: fixed, scroll;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.18;
    color: var(--text);
    margin: 0 0 0.7em;
    letter-spacing: -0.01em;
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-size: 1.08rem;
}
blockquote p:last-child { margin-bottom: 0; }

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

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
pre { overflow-x: auto; padding: 1rem; background: var(--bg-alt); border-radius: 4px; }

/* ---------- Контейнер ---------- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
    transition: transform .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 30, 44, 0.18);
    text-decoration: none;
}
.btn-ghost {
    background: transparent;
    color: var(--dark);
    border-color: var(--dark);
}
.btn-ghost:hover {
    background: var(--text);
    color: #fff;
    text-decoration: none;
}

/* ---------- Шапка ---------- */
.site-head {
    background: var(--dark);
    color: #fff;
    padding: 1.4rem 0;
}
.head-row {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}
.brand-logo, .brand-mark { flex: 0 0 auto; display: block; }
.brand-mark { width: 48px; height: 48px; }
.brand-logo { width: auto; height: 48px; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    max-width: 46ch;
}
.brand-name:hover { color: var(--accent); text-decoration: none; }
.brand-desc {
    display: none;
    margin: 0.3rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--steel);
    max-width: 62ch;
}
.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(176, 184, 197, 0.5);
    color: #fff;
    border-radius: 4px;
    padding: 0.55rem 0.9rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}
.site-nav { flex: 0 0 auto; }
.nav-list {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.nav-list li { margin: 0; }
.nav-list a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 400;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.4rem 0 0;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--steel); margin: 0 0.15rem; }

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

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

.sidebar {
    min-width: 0;
    background: var(--aside);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.4rem;
    color: var(--text);
}

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    margin-bottom: 2.2rem;
    max-width: 24ch;
}
.sec-title h2 {
    display: inline-block;
    margin: 0;
    position: relative;
}
.sec-title h2::before {
    content: "";
    position: absolute;
    left: -26px;
    top: -5px;
    width: 15px;
    height: 15px;
    background: var(--accent);
}
.sec-title::after {
    content: "";
    display: block;
    width: 33%;
    height: 1px;
    background: var(--steel);
    margin-top: 0.9rem;
}
.sec-title.to-right {
    margin-left: auto;
    text-align: right;
}
.sec-title.to-right::after { margin-left: auto; }
.sec-title.to-right h2::before { left: auto; right: -26px; }
.sec-lead {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    max-width: 60ch;
}

/* ---------- Разделитель «японский узел» ---------- */
.knot {
    display: block;
    width: 220px;
    height: 24px;
    margin: 0 auto;
    color: var(--steel);
}

/* ---------- Главная ---------- */
.fw {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.front-section { padding: 4.5rem 0; }
.front-section.alt { background: var(--bg-alt); }

/* Hero */
.fs-hero {
    background: var(--dark);
    color: #fff;
    padding: 5.5rem 0 4.5rem;
}
.fs-hero .hero-inner { max-width: 78%; }
.hero-rule {
    width: 33%;
    height: 6px;
    background: var(--accent);
    margin-bottom: 2.2rem;
}
.fs-hero h1 {
    color: #fff;
    margin-bottom: 1.4rem;
    max-width: 20ch;
}
.hero-quote {
    color: #C9CFDA;
    font-size: 1.15rem;
    font-weight: 300;
    max-width: 62ch;
    margin-bottom: 2.6rem;
}
.hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2.4rem;
    margin-left: 22%;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(176, 184, 197, 0.25);
}
.hero-links a {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    padding-bottom: 4px;
}
.hero-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* Таймлайн */
.timeline {
    position: relative;
    margin-top: 2rem;
    padding-left: 0;
    list-style: none;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--steel);
}
.tl-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    align-items: start;
    margin: 0 0 2.4rem;
}
.tl-item:last-child { margin-bottom: 0; }
.tl-stage {
    text-align: right;
    padding-right: 0.6rem;
    min-width: 0;
}
.tl-stage span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}
.tl-stage strong { font-size: 1.25rem; font-weight: 600; }
.tl-dot {
    position: relative;
    height: 100%;
}
.tl-dot::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--steel);
}
.tl-item.is-active .tl-dot::after {
    background: var(--accent);
    border-color: var(--accent);
}
.tl-body {
    min-width: 0;
    padding-left: 0.6rem;
    color: #3B4453;
    font-size: 0.98rem;
}
.tl-body p { margin: 0; }

/* Текст + иллюстрация */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.2rem;
    align-items: center;
}
.duo-text p:last-child { margin-bottom: 0; }
.duo-figure {
    margin: 0;
    border: 1px solid var(--steel);
    border-radius: 4px;
    padding: 1.2rem;
    background: #fff;
}
.duo-figure img { display: block; width: 100%; }
.duo-figure figcaption {
    margin-top: 0.9rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.doc-corner {
    position: relative;
    overflow: hidden;
}
.doc-corner::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    border-width: 0 0 26px 26px;
    border-style: solid;
    border-color: transparent transparent var(--bg) transparent;
}

/* Статистика */
.stats-block {
    background: linear-gradient(160deg, #F4F6F9 0%, #E8ECF2 100%);
    background-image:
        linear-gradient(160deg, rgba(244, 246, 249, 0.9) 0%, rgba(232, 236, 242, 0.95) 100%),
        repeating-linear-gradient(0deg, #D0D7E0 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, #D0D7E0 0 1px, transparent 1px 40px);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.8rem 2.4rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin-left: 12%;
}
.stat-cell {
    min-width: 0;
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
}
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    display: block;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.stat-cap {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #4A5261;
}

/* Последние записи на главной */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

/* ---------- Карточки записей ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    transition: transform .18s ease, border-color .18s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity .18s ease;
    z-index: 2;
}
.card:hover { transform: translateY(2px); }
.card:hover::before { opacity: 1; }
.card-thumb-wrap { display: block; overflow: hidden; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 0.6rem;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt { color: #4A5261; font-size: 0.95rem; margin-bottom: 1.1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }
.card-more { margin-top: auto; align-self: flex-start; }

.entry-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.entry-meta a { color: var(--muted); }
.entry-meta a:hover { color: var(--accent); }
.meta-dot {
    width: 4px;
    height: 4px;
    background: var(--steel);
    display: inline-block;
}

/* Горизонтальная карточка в ленте */
.card-row {
    flex-direction: row;
    border-radius: 4px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    background: transparent;
    margin-bottom: 1.8rem;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    min-height: 190px;
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
}
.card-row .card-body { padding: 0.2rem 0 1.6rem 1.6rem; }
.card-row.no-thumb .card-body { padding-left: 0; }
.card-row:hover { transform: translateY(2px); }

/* ---------- Запись и страница ---------- */
.entry-head { margin-bottom: 1.8rem; }
.entry-head h1 { font-size: 2.6rem; margin-bottom: 0.7rem; }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 4px; }
.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2.2rem; font-size: 1.8rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content img { border-radius: 4px; display: block; }
.entry-content ul li::marker { color: var(--accent); }

.page-title-block { margin-bottom: 2.2rem; }
.page-title-block h1 { font-size: 2.8rem; }
.page-title-block::after {
    content: "";
    display: block;
    width: 33%;
    max-width: 220px;
    height: 1px;
    background: var(--steel);
    margin-top: 1rem;
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-size: 0.92rem;
}
.pager .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ---------- Виджеты ---------- */
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 0.6rem; line-height: 1.5; }
.widget p:last-child { margin-bottom: 0; }

.sidebar .widget-title { color: var(--text); }
.sidebar .widget, .sidebar p, .sidebar li { color: var(--text); font-size: 0.95rem; }
.sidebar a { color: var(--text); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { color: var(--muted); font-size: 0.82rem; }
.sidebar .widget li { border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; }
.sidebar .widget li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 0.5rem;
}
.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    flex: 0 0 auto;
    padding: 0.65rem 1.2rem;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
}
.search-form button:hover { background: var(--accent-dark); }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.comments-area h2 { font-size: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-item { margin-bottom: 1.4rem; }
.comment-inner {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.2rem 1.4rem;
}
.comment-head {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
.comment-author { font-weight: 600; }
.comment-head time { font-size: 0.82rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 0.6rem; font-size: 0.88rem; }
.comment-await { color: var(--muted); font-size: 0.9rem; }

.comment-respond { margin-top: 1.6rem; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 85%;
    max-width: 640px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
}
.comment-form textarea { width: 100%; max-width: none; }
.comment-form .submit {
    padding: 0.75rem 1.6rem;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent-dark); }

/* ---------- 404 ---------- */
.err-block { padding: 2rem 0 3rem; }
.err-code {
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}
.err-actions { margin-top: 1.6rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.err-search { margin-top: 2rem; max-width: 520px; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--dark);
    color: #C9CFDA;
    padding: 3.4rem 0 1.8rem;
    margin-top: 2rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.foot-cols .widget-title {
    color: #fff;
    border-bottom-color: rgba(176, 184, 197, 0.3);
}
.foot-cols .widget,
.foot-cols p,
.foot-cols li { color: #C9CFDA; font-size: 0.93rem; }
.foot-cols a { color: #E4E8EE; }
.foot-cols a:hover { color: var(--accent); }
.foot-cols .post-date { color: var(--steel); }
.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(176, 184, 197, 0.22);
    font-size: 0.85rem;
    color: var(--steel);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    background: var(--dark);
    color: #E4E8EE;
    border-top: 2px solid var(--accent);
    padding: 1rem 1.6rem;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; max-width: 78ch; }
.cookie-banner a { color: var(--accent); }
.cookie-accept {
    flex: 0 0 auto;
    padding: 0.6rem 1.5rem;
    border: 0;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.cookie-accept:hover { background: var(--accent-dark); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.7rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .fw { width: 100%; }
    .fs-hero .hero-inner { max-width: 100%; }
    .hero-links { margin-left: 0; gap: 1.6rem; }
    .duo { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: 0; }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.5rem; }
    .entry-head h1, .page-title-block h1 { font-size: 1.9rem; }

    .head-row { gap: 1rem; }
    .site-nav { flex: 1 1 100%; }
    .nav-list { flex-direction: column; gap: 0.9rem; }

    .front-section { padding: 3rem 0; }
    .fs-hero { padding: 3.4rem 0 3rem; }
    .hero-links a { font-size: 1.1rem; }

    .sec-title h2::before { display: none; }

    .timeline::before { left: 7px; }
    .tl-item { grid-template-columns: 20px minmax(0, 1fr); gap: 0 0.9rem; }
    .tl-stage { grid-column: 2; text-align: left; padding-right: 0; margin-bottom: 0.4rem; }
    .tl-dot { grid-column: 1; grid-row: 1 / span 2; }
    .tl-dot::after { left: 7px; }
    .tl-body { grid-column: 2; padding-left: 0; }

    .stats-block { padding: 1.8rem 1.4rem; }
    .stats-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; margin-left: 0; }
    .stat-cell { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
    .stat-cell:first-child { border-top: 0; padding-top: 0; }

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

    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-row .card-body { padding: 1.1rem 0 1.4rem; }

    .duo-figure { padding: 0.8rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; font-size: 0.85rem; }
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"] { width: 100%; }
}

@media (min-width: 961px) {
    .nav-toggle { display: none; }
    .nav-list { display: flex !important; }
    .brand-desc { display: block; }
}
