/*
Theme Name: центр-сайдинга.рф
Theme URI: https://xn----7sbabe6drljgcl4j.xn--p1ai/
Author: Алексей Завьялов
Author URI: https://xn----7sbabe6drljgcl4j.xn--p1ai/
Description: Информационно-аналитический портал о современных стандартах гидроизоляции и теплозащиты зданий.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: centersiding
*/

/* =========================================================
   ОСНОВНЫЕ ПЕРЕМЕННЫЕ ТЕМЫ
   ========================================================= */
:root {
    --bg-page: #F4F6F9;
    --bg-content: #FFFFFF;
    --bg-callout: #EAF3F7;
    --text-main: #1E2A32;
    --text-muted: #4A5B6B;
    --accent: #0F5B7A;
    --accent-dark: #0A3F54;
    --warn: #B45F2B;
    --border: #D9DFE5;
    --border-strong: #B7C1CB;
    --footer-bg: #1E2A32;
    --footer-text: #C8D2DA;
    --footer-text-muted: #8B96A0;
    --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shell: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-main);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(30, 42, 50, 0.018) 1px, transparent 1px),
        radial-gradient(circle at 75% 70%, rgba(30, 42, 50, 0.015) 1px, transparent 1px);
    background-size: 22px 22px, 31px 31px;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .12s;
}
a:hover { border-bottom-color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--text-main);
    line-height: 1.25;
    letter-spacing: -.005em;
    margin: 1.6em 0 .6em;
    font-weight: 700;
}
h1 { font-size: 2.05rem; line-height: 1.18; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1em; }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    background: #EEF1F5;
    border-left: 3px solid var(--text-muted);
    color: var(--text-main);
    font-family: var(--mono);
    font-size: .92rem;
    line-height: 1.6;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: .95rem;
}
table th, table td {
    border: 1px solid var(--border-strong);
    padding: .55em .8em;
    text-align: left;
    vertical-align: top;
}
table th {
    background: #E8ECF0;
    color: var(--text-main);
    font-weight: 600;
    border-bottom: 2px solid var(--text-muted);
}
table tbody tr:nth-child(odd) { background: #FAFBFC; }
table tbody tr:nth-child(even) { background: var(--bg-content); }

code, pre, kbd {
    font-family: var(--mono);
    font-size: .92em;
}
pre {
    background: #EEF1F5;
    border-left: 3px solid var(--accent);
    padding: 1em 1.2em;
    overflow-x: auto;
    margin: 1.5em 0;
}
code { background: #EEF1F5; padding: .1em .35em; }
pre code { background: none; padding: 0; }

::selection { background: var(--accent); color: #fff; }

/* =========================================================
   ОБОЛОЧКА
   ========================================================= */
.shell {
    width: min(92%, var(--shell));
    margin-inline: auto;
}

/* =========================================================
   ШАПКА
   ========================================================= */
.site-head {
    background: var(--bg-content);
    border-bottom: 1px solid var(--border);
    padding: 1.1em 0 0;
}
.head-top {
    display: flex;
    align-items: center;
    gap: 1.4em;
    flex-wrap: wrap;
    padding-bottom: 1.1em;
}
.brand {
    display: flex;
    align-items: center;
    gap: .85em;
    flex: 1 1 320px;
    min-width: 0;
}
.brand-logo {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: block;
}
.brand-text { min-width: 0; }
.brand-title {
    display: block;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.25;
    border: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.brand-title:hover { color: var(--accent); border: none; }
.brand-desc {
    display: block;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: .25em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.head-search {
    flex: 0 0 auto;
    max-width: 320px;
    min-width: 0;
}
.head-search .search-field {
    padding: .5em .8em;
    border: 1px solid var(--border-strong);
    background: #FAFBFC;
    font-family: var(--sans);
    font-size: .9rem;
    color: var(--text-main);
    width: 220px;
    min-width: 0;
}
.head-search .search-submit {
    padding: .5em 1em;
    background: var(--accent);
    color: #fff;
    border: none;
    font-family: var(--mono);
    font-size: .85rem;
    cursor: pointer;
}
.head-search .search-submit:hover { background: var(--accent-dark); }

.site-nav {
    border-top: 1px solid var(--border);
    background: #FAFBFC;
}
.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
}
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    padding: .5em .9em;
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--text-main);
    cursor: pointer;
    margin: .7em 0;
}
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.main-menu li { position: relative; }
.main-menu a {
    display: block;
    padding: .9em 1.1em;
    color: var(--text-main);
    font-size: .94rem;
    font-weight: 500;
    border: none;
    border-bottom: 2px solid transparent;
    transition: border-color .12s, color .12s;
}
.main-menu a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.main-menu .current-menu-item > a,
.main-menu .current_page_item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.main-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-content);
    border: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(30, 42, 50, .06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(2px);
    transition: opacity .12s, transform .12s, visibility .12s;
    z-index: 80;
}
.main-menu li:hover > .sub-menu,
.main-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-menu .sub-menu a {
    border-bottom: 1px solid var(--border);
    padding: .65em 1.1em;
}

/* =========================================================
   ОСНОВНОЙ КОНТЕНТ
   ========================================================= */
.site-main {
    padding: 1.8em 0 3em;
}

.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
    min-width: 0;
}

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

.content-area > article,
.content-area > .page-block {
    background: var(--bg-content);
    border: 1px solid var(--border);
    padding: 1.8em 2em;
    margin-bottom: 1.4em;
    box-shadow: 0 1px 0 rgba(30, 42, 50, .03);
}

.entry-title { margin-top: 0; }

.entry-meta {
    color: var(--text-muted);
    font-size: .85rem;
    font-family: var(--mono);
    margin: -.4em 0 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}
.entry-meta a { color: var(--text-muted); }
.entry-meta a:hover { color: var(--accent); }

.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption {
    font-size: .85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: .4em;
    font-family: var(--mono);
}

.entry-thumb {
    margin: 0 0 1.4em;
    overflow: hidden;
    border: 1px solid var(--border);
}
.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================= */
.breadcrumbs {
    font-size: .85rem;
    font-family: var(--mono);
    color: var(--text-muted);
    margin: 0 0 1.4em;
    padding: .7em 1em;
    background: #EEF1F5;
    border-left: 3px solid var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--border-strong); margin: 0 .35em; }

/* =========================================================
   КНОПКИ
   ========================================================= */
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: .88rem;
    font-weight: 500;
    border: 1px solid var(--accent);
    border-radius: 2px;
    cursor: pointer;
    text-transform: none;
    letter-spacing: .01em;
    transition: background .12s, border-color .12s;
    line-height: 1.2;
}
.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    border-bottom: 1px solid var(--warn);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--text-muted);
}
.btn-ghost:hover {
    background: #EEF1F5;
    color: var(--text-main);
    border-color: var(--text-muted);
    border-bottom: 1px solid var(--accent);
}

/* =========================================================
   КАРТОЧКИ ЗАПИСЕЙ
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4em;
    margin: 1.4em 0;
}
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-content);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
    min-width: 0;
}
.card:hover {
    box-shadow: 0 6px 18px rgba(30, 42, 50, .08);
    transform: translateY(-1px);
}
.card-cat {
    display: block;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: .75rem;
    padding: .4em 1em;
    letter-spacing: .03em;
    text-transform: lowercase;
}
.card-cat a { color: #fff; border-bottom: none; }
.card-cat a:hover { border-bottom: 1px solid #fff; }

.card-thumb {
    display: block;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .25s;
}
.card-thumb:hover img { transform: scale(1.02); }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.1em 1.3em 1.3em;
    min-width: 0;
}
.card-title {
    font-size: 1.08rem;
    font-weight: 600;
    margin: 0 0 .5em;
    line-height: 1.3;
}
.card-title a { color: var(--text-main); border: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    color: var(--text-muted);
    font-size: .93rem;
    margin-bottom: 1em;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-meta {
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--text-muted);
    padding-top: .8em;
    border-top: 1px dashed var(--border);
    margin-bottom: 1em;
    display: flex;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
}
.card-meta .label { color: var(--warn); }
.card .btn { align-self: flex-start; }

/* =========================================================
   ГЛАВНАЯ
   ========================================================= */
.hero {
    background: var(--bg-content);
    border: 1px solid var(--border);
    padding: 2.4em 2.2em;
    margin-bottom: 1.8em;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--accent);
}
.hero h1 {
    margin: 0 0 .5em;
    font-size: 1.85rem;
    line-height: 1.22;
}
.hero p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin: 0;
    max-width: 70ch;
}

.topic-block {
    background: var(--bg-content);
    border: 1px solid var(--border);
    padding: 1.8em 2em;
    margin-bottom: 1.4em;
}
.topic-block h2 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: .6em;
}
.topic-block h2::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    background: var(--accent);
    flex: 0 0 22px;
    mask-image: linear-gradient(135deg, transparent 45%, #000 45%, #000 55%, transparent 55%);
    -webkit-mask-image: linear-gradient(135deg, transparent 45%, #000 45%, #000 55%, transparent 55%);
}
.topic-block .lead {
    color: var(--text-muted);
    max-width: 75ch;
}

.topic-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4em;
    margin-top: 1.4em;
}
.topic-col {
    border-left: 3px solid var(--accent);
    padding: .2em 0 .2em 1em;
    min-width: 0;
}
.topic-col h3 {
    margin: 0 0 .4em;
    font-size: 1rem;
}
.topic-col p {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0;
}

.callout {
    background: var(--bg-callout);
    border-left: 4px solid var(--accent);
    padding: 1.1em 1.4em;
    margin: 1.4em 0;
}
.callout strong { color: var(--accent); }
.callout p:last-child { margin-bottom: 0; }

.resource-bar {
    display: flex;
    align-items: center;
    gap: .8em;
    margin: .6em 0;
    font-family: var(--mono);
    font-size: .85rem;
}
.resource-bar .label {
    min-width: 110px;
    color: var(--text-main);
}
.resource-bar .track {
    flex: 1;
    height: 8px;
    background: #E8ECF0;
    position: relative;
    min-width: 0;
}
.resource-bar .fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: var(--accent);
}
.resource-bar .danger {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 15%;
    background: var(--warn);
    opacity: .6;
}
.resource-bar .value {
    min-width: 50px;
    text-align: right;
    color: var(--text-muted);
}

.steps {
    counter-reset: step;
    list-style: none;
    margin: 1.4em 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2em;
}
.steps li {
    counter-increment: step;
    background: #FAFBFC;
    border: 1px solid var(--border);
    padding: 1em 1.2em;
    position: relative;
    min-width: 0;
}
.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: .8rem;
    color: var(--warn);
    margin-bottom: .4em;
}
.steps li strong { display: block; margin-bottom: .3em; color: var(--text-main); }
.steps li span { display: block; color: var(--text-muted); font-size: .92rem; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
    margin: 2.2em 0 1em;
    padding-bottom: .5em;
    border-bottom: 2px solid var(--text-main);
}
.section-head h2 { margin: 0; }
.section-head .meta {
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--text-muted);
}

/* =========================================================
   САЙДБАР
   ========================================================= */
.sidebar {
    color: var(--text-main);
}
.sidebar .widget {
    background: var(--bg-content);
    border: 1px solid var(--border);
    padding: 1.2em 1.3em;
    margin-bottom: 1.2em;
}
.sidebar .widget-title {
    font-size: .82rem;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent);
    margin: 0 0 .9em;
    padding-bottom: .5em;
    border-bottom: 1px solid var(--border);
}
.sidebar a {
    color: var(--text-main);
}
.sidebar a:hover { color: var(--accent); }
.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar li {
    padding: .4em 0;
    border-bottom: 1px dashed var(--border);
    font-size: .94rem;
}
.sidebar li:last-child { border-bottom: none; }
.sidebar .post-date {
    display: block;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .2em;
}

/* =========================================================
   ПАГИНАЦИЯ
   ========================================================= */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .35em;
    margin: 2em 0 0;
    justify-content: center;
}
.pagination a,
.pagination span {
    display: inline-block;
    padding: .55em .95em;
    font-family: var(--mono);
    font-size: .9rem;
    background: var(--bg-content);
    border: 1px solid var(--border-strong);
    color: var(--text-main);
}
.pagination a { border-bottom: 1px solid var(--border-strong); }
.pagination a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.pagination .current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =========================================================
   ПОИСК
   ========================================================= */
.searchform {
    display: flex;
    gap: 0;
    margin: 1em 0;
}
.searchform .search-field {
    flex: 1;
    padding: .65em .9em;
    border: 1px solid var(--border-strong);
    background: #FAFBFC;
    font-family: var(--sans);
    font-size: .95rem;
    color: var(--text-main);
    min-width: 0;
}
.searchform .search-submit {
    padding: .65em 1.3em;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-family: var(--mono);
    font-size: .88rem;
    cursor: pointer;
}
.searchform .search-submit:hover { background: var(--accent-dark); }

/* =========================================================
   КОММЕНТАРИИ
   ========================================================= */
.comments-area {
    background: var(--bg-content);
    border: 1px solid var(--border);
    padding: 1.8em 2em;
    margin-top: 1.4em;
}
.comments-title { margin-top: 0; }
.comment-list {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin: 0;
    padding-left: 2em;
    border-left: 2px solid var(--border);
}
.comment-body {
    padding: 1em 0;
    border-bottom: 1px dashed var(--border);
}
.comment-author {
    font-weight: 600;
    color: var(--text-main);
    margin-right: .6em;
}
.comment-meta {
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .5em;
}
.comment-content p:last-child { margin-bottom: .4em; }
.comment-reply-link {
    font-size: .82rem;
    font-family: var(--mono);
    color: var(--accent);
}
.comment-form { margin-top: 1.4em; }
.comment-form label {
    display: block;
    font-family: var(--mono);
    font-size: .82rem;
    color: var(--text-muted);
    margin-bottom: .3em;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .55em .8em;
    border: 1px solid var(--border-strong);
    background: #FAFBFC;
    font-family: var(--sans);
    font-size: .95rem;
    color: var(--text-main);
    margin-bottom: 1em;
    box-sizing: border-box;
    min-width: 0;
}
.comment-form .form-submit input,
.comment-form input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 2px;
    padding: 12px 20px;
    font-family: var(--mono);
    font-size: .9rem;
    cursor: pointer;
}
.comment-form .form-submit input:hover,
.comment-form input[type="submit"]:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.site-foot {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 3em;
    padding: 2.4em 0 1.2em;
    font-size: .92rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}
.foot-col { min-width: 0; }
.foot-col .widget-title {
    font-family: var(--mono);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #FFFFFF;
    margin: 0 0 .9em;
    padding-bottom: .5em;
    border-bottom: 1px solid #34424C;
}
.foot-col,
.foot-col p,
.foot-col li {
    color: var(--footer-text);
}
.foot-col a {
    color: var(--footer-text);
    border-bottom: 1px solid transparent;
}
.foot-col a:hover {
    color: #FFFFFF;
    border-bottom-color: var(--warn);
}
.foot-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.foot-col li {
    padding: .3em 0;
    font-size: .9rem;
}
.foot-col .post-date {
    display: block;
    font-family: var(--mono);
    font-size: .78rem;
    color: var(--footer-text-muted);
    margin-top: .15em;
}
.foot-bottom {
    border-top: 1px solid #34424C;
    padding-top: 1.2em;
    color: var(--footer-text-muted);
    font-family: var(--mono);
    font-size: .82rem;
    display: flex;
    justify-content: space-between;
    gap: 1em;
    flex-wrap: wrap;
}

/* =========================================================
   COOKIE-БАННЕР
   ========================================================= */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 1em;
    right: 1em;
    bottom: 1em;
    z-index: 200;
    background: var(--text-main);
    color: #E6EBF0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--warn);
    box-shadow: 0 6px 28px rgba(0, 0, 0, .25);
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: wrap;
    font-size: .9rem;
    max-width: 720px;
    margin-inline: auto;
}
.cookie-banner p { margin: 0; flex: 1 1 240px; min-width: 0; color: #E6EBF0; }
.cookie-banner a { color: #FFFFFF; border-bottom: 1px solid #FFFFFF; }
.cookie-banner button {
    padding: 10px 18px;
    background: var(--accent);
    color: #FFFFFF;
    border: 1px solid var(--accent);
    border-radius: 2px;
    font-family: var(--mono);
    font-size: .85rem;
    cursor: pointer;
}
.cookie-banner button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* =========================================================
   404
   ========================================================= */
.error-404 {
    background: var(--bg-content);
    border: 1px solid var(--border);
    padding: 2.4em 2em;
    text-align: center;
}
.error-404 .code {
    font-family: var(--mono);
    font-size: 3.6rem;
    color: var(--warn);
    line-height: 1;
    margin-bottom: .2em;
    letter-spacing: .04em;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 1.4em;
    }
    .layout-single .content-area {
        width: 100%;
    }
    .hero { padding: 1.8em 1.4em; }
    .hero h1 { font-size: 1.5rem; }
    h1 { font-size: 1.7rem; }
    .content-area > article,
    .content-area > .page-block,
    .topic-block,
    .comments-area {
        padding: 1.4em 1.2em;
    }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .head-top { gap: 1em; }
    .head-search { width: 100%; max-width: none; }
    .head-search .search-field { width: 100%; }

    .nav-toggle { display: inline-block; }
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        border-top: 1px solid var(--border);
    }
    .main-menu.is-open { display: flex; }
    .main-menu li { width: 100%; }
    .main-menu a {
        padding: .8em 1em;
        border-bottom: 1px solid var(--border);
    }
    .main-menu a:hover { border-bottom-color: var(--border); }
    .main-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        padding-left: 1em;
    }

    .cards { grid-template-columns: 1fr; }

    .foot-bottom { flex-direction: column; gap: .4em; }
    .site-main { padding: 1.2em 0 2em; }

    .cookie-banner {
        left: 0; right: 0; bottom: 0;
        border-left: none;
        border-top: 4px solid var(--warn);
        margin-inline: 0;
        max-width: none;
        flex-direction: column;
        align-items: stretch;
    }
    .cookie-banner button { width: 100%; }
}
