/*
Theme Name: dds_balashiha-wifire.ru
Author: Алексей Зимин
Description: Тема городского образовательного проекта «Балашиха в Сети»: лавандовый техно-минимализм, руководства по домашнему интернету и цифровым навыкам.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bsnet
License: GNU General Public License v2 or later
*/

/* ---------- Скрытие через [hidden] — до основных стилей ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Переменные ---------- */
:root {
    --bg: #F7F6FB;
    --bg-alt: #EEEBF7;
    --white: #FFFFFF;
    --line: #DCD6EE;
    --footer: #2A2440;
    --aside: #F1EEF9;
    --text: #2A2440;
    --accent: #7C5CE0;
    --accent-deep: #6644D4;
    --teal: #3EC6C0;
    --teal-deep: #2BA9A3;
    --muted: #8B84A8;
    --dot: #E4DFF2;
    --shadow: 0 10px 30px rgba(92, 78, 140, 0.10);
    --shadow-up: 0 18px 40px rgba(92, 78, 140, 0.18);
    --f-head: "Manrope", "Space Grotesk", "Segoe UI", Arial, sans-serif;
    --f-body: "Inter", "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image: radial-gradient(rgba(228, 223, 242, 0.4) 1px, transparent 1px);
    background-size: 24px 24px;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    color: var(--text);
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 0; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
h2::before, h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: 0.55em;
    vertical-align: 0.22em;
}
.bsn-sec-title::before, .bsn-hero-title::before { content: none; }
p, li, td, th, dd, dt, blockquote, .bsn-card-body { overflow-wrap: break-word; hyphens: auto; }

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--teal), var(--teal));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size 0.25s ease, color 0.2s ease;
}
a:hover, a:focus-visible { background-size: 100% 2px; color: var(--accent-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.4em;
    background: #F1EEF9;
    border-left: 4px solid var(--teal);
    border-radius: 0 12px 12px 0;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre { font-family: "JetBrains Mono", Consolas, monospace; font-size: 0.92em; }
pre { overflow-x: auto; background: var(--white); border: 1px solid var(--line); padding: 1em 1.2em; border-radius: 12px; }

.bsn-sr {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.bsn-skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 10px;
}
.bsn-skip:focus { top: 1rem; color: #fff; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.bsn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.78em 1.5em;
    border-radius: 12px;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    background-image: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease, color 0.2s ease;
}
.bsn-btn:hover, .bsn-btn:focus-visible { transform: scale(1.03); background-size: auto; }
.bsn-btn--fill { background-color: var(--accent); color: #fff; }
.bsn-btn--fill:hover, .bsn-btn--fill:focus-visible {
    color: #fff;
    background-color: var(--accent-deep);
    filter: saturate(1.2);
    box-shadow: 0 10px 24px rgba(124, 92, 224, 0.35);
}
.bsn-btn--ghost { background-color: transparent; border-color: var(--teal); color: var(--teal-deep); }
.bsn-btn--ghost:hover, .bsn-btn--ghost:focus-visible {
    color: var(--text);
    background-color: rgba(62, 198, 192, 0.14);
    box-shadow: 0 10px 24px rgba(62, 198, 192, 0.3);
}
.bsn-btn--light { color: #fff; }
.bsn-btn--light:hover, .bsn-btn--light:focus-visible { color: #fff; background-color: rgba(62, 198, 192, 0.2); }

/* ---------- Шапка ---------- */
.bsn-topbar { height: 4px; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.bsn-header { background: var(--white); border-bottom: 1px solid var(--line); }
.bsn-header-in {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    padding: 1.1rem 0;
}
.bsn-brand {
    display: flex;
    align-items: flex-start;
    gap: 0.95rem;
    flex: 1 1 520px;
    min-width: 0;
    color: var(--text);
    background-image: none;
}
.bsn-brand:hover { color: var(--text); }
.bsn-brand-mark { flex: 0 0 auto; display: block; }
.bsn-brand-mark .brand-logo, .bsn-logo-svg { display: block; width: 52px; height: 52px; object-fit: contain; }
.bsn-brand-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.bsn-brand-name {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    overflow-wrap: break-word;
    hyphens: auto;
}
.bsn-brand-desc {
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bsn-nav { flex: 0 1 auto; min-width: 0; }
.bsn-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.bsn-nav-list li { position: relative; }
.bsn-nav-list a {
    display: block;
    padding: 0.55rem 0.95rem;
    border-radius: 12px;
    font-family: var(--f-head);
    font-weight: 600;
    color: var(--text);
    background-image: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.bsn-nav-list a:hover, .bsn-nav-list a:focus-visible { background-color: var(--bg-alt); color: var(--accent); }
.bsn-nav-list .current-menu-item > a, .bsn-nav-list .current_page_item > a { background-color: var(--accent); color: #fff; }
.bsn-nav-list .sub-menu { list-style: none; margin: 0; padding: 0.4rem; }
.bsn-burger {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font: 600 0.95rem var(--f-head);
    cursor: pointer;
}
.bsn-burger-lines, .bsn-burger-lines::before, .bsn-burger-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    position: relative;
}
.bsn-burger-lines::before, .bsn-burger-lines::after { content: ""; position: absolute; left: 0; }
.bsn-burger-lines::before { top: -6px; }
.bsn-burger-lines::after { top: 6px; }

@media (min-width: 961px) {
    .bsn-nav-list .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        z-index: 20;
    }
    .bsn-nav-list li:hover > .sub-menu, .bsn-nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
}

/* ---------- Раскладки ---------- */
.bsn-main { padding: 2.5rem 0 4rem; }
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; }
.bsn-aside { min-width: 0; }

/* ---------- Хлебные крошки ---------- */
.bsn-crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; overflow-wrap: break-word; }
.bsn-crumbs a { color: var(--accent); }
.bsn-crumbs-sep { color: var(--teal); margin: 0 0.25rem; }
.bsn-crumbs span:last-child { color: var(--text); }

/* ---------- Заголовки страниц ---------- */
.bsn-page-head { margin-bottom: 2rem; }
.bsn-page-title { margin-bottom: 0.4em; }
.bsn-page-intro { color: var(--muted); }

/* ---------- Метки и заголовки секций ---------- */
.bsn-label {
    margin: 0 0 0.5rem;
    font-family: var(--f-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-deep);
}
.bsn-sec-title {
    margin: 0 0 1.8rem;
    padding-left: 1rem;
    border-left: 4px solid var(--accent);
    font-size: 2.1rem;
    line-height: 1.2;
}

/* ---------- Главная ---------- */
.bsn-front { position: relative; overflow: hidden; margin-top: -2.5rem; padding-top: 2.5rem; }
.bsn-front::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -120px;
    width: 560px;
    height: 520px;
    pointer-events: none;
    opacity: 0.1;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 520'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%237C5CE0'/%3E%3Cstop offset='1' stop-color='%23B9A6F2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M402 40c76 34 140 112 134 196-6 85-80 152-152 202-71 50-140 84-214 58S27 393 20 309C13 225 66 150 128 98 190 46 326 6 402 40z'/%3E%3C/svg%3E") no-repeat right top / contain;
}
.bsn-front-wrap { position: relative; width: 85%; margin-left: auto; margin-right: auto; }

.bsn-dots {
    width: 160px;
    height: 4px;
    margin: 2.6rem auto;
    background-image: radial-gradient(circle, #B9A6F2 1.4px, transparent 1.6px);
    background-size: 10px 4px;
    background-repeat: repeat-x;
    background-position: center;
}

.bsn-sec { padding: 3rem 2.6rem; border-radius: 20px; }
.bsn-sec--white { background: var(--white); box-shadow: var(--shadow); }
.bsn-sec--alt {
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(rgba(214, 206, 238, 0.75) 1px, transparent 1px),
        linear-gradient(180deg, #EEEBF7, #F7F6FB);
    background-size: 16px 16px, 100% 100%;
}

/* Hero */
.bsn-hero {
    position: relative;
    overflow: hidden;
    padding: 4.4rem 3.4rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #2A2440 0%, #4A3B7A 100%);
    color: #fff;
}
.bsn-hero-text { position: relative; z-index: 1; max-width: 640px; }
.bsn-hero-kicker {
    margin: 0 0 1rem;
    font-family: var(--f-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
}
.bsn-hero-title { color: #fff; font-size: 3rem; margin: 0 0 1.1rem; }
.bsn-hero-sub { color: #D9D0F5; font-size: 1.08rem; margin: 0 0 2rem; }
.bsn-hero-waves {
    position: absolute;
    right: -30px;
    bottom: -40px;
    display: block;
    width: 46%;
    max-width: 520px;
    height: auto;
    opacity: 0.32;
    pointer-events: none;
}

/* Чек-лист */
.bsn-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.bsn-check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    background: var(--bg);
    border-radius: 14px;
}
.bsn-check-list li > div { min-width: 0; }
.bsn-check-list strong { font-family: var(--f-head); }
.bsn-check-mark {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
}

/* Последние записи */
.bsn-latest { padding: 3rem 2.6rem; }
.bsn-latest-all { margin: 2rem 0 0; text-align: center; }

/* Статистика */
.bsn-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
.bsn-stat { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.bsn-stat-num {
    font-family: var(--f-head);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}
.bsn-stat-cap { color: var(--muted); font-size: 0.98rem; line-height: 1.45; }

/* Карта тем */
.bsn-topics { padding: 3rem 2.6rem; }
.bsn-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; }
.bsn-topic {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
    padding: 1.7rem 1.5rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--text);
    overflow: hidden;
    background-image: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bsn-topic::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.75;
    transition: opacity 0.25s ease;
}
.bsn-topic:nth-child(even)::before { background: var(--teal); }
.bsn-topic:hover, .bsn-topic:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-up); color: var(--text); }
.bsn-topic:hover::before, .bsn-topic:focus-visible::before { opacity: 1; }
.bsn-topic-ico {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.25s ease;
}
.bsn-topic-ico circle[r="1.6"] { fill: var(--accent); }
.bsn-topic:hover .bsn-topic-ico, .bsn-topic:focus-visible .bsn-topic-ico { stroke: var(--teal); }
.bsn-topic-name { font-family: var(--f-head); font-weight: 700; font-size: 1.15rem; }
.bsn-topic-desc { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Карточки записей ---------- */
.bsn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 1.6rem; }
.bsn-cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bsn-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bsn-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 2;
    background: var(--accent);
    opacity: 0.75;
    transition: opacity 0.25s ease, filter 0.25s ease;
}
.bsn-card:nth-child(even)::before { background: var(--teal); }
.bsn-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-up); }
.bsn-card:hover::before { opacity: 1; filter: saturate(1.4) brightness(1.08); }
.bsn-card-thumb { display: block; background-image: none; }
.bsn-card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.bsn-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.bsn-card-title { font-size: 1.18rem; margin: 0.45rem 0 0.6rem; }
.bsn-card-title a { color: var(--text); }
.bsn-card-title a:hover { color: var(--accent); }
.bsn-card-excerpt { color: #4A4366; font-size: 0.97rem; flex: 1; }
.bsn-card-excerpt p { margin: 0 0 0.5em; background: none; }
.bsn-card-more { align-self: flex-start; margin-top: 0.8rem; font-family: var(--f-head); font-weight: 700; }

.bsn-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.85rem; color: var(--muted); }
.bsn-meta-cat {
    color: var(--teal-deep);
    font-weight: 600;
}

/* ---------- Запись и страница ---------- */
.bsn-entry-thumb { margin: 0 0 2rem; }
.bsn-entry-thumb img { display: block; width: 100%; height: auto; border-radius: 16px; }
.entry-content { min-width: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 12px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--muted); text-align: center; margin-top: 0.5em; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.bsn-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.bsn-tags a {
    padding: 0.3rem 0.8rem;
    background: var(--bg-alt);
    border-radius: 12px;
    font-size: 0.9rem;
    background-image: none;
}
.bsn-tags a:hover { background-color: var(--accent); color: #fff; }

/* ---------- Пагинация ---------- */
.bsn-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 2.6rem; }
.bsn-pager .page-numbers, .bsn-pager--inner a, .bsn-pager--inner > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.9rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--f-head);
    font-weight: 600;
    background-image: none;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.bsn-pager a.page-numbers:hover, .bsn-pager--inner a:hover {
    transform: scale(1.03);
    border-color: var(--teal);
    color: var(--accent);
    box-shadow: 0 8px 18px rgba(62, 198, 192, 0.25);
}
.bsn-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.bsn-pager .page-numbers.dots { background: transparent; border: 0; min-width: auto; padding: 0 0.3rem; }

/* ---------- Сайдбар ---------- */
.bsn-aside {
    background: var(--aside);
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    color: var(--text);
}
.bsn-aside .bsn-widget + .bsn-widget { margin-top: 1.8rem; }
.bsn-aside .bsn-widget-title { margin: 0 0 0.9rem; font-size: 1.1rem; color: var(--text); }
.bsn-aside a { color: var(--accent); }
.bsn-aside ul { list-style: none; margin: 0; padding: 0; }
.bsn-aside li { padding: 0.55rem 0; border-bottom: 1px dashed var(--line); color: var(--text); }
.bsn-aside li:last-child { border-bottom: 0; }
.bsn-aside .post-date { display: block; font-size: 0.82rem; color: #6E6790; }
.bsn-aside p { color: var(--text); }

/* ---------- Поиск ---------- */
.bsn-search { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.bsn-search-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75em 1em;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
    font: inherit;
}
.bsn-search-input:focus { border-color: var(--accent); outline: none; }

/* ---------- 404 и пустые состояния ---------- */
.bsn-404 {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 2.4rem;
    box-shadow: var(--shadow);
}
.bsn-404-code {
    font-family: var(--f-head);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(90deg, var(--accent), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}
.bsn-404 .bsn-search { max-width: 520px; margin-left: auto; margin-right: auto; justify-content: center; }
.bsn-empty {
    padding: 1.6rem 1.8rem;
    background: var(--white);
    border-radius: 16px;
    color: var(--muted);
}

/* ---------- Комментарии ---------- */
.bsn-comments { margin-top: 3rem; padding-top: 2rem; }
.bsn-comment-list, .bsn-comment-list .children { list-style: none; margin: 0; padding: 0; }
.bsn-comment-list .children { padding-left: 1.6rem; }
.bsn-comment-body {
    background: var(--white);
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.bsn-comment-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.bsn-comment-head img { display: block; border-radius: 50%; }
.bsn-comment-author { display: block; font-family: var(--f-head); font-weight: 700; }
.bsn-comment-date { display: block; font-size: 0.82rem; color: var(--muted); }
.bsn-comment-wait { color: var(--accent); font-style: italic; }
.bsn-comment-reply a { font-weight: 600; font-size: 0.92rem; }
.comment-respond {
    background: var(--white);
    border-radius: 16px;
    padding: 1.6rem 1.8rem;
    box-shadow: var(--shadow);
}
.comment-respond .comment-reply-title { margin-top: 0; }
.comment-form label { display: block; 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: 100%;
    padding: 0.7em 0.9em;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
}
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
    padding: 0.78em 1.6em;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font: 700 1rem var(--f-head);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-form .submit:hover { transform: scale(1.03); box-shadow: 0 10px 24px rgba(124, 92, 224, 0.35); }
.comments-navigation .nav-links, .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.bsn-footer {
    background: var(--footer);
    color: #CFC8E8;
    padding: 3.4rem 0 2rem;
}
.bsn-footer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.bsn-footer-col { min-width: 0; }
.bsn-footer .bsn-widget + .bsn-widget { margin-top: 1.6rem; }
.bsn-footer .bsn-widget-title { margin: 0 0 1rem; font-size: 1.08rem; color: #FFFFFF; }
.bsn-footer .bsn-widget-title::before { background: var(--teal); }
.bsn-footer p, .bsn-footer li, .bsn-footer .textwidget { color: #CFC8E8; }
.bsn-footer a { color: #E4DCFF; }
.bsn-footer a:hover { color: var(--teal); }
.bsn-footer ul { list-style: none; margin: 0; padding: 0; }
.bsn-footer li { padding: 0.3rem 0; }
.bsn-footer .post-date { color: #A79FC6; }
.bsn-copy {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(220, 214, 238, 0.16);
    font-size: 0.88rem;
    color: #A79FC6;
    overflow-wrap: break-word;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem 1.6rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--white);
    color: var(--text);
    border-radius: 16px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 18px 44px rgba(42, 36, 64, 0.22);
}
.cookie-banner-text { margin: 0; flex: 1; min-width: 0; font-size: 0.93rem; }
.cookie-banner-btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1, .bsn-hero-title { font-size: 2.4rem; }
    .bsn-burger { display: inline-flex; }
    .bsn-nav { flex: 1 1 100%; display: none; }
    .bsn-nav.is-open { display: block; }
    .bsn-nav-list { flex-direction: column; gap: 0.2rem; }
    .bsn-nav-list .sub-menu { padding-left: 1rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single, .bsn-front-wrap { width: 100%; }
    .bsn-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bsn-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.4rem; }
    .bsn-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bsn-hero-waves { width: 60%; opacity: 0.2; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .bsn-hero-title { font-size: 2rem; }
    h2, .bsn-sec-title { font-size: 1.55rem; }
    .bsn-main { padding: 1.6rem 0 3rem; }
    .bsn-brand-desc { display: none; }
    .bsn-burger-label { display: none; }
    .bsn-hero { padding: 2.6rem 1.5rem 3rem; border-radius: 18px; }
    .bsn-hero-waves { width: 80%; right: -40px; bottom: -50px; opacity: 0.16; }
    .bsn-sec, .bsn-latest, .bsn-topics { padding: 2rem 1.3rem; border-radius: 16px; }
    .bsn-check-list li { padding: 1rem 1.1rem; }
    .bsn-cards--three { grid-template-columns: minmax(0, 1fr); }
    .bsn-stats-row { grid-template-columns: minmax(0, 1fr); }
    .bsn-stat-num { font-size: 2.6rem; }
    .bsn-topic-grid { grid-template-columns: minmax(0, 1fr); }
    .bsn-aside { padding: 1.4rem 1.2rem; }
    .bsn-404 { padding: 2.2rem 1.3rem; }
    .bsn-404-code { font-size: 4.4rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .bsn-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
