/*
Theme Name: dds_overnightcommissions.com
Theme URI: https://overnightcommissions.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: pkdsd
*/

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

/* ---------- Палитра ---------- */
:root {
    --paper: #C9C7B8;
    --paper-deep: #BEBCAB;
    --sheet: #E4E3D8;
    --sheet-2: #D8D7CA;
    --sheet-edge: #B4B3A1;
    --head: #24312B;
    --ink: #1E2320;
    --muted: #6B6F5E;
    --stamp: #B23A2E;
    --teal: #2F5D62;
    --teal-light: #8EBDBF;
    --line: #8A8B77;
    --cover: #969582;
    --tab-green: #3E7F5C;
    --foot: #1B2420;
    --foot-text: #C3C6B7;
    --foot-head: #E4E3D8;
    --f-head: "Oswald", "PT Sans Narrow", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-body: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-narrow: "PT Sans Narrow", "PT Sans", "Arial Narrow", sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
}

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

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    letter-spacing: 0.012em;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .23 0 0 0 0 .24 0 0 0 0 .19 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 7px),
        linear-gradient(180deg, #CBC9BA 0%, #C5C3B3 100%);
    overflow-wrap: break-word;
    hyphens: auto;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 0.6em;
    letter-spacing: 0.03em;
    color: var(--ink);
    hyphens: manual;
}
a { color: var(--teal); text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--stamp); text-decoration-color: var(--stamp); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px dashed var(--stamp); outline-offset: 3px; }
.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; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--sheet); color: var(--ink); padding: 0.6rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: #ECEBE2;
    border: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: inset 0 0 0 2px #ECEBE2, inset 0 0 0 3px var(--ink), 2px 2px 0 rgba(30,35,32,.35);
    padding: 0.62rem 1.15rem;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.btn:hover, .btn:focus-visible {
    color: #EEF0E8;
    background: var(--teal);
    box-shadow: inset 0 0 0 2px var(--teal), inset 0 0 0 3px #EEF0E8, 0 0 0 rgba(30,35,32,.35);
    transform: translate(2px, 2px);
}
.btn-small { font-size: 0.82rem; padding: 0.45rem 0.8rem; }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--head);
    color: var(--sheet);
    border-bottom: 4px solid #1A2420;
    box-shadow: inset 0 -1px 0 rgba(201,199,184,.15);
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.3rem 0 1.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: inherit; min-width: 0; flex: 1 1 420px; }
.brand:hover { color: inherit; }
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--f-head); font-weight: 500; font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.12; letter-spacing: 0.05em; text-transform: uppercase; color: #E9E8DD; max-width: 22em; }
.brand-desc { font-size: 0.86rem; color: #AEB1A0; margin-top: 0.35rem; line-height: 1.4; max-width: 38em; }

.nav-toggle { display: none; align-items: center; gap: 0.6rem; background: transparent; color: #E9E8DD; border: 1px solid #5B6A60; padding: 0.5rem 0.85rem; font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.site-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.6rem; }
.site-nav-list a {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #E2E1D5;
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
}
.site-nav-list a:hover, .site-nav-list a:focus-visible { color: #FFFFFF; border-bottom-color: var(--stamp); }
.site-nav-list a.is-active, .site-nav-list .current-menu-item > a { color: #A9AC98; border-bottom-color: var(--teal-light); }

/* ---------- Общие элементы секций ---------- */
.sec-head { border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; padding-bottom: 0.35rem; position: relative; }
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; border-bottom: 1px solid rgba(138,139,119,.45); }
.sec-head--center { text-align: center; }
.sec-title { font-size: clamp(1.65rem, 3.2vw, 2.3rem); text-transform: uppercase; letter-spacing: 0.05em; margin: 0; }
.sec-sub { margin: 0.25rem 0 0; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.sheet-stack { position: relative; isolation: isolate; background: var(--sheet); border: 1px solid var(--sheet-edge); box-shadow: 0 2px 0 rgba(30,35,32,.08), 0 10px 22px rgba(30,35,32,.12); }
.sheet-stack::before, .sheet-stack::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sheet-2); border: 1px solid var(--sheet-edge); }
.sheet-stack::before { transform: rotate(-1.4deg) translate(-4px, 5px); }
.sheet-stack::after { transform: rotate(1deg) translate(6px, 3px); background: #DEDDD1; }

.stamp {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stamp);
    border: 3px solid var(--stamp);
    outline: 1.5px solid var(--stamp);
    outline-offset: 3px;
    padding: 0.15rem 0.7rem;
    line-height: 1.25;
    opacity: 0.86;
    background: rgba(178,58,46,.04);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
}

.front { padding: 2.6rem 0 3.2rem; }
.fs { margin-bottom: 3.6rem; }
.fs:last-child { margin-bottom: 0; }

/* ---------- Блок 1: чек-лист ---------- */
.fs-check { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; align-items: center; padding-top: 0.4rem; }
.check-sheet { padding: 1.8rem 1.6rem 2.2rem; }
.check-title { font-size: clamp(1.9rem, 4vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.06; margin-bottom: 0.5rem; }
.check-lead { font-size: 0.93rem; color: var(--muted); margin-bottom: 0.8rem; max-width: 34em; }
.check-list { list-style: none; counter-reset: chk; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li {
    counter-increment: chk;
    display: grid;
    grid-template-columns: 1.8rem 1.35rem minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem 0.2rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    background-image: linear-gradient(transparent calc(100% - 1px), rgba(138,139,119,.18) 0);
}
.check-list li::before { content: counter(chk) "."; font-family: var(--f-head); font-size: 1.15rem; color: var(--muted); line-height: 1.3; }
.check-box { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--ink); background: #F1F0E8; margin-top: 0.15rem; position: relative; }
.check-list li[aria-checked="true"] .check-box::after { content: ""; position: absolute; left: 0.32rem; top: -0.12rem; width: 0.45rem; height: 0.95rem; border: solid var(--stamp); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.check-list li[aria-checked="true"] .check-text b { text-decoration: line-through; text-decoration-color: var(--stamp); }
.check-text { min-width: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.45; }
.check-text b { display: block; font-family: var(--f-body); font-weight: 400; font-size: 1.12rem; color: var(--ink); margin-bottom: 0.1rem; }
.check-stamp { position: absolute; right: 1.2rem; bottom: 0.9rem; font-size: 1.55rem; transform: rotate(-11deg); pointer-events: none; }

.photo-stack { margin: 0; position: relative; isolation: isolate; padding: 12px; background: #EEEDE4; border: 1px solid var(--sheet-edge); box-shadow: 0 12px 26px rgba(30,35,32,.22); transform: rotate(0.6deg); }
.photo-stack::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #E2E1D6; border: 1px solid var(--sheet-edge); transform: rotate(-2.2deg) translate(-6px, 4px); }
.photo-stack img { width: 100%; aspect-ratio: 912 / 639; object-fit: cover; }

/* ---------- Блок 2: вопросы продавцу ---------- */
.talk { display: flex; flex-direction: column; gap: 1.6rem; max-width: 1020px; margin: 0 auto; }
.talk-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.6rem; align-items: center; }
.talk-label { display: block; font-family: var(--f-narrow); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.15rem; opacity: 0.8; }
.talk-q { margin: 0; border-left: 3px solid var(--line); padding-left: 0.8rem; font-size: 1.08rem; line-height: 1.4; padding: 0.4rem 0; min-width: 0; }
.talk-q .talk-label { color: var(--muted); }
.talk-a {
    margin: 0;
    min-width: 0;
    background: var(--teal);
    color: #EEF0E8;
    font-size: 1.04rem;
    line-height: 1.4;
    padding: 0.85rem 2.6rem 0.9rem 1.15rem;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%);
    box-shadow: 0 6px 12px rgba(30,35,32,.18);
}
.talk-a .talk-label { color: #BCD6D6; }
.talk-arrow { display: none; width: 90px; height: 24px; justify-self: center; fill: none; stroke: #3A3F38; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }

/* ---------- Последние записи ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem 1.9rem; }
.cards--front > .card:nth-child(n+4) { display: none; }
.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--sheet);
    border: 1px solid var(--sheet-edge);
    border-left: 9px solid #7E7F6B;
    box-shadow: 0 8px 18px rgba(30,35,32,.14);
    transition: transform .15s ease, box-shadow .15s ease;
}
.card::before { content: ""; position: absolute; inset: 0 -1px -1px -9px; z-index: -1; background: var(--sheet-2); border: 1px solid var(--sheet-edge); transform: rotate(1.3deg) translate(5px, 4px); }
.card::after { content: ""; position: absolute; top: -1px; right: -1px; width: 30px; height: 30px; background: linear-gradient(225deg, var(--paper) 50%, #CBCABA 50%, #B9B8A6 100%); box-shadow: -2px 2px 3px rgba(30,35,32,.12); }
.card:hover { transform: translate(-2px, -3px); box-shadow: 4px 12px 0 rgba(30,35,32,.12); }
.card-tab { position: absolute; left: -22px; top: 12px; width: 22px; height: 64px; background: var(--stamp); box-shadow: -2px 2px 0 rgba(30,35,32,.2); }
.card:nth-child(3n+2) .card-tab { background: var(--teal); }
.card:nth-child(3n+3) .card-tab { background: var(--tab-green); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.3rem 1.3rem 1.2rem; min-width: 0; }
.card-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); line-height: 1.08; text-transform: uppercase; letter-spacing: 0.035em; margin-bottom: 0.55rem; padding-right: 1.2rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--stamp); }
.card-excerpt { font-size: 0.97rem; line-height: 1.45; color: #2E332F; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.9rem; }
.card-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; min-width: 0; }
.card-date { font-size: 0.86rem; color: var(--muted); letter-spacing: 0.04em; }
.card-thumb { flex: 0 0 46%; display: block; border: 1px solid var(--sheet-edge); padding: 3px; background: #F1F0E8; box-shadow: 1px 2px 0 rgba(30,35,32,.12); transform: rotate(1.2deg); }
.card-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.latest-more { margin: 2.2rem 0 0; text-align: center; }
.empty-note { background: var(--sheet); border: 1px dashed var(--line); padding: 1.4rem 1.6rem; }

/* ---------- Блок 3: схема сделки ---------- */
.route { list-style: none; margin: 0; padding: 0.4rem 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.route-step { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 1rem; }
.route-step:not(:last-child)::after { content: ""; position: absolute; left: 55px; top: 112px; height: 1.4rem; border-left: 2px dashed var(--line); }
.route-seal {
    width: 112px;
    aspect-ratio: 1;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.6rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.12;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
    border: 3px solid var(--stamp);
    box-shadow: inset 0 0 0 4px rgba(201,199,184,.9), inset 0 0 0 5.5px var(--stamp);
    background: radial-gradient(circle, rgba(228,227,216,.55) 0 55%, rgba(178,58,46,.06) 100%);
    transform: rotate(-4deg);
    hyphens: manual;
}
.route-step:nth-child(even) .route-seal { transform: rotate(3deg); }
.route-seal i { font-style: normal; font-size: 1.45rem; color: var(--stamp); line-height: 1; margin-bottom: 0.2rem; }
.route-seal i::after { content: "."; }
.route-note { font-size: 0.95rem; color: #3A3F38; line-height: 1.35; }

/* ---------- Блок 4: памятка собственника ---------- */
.memo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; margin-bottom: 0; }
.memo-tabs { display: flex; gap: 0.35rem; margin-bottom: -0.4rem; }
.memo-tabs i { display: block; width: 58px; height: 22px; background: var(--stamp); border-radius: 4px 4px 0 0; box-shadow: inset 0 -3px 0 rgba(0,0,0,.12); }
.memo-tabs i:nth-child(2) { background: var(--tab-green); }
.memo-tabs i:nth-child(3) { background: var(--teal); }
.memo-book {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--cover);
    border: 1px solid #7C7B68;
    border-radius: 3px 3px 8px 8px;
    padding: 12px;
    box-shadow: 0 14px 28px rgba(30,35,32,.22), inset 0 0 0 1px rgba(255,255,255,.12);
}
.memo-book::after { content: ""; position: absolute; right: -14px; top: 20px; width: 14px; height: 70px; background: var(--teal); border-radius: 0 3px 3px 0; }
.memo-page {
    min-width: 0;
    background-color: #DADBCF;
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(138,139,119,.28) 31px 32px);
    padding: 1.5rem 1.5rem 1.4rem;
}
.memo-page--left { box-shadow: inset -14px 0 18px -14px rgba(30,35,32,.35); }
.memo-page--right { box-shadow: inset 14px 0 18px -14px rgba(30,35,32,.35); }
.memo-title { font-size: 1.12rem; text-transform: uppercase; letter-spacing: 0.06em; text-align: center; border-bottom: 1.5px solid var(--ink); padding-bottom: 0.3rem; margin-bottom: 0.9rem; }
.memo-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: rgba(240,240,232,.55); }
.memo-table th, .memo-table td { border: 1px solid var(--line); padding: 0.45rem 0.55rem; text-align: left; vertical-align: top; }
.memo-table th { font-family: var(--f-narrow); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.memo-table td:first-child { font-weight: 700; }
.memo-table td:last-child, .memo-table th:last-child { text-align: center; width: 4.6rem; }
.mini-box { display: inline-block; width: 1rem; height: 1rem; border: 1.5px solid var(--ink); background: #F1F0E8; vertical-align: middle; }
.memo-ribbon { display: none; }
.memo-list { list-style: none; margin: 0; padding: 0; }
.memo-list li { position: relative; padding: 0.42rem 0 0.42rem 1.3rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.35; }
.memo-list li::before { content: ""; position: absolute; left: 0.1rem; top: 0.82rem; width: 0.55rem; height: 0.55rem; background: var(--teal); }
.memo-list li:nth-child(3n+2)::before { background: var(--stamp); }
.memo-list li:nth-child(3n+3)::before { background: var(--tab-green); }
.memo-sign { margin: 1rem 0 0; text-align: right; font-family: var(--f-hand); font-weight: 600; font-size: 1.65rem; line-height: 1.1; color: #2E332F; transform: rotate(-2deg); }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.4rem; }
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 1.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--teal); }
.crumbs-sep { margin: 0 0.3rem; color: var(--line); }
.crumbs-current { color: var(--ink); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.layout-single { display: block; }
.layout-single .content-area { margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); padding-bottom: 0.5rem; }
.page-title { font-size: clamp(1.9rem, 4vw, 2.7rem); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3rem; }
.page-lead { color: var(--muted); margin: 0; }
.cards--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }

.doc { background: var(--sheet); border: 1px solid var(--sheet-edge); border-left: 8px solid var(--teal); padding: 1.6rem 1.4rem 1.8rem; box-shadow: 0 10px 22px rgba(30,35,32,.12); position: relative; }
.doc::after { content: ""; position: absolute; top: -1px; right: -1px; width: 34px; height: 34px; background: linear-gradient(225deg, var(--paper) 50%, #CBCABA 50%, #B9B8A6 100%); }
.doc-head { border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; padding-bottom: 0.7rem; }
.doc-title { font-size: clamp(1.8rem, 3.8vw, 2.5rem); text-transform: uppercase; letter-spacing: 0.035em; line-height: 1.08; padding-right: 1.6rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.88rem; color: var(--muted); }
.doc-cats a { margin-right: 0.6rem; }
.doc-cover { margin: 0 0 1.4rem; border: 1px solid var(--sheet-edge); padding: 6px; background: #F1F0E8; }
.doc-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.doc-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; }
.doc-tags a { text-decoration: none; border: 1px solid var(--line); padding: 0.15rem 0.55rem; background: #EEEDE4; }

.entry > *:last-child { margin-bottom: 0; }
.entry h2 { font-size: 1.65rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 1.8em; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.entry h3 { font-size: 1.3rem; margin-top: 1.5em; }
.entry h4 { font-size: 1.1rem; margin-top: 1.3em; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.entry li { margin-bottom: 0.35em; }
.entry ul li::marker { color: var(--stamp); }
.entry ol li::marker { color: var(--teal); font-family: var(--f-head); }
.entry blockquote { margin: 1.4em 0; padding: 1rem 1.3rem 1rem 1.4rem; background: #D3D2C4; border-left: 5px solid var(--stamp); font-size: 1.08rem; }
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; background: #EEEDE4; border: 1px solid var(--line); }
.entry th, .entry td { border: 1px solid var(--line); padding: 0.5rem 0.65rem; text-align: left; vertical-align: top; }
.entry th { background: var(--sheet-2); font-family: var(--f-narrow); font-weight: 700; }
.entry img { margin: 1em 0; }
.entry figure { margin: 1.2em 0; }
.entry figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 0.4rem; }
.entry pre { overflow-x: auto; background: #D3D2C4; padding: 1rem; font-size: 0.9rem; }
.entry hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.alignleft { float: left; margin: 0.3em 1.2em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }

.doc-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 1.8rem; }
.doc-nav-link { display: block; background: var(--sheet); border: 1px solid var(--sheet-edge); padding: 0.9rem 1.1rem; text-decoration: none; color: var(--ink); font-family: var(--f-head); font-size: 1.05rem; letter-spacing: 0.03em; }
.doc-nav-link span { display: block; font-family: var(--f-body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.2rem; }
.doc-nav-link:hover { border-color: var(--teal); color: var(--teal); }
.doc-nav-link--next { text-align: right; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar { min-width: 0; align-self: start; background: #D7D6C8; border: 1px solid var(--sheet-edge); border-top: 5px solid var(--teal); padding: 1.4rem 1.3rem; color: var(--ink); }
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; margin-bottom: 0.8rem; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.5rem 0 0.5rem 1rem; border-bottom: 1px dashed var(--line); position: relative; line-height: 1.35; }
.sidebar li::before { content: ""; position: absolute; left: 0; top: 0.95rem; width: 6px; height: 6px; background: var(--stamp); }
.sidebar a { color: var(--teal); }
.sidebar a:hover { color: var(--stamp); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: var(--muted); font-size: 0.82rem; }
.sidebar p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem; align-items: center; }
.pager .page-numbers, .pager > a, .pager > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    font-family: var(--f-head);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--ink);
    background: #ECEBE2;
    border: 1px solid var(--ink);
    box-shadow: inset 0 0 0 2px #ECEBE2, inset 0 0 0 3px var(--ink);
}
.pager a.page-numbers:hover, .pager > a:hover { background: var(--teal); color: #EEF0E8; box-shadow: inset 0 0 0 2px var(--teal), inset 0 0 0 3px #EEF0E8; }
.pager .page-numbers.current { background: var(--head); color: #E9E8DD; box-shadow: inset 0 0 0 2px var(--head), inset 0 0 0 3px #E9E8DD; }
.pager .page-numbers.dots { border: 0; background: none; box-shadow: none; min-width: auto; padding: 0 0.2rem; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.search-field { flex: 1 1 220px; min-width: 0; font: inherit; font-size: 1rem; padding: 0.6rem 0.8rem; color: var(--ink); background: #F1F0E8; border: 1px solid var(--line); border-radius: 0; }
.search-field:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 2px rgba(47,93,98,.25); }

/* ---------- 404 ---------- */
.lost { padding: 2.4rem 1.8rem; max-width: 760px; margin: 1rem auto 0; }
.lost-code { font-family: var(--f-head); font-weight: 600; font-size: clamp(4rem, 12vw, 7rem); line-height: 1; color: var(--teal); margin: 0 0 0.3rem; letter-spacing: 0.05em; }
.lost-stamp { position: absolute; right: 1.4rem; top: 1.6rem; transform: rotate(9deg); font-size: 1.3rem; }

/* ---------- Комментарии ---------- */
.notes { margin-top: 2.2rem; background: var(--sheet); border: 1px solid var(--sheet-edge); padding: 1.5rem 1.4rem; }
.notes-title, .comment-reply-title { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.4rem; border-left: 2px solid var(--line); margin-left: 0.4rem; }
.note-body { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.note-meta { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 0.5rem; font-size: 0.88rem; color: var(--muted); }
.note-meta img { border-radius: 0; border: 1px solid var(--line); }
.note-author { color: var(--ink); font-size: 1rem; }
.note-wait { color: var(--stamp); font-size: 0.9rem; }
.note-reply a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-form label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.25rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 0.6rem 0.75rem; background: #F1F0E8; border: 1px solid var(--line); color: var(--ink); border-radius: 0; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-form .submit { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; padding: 0.65rem 1.3rem; background: var(--head); color: #E9E8DD; border: 1px solid var(--head); box-shadow: inset 0 0 0 2px var(--head), inset 0 0 0 3px #E9E8DD; cursor: pointer; }
.comment-form .submit:hover { background: var(--teal); box-shadow: inset 0 0 0 2px var(--teal), inset 0 0 0 3px #E9E8DD; }

/* ---------- Подвал ---------- */
.colophon { background: var(--foot); color: var(--foot-text); padding: 2.8rem 0 1.4rem; border-top: 5px solid #131A17; font-size: 0.95rem; }
.colophon-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.colophon .widget { margin-bottom: 1.2rem; }
.colophon .widget-title { color: var(--foot-head); font-size: 1.35rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.colophon p, .colophon .textwidget { color: var(--foot-text); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: 0.15rem 0; }
.colophon a { color: #D7D9CB; text-decoration-color: var(--teal-light); }
.colophon a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.colophon-copy { margin: 1.8rem 0 0; padding-top: 1rem; border-top: 1px solid #34413A; text-align: center; font-size: 0.85rem; color: #9DA293; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(92%, 760px);
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    flex-wrap: wrap;
    background: var(--head);
    color: #E2E1D5;
    padding: 1rem 1.3rem;
    border: 1px solid #5B6A60;
    box-shadow: inset 0 0 0 3px var(--head), inset 0 0 0 4px #5B6A60, 0 12px 26px rgba(0,0,0,.35);
}
.cookie-text { margin: 0; flex: 1 1 300px; font-size: 0.92rem; line-height: 1.45; min-width: 0; }

/* ---------- Адаптив: планшет ---------- */
@media (min-width: 600px) {
    .check-sheet { padding: 2rem 2.1rem 2.4rem; }
    .talk-row { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); gap: 1rem; }
    .talk-arrow { display: block; transform: none; }
    .talk-q { border-left: 0; padding-left: 0; }
    .doc { padding: 2.2rem 2.4rem 2.4rem; }
    .doc-nav { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .doc-nav-link--next { grid-column: 2; }
    .colophon-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .memo-book { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .memo-ribbon { display: block; position: absolute; left: calc(50% - 9px); top: -6px; width: 18px; height: 62%; background: var(--teal); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 88%, 0 100%); transform: rotate(4deg); transform-origin: top center; box-shadow: 0 2px 4px rgba(0,0,0,.2); z-index: 2; }
}
@media (max-width: 599px) {
    .front { padding-top: 1.8rem; }
    .fs { margin-bottom: 2.8rem; }
    .check-stamp { position: static; display: inline-block; margin-top: 1rem; font-size: 1.25rem; }
    .card-foot { flex-direction: column-reverse; align-items: stretch; }
    .card-thumb { flex: none; width: 100%; transform: none; }
    .card-thumb img { aspect-ratio: 16 / 9; }
    .memo-page { padding: 1.2rem 1rem; }
    .memo-table { font-size: 0.84rem; }
    .memo-table th, .memo-table td { padding: 0.4rem 0.4rem; }
    .lost { padding: 2rem 1.2rem; }
    .lost-stamp { right: 0.8rem; top: 1rem; font-size: 1rem; }
    .cookie-banner { bottom: 0.5rem; padding: 0.9rem 1rem; }
}

/* ---------- Адаптив: десктоп ---------- */
@media (min-width: 960px) {
    .fs-check { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 3rem; }
    .cards--front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .route { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
    .route-step { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 0.8rem; }
    .route-step:not(:last-child)::after { left: calc(50% + 66px); right: calc(-50% + 58px); top: 66px; height: 0; border-left: 0; border-top: 2px dashed var(--line); }
    .route-seal { width: 132px; font-size: 0.95rem; }
    .route-note { max-width: 13em; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 0 6%; }
    .layout-single .content-area { width: 85%; }
}
@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; width: 100%; }
    .site-nav.is-open { display: block; }
    .site-nav-list { flex-direction: column; gap: 0; border-top: 1px solid #3C4A42; padding-top: 0.4rem; }
    .site-nav-list a { display: block; padding: 0.65rem 0; border-bottom: 1px solid #33413A; }
    .brand { flex-basis: 0; flex-grow: 1; }
}
@media (min-width: 600px) and (max-width: 959px) {
    .cards--front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
