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

:root {
    --bg: #F7F9FC;
    --bg-alt: #EDF1F7;
    --dark: #0B1D3A;
    --text: #1A2233;
    --accent: #3B5BDB;
    --accent-dark: #2B4ACB;
    --accent-2: #748FFC;
    --muted: #6B7A99;
    --line: #DDE3ED;
    --on-dark: #DCE4F2;
    --shell: min(92%, 1180px);
}

/* ---------- База ---------- */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 23px, #E3E9F2 23px, #E3E9F2 24px);
    color: var(--text);
    font-family: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: 2%;
    bottom: 0;
    width: 220px;
    height: 290px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: right bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260' fill='none' stroke='%233B5BDB' stroke-width='2'%3E%3Crect x='18' y='62' width='70' height='188'/%3E%3Crect x='100' y='18' width='82' height='232'/%3E%3Cpath d='M30 84h46M30 114h46M30 144h46M30 174h46M30 204h46M112 44h58M112 80h58M112 116h58M112 152h58M112 188h58M112 224h58'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Manrope", "Segoe UI", system-ui, sans-serif;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.7em;
    font-weight: 700;
}

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(--accent); }

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.home .shell { width: min(85%, 1180px); }

.site-main {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 0 4rem;
}

.inner-page { padding-top: 2.2rem; }

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

.site-top {
    background: var(--dark);
    color: #fff;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

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

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

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

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

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

.brand-name {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-decoration: none;
    max-width: 46ch;
}

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

.brand-tagline {
    display: block;
    margin-top: 0.35rem;
    color: #92A3BF;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 58ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 0.9rem;
    text-transform: uppercase;
}

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

.main-nav a {
    color: #E4EAF5;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.frame-rule {
    height: 3px;
    background: var(--accent);
    position: relative;
    z-index: 2;
}

/* ---------- Кнопки и текстовые ссылки ---------- */

.btn {
    display: inline-block;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-fill {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    color: #fff;
}

.btn-fill:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

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

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

.hero .btn-ghost {
    border-color: #fff;
    color: #fff;
}

.hero .btn-ghost:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.linkline,
.entry-body a,
.trail a,
.widget a,
.comment-text a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.25s ease, color 0.2s ease;
}

.linkline:hover,
.entry-body a:hover,
.trail a:hover,
.widget a:hover,
.comment-text a:hover { background-size: 100% 1px; }

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

.sec-head { margin-bottom: 2rem; }

.sec-title {
    display: inline-block;
    font-size: 2rem;
    margin: 0;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--accent);
}

.sec-note {
    margin: 1rem 0 0;
    max-width: 68ch;
    color: var(--muted);
}

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

.trail {
    color: var(--muted);
    font-size: 0.86rem;
    margin-bottom: 1.6rem;
}

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

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

.trail-sep { color: #A3B0C7; padding: 0 0.35rem; }

/* ---------- Раскладка ---------- */

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

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

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

/* ---------- Карточки записей ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}

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

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(11, 29, 58, 0.12);
    transform: translateY(-2px);
}

.card-thumb { display: block; }

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 15px, #DCE3EE 15px, #DCE3EE 16px);
}

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

.card-title {
    font-size: 1.15rem;
    margin: 0.7rem 0 0.6rem;
}

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.93rem;
    margin-bottom: 1rem;
}

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

.card-meta {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    align-items: center;
    justify-content: space-between;
}

.card-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

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

/* ---------- Метки рубрик ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.chip {
    display: inline-block;
    border-radius: 0;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.6rem;
    text-decoration: none;
    text-transform: uppercase;
}

.chip:hover { opacity: 0.85; color: #fff; }

.chip-t1 { background: #3B5BDB; }
.chip-t2 { background: #46617F; }
.chip-t3 { background: #2C7BA0; }
.chip-t4 { background: #5A6B8C; }

/* ---------- Главная: hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 29, 58, 0.92) 0%, rgba(11, 29, 58, 0.78) 55%, rgba(11, 29, 58, 0.62) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 6rem 0 5.5rem;
    max-width: 62ch;
}

.hero-kicker {
    color: var(--accent-2);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    margin-bottom: 1.3rem;
    text-transform: uppercase;
}

.hero h1 { color: #fff; margin-bottom: 1.2rem; }

.hero-sub {
    color: #C6D0E2;
    font-size: 1.08rem;
    margin-bottom: 2.2rem;
}

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

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

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

.front-section.is-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 31px, #DCE3EE 31px, #DCE3EE 32px);
}

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

.facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fact {
    min-width: 0;
    padding: 0.5rem 1.6rem;
    border-left: 1px solid var(--line);
}

.fact:first-child { border-left: 0; padding-left: 0; }

.fact-num {
    color: var(--accent);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.fact-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Шаги */

.steps { display: block; }

.step {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    min-width: 0;
    padding: 1.7rem 0;
    border-bottom: 1px dashed var(--line);
}

.step:last-child { border-bottom: 0; padding-bottom: 0; }

.step-num {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.step-body h3 { margin-bottom: 0.4rem; }

.step-body p { color: var(--muted); margin: 0; }

/* Карта тем */

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

.topic {
    display: block;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    padding: 1.8rem 1.6rem;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.topic svg { display: block; color: var(--muted); margin-bottom: 1rem; transition: color 0.2s ease; }

.topic:hover svg { color: var(--accent); }

.topic-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }

.topic-note { color: var(--muted); font-size: 0.88rem; }

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

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.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 {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

/* ---------- Контент записи и страницы ---------- */

.entry {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2.4rem 2.4rem 2.6rem;
}

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

.entry-head h1 { font-size: 2.4rem; margin-bottom: 0.7rem; }

.entry-meta {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

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

.entry-body h2 { font-size: 1.6rem; margin-top: 1.8rem; }

.entry-body h3 { font-size: 1.28rem; margin-top: 1.5rem; }

.entry-body ul, .entry-body ol { padding-left: 1.3rem; margin: 0 0 1.2em; }

.entry-body li { margin-bottom: 0.45em; }

.entry-body blockquote {
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 4px 4px 0;
    color: var(--text);
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
}

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

.entry-body img { border-radius: 4px; display: block; height: auto; }

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

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

.entry-body th { background: var(--bg-alt); font-weight: 700; }

.entry-body code {
    background: var(--bg-alt);
    border-radius: 3px;
    font-size: 0.9em;
    padding: 0.1em 0.35em;
}

.entry-body pre {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow-x: auto;
    padding: 1rem 1.2rem;
}

.entry-tags {
    border-top: 1px solid var(--line);
    margin-top: 2rem;
    padding-top: 1.3rem;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.8rem;
}

.post-nav a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    display: inline-block;
    font-size: 0.9rem;
    max-width: 48%;
    padding: 0.7rem 1rem;
    text-decoration: none;
}

.post-nav a:hover { border-color: var(--accent); color: var(--accent); }

.archive-head { margin-bottom: 2rem; }

.archive-head h1 { font-size: 2.4rem; }

.list-stack { display: grid; gap: 1.8rem; }

.nothing {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem 2.2rem;
}

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

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

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

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

.sidebar .widget-title {
    color: var(--text);
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--text); font-size: 0.93rem; }

.sidebar .widget a { color: var(--text); text-decoration: none; }

.sidebar .widget a:hover { color: var(--accent); }

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

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

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

.sidebar .post-date { color: var(--muted); display: block; font-size: 0.78rem; }

/* ---------- Поиск ---------- */

.searchform {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.searchform input[type="search"] {
    flex: 1;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    padding: 0.6rem 0.8rem;
}

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

.searchform button {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.6rem 1.1rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.searchform button:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

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

.comments-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-top: 2rem;
    padding: 2rem 2.2rem 2.2rem;
}

.comments-block h2 { font-size: 1.4rem; }

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

.comment-list .children { list-style: none; margin: 1rem 0 0; padding-left: 1.6rem; }

.comment-item { margin-bottom: 1.2rem; }

.comment-inner {
    background: var(--bg-alt);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author { font-weight: 700; }

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

.comment-text p { margin-bottom: 0.6em; }

.comment-actions a {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.comment-hold { color: var(--muted); font-size: 0.85rem; }

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

.comment-form label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 85%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    padding: 0.65rem 0.8rem;
}

.comment-form textarea { width: 100%; min-height: 150px; }

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

.comment-form .submit {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.75rem 1.6rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.comment-form .submit:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

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

.err-code {
    color: var(--accent);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.err-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }

.err-search { margin-top: 1.8rem; max-width: 520px; }

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

.site-foot {
    background: var(--dark);
    color: var(--on-dark);
    padding: 3.5rem 0 2rem;
    position: relative;
    z-index: 1;
}

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

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

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .widget td { color: var(--on-dark); font-size: 0.92rem; }

.site-foot .widget-title {
    color: #fff;
    display: inline-block;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--accent-2);
}

.site-foot .widget a { color: #C9D6EA; text-decoration: none; }

.site-foot .widget a:hover { color: #fff; }

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

.site-foot .widget li { border-bottom: 1px solid rgba(255, 255, 255, 0.1); padding: 0.5rem 0; }

.site-foot .widget li:last-child { border-bottom: 0; }

.site-foot .post-date { color: #8B9CB8; display: block; font-size: 0.78rem; }

.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #92A3BF;
    font-size: 0.85rem;
    margin-top: 2.5rem;
    padding-top: 1.4rem;
}

/* ---------- Cookie-баннер ---------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    background: var(--dark);
    border-top: 3px solid var(--accent);
    color: var(--on-dark);
    font-size: 0.9rem;
    padding: 1rem 1.6rem;
}

.cookie-banner p { margin: 0; max-width: 72ch; }

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

.cookie-accept {
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.cookie-accept:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

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

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

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

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

    h1 { font-size: 2.4rem; }

    .hero-inner { padding: 4.5rem 0 4rem; }

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

    .layout-single { width: 100%; }

    .home .shell { width: min(92%, 1180px); }

    .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;
        margin-top: 1rem;
    }

    .main-nav li { border-top: 1px solid rgba(255, 255, 255, 0.12); }

    .main-nav a { display: block; padding: 0.75rem 0; border-bottom: 0; }

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

    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 0; }

    .fact:nth-child(odd) { border-left: 0; padding-left: 0; }

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

    .entry { padding: 1.8rem 1.6rem 2rem; }

    body::after { display: none; }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }

    h2, .sec-title { font-size: 1.55rem; }

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

    .hero-inner { padding: 3.4rem 0 3.2rem; }

    .hero h1 { font-size: 2rem; }

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

    .fact { border-left: 0; padding: 0; }

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

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

    .step { flex-direction: column; gap: 0.9rem; }

    .step-num { width: 56px; height: 56px; font-size: 1.35rem; }

    .entry { padding: 1.4rem 1.2rem 1.6rem; }

    .comments-block { padding: 1.4rem 1.2rem 1.6rem; }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"] { width: 100%; }

    .cookie-banner { justify-content: flex-start; padding: 1rem 1.2rem; }

    .post-nav a { max-width: 100%; }

    .entry-body blockquote { padding: 1.1rem 1.2rem; }
}
