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

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

/* ---------- Переменные ---------- */
:root {
    --paper: #E8DFC8;
    --sheet: #EFE6CF;
    --card: #FAF7EF;
    --page-white: #F6F4EE;
    --envelope: #D6C39A;
    --navy: #1F3A5F;
    --night: #16283F;
    --ink: #23282E;
    --muted: #7A6E5B;
    --stamp: #C0392B;
    --stamp-dark: #9E2E22;
    --blue: #2C5A8C;
    --line: #B9A98A;
    --side: #DDD1B3;
    --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --font-text: "PT Serif", Georgia, "Times New Roman", serif;
    --font-mono: "IBM Plex Mono", "Courier New", Consolas, monospace;
    --font-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --grid-mm: repeating-linear-gradient(0deg, rgba(185, 169, 138, .28) 0 1px, transparent 1px 10px), repeating-linear-gradient(90deg, rgba(185, 169, 138, .28) 0 1px, transparent 1px 10px), repeating-linear-gradient(0deg, rgba(160, 140, 105, .3) 0 1px, transparent 1px 50px), repeating-linear-gradient(90deg, rgba(160, 140, 105, .3) 0 1px, transparent 1px 50px);
    --torn-card: polygon(0.0% 1.7px, 5.6% 3.8px, 11.1% 2.6px, 16.7% 4.2px, 22.2% 4.4px, 27.8% 0.5px, 33.3% 0.1px, 38.9% 5.9px, 44.4% 1.8px, 50.0% 1.6px, 55.6% 7.0px, 61.1% 3.3px, 66.7% 5.9px, 72.2% 3.3px, 77.8% 4.5px, 83.3% 1.1px, 88.9% 4.4px, 94.4% 6.1px, 100.0% 3.7px, 100.0% calc(100% - 5.2px), 94.4% calc(100% - 4.7px), 88.9% calc(100% - 0.4px), 83.3% calc(100% - 5.3px), 77.8% calc(100% - 4.1px), 72.2% calc(100% - 2.1px), 66.7% calc(100% - 0.2px), 61.1% calc(100% - 6.1px), 55.6% calc(100% - 3.3px), 50.0% calc(100% - 5.0px), 44.4% calc(100% - 6.2px), 38.9% calc(100% - 5.0px), 33.3% calc(100% - 6.4px), 27.8% calc(100% - 2.8px), 22.2% calc(100% - 5.6px), 16.7% calc(100% - 3.1px), 11.1% calc(100% - 6.5px), 5.6% calc(100% - 6.2px), 0.0% calc(100% - 0.7px));
    --torn-top: polygon(0.0% 1.6px, 4.2% 2.6px, 8.3% 11.6px, 12.5% 5.2px, 16.7% 7.5px, 20.8% 3.6px, 25.0% 6.1px, 29.2% 4.6px, 33.3% 4.2px, 37.5% 7.0px, 41.7% 7.0px, 45.8% 10.9px, 50.0% 8.2px, 54.2% 11.1px, 58.3% 10.3px, 62.5% 11.9px, 66.7% 8.1px, 70.8% 2.0px, 75.0% 10.3px, 79.2% 11.6px, 83.3% 10.9px, 87.5% 6.8px, 91.7% 8.6px, 95.8% 2.5px, 100.0% 10.0px, 100% 100%, 0 100%);
}

/* ---------- Элементы под управлением JS ---------- */
.cookie-banner[hidden] { display: none !important; }
.topnav[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.75;
    background-color: var(--paper);
    background-image: var(--grid-mm), url("images/bumaga.jpg");
    background-size: auto, auto, auto, auto, 320px 320px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.site-main { flex: 1 0 auto; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 .6em;
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ink);
}
h1, h2, h3, h4, p, li, td, th, dd, dt, figcaption, blockquote, .card-title, .widget {
    overflow-wrap: break-word;
    hyphens: auto;
}
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--stamp); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px dashed var(--stamp);
    outline-offset: 3px;
}
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .55em .75em; text-align: left; vertical-align: top; }
th { font-family: var(--font-mono); font-size: .82rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: rgba(44, 90, 140, .06); }

.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-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--stamp);
    color: #fff;
    font-family: var(--font-mono);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Общие элементы ---------- */
.graph-label {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 0 0 .6rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue);
}
.graph-label::after {
    content: "";
    flex: 1 1 auto;
    min-width: 2rem;
    height: 1px;
    background: currentColor;
    opacity: .55;
}
.graph-label a { color: inherit; text-decoration: none; }
.graph-num {
    display: inline-block;
    padding: .05rem .45rem;
    border: 1px solid currentColor;
    letter-spacing: .04em;
}
.block-title {
    font-size: clamp(2rem, 4.4vw, 3.3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.02;
}
.block-title-light { color: #fff; }

.btn-label {
    display: inline-block;
    padding: .55rem 1.05rem .5rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--stamp);
    text-decoration: none;
    background: var(--card);
    border: 0;
    box-shadow: inset 0 0 0 2px var(--stamp), inset 0 0 0 4px var(--card), inset 0 0 0 5px var(--stamp);
    clip-path: polygon(2px 0, calc(100% - 3px) 0, 100% 22%, calc(100% - 2px) 45%, 100% 70%, calc(100% - 3px) 100%, 3px 100%, 0 76%, 2px 50%, 0 26%);
    transform: rotate(-1.2deg);
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn-label:hover, .btn-label:focus-visible {
    color: #fff;
    background: var(--stamp);
    box-shadow: inset 0 0 0 2px var(--stamp-dark), inset 0 0 0 4px var(--stamp), inset 0 0 0 5px #fff;
    transform: rotate(0deg) translateY(-2px);
}
.link-line {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .35em;
    font-family: var(--font-mono);
    font-size: .9rem;
}

.stamp {
    display: grid;
    place-items: center;
    pointer-events: none;
}
.stamp-round {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    border: 3px solid var(--stamp);
    box-shadow: inset 0 0 0 5px transparent, inset 0 0 0 6px var(--stamp);
    color: var(--stamp);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-16deg);
    opacity: .88;
    background: radial-gradient(circle, rgba(192, 57, 43, .06) 0 60%, transparent 61%);
}
.stamp-round span {
    padding: .1rem .35rem;
    border-top: 2px solid var(--stamp);
    border-bottom: 2px solid var(--stamp);
}

.tear {
    height: 14px;
    clip-path: var(--torn-top);
}
.tear-dark { background: #23282E; margin-bottom: -1px; }

.empty-note {
    padding: 1.4rem 1.6rem;
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--muted);
    background: var(--card);
    border: 1px dashed var(--line);
}

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    color: #fff;
    background-color: var(--navy);
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 6px);
    border-bottom: 4px solid #183049;
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-seal { flex: 0 0 auto; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .35)); }
.brand-logo { width: 84px; height: 84px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.brand-name {
    max-width: 30ch;
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 2.3vw, 1.7rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: .01em;
}
.brand-desc {
    max-width: 52ch;
    font-family: var(--font-text);
    font-size: .86rem;
    line-height: 1.45;
    color: #D3DCE8;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .5);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    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; }
.topnav-list {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.topnav-list li { border-left: 1px solid rgba(255, 255, 255, .45); }
.topnav-list a {
    display: inline-block;
    padding: .2rem 0 .2rem 1rem;
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .03em;
    color: #fff;
    text-decoration: none;
    background-image: linear-gradient(var(--stamp), var(--stamp));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 1rem 100%;
    transition: background-size .2s, color .2s;
}
.topnav-list a:hover, .topnav-list a:focus-visible { color: #F4C9C2; background-size: calc(100% - 1rem) 2px; }
.topnav-list .current-menu-item > a { background-size: calc(100% - 1rem) 2px; }

/* ---------- Главная: общие ---------- */
.front-block { padding: 3.2rem 0; }
.sheet-policy { padding-top: 3.4rem; }

/* Блок 1 — лист журнала */
.sheet-policy .shell { filter: drop-shadow(0 6px 8px rgba(60, 45, 20, .22)); }
.sheet {
    position: relative;
    padding: 2.6rem 2.8rem 2.4rem;
    background-color: var(--sheet);
    background-image:
        radial-gradient(circle at 86% 16%, transparent 50px, rgba(150, 105, 50, .16) 52px, rgba(150, 105, 50, .05) 55px, transparent 60px),
        radial-gradient(circle at 34% 4%, rgba(150, 105, 50, .09) 0 18px, transparent 32px),
        var(--grid-mm);
}
.dog-ear {
    clip-path: polygon(0 0, calc(100% - 56px) 0, 100% 56px, 100% 100%, 0 100%);
}
.dog-ear::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(to bottom left, transparent 50%, #D8CBA9 50%, #F3ECDA 100%);
    box-shadow: -3px 3px 6px rgba(60, 45, 20, .25);
}
.policy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}
.policy-table-wrap { min-width: 0; }
.table-scroll { overflow-x: auto; }
.ledger td, .ledger th, .scale-facts, .scale-tag, .sticker summary, .crumbs { hyphens: manual; }
.ledger {
    margin: 1.2rem 0 1rem;
    font-family: var(--font-mono);
    font-size: .86rem;
    line-height: 1.45;
    border: 0;
    border-top: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    background: transparent;
}
.ledger th, .ledger td {
    border: 0;
    border-bottom: 1px solid rgba(44, 90, 140, .55);
    border-right: 1px solid rgba(44, 90, 140, .55);
    padding: .62rem .8rem .55rem 0;
    background: transparent;
}
.ledger td + td, .ledger th + th { padding-left: .8rem; }
.ledger th:last-child, .ledger td:last-child { border-right: 0; }
.ledger th { font-size: .82rem; color: var(--ink); letter-spacing: .02em; text-transform: none; font-weight: 500; font-family: var(--font-head); font-size: 1.05rem; }
.ledger td:first-child { color: var(--ink); }
.ledger td:nth-child(2) { color: #4B4438; }
.ledger td:last-child { color: var(--blue); white-space: nowrap; }
.nb { white-space: nowrap; }
.ledger-note { margin: 0; font-size: .86rem; font-style: italic; color: var(--muted); }
.policy-figure {
    position: relative;
    margin: 0;
    justify-self: center;
    width: min(100%, 380px);
}
.policy-figure img { width: 100%; height: auto; }
.policy-figure .stamp-round { position: absolute; right: -6%; bottom: 2%; }

/* Блок 2 — синяя вкладка с чертежом */
.blueprint .shell { filter: drop-shadow(0 8px 10px rgba(20, 30, 50, .3)); }
.blueprint-sheet {
    position: relative;
    margin-top: 2.2rem;
    padding: 2.4rem 2.6rem 2.6rem;
    color: #E5ECF5;
    background-color: var(--night);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 12px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 60px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 60px);
    border-top: 3px solid var(--navy);
}
.blueprint-tab {
    position: absolute;
    left: 0;
    bottom: 100%;
    margin: 0;
    padding: .55rem 3.2rem .45rem 1.4rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff;
    background: var(--navy);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
}
.blueprint-lead { max-width: 62ch; margin: 0 0 1.4rem; font-size: .95rem; color: #C3D0E0; }
.scale {
    position: relative;
    height: 300px;
    margin-top: 1rem;
}
.scale-axis {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    display: flex;
    align-items: center;
    gap: .9rem;
    transform: translateY(-50%);
}
.scale-end {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}
.scale-line {
    position: relative;
    flex: 1 1 auto;
    height: 14px;
    background:
        linear-gradient(#fff, #fff) left center / 100% 2px no-repeat,
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .85) 0 1px, transparent 1px 32px) left center / 100% 14px no-repeat;
}
.scale-line::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
}
.scale-marks { margin: 0; padding: 0; list-style: none; }
.scale-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 220px;
    margin-left: -110px;
    display: grid;
    grid-template-rows: 1fr 18px 1fr;
    justify-items: center;
    text-align: center;
}
.scale-mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 22%;
    bottom: 22%;
    border-left: 1px dashed rgba(255, 255, 255, .6);
}
.scale-tag {
    align-self: end;
    position: relative;
    margin-bottom: 1.4rem;
    padding: .45rem .8rem .4rem;
    font-family: var(--font-mono);
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    background: #E7D9B5;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, .28);
    clip-path: polygon(0 3%, 97% 0, 100% 96%, 2% 100%);
    transform: rotate(-1.5deg);
}
.scale-mark:nth-child(even) .scale-tag { transform: rotate(1.4deg); }
.scale-dot {
    position: relative;
    align-self: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .2), 0 0 0 1px var(--night);
}
.scale-facts span { display: block; }
.scale-facts span + span { margin-top: .25rem; padding-top: .25rem; border-top: 1px dashed rgba(255, 255, 255, .35); }
.scale-facts {
    align-self: start;
    position: relative;
    margin-top: 1.4rem;
    padding: .35rem .5rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.5;
    color: #DCE5F0;
    background: var(--night);
}

/* Блок «Записи журнала» */
.latest .block-title { margin-bottom: 1.6rem; }
.latest-more { margin: 1.6rem 0 0; text-align: right; }

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 2.4rem 1.8rem;
    padding-top: 14px;
}
.card-grid-front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 1rem .9rem;
    filter: drop-shadow(0 4px 0 rgba(120, 100, 65, .18)) drop-shadow(0 6px 8px rgba(60, 45, 20, .16));
    transition: transform .2s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--card);
    clip-path: var(--torn-card);
}
.card:nth-child(3n+1) { transform: rotate(-.5deg); }
.card:nth-child(3n+2) { transform: rotate(.4deg); }
.card:hover { transform: rotate(0deg) translateY(-4px); }
.card-clip {
    position: absolute;
    top: -16px;
    left: 18px;
    z-index: 2;
    width: 18px;
    height: 50px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 50'%3E%3Cpath d='M5 40V8a4 4 0 0 1 8 0v34a6 6 0 0 1-12 0V12' fill='none' stroke='%23858A8F' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M5 40V8a4 4 0 0 1 8 0' fill='none' stroke='%23D9DCDF' stroke-width='.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.card-thumb { display: block; overflow: hidden; }
.card-thumb img, .card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2.1 / 1;
    object-fit: cover;
    filter: sepia(.12) saturate(.92);
    transition: filter .25s;
}
.card:hover .card-img { filter: none; }
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: .9rem;
}
.card-title {
    margin: 0 0 .5rem;
    font-family: var(--font-head);
    font-size: 1.32rem;
    font-weight: 500;
    line-height: 1.2;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-excerpt { flex: 1; font-size: .92rem; line-height: 1.6; color: #3A3F45; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: .6rem;
}
.card-date { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }

/* ---------- Блоки 4 и 5 ---------- */
.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
    padding: 1.4rem 0 3.6rem;
}
.duo > .front-block { padding: 0; min-width: 0; }

.point {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: .4rem;
}
.pencil-margin {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 3rem 0 2rem;
    opacity: .75;
}
.pencil-margin svg:nth-child(odd) { transform: rotate(-8deg) translateX(3px); }
.torn-page {
    position: relative;
    padding: 2.4rem 2.2rem 3.2rem;
    background-color: var(--page-white);
    background-image:
        repeating-linear-gradient(0deg, rgba(44, 90, 140, .08) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(90deg, rgba(44, 90, 140, .08) 0 1px, transparent 1px 14px);
    clip-path: polygon(0.0% 1.6px, 4.2% 2.6px, 8.3% 11.6px, 12.5% 5.2px, 16.7% 7.5px, 20.8% 3.6px, 25.0% 6.1px, 29.2% 4.6px, 33.3% 4.2px, 37.5% 7.0px, 41.7% 7.0px, 45.8% 10.9px, 50.0% 8.2px, 54.2% 11.1px, 58.3% 10.3px, 62.5% 11.9px, 66.7% 8.1px, 70.8% 2.0px, 75.0% 10.3px, 79.2% 11.6px, 83.3% 10.9px, 87.5% 6.8px, 91.7% 8.6px, 95.8% 2.5px, 100.0% 10.0px, 100% 100%, 52px 100%, 0 calc(100% - 52px));
}
.point { filter: drop-shadow(0 6px 8px rgba(60, 45, 20, .2)); }
.torn-page::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(to top right, transparent 50%, #DCD8CD 50%, #FFFFFF 100%);
    box-shadow: 3px -3px 6px rgba(60, 45, 20, .2);
}
.torn-page .block-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.point-figure {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin: 1.2rem 0 1.4rem;
}
.point-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: clamp(5.5rem, 10vw, 8.2rem);
    font-weight: 600;
    line-height: .85;
    color: var(--stamp);
    letter-spacing: -.02em;
    text-shadow: 2px 2px 0 rgba(192, 57, 43, .18);
}
.point-caption {
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    line-height: 1.2;
    color: var(--ink);
}
.point-list { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.point-list li {
    position: relative;
    margin-bottom: .7rem;
    padding-left: 1.5rem;
}
.point-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .7rem;
    height: .7rem;
    border: 2px solid var(--blue);
    transform: rotate(45deg);
}
.pencil-note {
    position: absolute;
    right: 1.8rem;
    bottom: 1rem;
    margin: 0;
    font-family: var(--font-hand);
    font-size: 1.35rem;
    color: #5E5A52;
    transform: rotate(-4deg);
}

.envelope-block {
    position: relative;
    padding: 2.4rem 2.2rem 2.2rem !important;
    background-color: var(--envelope);
    background-image:
        radial-gradient(circle at 12% 88%, rgba(120, 90, 40, .12) 0 30px, transparent 70px),
        linear-gradient(rgba(214, 195, 154, .9), rgba(214, 195, 154, .9)),
        url("images/bumaga.jpg");
    background-size: auto, auto, 320px 320px;
    box-shadow: 0 6px 10px rgba(60, 45, 20, .22), inset 0 0 0 1px rgba(120, 95, 50, .25);
}
.envelope-block .graph-label { color: #6A5631; }
.envelope-block .block-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.envelope-lead { margin: 0 0 1rem; font-size: .9rem; color: #5C4E35; }
.envelope-stage {
    position: relative;
    aspect-ratio: 160 / 110;
}
.envelope-arrows {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.envelope-arrows path {
    fill: none;
    stroke: #3B3F44;
    stroke-width: 1.4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}
.envelope-img {
    position: absolute;
    left: 52%;
    top: 30%;
    width: 46%;
    height: auto;
}
.sticker {
    position: absolute;
    z-index: 2;
    width: 38%;
    font-family: var(--font-mono);
}
.sticker summary {
    display: block;
    padding: .6rem .8rem;
    font-size: clamp(.78rem, 1.15vw, .95rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    background: #FBFAF6;
    box-shadow: 2px 4px 6px rgba(60, 45, 20, .28);
    clip-path: polygon(0 4%, 98% 0, 100% 92%, 3% 100%);
    list-style: none;
    cursor: pointer;
    transition: background-color .15s;
}
.sticker summary::-webkit-details-marker { display: none; }
.sticker summary:hover { background: #fff; }
.sticker[open] summary { background: var(--stamp); color: #fff; }
.sticker p {
    position: absolute;
    left: 0;
    top: calc(100% + .4rem);
    z-index: 5;
    width: max(100%, 220px);
    margin: 0;
    padding: .8rem .9rem;
    font-family: var(--font-text);
    font-size: .86rem;
    line-height: 1.5;
    color: var(--ink);
    background: var(--card);
    border-left: 3px solid var(--stamp);
    box-shadow: 0 6px 14px rgba(40, 30, 10, .3);
}
.sticker-1 { left: 1%; top: 5%; transform: rotate(-3deg); }
.sticker-2 { left: 58%; top: 2%; transform: rotate(2.5deg); }
.sticker-3 { left: 0; top: 44%; transform: rotate(1.5deg); }
.sticker-4 { left: 5%; top: 76%; transform: rotate(-2deg); }
.sticker-2 p { left: auto; right: 0; }
.sticker-4 p { top: auto; bottom: calc(100% + .4rem); }
.sticker[open] { z-index: 6; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 3.6rem; }
.crumbs {
    margin: 0 0 1.6rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    line-height: 1.6;
    color: var(--muted);
}
.crumbs a { color: var(--blue); }
.crumbs-sep { margin: 0 .35rem; color: var(--stamp); }
.layout-single { display: block; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.6rem; }
.page-title {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    line-height: 1.08;
}
.archive-desc, .page-intro { color: #4B4438; }

.sheet-entry {
    position: relative;
    padding: 2.4rem 2.4rem 2rem;
    background-color: var(--card);
    background-image: repeating-linear-gradient(0deg, rgba(44, 90, 140, .07) 0 1px, transparent 1px 28px);
    box-shadow: 0 2px 0 rgba(120, 100, 65, .2), 0 8px 14px rgba(60, 45, 20, .14);
    border-left: 3px double rgba(192, 57, 43, .55);
}
.entry-meta { margin: 0; font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.entry-cover { margin: 1.4rem 0; }
.entry-cover img { width: 100%; height: auto; }
.entry-content { margin-top: 1.4rem; }
.entry-content h2 { font-size: 1.75rem; margin-top: 1.6em; }
.entry-content h3 { font-size: 1.4rem; margin-top: 1.4em; }
.entry-content h4 { font-size: 1.15rem; margin-top: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul li { position: relative; }
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: -1.1em;
    top: .62em;
    width: .45em;
    height: .45em;
    background: var(--stamp);
    transform: rotate(45deg);
}
.entry-content ol li::marker { font-family: var(--font-mono); color: var(--blue); }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem 1.2rem 1.8rem;
    font-style: italic;
    color: #E5ECF5;
    background: var(--navy);
    border-left: 6px solid var(--stamp);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .5rem; font-family: var(--font-mono); font-size: .8rem; font-style: normal; color: #B8C6D8; }
.entry-content table { font-size: .93rem; background: rgba(255, 255, 255, .55); }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: #23282E; color: #E8DFC8; font-family: var(--font-mono); font-size: .88rem; }
.entry-content code { font-family: var(--font-mono); font-size: .9em; }
.entry-content hr { border: 0; height: 2px; margin: 2em 0; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; }
.entry-tags a {
    padding: .2rem .6rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    text-decoration: none;
    color: var(--blue);
    border: 1px solid var(--blue);
}
.entry-tags a:hover { color: #fff; background: var(--blue); }
.entry-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.entry-nav a {
    display: block;
    padding: 1rem 1.2rem;
    font-family: var(--font-head);
    font-size: 1.05rem;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
    background: var(--sheet);
    border: 1px solid var(--line);
}
.entry-nav a span { display: block; margin-bottom: .3rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.entry-nav a:hover { border-color: var(--stamp); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
    background-color: var(--side);
    background-image: repeating-linear-gradient(0deg, rgba(120, 95, 50, .12) 0 1px, transparent 1px 24px);
    border-top: 6px solid var(--navy);
    box-shadow: 0 6px 10px rgba(60, 45, 20, .15);
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 2px solid var(--blue);
}
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed rgba(122, 110, 91, .55); font-size: .95rem; line-height: 1.45; color: var(--ink); }
.sidebar a { color: #1D4672; text-decoration: none; }
.sidebar a:hover { color: var(--stamp); text-decoration: underline; }
.sidebar .post-date { display: block; font-family: var(--font-mono); font-size: .76rem; color: #5E5446; }
.sidebar p { color: var(--ink); font-size: .95rem; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 2.6rem 0 0;
    font-family: var(--font-mono);
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.5rem;
    padding: .45rem .75rem;
    font-size: .85rem;
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    background: var(--card);
    border: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(120, 100, 65, .2);
    transition: transform .15s, border-color .15s;
}
.pager a.page-numbers:hover { border-color: var(--stamp); color: var(--stamp); transform: translateY(-2px); }
.pager .page-numbers.current { color: #fff; background: var(--stamp); border-color: var(--stamp); }
.pager .page-numbers.dots { min-width: 0; background: none; border: 0; box-shadow: none; }

/* ---------- Комментарии ---------- */
.notes {
    margin-top: 2.4rem;
    padding: 2rem 2.2rem;
    background: var(--sheet);
    border: 1px solid var(--line);
}
.notes-title { font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; }
.notes-list, .notes-list .children { margin: 0; padding: 0; list-style: none; }
.notes-list .children { margin-left: 1.6rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.note-body { margin: 0 0 1.2rem; padding: 1rem 1.2rem; background: var(--card); border: 1px solid rgba(185, 169, 138, .6); }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: .5rem; }
.note-head img { border-radius: 50%; }
.note-author { font-family: var(--font-head); font-size: 1.05rem; }
.note-date { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.note-wait { font-family: var(--font-mono); font-size: .82rem; color: var(--stamp); }
.note-text p:last-child { margin-bottom: .4rem; }
.note-reply a { font-family: var(--font-mono); font-size: .8rem; }
.comment-respond { margin-top: 1.4rem; }
.comment-reply-title { font-size: 1.4rem; text-transform: uppercase; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--font-mono); font-size: .75rem; text-transform: none; }
.form-note { font-size: .88rem; color: var(--muted); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--ink);
    background: #FFFDF8;
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--blue);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
.comment-form-cookies-consent label { margin: 0; font-family: var(--font-text); font-size: .88rem; text-transform: none; letter-spacing: 0; }
.comment-form .submit {
    padding: .7rem 1.4rem;
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--stamp);
    border: 0;
    box-shadow: inset 0 0 0 2px var(--stamp-dark), inset 0 0 0 4px var(--stamp), inset 0 0 0 5px rgba(255, 255, 255, .7);
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--stamp-dark); }
.req { color: var(--stamp); }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin: 1rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .65rem .8rem;
    font-family: var(--font-mono);
    font-size: .92rem;
    color: var(--ink);
    background: #FFFDF8;
    border: 1px solid var(--line);
    border-bottom: 2px solid var(--blue);
    border-radius: 0;
}
.search-submit { font-size: .82rem; }
.empty-sheet { padding: 1.6rem; background: var(--card); border: 1px dashed var(--line); }
.empty-sheet .empty-note { padding: 0; border: 0; background: none; }

/* ---------- 404 ---------- */
.lost-sheet {
    position: relative;
    max-width: 760px;
    margin-inline: auto;
    padding: 3rem 2.6rem 2.6rem;
    background-color: var(--sheet);
    background-image: var(--grid-mm);
    box-shadow: 0 8px 14px rgba(60, 45, 20, .18);
}
.lost-code {
    margin: 0;
    font-family: var(--font-head);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 600;
    line-height: .9;
    color: var(--blue);
}
.lost-home { margin: 1.4rem 0 0; }
.stamp-lost { position: absolute; right: 2rem; top: 2rem; }

/* ---------- Подвал ---------- */
.colophon {
    margin-top: 1rem;
    color: #DCD5C3;
    background: linear-gradient(transparent 13px, #23282E 13px);
}
.colophon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 2.8rem 0 2rem;
}
.colophon-col { min-width: 0; }
.colophon .widget-title {
    position: relative;
    margin-bottom: .9rem;
    padding-left: .9rem;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: #FFFFFF;
}
.colophon .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 3px;
    background: var(--stamp);
}
.colophon p, .colophon .textwidget { font-size: .92rem; line-height: 1.65; color: #DCD5C3; }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { padding: .2rem 0; font-size: .92rem; color: #DCD5C3; }
.colophon a { color: #E8DFC8; text-decoration: underline; text-decoration-color: rgba(232, 223, 200, .45); text-underline-offset: .3em; }
.colophon a:hover { color: #F2A99F; text-decoration-color: currentColor; }
.colophon-copy {
    padding: 1.1rem 0 1.4rem;
    border-top: 1px solid rgba(232, 223, 200, .18);
    text-align: center;
}
.colophon-copy p { margin: 0; font-family: var(--font-mono); font-size: .8rem; color: #B9B19F; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin-inline: auto;
    padding: 1rem 1.4rem;
    color: #E5ECF5;
    background: var(--navy);
    border-top: 4px solid var(--stamp);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.cookie-text { margin: 0; font-size: .9rem; line-height: 1.5; }
.cookie-banner .btn-label { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .shell { width: min(94%, 1180px); }
    .masthead-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav-list { padding: .6rem 0 .2rem; }
    .policy-layout { grid-template-columns: 1fr; }
    .policy-figure { width: min(100%, 320px); }
    .scale { height: auto; padding-left: 1.6rem; }
    .scale-axis {
        top: 0;
        bottom: 0;
        left: 0;
        right: auto;
        transform: none;
        flex-direction: column;
        width: 14px;
    }
    .scale-end { display: none; }
    .scale-line {
        width: 14px;
        height: 100%;
        background: linear-gradient(#fff, #fff) center top / 2px 100% no-repeat;
    }
    .scale-line::after { right: auto; left: 50%; top: auto; bottom: -2px; transform: translateX(-50%) rotate(135deg); }
    .scale-marks { display: grid; gap: 1.6rem; padding: .4rem 0 .6rem; }
    .scale-mark {
        position: relative;
        left: auto;
        width: auto;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: .5rem;
    }
    .scale-mark::before { display: none; }
    .scale-tag, .scale-facts { margin: 0; align-self: flex-start; }
    .scale-facts { padding: 0; background: none; }
    .scale-dot { position: absolute; left: calc(-1.6rem); top: .7rem; }
    .duo { grid-template-columns: 1fr; gap: 2.6rem; }
    .card-grid-front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticker summary { font-size: .9rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .masthead-row { padding: 1rem 0; }
    .brand { gap: .7rem; }
    .brand-logo { width: 54px; height: 54px; }
    .brand-desc { display: none; }
    .front-block { padding: 2.2rem 0; }
    .sheet { padding: 2rem 1.3rem 1.8rem; }
    .dog-ear { clip-path: polygon(0 0, calc(100% - 36px) 0, 100% 36px, 100% 100%, 0 100%); }
    .dog-ear::after { width: 36px; height: 36px; }
    .ledger { font-size: .8rem; }
    .ledger td:last-child { white-space: normal; }
    .policy-figure .stamp-round { width: 92px; height: 92px; font-size: .85rem; right: 0; }
    .blueprint-sheet { padding: 2rem 1.3rem 2rem; }
    .blueprint-tab { padding-right: 2.4rem; font-size: .72rem; }
    .card-grid-front { grid-template-columns: minmax(0, 1fr); }
    .point { grid-template-columns: minmax(0, 1fr); }
    .pencil-margin { display: none; }
    .torn-page { padding: 2.2rem 1.3rem 3.4rem; }
    .point-figure { flex-direction: column; align-items: flex-start; }
    .envelope-block { padding: 2rem 1.3rem !important; }
    .envelope-stage { aspect-ratio: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
    .envelope-arrows { display: none; }
    .envelope-img { position: static; order: 5; width: 70%; justify-self: center; margin-top: .6rem; }
    .sticker { position: relative; left: auto; top: auto; width: auto; }
    .sticker p { position: static; width: auto; margin-top: .4rem; }
    .sticker-4 p { margin-top: .4rem; }
    .page-wrap { padding-top: 1.1rem; }
    .sheet-entry { padding: 1.8rem 1.2rem 1.4rem; }
    .notes { padding: 1.5rem 1.2rem; }
    .lost-sheet { padding: 2.4rem 1.3rem 2rem; }
    .stamp-lost { width: 84px; height: 84px; font-size: .72rem; right: 1rem; top: 1rem; }
    .entry-nav { grid-template-columns: 1fr; }
    .entry-nav-next { grid-column: auto; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
}
