/*
Theme Name: dds_lineshackthree.com
Theme URI: https://lineshackthree.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: lsdos
*/

/* ---------- Шрифты ---------- */
@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: "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+2000-206F, 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+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: 600; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-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: "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: #E9E4D8;
    --paper-light: #F2EEE4;
    --paper-dark: #DDD5C3;
    --card: #E6DCC4;
    --kraft: #D3C29E;
    --ink: #232323;
    --muted: #7A7468;
    --blue: #1F3A5F;
    --blue-deep: #172C48;
    --red: #C8452D;
    --green: #4E7A4A;
    --line: #2B2B2B;
    --clip: #858A90;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-mono: "IBM Plex Mono", "PT Mono", "Courier New", Consolas, monospace;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --clip-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 64'%3E%3Cpath d='M8 20v28a6 6 0 0 0 12 0V12a9 9 0 0 0-18 0v40' fill='none' stroke='%23858A90' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M8 20v28a6 6 0 0 0 12 0V12a9 9 0 0 0-18 0v40' fill='none' stroke='%23D9DDE0' stroke-width='0.9' stroke-linecap='round' transform='translate(-0.6 -0.6)'/%3E%3C/svg%3E");
}

/* ---------- Скрытие через hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
[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;
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    color: var(--ink);
    background-color: var(--blue);
    background-image:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.05) 0 1px, transparent 1px 4px),
        linear-gradient(180deg, #213F66 0%, var(--blue) 40%, var(--blue-deep) 100%);
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 2px;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.12;
    color: var(--blue);
    margin: 1.4em 0 0.6em;
    letter-spacing: 0.02em;
}
p, li, td, th, dd, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}
.visually-hidden {
    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;
    background: var(--red); color: #fff; padding: 0.5rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер и папка ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

.folder {
    position: relative;
    margin: 3.4rem 0 3rem;
    padding: 1.6rem 2.6rem 2.4rem 4rem;
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 86% 31%, transparent 0 54px, rgba(140,98,52,0.13) 55px, rgba(140,98,52,0.05) 60px, transparent 64px),
        radial-gradient(ellipse 160px 110px at 9% 72%, rgba(150,110,62,0.10), transparent 70%),
        radial-gradient(ellipse 220px 140px at 70% 92%, rgba(150,110,62,0.08), transparent 70%),
        linear-gradient(rgba(31,58,95,0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,58,95,0.09) 1px, transparent 1px),
        linear-gradient(rgba(43,43,43,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43,43,43,0.035) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 30px 30px, 30px 30px, 6px 6px, 6px 6px;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat;
    box-shadow:
        7px 7px 0 -1px #D9D1BE,
        7px 7px 0 0 rgba(0,0,0,0.25),
        14px 14px 0 -1px #CEC5AF,
        14px 14px 0 0 rgba(0,0,0,0.25),
        0 18px 40px rgba(0,0,0,0.35);
}
.folder::before {
    content: "";
    position: absolute;
    left: 14px; top: 90px; bottom: 40px;
    width: 20px;
    background: radial-gradient(circle at 10px 10px, var(--blue-deep) 0 6.5px, rgba(0,0,0,0.35) 7px 8px, transparent 8.5px) 0 0 / 20px 280px repeat-y;
    pointer-events: none;
}
.folder-tabs {
    position: absolute;
    top: -2.2rem; left: 12%;
    display: flex; gap: 1.2rem;
    pointer-events: none;
}
.folder-tabs span {
    display: block;
    width: 120px; height: 2.4rem;
    background: var(--kraft);
    border: 1.5px solid rgba(43,43,43,0.35);
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
    transform: rotate(-2deg);
    box-shadow: inset 0 -8px 10px rgba(0,0,0,0.08);
}
.folder-tabs span:nth-child(2) { width: 90px; background: #E3D8BC; transform: rotate(1.5deg) translateY(4px); }
.folder-tabs span:nth-child(3) { width: 70px; background: #C9B68E; transform: rotate(-1deg) translateY(8px); }

/* ---------- Скрепки ---------- */
.clip {
    position: absolute;
    width: 22px; height: 58px;
    background: var(--clip-svg) center / contain no-repeat;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(1px 2px 1px rgba(0,0,0,0.25));
}
.clip--head { top: -26px; right: 6%; transform: rotate(-24deg); }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem 2.5rem;
    padding: 0.6rem 0 1.4rem;
    border-bottom: 5px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 1.2rem; min-width: 0; }
.brand-logo-link { flex: 0 0 auto; color: var(--blue); display: block; line-height: 0; }
.brand-mark { width: 84px; height: 84px; display: block; }
.brand-logo { width: 84px; height: auto; display: block; }
.brand-text { min-width: 0; }
.brand-name {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.55rem, 3.2vw, 2.55rem);
    line-height: 1.04;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    max-width: 24ch;
    hyphens: manual;
}
.brand-name a { color: var(--blue); text-decoration: none; }
.brand-name a:hover { color: var(--red); }
.brand-desc { margin: 0.5rem 0 0; font-size: 0.8rem; color: var(--ink); max-width: 62ch; line-height: 1.5; }

.site-nav { min-width: 0; }
.nav-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; min-width: 210px; }
.nav-fields a {
    display: block;
    padding: 0.32rem 0.5rem 0.18rem 0.2rem;
    border-bottom: 1.5px solid var(--line);
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.12s, color 0.12s, padding 0.12s;
}
.nav-fields a:hover, .nav-fields a:focus-visible { background: var(--blue); color: var(--paper); padding-left: 0.7rem; }
.nav-fields .current-menu-item > a { color: var(--red); border-bottom-color: var(--red); }
.nav-toggle { display: none; }

/* ---------- Заголовки-штампы ---------- */
.stamp-title {
    display: inline-block;
    margin: 0 0 1.4rem;
    padding: 0.22em 0.6em 0.26em;
    font-family: var(--f-head);
    font-size: clamp(1.45rem, 2.6vw, 2.15rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    border: 6px double var(--line);
    background: rgba(242,238,228,0.65);
    box-shadow: 3px 3px 0 rgba(31,58,95,0.18);
}
.plain-title {
    margin: 0 0 1.3rem;
    font-family: var(--f-head);
    font-size: clamp(1.5rem, 2.8vw, 2.35rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
}

/* ---------- Кнопки-штампы ---------- */
.stamp-btn {
    display: inline-block;
    padding: 0.32em 0.85em 0.28em;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red);
    text-decoration: none;
    border: 2px solid var(--red);
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px var(--card), inset 0 0 0 3px rgba(200,69,45,0.55);
    background: transparent;
    transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s;
}
.stamp-btn:hover, .stamp-btn:focus-visible {
    background: var(--red);
    color: var(--paper-light);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--line);
}
.stamp-btn--blue { color: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3px rgba(31,58,95,0.5); }
.stamp-btn--blue:hover, .stamp-btn--blue:focus-visible { background: var(--blue); }

/* ---------- Печать ---------- */
.seal {
    position: absolute;
    top: 1.6rem; right: 0.4rem;
    z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    padding: 0.35rem 1rem 0.3rem;
    color: var(--red);
    border: 3px solid var(--red);
    outline: 1.5px solid var(--red);
    outline-offset: 3px;
    border-radius: 6px;
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    transform: rotate(14deg);
    opacity: 0.88;
    mix-blend-mode: multiply;
    background: rgba(200,69,45,0.04);
    pointer-events: none;
}
.seal span { font-size: 1.55rem; letter-spacing: 0.06em; }
.seal small { font-size: 1.05rem; margin-top: 0.2rem; letter-spacing: 0.1em; }
.seal--static { position: static; display: inline-flex; transform: rotate(-8deg); margin: 0.5rem 0 1rem; }

/* ---------- Главная: секции ---------- */
.front > * + * { border-top: 5px solid var(--line); }
.fs { position: relative; padding: 2.2rem 0 2.4rem; min-width: 0; }

/* Блок 1: карта проверки */
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
    gap: 2rem 2.6rem;
    align-items: center;
}
.plan { margin: 0; padding: 3.2rem 7.4rem 3.4rem 0.6rem; min-width: 0; }
.plan-box { position: relative; }
.plan-box img { display: block; width: 100%; height: auto; }
.plan-leaders {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    overflow: visible;
    pointer-events: none;
}
.plan-leaders line { stroke: var(--line); stroke-width: 1.4; }
.plan-label {
    position: absolute;
    z-index: 2;
    transform: translateY(-50%);
    padding: 0 0.3rem 0.1rem;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 1.5px solid var(--line);
    background: rgba(233,228,216,0.9);
}
.plan-dot {
    position: absolute;
    z-index: 2;
    width: 22px; height: 22px;
    margin: -11px 0 0 -11px;
    display: grid; place-items: center;
    font-family: var(--f-head);
    font-size: 0.78rem;
    line-height: 1;
    color: var(--paper-light);
    background: var(--red);
    border: 2px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px var(--red);
}
.plan-cap { margin-top: 3.4rem; font-size: 0.78rem; color: var(--muted); }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; min-width: 0; }
.tick-item {
    display: grid;
    grid-template-columns: 40px 40px minmax(0, 1fr);
    gap: 0.6rem;
    align-items: start;
}
.tick-num, .tick-box {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 2px solid var(--line);
    background: var(--paper-light);
}
.tick-num { font-family: var(--f-head); font-size: 1.3rem; font-weight: 600; }
.tick-box svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-6deg); }
.tick-text { font-size: 0.8rem; line-height: 1.45; color: var(--muted); padding-top: 0.05rem; }
.tick-text strong { display: block; font-family: var(--f-head); font-size: 1rem; font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }

/* Пара: сравнение + записи */
.fs-pair {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
}
.fs-pair .fs-compare { padding-right: 2.2rem; }
.fs-pair .fs-latest { padding-left: 2.2rem; border-left: 5px solid var(--line); }

/* Блок 2: таблица-бланк */
.ledger-wrap { overflow-x: auto; }
.ledger {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    background: rgba(242,238,228,0.45);
}
.ledger th, .ledger td {
    border: 1.5px solid var(--line);
    padding: 0.45rem 0.6rem;
    vertical-align: middle;
}
.ledger thead th { font-weight: 600; text-align: center; background: rgba(31,58,95,0.06); white-space: nowrap; }
.ledger thead th:first-child { border-top-color: transparent; border-left-color: transparent; background: none; }
.ledger tbody th { text-align: left; font-weight: 600; white-space: nowrap; }
.ledger td {
    position: relative;
    text-align: center;
    font-family: var(--f-hand);
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.05;
    color: #24508A;
    white-space: nowrap;
    padding-right: 1.7rem;
}
.ledger tr.is-text td { white-space: normal; }
.ledger td.best::after {
    content: "";
    position: absolute;
    right: 4px; top: 50%;
    width: 22px; height: 22px;
    margin-top: -14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13l6 6L21 4' fill='none' stroke='%23C8452D' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ledger td.flag { text-decoration: underline wavy var(--red) 1.5px; text-underline-offset: 6px; }
.ledger-note { margin: 1.2rem 0 0.4rem; font-size: 0.82rem; }
.ledger-note span { color: var(--red); font-weight: 600; }
.ledger-foot { margin: 0; font-size: 0.74rem; color: var(--muted); }
.ledger-legend {
    list-style: none;
    margin: 1.6rem 0 0;
    padding: 1rem 1.2rem;
    display: grid; gap: 0.6rem;
    font-size: 0.8rem;
    line-height: 1.45;
    background: rgba(242,238,228,0.7);
    border: 1.5px dashed var(--line);
}
.ledger-legend li { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: 0.6rem; align-items: start; }
.lg-mark { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1; color: #24508A; text-align: center; }
.lg-mark--check { color: var(--red); }
.lg-mark--wave { text-decoration: underline wavy var(--red) 1.5px; text-underline-offset: 5px; }

/* Последние записи — стопка карточек */
.card-stack { display: grid; gap: 0; padding-top: 0.6rem; }
.empty-note { color: var(--muted); }
.fs-latest .stamp-btn--blue { margin-top: 1.6rem; }

/* ---------- Карточки ---------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--card);
    background-image: linear-gradient(160deg, rgba(255,255,255,0.18), transparent 50%);
    border: 4px double rgba(43,43,43,0.55);
    box-shadow: 3px 4px 0 rgba(43,43,43,0.12), 0 8px 16px rgba(0,0,0,0.12);
    transition: transform 0.18s, box-shadow 0.18s;
}
.card::before {
    content: "";
    position: absolute;
    top: -15px; left: -4px;
    width: 42%; height: 15px;
    background: var(--card);
    border: 1.5px solid rgba(43,43,43,0.35);
    border-bottom: 0;
    border-radius: 6px 10px 0 0;
}
.card::after {
    content: "";
    position: absolute;
    right: -4px; bottom: -4px;
    width: 26px; height: 26px;
    background: linear-gradient(315deg, var(--paper) 0 48%, #CFC2A2 50%, #E9DFC8 100%);
    box-shadow: -2px -2px 3px rgba(0,0,0,0.12);
}
.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex; flex-direction: column; align-items: flex-start;
}
.card-date { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.06em; }
.card-title {
    margin: 0.2rem 0 0.45rem;
    font-family: var(--f-head);
    font-size: 1.22rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink);
}
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--red); }
.card-excerpt { font-size: 0.78rem; line-height: 1.5; color: #3A3832; margin-bottom: 0.8rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card .stamp-btn { margin-top: auto; }
.card-thumb-wrap { overflow: hidden; }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img { display: block; width: 100%; object-fit: cover; }
.clip--card { top: -30px; left: 30px; width: 18px; height: 50px; transform: rotate(8deg); }

/* Вариант «стопка» (главная) */
.card--stack { flex-direction: row; align-items: stretch; transform-origin: 30% 50%; }
.card--stack:nth-child(1) { transform: rotate(-1.2deg); z-index: 1; }
.card--stack:nth-child(2) { transform: rotate(1deg) translateX(10px); margin-top: -10px; z-index: 2; }
.card--stack:nth-child(3) { transform: rotate(-0.6deg) translateX(-4px); margin-top: -10px; z-index: 3; }
.card--stack + .card--stack { margin-top: 0.4rem; }
.card--stack:hover, .card--stack:focus-within { transform: rotate(0) translateY(-4px); z-index: 5; box-shadow: 5px 7px 0 rgba(43,43,43,0.16), 0 14px 22px rgba(0,0,0,0.16); }
.card--stack .card-body { padding-right: 0.8rem; }
.card--stack .card-thumb-wrap {
    flex: 0 0 128px;
    align-self: center;
    margin: 0.9rem 1rem 0.9rem 0;
    padding: 5px 5px 7px;
    background: #FBFAF6;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.25);
    transform: rotate(2deg);
}
.card--stack:nth-child(2) .card-thumb-wrap { transform: rotate(-2.5deg); }
.card--stack .card-thumb-wrap img { height: 112px; filter: sepia(0.25) contrast(1.05); }
.card--stack:nth-child(2) .clip--card { left: auto; right: 64px; transform: rotate(-6deg); }

/* Вариант «сетка» (лента) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 2.6rem 1.6rem;
    padding-top: 1rem;
}
.card--grid .card-thumb-wrap {
    order: -1;
    margin: 0.9rem 0.9rem 0;
    padding: 6px 6px 8px;
    background: #FBFAF6;
    box-shadow: 1px 2px 4px rgba(0,0,0,0.22);
    transform: rotate(-0.8deg);
}
.card--grid:nth-child(even) .card-thumb-wrap { transform: rotate(0.9deg); }
.card--grid .card-thumb-wrap img { aspect-ratio: 4 / 3; height: auto; filter: sepia(0.2) contrast(1.04); }
.card--grid:nth-child(3n+2) { transform: rotate(0.5deg); }
.card--grid:nth-child(3n) { transform: rotate(-0.4deg); }
.card--grid:hover, .card--grid:focus-within { transform: translateY(-4px); box-shadow: 5px 7px 0 rgba(43,43,43,0.16), 0 14px 22px rgba(0,0,0,0.16); }
.card.sticky .card-date::after { content: " · закреплено"; color: var(--red); }

/* Блок 3: маршрут подготовки */
.route {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0 0 1.8rem;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.6rem;
}
.route-step {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    min-width: 0;
    padding: 1.1rem 0.6rem 0.9rem;
    background: var(--paper-light);
    border: 1.5px solid var(--line);
    box-shadow: 3px 3px 0 rgba(31,58,95,0.16);
}
.route-step:nth-child(even) { transform: translateY(1.6rem) rotate(0.8deg); }
.route-step:nth-child(odd) { transform: rotate(-0.6deg); }
.route-step::before {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 9px; height: 9px; margin-left: -4.5px;
    border-radius: 50%;
    background: var(--paper);
    border: 1.5px solid rgba(43,43,43,0.5);
}
.route-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.6rem; left: 100%;
    width: 1.6rem; height: 10px;
    background:
        linear-gradient(90deg, var(--line) 0 4px, transparent 4px) 0 4px / 7px 2px repeat-x,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l7 4-7 4' fill='none' stroke='%232B2B2B' stroke-width='1.6'/%3E%3C/svg%3E") right center / 10px 10px no-repeat;
}
.route-step:nth-child(odd):not(:last-child)::after { transform: translateY(0.8rem) rotate(18deg); transform-origin: left center; }
.route-step:nth-child(even):not(:last-child)::after { transform: translateY(-0.8rem) rotate(-18deg); transform-origin: left center; }
.route-num {
    width: 2.6rem; height: 2.6rem;
    display: grid; place-items: center;
    margin: 0.4rem 0 0.6rem;
    font-family: var(--f-head);
    font-size: 1.4rem;
    font-weight: 600;
    border: 2.5px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
}
.route-step:hover .route-num { background: var(--blue); color: var(--paper-light); border-color: var(--blue); }
.route-step strong { font-family: var(--f-head); font-weight: 500; font-size: 1rem; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.03em; }
.route-hint { margin-top: 0.4rem; font-size: 0.72rem; line-height: 1.4; color: var(--muted); }
.route-term {
    display: inline-block;
    margin: 1.4rem 0 0;
    padding: 0.2rem 0.6rem;
    font-size: 0.9rem;
    border-left: 4px solid var(--red);
    background: rgba(200,69,45,0.07);
}

/* Блок 4: полевой блокнот */
.notebook {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 270px);
}
.notebook-main { padding-right: 2.2rem; min-width: 0; }
.notebook-lead { font-size: 0.8rem; color: var(--muted); max-width: 70ch; }
.q-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.2rem;
}
.q-item {
    display: flex; align-items: flex-start; gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.2rem 0.5rem;
    border: 0;
    border-bottom: 1.5px solid rgba(43,43,43,0.55);
    background: none;
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
}
.q-item:hover { background: rgba(31,58,95,0.06); }
.q-box {
    position: relative;
    flex: 0 0 auto;
    width: 22px; height: 22px;
    margin-top: 0.05rem;
    border: 2px solid var(--line);
    background: var(--paper-light);
}
.q-item[aria-pressed="true"] .q-box::after {
    content: "";
    position: absolute;
    left: -3px; top: -6px;
    width: 28px; height: 28px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13l6 6L22 3' fill='none' stroke='%23C8452D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.q-text { position: relative; }
.q-item[aria-pressed="true"] .q-text { color: var(--muted); text-decoration: line-through var(--red) 2px; }
.notebook-cal { padding-left: 1.8rem; border-left: 5px solid var(--line); min-width: 0; }
.cal-title { margin: 0; font-size: 1.7rem; text-transform: uppercase; color: var(--ink); }
.cal-sub { margin: 0 0 0.8rem; font-size: 0.74rem; color: var(--muted); }
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem 0;
    text-align: center;
    font-size: 0.8rem;
}
.cal-wd { font-weight: 600; font-size: 0.72rem; border-bottom: 1.5px solid var(--line); padding-bottom: 0.15rem; margin-bottom: 0.2rem; }
.cal-day { display: grid; place-items: center; height: 1.9rem; }
.cal-day.is-marked { position: relative; color: var(--red); font-weight: 600; }
.cal-day.is-marked::before {
    content: "";
    position: absolute;
    width: 1.75rem; height: 1.6rem;
    border: 2px solid var(--red);
    border-radius: 50%;
    transform: rotate(-12deg);
}
.cal-legend { margin: 0.8rem 0 0; font-size: 0.72rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.cal-ring { width: 14px; height: 12px; border: 2px solid var(--red); border-radius: 50%; flex: 0 0 auto; }

/* ---------- Внутренние страницы ---------- */
.crumbs {
    margin: 1.4rem 0 1.8rem;
    padding-bottom: 0.4rem;
    font-size: 0.78rem;
    color: var(--muted);
    border-bottom: 1.5px dashed rgba(43,43,43,0.45);
}
.crumbs a { color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--red); border-bottom-color: var(--red); }
.crumbs-sep { margin: 0 0.35rem; color: var(--red); }
.crumbs span:last-child { color: var(--ink); }

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

.page-head { margin-bottom: 1rem; }
.page-sub, .page-intro { color: var(--muted); font-size: 0.88rem; }

.sheet {
    position: relative;
    padding: 2rem 2.3rem 2.2rem;
    background: var(--paper-light);
    border: 1.5px solid var(--line);
    box-shadow: 6px 6px 0 rgba(31,58,95,0.16);
}
.sheet + .sheet, .post-nav + .sheet { margin-top: 2.4rem; }
.entry-head { padding-bottom: 1rem; margin-bottom: 1.4rem; border-bottom: 5px double var(--line); }
.entry-title {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--blue);
}
.entry-meta { margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.entry-cats a { display: inline-block; margin-right: 0.4rem; padding: 0 0.4rem; color: var(--red); border: 1.5px solid var(--red); border-radius: 3px; text-decoration: none; font-size: 0.72rem; text-transform: uppercase; }
.entry-cover { margin: 0 0 1.6rem; padding: 7px 7px 9px; background: #FBFAF6; box-shadow: 1px 2px 5px rgba(0,0,0,0.2); }
.entry-cover img { display: block; width: 100%; }
.entry { font-size: 0.95rem; }
.entry h2 { font-size: 1.7rem; text-transform: uppercase; padding-bottom: 0.2rem; border-bottom: 2px solid var(--line); }
.entry h3 { font-size: 1.35rem; }
.entry h4 { font-size: 1.12rem; color: var(--ink); }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.entry li { margin-bottom: 0.35em; }
.entry ul li::marker { content: "■  "; color: var(--red); font-size: 0.7em; }
.entry ol li::marker { font-family: var(--f-head); color: var(--blue); font-weight: 600; }
.entry img { display: block; max-width: 100%; height: auto; }
.entry figure { margin: 1.4em 0; }
.entry figcaption { font-size: 0.76rem; color: var(--muted); margin-top: 0.4rem; }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1rem 1.5rem;
    background: rgba(31,58,95,0.06);
    border-left: 6px solid var(--blue);
    font-size: 1rem;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.86rem; border: 2px solid var(--line); }
.entry th, .entry td { border: 1.5px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.entry th { background: rgba(31,58,95,0.08); font-weight: 600; }
.entry pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--paper-dark); border: 1.5px solid var(--line); font-size: 0.85rem; }
.entry code { background: rgba(31,58,95,0.08); padding: 0.05rem 0.3rem; }
.entry hr { border: 0; border-top: 5px solid var(--line); margin: 2em 0; }
.entry a { color: var(--blue); }
.entry-tags { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.8rem; }
.entry-tags a { text-decoration: none; padding: 0.1rem 0.5rem; border-bottom: 1.5px solid var(--line); color: var(--ink); }
.entry-tags a:hover { background: var(--blue); color: var(--paper); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.post-nav-link {
    display: block;
    padding: 0.9rem 1.1rem;
    background: var(--card);
    border: 3px double rgba(43,43,43,0.55);
    text-decoration: none;
    color: var(--ink);
    font-family: var(--f-head);
    font-size: 1.05rem;
    line-height: 1.25;
}
.post-nav-link span { display: block; margin-bottom: 0.25rem; font-family: var(--f-mono); font-size: 0.7rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.06em; }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-link:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line); color: var(--blue); }

/* Пагинация (type => plain) */
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 2.4rem 0 0.4rem; align-items: center; }
.pager .page-numbers {
    display: inline-grid; place-items: center;
    min-width: 2.4rem; height: 2.4rem;
    padding: 0 0.7rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper-light);
    border: 2px solid var(--line);
}
.pager a.page-numbers:hover { background: var(--blue); color: var(--paper-light); border-color: var(--blue); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line); }
.pager .page-numbers.current { background: var(--red); border-color: var(--red); color: var(--paper-light); transform: rotate(-3deg); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; }

/* Сайдбар */
.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem 1.4rem;
    background-color: var(--paper-dark);
    background-image: repeating-linear-gradient(0deg, transparent 0 27px, rgba(31,58,95,0.12) 27px 28px);
    border: 4px double var(--line);
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    margin: 0 0 0.8rem;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--blue);
    padding-bottom: 0.3rem;
    border-bottom: 2px solid var(--line);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.45rem 0; border-bottom: 1px dashed rgba(43,43,43,0.45); font-size: 0.84rem; line-height: 1.45; color: var(--ink); }
.sidebar li a { color: var(--ink); text-decoration: none; }
.sidebar li a:hover { color: var(--red); }
.sidebar .post-date { display: block; font-size: 0.72rem; color: var(--muted); }
.sidebar p { font-size: 0.85rem; color: var(--ink); }

/* Поиск */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.55rem 0.4rem;
    font: inherit;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 2px solid var(--line);
}
.search-field::placeholder { color: var(--muted); }
.search-submit, .comment-form .submit, .cookie-accept {
    padding: 0.5rem 1.2rem;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--paper-light);
    background: var(--red);
    border: 2px solid var(--red);
    border-radius: 4px;
    box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(255,255,255,0.45);
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s;
}
.search-submit:hover, .comment-form .submit:hover, .cookie-accept:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line), inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(255,255,255,0.45); }

.empty-sheet { padding: 1.6rem 1.8rem; background: var(--paper-light); border: 1.5px dashed var(--line); }
.sheet-404 { text-align: left; }
.sheet-404 .entry-title { margin-bottom: 1rem; }

/* Комментарии */
.comments { margin-top: 2.4rem; }
.comments-title, .comment-reply-title { margin-top: 0; font-size: 1.5rem; text-transform: uppercase; color: var(--blue); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 3px solid rgba(31,58,95,0.25); }
.note-body { padding: 1rem 0 1rem; border-bottom: 1.5px dashed rgba(43,43,43,0.45); }
.note-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.note-avatar { border-radius: 50%; border: 2px solid var(--line); }
.note-author { font-weight: 600; }
.note-date { font-size: 0.74rem; color: var(--muted); }
.note-wait { color: var(--red); font-size: 0.8rem; margin: 0.4rem 0 0; }
.note-text { font-size: 0.9rem; margin-top: 0.4rem; }
.note-reply a { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--red); }
.comment-respond { margin-top: 1.8rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 0.2rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.5rem 0.4rem;
    font: inherit;
    color: var(--ink);
    background: rgba(255,255,255,0.35);
    border: 0;
    border-bottom: 2px solid var(--line);
}
.comment-form textarea { border: 2px solid var(--line); background-image: repeating-linear-gradient(0deg, transparent 0 25px, rgba(31,58,95,0.15) 25px 26px); line-height: 26px; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as, .must-log-in { font-size: 0.8rem; color: var(--muted); }

/* ---------- Подвал ---------- */
.site-foot {
    padding: 2.8rem 0 2rem;
    background-color: var(--blue);
    background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 6px solid var(--line);
    color: #F4F1EA;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 3rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title {
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    padding-bottom: 0.35rem;
    border-bottom: 1.5px solid rgba(244,241,234,0.45);
}
.site-foot p, .site-foot .textwidget { font-size: 0.82rem; line-height: 1.6; color: #E4E0D6; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.4rem; font-size: 0.84rem; color: #E4E0D6; }
.site-foot a { color: #FFFFFF; text-decoration: underline; text-decoration-color: rgba(255,255,255,0.45); text-underline-offset: 4px; }
.site-foot a:hover { color: #FFD3C8; text-decoration-color: var(--red); }
.foot-copy {
    margin: 2.2rem 0 0;
    padding-top: 1rem;
    border-top: 1px dashed rgba(244,241,234,0.4);
    font-size: 0.76rem;
    color: #D9D4C8;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 50%; bottom: 1rem;
    z-index: 90;
    width: min(92%, 760px);
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1rem 1.3rem;
    background: var(--paper-light);
    color: var(--ink);
    border: 4px double var(--line);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.35);
}
.cookie-text { margin: 0; font-size: 0.8rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .folder { padding: 1.4rem 1.8rem 2rem 3.2rem; }
    .folder::before { left: 8px; }
    .masthead { grid-template-columns: minmax(0, 1fr); }
    .nav-fields { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1rem; }
    .map-layout { grid-template-columns: minmax(0, 1fr); }
    .tick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-pair { grid-template-columns: minmax(0, 1fr); }
    .fs-pair .fs-compare { padding-right: 0; }
    .fs-pair .fs-latest { padding-left: 0; border-left: 0; border-top: 5px solid var(--line); }
    .route { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
    .route-step:nth-child(3)::after { display: none; }
    .notebook { grid-template-columns: minmax(0, 1fr); }
    .notebook-main { padding-right: 0; }
    .notebook-cal { padding-left: 0; padding-top: 1.6rem; margin-top: 1.8rem; border-left: 0; border-top: 5px solid var(--line); max-width: 360px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single .content-area { width: 100%; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .shell { width: 94%; }
    .folder { margin-top: 2.6rem; padding: 1rem 1rem 1.6rem 1.9rem; box-shadow: 4px 4px 0 -1px #D9D1BE, 4px 4px 0 0 rgba(0,0,0,0.25), 0 12px 24px rgba(0,0,0,0.35); }
    .folder::before { left: 4px; width: 16px; background-size: 16px 240px; }
    .folder-tabs { top: -1.7rem; left: 8%; gap: 0.6rem; }
    .folder-tabs span { width: 80px; height: 1.8rem; }
    .folder-tabs span:nth-child(3) { display: none; }
    .brand { align-items: flex-start; gap: 0.8rem; }
    .brand-mark, .brand-logo { width: 52px; height: 52px; }
    .nav-toggle {
        display: inline-flex; align-items: center; gap: 0.6rem;
        justify-self: start;
        padding: 0.45rem 0.9rem;
        font: inherit; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em;
        color: var(--ink);
        background: var(--paper-light);
        border: 2px solid var(--line);
        cursor: pointer;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
    .nav-toggle-bars::before { position: absolute; top: -6px; }
    .nav-toggle-bars::after { position: absolute; top: 6px; }
    .site-nav { display: none; }
    .site-nav.is-open { display: block; }
    .nav-fields { grid-auto-flow: row; gap: 0.1rem; min-width: 0; }
    .fs { padding: 1.8rem 0 2rem; }
    .seal { position: static; display: inline-flex; margin: 0 0 1rem 0.4rem; transform: rotate(-6deg) scale(0.85); transform-origin: left center; }
    .brand-name { font-size: 1.32rem; }
    .stamp-title { padding: 0.2em 0.45em; border-width: 5px; }
    .plan { padding: 0.6rem 0 0; }
    .plan-label, .plan-leaders { display: none; }
    .plan-cap { margin-top: 0.8rem; }
    .tick-list { grid-template-columns: minmax(0, 1fr); }
    .tick-item { grid-template-columns: 32px 32px minmax(0, 1fr); }
    .tick-num, .tick-box { width: 32px; height: 32px; }
    .tick-box svg { width: 24px; height: 24px; }
    .ledger { font-size: 0.76rem; }
    .ledger th, .ledger td { padding: 0.4rem 0.35rem; }
    .ledger td { font-size: 1.2rem; padding-right: 1.3rem; }
    .ledger td.best::after { width: 16px; height: 16px; margin-top: -10px; right: 2px; }
    .card--stack { flex-direction: column; }
    .card--stack:nth-child(n) { transform: none; margin-top: 1.8rem; }
    .card--stack .card-thumb-wrap { flex: none; width: auto; align-self: stretch; margin: 0.9rem 0.9rem 0; order: -1; transform: none; }
    .card--stack .card-thumb-wrap img { height: auto; aspect-ratio: 16 / 9; }
    .card-body { padding: 1rem 1rem 1.2rem; }
    .route { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; padding-bottom: 0; }
    .route-step { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; gap: 0 0.8rem; padding: 0.8rem 1rem; }
    .route-step:nth-child(n) { transform: none; }
    .route-step::before { display: none; }
    .route-step:not(:last-child)::after { display: block; top: 100%; left: 2.3rem; width: 2px; height: 1.6rem; transform: none; background: linear-gradient(var(--line) 0 4px, transparent 4px) 0 0 / 2px 7px repeat-y; }
    .route-step:nth-child(odd):not(:last-child)::after, .route-step:nth-child(even):not(:last-child)::after { transform: none; }
    .route-num { margin: 0; flex: 0 0 auto; }
    .route-step strong { flex: 1; min-width: 0; }
    .route-hint { flex-basis: 100%; padding-left: 3.4rem; margin-top: 0.2rem; }
    .q-list { grid-template-columns: minmax(0, 1fr); }
    .sheet { padding: 1.3rem 1.1rem 1.4rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .sidebar { padding: 1.2rem 1rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: flex-start; gap: 0.7rem; padding: 0.9rem 1rem; }
}

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