/*
Theme Name: dds_lyubercy-nedvizhimost.ru
Author: Алексей Громов
Description: Информационно-образовательная тема «Портал сделок» для платформы о недвижимости. Японский минимализм, холодная индиго-палитра, асимметричная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: portsd
*/

/* ==========  ПЕРЕМЕННЫЕ  ========== */
:root {
    --bg: #F7F9FC;
    --bg-alt: #EDF1F7;
    --head-bg: #FFFFFF;
    --foot-bg: #1B2A41;
    --side-bg: #F0F4F9;
    --ink: #1B2A41;
    --accent: #2F5D8C;
    --accent-2: #5FA8D3;
    --muted: #6B7C93;
    --line: #D9E2EC;
    --f-head: "Inter Tight", "Manrope", "Segoe UI", Arial, sans-serif;
    --f-body: "Source Sans 3", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='200' viewBox='0 0 260 200'%3E%3Cg fill='none' stroke='%23D9E2EC' stroke-width='2' opacity='0.2'%3E%3Crect x='10' y='90' width='46' height='100'/%3E%3Crect x='66' y='50' width='34' height='140'/%3E%3Crect x='110' y='110' width='52' height='80'/%3E%3Crect x='172' y='30' width='38' height='160'/%3E%3Crect x='220' y='96' width='30' height='94'/%3E%3Cpath d='M0 190h260'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(232, 238, 245, 0.3) 0 1px, transparent 1px 12px);
    background-repeat: no-repeat, repeat;
    background-position: right -20px bottom 20px, 0 0;
    background-attachment: fixed, fixed;
}

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

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

.entry-content a,
.widget a,
.site-desc a {
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size 0.22s ease;
}

.entry-content a:hover,
.widget a:hover,
.site-desc a:hover { background-size: 100% 1px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--ink);
    line-height: 1.22;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent-2);
    color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: "IBM Plex Mono", Consolas, monospace; font-size: 0.92em; }
pre { overflow-x: auto; padding: 1rem; background: var(--bg-alt); border: 1px solid var(--line); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    border: 1px solid var(--line);
    font-size: 0.97rem;
}
th, td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }
th { background: var(--bg-alt); font-family: var(--f-head); font-weight: 600; }

/* Точка-маркер у заголовков контента */
.entry-content h2,
.entry-content h3,
.block-sub {
    position: relative;
    padding-left: 18px;
}
.entry-content h2::before,
.entry-content h3::before,
.block-sub::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 50%;
}

.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;
}

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

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

/* ==========  ВЕРХНЯЯ ПОЛОСА  ========== */
.top-bar {
    display: flex;
    height: 4px;
}
.top-bar span { display: block; height: 4px; }
.top-bar span:nth-child(1) { flex: 4; background: #2F5D8C; }
.top-bar span:nth-child(2) { flex: 3; background: #5FA8D3; }
.top-bar span:nth-child(3) { flex: 2; background: #1B2A41; }

/* ==========  ШАПКА  ========== */
.site-head {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
    position: static;
}
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}
.brand-logo { display: block; width: auto; max-height: 52px; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand-text { min-width: 0; }
.site-name {
    display: block;
    font-family: var(--f-head);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}
a.site-name:hover { color: var(--accent); }
.site-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 460px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    font-family: var(--f-head);
    font-size: 0.9rem;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 2px;
    cursor: pointer;
}
.nav-toggle:hover { background: var(--accent); color: #fff; }

.main-nav ul {
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-nav li { margin: 0; }
.main-nav a {
    display: inline-block;
    font-family: var(--f-head);
    font-size: 0.98rem;
    color: var(--ink);
    padding: 0.2rem 0;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size 0.22s ease, color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); background-size: 100% 1px; }
.main-nav .current-menu-item > a { color: var(--accent); background-size: 100% 1px; }
.main-nav ul ul {
    display: none;
    position: absolute;
    z-index: 30;
    flex-direction: column;
    gap: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    background: #fff;
    border: 1px solid var(--line);
}
.main-nav li { position: relative; }
.main-nav li:hover > ul { display: flex; }
.main-nav ul ul a { display: block; padding: 0.4rem 1rem; }

/* ==========  КНОПКИ  ========== */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-size: 0.98rem;
    line-height: 1.2;
    padding: 0.8rem 1.6rem;
    border-radius: 2px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

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

.btn-light {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ==========  ЗАГОЛОВКИ СЕКЦИЙ  ========== */
.sec-title {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 2rem;
    font-size: 2rem;
}
.sec-title::before {
    content: "";
    flex: 0 0 40px;
    height: 1px;
    background: var(--accent-2);
}

/* ==========  ХЛЕБНЫЕ КРОШКИ  ========== */
.breadcrumbs {
    padding: 1.3rem 0 0;
    font-size: 0.86rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.45rem; color: var(--line); }

/* ==========  ГЛАВНАЯ: СЕКЦИИ  ========== */
.front-section { padding: 80px 0; }
.front-section.alt { background: var(--bg-alt); }
.front-section.tinted { background: linear-gradient(180deg, #EDF1F7 0%, #F7F9FC 100%); }
.dashed-split { border-top: 1px dashed var(--line); }

/* Hero */
.fs-hero {
    position: relative;
    padding: 0;
    background: #0F1C2E;
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 28, 46, 0.6);
}
.hero-inner {
    position: relative;
    z-index: 2;
    padding: 110px 0 100px;
    max-width: 720px;
}
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-family: var(--f-head);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #9FC3DE;
    margin-bottom: 1.4rem;
}
.hero-kicker::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--accent-2);
}
.hero-inner h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-lead {
    font-size: 1.12rem;
    color: #D6E2EE;
    margin-bottom: 2rem;
    max-width: 560px;
}

/* Шаги */
.steps { margin: 0; }
.step-row {
    display: flex;
    gap: 2.2rem;
    padding: 2rem 0;
    align-items: flex-start;
}
.step-row + .step-row { border-top: 1px dashed var(--line); }
.step-num {
    flex: 0 0 auto;
    font-family: var(--f-head);
    font-size: 3rem;
    line-height: 1;
    font-weight: 600;
    color: var(--accent-2);
    min-width: 76px;
}
.step-body { min-width: 0; }
.step-body h3 { margin-bottom: 0.45rem; }
.step-body p { margin: 0; color: #46586E; }

/* Статистика */
.stats-row {
    display: flex;
    flex-wrap: wrap;
}
.stat-cell {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.6rem 1.6rem;
    text-align: center;
}
.stat-cell + .stat-cell { border-left: 1px solid var(--line); }
.stat-num {
    display: block;
    font-family: var(--f-head);
    font-size: 3rem;
    line-height: 1.05;
    font-weight: 600;
    color: var(--accent);
}
.stat-cap {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.topic-tile {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: transparent;
    color: var(--ink);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    min-width: 0;
}
.topic-tile:hover { background: var(--bg-alt); border-color: var(--accent-2); }
.topic-tile svg { flex: 0 0 auto; display: block; }
.topic-tile .tt-body { min-width: 0; }
.topic-tile .tt-name {
    display: block;
    font-family: var(--f-head);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.topic-tile .tt-note { display: block; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* CTA-плашка внутри секции */
.fs-note {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2rem 2.2rem;
    margin-top: 2.6rem;
}
.fs-note p { margin-bottom: 1.2rem; }

.latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.latest-head .sec-title { margin-bottom: 0; }

/* ==========  КАРТОЧКИ ЗАПИСЕЙ  ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.cards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

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

.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
.card-thumb-ph {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #E3EBF4 0%, #F0F4F9 100%);
    position: relative;
}
.card-thumb-ph::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    border: 1px solid var(--accent-2);
    opacity: 0.6;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
    letter-spacing: 0.03em;
}
.card-title {
    font-size: 1.22rem;
    margin: 0 0 0.7rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.95rem; color: #46586E; 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;
    font-family: var(--f-head);
    font-size: 0.92rem;
    color: var(--accent);
}
.card-more::after { content: " →"; }
.card-more:hover { color: var(--accent-2); }

/* ==========  ЗАПИСЬ И СТРАНИЦА  ========== */
.entry-header { margin-bottom: 1.8rem; }
.entry-title { font-size: 2.5rem; margin-bottom: 0.7rem; }
.entry-meta { font-size: 0.87rem; color: var(--muted); }
.entry-meta span + span::before { content: "·"; margin: 0 0.5rem; color: var(--line); }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; border-radius: 4px; }
.entry-content { font-size: 1.03rem; }
.entry-content img { border-radius: 4px; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}
.entry-tags a { margin-right: 0.5rem; }

.page-head { margin-bottom: 2rem; }
.page-head .sec-title { margin-bottom: 0.6rem; }
.page-head p { color: var(--muted); margin: 0; }

/* ==========  САЙДБАР  ========== */
.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.5rem;
}
.sidebar .widget + .widget { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.sidebar .widget-title {
    font-family: var(--f-head);
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}
.sidebar .widget { color: #3B4E64; font-size: 0.95rem; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { margin-bottom: 0.75rem; padding-left: 16px; position: relative; }
.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 1px;
    background: var(--accent-2);
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar .search-form { display: flex; gap: 0.5rem; }

/* ==========  ПОИСК  ========== */
.search-form { display: flex; gap: 0.6rem; min-width: 0; }
.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    font-family: var(--f-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--accent-2); }

/* ==========  ПАГИНАЦИЯ  ========== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.8rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    font-family: var(--f-head);
    font-size: 0.95rem;
    color: var(--accent);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pagination .page-numbers:hover { border-color: var(--accent-2); color: var(--accent-2); }
.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ==========  КОММЕНТАРИИ  ========== */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list li { margin-bottom: 1.2rem; }
.comment-list .children { list-style: none; margin: 1.2rem 0 0 1.5rem; padding: 0; }
.comment-box {
    padding: 1.2rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}
.comment-head {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}
.comment-author { font-family: var(--f-head); font-weight: 600; }
.comment-date { font-size: 0.82rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply-link { font-size: 0.88rem; }
.comment-respond { margin-top: 1.5rem; }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--f-body);
    font-size: 0.97rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
}
.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit {
    font-family: var(--f-head);
    font-size: 0.98rem;
    padding: 0.8rem 1.6rem;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ==========  404 И ПУСТЫЕ СОСТОЯНИЯ  ========== */
.state-block {
    padding: 2.4rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
}
.state-block h1 { font-size: 2.6rem; }
.state-block .search-form { max-width: 460px; margin-top: 1.4rem; }
.state-actions { margin-top: 1.6rem; }

/* ==========  ПОДВАЛ  ========== */
.site-foot {
    margin-top: 0;
    background: var(--foot-bg);
    color: #C6D4E2;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 3.4rem 0 2.6rem;
}
.foot-col { min-width: 0; }
.site-foot .widget { font-size: 0.94rem; color: #C6D4E2; }
.site-foot .widget-title {
    font-family: var(--f-head);
    font-size: 1.02rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(214, 226, 238, 0.22);
}
.site-foot .widget p { color: #C6D4E2; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { margin-bottom: 0.7rem; padding-left: 16px; position: relative; }
.site-foot .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 1px;
    background: var(--accent-2);
}
.site-foot .widget a { color: #D9E6F2; }
.site-foot .widget a:hover { color: #8FC6E8; }
.site-foot .post-date { display: block; font-size: 0.8rem; color: #93A9BF; }
.foot-bottom {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid rgba(214, 226, 238, 0.18);
    font-size: 0.86rem;
    color: #93A9BF;
}

/* ==========  COOKIE  ========== */
.cookie-banner[hidden] { display: none !important; }
.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;
    padding: 1rem 1.6rem;
    background: #1B2A41;
    border-top: 1px solid rgba(95, 168, 211, 0.4);
    color: #D6E2EE;
    font-size: 0.9rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: #8FC6E8; }
.cookie-accept {
    flex: 0 0 auto;
    font-family: var(--f-head);
    font-size: 0.92rem;
    padding: 0.6rem 1.4rem;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    cursor: pointer;
}
.cookie-accept:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* ==========  АДАПТИВ  ========== */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .entry-title { font-size: 2rem; }
    .sec-title { font-size: 1.7rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .layout-single { width: 100%; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .head-inner { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; order: 3; }
    .main-nav[hidden] { display: none !important; }
    .main-nav {
        order: 4;
        flex: 1 1 100%;
        border-top: 1px solid var(--line);
        padding-top: 1rem;
    }
    .main-nav ul { flex-direction: column; gap: 0.8rem; }
    .main-nav ul ul { position: static; border: none; padding: 0.4rem 0 0 1rem; }
    .hero-inner { padding: 80px 0 70px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    .entry-title { font-size: 1.7rem; }
    .sec-title { font-size: 1.45rem; gap: 12px; }
    .sec-title::before { flex-basis: 24px; }
    .front-section { padding: 52px 0; }
    .hero-inner { padding: 60px 0 54px; }
    .cards-grid, .cards-list { grid-template-columns: minmax(0, 1fr); }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .step-row { flex-direction: column; gap: 0.8rem; padding: 1.5rem 0; }
    .step-num { font-size: 2.4rem; min-width: 0; }
    .stat-cell { flex: 1 1 100%; padding: 1.1rem 1rem; text-align: left; }
    .stat-cell + .stat-cell { border-left: none; border-top: 1px solid var(--line); }
    .stat-num { font-size: 2.4rem; }
    .fs-note { padding: 1.6rem 1.3rem; }
    .state-block { padding: 1.7rem 1.3rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; }
    .comment-list .children { margin-left: 0.8rem; }
    .site-desc { display: none; }
}
