/*
Theme Name: dds_kixxchupanhtrungxe.com
Theme URI: https://kixxchupanhtrungxe.com/
Author: Александра Никифорова
Description: Информационная тема для сайта «Разные темы и полезные материалы»: обзоры, инструкции, чек-листы. Холодная лавандовая палитра, минималистичная технологичная вёрстка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kxch
*/

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

:root {
    --bg:          #F8F6FC;
    --bg-alt:      #EFEBF5;
    --bg-white:    #FFFFFF;
    --bg-sidebar:  #F4F1FA;
    --bg-footer:   #2A2438;
    --line:        #D9D0E5;
    --grid:        #E4DCF0;
    --text:        #1E1A26;
    --muted:       #A69BB5;
    --accent:      #8B6FE8;
    --accent-dark: #6F55C7;
    --accent-2:    #B8A0F0;
    --radius:      6px;
    --radius-btn:  4px;
    --shell:       1180px;
    --font: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   2. Сброс и база
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.72;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 20px 20px;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: #B8A0F0;
    opacity: .15;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.site-wrap { position: relative; z-index: 1; }

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

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

.entry-content a,
.widget-area a.text-link,
.comment-text a {
    position: relative;
}

.entry-content a::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}

.entry-content a:hover::after,
.comment-text a:hover::after { transform: scaleX(1); }

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

h1 { font-size: 2.8rem; letter-spacing: .015em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

/* Заголовки секций — тонкая линия слева, короче текста */
.sec-title {
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 1.4rem;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    max-width: 140px;
    height: 2px;
    background: var(--accent);
}

/* Ромбовидные буллеты */
.entry-content ul,
.checklist,
.widget ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li,
.widget ul li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: .5em;
}

.entry-content ul li::before,
.widget ul li::before {
    content: "◊";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 1.05em;
    line-height: 1.6;
}

.entry-content ol { padding-left: 1.3rem; }
.entry-content ol li { margin-bottom: .5em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 var(--radius) var(--radius) 0;
}

blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--bg-white);
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: .65rem .85rem;
    text-align: left;
}

th { background: var(--bg-alt); font-weight: 600; }

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
}

pre {
    background: var(--bg-alt);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

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

.btn {
    display: inline-block;
    padding: .72rem 1.5rem;
    border-radius: var(--radius-btn);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--accent-dark);
}

.btn-light:hover {
    background: #2A2438;
    border-color: #2A2438;
    color: #fff;
}

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

.topbar {
    height: 3px;
    width: 100%;
    background: var(--accent);
}

.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

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

.brand-mark { width: 42px; height: 42px; }

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

.brand-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: .01em;
    color: var(--text);
}

.brand-desc {
    display: block;
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: .25rem;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    padding: .5rem .8rem;
    font: inherit;
    font-size: .9rem;
    color: var(--text);
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    position: relative;
    color: var(--text);
    font-size: .95rem;
    font-weight: 500;
    padding: .25rem 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .22s ease;
}

.main-nav a:hover { color: var(--accent); }
.main-nav a:hover::after { transform: scaleX(1); }

.main-nav .current-menu-item > a { color: var(--accent); }
.main-nav .current-menu-item > a::after { transform: scaleX(1); }

/* ============================================================
   5. Раскладка
   ============================================================ */

.site-main { padding: 2.6rem 0 3.4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 3%;
    align-items: start;
}

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

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

.sidebar {
    min-width: 0;
    background: var(--bg-sidebar);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.4rem .6rem;
}

.breadcrumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--muted); }

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(217, 208, 229, .55);
    transition: transform .22s ease, box-shadow .22s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(217, 208, 229, .95);
}

.card:hover::after { transform: scaleX(1); }

.card-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--bg-alt);
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(139, 111, 232, .16), rgba(184, 160, 240, .28)),
        var(--bg-alt);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.25rem 1.35rem;
}

.card-title {
    font-size: 1.16rem;
    margin: 0 0 .5rem;
    line-height: 1.35;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }

.card-meta {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .7rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.card-excerpt {
    font-size: .95rem;
    color: #4A4356;
    margin-bottom: 1rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt p:last-child { margin-bottom: 0; }

.card-more { margin-top: auto; }

.card-more .btn { padding: .55rem 1.15rem; font-size: .88rem; }

/* ============================================================
   7. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--bg-white);
    color: var(--text);
    font-size: .93rem;
    font-weight: 500;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(2px);
}

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

.pager .page-numbers.dots {
    border: none;
    background: transparent;
    color: var(--muted);
}

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

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

.front-shell {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--shell);
}

.section-lead {
    color: #4A4356;
    max-width: 760px;
}

/* 8.1 Цитата на градиенте */
.fs-quote {
    position: relative;
    background: linear-gradient(180deg, #8B6FE8 0%, #B8A0F0 100%);
    color: #fff;
    border-radius: 10px;
    padding: 3rem 3rem 3.2rem;
    overflow: hidden;
    margin: 3rem 0;
}

.fs-quote .quote-mark {
    position: absolute;
    top: -34px;
    right: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 11rem;
    line-height: 1;
    color: rgba(255, 255, 255, .22);
    pointer-events: none;
    user-select: none;
}

.fs-quote .quote-eyebrow {
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 1.1rem;
}

.fs-quote blockquote {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.1rem;
    line-height: 1.35;
    color: #fff;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.fs-quote .quote-sub {
    margin-top: 1.3rem;
    color: rgba(255, 255, 255, .88);
    font-size: 1rem;
    max-width: 720px;
    position: relative;
    z-index: 1;
}

/* 8.2 Чек-лист */
.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .85rem;
}

.checklist li {
    position: relative;
    min-width: 0;
    padding: 1rem 1.3rem 1rem 3.2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(217, 208, 229, .5);
    font-size: 1.02rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.35rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    transform: rotate(45deg);
    border-radius: 2px;
}

.checklist li strong { display: block; margin-bottom: .15rem; }

/* 8.3 Текст + иллюстрация */
.fs-duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.fs-duo .duo-art {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.fs-duo .duo-art img {
    display: block;
    width: 100%;
    max-width: 460px;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.fs-duo .duo-text { min-width: 0; }

.duo-points {
    list-style: none;
    margin: 1.2rem 0 1.6rem;
    padding: 0;
}

.duo-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .6rem;
}

.duo-points li::before {
    content: "◊";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

/* 8.4 Карта тем */
.topic-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.6rem 1.4rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(217, 208, 229, .55);
    color: var(--text);
    transition: background .22s ease, transform .22s ease, box-shadow .22s ease;
}

.topic-tile:hover {
    background: var(--bg-alt);
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(217, 208, 229, .9);
}

.topic-tile svg {
    display: block;
    width: 38px;
    height: 38px;
    margin-bottom: .9rem;
    stroke: var(--text);
    fill: none;
    stroke-width: 1.4;
    transition: stroke .22s ease;
}

.topic-tile:hover svg { stroke: var(--accent); }

.topic-tile .tile-name {
    display: block;
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: .35rem;
    transition: color .22s ease;
}

.topic-tile:hover .tile-name { color: var(--accent); }

.topic-tile .tile-note {
    display: block;
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.55;
}

/* 8.5 Последние записи на главной */
.fs-latest { padding: 3.4rem 0; }

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.latest-head .sec-title { margin-bottom: 0; }

/* ============================================================
   9. Записи и страницы
   ============================================================ */

.entry-header { margin-bottom: 1.4rem; }

.entry-title { font-size: 2.2rem; margin-bottom: .6rem; }

.entry-meta {
    font-size: .85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

.entry-thumb {
    margin-bottom: 1.6rem;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.entry-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.9rem 2rem;
    box-shadow: 0 4px 16px rgba(217, 208, 229, .5);
}

.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }

.entry-content img { border-radius: var(--radius); }

.entry-footer {
    margin-top: 1.4rem;
    font-size: .88rem;
    color: var(--muted);
}

.entry-footer a { color: var(--accent); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.8rem;
}

.post-nav a {
    display: block;
    min-width: 0;
    padding: 1rem 1.2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 3px 12px rgba(217, 208, 229, .5);
    color: var(--text);
    transition: transform .2s ease, box-shadow .2s ease;
}

.post-nav a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(217, 208, 229, .85);
}

.post-nav .nav-label {
    display: block;
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .3rem;
}

.page-heading {
    font-size: 2rem;
    margin-bottom: 1.4rem;
}

/* ============================================================
   10. Виджеты
   ============================================================ */

.widget { margin-bottom: 1.5rem; }

.widget-title {
    font-size: 1.05rem;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.widget ul { margin: 0; }

.widget ul li {
    padding-left: 1.3rem;
    margin-bottom: .55em;
    line-height: 1.5;
}

/* Сайдбар — светлый фон, тёмный текст */
.sidebar .widget { color: var(--text); }
.sidebar .widget-title { color: var(--text); }
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date,
.sidebar .widget .rss-date { color: var(--muted); font-size: .82rem; display: block; }
.sidebar .widget li::before { color: var(--accent); }

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

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

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.4rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-col { min-width: 0; }

.site-footer .widget { color: #DDD6EA; margin-bottom: 0; }
.site-footer .widget p { color: #C7BEDA; }
.site-footer .widget-title { color: #FFFFFF; }
.site-footer .widget-title::after { background: var(--accent-2); }
.site-footer .widget a { color: #D9CFF2; }
.site-footer .widget a:hover { color: #FFFFFF; }
.site-footer .widget li::before { color: var(--accent-2); }
.site-footer .widget .post-date { color: #A69BB5; font-size: .82rem; display: block; }

.footer-bottom {
    padding-top: 1.5rem;
    font-size: .85rem;
    color: #A69BB5;
}

/* ============================================================
   12. Формы, поиск, комментарии
   ============================================================ */

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

.search-form input[type="search"] {
    flex: 1 1 180px;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--text);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button { flex: 0 0 auto; }

.comments-area {
    margin-top: 2.2rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.7rem 2rem;
    box-shadow: 0 4px 16px rgba(217, 208, 229, .5);
}

.comments-title { font-size: 1.35rem; margin-bottom: 1.2rem; }

.comment-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

.comment-list ul.children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0;
}

.comment-item { margin-bottom: 1.1rem; }

.comment-body {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
}

.comment-meta {
    display: flex;
    gap: .9rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.comment-author { font-weight: 600; }
.comment-author a { color: var(--text); }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }

.comment-actions { margin-top: .5rem; font-size: .88rem; }

.comment-respond { margin-top: 1.4rem; }

.comment-form label {
    display: block;
    font-size: .88rem;
    margin-bottom: .3rem;
    color: #4A4356;
}

.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(--radius-btn);
    background: #fff;
    font: inherit;
    font-size: .95rem;
    color: var(--text);
    margin-bottom: 1rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form .submit {
    display: inline-block;
    padding: .72rem 1.5rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(2px);
}

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

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: #2A2438;
    color: #E4DEF0;
    border-top: 2px solid var(--accent);
    font-size: .9rem;
    line-height: 1.55;
}

.cookie-banner p { margin: 0; min-width: 0; flex: 1 1 320px; }
.cookie-banner a { color: var(--accent-2); }

/* ============================================================
   14. 404 и служебные
   ============================================================ */

.notice-box {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    box-shadow: 0 4px 16px rgba(217, 208, 229, .5);
}

.error-404 .btn { margin-top: 1rem; }

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

.skip-link { position: absolute; left: -9999px; }

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

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

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

    .layout-single { width: 100%; }
    .front-shell { width: 92%; }

    .fs-duo {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .fs-duo .duo-art { order: 2; }

    .nav-toggle { display: inline-flex; }

    .main-nav {
        flex-basis: 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        padding-top: .8rem;
        border-top: 1px solid var(--line);
        margin-top: .4rem;
    }

    .main-nav a { padding: .55rem 0; }
}

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

    h1 { font-size: 1.85rem; }
    .entry-title { font-size: 1.7rem; }

    .site-main { padding: 1.8rem 0 2.6rem; }

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

    .fs-quote {
        padding: 2rem 1.5rem 2.2rem;
        margin: 2rem 0;
    }

    .fs-quote blockquote { font-size: 1.5rem; }
    .fs-quote .quote-mark { font-size: 7rem; top: -18px; right: 8px; }

    .entry-content { padding: 1.3rem 1.2rem; }
    .comments-area { padding: 1.3rem 1.2rem; }
    .notice-box { padding: 1.3rem 1.2rem; }
    .sidebar { padding: 1.2rem 1.2rem .4rem; }

    .checklist li { padding: .9rem 1.1rem .9rem 2.9rem; }
    .checklist li::before { left: 1.05rem; top: 1.25rem; }

    .card-grid { grid-template-columns: minmax(0, 1fr); }

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