/*
Theme Name: dds_safemoon2eth.com
Author: Алексей Романов
Description: Информационно-аналитическая тема для портала о покупке жилья за криптовалюту.
Version: 1.1
Text Domain: sfmeth
*/

/* ============================================================
   1. Переменные
   ============================================================ */

:root {
    --bg:        #F7F8FC;
    --bg-alt:    #ECEEF8;
    --head-bg:   #1B1F3B;
    --foot-bg:   #14172E;
    --aside-bg:  #FFFFFF;
    --ink:       #1B1F3B;
    --acc:       #6C5CE7;
    --acc2:      #00C2A8;
    --mute:      #7A7F9A;
    --line:      #E2E5F2;
    --shadow:    0 6px 22px rgba(27, 31, 59, .06);
    --shadow-up: 0 14px 34px rgba(108, 92, 231, .16);
    --radius:    14px;
    --btn-radius: 10px;
    --head-font: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI Semibold", "Segoe UI", sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "PT Sans", Arial, sans-serif;
}

/* ============================================================
   2. Скрытие через атрибут hidden (до основных стилей)
   ============================================================ */

.cookie-note[hidden]  { display: none !important; }
.site-nav[hidden]     { display: none !important; }
.tabs-pane[hidden]    { display: none !important; }

/* ============================================================
   3. База
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(108, 92, 231, .05) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, rgba(0, 194, 168, .04) 0 1px, transparent 1px 22px);
}

body::before {
    content: "";
    position: fixed;
    top: -90px;
    right: -120px;
    width: 520px;
    height: 520px;
    z-index: -1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%236C5CE7' stop-opacity='.22'/%3E%3Cstop offset='1' stop-color='%2300C2A8' stop-opacity='.12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M212 18c58 6 118 34 143 88 25 55 15 136-25 185-40 49-110 66-171 55-61-11-113-51-135-107-22-56-14-128 28-169C94 29 154 12 212 18z'/%3E%3Cpath fill='none' stroke='%236C5CE7' stroke-opacity='.18' stroke-width='1.2' d='M60 210h280M200 60v290M104 104l192 192M296 104L104 296'/%3E%3C/svg%3E");
}

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

a {
    color: var(--acc);
    text-decoration: none;
    position: relative;
}

.entry-text a,
.widget a,
.trail a,
.lead a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 0 100%;
    transition: background-size .25s ease;
}

.entry-text a:hover,
.widget a:hover,
.trail a:hover,
.lead a:hover { background-size: 100% 1px; }

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

h1 { font-size: 3.25rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 1.8rem 0;
    padding: 1.5rem 1.8rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--acc);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.1rem;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .92em;
}
pre {
    background: #12152B;
    color: #E8E9F5;
    padding: 1.2rem 1.4rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

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

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

/* ============================================================
   4. Контейнер и раскладки
   ============================================================ */

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

.topline {
    height: 4px;
    background: linear-gradient(90deg, var(--acc) 0%, #8878F0 60%, var(--acc2) 100%);
}

.page-body { padding: 2.6rem 0 4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 28fr);
    gap: 2.8rem;
    align-items: start;
}

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

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

/* ============================================================
   5. Шапка
   ============================================================ */

.site-head {
    background: var(--head-bg);
    color: #EDEEF7;
    padding: 1.35rem 0;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand-logo,
.brand-mark { flex: 0 0 auto; display: block; }

.brand-logo { max-height: 56px; width: auto; }

.brand-lines { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.22rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: .02em;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.brand-note {
    display: block;
    font-size: .82rem;
    color: #9AA0C0;
    line-height: 1.45;
    max-height: 2.9em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    border-radius: var(--btn-radius);
    padding: .55rem .9rem;
    font: 600 .95rem/1 var(--head-font);
    cursor: pointer;
}

.site-nav { flex: 0 1 auto; }

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .3rem 1.4rem;
    margin: 0;
    padding: 0;
}

.site-nav li { margin: 0; }

.site-nav a {
    color: #DDE0F0;
    font-family: var(--head-font);
    font-size: .98rem;
    letter-spacing: .02em;
    padding: .35rem 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--acc2);
}

/* ============================================================
   6. Хлебные крошки
   ============================================================ */

.trail {
    font-size: .88rem;
    color: var(--mute);
    padding: 1.2rem 0 0;
}
.trail a { color: var(--mute); }
.trail a:hover { color: var(--acc); }
.trail-sep { color: #C2C6DC; margin: 0 .25rem; }

/* ============================================================
   7. Кнопки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .98rem;
    font-weight: 700;
    letter-spacing: .02em;
    padding: .8rem 1.6rem;
    border-radius: var(--btn-radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.btn-fill {
    background: var(--acc);
    color: #fff;
}
.btn-fill:hover {
    background: #5A4AD6;
    box-shadow: 0 10px 24px rgba(108, 92, 231, .35);
}

.btn-ghost {
    background: transparent;
    color: var(--acc);
    border-color: rgba(108, 92, 231, .45);
}
.btn-ghost:hover {
    background: rgba(108, 92, 231, .08);
    border-color: var(--acc);
    box-shadow: 0 10px 24px rgba(108, 92, 231, .18);
}

.btn-ghost-light {
    background: transparent;
    color: #D9DCF0;
    border-color: rgba(255, 255, 255, .35);
}
.btn-ghost-light:hover {
    background: rgba(255, 255, 255, .1);
    border-color: var(--acc2);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 194, 168, .22);
}

.btn-on-dark {
    background: var(--acc2);
    color: #06251F;
}
.btn-on-dark:hover {
    background: #16D8BE;
    box-shadow: 0 10px 26px rgba(0, 194, 168, .35);
}

/* ============================================================
   8. Заголовки секций
   ============================================================ */

.sec-title {
    position: relative;
    margin-left: .5rem;
    padding-left: 2.1rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 1.4rem;
    height: 2px;
    background: var(--acc);
}

.sec-note {
    margin-left: 2.6rem;
    margin-top: -1rem;
    margin-bottom: 2rem;
    color: var(--mute);
    max-width: 62ch;
}

.dotted-split {
    border: 0;
    border-top: 1px dashed #D3D8EC;
    margin: 2.4rem 0;
}

/* ============================================================
   9. Карточки записей
   ============================================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.7rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-up);
}

.card-thumb { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-thumb-blank {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, #E9E7FB 0%, #DFF6F1 100%);
    position: relative;
}
.card-thumb-blank::after {
    content: "";
    position: absolute;
    inset: 18%;
    border: 2px dashed rgba(108, 92, 231, .35);
    border-radius: 10px;
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
}

.card-title {
    font-size: 1.22rem;
    margin: .35rem 0 .6rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--acc); }

.card-excerpt { color: #4A4F6B; font-size: .96rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.card-foot { margin-top: auto; padding-top: 1rem; }

.meta-row {
    font-size: .82rem;
    color: var(--mute);
    letter-spacing: .02em;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: .2rem;
}

.chip {
    display: inline-block;
    font-size: .74rem;
    font-family: var(--head-font);
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .25rem .65rem;
    border-radius: 999px;
    transition: filter .2s ease;
}
.chip:hover { filter: brightness(.94); }

.tone-a { background: #E6E2FB; color: #4B3BC0; }
.tone-b { background: #D9F4EF; color: #06776A; }
.tone-c { background: #E1EBFA; color: #2A5A98; }
.tone-d { background: #EAE6F6; color: #5B4A8A; }
.tone-e { background: #DFF0F6; color: #1D6C84; }
.tone-f { background: #E8E9F6; color: #3C4270; }

/* ============================================================
   10. Главная — секции
   ============================================================ */

.front-section { padding: 3.4rem 0; }
.front-section.alt { background: var(--bg-alt); }

.fs-hero {
    margin-top: 2.2rem;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 3.6rem 3rem;
    color: #F2F3FB;
    background: linear-gradient(135deg, #1B1F3B 0%, #2C2A63 55%, #123E54 100%);
}

.fs-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 420px;
    height: 420px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M200 40l138 80v160l-138 80-138-80V120z'/%3E%3Cpath d='M200 100l86 50v100l-86 50-86-50V150z'/%3E%3Cpath d='M62 120l138 80 138-80M200 200v160'/%3E%3C/g%3E%3Ccircle cx='200' cy='200' r='26' fill='%2300C2A8' fill-opacity='.22'/%3E%3C/svg%3E");
    pointer-events: none;
}

.fs-hero-inner { position: relative; max-width: 42rem; }

.fs-hero h1 { color: #fff; margin-bottom: 1rem; }

.fs-hero .lead {
    font-size: 1.12rem;
    color: #C9CDE6;
    margin-bottom: 1.9rem;
}

.hero-tagline {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 1.1rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: .9rem; }

/* чек-лист */

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}

.check-list li {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 1rem 1.3rem 1rem 3.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.35rem;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid var(--acc);
    border-bottom: 2.5px solid var(--acc);
    transform: rotate(-45deg);
}

.check-list strong {
    display: block;
    font-family: var(--head-font);
    font-size: 1.05rem;
    margin-bottom: .2rem;
}

.check-list span { color: #4A4F6B; font-size: .95rem; }

/* статистика */

.fs-stats {
    background: linear-gradient(120deg, #1F2350 0%, #2B2A66 55%, #14545A 100%);
    border-radius: 18px;
    padding: 2.8rem 2.4rem;
    color: #EDEEF8;
}

.fs-stats .sec-title { color: #fff; margin-left: 0; }
.fs-stats .sec-title::before { background: var(--acc2); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 1.6rem;
}

.stat-cell { min-width: 0; }

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.9rem;
    line-height: 1.1;
    font-weight: 700;
    color: #B9AEFF;
}

.stat-cap {
    display: block;
    color: #A7ADCB;
    font-size: .93rem;
    margin-top: .35rem;
}

/* карта тем */

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    min-width: 0;
    padding: 1.4rem 1.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.topic-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
    border-color: rgba(108, 92, 231, .4);
}

.topic-tile svg { flex: 0 0 auto; }

.topic-tile b {
    display: block;
    font-family: var(--head-font);
    font-size: 1.08rem;
    margin-bottom: .25rem;
}

.topic-tile span { display: block; color: var(--mute); font-size: .9rem; line-height: 1.5; }

.section-cta { margin-top: 2rem; }

/* ============================================================
   11. Контент записи и страницы
   ============================================================ */

.entry-head { margin-bottom: 1.8rem; }
.entry-head h1 { font-size: 2.6rem; margin-bottom: .6rem; }

.entry-text {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem 2.2rem;
}

.entry-text h2 { margin-top: 1.9rem; }
.entry-text h3 { margin-top: 1.5rem; }
.entry-text img { border-radius: 10px; }

.entry-thumb {
    margin-bottom: 1.7rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; }

.page-title-block { margin-bottom: 2rem; }

.list-head { margin-bottom: 2rem; }

/* ============================================================
   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: 42px;
    height: 42px;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    background: #fff;
    color: var(--ink);
    font-family: var(--head-font);
    font-size: .95rem;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pager .page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
    box-shadow: 0 8px 18px rgba(108, 92, 231, .16);
}

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #fff;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

/* ============================================================
   13. Сайдбар и виджеты
   ============================================================ */

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--aside-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.12rem;
    margin-bottom: 1rem;
    color: var(--ink);
    position: relative;
    padding-left: 1.3rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: .85rem;
    height: 2px;
    background: var(--acc);
}

.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed #E5E8F4;
}
.sidebar .widget li:last-child { border-bottom: 0; }

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--acc); }
.sidebar .widget .post-date { display: block; color: var(--mute); font-size: .82rem; }

.widget_search .search-form { display: flex; gap: .5rem; }

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    background: #fff;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: .95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--acc);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, .14);
}

/* ============================================================
   14. Подвал
   ============================================================ */

.site-foot {
    background: var(--foot-bg);
    color: #C3C7DE;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

.foot-cols .widget { min-width: 0; color: #C3C7DE; }

.foot-cols .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin-bottom: .9rem;
    position: relative;
    padding-left: 1.3rem;
}
.foot-cols .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: .85rem;
    height: 2px;
    background: var(--acc2);
}

.foot-cols .widget p { color: #B6BBD6; font-size: .94rem; }

.foot-cols .widget ul { list-style: none; padding: 0; margin: 0; }
.foot-cols .widget li { padding: .35rem 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.foot-cols .widget li:last-child { border-bottom: 0; }

.foot-cols .widget a { color: #D6D9EC; }
.foot-cols .widget a:hover { color: var(--acc2); }

.foot-cols .widget .post-date { display: block; color: #9297B5; font-size: .82rem; }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: .88rem;
    color: #9297B5;
}

/* ============================================================
   15. Комментарии
   ============================================================ */

.talk {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.8rem 2rem;
}

.talk-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.talk-list .children { list-style: none; padding-left: 1.6rem; }

.talk-item { margin-bottom: 1.2rem; }

.talk-body {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    background: var(--bg);
}

.talk-head { display: flex; flex-wrap: wrap; gap: .8rem; align-items: baseline; margin-bottom: .5rem; }
.talk-author { font-family: var(--head-font); font-weight: 700; }
.talk-date { color: var(--mute); font-size: .84rem; }
.talk-text p:last-child { margin-bottom: 0; }
.talk-tools { font-size: .88rem; margin-top: .5rem; }
.talk-hold { color: var(--acc2); font-size: .9rem; }

.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--btn-radius);
    font-family: var(--body-font);
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}

.comment-form textarea { min-height: 140px; }

.comment-form .submit {
    background: var(--acc);
    color: #fff;
    border: 0;
    border-radius: var(--btn-radius);
    padding: .8rem 1.6rem;
    font: 700 .98rem/1 var(--head-font);
    cursor: pointer;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.comment-form .submit:hover {
    background: #5A4AD6;
    box-shadow: 0 10px 24px rgba(108, 92, 231, .35);
}

/* ============================================================
   16. 404 и поиск
   ============================================================ */

.void-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.4rem 2.2rem;
}

.void-code {
    font-family: var(--head-font);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--acc);
    margin-bottom: .6rem;
}

.void-box .search-form { max-width: 26rem; margin: 1.4rem 0; }

/* ============================================================
   17. Cookie-баннер
   ============================================================ */

.cookie-note {
    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: 1rem 1.6rem;
    background: rgba(20, 23, 46, .97);
    color: #D7DAEE;
    font-size: .92rem;
    border-top: 2px solid var(--acc);
}

.cookie-note p { margin: 0; min-width: 0; }
.cookie-note a { color: var(--acc2); }

.cookie-note button {
    background: var(--acc);
    color: #fff;
    border: 0;
    border-radius: var(--btn-radius);
    padding: .6rem 1.4rem;
    font: 700 .94rem/1 var(--head-font);
    cursor: pointer;
    transition: background-color .25s ease, box-shadow .25s ease;
}
.cookie-note button:hover {
    background: #5A4AD6;
    box-shadow: 0 8px 20px rgba(108, 92, 231, .4);
}

/* ============================================================
   18. Адаптив
   ============================================================ */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .layout-single { width: 100%; }

    .fs-hero { padding: 2.8rem 2rem; }
    .fs-hero h1 { font-size: 2.3rem; }
    .fs-hero::after { width: 300px; height: 300px; opacity: .8; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.2rem; }

    .nav-toggle { display: inline-block; margin-left: auto; }

    .site-nav {
        flex: 1 1 100%;
        margin-top: .9rem;
    }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .site-nav a { display: block; padding: .65rem 0; }

    .front-section { padding: 2.4rem 0; }

    .fs-hero {
        padding: 2.2rem 1.4rem;
        border-radius: 14px;
    }
    .fs-hero::after { display: none; }

    .fs-stats { padding: 1.9rem 1.4rem; }
    .stat-num { font-size: 2.3rem; }

    .entry-text { padding: 1.4rem 1.2rem; }
    .talk { padding: 1.3rem 1.1rem; }
    .void-box { padding: 1.6rem 1.3rem; }

    .check-list li { padding: .9rem 1.1rem .9rem 3rem; }
    .check-list li::before { left: 1rem; top: 1.25rem; }

    .topic-tile { padding: 1.1rem 1.2rem; }

    .sec-title { margin-left: 0; padding-left: 1.7rem; }
    .sec-note { margin-left: 1.7rem; }

    .cookie-note { padding: .9rem 1.1rem; }
}
