/*
Theme Name: dds_mxpmindset.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: mxpm
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; src: url("fonts/oswald-cyr-600.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-lat-600.woff2") format("woff2"); font-weight: 600; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-cyr-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; src: url("fonts/oswald-lat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("fonts/ptserif-cyr-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("fonts/ptserif-lat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("fonts/ptserif-cyr-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("fonts/ptserif-lat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("fonts/ptserif-cyr-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-cyr.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat-lat.woff2") format("woff2"); font-weight: 600; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono-cyr.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/plexmono-lat.woff2") format("woff2"); font-weight: 400; font-display: swap; 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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --board: #23262B;
    --board-deep: #1B1E22;
    --paper: #F2ECDD;
    --paper-dim: #E7DFCB;
    --ink: #1E2024;
    --muted: #6E6A5E;
    --chalk: #EDE7D8;
    --chalk-soft: #BDB7A8;
    --alarm: #C6402F;
    --calm: #3E7C6A;
    --calm-deep: #1F5A4A;
    --teal-soft: #83B5A7;
    --sticker: #5E9F8B;
    --sticker-ink: #12302A;
    --line: #B9AF95;
    --chalk-line: #8C9096;

    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-text: "PT Serif", Georgia, "Times New Roman", serif;
    --f-mono: "IBM Plex Mono", "PT Mono", "Courier New", monospace;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

    --edge: polygon(0 1.2%, 6% 0, 18% .9%, 33% .2%, 49% 1.1%, 63% .3%, 78% 1%, 92% 0, 100% .8%, 99.6% 22%, 100% 47%, 99.5% 73%, 100% 99%, 87% 100%, 70% 99.2%, 52% 100%, 36% 99.3%, 19% 100%, 4% 99.2%, 0 100%, .5% 74%, 0 51%, .4% 26%);
}

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.mx-nav[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;
    color: var(--chalk);
    font: 400 1.0625rem/1.65 var(--f-text);
    background-color: var(--board);
    background-image:
        linear-gradient(rgba(140, 144, 150, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(140, 144, 150, .055) 1px, transparent 1px),
        url("images/board-texture.webp");
    background-size: 26px 26px, 26px 26px, 760px auto;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.15; font-family: var(--f-head); font-weight: 600; }
p, li, h1, h2, h3, h4, dd, td, th, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }
:focus-visible { outline: 2px dashed var(--alarm); outline-offset: 3px; }
::selection { background: var(--alarm); color: var(--paper); }

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

.mx-skip { position: absolute; left: -9999px; top: 0; z-index: 100; padding: .7rem 1.1rem; background: var(--paper); color: var(--ink); font-family: var(--f-head); }
.mx-skip:focus { left: 1rem; top: 1rem; }

/* ---------- Ярлык-стикер (кнопки) ---------- */
.mx-tag {
    display: inline-block;
    padding: .38rem 1.15rem .42rem;
    border: 0;
    background: var(--sticker);
    color: var(--sticker-ink);
    font: 600 1.3rem/1.1 var(--f-hand);
    text-decoration: none;
    cursor: pointer;
    clip-path: polygon(2% 6%, 30% 0, 62% 7%, 100% 1%, 98% 52%, 100% 96%, 66% 100%, 34% 93%, 0 100%, 3% 48%);
    box-shadow: inset 0 0 0 1px rgba(18, 48, 42, .35);
    transition: transform .2s ease, background-color .2s ease;
}
.mx-tag:hover, .mx-tag:focus-visible { background: #4E8E7A; transform: translateY(-2px) rotate(-1.5deg); }
.mx-tag--teal { background: var(--sticker); }

/* ---------- Скрепка, лента, штамп ---------- */
.mx-clip {
    position: absolute;
    top: -22px;
    left: 26px;
    z-index: 3;
    width: 22px;
    height: 62px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 62'%3E%3Cpath d='M15 18V50a5 5 0 0 1-10 0V9a6.5 6.5 0 0 1 13 0v41' fill='none' stroke='%23A4A49C' stroke-width='2.4' stroke-linecap='round'/%3E%3Cpath d='M15 18V50a5 5 0 0 1-10 0V9a6.5 6.5 0 0 1 13 0v41' fill='none' stroke='%23E2E0D8' stroke-width='.9' stroke-linecap='round' transform='translate(-.6 -.4)'/%3E%3C/svg%3E") no-repeat center / contain;
    transform: rotate(-12deg);
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .35));
    pointer-events: none;
}
.mx-tape {
    position: absolute;
    top: -14px;
    left: 34%;
    z-index: 3;
    width: 110px;
    height: 30px;
    background: rgba(53, 128, 108, .55);
    transform: rotate(-3deg);
    clip-path: polygon(3% 0, 97% 4%, 100% 30%, 97% 60%, 100% 100%, 2% 96%, 0 66%, 3% 34%);
    pointer-events: none;
}
.mx-stamp {
    display: inline-block;
    padding: .22rem .7rem .26rem;
    border: 3px solid var(--alarm);
    box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--alarm);
    color: var(--alarm);
    font: 600 1.1rem/1 var(--f-head);
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-4deg);
    opacity: .92;
    white-space: nowrap;
}
.mx-stamp--big { font-size: 1.55rem; padding: .35rem .95rem .4rem; transform: rotate(-9deg); }

/* ---------- Лист бумаги ---------- */
.mx-sheet {
    position: relative;
    isolation: isolate;
    color: var(--ink);
    padding: 2.6rem 2.8rem 2.4rem;
    filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .5)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.mx-sheet::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--paper) url("images/paper-texture.webp") repeat;
    background-size: 400px auto;
    clip-path: var(--edge);
}
.mx-sheet::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(225deg, var(--board) 0 50%, #D9D0B9 50% 62%, #EFE7D4 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.mx-sheet__title {
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--ink);
    margin-bottom: 1.4rem;
}

.mx-paper {
    position: relative;
    color: var(--ink);
    background: var(--paper) url("images/paper-texture.webp") repeat;
    background-size: 400px auto;
    padding: 2.6rem 2.8rem;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .45), 0 2px 3px rgba(0, 0, 0, .3);
}

.mx-board-title {
    color: var(--chalk);
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    text-transform: uppercase;
    letter-spacing: .01em;
    margin: 0 0 1.6rem;
    text-shadow: 0 0 1px rgba(237, 231, 216, .4);
}
.mx-board-title--page { margin-bottom: .6rem; }

/* ---------- Шапка ---------- */
.mx-head { position: relative; z-index: 10; padding: 1.6rem 0 1.2rem; }
.mx-head__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; }
.mx-brand { display: flex; align-items: center; gap: 1.1rem; min-width: 0; flex: 1 1 420px; max-width: 760px; text-decoration: none; color: var(--chalk); }
.mx-brand__logo { flex: 0 0 auto; display: block; color: var(--chalk); }
.mx-brand__mark { display: block; width: 104px; height: auto; }
.brand-logo { display: block; max-height: 84px; width: auto; }
.mx-brand__text { display: block; min-width: 0; }
.mx-brand__name { display: block; font: 600 1.32rem/1.2 var(--f-head); color: var(--chalk); letter-spacing: .01em; }
.mx-brand__desc { display: block; margin-top: .35rem; font-size: .9rem; line-height: 1.45; color: var(--chalk-soft); }
.mx-brand:hover .mx-brand__name { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.mx-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2.1rem; }
.mx-nav__list a {
    display: inline-block;
    padding: .25rem 0 .35rem;
    color: var(--chalk);
    font: 500 1.15rem/1.2 var(--f-head);
    text-decoration: none;
    background: linear-gradient(var(--chalk), var(--chalk)) no-repeat 0 100% / 0 2px;
    transition: background-size .25s ease;
}
.mx-nav__list a:hover, .mx-nav__list a:focus-visible,
.mx-nav__list .current-menu-item > a { background-size: 100% 2px; }

.mx-burger { display: none; align-items: center; gap: .6rem; padding: .5rem .9rem; border: 2px solid var(--chalk-line); background: transparent; color: var(--chalk); font: 500 1rem/1 var(--f-head); cursor: pointer; }
.mx-burger__lines, .mx-burger__lines::before, .mx-burger__lines::after { display: block; width: 20px; height: 2px; background: var(--chalk); position: relative; transition: transform .2s ease; }
.mx-burger__lines::before, .mx-burger__lines::after { content: ""; position: absolute; left: 0; }
.mx-burger__lines::before { top: -6px; }
.mx-burger__lines::after { top: 6px; }
.mx-burger[aria-expanded="true"] .mx-burger__lines { background: transparent; }
.mx-burger[aria-expanded="true"] .mx-burger__lines::before { transform: translateY(6px) rotate(45deg); }
.mx-burger[aria-expanded="true"] .mx-burger__lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Главная ---------- */
.mx-main { display: block; padding-bottom: 4rem; }
.mx-front { display: block; }
.front-section { margin: 0 0 3.6rem; }

.mx-lead { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr); gap: 2rem; align-items: center; padding: 1.8rem 0 3rem; }
.mx-lead__text { min-width: 0; }
.mx-lead__title { font-size: clamp(2.4rem, 5.4vw, 4.4rem); line-height: 1.04; text-transform: uppercase; color: var(--chalk); margin-bottom: 1.4rem; text-shadow: 0 0 1px rgba(237, 231, 216, .5); hyphens: manual; }
.mx-lead__sub { max-width: 34em; font-size: 1.28rem; line-height: 1.5; color: var(--chalk); margin: 0; }
.mx-lead__art { position: relative; min-width: 0; min-height: 300px; color: var(--chalk); }
.mx-chalk-note { position: absolute; top: 2%; left: 0; margin: 0; font: 600 2rem/1.05 var(--f-hand); color: var(--chalk); transform: rotate(-9deg); opacity: .9; }
.mx-lead__arrow { position: absolute; top: 34%; left: 18%; width: 110px; height: auto; color: var(--chalk); opacity: .85; }
.mx-lead__head { display: block; width: 62%; margin-left: auto; opacity: .95; }

/* Карта ловушек */
.mx-sheet--map { transform: rotate(-1.1deg); margin-right: 6%; }
.mx-sheet--map .mx-clip--left { left: 18px; top: -24px; }
.mx-route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; counter-reset: none; }
.mx-route__step { position: relative; display: grid; grid-template-rows: 3.6rem auto auto auto; justify-items: center; text-align: center; min-width: 0; padding: 0 .4rem; }
.mx-route__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(3.6rem + 40px);
    right: -24px;
    width: 52px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 16'%3E%3Cpath d='M2 8.5c14-1 28 .8 46-.5M38 2l10 6-10 6' fill='none' stroke='%231E2024' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.mx-route__step .mx-stamp { grid-row: 1; align-self: center; font-size: 1.05rem; }
.mx-route__step:nth-child(3) .mx-stamp { transform: rotate(-6deg); }
.mx-route__step:nth-child(5) .mx-stamp { transform: rotate(-3deg); }
.mx-route__icon {
    grid-row: 2;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 2.5px solid var(--ink);
    border-radius: 50% 47% 52% 48% / 48% 52% 47% 51%;
    background: rgba(255, 255, 255, .25);
}
.mx-route__icon svg { width: 46px; height: 46px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mx-route__step.is-trap .mx-route__icon { box-shadow: 0 0 0 4px rgba(198, 64, 47, .14); }
.mx-route__name { grid-row: 3; margin-top: .75rem; font: 400 1.05rem/1.2 var(--f-mono); color: var(--ink); }
.mx-route__note { grid-row: 4; margin-top: .35rem; font: 600 1.35rem/1.05 var(--f-hand); color: var(--alarm); max-width: 11rem; }
.mx-sheet__legend { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--line); font-size: .98rem; color: var(--muted); max-width: 52em; }

/* Разбор дела */
.mx-sheet--case { transform: rotate(.5deg); margin-left: 1%; }
.mx-case { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.4rem; }
.mx-case__main { min-width: 0; }
.mx-case__body { display: flex; gap: 1.8rem; align-items: flex-start; }
.mx-case__photo { flex: 0 0 180px; margin: .4rem 0 0; padding: 9px 9px 14px; background: #FBF8F0; box-shadow: 0 6px 12px rgba(0, 0, 0, .25); transform: rotate(-2.5deg); }
.mx-case__photo img { display: block; width: 100%; aspect-ratio: 174 / 205; object-fit: cover; }
.mx-case__text { min-width: 0; margin: 0; font: 400 .98rem/1.8 var(--f-mono); color: var(--ink); }
.mx-case__notes { min-width: 0; padding-left: 2.4rem; border-left: 2px solid var(--ink); }
.mx-hand { font-family: var(--f-hand); font-weight: 600; }
.mx-hand--red { color: var(--alarm); }
.mx-hand--teal { color: var(--calm-deep); }
.mx-hand__head { font-size: 1.9rem; line-height: 1; margin: 0 0 .4rem; }
.mx-hand__list { list-style: none; margin: 0 0 1.6rem; padding: 0; font-size: 1.5rem; line-height: 1.25; }
.mx-hand__list li { position: relative; padding-left: 1.3rem; }
.mx-hand__list li::before { content: "–"; position: absolute; left: 0; }
.mx-hand__list--ok li::before { content: "✓"; }
.mx-hand--red.mx-hand__list { padding-bottom: .9rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5c60-3 140 1 296-3' fill='none' stroke='%23C6402F' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 88% 8px; }
.mx-case__result { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.mx-case__sum { margin: 0; font: 400 clamp(1.25rem, 2.4vw, 1.75rem)/1.2 var(--f-mono); color: var(--ink); }

/* Последние разборы */
.mx-grid { display: grid; gap: 2.4rem 1.8rem; }
.mx-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-grid--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }

.card { display: flex; flex-direction: column; }
.mx-card {
    position: relative;
    min-width: 0;
    color: var(--ink);
    background: var(--paper) url("images/paper-texture.webp") repeat;
    background-size: 400px auto;
    padding: 1.2rem 1.2rem 1.3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .45), 0 2px 2px rgba(0, 0, 0, .3);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
    transition: transform .25s ease;
}
.mx-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(315deg, transparent 0 50%, #D3C9B1 50% 64%, #E9E1CC 100%);
}
.mx-grid > .mx-card:nth-child(3n+1) { transform: rotate(-.6deg); }
.mx-grid > .mx-card:nth-child(3n+2) { transform: rotate(.4deg); }
.mx-grid > .mx-card:nth-child(3n) { transform: rotate(-.2deg); }
.mx-grid > .mx-card:hover { transform: translateY(-5px) rotate(0); }
.mx-card .mx-clip { top: -10px; left: 14px; height: 44px; }
.mx-card__thumb { position: relative; overflow: hidden; margin-bottom: 1.1rem; background: var(--paper-dim); }
.mx-card__thumb a { display: block; }
.mx-card__thumb img { display: block; width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; filter: saturate(.85) contrast(1.02); transition: filter .25s ease; }
.mx-card:hover .mx-card__thumb img { filter: saturate(1) contrast(1.05); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mx-card__title { font: 700 1.22rem/1.3 var(--f-text); margin: 0 0 .6rem; color: var(--ink); }
.mx-card__title a { text-decoration: none; color: var(--ink); }
.mx-card__title a:hover { text-decoration: underline; text-decoration-color: var(--alarm); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mx-card__excerpt { flex: 1; font: 400 .9rem/1.6 var(--f-mono); color: #4A4740; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.mx-card__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; padding-right: 1.4rem; }
.mx-card__date { font: 400 .88rem/1 var(--f-mono); color: var(--muted); }
.mx-empty { color: var(--chalk-soft); font-size: 1.1rem; }

/* Чек-лист + вопросы */
.mx-duo { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 3rem; align-items: start; }
.mx-check {
    position: relative;
    min-width: 0;
    color: var(--ink);
    background: var(--teal-soft);
    padding: 0 0 1.6rem;
    box-shadow: 0 12px 22px rgba(0, 0, 0, .45);
    transform: rotate(-.6deg);
}
.mx-check__title { margin: 0 0 1rem; padding: 1.5rem 1.8rem 1rem; background: var(--calm); color: var(--chalk); font-size: clamp(1.45rem, 2.4vw, 1.9rem); text-transform: uppercase; }
.mx-check__list { list-style: none; margin: 0; padding: 0 1.8rem; }
.mx-check__list li { position: relative; display: flex; align-items: center; gap: .9rem; padding: .55rem .2rem; border-bottom: 1px dashed rgba(30, 32, 36, .28); font: 500 1.08rem/1.3 var(--f-head); color: var(--ink); }
.mx-check__list li:last-child { border-bottom: 0; }
.mx-box { position: relative; flex: 0 0 24px; width: 24px; height: 24px; border: 2px solid var(--ink); background: rgba(242, 236, 221, .45); }
.mx-check__list .is-done .mx-box::after { content: ""; position: absolute; left: 6px; top: -6px; width: 9px; height: 19px; border: solid var(--calm-deep); border-width: 0 3.5px 3.5px 0; transform: rotate(42deg); }
.mx-check__list .is-alert::before { content: ""; position: absolute; inset: 2px -8px 2px -10px; border: 2.5px solid var(--alarm); border-radius: 50%; transform: rotate(-1.5deg); pointer-events: none; }

.mx-quest { min-width: 0; padding-top: .4rem; }
.mx-quest__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-quest__list li { min-width: 0; padding: .4rem 1.4rem 1rem; text-align: center; border-left: 2px dashed rgba(140, 144, 150, .75); }
.mx-quest__list li:first-child { border-left: 0; }
.mx-quest__num { display: block; font: 600 6rem/1 var(--f-head); color: transparent; -webkit-text-stroke: 2.5px var(--chalk); margin-bottom: 1rem; opacity: .95; }
@supports not (-webkit-text-stroke: 1px black) { .mx-quest__num { color: var(--chalk); } }
.mx-quest__list p { margin: 0; font-size: 1.12rem; line-height: 1.45; color: var(--chalk); }

/* ---------- Внутренние страницы ---------- */
.mx-crumbs { margin: .4rem 0 1.8rem; font: 400 .88rem/1.5 var(--f-mono); color: var(--chalk-soft); }
.mx-crumbs a { color: var(--chalk); text-decoration: underline; text-decoration-color: var(--chalk-line); text-underline-offset: 3px; }
.mx-crumbs a:hover { text-decoration-color: var(--chalk); }
.mx-crumbs__sep { color: var(--alarm); margin: 0 .25rem; }

.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.content-area { min-width: 0; }
.mx-page-head { margin-bottom: 2.4rem; }
.mx-page-head__note { color: var(--chalk-soft); max-width: 44em; margin: 0; }

.mx-entry__head { margin-bottom: 1.4rem; padding-bottom: 1.1rem; border-bottom: 1px dashed var(--line); }
.mx-entry__title { font-size: clamp(1.9rem, 4vw, 2.9rem); text-transform: uppercase; color: var(--ink); margin: 0 0 .6rem; }
.mx-entry__meta { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font: 400 .9rem/1.4 var(--f-mono); color: var(--muted); }
.mx-entry__cat a { color: var(--alarm); text-decoration: none; border: 1.5px solid var(--alarm); padding: .05rem .45rem; text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }
.mx-entry__thumb { margin: 0 0 1.6rem; }
.mx-entry__thumb img { display: block; width: 100%; height: auto; }
.mx-entry__content { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.mx-entry__content > * { max-width: 100%; }
.mx-entry__content h2, .mx-entry__content h3, .mx-entry__content h4 { color: var(--ink); margin: 1.6em 0 .6em; }
.mx-entry__content h2 { font-size: 1.75rem; text-transform: uppercase; }
.mx-entry__content h2::after { content: ""; display: block; width: 90px; height: 6px; margin-top: .4rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 6'%3E%3Cpath d='M2 4c25-3 55 0 86-2' fill='none' stroke='%23C6402F' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; }
.mx-entry__content h3 { font-size: 1.35rem; }
.mx-entry__content a { color: var(--calm-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.mx-entry__content a:hover { color: var(--alarm); }
.mx-entry__content ul, .mx-entry__content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.mx-entry__content li { margin-bottom: .35em; }
.mx-entry__content ul li::marker { color: var(--alarm); }
.mx-entry__content img { display: block; height: auto; }
.mx-entry__content figure { margin: 1.6em 0; }
.mx-entry__content figcaption { font: 400 .85rem/1.4 var(--f-mono); color: var(--muted); margin-top: .5rem; }
.mx-entry__content blockquote { margin: 1.6em 0; padding: 1rem 1.4rem 1rem 1.6rem; border-left: 4px solid var(--alarm); background: rgba(198, 64, 47, .06); font-style: italic; }
.mx-entry__content blockquote p:last-child { margin-bottom: 0; }
.mx-entry__content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; border: 1px solid var(--line); }
.mx-entry__content th, .mx-entry__content td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.mx-entry__content th { background: var(--paper-dim); font-family: var(--f-head); font-weight: 500; }
.mx-entry__content .wp-block-table { overflow-x: auto; }
.mx-entry__content pre { overflow-x: auto; padding: 1rem; background: var(--board); color: var(--chalk); font: .9rem/1.5 var(--f-mono); }
.mx-entry__content code { font-family: var(--f-mono); font-size: .92em; }
.mx-entry__content hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.mx-entry__tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem .9rem; font: 400 .9rem/1.4 var(--f-mono); }
.mx-entry__tags a { color: var(--calm-deep); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }

.mx-postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin: 2.4rem 0 0; }
.mx-postnav__link { min-width: 0; display: block; padding: 1.1rem 1.3rem; border: 2px dashed var(--chalk-line); color: var(--chalk); text-decoration: none; font: 500 1.05rem/1.35 var(--f-head); transition: border-color .2s ease, background-color .2s ease; }
.mx-postnav__link span { display: block; margin-bottom: .3rem; font: 400 .82rem/1.2 var(--f-mono); color: var(--chalk-soft); }
.mx-postnav__link--next { grid-column: 2; text-align: right; }
.mx-postnav__link:hover { border-color: var(--chalk); background: rgba(237, 231, 216, .05); }

/* Сайдбар */
.mx-aside {
    min-width: 0;
    position: relative;
    color: var(--ink);
    background: var(--paper-dim) url("images/paper-texture.webp") repeat;
    background-size: 400px auto;
    padding: 2rem 1.7rem 1.6rem;
    box-shadow: 0 12px 22px rgba(0, 0, 0, .45);
}
.mx-aside::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: rgba(185, 175, 149, .7); transform: rotate(2deg); }
.mx-aside .mx-widget { margin-bottom: 2rem; color: var(--ink); }
.mx-aside .mx-widget:last-child { margin-bottom: 0; }
.mx-aside .mx-widget__title { color: var(--ink); font-size: 1.35rem; text-transform: uppercase; padding-bottom: .5rem; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; }
.mx-aside ul { list-style: none; margin: 0; padding: 0; }
.mx-aside li { padding: .55rem 0 .55rem 1.3rem; border-bottom: 1px dashed var(--line); position: relative; line-height: 1.4; color: var(--ink); }
.mx-aside li::before { content: "✓"; position: absolute; left: 0; top: .5rem; color: var(--calm-deep); font-family: var(--f-hand); font-size: 1.15rem; line-height: 1; }
.mx-aside a { color: var(--ink); text-decoration: none; }
.mx-aside a:hover { color: var(--alarm); text-decoration: underline; }
.mx-aside .post-date { display: block; font: 400 .8rem/1.3 var(--f-mono); color: var(--muted); }
.mx-aside p { color: var(--ink); }

/* Пагинация */
.mx-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2.6rem 0 0; }
.mx-pager .page-numbers, .mx-pager > a, .mx-pager > span {
    display: inline-block;
    min-width: 2.7rem;
    padding: .45rem .8rem;
    text-align: center;
    background: var(--paper);
    color: var(--ink);
    font: 400 .95rem/1.2 var(--f-mono);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .35);
    transition: transform .2s ease;
}
.mx-pager a.page-numbers:hover, .mx-pager > a:hover { transform: translateY(-2px) rotate(-1.5deg); background: #FFF9EA; }
.mx-pager .page-numbers.current, .mx-pager > span.current, .mx-pager .post-page-numbers.current { background: var(--calm); color: var(--chalk); }
.mx-pager .page-numbers.dots { background: none; box-shadow: none; color: var(--chalk); min-width: auto; padding-inline: .2rem; }
.mx-entry__content .mx-pager .post-page-numbers { background: var(--paper-dim); }

/* Поиск */
.mx-search { margin: 1.2rem 0; }
.mx-search__label { display: block; margin-bottom: .4rem; font: 500 1rem/1.2 var(--f-head); }
.mx-search__row { display: flex; gap: .7rem; flex-wrap: wrap; }
.mx-search__field { flex: 1 1 220px; min-width: 0; padding: .65rem .9rem; border: 2px solid var(--ink); border-radius: 0; background: #FBF8F0; color: var(--ink); font: 400 1rem/1.3 var(--f-mono); }
.mx-search__field:focus { outline: 2px dashed var(--alarm); outline-offset: 2px; }
.mx-search__btn { font-size: 1.35rem; }

/* 404 */
.mx-404 { text-align: center; padding: 3rem 2.6rem; }
.mx-404 .mx-stamp--big { margin-bottom: 1rem; }
.mx-404__code { font: 600 clamp(5rem, 16vw, 9rem)/1 var(--f-head); color: transparent; -webkit-text-stroke: 3px var(--ink); margin: .4rem 0 .6rem; }
.mx-404 .mx-search { max-width: 520px; margin-inline: auto; text-align: left; }

/* Комментарии */
.mx-comments { margin-top: 2.4rem; }
.mx-comments__title, .comment-reply-title { font-size: 1.6rem; text-transform: uppercase; color: var(--ink); }
.mx-comments__list, .mx-comments__list .children { list-style: none; margin: 0 0 2rem; padding: 0; }
.mx-comments__list .children { margin: 1rem 0 0 1.8rem; padding-left: 1.2rem; border-left: 2px dashed var(--line); }
.mx-comment { margin-bottom: 1.2rem; }
.mx-comment__body { padding: 1rem 1.2rem; background: rgba(255, 255, 255, .45); border: 1px solid var(--line); }
.mx-comment__head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .9rem; margin-bottom: .6rem; }
.mx-comment__avatar { display: block; border-radius: 50%; }
.mx-comment__author { font: 500 1.05rem/1.2 var(--f-head); }
.mx-comment__date { font: 400 .82rem/1.2 var(--f-mono); color: var(--muted); }
.mx-comment__wait { color: var(--alarm); font-style: italic; }
.mx-comment__reply a { font: 600 1.2rem/1 var(--f-hand); color: var(--calm-deep); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font: 500 .98rem/1.3 var(--f-head); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .65rem .85rem; border: 2px solid var(--ink); border-radius: 0; background: #FBF8F0; color: var(--ink); font: 400 1rem/1.5 var(--f-mono);
}
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font: 400 .92rem/1.4 var(--f-text); margin: 0; }
.mx-form-note { font-size: .92rem; color: var(--muted); }
.mx-req { color: var(--alarm); }
.form-submit .mx-tag { font-size: 1.4rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; }
.comment-navigation a { color: var(--calm-deep); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Подвал ---------- */
.mx-foot { position: relative; margin-top: 2rem; padding: 3.2rem 0 1.6rem; background: rgba(20, 22, 26, .55); color: var(--chalk-soft); }
.mx-foot { border-top: 2px solid rgba(140, 144, 150, .5); }
.mx-foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mx-foot__col { min-width: 0; padding: 0 2.2rem; border-left: 2px dashed rgba(140, 144, 150, .45); }
.mx-foot__col:first-child { padding-left: 0; border-left: 0; }
.mx-foot__col:last-child { padding-right: 0; }
.mx-foot .mx-widget { color: var(--chalk-soft); margin-bottom: 1.6rem; font-size: .98rem; line-height: 1.6; }
.mx-foot .mx-widget:last-child { margin-bottom: 0; }
.mx-foot .mx-widget__title { color: var(--chalk); font-size: 1.3rem; font-weight: 500; margin-bottom: .8rem; }
.mx-foot .mx-widget p { color: var(--chalk-soft); }
.mx-foot a { color: var(--chalk); text-decoration: none; }
.mx-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mx-foot ul { list-style: none; margin: 0; padding: 0; }
.mx-foot li { position: relative; padding: .22rem 0 .22rem 1.1rem; color: var(--chalk-soft); }
.mx-foot li::before { content: "›"; position: absolute; left: 0; top: .2rem; color: var(--chalk-line); }
.mx-foot .post-date { display: block; font-size: .8rem; color: var(--chalk-line); }
.mx-foot__copy { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid rgba(140, 144, 150, .4); text-align: center; font-size: .92rem; color: var(--chalk-soft); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 780px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1rem 1.6rem;
    padding: 1.1rem 1.5rem;
    background: var(--paper) url("images/paper-texture.webp") repeat;
    background-size: 400px auto;
    color: var(--ink);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
    border-top: 4px solid var(--alarm);
}
.cookie-banner__text { margin: 0; font-size: .95rem; line-height: 1.5; color: var(--ink); }
.cookie-banner__btn { flex: 0 0 auto; font-size: 1.4rem; }

/* ---------- Адаптив ---------- */
@media (min-width: 961px) {
    .mx-front { width: 85%; margin-left: auto; margin-right: auto; }
    .layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
}

@media (max-width: 960px) {
    .mx-burger { display: inline-flex; }
    .mx-nav { display: none; width: 100%; }
    .mx-nav.is-open { display: block; }
    .mx-nav__list { flex-direction: column; gap: 0; padding: .6rem 0; border-top: 2px dashed var(--chalk-line); }
    .mx-nav__list a { padding: .7rem 0; width: 100%; }
    .mx-brand { flex: 1 1 100%; max-width: none; }
    .mx-burger { margin-left: auto; }
    .mx-lead { grid-template-columns: minmax(0, 1fr); }
    .mx-lead__art { min-height: 240px; max-width: 520px; width: 100%; justify-self: center; }
    .mx-sheet--map { margin-right: 0; }
    .mx-case { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .mx-case__notes { padding: 1.4rem 0 0; border-left: 0; border-top: 2px solid var(--ink); }
    .mx-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mx-duo { grid-template-columns: minmax(0, 1fr); }
    .mx-check { max-width: 560px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 3rem; }
    .mx-foot__cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .mx-foot__col { padding: 2rem 0 0; border-left: 0; border-top: 2px dashed rgba(140, 144, 150, .45); }
    .mx-foot__col:first-child { padding-top: 0; border-top: 0; }
    .mx-route__step:not(:last-child)::after { right: -18px; width: 36px; }
    .mx-route__icon { width: 72px; height: 72px; }
    .mx-route__icon svg { width: 38px; height: 38px; }
    .mx-route__step:not(:last-child)::after { top: calc(3.6rem + 33px); }
}

@media (max-width: 720px) {
    .mx-route { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .mx-route__step { grid-template-columns: 72px minmax(0, 1fr); grid-template-rows: auto; justify-items: start; text-align: left; column-gap: 1.2rem; row-gap: .3rem; padding: 0; }
    .mx-route__icon { grid-column: 1; grid-row: 1 / span 3; }
    .mx-route__step .mx-stamp { grid-column: 2; grid-row: 1; font-size: .95rem; }
    .mx-route__name { grid-column: 2; grid-row: 2; margin: 0; align-self: center; }
    .mx-route__step:not(.is-trap) .mx-route__name { grid-row: 1 / span 3; }
    .mx-route__note { grid-column: 2; grid-row: 3; margin: 0; max-width: none; }
    .mx-route__step:not(:last-child)::after { top: auto; bottom: -1.45rem; left: 26px; right: auto; width: 20px; height: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 22'%3E%3Cpath d='M10 2c-1 6 1 11 0 17M4 13l6 7 6-7' fill='none' stroke='%231E2024' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .mx-brand { align-items: flex-start; gap: .8rem; }
    .mx-brand__mark { width: 64px; }
    .mx-brand__name { font-size: 1.08rem; }
    .mx-brand__desc { font-size: .82rem; }
    .mx-head { padding-top: 1.1rem; }
    .mx-lead { padding: 1rem 0 2.2rem; }
    .mx-lead__sub { font-size: 1.1rem; }
    .mx-chalk-note { font-size: 1.6rem; }
    .front-section { margin-bottom: 2.6rem; }
    .mx-sheet { padding: 2.2rem 1.4rem 1.8rem; }
    .mx-sheet--map, .mx-sheet--case { transform: none; margin: 0 0 2.6rem; }
    .mx-sheet::after { width: 30px; height: 30px; }
    .mx-case__body { flex-direction: column; }
    .mx-case__photo { flex: none; width: 62%; max-width: 240px; }
    .mx-case__result { justify-content: flex-start; }
    .mx-grid--3 { grid-template-columns: minmax(0, 1fr); }
    .mx-grid > .mx-card { transform: none; }
    .mx-check__title { padding: 1.3rem 1.3rem .9rem; }
    .mx-check__list { padding: 0 1.3rem; }
    .mx-quest__list { grid-template-columns: minmax(0, 1fr); }
    .mx-quest__list li { border-left: 0; border-top: 2px dashed rgba(140, 144, 150, .75); padding: 1.4rem .4rem; }
    .mx-quest__list li:first-child { border-top: 0; }
    .mx-quest__num { font-size: 4.6rem; margin-bottom: .6rem; }
    .mx-paper { padding: 2rem 1.3rem; }
    .mx-aside { padding: 1.8rem 1.3rem 1.4rem; }
    .mx-postnav { grid-template-columns: minmax(0, 1fr); }
    .mx-postnav__link--next { grid-column: 1; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .mx-404 { padding: 2.4rem 1.3rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
