/*
Theme Name: dds_insightsxdesign.com
Theme URI: https://insightsxdesign.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: insxd
*/

/* ---------- Шрифты (вложены в тему) ---------- */
@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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-cyrillic-600-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: 600; font-display: swap; src: url("fonts/oswald-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-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: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-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+0304, U+0308, U+0329, 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-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/caveat-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+0304, U+0308, U+0329, 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-style: normal; font-weight: 700; 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-style: normal; font-weight: 700; 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Палитра ---------- */
:root {
    --ink: #23262B;
    --paper: #F4EDDF;
    --muted: #8A8175;
    --mustard: #E8B33A;
    --brick: #C0503A;
    --calc: #CFDCC9;
    --black: #14161A;
    --sheet: #FBF8F0;
    --paper-deep: #EBE1CC;
    --muted-dark: #6B6358;
    --chalk: #ECE6D6;
    --chalk-dim: #B9B2A2;
    --rule: rgba(35, 38, 43, 0.22);
    --rule-light: rgba(236, 230, 214, 0.22);
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-text: "PT Mono", "Courier New", "Liberation Mono", monospace;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --grid-paper: linear-gradient(rgba(138, 129, 117, 0.13) 1px, transparent 1px), linear-gradient(90deg, rgba(138, 129, 117, 0.13) 1px, transparent 1px);
    --grid-calc: linear-gradient(rgba(35, 38, 43, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 38, 43, 0.07) 1px, transparent 1px);
    --board-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: var(--grid-paper);
    background-size: 22px 22px;
    color: var(--ink);
    font-family: var(--f-text);
    font-size: 15px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    color: var(--black);
    margin: 1.4em 0 0.55em;
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, li, td, th, dd, blockquote, h1, h2, h3, h4, h5, h6, .card-title, .widget { overflow-wrap: break-word; hyphens: auto; }
a {
    color: var(--ink);
    text-decoration: underline wavy rgba(192, 80, 58, 0.75);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color .15s, text-decoration-color .15s;
}
a:hover { color: var(--brick); text-decoration-color: var(--brick); }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--brick); outline-offset: 3px; }
ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.4em 1.2em 1.6em;
    background: var(--ink);
    background-image: var(--board-noise);
    color: var(--chalk);
    border-left: 6px solid var(--mustard);
    font-family: var(--f-head);
    font-size: 1.3rem;
    line-height: 1.35;
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .6em; font-family: var(--f-text); font-size: .85rem; color: var(--chalk-dim); font-style: normal; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1.5px solid var(--ink); background: var(--sheet); }
th, td { border: 1px solid var(--ink); padding: .55em .8em; text-align: left; vertical-align: top; }
th { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; background: var(--paper-deep); }
code, pre { font-family: var(--f-text); }
pre { background: var(--paper-deep); padding: 1em; overflow-x: auto; border: 1px dashed var(--muted); }
hr { border: 0; border-top: 1px dashed var(--muted); margin: 2em 0; }
figure { margin: 1.4em 0; }
figcaption, .wp-caption-text { font-family: var(--f-hand); font-size: 1.15rem; color: var(--muted-dark); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--mustard); color: var(--black); padding: .5rem 1rem; font-family: var(--f-head); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Контейнер ширины (единственный) ---------- */
.shell { width: min(92%, 1240px); margin-inline: auto; }
@media (min-width: 960px) { .shell { width: min(85%, 1240px); } }

/* ---------- Флажок-закладка у заголовков ---------- */
.flag {
    display: inline-block;
    flex: 0 0 auto;
    width: 2.1em;
    height: 1.45em;
    background: var(--mustard);
    clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%);
    position: relative;
    vertical-align: middle;
}
.flag::after {
    content: "";
    position: absolute;
    left: 38%;
    top: 30%;
    width: 0.38em;
    height: 0.38em;
    border-left: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
    transform: rotate(45deg);
}
.sec-title {
    display: flex;
    align-items: center;
    gap: .55em;
    margin: 0 0 1rem;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-size: clamp(1.45rem, 2.6vw, 2.05rem);
    line-height: 1;
    color: var(--black);
}
.sec-title .flag { font-size: .8em; }

/* ---------- Кнопка-ярлычок ---------- */
.tag-btn {
    --tag-cut: 12px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35em 1.5em .35em 1.6em;
    background: var(--ink);
    color: var(--black);
    font-family: var(--f-hand);
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    clip-path: polygon(var(--tag-cut) 0, 100% 0, calc(100% - var(--tag-cut)) 50%, 100% 100%, var(--tag-cut) 100%, 0 50%);
    transition: transform .15s;
    isolation: isolate;
}
.tag-btn::before {
    content: "";
    position: absolute;
    inset: 1.5px 2px;
    background: var(--mustard);
    clip-path: polygon(var(--tag-cut) 0, 100% 0, calc(100% - var(--tag-cut)) 50%, 100% 100%, var(--tag-cut) 100%, 0 50%);
    z-index: -1;
    transition: background-color .15s;
}
.tag-btn:hover { color: var(--black); transform: translateX(4px); }
.tag-btn:hover::before { background: #F2C55A; }
.tag-btn--brick::before { background: var(--brick); }
.tag-btn--brick { color: var(--sheet); }
.tag-btn--brick:hover { color: var(--sheet); }
.tag-btn--brick:hover::before { background: #D0644E; }

/* ---------- Полосы-секции ---------- */
.band { width: 100%; }
.band--paper { background: transparent; }
.band--board {
    background-color: var(--ink);
    background-image: var(--board-noise), radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.04), transparent 60%);
    color: var(--chalk);
}
.band--calc {
    background-color: var(--calc);
    background-image: var(--grid-calc);
    background-size: 22px 22px;
}

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--ink);
    background-image: var(--board-noise);
    color: var(--chalk);
    border-bottom: 4px solid var(--mustard);
    box-shadow: 0 1px 0 rgba(35, 38, 43, 0.6);
}
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0 1.4rem;
}
.brand { display: flex; align-items: center; gap: 1.4rem; min-width: 0; }
.brand__mark { flex: 0 0 auto; display: block; width: 104px; line-height: 0; text-decoration: none; }
.brand__mark svg, .brand__mark .brand-logo { display: block; width: 100%; height: auto; }
.brand__text { min-width: 0; }
.brand__name {
    display: block;
    margin: 0;
    max-width: 30ch;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(1.25rem, 2.3vw, 2.05rem);
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0.005em;
    color: var(--chalk);
}
.brand__name a { color: inherit; text-decoration: none; }
.brand__name a:hover { color: var(--mustard); }
.brand__desc {
    margin: .55rem 0 0;
    max-width: 62ch;
    font-size: 12px;
    line-height: 1.5;
    color: var(--chalk-dim);
    background: none;
}
.nav-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: .5em;
    background: transparent;
    color: var(--chalk);
    border: 1.5px solid var(--chalk-dim);
    padding: .45em .9em;
    font-family: var(--f-head);
    font-size: .95rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    cursor: pointer;
}
.nav-toggle__bars { width: 18px; height: 12px; background: linear-gradient(var(--mustard) 0 2px, transparent 2px 5px, var(--mustard) 5px 7px, transparent 7px 10px, var(--mustard) 10px 12px); }
.topnav__list { display: flex; flex-wrap: wrap; gap: .4rem 1.9rem; list-style: none; margin: 0; padding: 0; }
.topnav__list li { position: relative; }
.topnav__list a {
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--chalk);
    text-decoration: none;
    padding: .3em 0;
}
.topnav__list a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); flex: 0 0 auto; transition: transform .15s; }
.topnav__list a:hover, .topnav__list .current-menu-item > a { color: var(--mustard); }
.topnav__list a:hover::before { transform: scale(1.6); }
.topnav__list .sub-menu { display: none; }

@media (max-width: 960px) {
    .masthead__row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .topnav { flex: 1 0 100%; display: none; border-top: 1px dashed var(--rule-light); padding-top: .8rem; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: .2rem; }
}
@media (max-width: 600px) {
    .brand { gap: .9rem; align-items: flex-start; }
    .brand__mark { width: 64px; }
    .brand__desc { font-size: 11px; }
    .masthead__row { padding: 1.1rem 0; }
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    margin: 1.6rem 0 1rem;
    font-size: 13px;
    color: var(--muted-dark);
}
.breadcrumbs a { color: var(--ink); text-decoration-color: var(--mustard); }
.breadcrumbs .sep { color: var(--brick); margin: 0 .35em; font-weight: 700; }
.breadcrumbs span:last-child { color: var(--muted-dark); }

/* ---------- Главная ---------- */
.front-section { padding: 3.6rem 0; }
.front-section + .front-section { border-top: 0; }

/* Блок 1: маршрут осмотра */
.route { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 2.5rem; align-items: center; }
.route__head { min-width: 0; }
.route__title {
    display: flex;
    align-items: center;
    gap: .35em;
    margin: 0 0 1.3rem;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(2.3rem, 5.2vw, 4.4rem);
    line-height: .95;
    letter-spacing: -0.005em;
    color: var(--black);
}
.route__title .flag { font-size: .62em; width: 1.6em; height: 1.65em; }
.route__lead {
    display: inline;
    margin: 0;
    font-size: 15px;
    text-decoration: underline wavy var(--brick);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
.route__note { margin: 1.6rem 0 0; max-width: 40ch; font-size: 13px; color: var(--muted-dark); }
.route__plan { min-width: 0; }
.route__figure { position: relative; margin: 0 0 2.6rem; container-type: inline-size; }
.route__figure img { display: block; width: 100%; height: auto; }
.route__points { list-style: none; margin: 0; padding: 0; }
.route__point {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
}
.route__num {
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: max(13px, 2.6cqw);
    line-height: 1;
    color: var(--black);
}
.route__label {
    position: absolute;
    left: 0;
    top: max(20px, 3.6cqw);
    transform: translateX(-50%);
    white-space: nowrap;
    font-family: var(--f-hand);
    font-weight: 500;
    font-size: max(15px, 2.9cqw);
    line-height: 1;
    color: var(--black);
}
.route__point:first-child .route__label { transform: translateX(-25%); }
.route__point:last-child .route__label { transform: translateX(-75%); }

/* Блок 2: доска «что клиент не говорит» */
.silent { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 0; align-items: stretch; }
.silent__main { min-width: 0; padding-right: 3rem; border-right: 1px solid var(--rule-light); }
.silent__kicker {
    display: flex;
    align-items: center;
    gap: .55em;
    margin: 0 0 1.4rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.55rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--chalk);
}
.silent__quote {
    margin: 0 0 1.6rem;
    padding: 0 0 0 1.6rem;
    background: none;
    border: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.4rem, 5.6vw, 4.6rem);
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--chalk);
    letter-spacing: -0.005em;
    hyphens: manual;
}
.silent__quote p { margin: 0; }
.silent__sub {
    display: inline;
    margin: 0 0 0 1.6rem;
    font-size: 15px;
    color: var(--chalk);
    text-decoration: underline wavy var(--mustard);
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
.silent__list { min-width: 0; list-style: none; margin: 0; padding: .4rem 0 .4rem 3.6rem; counter-reset: none; display: flex; flex-direction: column; justify-content: center; }
.silent__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 1.5rem; align-items: center; padding: 1.25rem 0; border-bottom: 1px solid var(--rule-light); max-width: 380px; }
.silent__item:last-child { border-bottom: 0; }
.silent__num {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #F4CC6B, var(--mustard) 60%, #C9952A);
    color: var(--black);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.3rem;
    box-shadow: inset 0 0 0 2px rgba(20, 22, 26, 0.2);
}
.silent__word { font-size: 1.45rem; line-height: 1.2; color: var(--chalk); }
.silent__hint { margin-top: .2rem; font-size: 12.5px; line-height: 1.45; color: var(--chalk-dim); }

/* Последние записи */
.journal-head { margin-bottom: 2.2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.6rem; }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-note { padding: 1.6rem 1.8rem; background: var(--sheet); border: 1.5px dashed var(--muted); font-size: 14px; }
.empty-note p:last-child { margin: 0; }

/* Карточка-карман */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 12px;
    transition: transform .2s;
}
.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 12%;
    width: 38%;
    height: 26px;
    background: rgba(232, 179, 58, 0.62);
    clip-path: polygon(2% 8%, 98% 0, 100% 40%, 97% 100%, 1% 92%, 0 55%);
    transform: rotate(-1.5deg);
    z-index: 2;
}
.card-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    background: var(--sheet);
    border: 1.5px solid rgba(35, 38, 43, 0.55);
    clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%);
}
.card-sheet::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(225deg, transparent 0 49%, rgba(35, 38, 43, 0.55) 49% 51%, #DCCFB4 51% 100%);
    box-shadow: -2px 2px 4px rgba(35, 38, 43, 0.12);
}
.card:hover { transform: translateY(-4px) rotate(-0.4deg); }
.card-thumb { display: block; margin: 1.6rem 1.6rem 0; overflow: hidden; line-height: 0; border: 1px solid rgba(35, 38, 43, 0.25); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 7 / 4; object-fit: cover; filter: saturate(.95); transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.03); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 1.6rem 1.6rem; }
.card-title { margin: 0 0 .75rem; font-family: var(--f-head); font-weight: 600; font-size: 1.45rem; line-height: 1.2; }
.card-title a { color: var(--black); text-decoration: none; }
.card-title a:hover { color: var(--brick); text-decoration: underline wavy var(--brick); text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card-excerpt { font-size: 13.5px; line-height: 1.6; color: var(--ink); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img, .card-excerpt figure { display: none; }
.card-meta { margin-top: auto; padding-top: 1rem; font-size: 13px; letter-spacing: .06em; color: var(--muted-dark); }
.card-meta .card-cat { color: var(--brick); margin-left: .6em; }
.card-more { margin-top: 1rem; align-self: flex-start; }

/* Полоса кальки: блоки 3 и 4 */
.calc-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.calc-band > .front-section { min-width: 0; }
.review { padding-right: 3rem; border-right: 2px dashed rgba(35, 38, 43, 0.45); }
.library { padding-left: 3rem; }
.review__lead { margin: 0 0 1.6rem 1.4rem; font-size: 15px; }
.review-sheet { margin: 0 0 0 1.4rem; background: transparent; border: 1.5px solid var(--ink); font-size: 15px; }
.review-sheet td, .review-sheet th { border: 1px solid var(--ink); padding: .8rem 1.4rem; vertical-align: middle; }
.review-sheet thead th { background: rgba(35, 38, 43, 0.06); font-size: 12px; padding: .45rem 1.4rem; }
.review-sheet .rv-item { width: 40%; }
.review-sheet .rv-box { width: 14%; text-align: center; padding-left: .5rem; padding-right: .5rem; }
.rv-square { display: inline-block; width: 22px; height: 22px; border: 1.5px solid rgba(35, 38, 43, 0.5); background: rgba(251, 248, 240, 0.6); vertical-align: middle; }
.rv-note {
    font-family: var(--f-hand);
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.1;
    color: var(--brick);
    text-decoration: underline;
    text-decoration-color: rgba(192, 80, 58, 0.55);
    text-underline-offset: 4px;
}
.review__foot { margin: 1.2rem 0 0 1.4rem; font-size: 12.5px; color: var(--muted-dark); }

.library__body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 1.5rem; align-items: center; margin-top: 1.4rem; }
.shelf { position: relative; margin: 0; container-type: inline-size; }
.shelf img { display: block; width: 100%; height: auto; }
.shelf__spines { list-style: none; margin: 0; padding: 0; }
.shelf__spine {
    position: absolute;
    top: 57%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
    padding: .2em .6em;
    background: var(--sheet);
    border: 1px solid rgba(35, 38, 43, 0.55);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: max(10px, 3.3cqw);
    line-height: 1.15;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--black);
}
.shelf__spine:nth-child(1) { left: 18%; }
.shelf__spine:nth-child(2) { left: 35.6%; }
.shelf__spine:nth-child(3) { left: 52.4%; }
.shelf__spine:nth-child(4) { left: 69.1%; }
.tally { text-align: center; min-width: 0; }
.tally__num {
    position: relative;
    display: inline-block;
    padding: .1em .45em;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(4.2rem, 7vw, 6.4rem);
    line-height: 1;
    color: var(--mustard);
    -webkit-text-stroke: 1.5px #9A7322;
    text-shadow: 3px 3px 0 rgba(35, 38, 43, 0.12);
}
.tally__num::before, .tally__num::after {
    content: "";
    position: absolute;
    top: 50%;
    width: .32em;
    height: 2px;
    background: var(--mustard);
}
.tally__num::before { left: -0.15em; }
.tally__num::after { right: -0.15em; }
.tally__rays { position: absolute; left: 50%; top: -0.25em; width: 1.4em; height: .3em; transform: translateX(-50%); background:
    linear-gradient(var(--mustard), var(--mustard)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(var(--mustard), var(--mustard)) 8% 100% / 2px 70% no-repeat,
    linear-gradient(var(--mustard), var(--mustard)) 92% 100% / 2px 70% no-repeat; }
.tally__caption { margin: .9rem auto 0; max-width: 18ch; font-size: 14px; line-height: 1.45; color: var(--black); }
.tally__link { display: inline-block; margin-top: 1.1rem; }
.library__topics { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.library__topics li { padding: .25em .7em; border: 1px solid rgba(35, 38, 43, 0.45); background: rgba(251, 248, 240, 0.55); font-size: 12.5px; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 0 0 4rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 0 6%; align-items: start; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin: .4rem 0 2rem; }
.page-title {
    display: flex;
    align-items: center;
    gap: .45em;
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.9rem, 4.2vw, 3.2rem);
    line-height: 1.02;
    color: var(--black);
}
.page-title .flag { font-size: .55em; }
.page-intro { margin: .8rem 0 0; color: var(--muted-dark); font-size: 14px; }

.sheet {
    position: relative;
    background: var(--sheet);
    border: 1.5px solid rgba(35, 38, 43, 0.5);
    padding: 2.4rem 2.6rem 2.6rem;
}
.sheet::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 2.6rem;
    width: 120px;
    height: 24px;
    background: rgba(232, 179, 58, 0.6);
    transform: rotate(-1.5deg);
}
.entry-header { margin-bottom: 1.6rem; }
.entry-title { margin: 0 0 .7rem; font-family: var(--f-head); font-weight: 700; font-size: clamp(1.8rem, 3.8vw, 2.8rem); line-height: 1.08; color: var(--black); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: 13px; color: var(--muted-dark); }
.entry-meta a { color: var(--brick); }
.entry-thumb { margin: 0 0 1.8rem; border: 1px solid rgba(35, 38, 43, 0.3); line-height: 0; }
.entry-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { font-size: 15.5px; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { display: flex; align-items: center; gap: .5em; }
.entry-content h2::before { content: ""; flex: 0 0 auto; width: 1.4em; height: .95em; background: var(--mustard); clip-path: polygon(0 0, 100% 0, 80% 50%, 100% 100%, 0 100%); }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul li { position: relative; margin-bottom: .35em; }
.entry-content ul li::before { content: ""; position: absolute; left: -1.1em; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--mustard); }
.entry-content ol li::marker { font-family: var(--f-head); color: var(--brick); }
.entry-content img { display: block; }
.entry-footer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--muted); font-size: 13px; }
.entry-tags a { display: inline-block; margin: 0 .4rem .4rem 0; padding: .15em .6em; border: 1px solid rgba(35, 38, 43, 0.4); text-decoration: none; background: var(--paper); }
.entry-tags a:hover { background: var(--mustard); color: var(--black); }
.page-links { margin-top: 1.4rem; font-family: var(--f-head); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; background: var(--paper-deep); border: 1px solid rgba(35, 38, 43, 0.35); text-decoration: none; min-width: 0; }
.post-nav a:hover { background: var(--mustard); color: var(--black); }
.post-nav small { display: block; font-size: 12px; color: var(--muted-dark); text-transform: uppercase; letter-spacing: .08em; }
.post-nav strong { font-family: var(--f-head); font-weight: 500; font-size: 1.05rem; }
.post-nav .next { text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    margin-top: .4rem;
    padding: 1.8rem 1.7rem;
    background: var(--paper-deep);
    background-image: linear-gradient(90deg, transparent 2.1rem, rgba(192, 80, 58, 0.45) 2.1rem, rgba(192, 80, 58, 0.45) calc(2.1rem + 1px), transparent calc(2.1rem + 1px));
    border: 1.5px solid rgba(35, 38, 43, 0.4);
    color: var(--ink);
}
.sidebar .widget { margin: 0 0 2rem; padding-left: 1.2rem; font-size: 14px; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget__title { display: flex; align-items: center; gap: .5em; margin: 0 0 1rem -1.2rem; font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; color: var(--black); }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed rgba(35, 38, 43, 0.3); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--brick); text-decoration: underline wavy var(--brick); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.sidebar .post-date { display: block; font-size: 12px; color: var(--muted-dark); }

/* ---------- Пагинация (type => plain) ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 3rem 0 0; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border: 1.5px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color .15s, transform .15s;
}
.pager a.page-numbers:hover { background: var(--mustard); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--ink); color: var(--mustard); }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 .3rem; }
.pager .prev, .pager .next { font-family: var(--f-hand); font-size: 1.25rem; font-weight: 700; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.6rem; }
.comments__title, .comment-reply-title { display: flex; align-items: center; gap: .5em; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; font-size: 1.4rem; margin: 0 0 1.2rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.8rem; border-left: 2px dashed rgba(192, 80, 58, 0.4); }
.comment-card { margin: 0 0 1rem; padding: 1.1rem 1.3rem; background: var(--sheet); border: 1px solid rgba(35, 38, 43, 0.35); }
.comment-card__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; font-size: 13px; }
.comment-card__head img { display: block; border-radius: 50%; }
.comment-card__author { font-family: var(--f-head); font-weight: 600; font-size: 1.05rem; }
.comment-card__date { color: var(--muted-dark); }
.comment-card__wait { font-family: var(--f-hand); font-size: 1.15rem; color: var(--brick); margin: 0 0 .4rem; }
.comment-card__body { font-size: 14.5px; }
.comment-card__body p:last-child { margin-bottom: 0; }
.comment-card__reply { margin-top: .5rem; font-size: 13px; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; font-size: .9rem; letter-spacing: .05em; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: var(--sheet);
    border: 1.5px solid var(--ink);
    border-radius: 0;
    font-family: var(--f-text);
    font-size: 15px;
    color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px dashed var(--brick); outline-offset: 2px; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-family: var(--f-text); text-transform: none; font-size: 13px; letter-spacing: 0; }
.comment-notes, .logged-in-as { font-size: 13px; color: var(--muted-dark); }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; font-size: 14px; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: stretch; max-width: 560px; }
.search-form__field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .7rem .9rem;
    background: var(--sheet);
    border: 1.5px solid var(--ink);
    border-radius: 0;
    font-family: var(--f-text);
    font-size: 15px;
    color: var(--ink);
}
.search-form__field:focus { outline: 2px dashed var(--brick); outline-offset: 2px; }
.sidebar .search-form__field { flex-basis: 140px; }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost__code { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: .9; color: var(--mustard); -webkit-text-stroke: 2px #9A7322; }
.lost__note { margin: .6rem 0 1.6rem; font-family: var(--f-hand); font-size: 1.6rem; color: var(--brick); }
.lost__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 1.8rem; }

/* ---------- Подвал ---------- */
.colophon { padding: 3rem 0 0; border-top: 0; }
.colophon__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.colophon__col { min-width: 0; padding: 0 2.4rem; border-right: 1px solid var(--rule-light); }
.colophon__col:first-child { padding-left: 0; }
.colophon__col:last-child { padding-right: 0; border-right: 0; }
.colophon__col:nth-child(2) { padding-left: 4.6rem; }
.colophon .widget { margin: 0 0 1.6rem; font-size: 14px; color: var(--chalk); }
.colophon .widget__title { display: flex; align-items: center; gap: .5em; margin: 0 0 1rem; font-family: var(--f-head); font-weight: 600; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .03em; color: var(--chalk); }
.colophon .widget p { color: var(--chalk); }
.colophon .textwidget { color: var(--chalk); padding-left: 2.6rem; }
.colophon .widget a { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--chalk-dim); text-underline-offset: 4px; }
.colophon .widget a:hover { color: var(--mustard); text-decoration: underline wavy var(--mustard); text-decoration-thickness: 1px; }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { position: relative; padding: .3rem 0 .3rem 1.6rem; }
.colophon .widget li::before { content: ""; position: absolute; left: 0; top: 1em; width: 6px; height: 6px; border-radius: 50%; background: var(--mustard); }
.colophon__copy {
    margin: 2.4rem 0 0;
    padding: 1.4rem 0 1.8rem;
    border-top: 1px solid var(--rule-light);
    text-align: center;
    font-size: 12.5px;
    color: var(--chalk-dim);
    background: none;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    max-width: 860px;
    margin: 0 auto;
    padding: 1.1rem 1.6rem;
    background: var(--sheet);
    border: 1.5px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(35, 38, 43, 0.85);
    color: var(--ink);
    font-size: 13.5px;
}
.cookie-banner__text { flex: 1 1 320px; margin: 0; min-width: 0; }
.cookie-banner .tag-btn { font-size: 1.2rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .route { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .silent { grid-template-columns: minmax(0, 1fr); }
    .silent__main { padding-right: 0; border-right: 0; padding-bottom: 2rem; border-bottom: 1px solid var(--rule-light); }
    .silent__list { padding: 1rem 0 0; }
    .silent__item { max-width: none; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .calc-band { grid-template-columns: minmax(0, 1fr); }
    .review { padding-right: 0; border-right: 0; border-bottom: 2px dashed rgba(35, 38, 43, 0.45); }
    .library { padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .sidebar { margin-top: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .colophon__cols { grid-template-columns: minmax(0, 1fr); }
    .colophon__col, .colophon__col:nth-child(2) { padding: 0 0 1.2rem; border-right: 0; border-bottom: 1px solid var(--rule-light); margin-bottom: 1.6rem; }
    .colophon__col:last-child { border-bottom: 0; margin-bottom: 0; }
}
@media (max-width: 600px) {
    body { font-size: 14px; }
    .front-section { padding: 2.4rem 0; }
    .card-grid, .card-grid--two { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .route__lead, .silent__sub { font-size: 14px; }
    .silent__quote { padding-left: 0; }
    .silent__sub { margin-left: 0; }
    .review__lead, .review-sheet, .review__foot { margin-left: 0; }
    .review-sheet td, .review-sheet th { padding: .6rem .7rem; }
    .review-sheet thead th { padding: .4rem .7rem; }
    .rv-note { font-size: 1.15rem; }
    .library__body { grid-template-columns: minmax(0, 1fr); }
    .sheet { padding: 1.8rem 1.3rem 1.9rem; }
    .sheet::before { left: 1.3rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .colophon .widget p, .colophon .textwidget { padding-left: 0; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .card-thumb { margin: 1.2rem 1.2rem 0; }
    .card-body { padding: 1.1rem 1.2rem 1.3rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
