/*
Theme Name: dds_bikiniv.ru
Theme URI: https://bikiniv.ru/
Author: Владислав Карпов
Description: Информационная тема для сайта о строительстве, монтаже и ремонте. Швейцарская сетка, холодная палитра, чертёжная графика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bkstroy
*/

/* ============================================================
   1. Переменные и базовые правила
   ============================================================ */
:root {
    --bg: #F4F7FC;
    --bg-alt: #E8EFF8;
    --head: #1A2A3A;
    --foot: #0F1A26;
    --side: #FFFFFF;
    --text: #1E2C3C;
    --accent: #0077B6;
    --accent-2: #00A8A8;
    --muted: #6B7D8E;
    --rule: #B0C4DE;
    --shadow: 0 4px 12px rgba(0, 50, 100, 0.08);
    --shadow-up: 0 12px 24px rgba(0, 50, 100, 0.12);
    --font-head: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Roboto", "Source Sans Pro", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(30, 44, 60, 0.03) 0,
        rgba(30, 44, 60, 0.03) 1px,
        transparent 1px,
        transparent 28px
    );
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

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

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

.entry-content a,
.widget-text a,
.crumbs a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .25s ease;
}
.entry-content a:hover,
.widget-text a:hover,
.crumbs a:hover { background-size: 100% 1px; }

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

h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 1.8em 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(120deg, rgba(0, 119, 182, .08), rgba(0, 168, 168, .08));
    border-left: 3px solid var(--accent);
    font-size: 1.08rem;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    border: 1px solid var(--rule);
    background: #fff;
}
th, td {
    border: 1px solid var(--rule);
    padding: .65rem .8rem;
    text-align: left;
}
th { background: var(--bg-alt); font-family: var(--font-head); }

code, pre {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    background: var(--bg-alt);
    font-size: .92em;
}
pre { padding: 1rem; overflow-x: auto; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }

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

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

/* ============================================================
   2. Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .96rem;
    letter-spacing: .01em;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:hover {
    background: #005E92;
    border-color: #005E92;
    color: #fff;
    transform: translateY(1px);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: rgba(0, 119, 182, .1);
    color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(1px);
}
.btn-light {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================================
   3. Заголовки секций
   ============================================================ */
.sec-title {
    position: relative;
    display: inline-block;
    padding-left: 1.1rem;
    margin-bottom: 1.8rem;
    font-size: 2rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    background: var(--accent);
}
.sec-title::after {
    content: "";
    display: block;
    margin-top: .45rem;
    width: 100%;
    height: 2px;
    background: var(--accent);
}
.sec-title.on-dark { color: #fff; }
.sec-title.on-dark::before { background: var(--accent-2); }
.sec-title.on-dark::after { background: var(--accent-2); }

.sec-lead {
    max-width: 62ch;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

/* ============================================================
   4. Шапка
   ============================================================ */
.site-head {
    background: var(--head);
    color: #E6EEF6;
    border-bottom: 3px solid var(--accent);
}
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
}
.brand-mark { flex: 0 0 48px; display: block; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-text { min-width: 0; }
.brand-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.06rem;
    line-height: 1.3;
    color: #fff;
    max-width: 46ch;
}
a.brand-title:hover { color: var(--accent-2); }
.brand-desc {
    display: block;
    margin-top: .3rem;
    font-size: .82rem;
    line-height: 1.45;
    color: #9FB3C6;
    max-width: 60ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #3D5266;
    border-radius: 2px;
    color: #fff;
    font-family: var(--font-head);
    font-size: .9rem;
    padding: .5rem .9rem;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
    position: relative;
    display: block;
    font-family: var(--font-head);
    font-size: .97rem;
    font-weight: 600;
    color: #DCE7F1;
    padding: .25rem 0;
}
.main-nav a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: var(--accent-2);
    transition: width .25s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }
.main-nav .current-menu-item > a { color: #fff; }
.main-nav .current-menu-item > a::after { width: 100%; background: var(--accent); }

/* ============================================================
   5. Раскладки
   ============================================================ */
.site-main { padding: 2.6rem 0 4.2rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    align-items: start;
    gap: 3%;
}
.layout-with-sidebar > * { min-width: 0; }

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

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

/* ============================================================
   6. Хлебные крошки
   ============================================================ */
.crumbs {
    font-size: .87rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--rule);
}
.crumbs a { color: var(--accent); }
.crumbs .sep { margin: 0 .45rem; color: var(--rule); }

/* ============================================================
   7. Карточки записей
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.7rem;
}
.card-grid > * { min-width: 0; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 2px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 0; height: 0;
    border-top: 18px solid var(--accent);
    border-right: 18px solid transparent;
    z-index: 2;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
}
.card-thumb { display: block; background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-tag {
    align-self: flex-start;
    display: inline-block;
    margin-bottom: .7rem;
    padding: .22rem .6rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 2px;
}
.card-tag-bottom { margin-top: .9rem; margin-bottom: 0; }
.card-title {
    font-size: 1.18rem;
    margin: 0 0 .6rem;
    line-height: 1.32;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    color: #40525F;
    font-size: .95rem;
    margin-bottom: .9rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-meta {
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid var(--rule);
    font-size: .82rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.card-more { margin-top: 1rem; align-self: flex-start; }

/* ============================================================
   8. Главная страница
   ============================================================ */
.front-wrap { width: 85%; margin-left: auto; margin-right: auto; }

.fs {
    padding: 80px 0;
    border-bottom: 1px solid rgba(176, 196, 222, .5);
}
.fs:last-child { border-bottom: 0; }
.fs-alt {
    background: var(--bg-alt);
    border-bottom: 0;
    padding: 80px 2.4rem;
    border-radius: 2px;
}

/* Блок 1 — hero */
.fs-hero {
    position: relative;
    background: var(--head);
    color: #fff;
    padding: 84px 3rem;
    overflow: hidden;
    margin-top: 0;
}
.fs-hero .hero-art {
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 460px;
    max-width: 60%;
    opacity: .08;
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
}
.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid rgba(0, 168, 168, .5);
    padding: .3rem .8rem;
    border-radius: 2px;
    margin-bottom: 1.4rem;
}
.hero-inner h1 { color: #fff; margin-bottom: 1rem; }
.hero-inner h1 em { font-style: normal; color: var(--accent-2); }
.hero-sub {
    color: #C4D4E2;
    font-size: 1.08rem;
    margin-bottom: 1.9rem;
}

/* Блок 2 — сетка карточек статей */
.fs-grid .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Блок «Последние записи» */
.fs-latest .front-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.fs-latest .front-head .sec-title { margin-bottom: 1.2rem; }

/* Блок 3 — статистика */
.fs-stats .stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: linear-gradient(115deg, rgba(0, 119, 182, .07), rgba(0, 168, 168, .07));
    padding: 2.4rem 2rem;
    border-radius: 2px;
}
.stat-cell {
    position: relative;
    padding: .4rem 1.2rem;
    text-align: center;
    min-width: 0;
}
.stat-cell + .stat-cell { border-left: 1px solid var(--rule); }
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.1;
}
.stat-cap {
    display: block;
    margin-top: .4rem;
    font-size: .92rem;
    color: #33475A;
}

/* Блок 4 — карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.topic-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .8rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: #fff;
    color: var(--text);
    min-width: 0;
    transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.topic-tile svg { width: 40px; height: 40px; flex: 0 0 auto; }
.topic-tile svg * { transition: stroke .2s ease, fill .2s ease; }
.topic-tile .topic-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.08rem;
}
.topic-tile .topic-note { font-size: .9rem; color: var(--muted); }
.topic-tile:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: var(--shadow-up);
}
.topic-tile:hover .topic-note { color: rgba(255, 255, 255, .85); }
.topic-tile:hover svg [stroke] { stroke: #fff; }
.topic-tile:hover svg [fill]:not([fill="none"]) { fill: #fff; }

/* ============================================================
   9. Записи и страницы
   ============================================================ */
.entry-head { margin-bottom: 1.6rem; }
.entry-title {
    position: relative;
    padding-left: 1.15rem;
    font-size: 2.4rem;
}
.entry-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    background: var(--accent);
}
.entry-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    font-size: .88rem;
    color: var(--muted);
    margin-top: .4rem;
}
.meta-cat { color: var(--accent-2); font-weight: 600; }

.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 2px;
}

.entry-content { font-size: 1.03rem; }
.entry-content h2,
.entry-content h3 {
    position: relative;
    padding-left: 1.05rem;
    margin-top: 1.9em;
}
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 7px;
    height: 7px;
    background: var(--accent);
}
.entry-content img { border-radius: 2px; display: block; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content ol li::marker { color: var(--accent); font-weight: 700; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: .9rem;
}
.entry-tags a {
    display: inline-block;
    margin: 0 .35rem .35rem 0;
    padding: .2rem .6rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    color: var(--accent);
}
.entry-tags a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

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

.page-intro { margin-bottom: 2rem; }

/* ============================================================
   10. Сайдбар и виджеты
   ============================================================ */
.sidebar {
    background: var(--side);
    border-radius: 2px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.4rem;
    min-width: 0;
}
.sidebar .widget + .widget {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}
.sidebar .widget-title {
    position: relative;
    padding-left: .95rem;
    font-size: 1.12rem;
    color: var(--text);
    margin-bottom: .9rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 7px;
    height: 7px;
    background: var(--accent);
}
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: #33475A; font-size: .94rem; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .4rem 0; border-bottom: 1px dashed var(--rule); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .8rem; }

/* ============================================================
   11. Подвал
   ============================================================ */
.site-foot {
    background: var(--foot);
    color: #C4D2DE;
    padding: 3.2rem 0 1.6rem;
    border-top: 3px solid var(--accent);
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.foot-cols > * { min-width: 0; }
.site-foot .widget-title {
    position: relative;
    padding-left: .95rem;
    font-size: 1.08rem;
    color: #fff;
    margin-bottom: .9rem;
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 7px;
    height: 7px;
    background: var(--accent-2);
}
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #C4D2DE; font-size: .93rem; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { padding: .32rem 0; }
.site-foot .widget a { color: #DCE7F1; }
.site-foot .widget a:hover { color: var(--accent-2); }
.site-foot .post-date { display: block; color: #8DA0B2; font-size: .8rem; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(176, 196, 222, .22);
    font-size: .86rem;
    color: #8DA0B2;
}

/* ============================================================
   12. Пагинация
   ============================================================ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: .5rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-head);
    font-size: .95rem;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.pager .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(1px);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    min-width: auto;
    padding: .5rem .2rem;
}

/* ============================================================
   13. Формы поиска и комментариев
   ============================================================ */
.search-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.search-form label { flex: 1 1 200px; min-width: 0; }
.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .96rem;
}
.search-form input[type="search"]:focus,
.comment-form textarea:focus,
.comment-form input:focus {
    outline: 2px solid rgba(0, 119, 182, .35);
    outline-offset: 1px;
}
.search-form button { flex: 0 0 auto; }

.comments-area {
    margin-top: 3rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--rule);
}
.comments-title {
    position: relative;
    padding-left: 1.05rem;
    font-size: 1.5rem;
}
.comments-title::before {
    content: "";
    position: absolute;
    left: 0; top: .58em;
    width: 8px; height: 8px;
    background: var(--accent);
}
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0; }
.comment-item {
    background: #fff;
    border-radius: 2px;
    box-shadow: var(--shadow);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-head {
    display: flex;
    align-items: baseline;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}
.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { color: var(--muted); font-size: .84rem; }
.comment-reply a { font-size: .88rem; font-weight: 600; }
.comment-hold { color: var(--muted); font-size: .9rem; }
.comment-respond {
    background: #fff;
    border-radius: 2px;
    box-shadow: var(--shadow);
    padding: 1.5rem 1.6rem;
}
.comment-reply-title {
    position: relative;
    padding-left: 1.05rem;
    font-size: 1.3rem;
}
.comment-reply-title::before {
    content: "";
    position: absolute;
    left: 0; top: .58em;
    width: 8px; height: 8px;
    background: var(--accent-2);
}
.comment-form p { margin-bottom: .9rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; color: #33475A; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-form input[type="submit"] {
    padding: .78rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .96rem;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.comment-form input[type="submit"]:hover { background: #005E92; transform: translateY(1px); }

/* ============================================================
   14. Cookie-баннер
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--head);
    color: #DCE7F1;
    border-top: 3px solid var(--accent);
    font-size: .9rem;
}
.cookie-banner p { margin: 0; max-width: 74ch; }
.cookie-banner a { color: var(--accent-2); }

/* ============================================================
   15. 404 и поиск
   ============================================================ */
.notice-box {
    background: #fff;
    border-radius: 2px;
    box-shadow: var(--shadow);
    padding: 2rem 2.2rem;
}
.notice-box .search-form { margin-top: 1.2rem; }
.error-code {
    font-family: var(--font-head);
    font-size: 4.6rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .6rem;
}

/* ============================================================
   16. Адаптив
   ============================================================ */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .layout-with-sidebar {
        display: block;
    }
    .sidebar { margin-top: 2.4rem; }
    .front-wrap,
    .layout-single { width: 100%; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-stats .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat-cell:nth-child(3) { border-left: 0; }
}

@media (max-width: 780px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        border-top: 1px solid rgba(176, 196, 222, .25);
        margin-top: .9rem;
        padding-top: .7rem;
    }
    .main-nav a { padding: .5rem 0; }
    .head-inner { padding: 1.1rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.95rem; }
    h2, .sec-title { font-size: 1.55rem; }
    .entry-title { font-size: 1.8rem; }
    .site-main { padding: 1.8rem 0 3rem; }
    .fs { padding: 52px 0; }
    .fs-alt { padding: 52px 1.4rem; }
    .fs-hero { padding: 54px 1.4rem; }
    .fs-hero .hero-art { width: 260px; opacity: .07; }
    .fs-stats .stats-row { padding: 1.8rem 1.4rem; }
    .stat-num { font-size: 2.3rem; }
    .stat-cell { padding: .4rem .6rem; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { padding: 1rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .notice-box { padding: 1.5rem 1.3rem; }
    blockquote { padding: 1.3rem 1.2rem; }
    .comment-list .children { margin-left: .7rem; }
}
