/*
Theme Name: dds_j88km.com
Theme URI: https://j88km.com/
Author: Пётр Лебедев
Description: Информационная тема для сайта «Разные темы и практические материалы». Японский минимализм с мягким неоморфизмом и лавандово-сливовой палитрой.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: wasumi
*/

:root {
    --paper: #F7F5FC;
    --paper-alt: #EDE8F5;
    --paper-deep: #DDD6F0;
    --ink: #1E1826;
    --ink-soft: #7C6F8C;
    --lav: #A78BFA;
    --plum: #6D28D9;
    --dark: #2A2438;
    --card-shadow: 0 18px 40px rgba(109, 40, 217, 0.15);
    --card-shadow-hi: 0 26px 54px rgba(109, 40, 217, 0.22);
    --soft-in: inset 4px 4px 10px rgba(109, 40, 217, 0.12), inset -4px -4px 10px rgba(255, 255, 255, 0.9);
    --bevel: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    --font-head: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Noto Sans", "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* Служебные правила скрытия — до основных стилей элементов */
.cookie-banner[hidden] { display: none !important; }
.top-nav-list[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 3px 0 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: radial-gradient(circle, rgba(124, 111, 140, 0.16) 1px, transparent 1px);
    background-size: 28px 28px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--lav);
    text-decoration: none;
    transition: color .2s ease, text-decoration-color .2s ease;
}

a:hover {
    color: var(--plum);
    text-decoration: underline dotted var(--plum);
    text-underline-offset: 4px;
}

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

h1 { font-size: 3.5rem; font-weight: 600; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: var(--paper-alt);
    border-left: 3px solid var(--lav);
    border-radius: 0 12px 12px 0;
    color: var(--ink);
}

code, pre {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .92em;
    background: var(--paper-alt);
}

pre {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    background: #fff;
    border: 1px solid #D8CFEA;
}

th, td {
    border: 1px solid #D8CFEA;
    padding: .7rem .9rem;
    text-align: left;
}

th { background: var(--paper-alt); font-family: var(--font-head); font-weight: 600; }

/* --- Контейнеры --------------------------------------------------------- */

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

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

.layout { margin-inline: auto; }

.layout-single {
    display: block;
    width: min(85%, 1040px);
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 3rem 6%;
    width: min(92%, 1180px);
}

/* --- Декоративная полоса ------------------------------------------------ */

.edge-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--lav), var(--plum));
    z-index: 90;
}

/* --- Шапка -------------------------------------------------------------- */

.site-top {
    position: relative;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .25s ease;
    padding: 1.4rem 0;
}

.site-top.is-scrolled { background: rgba(247, 245, 252, 0.92); }

.top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

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

.brand:hover { text-decoration: none; }

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.3;
}

.brand-note {
    display: block;
    font-size: .8rem;
    color: var(--ink-soft);
    line-height: 1.45;
    margin-top: .2rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    border: 1.5px solid var(--plum);
    background: transparent;
    color: var(--plum);
    font-family: var(--font-head);
    font-size: .92rem;
    padding: .5rem .9rem;
    cursor: pointer;
    clip-path: var(--bevel);
}

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

.top-nav-list li { margin: 0; }

.top-nav-list a {
    font-family: var(--font-head);
    font-size: .96rem;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1.5px solid transparent;
}

.top-nav-list a:hover,
.top-nav-list .current-menu-item > a {
    color: var(--plum);
    text-decoration: none;
    border-bottom-color: var(--lav);
}

/* --- Кнопки ------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    padding: .78rem 1.6rem;
    background: var(--plum);
    color: #fff;
    clip-path: var(--bevel);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.22);
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    color: #fff;
    text-decoration: none;
    transform: translateY(2px);
    box-shadow: 0 14px 30px rgba(109, 40, 217, 0.32);
}

.btn-line {
    background: transparent;
    color: var(--plum);
    box-shadow: none;
    border: 1.5px solid var(--plum);
}

.btn-line:hover {
    background: var(--plum);
    color: #fff;
    transform: translateY(2px);
}

/* --- Заголовки секций --------------------------------------------------- */

.sec-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 2rem;
    font-weight: 600;
    text-transform: lowercase;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    width: 3px;
    height: 1.5em;
    background: var(--lav);
}

.sec-title.is-shifted { margin-left: 8%; }

.sec-lead {
    color: var(--ink-soft);
    max-width: 60%;
    margin-bottom: 2.2rem;
}

/* --- Хлебные крошки ----------------------------------------------------- */

.path-line {
    font-size: .85rem;
    color: var(--ink-soft);
    margin-bottom: 1.8rem;
}

.path-line a { color: var(--ink-soft); }
.path-line a:hover { color: var(--plum); }
.path-sep { color: var(--lav); padding: 0 .25rem; }

/* --- Карточки записей --------------------------------------------------- */

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: var(--paper-alt);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--lav), var(--plum));
    opacity: 0;
    transition: opacity .22s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hi); }
.card:hover::after { opacity: 1; }

.card-thumb { display: block; }

.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, var(--paper-deep), var(--paper-alt) 60%, #fff);
}

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

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--plum); text-decoration: none; }

.card-excerpt { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.entry-meta {
    font-size: .82rem;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: .7rem;
}

.entry-meta a { color: var(--ink-soft); }
.entry-meta a:hover { color: var(--plum); }

.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--lav);
    display: inline-block;
}

.card-more {
    align-self: flex-start;
    margin-top: 1rem;
    font-family: var(--font-head);
    font-size: .88rem;
    font-weight: 600;
    color: var(--plum);
}

/* --- Пагинация ---------------------------------------------------------- */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .92rem;
    clip-path: var(--bevel);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.10);
    transition: transform .18s ease, background .18s ease, color .18s ease;
}

.pager .page-numbers:hover {
    background: var(--paper-alt);
    color: var(--plum);
    text-decoration: none;
    transform: translateY(2px);
}

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

.pager .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    color: var(--ink-soft);
}

/* --- Записи и страницы -------------------------------------------------- */

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

.entry-cover {
    margin: 0 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

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

.entry-content { position: relative; }
.entry-content h2 { margin-top: 1.9em; font-size: 1.7rem; }
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 12px; display: block; }

.single .page-body {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='240' viewBox='0 0 260 240'%3E%3Cg fill='none' stroke='%23A78BFA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 220 C70 190 110 150 150 90 190 40 220 25 245 18'/%3E%3Cpath d='M96 145 C110 132 128 128 146 132'/%3E%3Cpath d='M150 92 C160 74 176 62 196 58'/%3E%3C/g%3E%3Cg fill='%23A78BFA'%3E%3Ccircle cx='146' cy='131' r='7'/%3E%3Ccircle cx='196' cy='57' r='7'/%3E%3Ccircle cx='120' cy='118' r='5'/%3E%3Ccircle cx='176' cy='70' r='5'/%3E%3Ccircle cx='224' cy='36' r='6'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2% top 1rem;
    background-size: 260px auto;
}

.entry-tags {
    margin-top: 2.4rem;
    font-size: .88rem;
    color: var(--ink-soft);
}

.entry-tags a {
    display: inline-block;
    margin: 0 .35rem .35rem 0;
    padding: .25rem .7rem;
    background: var(--paper-alt);
    color: var(--plum);
    border-radius: 999px;
}

.entry-tags a:hover { text-decoration: none; background: var(--paper-deep); }

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--paper-deep);
    font-family: var(--font-head);
    font-size: .92rem;
}

.entry-nav span { display: block; color: var(--ink-soft); font-size: .78rem; }

/* --- Сайдбар ------------------------------------------------------------ */

.sidebar { min-width: 0; }

.sidebar .widget-block {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.8rem;
    box-shadow: 0 16px 34px rgba(109, 40, 217, 0.12);
    color: var(--ink);
}

.sidebar .widget-block-title {
    position: relative;
    padding-left: .9rem;
    font-size: 1.05rem;
    font-weight: 600;
    text-transform: lowercase;
    color: var(--ink);
    margin-bottom: 1rem;
}

.sidebar .widget-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    width: 3px;
    height: 1.5em;
    background: var(--lav);
}

.sidebar .widget-block ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget-block li { padding: .45rem 0; border-bottom: 1px dashed var(--paper-deep); }
.sidebar .widget-block li:last-child { border-bottom: none; }
.sidebar .widget-block a { color: var(--ink); }
.sidebar .widget-block a:hover { color: var(--plum); }
.sidebar .widget-block .post-date { display: block; font-size: .78rem; color: var(--ink-soft); }
.sidebar .widget-block p { color: var(--ink-soft); font-size: .93rem; }

/* --- Формы -------------------------------------------------------------- */

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

.search-line input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--paper-deep);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
}

.search-line input[type="search"]:focus { outline: 2px solid var(--lav); outline-offset: 1px; }

.search-line button {
    border: none;
    background: var(--plum);
    color: #fff;
    font-family: var(--font-head);
    font-size: .9rem;
    padding: .7rem 1.1rem;
    cursor: pointer;
    clip-path: var(--bevel);
}

/* --- Комментарии -------------------------------------------------------- */

.talk { margin-top: 3rem; }
.talk-title { font-size: 1.5rem; font-weight: 600; text-transform: lowercase; margin-bottom: 1.5rem; }
.talk-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.talk-list .children { list-style: none; padding-left: 1.5rem; }

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

.talk-body {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 12px 26px rgba(109, 40, 217, 0.10);
}

.talk-head {
    display: flex;
    gap: .8rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.talk-author { font-family: var(--font-head); font-weight: 600; }
.talk-head time { font-size: .8rem; color: var(--ink-soft); }
.talk-text p { margin-bottom: .6em; }
.talk-actions { font-size: .85rem; font-family: var(--font-head); }
.talk-hold { color: var(--ink-soft); font-size: .88rem; }

.comment-form {
    background: var(--paper-alt);
    border-radius: 16px;
    padding: 1.8rem 1.8rem 1.4rem;
}

.comment-form label { display: block; font-size: .85rem; color: var(--ink-soft); 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(--paper-deep);
    border-radius: 10px;
    background: #fff;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
}

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

.comment-form .submit {
    border: none;
    background: var(--plum);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    padding: .78rem 1.6rem;
    cursor: pointer;
    clip-path: var(--bevel);
}

.comment-form .comment-notes,
.comment-form .form-submit { margin-top: 1rem; }

/* --- Главная: hero ------------------------------------------------------ */

.front-section { position: relative; padding: 5rem 0; }
.front-section.tone-alt { background: var(--paper-alt); }
.front-section.tone-dark { background: var(--dark); color: #EDE8F5; }

.fs-hero { overflow: visible; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3rem;
    align-items: center;
}

.hero-copy { min-width: 0; }

.hero-copy h1 { margin-bottom: 1.2rem; }
.hero-copy h1 .h1-drop { display: block; margin-left: 12%; color: var(--plum); }

.hero-copy p { color: var(--ink-soft); max-width: 60%; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.hero-art {
    position: relative;
    min-width: 0;
    height: 320px;
}

.hero-stone {
    position: absolute;
    left: 12%;
    bottom: 12%;
    width: 76%;
    height: 62%;
    background: linear-gradient(160deg, #4C3A78 0%, #6D28D9 55%, #A78BFA 100%);
    border-radius: 46% 54% 40% 60% / 62% 58% 42% 38%;
    box-shadow: 0 30px 60px rgba(42, 36, 56, 0.28);
}

.hero-stone::after {
    content: "";
    position: absolute;
    left: 12%;
    top: 14%;
    width: 34%;
    height: 22%;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    filter: blur(6px);
}

.hero-moon {
    position: absolute;
    right: 8%;
    top: 6%;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 2px solid var(--lav);
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(237, 232, 245, .35));
}

.hero-blob {
    position: absolute;
    right: -6%;
    bottom: -34%;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--lav);
    opacity: .15;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.fs-hero .shell-wide { position: relative; z-index: 1; }

/* --- Главная: сетка иконок --------------------------------------------- */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
}

.pillar { min-width: 0; }

.pillar-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: var(--paper-alt);
    box-shadow: var(--soft-in);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.pillar-icon svg { width: 30px; height: 30px; stroke: var(--plum); fill: none; stroke-width: 1.6; }

.pillar h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .5rem; }
.pillar p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* --- Главная: последние записи ----------------------------------------- */

.fs-latest .card { background: #fff; }

.fs-latest-foot { margin-top: 2.4rem; }

/* --- Главная: таймлайн -------------------------------------------------- */

.road { position: relative; padding-left: 3.4rem; }

.road::before {
    content: "";
    position: absolute;
    left: 14px;
    top: .6rem;
    bottom: .6rem;
    width: 1px;
    background: var(--lav);
}

.road-step { position: relative; margin-bottom: 2.4rem; min-width: 0; }
.road-step:last-child { margin-bottom: 0; }

.road-step::before {
    content: "";
    position: absolute;
    left: -3.4rem;
    top: .55rem;
    width: 11px;
    height: 11px;
    margin-left: 9px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--plum);
}

.road-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1;
    color: rgba(124, 111, 140, 0.35);
    margin-bottom: .35rem;
}

.road-step h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: .4rem; }
.road-step p { color: var(--ink-soft); max-width: 60%; margin: 0; }

/* --- Главная: цитата ---------------------------------------------------- */

.fs-quote { position: relative; overflow: hidden; }

.quote-plate {
    position: relative;
    padding: 2.6rem 2.4rem;
}

.quote-mark {
    position: absolute;
    right: 1.4rem;
    top: 0;
    width: 90px;
    height: 90px;
    opacity: .28;
}

.quote-mark svg { width: 100%; height: 100%; fill: var(--lav); }

.quote-text {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.45;
    color: #F4F1FB;
    margin: 0 0 1.2rem;
    padding-left: 2.2rem;
    border-left: 3px solid var(--lav);
    max-width: 70%;
}

.quote-author {
    padding-left: 2.5rem;
    color: var(--lav);
    font-family: var(--font-head);
    font-size: .95rem;
}

.quote-author span { display: block; color: #9C90AE; font-size: .82rem; font-family: var(--font-body); }

/* --- Подвал ------------------------------------------------------------- */

.site-foot {
    background: var(--dark);
    color: #D9D2E6;
    padding: 3.4rem 0 1.6rem;
    margin-top: 4rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

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

.foot-cols .widget-block-title {
    position: relative;
    padding-left: .9rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: lowercase;
    color: #F4F1FB;
    margin-bottom: .9rem;
}

.foot-cols .widget-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    width: 3px;
    height: 1.5em;
    background: var(--lav);
}

.foot-cols .widget-block p { color: #B7ADC7; font-size: .92rem; }
.foot-cols .widget-block ul { list-style: none; padding: 0; margin: 0; }
.foot-cols .widget-block li { padding: .3rem 0; }
.foot-cols .widget-block a { color: #D9D2E6; }
.foot-cols .widget-block a:hover { color: var(--lav); text-decoration: none; }
.foot-cols .widget-block .post-date { display: block; font-size: .78rem; color: #9C90AE; }

.foot-line {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(167, 139, 250, 0.25);
    font-size: .85rem;
    color: #9C90AE;
}

/* --- Cookie-баннер ------------------------------------------------------ */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(42, 36, 56, 0.97);
    color: #E7E1F2;
    font-size: .9rem;
}

.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner a { color: var(--lav); }

.cookie-accept {
    border: none;
    background: var(--plum);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .9rem;
    padding: .6rem 1.4rem;
    cursor: pointer;
    clip-path: var(--bevel);
}

/* --- 404 и заглушки ----------------------------------------------------- */

.empty-block {
    background: var(--paper-alt);
    border-radius: 16px;
    padding: 2.2rem 2rem;
}

.empty-block h1 { font-size: 2.4rem; }
.empty-block .search-line { margin-top: 1.4rem; max-width: 420px; }
.empty-cta { margin-top: 1.4rem; }

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

/* --- Адаптив ------------------------------------------------------------ */

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

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; width: min(92%, 1180px); }
    .layout-single { width: min(92%, 1040px); }
    .shell-wide { width: min(92%, 1120px); }

    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { height: 240px; }
    .hero-copy p,
    .sec-lead,
    .road-step p,
    .quote-text { max-width: 100%; }

    .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec-title.is-shifted { margin-left: 0; }
    .single .page-body { background-image: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2, .sec-title { font-size: 1.6rem; }

    .front-section { padding: 3.2rem 0; }
    .page-body { padding: 2rem 0 3rem; }

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

    .top-row { flex-wrap: wrap; align-items: center; gap: 1rem; }
    .brand { flex: 1 1 auto; }

    .site-nav {
        flex-basis: 100%;
        order: 3;
    }

    .top-nav-list {
        flex-direction: column;
        gap: .2rem;
        width: 100%;
        margin-top: 1rem;
        padding-top: .8rem;
        border-top: 1px solid var(--paper-deep);
    }

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

    .hero-copy h1 .h1-drop { margin-left: 0; }
    .hero-art { height: 200px; }
    .hero-moon { width: 76px; height: 76px; }

    .quote-plate { padding: 1.9rem 1.4rem; }
    .quote-text { font-size: 1.35rem; padding-left: 1.2rem; }
    .quote-author { padding-left: 1.5rem; }

    .road { padding-left: 2.4rem; }
    .road::before { left: 9px; }
    .road-step::before { left: -2.4rem; margin-left: 4px; }

    .comment-form { padding: 1.4rem 1.2rem 1.2rem; }
    .empty-block { padding: 1.8rem 1.4rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    .sidebar .widget-block { padding: 1.3rem 1.3rem; }
}

/* --- Мелочи ------------------------------------------------------------- */

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

.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: var(--ink-soft); }
