/*
Theme Name: dds_aikokuseigijuku.com
Theme URI: https://aikokuseigijuku.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: bezrisk
*/

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

/* ===== Палитра ===== */
:root {
    --olive: #2E3327;
    --mm-grid: #3A4032;
    --tracing: #E8E4D4;
    --tracing-line: #9AA8B8;
    --dark-sec: #23271E;
    --sand: #D9D2BE;
    --envelope: #C9BFA6;
    --near-black: #1B1E17;
    --cardboard: #B9AE94;
    --ink: #15170F;
    --cream: #EDE7D3;
    --muted-light: #6E6A58;
    --muted-dark: #9B9A85;
    --stamp-red: #C33A2B;
    --marker: #E8D24A;
    --pen-blue: #2F4C7A;
    --rule: #6B6552;
    --rule-dark: #4A4F3D;
    --sheet: #EEEADB;
    --tape: rgba(226, 218, 186, .78);

    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-mono: "PT Mono", "Courier New", "Liberation Mono", monospace;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;

    --worn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='70'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.25 0 0 0 1.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --clip-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 64'%3E%3Cpath d='M8 20V8a5 5 0 0 1 10 0v40a8 8 0 0 1-16 0V14' fill='none' stroke='%23A9ADA4' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M8 20V8a5 5 0 0 1 10 0v40a8 8 0 0 1-16 0V14' fill='none' stroke='%23E6E8E2' stroke-width='1' stroke-linecap='round' transform='translate(-.6 -.4)'/%3E%3C/svg%3E");
    --check-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M6 21c4 3 7 7 9 12C20 20 27 10 37 2' fill='none' stroke='%23C33A2B' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ===== Сброс и база ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--olive);
    background-image:
        linear-gradient(rgba(58, 64, 50, .9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 64, 50, .9) 1px, transparent 1px),
        linear-gradient(rgba(58, 64, 50, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(58, 64, 50, .45) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    color: var(--cream);
    font-family: var(--f-mono);
    font-size: 16px;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 0 0 .6em; }
p, li, h1, h2, h3, h4, h5, h6, td, th, blockquote, figcaption, dd, dt { overflow-wrap: break-word; hyphens: auto; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px dashed var(--marker); outline-offset: 3px; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-to {
    position: absolute; left: 1rem; top: -60px; z-index: 100;
    background: var(--marker); color: var(--ink); padding: .5rem 1rem; font-weight: 700; text-decoration: none;
}
.skip-to:focus { top: 1rem; }

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

/* ===== Шапка (корешок папки) ===== */
.spine {
    background: var(--near-black);
    border-bottom: 3px solid #0F110C;
    padding: 1.4rem 0 1.5rem;
    position: relative;
}
.spine__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}
.spine__brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
    color: var(--cream);
    flex: 1 1 520px;
    min-width: 0;
}
.spine__seal { flex: 0 0 auto; width: 96px; }
.spine__seal .seal-svg { width: 96px; height: 96px; transform: rotate(-8deg); display: block; }
.spine__seal .brand-logo { width: 96px; height: auto; }
.spine__text { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.spine__name {
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.15rem, 1.1rem + .8vw, 1.75rem);
    line-height: 1.12;
    letter-spacing: .01em;
    color: var(--cream);
}
.spine__desc {
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted-dark);
    max-width: 60ch;
}
.spine__brand:hover .spine__name { color: var(--marker); }

.sticker-nav {
    position: relative;
    background: var(--marker);
    padding: 1rem 1.4rem .9rem;
    transform: rotate(-1.4deg);
    box-shadow: 3px 4px 0 rgba(0, 0, 0, .35);
    flex: 0 1 auto;
}
.sticker-nav::before {
    content: "";
    position: absolute;
    top: -11px; left: 50%;
    width: 90px; height: 22px;
    margin-left: -45px;
    background: var(--tape);
    transform: rotate(3deg);
}
.sticker-nav__list {
    list-style: none;
    margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: .35rem 1.4rem;
}
.sticker-nav__list a {
    color: var(--ink);
    font-size: .95rem;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    display: inline-block;
    padding: .1rem 0;
}
.sticker-nav__list a:hover,
.sticker-nav__list .current-menu-item > a { color: var(--stamp-red); text-decoration-style: wavy; }
.spine__toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: var(--marker);
    color: var(--ink);
    border: 0;
    padding: .55rem .9rem;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
}
.spine__toggle-bars, .spine__toggle-bars::before, .spine__toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
}
.spine__toggle-bars::before, .spine__toggle-bars::after { content: ""; position: absolute; left: 0; }
.spine__toggle-bars::before { top: -6px; }
.spine__toggle-bars::after { top: 6px; }

/* ===== Общие элементы ===== */
.tab-label {
    display: inline-block;
    position: relative;
    background: var(--marker);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.45rem, 1rem + 2.2vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: .005em;
    padding: .55rem 1.6rem .5rem 1.3rem;
    margin: 0 0 1.6rem -2.6rem;
    transform: rotate(-1deg) skewX(-3deg);
    clip-path: polygon(0 4%, 98% 0, 100% 48%, 99% 100%, 1% 96%);
    max-width: calc(100% + 2.6rem);
}

.stamp-btn {
    display: inline-block;
    position: relative;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 1rem;
    line-height: 1.1;
    color: var(--stamp-red);
    background: transparent;
    border: 2.5px solid var(--stamp-red);
    outline: 1px solid rgba(195, 58, 43, .6);
    outline-offset: 2px;
    padding: .45rem .8rem .4rem;
    text-decoration: none;
    transform: rotate(-2.5deg);
    -webkit-mask-image: var(--worn);
    mask-image: var(--worn);
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.stamp-btn:hover, .stamp-btn:focus-visible {
    background: var(--stamp-red);
    color: var(--cream);
    transform: rotate(0deg) translateY(-1px);
}
.stamp-btn:active { transform: rotate(0deg) translateY(1px); }

.pen-link {
    color: var(--pen-blue);
    text-decoration: underline;
    text-decoration-color: var(--pen-blue);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 4px;
}
.pen-link::after { content: " ✓"; font-weight: 700; }
.pen-link:hover { color: var(--stamp-red); text-decoration-style: wavy; }

.empty-note { font-size: 1rem; margin: 0; }

/* ===== Главная ===== */
.front-wrap {
    width: 85%;
    margin: 1.8rem auto 2.4rem;
    display: block;
}
.fs {
    position: relative;
    isolation: isolate;
    padding: 2.6rem 2.6rem 2.8rem;
    margin-bottom: 1.4rem;
}
.fs::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    clip-path: polygon(0 1.2%, 4% .2%, 9% 1%, 15% 0, 22% .9%, 30% .1%, 38% 1.1%, 47% .3%, 55% 1%, 63% 0, 72% .8%, 80% .2%, 88% 1%, 95% .1%, 100% .9%, 100% 99%, 96% 99.8%, 90% 99.1%, 83% 100%, 75% 99.2%, 67% 99.9%, 58% 99%, 49% 99.8%, 41% 99.1%, 33% 100%, 25% 99.3%, 17% 99.9%, 9% 99.1%, 3% 99.8%, 0 99.2%);
}
.fs > * { position: relative; }

/* Блок 1 — бланк досмотра на кальке */
.fs-check { color: var(--ink); }
.fs-check::before {
    background-color: var(--tracing);
    background-image:
        linear-gradient(rgba(154, 168, 184, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 168, 184, .55) 1px, transparent 1px),
        radial-gradient(ellipse at 85% 10%, rgba(201, 191, 166, .55), transparent 55%),
        radial-gradient(ellipse at 10% 95%, rgba(201, 191, 166, .45), transparent 50%);
    background-size: 24px 24px, 24px 24px, 100% 100%, 100% 100%;
}
.fs-check__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}
.fs-check__form { min-width: 0; }
.fs-check__lead { font-size: .9rem; color: var(--muted-light); margin-bottom: 1.1rem; }
.checklist { list-style: none; margin: 0 0 1.2rem; padding: 0; }
.checklist__item {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-size: clamp(.95rem, .9rem + .3vw, 1.12rem);
    line-height: 1.4;
    padding: .55rem 0;
    border-bottom: 1px dashed rgba(107, 101, 82, .45);
}
.checklist__item:last-child { border-bottom: 0; }
.checklist__box {
    flex: 0 0 30px;
    width: 30px; height: 30px;
    border: 2.5px solid var(--ink);
    position: relative;
    background: rgba(255, 255, 255, .35);
}
.checklist__item.is-done .checklist__box::after {
    content: "";
    position: absolute;
    left: -2px; top: -12px;
    width: 38px; height: 38px;
    background: var(--check-red) no-repeat center / contain;
}
.checklist__num { font-weight: 700; margin-right: -.4rem; }
.fs-check__note {
    font-family: var(--f-hand);
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--pen-blue);
    margin: 0;
    transform: rotate(-1deg);
}

.evidence-photo {
    position: relative;
    margin: 0;
    padding: 14px 14px 30px;
    background: #F4F1E6;
    transform: rotate(-2.2deg);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 2px 3px 0 rgba(107, 101, 82, .35);
    min-width: 0;
}
.evidence-photo img { width: 100%; aspect-ratio: 808 / 556; object-fit: cover; }
.evidence-photo__tape {
    position: absolute; top: -14px; left: 30%;
    width: 130px; height: 30px; z-index: 2;
    background: var(--tape);
    transform: rotate(-3deg);
}
.evidence-photo__clip {
    position: absolute; top: -24px; right: 26px; z-index: 2;
    width: 22px; height: 56px;
    background: var(--clip-img) no-repeat center / contain;
}
.evidence-photo__stamp {
    position: absolute;
    right: -5%; bottom: 17%;
    z-index: 3;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 1rem + 2.4vw, 2.9rem);
    letter-spacing: .03em;
    line-height: 1;
    color: var(--stamp-red);
    border: 5px solid var(--stamp-red);
    outline: 2px solid var(--stamp-red);
    outline-offset: 4px;
    padding: .2em .45em .15em;
    transform: rotate(-19deg);
    background: rgba(232, 228, 212, .6);
    -webkit-mask-image: var(--worn);
    mask-image: var(--worn);
    pointer-events: none;
}

/* Блок 2 — схемы мошенников */
.fs-schemes { color: var(--cream); }
.fs-schemes::before {
    background-color: var(--dark-sec);
    background-image:
        repeating-linear-gradient(-45deg, var(--marker) 0 14px, var(--dark-sec) 14px 28px),
        linear-gradient(rgba(74, 79, 61, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 79, 61, .35) 1px, transparent 1px);
    background-size: 100% 8px, 20px 20px, 20px 20px;
    background-repeat: no-repeat, repeat, repeat;
    background-position: 0 100%, 0 0, 0 0;
}
.evidence-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 2.2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    border-left: 2px dashed rgba(232, 210, 74, .55);
}
.evidence {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.6rem;
    align-items: center;
    border: 1px solid var(--rule-dark);
    box-shadow: inset 0 0 0 1px rgba(232, 210, 74, .08);
    padding: 1rem 1.6rem 1rem 0;
    position: relative;
    transition: border-color .15s ease, background-color .15s ease;
}
.evidence:hover { border-color: var(--marker); background: rgba(232, 210, 74, .04); }
.evidence__num {
    align-self: start;
    margin-top: -1rem;
    background: var(--marker);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.7rem;
    line-height: 1;
    padding: .55rem .9rem .5rem;
    min-width: 4.2rem;
    text-align: center;
}
.evidence__text { min-width: 0; }
.evidence__title {
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem);
    letter-spacing: .02em;
    color: var(--cream);
    margin: 0 0 .35rem;
}
.evidence__text p { margin: 0; color: var(--muted-dark); font-size: .95rem; max-width: 60ch; }
.evidence__icon { width: 128px; height: auto; }

/* Блок записей — песочная бумага */
.fs-latest { color: var(--ink); }
.fs-latest::before {
    background-color: var(--sand);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(160, 140, 100, .18), transparent 40%),
        radial-gradient(ellipse at 80% 75%, rgba(160, 140, 100, .2), transparent 45%),
        url("images/tex-sand.jpg");
    background-size: 100% 100%, 100% 100%, 560px auto;
}
.fs-latest::after {
    content: "";
    position: absolute;
    top: 14px; right: 6%;
    width: 120px; height: 28px;
    background: var(--tape);
    transform: rotate(4deg);
    z-index: 0;
}
.fs-latest__more { margin: 1.8rem 0 0; text-align: right; }

/* Карточки */
.cards { display: grid; gap: 2rem; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 961px) {
    .cards--three:has(> .card:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; }
}
.cards--list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--sheet);
    color: var(--ink);
    padding: 14px 14px 0;
    clip-path: polygon(0 0, 100% 0, 100% 98%, 96% 100%, 88% 98.6%, 77% 100%, 64% 98.8%, 52% 100%, 40% 98.7%, 28% 100%, 15% 98.6%, 5% 100%, 0 98.8%);
    transition: transform .15s ease;
    min-width: 0;
}
.cards--three .card:nth-child(2) { transform: rotate(.6deg); }
.cards--three .card:nth-child(3) { transform: rotate(-.5deg); }
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.card__clip {
    position: absolute;
    top: -2px; right: 22px; z-index: 2;
    width: 20px; height: 50px;
    background: var(--clip-img) no-repeat center / contain;
}
.card__thumb { overflow: hidden; }
.card__thumb a { display: block; }
.card__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 740 / 284;
    object-fit: cover;
    filter: saturate(.85) sepia(.12);
    transition: filter .2s ease;
}
.card:hover .card__thumb img { filter: none; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem .6rem 1.6rem;
    min-width: 0;
    background-image: repeating-linear-gradient(transparent 0 27px, rgba(107, 101, 82, .18) 27px 28px);
}
.card__pin {
    align-self: flex-start;
    font-family: var(--f-head);
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .08em;
    background: var(--marker);
    padding: .1rem .5rem;
    margin-bottom: .5rem;
}
.card__title {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 1.08rem;
    line-height: 1.35;
    margin: 0 0 .55rem;
}
.card__title a { text-decoration: none; color: var(--ink); }
.card__title a:hover { color: var(--pen-blue); text-decoration: underline; text-underline-offset: 3px; }
.card-excerpt { font-size: .92rem; line-height: 1.55; color: #2C2C22; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--pen-blue); }
.card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: .9rem;
}
.card__date { font-size: .85rem; color: var(--muted-light); }

/* Блок 3 — разбор договора */
.fs-contract { color: var(--ink); }
.fs-contract::before {
    background-color: var(--envelope);
    background-image:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(107, 101, 82, .45) calc(50% - 1px), rgba(107, 101, 82, .45) calc(50% + 1px), transparent calc(50% + 1px)),
        url("images/tex-envelope.jpg");
    background-size: 100% 100%, 160px auto;
}
.fs-contract__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.contract-sheet {
    position: relative;
    margin: 0;
    transform: rotate(-.8deg);
    min-width: 0;
}
.contract-sheet img { width: 100%; aspect-ratio: 1160 / 532; object-fit: cover; border: 1px solid rgba(21, 23, 15, .4); }
.contract-sheet__tape {
    position: absolute; top: -12px; left: 38%;
    width: 120px; height: 28px; z-index: 2;
    background: var(--tape);
    transform: rotate(-4deg);
}
.margin-notes {
    position: relative;
    background-color: var(--tracing);
    background-image:
        linear-gradient(90deg, transparent 2.6rem, rgba(195, 58, 43, .5) 2.6rem, rgba(195, 58, 43, .5) calc(2.6rem + 1px), transparent calc(2.6rem + 1px)),
        repeating-linear-gradient(transparent 0 33px, rgba(154, 168, 184, .7) 33px 34px);
    padding: 2rem 2rem 1.8rem 3.6rem;
    transform: rotate(.6deg);
    min-width: 0;
}
.margin-notes__clip {
    position: absolute; top: -26px; right: 40px;
    width: 24px; height: 60px;
    background: var(--clip-img) no-repeat center / contain;
}
.margin-notes__hint { font-size: .8rem; color: var(--muted-light); margin-bottom: .6rem; }
.margin-notes__list { list-style: none; margin: 0; padding: 0; counter-reset: note; }
.margin-notes__list li { counter-increment: note; }
.margin-notes__btn {
    display: inline-flex;
    align-items: baseline;
    gap: .4rem;
    position: relative;
    background: none;
    border: 0;
    padding: .15rem .6rem;
    margin: .2rem 0;
    font-family: var(--f-hand);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    line-height: 1.25;
    color: var(--pen-blue);
    cursor: pointer;
    text-align: start;
}
.margin-notes__btn::before { content: counter(note) "."; }
.margin-notes__btn:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.margin-notes__btn.is-open {
    background: linear-gradient(transparent 12%, rgba(232, 210, 74, .85) 12%, rgba(232, 210, 74, .85) 88%, transparent 88%);
}
.margin-notes__btn.is-open::after {
    content: "";
    position: absolute;
    left: -2.6rem; top: 50%;
    width: 2rem; height: 14px;
    margin-top: -7px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M2 9c10-2 20-1 32-1M26 2l9 6-9 6' fill='none' stroke='%23C33A2B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.margin-notes__panel[hidden] { display: none !important; }
.margin-notes__panel {
    font-size: .9rem;
    line-height: 1.6;
    padding: .2rem 0 .6rem 1.4rem;
    max-width: 52ch;
}
.margin-notes__panel p { margin: 0; }

/* Блок 4 — истории арендаторов */
.fs-stories { color: var(--cream); padding-bottom: 3.2rem; }
.fs-stories::before {
    background-color: var(--near-black);
    background-image: radial-gradient(circle at 88% 40%, rgba(195, 58, 43, .14), transparent 30%);
}
.fs-stories__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}
.clipping {
    margin: 0;
    background: #E3DBC2;
    color: var(--ink);
    padding: 2.2rem 2.6rem 1.8rem;
    transform: rotate(-2deg);
    clip-path: polygon(0 6%, 3% 0, 12% 4%, 24% 1%, 38% 5%, 52% 0, 66% 4%, 80% 1%, 92% 5%, 100% 2%, 99% 50%, 100% 96%, 90% 100%, 78% 95%, 63% 100%, 48% 96%, 34% 100%, 20% 95%, 8% 100%, 1% 95%, 2% 50%);
    min-width: 0;
}
.clipping__quote {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: clamp(1.25rem, .9rem + 1.6vw, 2.15rem);
    line-height: 1.3;
    margin: 0 0 .8rem;
}
.clipping__sign { font-size: .95rem; color: #3A372B; }
.round-stamp {
    width: 190px; height: 190px;
    transform: rotate(-14deg);
    -webkit-mask-image: var(--worn);
    mask-image: var(--worn);
    opacity: .95;
}
.fs-stories__after {
    margin: 2rem 0 0;
    max-width: 70ch;
    color: var(--muted-dark);
    font-size: .92rem;
    padding-left: 1rem;
    border-left: 3px solid var(--stamp-red);
}

/* ===== Внутренние страницы ===== */
.page-top { padding-top: 1.6rem; }
.crumbs {
    font-size: .85rem;
    color: var(--muted-dark);
    margin-bottom: 1.4rem;
    line-height: 1.5;
}
.crumbs a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--marker); }
.crumbs a:hover { color: var(--marker); }
.crumbs__sep { color: var(--marker); margin: 0 .2rem; }
.crumbs span:last-child { color: var(--muted-dark); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-bottom: 3rem;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 3rem;
}
.content-area { min-width: 0; }

.list-head { margin-bottom: 1.8rem; }
.list-head__title {
    display: inline-block;
    background: var(--marker);
    color: var(--ink);
    text-transform: uppercase;
    font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
    padding: .45rem 1.3rem .4rem;
    transform: rotate(-1deg) skewX(-3deg);
    margin: 0 0 1rem;
}
.list-head__intro { color: var(--cream); max-width: 70ch; }
.list-head__intro a { color: var(--marker); }

.sheet {
    position: relative;
    background-color: var(--sand);
    background-image: url("images/tex-sand.jpg");
    background-size: 560px auto;
    color: var(--ink);
    padding: 2.6rem 2.6rem 2.4rem;
    margin-bottom: 1.8rem;
}
.sheet__tape {
    position: absolute; top: -12px; left: 40px;
    width: 120px; height: 28px;
    background: var(--tape);
    transform: rotate(-3deg);
}
.sheet__title {
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.7rem);
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .5rem;
    transform: rotate(-.6deg);
}
.sheet__meta { font-size: .85rem; color: var(--muted-light); display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sheet__cat a { color: var(--pen-blue); }
.sheet__cover { margin: 0 0 1.8rem; }
.sheet__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 8px solid var(--sheet); }
.sheet__tags { margin: 1.8rem 0 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.sheet__tags a { color: var(--pen-blue); font-size: .88rem; }
.empty-sheet .empty-note { margin-bottom: 1.2rem; }

/* Текст записи */
.entry { font-size: 1rem; line-height: 1.75; }
.entry > *:first-child { margin-top: 0; }
.entry h2, .entry h3, .entry h4 { text-transform: uppercase; margin: 1.8em 0 .6em; color: var(--ink); }
.entry h2 { font-size: 1.7rem; display: inline-block; background: linear-gradient(transparent 55%, rgba(232, 210, 74, .9) 55%); padding: 0 .3rem; }
.entry h3 { font-size: 1.35rem; }
.entry h4 { font-size: 1.1rem; }
.entry p { margin: 0 0 1.15em; }
.entry a { color: var(--pen-blue); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry a:hover { color: var(--stamp-red); }
.entry ul, .entry ol { padding-left: 1.6rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry ul li::marker { color: var(--stamp-red); }
.entry ol li::marker { color: var(--stamp-red); font-weight: 700; }
.entry blockquote {
    margin: 1.6em 0;
    background: var(--sheet);
    border-left: 6px solid var(--stamp-red);
    padding: 1.2rem 1.6rem;
    font-size: 1.08rem;
    transform: rotate(-.4deg);
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .92rem; background: var(--sheet); }
.entry th, .entry td { border: 1px solid var(--rule); padding: .55rem .75rem; text-align: start; vertical-align: top; }
.entry th { background: var(--marker); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .03em; }
.entry img { border: 6px solid var(--sheet); }
.entry figure { margin: 1.6em 0; }
.entry figcaption { font-size: .82rem; color: var(--muted-light); margin-top: .4rem; }
.entry pre { background: var(--near-black); color: var(--cream); padding: 1rem 1.2rem; overflow-x: auto; font-size: .88rem; }
.entry code { background: rgba(232, 210, 74, .35); padding: 0 .25rem; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 2px dashed var(--rule); margin: 2em 0; }
.entry-pages { margin-top: 1.6rem; }

.post-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.8rem; }
.post-steps__link {
    display: block;
    border: 1px solid var(--rule-dark);
    background: var(--dark-sec);
    color: var(--cream);
    text-decoration: none;
    padding: 1rem 1.2rem;
    font-size: .92rem;
    min-width: 0;
}
.post-steps__link span { display: block; font-family: var(--f-head); text-transform: uppercase; color: var(--marker); font-size: .82rem; letter-spacing: .06em; margin-bottom: .3rem; }
.post-steps__link--next { text-align: end; grid-column: 2; }
.post-steps__link:hover { border-color: var(--marker); }

/* Сайдбар */
.sidebar {
    min-width: 0;
    background-color: var(--tracing);
    background-image:
        linear-gradient(rgba(154, 168, 184, .5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(154, 168, 184, .5) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--ink);
    padding: 2rem 1.6rem 1.6rem;
    position: relative;
}
.sidebar::before {
    content: "";
    position: absolute; top: -12px; left: 50%;
    width: 100px; height: 26px; margin-left: -50px;
    background: var(--tape);
    transform: rotate(2deg);
}
.sidebar .dossier-widget { margin-bottom: 2rem; }
.sidebar .dossier-widget:last-child { margin-bottom: 0; }
.sidebar .dossier-widget__title {
    display: inline-block;
    background: var(--marker);
    color: var(--ink);
    text-transform: uppercase;
    font-size: 1.25rem;
    padding: .3rem .9rem;
    transform: rotate(-1.5deg);
    margin: 0 0 1rem -.4rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(107, 101, 82, .55); font-size: .92rem; line-height: 1.45; color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--pen-blue); text-decoration: underline; text-underline-offset: 3px; }
.sidebar .post-date, .sidebar .wp-block-latest-posts__post-date { display: block; color: var(--muted-light); font-size: .8rem; }
.sidebar p { color: var(--ink); font-size: .92rem; }

/* Поиск */
.find-form { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.find-form__field {
    flex: 1 1 220px;
    min-width: 0;
    border: 2px solid var(--ink);
    background: var(--sheet);
    color: var(--ink);
    padding: .6rem .8rem;
    border-radius: 0;
}
.find-form__field::placeholder { color: var(--muted-light); }
.find-form__btn {
    border: 2px solid var(--ink);
    background: var(--ink);
    color: var(--marker);
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .6rem 1.2rem;
    cursor: pointer;
    border-radius: 0;
}
.find-form__btn:hover { background: var(--stamp-red); border-color: var(--stamp-red); color: var(--cream); }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.4rem 0 0; align-items: center; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: .45rem .8rem;
    border: 2px solid var(--rule-dark);
    background: var(--dark-sec);
    color: var(--cream);
    text-decoration: none;
    font-family: var(--f-head);
    font-size: 1rem;
    line-height: 1;
}
.pager a.page-numbers:hover { border-color: var(--marker); color: var(--marker); }
.pager .page-numbers.current { background: var(--marker); border-color: var(--marker); color: var(--ink); transform: rotate(-3deg); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* Комментарии */
.sheet--comments { background-color: var(--tracing); background-image: repeating-linear-gradient(transparent 0 31px, rgba(154, 168, 184, .55) 31px 32px); }
.comments-title { text-transform: uppercase; font-size: 1.6rem; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-left: 1.6rem; border-left: 2px dashed var(--rule); }
.note-entry { margin-bottom: 1.2rem; }
.note-entry__body { background: var(--sheet); padding: 1rem 1.2rem; border: 1px solid rgba(107, 101, 82, .45); }
.note-entry__head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-entry__head img { border-radius: 50%; width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; font-size: 0; background: var(--envelope); }
.note-entry__author { display: block; font-weight: 700; }
.note-entry__date { font-size: .8rem; color: var(--muted-light); }
.note-entry__moderation { color: var(--stamp-red); font-size: .88rem; }
.note-entry__text p { margin-bottom: .6em; }
.note-entry__reply a { font-family: var(--f-head); text-transform: uppercase; font-size: .85rem; color: var(--pen-blue); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { text-transform: uppercase; font-size: 1.4rem; }
.comment-reply-title small { font-size: .8rem; margin-left: .8rem; }
.comment-reply-title small a { color: var(--stamp-red); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .88rem; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    border: 2px solid var(--ink);
    background: #F7F4EA;
    color: var(--ink);
    padding: .55rem .7rem;
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { font-size: .85rem; color: var(--muted-light); }
.req { color: var(--stamp-red); }
.stamp-btn--submit { -webkit-mask-image: none; mask-image: none; font-size: 1.1rem; padding: .6rem 1.2rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }
.comment-navigation a { color: var(--pen-blue); }

/* 404 */
.lost-file { text-align: center; padding-top: 3rem; overflow: hidden; }
.lost-file__code {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(5rem, 3rem + 10vw, 10rem);
    line-height: .9;
    margin: 0;
    color: var(--ink);
    transform: rotate(-2deg);
}
.lost-file__stamp {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.4rem;
    color: var(--stamp-red);
    border: 4px solid var(--stamp-red);
    padding: .2rem .8rem;
    transform: rotate(-8deg);
    margin: -1rem 0 1.6rem;
    -webkit-mask-image: var(--worn);
    mask-image: var(--worn);
}
.lost-file .find-form { max-width: 520px; margin-inline: auto; }

/* ===== Подвал ===== */
.cardboard {
    background-color: var(--cardboard);
    background-image:
        radial-gradient(ellipse at 15% 20%, rgba(255, 255, 255, .12), transparent 40%),
        repeating-linear-gradient(90deg, rgba(107, 101, 82, .06) 0 2px, transparent 2px 7px);
    color: var(--ink);
    padding: 2.8rem 0 1.4rem;
}
.cardboard__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cardboard__col { padding: 0 2rem; min-width: 0; }
.cardboard__col + .cardboard__col { border-left: 1px solid var(--rule); }
.cardboard__col:first-child { padding-left: 0; }
.cardboard__col:last-child { padding-right: 0; }
.cardboard .dossier-widget { margin-bottom: 1.4rem; color: var(--ink); }
.cardboard .dossier-widget__title {
    font-family: var(--f-head);
    text-transform: uppercase;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: .8rem;
}
.cardboard p, .cardboard .textwidget { color: var(--ink); font-size: .9rem; line-height: 1.6; }
.cardboard ul { list-style: none; margin: 0; padding: 0; }
.cardboard li { margin-bottom: .45rem; font-size: .9rem; color: var(--ink); }
.cardboard li a {
    color: var(--pen-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cardboard li a::before { content: "✓ "; font-weight: 700; text-decoration: none; display: inline-block; margin-right: .2rem; }
.cardboard li a:hover { color: var(--stamp-red); }
.cardboard a { color: var(--pen-blue); }
.cardboard__copy {
    border-top: 1px solid var(--rule);
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    text-align: center;
}
.cardboard__copy p { margin: 0; font-size: .85rem; color: var(--ink); }

/* ===== Cookie-баннер ===== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    max-width: 760px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--near-black);
    color: var(--cream);
    border-top: 6px solid var(--marker);
    box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
    padding: 1rem 1.4rem;
}
.cookie-banner__text { margin: 0; font-size: .86rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-banner__btn {
    flex: 0 0 auto;
    background: var(--marker);
    color: var(--ink);
    border: 0;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    padding: .6rem 1.3rem;
    cursor: pointer;
}
.cookie-banner__btn:hover { background: var(--stamp-red); color: var(--cream); }

/* WordPress-классы */
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .82rem; color: var(--muted-light); }
.bypostauthor > .note-entry__body { border-left: 4px solid var(--marker); }

/* ===== Адаптив ===== */
@media (max-width: 960px) {
    .front-wrap { width: 92%; }
    .fs { padding: 2.2rem 2rem 2.4rem; }
    .tab-label { margin-left: -2rem; max-width: calc(100% + 2rem); }
    .fs-check__grid, .fs-contract__grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .evidence-photo { max-width: 560px; justify-self: center; width: 100%; }
    .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single { width: 100%; }
    .cardboard__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 1.6rem; }
    .cardboard__col:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 1.4rem; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .spine { padding: 1rem 0; }
    .spine__inner { gap: 1rem; }
    .spine__brand { flex-basis: 100%; gap: .8rem; }
    .spine__seal, .spine__seal .seal-svg { width: 64px; height: 64px; }
    .spine__desc { font-size: .74rem; }
    .spine__toggle { display: inline-flex; }
    .sticker-nav { display: none; width: 100%; transform: none; }
    .sticker-nav.is-open { display: block; }
    .sticker-nav__list { grid-template-columns: minmax(0, 1fr); }
    .front-wrap { width: 94%; }
    .fs { padding: 1.8rem 1.3rem 2rem; }
    .tab-label { margin-left: -1.3rem; max-width: calc(100% + 1.3rem); padding: .45rem 1rem .4rem; }
    .evidence-list { padding-left: 0; border-left: 0; }
    .evidence { grid-template-columns: auto minmax(0, 1fr); padding: 1rem 1.1rem 1.1rem 0; gap: 1rem; }
    .evidence__icon { grid-column: 2; width: 96px; }
    .evidence__num { font-size: 1.3rem; min-width: 3.2rem; padding: .45rem .6rem; }
    .cards--three { grid-template-columns: minmax(0, 1fr); }
    .cards--three .card:nth-child(n) { transform: none; }
    .margin-notes { padding: 1.6rem 1.2rem 1.4rem 2.8rem; transform: none; }
    .margin-notes__btn.is-open::after { left: -2.2rem; width: 1.7rem; }
    .fs-stories__row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .clipping { padding: 1.8rem 1.4rem 1.5rem; }
    .round-stamp { width: 140px; height: 140px; }
    .evidence-photo__stamp { right: 2%; }
    .sheet { padding: 2rem 1.3rem 1.8rem; }
    .post-steps { grid-template-columns: minmax(0, 1fr); }
    .post-steps__link--next { grid-column: 1; }
    .cardboard__cols { grid-template-columns: minmax(0, 1fr); }
    .cardboard__col, .cardboard__col:first-child, .cardboard__col:last-child { padding: 0; border-left: 0; }
    .cardboard__col + .cardboard__col { border-top: 1px solid var(--rule); border-left: 0; padding-top: 1.4rem; }
    .cardboard__col:nth-child(3) { padding-top: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; left: .5rem; right: .5rem; bottom: .5rem; padding: 1rem 1.1rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
}

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