/*
Theme Name: dds_firehealth.ru
Theme URI: https://firehealth.ru/
Author: Игорь Савельев
Description: Тема для образовательного портала о здоровом образе жизни и физкультуре. Лавандовая холодная палитра, чек-лист, статистика и рубрикатор на главной.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: firehl
*/

/* ---------- переменные ---------- */
:root {
    --bg: #F8F6FC;
    --bg-alt: #F0EDF7;
    --head: #2A1B38;
    --foot: #1E1428;
    --aside: #FFFFFF;
    --ink: #1E1626;
    --accent: #8B5CF6;
    --accent-2: #A78BFA;
    --accent-dark: #6D3FE0;
    --muted: #8A7A96;
    --line: #D6CCE8;
    --card-line: #E5DEF0;
    --deep-1: #2A1B38;
    --deep-2: #4B2F63;
    --hero-1: #1E1428;
    --hero-2: #3A2552;
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(214, 204, 232, 0.15) 1.4px, transparent 1.4px),
                      radial-gradient(rgba(214, 204, 232, 0.15) 1.4px, transparent 1.4px);
    background-size: 26px 26px, 26px 26px;
    background-position: 0 0, 13px 13px;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

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

.site-main a:not(.btn):not(.card-link):not(.page-numbers):not(.rubric-tile) {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease;
}
.site-main a:not(.btn):not(.card-link):not(.page-numbers):not(.rubric-tile):hover { background-size: 100% 1px; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.18;
    margin: 0 0 .6em;
}
h1 { font-size: 3.5rem; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -.01em; position: relative; padding-left: 16px; }
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 4px;
    height: .7em;
    background: var(--accent);
    border-radius: 2px;
}
h3 { font-size: 1.4rem; font-weight: 700; }
h4, h5 { font-size: 1.15rem; font-weight: 500; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: #2C2238;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--line);
}
th, td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
th { background: var(--bg-alt); font-weight: 600; }

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

/* ---------- контейнеры и раскладка ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

.site-main { display: block; padding: 2.4rem 0 3.4rem; }

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

/* ---------- шапка ---------- */
.site-top {
    background: var(--head);
    background-image: linear-gradient(120deg, #2A1B38 0%, #35234A 100%);
    color: #F3EEFA;
    border-bottom: 1px solid #3B2A4E;
}
.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.3rem 0;
}
.brand { flex: 1 1 auto; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: .9rem; color: inherit; min-width: 0; }
.brand-logo { width: 46px; height: 46px; display: block; flex: 0 0 auto; }
.brand-mark { width: 46px; height: 46px; display: block; flex: 0 0 auto; }
.brand-text { display: block; min-width: 0; }
.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    color: #FFFFFF;
}
.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .25rem;
    font-size: .82rem;
    line-height: 1.5;
    color: #C3B4D6;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: #F3EEFA;
    border: 1px solid #5B4374;
    border-radius: 8px;
    padding: .5rem .8rem;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-nav a {
    color: #E6DDF3;
    font-size: .97rem;
    font-weight: 500;
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: #FFFFFF; border-bottom-color: var(--accent-2); }
.main-nav .current-menu-item > a { color: #FFFFFF; border-bottom-color: var(--accent); }

/* ---------- кнопки ---------- */
.btn {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 8px;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.2;
    background: var(--accent);
    color: #FFFFFF;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background .22s ease, box-shadow .22s ease, color .22s ease, border-color .22s ease;
}
.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 8px 22px rgba(139, 92, 246, .35);
}
.btn-outline {
    background: transparent;
    color: var(--accent);
}
.btn-outline:hover {
    background: rgba(139, 92, 246, .08);
    color: var(--accent-dark);
    box-shadow: 0 8px 22px rgba(139, 92, 246, .22);
}
.btn-light {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #1E1428;
}
.btn-light:hover { background: #C4B0FD; border-color: #C4B0FD; color: #1E1428; }

/* ---------- хлебные крошки ---------- */
.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--line); margin: 0 .25rem; }

/* ---------- заголовки секций ---------- */
.sec-head { margin-bottom: 2rem; }
.sec-head h2 { margin-bottom: .5rem; }
.sec-rule {
    display: block;
    width: 88px;
    height: 2px;
    margin-left: 16px;
    background: var(--accent);
}
.sec-sub {
    margin: .9rem 0 0 16px;
    max-width: 720px;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.85;
    color: #4A3E56;
}
.spark::after {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: .5rem;
    background: var(--accent-2);
    transform: rotate(45deg) translateY(-1px);
    border-radius: 1px;
}

/* ---------- карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(90, 60, 140, .07);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 14px 32px rgba(90, 60, 140, .17);
}
.card-thumb { display: block; }
.card-thumb a { display: block; }
.card-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 11px 11px 0 0;
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-title {
    font-size: 1.16rem;
    line-height: 1.35;
    margin: 0 0 .55rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .7rem;
}
.card-meta a { color: var(--muted); }
.card-excerpt {
    font-size: .95rem;
    color: #46394F;
    margin-bottom: 1.1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; }
.card-link {
    display: inline-block;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-weight: 600;
    font-size: .92rem;
    color: var(--accent);
}
.card-link:hover { color: var(--accent-dark); }

/* ---------- главная ---------- */
.front-band { padding: 5.5rem 0; }
.front-band.alt { background: var(--bg-alt); }
.front-inner { width: 85%; margin-left: auto; margin-right: auto; min-width: 0; }

.band-divider {
    width: 85%;
    margin: 0 auto;
    border: 0;
    border-top: 1px solid var(--line);
    position: relative;
    height: 0;
}
.rhomb-divider {
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 1.6rem 0;
}
.rhomb-divider svg { display: block; opacity: .5; }

/* hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(125deg, var(--hero-1) 0%, var(--hero-2) 100%);
    color: #F5F1FB;
    padding: 5.4rem 0 5.6rem;
}
.hero::after {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, .30) 0%, rgba(167, 139, 250, 0) 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3rem;
    align-items: center;
}
.hero-text { min-width: 0; }
.hero h1 { color: #FFFFFF; margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--accent-2); }
.hero-lead {
    font-size: 1.12rem;
    font-weight: 300;
    line-height: 1.85;
    color: #D8CDE9;
    max-width: 600px;
    margin-bottom: 1.9rem;
}
.hero-lead strong { color: var(--accent-2); font-weight: 600; }
.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding: .35rem .8rem;
    border: 1px solid rgba(167, 139, 250, .5);
    border-radius: 8px;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2);
}
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; }

/* чек-лист */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.35rem 0;
    border-bottom: 1px dashed var(--line);
}
.check-item:last-child { border-bottom: 0; }
.check-num {
    flex: 0 0 auto;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--line);
    width: 58px;
}
.check-icon { flex: 0 0 auto; margin-top: .3rem; }
.check-icon svg { display: block; }
.check-text { min-width: 0; }
.check-text h3 { margin: 0 0 .35rem; font-size: 1.14rem; }
.check-text p { margin: 0; font-size: .97rem; font-weight: 300; color: #4A3E56; }

/* статистика */
.stats-plate {
    background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-2) 100%);
    border-radius: 14px;
    padding: 3rem 2.4rem;
    color: #F8F6FC;
}
.stats-plate .sec-head h2 { color: #FFFFFF; }
.stats-plate .sec-sub { color: #D3C6E4; }
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-cell {
    min-width: 0;
    padding: .6rem 1.2rem;
    border-left: 1px solid var(--deep-2);
    text-align: center;
}
.stats-plate .stat-cell { border-left-color: rgba(167, 139, 250, .35); }
.stat-cell:first-child { border-left: 0; }
.stat-num {
    display: block;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent-2);
}
.stat-label {
    display: block;
    margin-top: .5rem;
    font-size: .92rem;
    font-weight: 300;
    color: #CBBCDF;
}

/* рубрикатор */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}
.rubric-tile {
    display: block;
    min-width: 0;
    padding: 1.8rem 1.7rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    transition: border-color .22s ease, background .22s ease, transform .22s ease;
}
.rubric-tile:hover {
    border-color: var(--accent);
    background: var(--bg-alt);
    transform: translateY(-3px);
}
.rubric-tile svg { display: block; margin-bottom: 1rem; }
.rubric-tile h3 { margin: 0 0 .4rem; font-size: 1.22rem; }
.rubric-tile p { margin: 0; font-size: .95rem; font-weight: 300; color: #4A3E56; }

/* CTA внутри контента главной */
.front-cta {
    margin-top: 2.4rem;
    background: linear-gradient(135deg, var(--deep-1) 0%, var(--deep-2) 100%);
    border-radius: 12px;
    padding: 2.4rem 2.2rem;
    color: #F5F1FB;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
}
.front-cta h3 { color: #FFFFFF; margin: 0 0 .4rem; }
.front-cta p { margin: 0; color: #D3C6E4; font-weight: 300; }
.front-cta-text { min-width: 0; max-width: 640px; }

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

/* ---------- запись и страница ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-head h1 { font-size: 2.6rem; }
.entry-meta { font-size: .9rem; color: var(--muted); }
.entry-meta a { color: var(--muted); }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}
.entry-content { font-size: 1.03rem; }
.entry-content h2 { margin-top: 2.2rem; }
.entry-content h3 { margin-top: 1.7rem; }
.entry-content img { border-radius: 10px; display: block; }
.entry-tags { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.entry-tags a { color: var(--accent); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin: 2.6rem 0 0;
}
.post-nav a {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--card-line);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: .95rem;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }

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

/* ---------- сайдбар ---------- */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--aside);
    border: 1px solid var(--card-line);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--card-line);
    color: var(--ink);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .5rem 0; border-bottom: 1px dashed var(--card-line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); font-size: .96rem; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget p { color: #46394F; font-size: .96rem; margin-bottom: .8rem; }
.sidebar .post-date { display: block; font-size: .82rem; color: var(--muted); }

/* ---------- формы ---------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.search-form label { flex: 1; min-width: 0; display: block; }

.search-form { display: flex; gap: .6rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: .95rem;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.search-form .btn { padding: .7rem 1.2rem; }

/* ---------- пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.6rem 0 0;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: .55rem .8rem;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: .95rem;
    text-align: center;
    transition: border-color .2s ease, background .2s ease, color .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: #FFFFFF;
    font-weight: 600;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ---------- комментарии ---------- */
.comments-area { margin-top: 3rem; }
.comments-area h2 { font-size: 1.5rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 0; padding-left: 1.6rem; }
.comment-item { margin-bottom: 1.2rem; }
.comment-body {
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
}
.comment-meta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .5rem; }
.comment-author { font-weight: 600; }
.comment-date { color: var(--muted); font-size: .86rem; }
.comment-reply a { font-size: .9rem; }
.comment-hold { color: var(--muted); font-size: .9rem; }

.comment-form { display: block; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; color: #46394F; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: .96rem;
}
.comment-form textarea { min-height: 150px; }
.comment-form .submit {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 8px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: background .22s ease, box-shadow .22s ease;
}
.comment-form .submit:hover { background: var(--accent-dark); box-shadow: 0 8px 22px rgba(139, 92, 246, .3); }

/* ---------- 404 и поиск ---------- */
.nf-box { padding: 2rem 0 3rem; }
.nf-code {
    font-family: "Inter", "Manrope", Arial, sans-serif;
    font-size: 5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .6rem;
}
.nf-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.nf-search { max-width: 460px; margin-top: 1.6rem; }

/* ---------- подвал ---------- */
.site-foot {
    background: var(--foot);
    color: #CFC2DF;
    padding: 3.4rem 0 1.8rem;
    margin-top: 3rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1.4rem; color: #CFC2DF; }
.site-foot .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0 0 .9rem;
    padding-left: 14px;
    position: relative;
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 4px;
    height: .8em;
    background: var(--accent-2);
    border-radius: 2px;
}
.site-foot .widget p { color: #CFC2DF; font-size: .95rem; font-weight: 300; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { padding: .4rem 0; }
.site-foot .widget a { color: #E0D6EE; font-size: .95rem; }
.site-foot .widget a:hover { color: var(--accent-2); }
.site-foot .widget .post-date { color: #A091B4; font-size: .82rem; }
.foot-bottom {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid #33243F;
    font-size: .86rem;
    color: #A091B4;
    line-height: 1.6;
}

/* ---------- cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: #241733;
    border-top: 2px solid var(--accent);
    color: #E6DDF3;
    font-size: .92rem;
}
.cookie-banner p { margin: 0; max-width: 860px; min-width: 0; }
.cookie-banner a { color: var(--accent-2); }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.7rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .front-inner, .hero-inner, .band-divider, .rhomb-divider { width: 92%; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat-cell:nth-child(3) { border-left: 0; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.5rem; }
    .site-top-inner { padding: 1rem 0; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 0 100%; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: .2rem; padding-top: .8rem; }
    .main-nav li { border-bottom: 1px solid #3B2A4E; }
    .main-nav a { display: block; padding: .65rem 0; border-bottom: 0; }
    .front-band { padding: 3rem 0; }
    .hero { padding: 3.2rem 0 3.4rem; }
    .front-inner, .hero-inner, .band-divider, .rhomb-divider { width: 92%; }
    .card-grid, .card-list, .rubric-grid, .post-nav { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.4rem; }
    .stat-cell { border-left: 0; padding: .4rem 0; }
    .stats-plate { padding: 2rem 1.4rem; }
    .front-cta { padding: 1.8rem 1.4rem; }
    .rubric-tile { padding: 1.4rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.1rem; font-size: .88rem; }
    .check-item { gap: .8rem; }
    .check-num { font-size: 1.9rem; width: 40px; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .entry-head h1 { font-size: 1.9rem; }
    .nf-code { font-size: 3.4rem; }
}
