/*
Theme Name: dds_silverfoxsecure.com
Author: Алексей Громов
Description: Тема для информационно-аналитического портала о безопасных финансовых инструментах при покупке недвижимости.
Version: 1.1
Text Domain: sfsecure
*/

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
    --bg: #14161a;
    --bg-alt: #1c1f26;
    --bg-dark: #0f1114;
    --bg-side: #1a1d23;
    --txt: #e8eaed;
    --acc: #a8b8c8;
    --acc2: #7a9bb5;
    --mut: #6b7280;
    --line: #2a2e36;
    --line2: #22262e;
    --font-h: "Inter Tight", "Inter", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    --font-b: "Inter", "Open Sans", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ============ СЛУЖЕБНЫЕ ПРАВИЛА СКРЫТИЯ ============ */
.cookie-banner[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, #1a1d23 0, #1a1d23 1px, transparent 1px, transparent 12px);
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 280px;
    height: 280px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M20 34 L62 78 L100 62 L138 78 L180 34 L172 96 L152 128 L152 168 L100 186 L48 168 L48 128 L28 96 Z' fill='none' stroke='%23a8b8c8' stroke-width='4'/%3E%3Cpath d='M70 104 L86 112 L70 120 Z M130 104 L114 112 L130 120 Z' fill='%23a8b8c8'/%3E%3Cpath d='M100 132 L88 146 L100 154 L112 146 Z' fill='none' stroke='%23a8b8c8' stroke-width='4'/%3E%3C/svg%3E");
}

.page-shell { position: relative; z-index: 1; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-h);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--acc);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover {
    color: var(--acc2);
    text-decoration-thickness: 2px;
}

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

blockquote {
    position: relative;
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--txt);
    font-size: 1.1rem;
}

blockquote::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: var(--acc);
}

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

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

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

th { background: var(--bg-alt); color: #fff; font-family: var(--font-h); }

code, pre {
    background: var(--bg-dark);
    color: var(--acc);
    font-family: Consolas, "Courier New", monospace;
}

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

/* ============ КОНТЕЙНЕР ============ */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ============ КНОПКИ ============ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.7rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--font-h);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: none;
}

.btn:hover,
.btn:focus {
    background: var(--acc);
    color: #14161a;
    text-decoration: none;
}

/* ============ ШАПКА ============ */
.site-top {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--line);
}

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

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

.brand:hover { text-decoration: none; }

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

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

.brand-name {
    display: block;
    font-family: var(--font-h);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    max-width: 30ch;
}

.brand-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--mut);
    line-height: 1.4;
    max-width: 52ch;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--font-h);
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle:hover { background: var(--acc); color: #14161a; }

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

.main-nav li { margin: 0; }

.main-nav a {
    display: inline-block;
    padding: 0.3rem 0;
    color: var(--txt);
    font-family: var(--font-h);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

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

.seal-bar { height: 3px; background: var(--acc); }

/* ============ ОСНОВНАЯ ОБЛАСТЬ ============ */
.site-main { padding: 2.6rem 0 3.4rem; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3rem;
    align-items: start;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single { width: 100%; }
}

/* ============ ХЛЕБНЫЕ КРОШКИ ============ */
.breadcrumbs {
    margin-bottom: 1.6rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--mut);
}

.breadcrumbs a { color: var(--acc); text-decoration: none; }
.breadcrumbs a:hover { color: var(--acc2); text-decoration: underline; }
.breadcrumbs .sep { color: var(--mut); margin: 0 0.35rem; }

/* ============ ЗАГОЛОВКИ СЕКЦИЙ ============ */
.sect-title {
    position: relative;
    margin: 0 0 1.8rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--acc);
    font-size: 1.9rem;
}

.sect-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.7rem;
    vertical-align: 0.18em;
    background: var(--acc);
}

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

/* ============ РАЗДЕЛИТЕЛЬ С РОМБОМ ============ */
.sect-rule {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0;
}

.sect-rule::before,
.sect-rule::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--line);
}

.sect-rule span {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    background: var(--acc);
    transform: rotate(45deg);
}

/* ============ ГЛАВНАЯ: ОБЩЕЕ ============ */
.front-section { padding: 3.4rem 0; }

.front-section.alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, #22262e 0, #22262e 1px, transparent 1px, transparent 12px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.front-lead { color: var(--mut); max-width: 74ch; }

/* ============ БЛОК 1: HERO ============ */
.fs-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background-color: var(--bg-dark);
}

.fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3;
}

.fs-hero-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 2.2rem;
    width: min(92%, 1180px);
    margin-inline: auto;
}

.fs-hero-inner::before {
    content: "";
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    width: 6px;
    height: 6px;
    background: var(--acc);
}

.fs-hero h1 {
    max-width: 22ch;
    margin-bottom: 1.1rem;
    color: #fff;
}

.fs-hero-sub {
    max-width: 62ch;
    margin-bottom: 2rem;
    color: var(--mut);
    font-size: 1.08rem;
}

/* ============ БЛОК 2: СТАТИСТИКА ============ */
.fs-stats { padding: 3.4rem 2.2rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
}

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

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

.stat-num {
    display: block;
    font-family: var(--font-h);
    font-size: 3rem;
    font-weight: 700;
    color: var(--acc);
    line-height: 1.1;
}

.stat-cap {
    display: block;
    margin-top: 0.5rem;
    color: var(--mut);
    font-size: 0.92rem;
}

/* ============ БЛОК: ПОСЛЕДНИЕ ЗАПИСИ ============ */
.fs-latest { padding: 3.4rem 0; }

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

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

/* ============ БЛОК 3: ШАГИ ============ */
.fs-steps { padding: 3.4rem 2.2rem; }

.steps-chain {
    position: relative;
    margin-top: 2rem;
    padding-left: 2.2rem;
}

.steps-chain::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0;
    width: 1px;
    background: var(--acc);
}

.step-item {
    position: relative;
    margin-bottom: 1.3rem;
    padding: 1.5rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    min-width: 0;
}

.step-item:last-child { margin-bottom: 0; }

.step-item::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: -2.2rem;
    width: 2.2rem;
    height: 1px;
    background: var(--acc);
}

.step-num {
    display: inline-block;
    padding-bottom: 0.2rem;
    border-bottom: 1px solid var(--acc);
    font-family: var(--font-h);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--acc);
    line-height: 1;
}

.step-item h3 { margin: 0.9rem 0 0.5rem; font-size: 1.25rem; }
.step-item p { margin: 0; color: var(--mut); }

/* ============ БЛОК 4: CTA ============ */
.fs-cta-wrap { padding: 3.4rem 0; }

.fs-cta {
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
    padding: 3rem 2.4rem;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, #22262e 0, #22262e 1px, transparent 1px, transparent 12px);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.fs-cta::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: 6px;
    height: 6px;
    background: var(--acc);
}

.fs-cta-fox {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 150px;
    height: 150px;
    opacity: 0.12;
    pointer-events: none;
}

.fs-cta-text {
    position: relative;
    z-index: 2;
    max-width: 62ch;
    margin: 0 0 1.8rem;
    font-family: var(--font-h);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.fs-cta .btn { position: relative; z-index: 2; }

/* ============ КАРТОЧКИ ЗАПИСЕЙ ============ */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 2px 0 0 #0f1114;
}

.card:hover {
    border-color: var(--acc);
    box-shadow: none;
    transform: translateY(2px);
}

.card-thumb {
    display: block;
    border-bottom: 1px solid var(--acc);
    overflow: hidden;
}

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

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

.card-title {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.card-title a { color: #fff; text-decoration: none; }
.card-title a:hover { color: var(--acc); }

.card-meta {
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--mut);
}

.card-excerpt { color: var(--txt); font-size: 0.94rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot { margin-top: auto; padding-top: 1.1rem; }

.card-foot .btn { padding: 0.5rem 1.2rem; font-size: 0.85rem; }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.8rem;
    padding: 0;
    list-style: none;
}

.tag-list li { margin: 0; }

.cat-tag {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    background: var(--line);
    border-radius: 2px;
    color: var(--acc);
    font-size: 0.75rem;
    text-decoration: none;
    letter-spacing: 0.03em;
}

.cat-tag:hover { background: var(--acc); color: #14161a; text-decoration: none; }

/* Горизонтальная карточка (лента блога / архив) */
.card-row {
    flex-direction: row;
    align-items: stretch;
    margin-bottom: 1.6rem;
}

.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--acc);
}

.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%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--acc);
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ============ ЗАПИСЬ И СТРАНИЦА ============ */
.entry {
    padding: 1.8rem 2rem 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.entry-title { margin-bottom: 0.7rem; font-size: 2.3rem; }

.entry-meta {
    margin-bottom: 1.4rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--mut);
}

.entry-thumb {
    margin-bottom: 1.6rem;
    border-bottom: 1px solid var(--acc);
}

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

.entry-content h2 { margin-top: 1.8rem; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content img { display: block; border-radius: 4px; }

.entry-content ul li::marker,
.entry-content ol li::marker { color: var(--acc); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    margin-top: 1.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

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

/* ============ САЙДБАР ============ */
.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--txt);
}

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

.sidebar .widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--acc);
    font-family: var(--font-h);
    font-size: 1.1rem;
    color: #fff;
}

.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { margin-bottom: 0.7rem; color: var(--txt); }

.sidebar a { color: var(--txt); text-decoration: none; }
.sidebar a:hover { color: var(--acc); text-decoration: underline; }

.sidebar .post-date,
.sidebar .rss-date { display: block; color: var(--mut); font-size: 0.8rem; }

/* ============ ПОИСК ============ */
.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 0.92rem;
}

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

.search-form button {
    flex: 0 0 auto;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--font-h);
    font-size: 0.9rem;
    cursor: pointer;
}

.search-form button:hover { background: var(--acc); color: #14161a; }

/* ============ ПАГИНАЦИЯ ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--acc);
    font-family: var(--font-h);
    font-size: 0.92rem;
    text-decoration: none;
}

.pager a.page-numbers:hover {
    background: var(--acc);
    border-color: var(--acc);
    color: #14161a;
}

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #14161a;
}

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

/* ============ КОММЕНТАРИИ ============ */
.comments-area {
    margin-top: 2.2rem;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.comments-title {
    margin-bottom: 1.4rem;
    font-family: var(--font-h);
    font-size: 1.4rem;
}

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

.comment-item {
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.comment-head {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--mut);
}

.comment-author { color: #fff; font-family: var(--font-h); font-weight: 600; }

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

.comment-form label { display: block; margin-bottom: 0.3rem; font-size: 0.88rem; color: var(--mut); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: var(--bg-dark);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--txt);
    font-family: var(--font-b);
    font-size: 0.95rem;
}

.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--acc); }

.comment-form .form-submit input[type="submit"] {
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--font-h);
    font-weight: 600;
    cursor: pointer;
}

.comment-form .form-submit input[type="submit"]:hover { background: var(--acc); color: #14161a; }

/* ============ 404 ============ */
.err-box { padding: 2.4rem 2rem; text-align: left; }
.err-code {
    font-family: var(--font-h);
    font-size: 5rem;
    font-weight: 700;
    color: var(--acc);
    line-height: 1;
}
.err-box .search-form { max-width: 420px; margin: 1.5rem 0; }

/* ============ ПОДВАЛ ============ */
.site-foot {
    background: var(--bg-dark);
    border-top: 1px solid var(--line);
    color: var(--txt);
}

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

.foot-col { min-width: 0; color: var(--txt); font-size: 0.92rem; }

.foot-col .widget-title {
    margin: 0 0 1rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--acc);
    font-family: var(--font-h);
    font-size: 1.05rem;
    color: #fff;
}

.foot-col ul { margin: 0; padding: 0; list-style: none; }
.foot-col li { margin-bottom: 0.6rem; }
.foot-col a { color: var(--txt); text-decoration: none; }
.foot-col a:hover { color: var(--acc); text-decoration: underline; }
.foot-col p { color: var(--txt); }
.foot-col .post-date { display: block; color: var(--mut); font-size: 0.8rem; }

.foot-bottom {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid var(--line);
    color: var(--mut);
    font-size: 0.85rem;
}

/* ============ COOKIE-БАННЕР ============ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--bg-dark);
    border-top: 1px solid var(--acc);
    color: var(--txt);
    font-size: 0.88rem;
}

.cookie-banner p { margin: 0; max-width: 78ch; min-width: 0; }
.cookie-banner .btn { padding: 0.5rem 1.3rem; font-size: 0.85rem; }

/* ============ СЛУЖЕБНОЕ ============ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.comment-list ol.children { margin: 1rem 0 0 1.4rem; padding: 0; list-style: none; }
.comment-actions { margin-top: 0.6rem; font-size: 0.85rem; }
.comment-actions a { color: var(--acc); text-decoration: none; }
.comment-actions a:hover { text-decoration: underline; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .comment-notes,
.comment-form .comment-form-cookies-consent label { color: var(--mut); font-size: 0.85rem; }
.comment-reply-title { font-family: var(--font-h); font-size: 1.2rem; color: #fff; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--mut); font-size: 0.85rem; }
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ============ АДАПТИВ ============ */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }
    .sect-title { font-size: 1.6rem; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat-cell:nth-child(odd) { border-left: none; padding-left: 0; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-hero-inner { padding: 3.4rem 1.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 1.95rem; }
    .entry-title { font-size: 1.7rem; }
    .page-title { font-size: 1.8rem; }
    .err-code { font-size: 3.4rem; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none;
        flex-basis: 100%;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; }
    .main-nav a { display: block; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
    .cards-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: none; padding-left: 0; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .front-section { padding: 2.4rem 0; }
    .fs-stats, .fs-steps { padding: 2.4rem 1.4rem; }
    .fs-cta { padding: 2rem 1.4rem; }
    .fs-cta-text { font-size: 1.3rem; }
    .fs-cta-fox { width: 90px; height: 90px; opacity: 0.08; }
    .entry { padding: 1.4rem 1.2rem 1.6rem; }
    .comments-area { padding: 1.2rem 1.1rem; }
    .steps-chain { padding-left: 1.4rem; }
    .step-item::before { left: -1.4rem; width: 1.4rem; }
    .step-item { padding: 1.2rem 1.2rem; }
    .sidebar { padding: 1.2rem 1.1rem; }
    body::after { width: 160px; height: 160px; }
    .cookie-banner { padding: 0.9rem 1.1rem; }
}
