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

/* ---------- Шрифты ---------- */
@font-face { font-family: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/rubik-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: "Rubik"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/rubik-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/rubik-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/rubik-latin-800-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-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: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-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: "JetBrains Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/jetbrains-mono-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/caveat-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #F2EBDD;
    --paper-grid: #E8DFC8;
    --paper-head: #EDE5D0;
    --paper-card: #F6F0E1;
    --paper-deep: #ECE4CD;
    --navy: #1B2A4A;
    --brown: #4A3728;
    --ink: #2B2B2B;
    --ink-hard: #1A1A1A;
    --muted: #7A6F5C;
    --red: #C0392B;
    --yellow: #E3B448;
    --line: #B8A88A;
    --white: #FFFFFF;
    --f-head: "Rubik", "Arial Black", "Segoe UI", Arial, sans-serif;
    --f-mono: "JetBrains Mono", "Consolas", "Liberation Mono", "Courier New", monospace;
    --f-hand: "Caveat", "Comic Sans MS", cursive;
    --rough: 3px 14px 4px 12px / 12px 4px 14px 3px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 340px 220px at 8% 30%, rgba(184, 168, 138, 0.16), transparent 70%),
        radial-gradient(ellipse 280px 260px at 92% 62%, rgba(184, 168, 138, 0.14), transparent 70%),
        radial-gradient(ellipse 200px 140px at 40% 88%, rgba(122, 111, 92, 0.08), transparent 70%),
        linear-gradient(var(--paper-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
    background-size: 100% 1600px, 100% 1600px, 100% 1600px, 22px 22px, 22px 22px;
}
@media (min-width: 600px) { body { font-size: 15.5px; } }
img, svg { max-width: 100%; }
img { height: auto; }
p, li, dd, dt, blockquote, td, th, h1, h2, h3, h4, h5, h6, figcaption { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, h4, h5, h6, .brand-name { hyphens: manual; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 800; line-height: 1.15; color: var(--ink-hard); margin: 1.4em 0 0.55em; letter-spacing: 0.005em; }
h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }
a { color: var(--ink-hard); text-decoration: underline dashed; text-decoration-color: var(--muted); text-decoration-thickness: 1.5px; text-underline-offset: 4px; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover { color: var(--red); text-decoration-color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; margin: 0 0 1.4em; border: 2px solid var(--ink); background: var(--paper-card); }
th, td { border: 1px solid var(--ink); padding: 0.55em 0.8em; text-align: left; vertical-align: top; }
th { font-family: var(--f-head); font-weight: 700; background: var(--paper-head); }
blockquote { margin: 1.4em 0; padding: 1.1rem 1.4rem; background: var(--navy); color: var(--white); border-radius: var(--rough); font-size: 1.05rem; }
blockquote p:last-child { margin-bottom: 0; }
blockquote a { color: var(--yellow); }
code, pre { font-family: var(--f-mono); }
pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--paper-head); border: 2px solid var(--ink); }
hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
mark { background: none; color: inherit; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--yellow); color: var(--ink-hard); padding: 0.6rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопка-ярлык ---------- */
.tag-btn {
    display: inline-block;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.3;
    color: var(--ink-hard);
    background: var(--paper-head);
    border: 2.5px solid var(--ink-hard);
    border-radius: 4px;
    padding: 0.5em 1.05em;
    box-shadow: 4px 4px 0 var(--ink-hard);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.tag-btn:hover { color: var(--ink-hard); background: var(--yellow); transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-hard); }
.tag-btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink-hard); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--paper-head);
    background-image: radial-gradient(ellipse 300px 120px at 70% 40%, rgba(184, 168, 138, 0.18), transparent 70%);
    border-bottom: 2px solid var(--line);
    position: relative;
}
.masthead::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 22px); opacity: 0.6; }
.masthead-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.9rem 1.1rem; padding: 1rem 0; }
.brand { display: block; text-decoration: none; }
.brand-mark { display: block; width: 66px; height: 66px; transform: rotate(-8deg); }
.brand-stamp, .brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 1.12rem; line-height: 1.12; }
.brand-name a { text-decoration: none; color: var(--ink-hard); }
.brand-desc { display: none; margin: 0.35rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--ink); }
.nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--f-mono); font-weight: 700; font-size: 0.85rem; background: var(--paper); color: var(--ink-hard); border: 2px solid var(--ink-hard); box-shadow: 3px 3px 0 var(--ink-hard); padding: 0.45rem 0.7rem; cursor: pointer; }
.nav-toggle-bars { width: 18px; height: 2px; background: var(--ink-hard); position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-hard); }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.topnav { grid-column: 1 / -1; display: none; }
.topnav.is-open { display: block; }
.topnav-list { list-style: none; margin: 0; padding: 0.6rem 0 0.2rem; border-top: 2px dashed var(--line); }
.topnav-list li { margin: 0; }
.topnav-list a { display: inline-block; padding: 0.3rem 0; font-weight: 700; font-size: 0.95rem; color: var(--ink-hard); text-decoration: underline dashed; text-decoration-color: var(--ink-hard); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.topnav-list a:hover, .topnav-list .current-menu-item > a { color: var(--red); text-decoration-color: var(--red); }

@media (min-width: 600px) {
    .brand-mark { width: 92px; height: 92px; }
    .brand-name { font-size: 1.55rem; }
    .brand-desc { display: block; max-width: 34rem; }
}
@media (min-width: 960px) {
    .masthead-in { grid-template-columns: auto minmax(0, 1fr) auto; padding: 1.5rem 0 1.4rem; gap: 1.6rem; }
    .brand-mark { width: 118px; height: 118px; }
    .brand-name { font-size: clamp(1.9rem, 2.7vw, 2.45rem); }
    .brand-desc { font-size: 0.86rem; }
    .nav-toggle { display: none; }
    .topnav { grid-column: auto; display: block; }
    .topnav-list { border-top: 0; padding: 0; }
    .topnav-list li + li { margin-top: 0.25rem; }
    .topnav-list a { font-size: 0.9rem; padding: 0.15rem 0; }
}

.site-main { display: block; padding: 2rem 0 3rem; }

/* ---------- Главная ---------- */
.front { width: min(92%, 1180px); }
@media (min-width: 960px) { .front { width: min(85%, 1180px); } }
.front > section, .front > .board { margin-bottom: 3.2rem; position: relative; }
.sec-title { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin: 0 0 1.4rem; }

/* Блоки 1–2: тёмная доска */
.board { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--navy); color: var(--white); border-radius: 2px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15); position: relative; }
.board::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.board-route, .board-ask { position: relative; min-width: 0; padding: 1.8rem 1.4rem; }
.board-title { color: var(--white); margin: 0 0 0.7rem; font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
.board-lead { color: #D9DEE8; font-size: 0.9rem; max-width: 40rem; }
.route-map { display: none; }
.route-days { list-style: none; margin: 1.2rem 0 0; padding: 0 0 0 1.6rem; border-left: 2px solid rgba(255, 255, 255, 0.8); }
.route-days li { position: relative; margin: 0 0 1rem; font-size: 0.88rem; color: #E6E9EF; }
.route-days li::before { content: ""; position: absolute; left: calc(-1.6rem - 8px); top: 0.35em; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--navy); box-shadow: 0 0 0 2px var(--white); }
.route-days strong { color: var(--white); font-weight: 700; }
.board-deco { position: absolute; display: block; pointer-events: none; }
.board-deco svg { display: block; width: 100%; height: auto; }
.board-deco--stamp { width: 74px; left: -14px; bottom: -22px; color: var(--red); opacity: 0.85; transform: rotate(-10deg); }
.board-deco--ticket { display: none; width: 92px; right: 1.4rem; top: 1.2rem; color: rgba(255, 255, 255, 0.55); transform: rotate(-6deg); }
.board-deco--scribble { width: 48px; left: -22px; top: 46%; color: var(--yellow); transform: rotate(-14deg); }
.board-ask { border-top: 1px solid rgba(255, 255, 255, 0.35); }
.board-subtitle { color: var(--white); font-size: 1.35rem; margin: 0 0 1.1rem; padding-right: 3.6rem; }
.board-deco--round { width: 84px; right: 0.6rem; top: -1.6rem; color: rgba(255, 255, 255, 0.42); transform: rotate(12deg); }
.board-deco--pen { width: 46px; right: 1rem; bottom: 0.6rem; color: rgba(255, 255, 255, 0.5); }
.ask-list { list-style: none; margin: 0; padding: 0; }
.ask-list li { position: relative; padding-left: 1.9rem; margin: 0 0 0.8rem; font-size: 0.86rem; line-height: 1.5; color: #E6E9EF; }
.ask-list li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 15px; height: 15px; border: 2px solid var(--yellow); border-radius: 2px; }
.ask-list li::after { content: ""; position: absolute; left: 4px; top: 0.12em; width: 7px; height: 12px; border: solid var(--yellow); border-width: 0 3px 3px 0; transform: rotate(40deg); }

@media (min-width: 600px) {
    .board-route, .board-ask { padding: 2.2rem 2.2rem; }
    .route-map { display: block; position: relative; aspect-ratio: 100 / 40; margin: 1.6rem 0 0.4rem; }
    .route-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
    .route-dot { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--navy), 0 0 0 3.5px var(--white); transform: translate(-50%, -50%); }
    .route-label { position: absolute; font-size: 0.82rem; line-height: 1.3; color: var(--white); white-space: nowrap; }
    .route-label--1 { left: 4%; top: 4%; }
    .route-label--2 { left: 30%; top: 82%; }
    .route-label--3 { left: 56%; top: 16%; }
    .route-deco { position: absolute; display: block; color: rgba(255, 255, 255, 0.85); pointer-events: none; }
    .route-deco svg { display: block; width: 100%; height: auto; }
    .route-deco--arrow { width: 42px; left: 8%; top: 56%; }
    .route-deco--arrow2 { width: 84px; right: 2%; top: 74%; transform: rotate(14deg); }
    .route-days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; border-left: 0; padding: 1rem 0 0; border-top: 1px dashed rgba(255, 255, 255, 0.4); }
    .route-days li { margin: 0; font-size: 0.8rem; }
    .route-days li::before { display: none; }
    .board-deco--ticket { display: block; }
}
@media (min-width: 960px) {
    .board { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
    .board-route { padding: 2.4rem 2.2rem 2.6rem 2.6rem; }
    .board-ask { border-top: 0; padding: 2.4rem 2.4rem 2.6rem 2.2rem; }
    .board-ask::before { content: ""; position: absolute; left: 0; top: 2rem; bottom: 2rem; width: 2px; background: rgba(255, 255, 255, 0.75); }
    .board-subtitle { font-size: 1.45rem; }
}

/* Последние записи */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 1.8rem; }
@media (min-width: 600px) { .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: var(--paper-card);
    border: 2px solid var(--ink-hard);
    border-radius: var(--rough);
    padding: 0.85rem 0.85rem 1.1rem;
    box-shadow: 3px 4px 0 rgba(43, 43, 43, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.card::after { content: ""; position: absolute; inset: -5px -3px -4px -5px; border: 1.5px solid rgba(43, 43, 43, 0.55); border-radius: 14px 3px 12px 4px / 3px 12px 4px 14px; pointer-events: none; transform: rotate(0.7deg); }
.card--tilt-r::after { transform: rotate(-0.6deg); }
.card:hover { transform: translate(-2px, -3px); box-shadow: 6px 8px 0 rgba(43, 43, 43, 0.16); }
.card-stamp {
    position: absolute;
    z-index: 2;
    top: -14px;
    right: -10px;
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    background: var(--paper-head);
    border: 2px solid var(--ink);
    outline: 1px solid var(--ink);
    outline-offset: 2px;
    border-radius: 5px;
    padding: 0.15rem 0.5rem;
    transform: rotate(9deg);
}
.card--tilt-l .card-stamp { right: auto; left: -10px; transform: rotate(-9deg); }
.card-thumb { position: relative; border: 1px solid rgba(43, 43, 43, 0.35); background: var(--paper-head); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: sepia(0.12) saturate(0.92); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 0.9rem 0.2rem 0; }
.card-title { font-size: 1.2rem; line-height: 1.2; margin: 0 0 0.55rem; }
.card-title a { text-decoration: none; color: var(--ink-hard); }
.card-title a:hover { color: var(--red); }
.card-excerpt { font-size: 0.84rem; line-height: 1.55; color: var(--ink); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; margin: 0.3rem 0 1rem; font-size: 0.76rem; color: var(--muted); }
.card-cat { color: var(--red); font-weight: 700; }
.card .tag-btn { align-self: flex-start; margin-top: auto; }
.empty-note { font-size: 0.95rem; color: var(--muted); padding: 1rem 1.2rem; border: 2px dashed var(--line); background: var(--paper-card); }

/* Разбор программы */
.parts-lead { max-width: 44rem; font-size: 0.9rem; color: var(--muted); margin-top: -0.6rem; }
.parts-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.4rem; }
.parts-table { min-width: 640px; margin: 0; border: 2px solid var(--ink-hard); background: rgba(246, 240, 225, 0.75); }
.parts-table th, .parts-table td { border: 1.5px solid var(--ink-hard); padding: 0.7rem 0.9rem; vertical-align: middle; }
.parts-table thead th { background: transparent; text-align: center; font-size: 1rem; border-bottom-width: 3px; }
.parts-table thead th:first-child { text-align: left; color: var(--muted); font-family: var(--f-mono); font-size: 0.8rem; font-weight: 700; }
.parts-table tbody th { background: transparent; font-size: 0.98rem; font-weight: 700; line-height: 1.3; max-width: 16rem; }
.parts-table td { text-align: center; }
.mark { display: inline-block; width: 32px; height: 32px; color: var(--red); vertical-align: middle; }
.mark svg { display: block; width: 100%; height: 100%; }
.mark--no { color: var(--red); opacity: 0.9; }
.mark--yes { color: var(--red); }
.mark--sm { width: 20px; height: 20px; }
.parts-legend { display: flex; flex-wrap: wrap; gap: 0.6rem 1.8rem; margin: 1rem 0 0; font-size: 0.82rem; color: var(--muted); }
.parts-legend > span { display: inline-flex; align-items: center; gap: 0.4rem; }
.parts-deco { position: absolute; display: none; pointer-events: none; }
.parts-deco svg { display: block; width: 100%; height: auto; }
.parts-deco--scribble { width: 46px; left: -54px; top: 5.6rem; color: var(--red); transform: rotate(-28deg); }
.parts-deco--pen { width: 48px; right: -54px; top: 6rem; color: var(--red); }
@media (min-width: 1100px) { .parts-deco { display: block; } }
@media (min-width: 960px) { .parts-table tbody th { font-size: 1.05rem; } }

/* Цитата на коричневой бумаге */
.quote-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
    background-color: var(--brown);
    background-image:
        radial-gradient(ellipse 260px 160px at 20% 20%, rgba(255, 255, 255, 0.05), transparent 70%),
        radial-gradient(ellipse 320px 200px at 85% 80%, rgba(0, 0, 0, 0.14), transparent 70%),
        repeating-linear-gradient(17deg, rgba(255, 255, 255, 0.018) 0 2px, transparent 2px 6px);
    color: var(--paper);
    padding: 2.4rem 1.5rem 2.2rem;
    border-radius: 2px;
    box-shadow: 0 3px 0 rgba(0, 0, 0, 0.18);
}
.qb-quote, .qb-list { position: relative; z-index: 1; min-width: 0; }
.qb-text { margin: 0; color: var(--white); font-size: clamp(1.75rem, 5vw, 2.7rem); line-height: 1.12; }
.qb-text mark { color: var(--yellow); }
.qb-caption { font-family: var(--f-hand); font-size: 1.45rem; line-height: 1.2; color: var(--yellow); margin: 0 0 0.8rem; }
.qb-questions { list-style: none; counter-reset: q; margin: 0; padding: 0; }
.qb-questions li { counter-increment: q; position: relative; padding-left: 2rem; margin: 0 0 0.75rem; font-size: 0.88rem; line-height: 1.5; color: #F2EBDD; }
.qb-questions li::before { content: counter(q) "."; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--yellow); }
.tape { position: absolute; z-index: 2; width: 110px; height: 30px; background: rgba(227, 180, 72, 0.78); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); pointer-events: none; }
.tape::before, .tape::after { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(180deg, transparent 0 3px, var(--brown) 3px 5px); opacity: 0.25; }
.tape::before { left: 0; }
.tape::after { right: 0; }
.tape--tl { left: -18px; top: -12px; transform: rotate(-8deg); }
.tape--tr { right: -14px; top: -14px; transform: rotate(10deg); width: 130px; }
.clip { position: absolute; z-index: 2; width: 22px; color: var(--yellow); pointer-events: none; }
.clip svg { display: block; width: 100%; height: auto; }
.clip--1 { left: 1.4rem; top: -28px; transform: rotate(-12deg); }
.clip--2 { left: 46%; bottom: -30px; transform: rotate(18deg); color: #C9A866; }
.qb-stamp { position: absolute; display: none; color: var(--red); opacity: 0.7; pointer-events: none; }
.qb-stamp svg { display: block; width: 100%; height: auto; }
.qb-stamp--l { width: 76px; left: -30px; bottom: 1.4rem; transform: rotate(-12deg); }
.qb-stamp--r { width: 66px; right: -24px; bottom: 1.6rem; transform: rotate(8deg); }
.qb-deco { position: absolute; width: 42px; right: 5.5rem; bottom: 1rem; color: rgba(242, 235, 221, 0.5); pointer-events: none; }
.qb-deco svg { display: block; width: 100%; height: auto; }
@media (min-width: 600px) {
    .quote-board { padding: 3rem 2.6rem 2.8rem; }
    .qb-stamp { display: block; }
}
@media (min-width: 960px) {
    .quote-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; padding: 3.4rem 3.4rem 3.2rem 3.6rem; }
    .qb-questions li { font-size: 0.92rem; }
}

/* ---------- Внутренние страницы ---------- */
.inner { padding-top: 0.4rem; }
.crumbs { font-size: 0.8rem; color: var(--muted); margin: 0 0 1.6rem; line-height: 1.5; }
.crumbs a { color: var(--ink); }
.crumbs-sep { color: var(--red); margin: 0 0.15rem; }
.layout-single .content-area { width: 100%; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.sidebar { min-width: 0; margin-top: 2.6rem; }
@media (min-width: 960px) {
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-with-sidebar { display: flex; justify-content: space-between; align-items: flex-start; }
    .layout-with-sidebar .content-area { width: 67%; }
    .layout-with-sidebar .sidebar { width: 27%; margin-top: 0; }
}
.page-head { margin-bottom: 1.8rem; }
.page-title { margin: 0 0 0.4rem; font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.page-sub { color: var(--muted); font-size: 0.9rem; margin: 0; }
.cards--list { gap: 2.2rem 1.8rem; }
@media (min-width: 600px) { .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .layout-single .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.entry { background: var(--paper-card); border: 2px solid var(--ink-hard); border-radius: var(--rough); padding: 1.6rem 1.3rem; box-shadow: 5px 6px 0 rgba(43, 43, 43, 0.14); position: relative; }
.entry::before { content: ""; position: absolute; top: -13px; left: 50%; width: 120px; height: 26px; margin-left: -60px; background: rgba(227, 180, 72, 0.7); transform: rotate(-3deg); }
@media (min-width: 600px) { .entry { padding: 2.2rem 2.4rem; } }
.entry-head { margin-bottom: 1.4rem; }
.entry-title { margin: 0 0 0.8rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0; font-size: 0.8rem; }
.entry-stamp { display: inline-block; font-weight: 700; border: 2px solid var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; border-radius: 5px; padding: 0.1rem 0.5rem; transform: rotate(-4deg); background: var(--paper-head); }
.entry-cat { color: var(--red); font-weight: 700; }
.entry-cover { margin: 0 0 1.6rem; border: 1px solid rgba(43, 43, 43, 0.35); }
.entry-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { font-size: 0.98rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { border-bottom: 2px dashed var(--line); padding-bottom: 0.3rem; }
.entry-content ul li::marker { color: var(--red); }
.entry-content ol li::marker { color: var(--red); font-weight: 700; }
.entry-content img { display: block; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.entry-content table { font-size: 0.88rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; margin: 1.6rem 0 0; padding-top: 1rem; border-top: 2px dashed var(--line); font-size: 0.82rem; }
.alignleft { float: left; margin: 0.3em 1.2em 0.8em 0; }
.alignright { float: right; margin: 0.3em 0 0.8em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 0.8rem; color: var(--muted); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ---------- Сайдбар ---------- */
.sidebar .wbox {
    position: relative;
    background: var(--paper-deep);
    color: var(--ink);
    border: 2px solid var(--ink-hard);
    border-radius: var(--rough);
    padding: 1.6rem 1.3rem 1.2rem;
    margin-bottom: 2rem;
    box-shadow: 4px 4px 0 rgba(43, 43, 43, 0.14);
}
.sidebar .wbox::before { content: ""; position: absolute; top: -12px; left: 1.2rem; width: 86px; height: 22px; background: rgba(227, 180, 72, 0.75); transform: rotate(-5deg); }
.sidebar .wbox-title { margin: 0 0 0.9rem; font-size: 1.15rem; color: var(--ink-hard); }
.sidebar .wbox ul { list-style: none; margin: 0; padding: 0; }
.sidebar .wbox li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.86rem; line-height: 1.45; color: var(--ink); }
.sidebar .wbox li:last-child { border-bottom: 0; }
.sidebar .wbox a { color: var(--ink-hard); }
.sidebar .wbox a:hover { color: var(--red); }
.sidebar .wbox .post-date { display: block; font-size: 0.74rem; color: var(--muted); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin: 2.4rem 0 0; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.4rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.4rem 0.7rem;
    color: var(--ink-hard);
    background: var(--paper-head);
    border: 2px solid var(--ink-hard);
    box-shadow: 3px 3px 0 var(--ink-hard);
    text-decoration: none;
    transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s;
}
.pager a.page-numbers:hover { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-hard); color: var(--ink-hard); }
.pager .page-numbers.current { background: var(--navy); color: var(--white); }
.pager .page-numbers.dots { border: 0; box-shadow: none; background: none; min-width: 0; }
.pager > span:not(.page-numbers) { font-weight: 700; }

/* ---------- Поиск ---------- */
.finder { margin: 1.4rem 0; }
.finder-label { display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.4rem; }
.finder-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.finder-input { flex: 1 1 14rem; min-width: 0; font-family: var(--f-mono); font-size: 0.92rem; padding: 0.55rem 0.8rem; color: var(--ink-hard); background: var(--paper-card); border: 2px solid var(--ink-hard); border-radius: 3px; }
.finder-btn { flex: 0 0 auto; }
.empty-box { padding: 0.2rem 0; }
.lost { text-align: left; }
.lost-code { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 3px var(--navy); }
.lost-text { max-width: 36rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 2.6rem; }
.talk-title, .comment-reply-title { font-size: 1.45rem; margin: 0 0 1rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.4rem; border-left: 2px dashed var(--line); margin-top: 1rem; }
.note { margin-bottom: 1rem; }
.note-body { background: var(--paper-card); border: 2px solid var(--ink); border-radius: var(--rough); padding: 1rem 1.1rem; }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.5rem; font-size: 0.82rem; }
.note-head img { display: block; border-radius: 50%; border: 2px solid var(--ink); }
.note-author { font-weight: 700; color: var(--ink-hard); }
.note-date { color: var(--muted); }
.note-wait { color: var(--red); font-size: 0.82rem; }
.note-text { font-size: 0.9rem; }
.note-reply a { font-size: 0.8rem; font-weight: 700; }
.talk-note, .talk-closed { font-size: 0.82rem; color: var(--muted); }
.comment-respond { margin-top: 2rem; background: var(--paper-deep); border: 2px solid var(--ink-hard); padding: 1.4rem 1.3rem; border-radius: var(--rough); }
.comment-form label { display: block; font-weight: 700; font-size: 0.84rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font-family: var(--f-mono); font-size: 0.9rem; padding: 0.55rem 0.75rem; color: var(--ink-hard); background: var(--paper-card); border: 2px solid var(--ink-hard); border-radius: 3px; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.comment-form .form-submit { margin: 1rem 0 0; }

/* ---------- Подвал ---------- */
.sitefoot { background: var(--paper-deep); border-top: 2px solid var(--line); padding: 2.6rem 0 1.6rem; color: var(--ink); position: relative; }
.sitefoot::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 6px; background: repeating-linear-gradient(90deg, var(--line) 0 14px, transparent 14px 22px); opacity: 0.6; }
.sitefoot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
@media (min-width: 600px) { .sitefoot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .sitefoot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; } }
.sitefoot-col { min-width: 0; }
.sitefoot .wbox { color: var(--ink); font-size: 0.82rem; line-height: 1.55; }
.sitefoot .wbox-title { margin: 0 0 0.7rem; font-size: 1.08rem; color: var(--ink-hard); }
.sitefoot .wbox p { margin: 0 0 0.6em; color: var(--ink); }
.sitefoot .wbox a { color: var(--ink-hard); text-decoration-color: var(--ink-hard); }
.sitefoot .wbox a:hover { color: var(--red); text-decoration-color: var(--red); }
.sitefoot .wbox ul { list-style: none; margin: 0; padding: 0; }
.sitefoot .wbox li { margin: 0 0 0.25rem; }
.sitefoot-copy { margin: 2.2rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: 0.78rem; color: var(--ink); }

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    z-index: 90;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 46rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.4rem;
    padding: 1rem 1.2rem;
    background: var(--navy);
    color: var(--white);
    border: 2px solid var(--ink-hard);
    box-shadow: 5px 5px 0 var(--ink-hard);
}
.cookie-text { flex: 1 1 18rem; min-width: 0; margin: 0; font-size: 0.82rem; line-height: 1.5; color: #E6E9EF; }
.cookie-accept { background: var(--yellow); }
.cookie-accept:hover { background: var(--paper); }
