/*
Theme Name: dds_bfgfmoneyblog.com
Author: Максим Руднев
Description: Тема для информационного сайта о личных финансах, инвестициях и капитале. Холодная лавандовая палитра, строгая типографика, акцентные вертикали у заголовков.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lavfin
*/

:root {
    --bg: #F8F7FC;
    --bg-alt: #F0EEF7;
    --dark: #1A1829;
    --text: #1F1A2E;
    --accent: #7C5CBF;
    --accent-dark: #5E3E9E;
    --accent-2: #B8A6D9;
    --muted: #9A8DB5;
    --line: #E0D9F0;
    --dot: #D6CCE8;
    --head-font: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --body-font: "Public Sans", "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.72;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(var(--dot) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
}

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

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

.entry-content a,
.widget a,
.crumbs a,
.site-footer a,
.card-excerpt a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 1px;
    transition: background-size .25s ease, color .2s ease;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover,
.card-excerpt a:hover { background-size: 100% 1px; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .4em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.3rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}

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

code, pre {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .92em;
    background: var(--bg-alt);
}

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

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

th, td {
    border: 1px solid var(--line);
    padding: .65rem .8rem;
    text-align: left;
}

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

/* ---------- Контейнеры ---------- */

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

.shell-wide {
    width: min(85%, 1240px);
    margin-left: auto;
    margin-right: auto;
}

.layout-single {
    display: block;
    width: min(85%, 1240px);
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 3.4rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    row-gap: 2.5rem;
    width: min(92%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 3.4rem;
    align-items: start;
}

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

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: .97rem;
    letter-spacing: .01em;
    padding: .78rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .22);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, .18);
}

.btn-ghost-light {
    background: transparent;
    color: #fff;
    border: 1px solid var(--accent-2);
}

.btn-ghost-light:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: var(--dark);
    box-shadow: inset 0 2px 6px rgba(26, 24, 41, .2);
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--dark);
}

.btn-light:hover {
    background: #fff;
    border-color: #fff;
    color: var(--dark);
    box-shadow: inset 0 2px 8px rgba(26, 24, 41, .25);
}

/* ---------- Шапка ---------- */

.site-top {
    background: var(--dark);
    position: relative;
    border-bottom: 1px solid rgba(184, 166, 217, .18);
}

.top-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 260px;
}

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

.brand-mark { display: block; flex: 0 0 auto; }

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #fff;
}

a.brand-name:hover { color: var(--accent-2); }

.brand-desc {
    display: block;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--accent-2);
    margin-top: .3rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 1px solid rgba(184, 166, 217, .5);
    color: #fff;
    font-family: var(--head-font);
    font-size: .9rem;
    padding: .55rem .95rem;
    border-radius: 4px;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    font-family: var(--head-font);
    font-weight: 600;
    font-size: .95rem;
    color: #EFEBF7;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.main-nav a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

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

/* ---------- Хлебные крошки ---------- */

.crumbs-band { border-bottom: 1px solid var(--line); background: rgba(248, 247, 252, .75); }

.crumbs {
    padding: .85rem 0;
    font-size: .87rem;
    color: var(--muted);
}

.crumbs a { color: var(--accent); }

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

/* ---------- Заголовки секций ---------- */

.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin: 0 0 1.6rem;
    font-size: 1.85rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 2px;
    background: var(--accent);
}

.sec-title .sec-mark {
    display: block;
    height: 6px;
    background: var(--accent-2);
    margin-top: .55rem;
    max-width: 220px;
    border-radius: 2px;
}

.sec-title-light { color: #fff; }
.sec-title-light::before { background: var(--accent-2); }

/* ---------- Главная: секции ---------- */

.front-section { padding: 4.2rem 0; }

.front-section-alt { background: var(--bg-alt); }

.front-lead {
    color: var(--muted);
    max-width: 720px;
    margin-bottom: 2.2rem;
}

/* Hero */

.fs-hero {
    background-color: var(--dark);
    background-image: repeating-linear-gradient(135deg, rgba(74, 59, 107, .55) 0 1px, transparent 1px 22px);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 5.2rem;
}

.fs-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -190px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: .15;
    filter: blur(40px);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr);
    gap: 3rem;
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero-kicker {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(184, 166, 217, .4);
    border-radius: 4px;
    padding: .35rem .8rem;
    margin-bottom: 1.4rem;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    line-height: 1.08;
    margin: 0 0 1.1rem;
}

.hero-sub {
    color: #CFC4E4;
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero-art { min-width: 0; display: flex; justify-content: flex-end; }

.hero-art svg { display: block; width: 100%; max-width: 340px; height: auto; }

/* Чек-лист */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.check-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.15rem 1.4rem;
    margin: 0;
    min-width: 0;
    transition: border-color .2s ease, transform .2s ease;
}

.check-item:hover { border-color: var(--accent); transform: translateY(-2px); }

.check-icon { flex: 0 0 auto; margin-top: .2rem; }

.check-icon svg { display: block; }

.check-body { min-width: 0; }

.check-body strong {
    display: block;
    font-family: var(--head-font);
    font-size: 1.05rem;
    margin-bottom: .25rem;
}

.check-body span { display: block; color: #4A4159; font-size: .96rem; line-height: 1.6; }

/* Статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.stat-cell {
    padding: 2rem 1.4rem;
    text-align: center;
    border-right: 1px solid var(--line);
    min-width: 0;
}

.stat-cell:last-child { border-right: 0; }

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.7rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    margin-top: .7rem;
    color: var(--muted);
    font-size: .92rem;
    line-height: 1.5;
}

/* CTA */

.fs-cta-wrap { padding: 3.4rem 0 4.6rem; }

.fs-cta {
    background: linear-gradient(120deg, #7C5CBF 0%, #B8A6D9 100%);
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    padding: 3rem 2.6rem 4.2rem;
    border-radius: 10px;
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.fs-cta-copy { flex: 1 1 380px; min-width: 0; }

.fs-cta h2 { color: #fff; font-size: 2rem; margin-bottom: .6rem; }

.fs-cta p { color: rgba(255, 255, 255, .92); margin: 0; max-width: 620px; }

/* ---------- Последние записи на главной ---------- */

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

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
    transition: border-color .2s ease, transform .2s ease;
}

.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card-thumb { display: block; }

.card-thumb a { display: block; }

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

.card-thumb-blank {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(120deg, #EDE8F6 0%, #DCD2EE 100%);
    position: relative;
}

.card-thumb-blank::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--accent-2);
    border-radius: 6px;
}

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

.card-title {
    font-size: 1.16rem;
    margin: 0 0 .55rem;
    line-height: 1.32;
}

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

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

.entry-meta {
    font-size: .82rem;
    color: var(--muted);
    font-family: var(--head-font);
    margin-bottom: .75rem;
}

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

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

.meta-sep { margin: 0 .3rem; color: var(--accent-2); }

.card-excerpt { color: #4A4159; font-size: .96rem; }

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

.card-more {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--head-font);
    font-weight: 600;
    font-size: .93rem;
    color: var(--accent);
}

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

/* Карточки в ленте блога/архивов */

.post-list { display: grid; gap: 1.7rem; }

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

.has-side .post-list .cards-grid { grid-template-columns: minmax(0, 1fr); }

/* ---------- Сайдбар ---------- */

.sidebar {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.5rem;
    min-width: 0;
}

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

.sidebar .widget-title {
    font-size: 1.08rem;
    color: var(--text);
    margin-bottom: .9rem;
    padding-left: .75rem;
    position: relative;
}

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

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

.sidebar .widget li {
    margin: 0 0 .7rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
    line-height: 1.45;
}

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

.sidebar .widget a { color: var(--text); font-size: .95rem; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget p { color: #4A4159; font-size: .94rem; }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }

/* ---------- Записи и страницы ---------- */

.entry-head { margin-bottom: 1.6rem; }

.entry-title { font-size: 2.2rem; margin-bottom: .6rem; }

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--line);
}

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

.entry-content h2 { margin-top: 2rem; font-size: 1.6rem; padding-left: .9rem; position: relative; }

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

.entry-content h3 { margin-top: 1.6rem; }

.entry-content img { border-radius: 6px; display: block; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .2rem .6rem;
    margin: 0 .3rem .4rem 0;
    color: var(--accent);
}

.entry-tags a:hover { border-color: var(--accent); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--head-font);
    font-size: .95rem;
}

.post-nav a { min-width: 0; }

.page-title-block { margin-bottom: 1.8rem; }

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--text);
    font-family: var(--head-font);
    font-weight: 600;
    font-size: .93rem;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.pager a.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);
    min-width: 24px;
}

/* ---------- Форма поиска ---------- */

.search-form {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: .72rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--body-font);
    font-size: .96rem;
    color: var(--text);
}

.search-form input[type="search"]:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }

.search-form button { flex: 0 0 auto; }

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

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

.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.4rem; border-left: 2px solid var(--line); }

.comment-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

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

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

.comment-actions { font-size: .9rem; font-family: var(--head-font); }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem 1.6rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--body-font);
    font-size: .96rem;
    color: var(--text);
}

.comment-respond textarea { min-height: 140px; }

.comment-respond .submit {
    display: inline-block;
    font-family: var(--head-font);
    font-weight: 600;
    padding: .78rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.comment-respond .submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .22); }

/* ---------- 404 ---------- */

.err-block { padding: 3rem 0 4rem; text-align: left; }

.err-code {
    font-family: var(--head-font);
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: .6rem;
}

.err-tools { margin-top: 1.6rem; display: grid; gap: 1.2rem; max-width: 520px; }

/* ---------- Подвал ---------- */

.site-footer {
    background: var(--dark);
    color: #D8D1E6;
    margin-top: 3rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 3.2rem 0 2.4rem;
}

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

.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-left: .75rem;
    position: relative;
}

.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 2px;
    background: var(--accent-2);
}

.site-footer p { color: #C3BAD6; font-size: .94rem; }

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

.site-footer li { margin-bottom: .55rem; line-height: 1.5; }

.site-footer a { color: #E4DFF0; font-size: .94rem; }

.site-footer a:hover { color: var(--accent-2); }

.site-footer .post-date { display: block; color: var(--muted); font-size: .8rem; }

.footer-bottom {
    border-top: 1px solid rgba(184, 166, 217, .2);
    padding: 1.3rem 0;
    font-size: .88rem;
    color: #A79CBE;
}

/* ---------- Cookie ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--dark);
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    justify-content: space-between;
}

.cookie-text {
    flex: 1 1 340px;
    min-width: 0;
    color: #D8D1E6;
    font-size: .92rem;
    margin: 0;
}

.cookie-text a { color: var(--accent-2); }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        width: min(92%, 720px);
    }

    .layout-single { width: min(92%, 720px); }

    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }

    .hero-art { justify-content: flex-start; }

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

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

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

    .stat-cell:nth-child(2) { border-right: 0; }
    .stat-cell:nth-child(1),
    .stat-cell:nth-child(2) { border-bottom: 1px solid var(--line); }

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

@media (max-width: 600px) {
    body { font-size: 16px; }

    .shell-wide { width: 92%; }

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

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

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

    .main-nav ul { flex-direction: column; gap: .2rem; }

    .main-nav a {
        display: block;
        padding: .6rem 0;
        border-bottom: 1px solid rgba(184, 166, 217, .18);
    }

    .front-section { padding: 3rem 0; }

    .fs-hero { padding: 3.4rem 0 3.6rem; }

    .hero-title { font-size: 2.1rem; }

    .hero-sub { font-size: 1rem; }

    .cards-grid,
    .post-list .cards-grid { grid-template-columns: minmax(0, 1fr); }

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

    .stat-cell { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat-cell:last-child { border-bottom: 0; }

    .fs-cta { padding: 2rem 1.4rem 3rem; clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }

    .fs-cta h2 { font-size: 1.6rem; }

    .fs-cta-wrap { padding: 2.4rem 0 3.2rem; }

    .check-item { padding: 1rem 1.1rem; }

    .sidebar { padding: 1.3rem 1.2rem; }

    .comment-respond { padding: 1.2rem 1.1rem; }

    .entry-title { font-size: 1.7rem; }

    .err-code { font-size: 3.6rem; }

    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.9rem; padding: 2.4rem 0 1.8rem; }

    .sec-title { font-size: 1.5rem; }
}

/* ---------- Служебное ---------- */

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

.comment-notes,
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: .35rem;
    font-family: var(--head-font);
}

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

.comment-respond .comment-form-cookies-consent label {
    display: inline;
    color: var(--text);
    font-size: .9rem;
}

.comment-respond .comment-form-cookies-consent input { width: auto; }

.comment-reply-title { font-size: 1.25rem; margin-bottom: 1rem; }

.wp-caption { max-width: 100%; }

.wp-caption-text,
.wp-block-image figcaption {
    color: var(--muted);
    font-size: .87rem;
    text-align: left;
}

.alignleft { float: left; margin: .4rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .4rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.entry-content::after { content: ""; display: table; clear: both; }

.sticky .card-title::before {
    content: "Закреплено";
    display: block;
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .35rem;
}
