/*
Theme Name: dds_cheriemarvel.com
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: chmarvel
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/oswald-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/oswald-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
    --c-page: #0E1B2A;
    --c-grid: #22384F;
    --c-map: #122436;
    --c-graphite: #1A2430;
    --c-paper: #EDE7DC;
    --c-paper-hi: #F5F0E8;
    --c-sand: #D8D0C2;
    --c-night: #0A121C;
    --c-text: #F2EDE4;
    --c-muted: #8FA3B8;
    --c-copper: #C97B4A;
    --c-copper-ink: #A35A2E;
    --c-teal: #5FB3A8;
    --c-teal-ink: #2B7268;
    --c-line: #3A5169;
    --c-ink: #1B2733;
    --c-ink-muted: #6E6459;
    --c-tag: #E9E5DE;
    --c-foot-text: #C3CDD8;
    --f-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    --f-body: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --radius: 6px;
    --gap: 1.5rem;
}

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

/* ---------- Сброс и основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--c-text);
    background-color: var(--c-page);
    background-image:
        linear-gradient(rgba(34, 56, 79, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 56, 79, .9) 1px, transparent 1px),
        linear-gradient(rgba(34, 56, 79, .38) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 56, 79, .38) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    background-position: -1px -1px;
}
img, svg, video { max-width: 100%; height: auto; }
p, li, td, th, dd, dt, h1, h2, h3, h4, h5, h6, blockquote, figcaption {
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 400;
    line-height: 1.15;
    margin: 1.6em 0 .6em;
}
a {
    color: var(--c-copper);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .22em;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
a:hover { color: var(--c-text); }
:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; }
button, input, textarea, select { font: inherit; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--c-copper);
    color: var(--c-night);
    padding: .6rem 1rem;
    text-decoration: none;
}
.skip:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell {
    width: min(85%, 1240px);
    margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.btn,
.seek-btn,
.form-submit .submit,
.cookie-accept {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--c-night);
    background: var(--c-copper);
    border: 0;
    border-radius: 0;
    padding: .8rem 1.5rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover,
.seek-btn:hover,
.form-submit .submit:hover,
.cookie-accept:hover {
    color: var(--c-night);
    background: var(--c-text);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--c-teal);
}
.panel-paper .btn:hover,
.sheetpanel .btn:hover,
.sheetpanel .seek-btn:hover,
.sheetpanel .form-submit .submit:hover {
    background: var(--c-ink);
    color: var(--c-text);
}

/* ---------- Шапка ---------- */
.masthead { padding: 2.6rem 0 2.2rem; }
.masthead-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--c-text);
    flex: 1 1 520px;
    min-width: 0;
}
.brand:hover { color: var(--c-text); }
.brand-mark { flex: 0 0 auto; color: #E6E1D8; line-height: 0; }
.brand-target { width: 76px; height: 76px; display: block; transition: transform .3s ease; }
.brand:hover .brand-target { transform: rotate(90deg); }
.brand-logo { display: block; max-width: 96px; max-height: 96px; width: auto; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 400;
    font-size: clamp(1.25rem, .95rem + .8vw, 1.75rem);
    line-height: 1.14;
    color: #E8E3DA;
    max-width: 46ch;
}
.brand-desc {
    font-size: .92rem;
    line-height: 1.45;
    color: var(--c-muted);
    max-width: 64ch;
}
.navtoggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--c-text);
    border: 1px solid var(--c-line);
    padding: .6rem .9rem;
    font-family: var(--f-head);
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.navtoggle-bars,
.navtoggle-bars::before,
.navtoggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--c-copper);
    position: relative;
}
.navtoggle-bars::before,
.navtoggle-bars::after { content: ""; position: absolute; left: 0; }
.navtoggle-bars::before { top: -6px; }
.navtoggle-bars::after { top: 6px; }
.topnav { flex: 0 1 auto; padding-top: .4rem; }
.topnav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.6rem;
}
.topnav-list a {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 300;
    font-size: 1.12rem;
    letter-spacing: .02em;
    color: #D9D4CB;
    text-decoration: none;
    padding: .2rem 0;
    border-bottom: 2px solid transparent;
}
.topnav-list a:hover,
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a {
    color: var(--c-text);
    border-bottom-color: var(--c-copper);
}

/* ---------- Хлебные крошки ---------- */
.crumbs {
    font-size: .9rem;
    color: var(--c-muted);
    padding: .2rem 0 1.4rem;
}
.crumbs a { color: var(--c-text); text-decoration-color: var(--c-copper); }
.crumbs a:hover { color: var(--c-copper); }
.crumbs-sep { color: var(--c-copper); margin: 0 .35rem; }

/* ---------- Подписи разделов ---------- */
.kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .7rem;
    margin: 0 0 .9rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .8rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.kicker::before {
    content: "";
    width: 30px;
    height: 3px;
    background: var(--c-copper);
    order: -2;
}
.kicker-num { order: -1; color: var(--c-teal); letter-spacing: .06em; }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--c-copper); }
.panel-paper .kicker,
.panel-sand .kicker,
.sheetpanel .kicker { color: var(--c-ink-muted); }
.panel-paper .kicker-num,
.panel-sand .kicker-num,
.sheetpanel .kicker-num { color: var(--c-teal-ink); }

/* ---------- Главная: панели ---------- */
.front { padding-bottom: .5rem; }
.front-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap);
    margin-bottom: var(--gap);
}
.front-pair > * { min-width: 0; }
.panel {
    position: relative;
    border-radius: var(--radius);
    padding: 2.6rem 2.6rem 2.8rem;
    margin-bottom: var(--gap);
    box-shadow: 0 18px 40px rgba(3, 8, 15, .45);
    overflow: hidden;
}
.front-pair .panel { margin-bottom: 0; }
.panel-map { background: var(--c-map); border: 1px solid rgba(58, 81, 105, .45); }
.panel-graphite { background: var(--c-graphite); border: 1px solid rgba(58, 81, 105, .45); }
.panel-deep {
    background-color: #0B1626;
    background-image:
        linear-gradient(rgba(34, 56, 79, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 56, 79, .35) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 1px solid rgba(58, 81, 105, .45);
}
.panel-paper { background: var(--c-paper); color: var(--c-ink); }
.panel-sand { background: var(--c-sand); color: var(--c-ink); }
.panel-title {
    font-family: var(--f-head);
    font-weight: 400;
    font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -.01em;
    margin: 0 0 1rem -.04em;
    color: #E8E3DA;
}
.panel-paper .panel-title,
.panel-sand .panel-title { color: var(--c-ink); }
.panel-lead {
    font-size: .98rem;
    color: var(--c-muted);
    max-width: 46ch;
    margin-bottom: 1.6rem;
}
.panel-sand .panel-lead { color: var(--c-ink-muted); }
.empty-note { color: var(--c-ink-muted); font-style: italic; }

/* Блок 1 — Анатомия решения */
.anatomy-stage {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}
.anatomy-scale {
    list-style: none;
    margin: 0;
    padding: 0 16px 0 0;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(var(--c-muted), var(--c-muted)) right 6px top 0 / 2px 100% no-repeat,
        linear-gradient(var(--c-muted), var(--c-muted)) right 0 top 0 / 14px 2px no-repeat,
        linear-gradient(var(--c-muted), var(--c-muted)) right 0 top 33.33% / 14px 2px no-repeat,
        linear-gradient(var(--c-muted), var(--c-muted)) right 0 top 66.66% / 14px 2px no-repeat,
        linear-gradient(var(--c-muted), var(--c-muted)) right 0 bottom 0 / 14px 2px no-repeat;
}
.anatomy-scale li {
    flex: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-family: var(--f-head);
    font-weight: 300;
    font-size: .95rem;
    letter-spacing: .04em;
    color: #D3CEC5;
    hyphens: manual;
}
.anatomy-figure {
    position: relative;
    margin: 0;
    min-width: 0;
}
.anatomy-figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 920 / 980;
}
.anatomy-tag {
    position: absolute;
    font-size: clamp(.78rem, .55rem + .75vw, 1.08rem);
    line-height: 1.15;
    color: #E3DED5;
    text-shadow: 0 1px 6px rgba(10, 18, 28, .8);
    hyphens: manual;
    white-space: nowrap;
}
.anatomy-tag-1 { left: 59%; top: 18.5%; }
.anatomy-tag-2 { left: 36.5%; top: 38%; }
.anatomy-tag-3 { left: 52%; top: 69.5%; }

/* Блок 2 — Ловушки на маршруте */
.traps { display: flex; flex-direction: column; }
.traps-board {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0 .4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 1.3rem;
}
.tag-card {
    min-width: 0;
    background: var(--c-tag);
    color: var(--c-ink);
    border-radius: 7px;
    padding: 1.15rem 1.2rem 1.25rem;
    box-shadow: 0 14px 26px rgba(0, 0, 0, .42), 0 2px 0 rgba(255, 255, 255, .6) inset;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.tag-card-1 { transform: rotate(-7deg); }
.tag-card-2 { transform: rotate(-8deg) translateY(.6rem); }
.tag-card-3 { transform: rotate(-5deg) translateX(.5rem); }
.tag-card-4 { transform: rotate(-9deg) translateY(1rem); }
.tag-card:hover {
    transform: rotate(0deg) translate(-3px, -4px);
    box-shadow: 6px 6px 0 var(--c-copper);
}
.tag-num {
    font-family: var(--f-head);
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--c-copper);
}
.tag-name {
    font-weight: 400;
    font-size: 1.32rem;
    line-height: 1.12;
    hyphens: manual;
}
.tag-note {
    font-size: .86rem;
    line-height: 1.4;
    color: var(--c-ink-muted);
}
.traps-key {
    display: block;
    width: min(44%, 220px);
    height: auto;
    margin: auto 0 0 .2rem;
    padding-top: 2.2rem;
    transform: rotate(-4deg);
}

/* Блок «Последние записи» */
.latest { padding-top: 2.4rem; }
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 1.8rem;
}
.latest-head .panel-title { margin-bottom: 0; }

/* ---------- Карточки записей ---------- */
.cards { display: grid; gap: 1.6rem; }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-paper-hi);
    border: 1px solid var(--c-line);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 5px 5px 0 var(--c-copper);
    border-color: var(--c-ink);
}
.card-thumb { padding: 10px 10px 0; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: saturate(.85);
}
.card-thumb-blank {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background-color: var(--c-map);
    background-image:
        linear-gradient(rgba(58, 81, 105, .6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 81, 105, .6) 1px, transparent 1px);
    background-size: 18px 18px;
}
.card-thumb-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    border: 2px solid var(--c-teal);
    box-shadow: 0 0 0 10px var(--c-map), 0 0 0 12px var(--c-teal);
}
.card-thumb-ring::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--c-copper);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.1rem 1.2rem 1.25rem;
}
.card-pin {
    align-self: flex-start;
    font-family: var(--f-head);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-paper-hi);
    background: var(--c-teal-ink);
    padding: .15rem .55rem;
    margin-bottom: .6rem;
}
.card-title {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.28rem;
    line-height: 1.2;
    margin: 0 0 .55rem;
}
.card-title a { color: var(--c-ink); text-decoration: none; }
.card-title a:hover { color: var(--c-copper-ink); }
.card-excerpt {
    font-size: .95rem;
    line-height: 1.5;
    color: var(--c-ink-muted);
}
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--c-copper-ink); }
.card-foot {
    margin-top: auto;
    padding-top: .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .5rem 1rem;
}
.card-date {
    font-family: var(--f-head);
    font-size: .82rem;
    letter-spacing: .08em;
    color: var(--c-teal-ink);
}
.card-more {
    font-family: var(--f-head);
    font-size: .95rem;
    color: var(--c-copper-ink);
    text-decoration-color: var(--c-copper);
}
.card-more span { display: inline-block; transition: transform .15s ease; }
.card-more:hover { color: var(--c-ink); }
.card-more:hover span { transform: translateX(4px); }

/* Блок 3 — Проверочный лист */
.sheet {
    position: relative;
    max-width: 440px;
    margin: .6rem auto 0;
}
.sheet img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 780 / 948;
}
.sheet-list {
    position: absolute;
    top: 26.5%;
    left: 13%;
    right: 7%;
    margin: 0;
    padding: 0;
    list-style: none;
    transform: rotate(-1.4deg);
    transform-origin: left top;
}
.sheet-list li {
    display: flex;
    align-items: center;
    gap: .75em;
    font-size: clamp(1rem, .82rem + .6vw, 1.28rem);
    line-height: 1.3;
    color: var(--c-ink);
    hyphens: manual;
}
.sheet-list li + li { margin-top: 1.5em; }
.sheet-list li::before {
    content: "";
    flex: 0 0 1.05em;
    height: 1.05em;
    border: 2px solid #2A2F35;
    border-radius: 2px;
    background: rgba(255, 255, 255, .5);
}

/* Блок 4 — Словарь искажений */
.glossary-wrap { overflow-x: auto; }
.glossary-table {
    min-width: 480px;
    font-size: .93rem;
    line-height: 1.45;
    border: 1px solid var(--c-ink-muted);
    background: rgba(245, 240, 232, .35);
}
.glossary-table th,
.glossary-table td {
    border: 1px solid var(--c-ink-muted);
    padding: .75rem .85rem;
    text-align: left;
    vertical-align: top;
}
.glossary-table thead th {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .88rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(27, 39, 51, .09);
}
.glossary-table tbody th {
    padding-left: 2rem;
    background: radial-gradient(circle, transparent 3px, var(--c-teal-ink) 3.5px, var(--c-teal-ink) 5px, transparent 5.5px) .8rem 1.05rem / 12px 12px no-repeat;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.02rem;
    width: 26%;
    color: var(--c-ink);
}
.glossary-table tbody tr { transition: background-color .15s ease; }
.glossary-table tbody tr:hover { background: rgba(201, 123, 74, .12); }

/* ---------- Раскладки внутренних страниц ---------- */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }

.sheetpanel {
    position: relative;
    background: var(--c-paper);
    color: var(--c-ink);
    border-radius: var(--radius);
    padding: 2.4rem 2.6rem 2.6rem;
    box-shadow: 0 18px 40px rgba(3, 8, 15, .45);
    margin-bottom: var(--gap);
}
.sheetpanel::before {
    content: "";
    position: absolute;
    left: 2.6rem;
    top: 0;
    width: 64px;
    height: 4px;
    background: var(--c-copper);
}
.page-head { margin-bottom: 1.8rem; }
.page-title {
    font-family: var(--f-head);
    font-weight: 400;
    font-size: clamp(2rem, 1.35rem + 2vw, 3.1rem);
    line-height: 1.06;
    margin: 0;
    color: var(--c-ink);
}
.page-intro { margin-top: 1rem; }
.post-meta {
    margin: .8rem 0 0;
    font-family: var(--f-head);
    font-size: .88rem;
    letter-spacing: .08em;
    color: var(--c-teal-ink);
}
.post-cover { margin: 0 0 1.8rem; }
.post-cover img { display: block; width: 100%; height: auto; }
.post-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.post-tags a {
    font-size: .88rem;
    color: var(--c-ink);
    text-decoration: none;
    border: 1px solid var(--c-line);
    padding: .2rem .6rem;
}
.post-tags a:hover { border-color: var(--c-copper); color: var(--c-copper-ink); }

/* ---------- Текст записи ---------- */
.entry { font-size: 1.06rem; }
.entry > *:first-child { margin-top: 0; }
.entry a { color: var(--c-copper-ink); text-decoration-color: var(--c-copper); }
.entry a:hover { color: var(--c-ink); }
.entry h2 {
    font-size: 1.85rem;
    padding-left: 1rem;
    border-left: 4px solid var(--c-copper);
}
.entry h3 { font-size: 1.45rem; font-weight: 500; }
.entry h4 { font-size: 1.2rem; font-weight: 500; }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry ul li::marker { color: var(--c-copper); }
.entry ol li::marker { color: var(--c-teal-ink); font-family: var(--f-head); }
.entry img { display: block; max-width: 100%; height: auto; }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .88rem; color: var(--c-ink-muted); margin-top: .5em; }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.7rem;
    background: var(--c-graphite);
    color: var(--c-text);
    border-left: 4px solid var(--c-copper);
    font-size: 1.12rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry blockquote cite { display: block; margin-top: .6em; font-size: .9rem; color: var(--c-muted); font-style: normal; }
.entry blockquote a { color: var(--c-copper); }
.entry table { margin: 1.4em 0; font-size: .95rem; border: 1px solid var(--c-ink-muted); }
.entry th, .entry td { border: 1px solid var(--c-ink-muted); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.entry th { font-family: var(--f-head); font-weight: 500; background: rgba(27, 39, 51, .08); }
.entry .wp-block-table { overflow-x: auto; }
.entry pre {
    background: var(--c-page);
    color: var(--c-text);
    padding: 1rem 1.2rem;
    overflow-x: auto;
    font-size: .9rem;
}
.entry code { font-size: .92em; background: rgba(27, 39, 51, .08); padding: .1em .3em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; height: 1px; background: var(--c-line); margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .88rem; color: var(--c-ink-muted); }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: 2.2rem;
}
.pager .page-numbers,
.pager > span,
.pager > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 .8rem;
    font-family: var(--f-head);
    font-size: 1rem;
    color: var(--c-ink);
    text-decoration: none;
    border: 1px solid var(--c-line);
    background: transparent;
}
.pager a.page-numbers:hover,
.pager > a:hover {
    background: var(--c-ink);
    color: var(--c-text);
    border-color: var(--c-ink);
}
.pager .page-numbers.current,
.pager > span.current {
    background: var(--c-copper);
    border-color: var(--c-copper);
    color: var(--c-night);
}
.pager .page-numbers.dots { border: 0; min-width: 1.5rem; padding: 0; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--c-map);
    color: var(--c-text);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
}
.sidebar .wbox + .wbox { margin-top: 2rem; }
.sidebar .wbox-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 1rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--c-text);
}
.sidebar .wbox-title::before { content: ""; width: 22px; height: 3px; background: var(--c-copper); flex: 0 0 auto; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .6rem 0; border-bottom: 1px dashed var(--c-line); color: var(--c-muted); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--c-text); text-decoration: none; }
.sidebar a:hover { color: var(--c-copper); }
.sidebar p, .sidebar .textwidget { color: #D5D0C7; font-size: .95rem; }
.sidebar .post-date { display: block; font-size: .82rem; color: var(--c-teal); }

/* ---------- Поиск ---------- */
.seek { margin: 1rem 0 1.4rem; }
.seek-label {
    display: block;
    font-family: var(--f-head);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: .45rem;
    color: var(--c-ink-muted);
}
.seek-row { display: flex; gap: 0; }
.seek-input {
    flex: 1;
    min-width: 0;
    padding: .75rem .9rem;
    border: 1px solid var(--c-line);
    border-right: 0;
    border-radius: 0;
    background: var(--c-paper-hi);
    color: var(--c-ink);
}
.seek-btn { padding: .75rem 1.2rem; }
.sidebar .seek-label { color: var(--c-muted); }
.sidebar .seek-input { background: var(--c-page); color: var(--c-text); }
.sidebar .seek-input::placeholder { color: var(--c-muted); }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-target { display: block; width: 110px; height: 110px; margin-bottom: 1.2rem; }
.lost-text { max-width: 54ch; margin: 1rem 0 0; color: var(--c-ink-muted); }

/* ---------- Комментарии ---------- */
.discuss-title,
.comment-reply-title {
    font-family: var(--f-head);
    font-weight: 400;
    font-size: 1.7rem;
    margin: 0 0 1.2rem;
    color: var(--c-ink);
}
.comment-reply-title small { display: block; font-size: .9rem; margin-top: .4rem; }
.comment-reply-title small a { color: var(--c-copper-ink); }
.notes, .notes .children { list-style: none; margin: 0; padding: 0; }
.notes .children { padding-left: 1.6rem; border-left: 2px solid var(--c-line); margin-top: 1rem; }
.note { margin-bottom: 1.2rem; }
.note-body {
    background: var(--c-paper-hi);
    border: 1px solid rgba(58, 81, 105, .55);
    padding: 1rem 1.2rem;
}
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-ava { border-radius: 50%; display: block; }
.note-author { display: block; font-weight: 700; color: var(--c-ink); }
.note-date { font-family: var(--f-head); font-size: .82rem; color: var(--c-teal-ink); }
.note-wait { font-style: italic; color: var(--c-copper-ink); }
.note-text { font-size: .98rem; }
.note-reply a { font-family: var(--f-head); font-size: .9rem; color: var(--c-copper-ink); }
.comment-respond { margin-top: 1.6rem; }
.form-note { font-size: .9rem; color: var(--c-ink-muted); }
.form-note a { color: var(--c-copper-ink); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: .3rem; color: var(--c-ink); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--c-line);
    border-radius: 0;
    background: var(--c-paper-hi);
    color: var(--c-ink);
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .5rem; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.req { color: var(--c-copper-ink); }
.comments-navigation, .comment-navigation { margin: 1rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.comment-navigation a { color: var(--c-copper-ink); }

/* ---------- Подвал ---------- */
.basement { padding: 0 0 2rem; margin-top: .5rem; }
.basement .shell {
    background: var(--c-night);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 3rem 2.6rem 1.6rem;
    border-top: 3px solid var(--c-copper);
}
.basement-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem 2.6rem;
}
.basement-col { min-width: 0; color: var(--c-foot-text); font-size: .98rem; }
.basement .wbox + .wbox { margin-top: 1.6rem; }
.basement .wbox-title {
    margin: 0 0 .8rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.12rem;
    letter-spacing: .03em;
    color: var(--c-text);
}
.basement p, .basement .textwidget { color: var(--c-foot-text); }
.basement a { color: var(--c-text); text-decoration-color: var(--c-copper); }
.basement a:hover { color: var(--c-copper); }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: .2rem 0; }
.basement li a { text-decoration: none; }
.basement-copy {
    margin: 2.4rem 0 0;
    padding-top: 1.3rem;
    border-top: 1px solid #1E2C3B;
    font-size: .88rem;
    color: var(--c-muted);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    background: var(--c-night);
    color: var(--c-foot-text);
    border: 1px solid var(--c-line);
    border-top: 3px solid var(--c-copper);
    padding: 1.1rem 1.4rem;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
}
.cookie-text { margin: 0; font-size: .92rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .navtoggle { display: inline-flex; }
    .masthead-row { align-items: center; }
    .brand { flex-basis: 70%; }
    .topnav { display: none; flex-basis: 100%; padding-top: 0; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--c-line); }
    .topnav-list li { border-bottom: 1px solid var(--c-line); }
    .topnav-list a { display: block; padding: .75rem 0; border-bottom: 0; }
    .topnav-list a:hover,
    .topnav-list .current-menu-item > a { border-bottom: 0; color: var(--c-copper); }

    .front-pair { grid-template-columns: minmax(0, 1fr); }
    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: var(--gap); }
    .basement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .anatomy-figure { max-width: 520px; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .shell { width: 92%; }
    .masthead { padding: 1.6rem 0 1.4rem; }
    .brand { gap: .8rem; flex-basis: 100%; }
    .brand-target { width: 54px; height: 54px; }
    .brand-desc { font-size: .84rem; }
    .panel { padding: 1.9rem 1.35rem 2.1rem; }
    .sheetpanel { padding: 1.8rem 1.35rem 2rem; }
    .sheetpanel::before { left: 1.35rem; }
    .basement .shell { padding: 2.2rem 1.35rem 1.4rem; }
    .cards-3, .cards-2 { grid-template-columns: minmax(0, 1fr); }
    .anatomy-stage { grid-template-columns: 38px minmax(0, 1fr); gap: .6rem; }
    .anatomy-scale li { font-size: .78rem; }
    .traps-board { grid-template-columns: minmax(0, 1fr); padding: 0 .6rem; gap: 1.2rem; }
    .tag-card-1, .tag-card-3 { transform: rotate(-3deg); }
    .tag-card-2, .tag-card-4 { transform: rotate(2deg); }
    .basement-grid { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .cookie-accept { text-align: center; }
    .entry h2 { font-size: 1.5rem; }
    .glossary-table { min-width: 0; border: 0; background: none; }
    .glossary-table thead { display: none; }
    .glossary-table tbody, .glossary-table tr, .glossary-table th, .glossary-table td { display: block; width: auto; }
    .glossary-table tr { border: 1px solid var(--c-ink-muted); background: rgba(245, 240, 232, .4); }
    .glossary-table tr + tr { margin-top: .9rem; }
    .glossary-table th, .glossary-table td { border: 0; border-top: 1px solid rgba(110, 100, 89, .45); }
    .glossary-table tbody th { width: auto; border-top: 0; background-color: rgba(27, 39, 51, .08); }
    .glossary-table td::before {
        content: attr(data-label);
        display: block;
        font-family: var(--f-head);
        font-size: .75rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--c-ink-muted);
        margin-bottom: .2rem;
    }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
