/*
Theme Name: dds_rapidaonline.ru
Theme URI: https://rapidaonline.ru/
Author: Алексей Морозов
Description: Тема информационно-аналитического портала о финансовых технологиях, платежах, банковских инновациях и карьере в финтехе. Швейцарская сетка, холодная палитра, один акцент.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rapida
*/

/* ---------- Правила для [hidden] (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #F4F7FA;
    --alt: #E7EDF3;
    --dark: #0B1F33;
    --white: #FFFFFF;
    --line: #D3DEE8;
    --grid: #E1E8EF;
    --text: #0E1B29;
    --accent: #1E6BFF;
    --accent-dark: #1552CC;
    --teal: #00C2A8;
    --muted: #5E7183;
    --soft: #8FA6BC;
    --on-dark: #F4F7FA;
    --on-dark-2: #C3D1DE;
    --font: "IBM Plex Sans", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --pattern: repeating-linear-gradient(45deg, var(--grid) 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, var(--grid) 0 1px, transparent 1px 24px);
    --pattern-dark: repeating-linear-gradient(45deg, rgba(30, 107, 255, .12) 0 1px, transparent 1px 24px), repeating-linear-gradient(-45deg, rgba(30, 107, 255, .12) 0 1px, transparent 1px 24px);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 420'%3E%3Cg fill='none' stroke='%231E6BFF' opacity='.06'%3E%3Cpolyline points='0,400 80,350 150,372 240,268 320,300 410,176 490,206 560,92 640,20' stroke-width='14' stroke-linejoin='miter'/%3E%3Cpath d='M0 418H640M0 300H640M0 180H640M0 60H640' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E"),
        var(--pattern);
    background-repeat: no-repeat, repeat;
    background-position: right -60px top 150px, 0 0;
    background-size: min(640px, 60%) auto, auto;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.2;
    margin: 1.6em 0 .6em;
    font-weight: 600;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.25rem); line-height: 1.1; letter-spacing: -.025em; margin-top: 0; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p, li, dd, dt, h1, h2, h3, h4, h5, h6, blockquote, figcaption, td, th {
    overflow-wrap: break-word;
    hyphens: auto;
}
a { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.5em; background: var(--white); border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6rem .85rem; text-align: left; vertical-align: top; }
th { background: var(--alt); font-weight: 600; }
blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid var(--accent);
    background: var(--white);
    font-size: 1.1rem;
}
blockquote p:last-child { margin-bottom: 0; }
code, kbd, pre { font-family: "IBM Plex Mono", Consolas, "Liberation Mono", monospace; font-size: .92em; }
pre { overflow-x: auto; background: var(--dark); color: var(--on-dark); padding: 1.2rem 1.4rem; border-radius: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -60px;
    z-index: 100;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    text-decoration: none;
}
.skip-link:focus { top: .8rem; }

/* ---------- Каркас ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.topline { height: 3px; background: var(--accent); }

/* ---------- Ссылки в тексте ---------- */
.entry-content a,
.page-lead a,
.card-excerpt a,
.comment-content a,
.sidebar .widget a,
.breadcrumbs a,
.logged-in-as a,
.must-log-in a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s, text-decoration-color .2s, text-decoration-thickness .2s, text-underline-offset .2s;
}
.entry-content a:hover,
.page-lead a:hover,
.card-excerpt a:hover,
.comment-content a:hover,
.sidebar .widget a:hover,
.breadcrumbs a:hover,
.logged-in-as a:hover,
.must-log-in a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

/* ---------- Кнопки ---------- */
.btn,
input[type="submit"],
.comment-reply-link {
    display: inline-block;
    padding: .72rem 1.35rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover,
input[type="submit"]:hover,
.comment-reply-link:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-1px);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
}
.btn-ghost:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ---------- Шапка ---------- */
.site-head { background: var(--dark); color: var(--on-dark); }
.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.15rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    flex: 1 1 auto;
    color: inherit;
    text-decoration: none;
}
.brand-visual { flex: 0 0 auto; display: block; }
.brand-mark { display: block; width: 44px; height: 44px; }
.brand-logo { display: block; max-height: 48px; width: auto; }
.brand-text { display: block; min-width: 0; }
.brand-name {
    display: block;
    max-width: 52ch;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--on-dark);
}
.brand-desc {
    display: block;
    max-width: 70ch;
    margin-top: .25rem;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--soft);
}
.main-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.nav-list a {
    display: block;
    padding: .35rem 0;
    color: var(--on-dark);
    font-size: .95rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { border-bottom-color: var(--accent); }
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    padding: .55rem .9rem;
    border: 1px solid rgba(244, 247, 250, .35);
    border-radius: 2px;
    background: transparent;
    color: var(--on-dark);
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--on-dark);
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    padding: 1.5rem 0 0;
    font-size: .85rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration-color: var(--line); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--soft); }
.breadcrumbs .current { color: var(--text); }

/* ---------- Раскладки ---------- */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
    padding: 2.2rem 0 4.5rem;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.2rem 0 4.5rem;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.2rem; }
.page-title { margin: 0 0 .7rem; }
.page-lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.empty-note { color: var(--muted); }

/* ---------- Запись ---------- */
.entry-head { margin-bottom: 1.8rem; }
.entry-title { margin: .4rem 0 .8rem; }
.entry-meta { font-size: .88rem; color: var(--muted); }
.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { max-width: 72ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    position: relative;
    padding-left: 18px;
    margin-top: 2.2em;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}
.entry-content ul,
.entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--teal); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.entry-content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.page-links { margin-top: 1.5rem; font-size: .95rem; }

/* ---------- Метки рубрик ---------- */
.card-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    background: none;
    border: 0;
}
.card-tag:hover { color: var(--accent); }

/* ---------- Карточки ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.layout-with-sidebar .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card.sticky { border-top: 3px solid var(--accent); }
.card-thumb { 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;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.5rem;
}
.card-title { font-size: 1.18rem; line-height: 1.35; margin: .45rem 0 .45rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-meta { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .8rem; }
.card-excerpt { font-size: .96rem; color: #2B3D50; margin-bottom: 1.1rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    color: var(--accent);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-thickness .2s, text-underline-offset .2s, color .2s;
}
.card-more:hover { color: var(--accent-dark); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--text);
    font-size: .95rem;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: var(--white);
    border-left: 1px solid var(--line);
    padding: 1.7rem 1.6rem;
    color: var(--text);
    min-width: 0;
}
.sidebar .widget + .widget { margin-top: 2.2rem; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text);
}
.sidebar .widget-title::before { content: ""; width: 24px; height: 3px; background: var(--accent); flex: 0 0 auto; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; line-height: 1.45; color: var(--text); }
.sidebar li:first-child { padding-top: 0; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar .widget a { text-decoration-color: var(--line); }
.sidebar .search-form { flex-direction: column; }

/* ---------- Формы (поиск, комментарии) ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 1.2rem 0; }
input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    min-width: 0;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
.search-form .search-field { flex: 1 1 auto; }
.search-form .btn { flex: 0 0 auto; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.comment-body {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; margin-bottom: .6rem; }
.comment-head .avatar { display: block; border-radius: 2px; }
.comment-author { font-weight: 600; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-moderation { font-size: .88rem; color: var(--muted); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: .7rem; }
.comment-reply-link { padding: .35rem .8rem; font-size: .82rem; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { margin-top: 0; }
.comment-reply-title small { display: block; font-size: .85rem; font-weight: 400; margin-top: .3rem; }
.comment-notes { font-size: .88rem; color: var(--muted); }
.cf-row label { display: block; margin-bottom: .3rem; font-size: .92rem; font-weight: 500; }
.cf-consent { font-size: .88rem; color: var(--muted); }
.req { color: var(--accent); }
.comments-closed { color: var(--muted); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Главная: общие ---------- */
.fs { padding: 5.5rem 0; }
.fs-inner { width: 85%; margin-left: auto; margin-right: auto; }
.sec-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 2.4rem;
}
.sec-title::before {
    content: "";
    flex: 0 0 40px;
    height: 3px;
    background: var(--accent);
}
.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.4rem;
}
.fs-head .sec-title { margin: 0; }

/* Блок 1 — hero */
.fs-hero {
    background-color: var(--dark);
    background-image: var(--pattern-dark);
    color: var(--on-dark);
    padding: 6.5rem 0;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
}
.hero-text {
    min-width: 0;
    border-left: 3px solid var(--accent);
    padding-left: 1.9rem;
}
.hero-text h1 { color: var(--on-dark); margin: 0 0 1.3rem; max-width: 16ch; }
.hero-lead { color: var(--soft); font-size: 1.15rem; line-height: 1.65; max-width: 52ch; margin: 0; }
.hero-art { min-width: 0; }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 520 / 420; }

/* Блок 2 — статистика */
.fs-stats {
    background: var(--alt);
    border-bottom: 1px solid var(--line);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
    min-width: 0;
    padding: .4rem 1.8rem;
    border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    margin: 0 0 .8rem;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.stat-label { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--muted); }

/* Последние записи */
.fs-latest { background: transparent; }

/* Блок 3 — zigzag */
.fs-zigzag { background: var(--alt); border-top: 1px solid var(--line); }
.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
    padding: 3rem 0;
}
.zz-row:first-of-type { padding-top: .5rem; }
.zz-row + .zz-row { border-top: 1px solid var(--line); }
.zz-row--flip .zz-media { order: 2; }
.zz-media, .zz-text { min-width: 0; }
.zz-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }
.zz-text h3 { margin: 0 0 1rem; font-size: 1.45rem; }
.zz-text p { color: #2B3D50; }
.zz-text p:last-child { margin-bottom: 0; }

/* Блок 4 — FAQ */
.fs-faq { background: transparent; }
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 0;
    cursor: pointer;
    list-style: none;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark { flex: 0 0 6px; width: 6px; height: 6px; margin-top: .6em; background: var(--accent); }
.faq-q { flex: 1 1 auto; min-width: 0; }
.faq-icon { flex: 0 0 auto; width: 1.4rem; text-align: center; font-size: 1.4rem; line-height: 1.05; color: var(--muted); }
.faq-icon::before { content: "+"; }
.faq-item[open] .faq-icon { color: var(--accent); }
.faq-item[open] .faq-icon::before { content: "\2212"; }
.faq-item summary:hover .faq-q { color: var(--accent); }
.faq-a { padding: 0 2.4rem 1.4rem 1.4rem; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- 404 ---------- */
.notfound-code {
    margin: 0 0 .5rem;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.05em;
    color: var(--accent);
}
.notfound-back { margin-top: 1.6rem; }

/* ---------- Подвал ---------- */
.site-foot {
    background-color: var(--dark);
    background-image: var(--pattern-dark);
    color: var(--on-dark-2);
    padding-top: 4rem;
    border-top: 3px solid var(--accent);
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}
.foot-col { min-width: 0; font-size: .95rem; color: var(--on-dark-2); }
.site-foot .widget + .widget { margin-top: 1.8rem; }
.site-foot .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--on-dark);
}
.site-foot .widget-title::before { content: ""; width: 24px; height: 3px; background: var(--teal); flex: 0 0 auto; }
.site-foot p { color: var(--on-dark-2); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { padding: .3rem 0; color: var(--on-dark-2); }
.site-foot a {
    color: var(--on-dark);
    text-decoration: underline;
    text-decoration-color: rgba(244, 247, 250, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s, text-decoration-thickness .2s, text-underline-offset .2s;
}
.site-foot a:hover { text-decoration-color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.site-foot .post-date { display: block; font-size: .8rem; color: var(--soft); }
.foot-bottom { border-top: 1px solid rgba(143, 166, 188, .25); padding: 1.3rem 0; }
.foot-bottom p { margin: 0; font-size: .85rem; color: var(--soft); }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--dark);
    color: var(--on-dark-2);
    border-top: 3px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
}
.cookie-inner p { margin: 0; font-size: .92rem; color: var(--on-dark-2); min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .head-row { flex-wrap: wrap; gap: 1rem; }
    .brand-desc { display: none; }
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; flex: 1 1 100%; }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid rgba(143, 166, 188, .25); }
    .nav-list a { padding: .8rem 0; border-bottom: 1px solid rgba(143, 166, 188, .2); }
    .nav-list a:hover,
    .nav-list .current-menu-item > a,
    .nav-list .current_page_item > a { border-bottom-color: var(--accent); }

    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 3rem; }
    .layout-single { width: 100%; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .fs-inner { width: 100%; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .hero-art { max-width: 520px; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.2rem; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .zz-row { gap: 2.5rem; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; background-size: 90% auto, auto; }
    .fs { padding: 3.5rem 0; }
    .fs-hero { padding: 4rem 0; }
    .hero-text { padding-left: 1.2rem; }
    .cards,
    .layout-with-sidebar .cards { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .stat,
    .stat:first-child,
    .stat:nth-child(odd) { border-left: 0; padding: 1.4rem 0; border-top: 1px solid var(--line); }
    .stat:first-child { border-top: 0; padding-top: 0; }
    .zz-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding: 2.2rem 0; }
    .zz-row--flip .zz-media { order: 0; }
    .faq-a { padding: 0 0 1.3rem 1.4rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .comment-body { padding: 1rem 1.1rem; }
    blockquote { padding: 1rem 1.2rem; }
    .search-form { flex-direction: column; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .entry-content .alignleft,
    .entry-content .alignright { float: none; margin: 1em 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
