/*
Theme Name: dds_academiabarbaratorres.com
Theme URI: https://academiabarbaratorres.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: abtdelo
*/

/* ==========================================================
   Шрифты (вложены в тему)
   ========================================================== */
@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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }
@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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }
@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, U+2190-21FF; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD, U+2190-21FF; }

/* ==========================================================
   Переменные
   ========================================================== */
:root {
    --folder: #1E2A38;
    --folder-deep: #16202B;
    --milk: #F4EFE6;
    --card: #FBF8F1;
    --blank: #DCE6EC;
    --sand: #E8DFC8;
    --brick: #A63C2E;
    --brick-deep: #8E3125;
    --ink: #22262B;
    --ink-soft: #3E464E;
    --muted: #6B7A88;
    --line: #2F5D7C;
    --gold: #E3D4B7;
    --fog: #B7C2CC;
    --edge: #CFC6B3;

    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-text: "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

    --paper-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 18px 28px -14px rgba(5, 10, 16, .65);
    --grid-mm: repeating-linear-gradient(0deg, rgba(47, 93, 124, .2) 0 1px, transparent 1px 50px),
               repeating-linear-gradient(90deg, rgba(47, 93, 124, .2) 0 1px, transparent 1px 50px),
               repeating-linear-gradient(0deg, rgba(47, 93, 124, .09) 0 1px, transparent 1px 10px),
               repeating-linear-gradient(90deg, rgba(47, 93, 124, .09) 0 1px, transparent 1px 10px);
}

/* ==========================================================
   Служебные правила для [hidden] — до основных стилей
   ========================================================== */
.cookie-banner[hidden] { display: none !important; }
.site-nav[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-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--milk);
    background-color: var(--folder);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .05), transparent 60%),
        linear-gradient(rgba(30, 42, 56, .35), rgba(30, 42, 56, .35)),
        url("images/cardboard.jpg");
    background-size: auto, auto, 384px auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
.cover-title, .sec-title, .big-title, .page-title, .entry-title,
.rights-quote p, .card-title, .route-name, .co-name { hyphens: manual; }

p { margin: 0 0 1em; }

p, li, td, th, dd, figcaption, blockquote {
    overflow-wrap: break-word;
    hyphens: auto;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

button, input, textarea, select { font: inherit; }

:focus-visible {
    outline: 2px dashed var(--brick);
    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-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 200;
    padding: .6rem 1rem;
    background: var(--milk);
    color: var(--ink);
    font-family: var(--f-head);
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ==========================================================
   Общие элементы: листы, штампы, кнопки, ссылки
   ========================================================== */
.sheet {
    position: relative;
    color: var(--ink);
    box-shadow: var(--paper-shadow);
}

.sheet-milk {
    background-color: var(--milk);
    background-image: linear-gradient(rgba(244, 239, 230, .74), rgba(244, 239, 230, .74)), url("images/paper.jpg");
    background-size: auto, 552px auto;
}

.sheet-cream {
    background-color: var(--sand);
    background-image: linear-gradient(rgba(232, 223, 200, .55), rgba(232, 223, 200, .55)), url("images/paper.jpg");
    background-size: auto, 552px auto;
}

.sheet-blank {
    background-color: var(--blank);
    background-image: var(--grid-mm);
}

.paperclip {
    position: absolute;
    z-index: 5;
    width: 24px;
    height: auto;
    filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .35));
    pointer-events: none;
}

.file-tag {
    display: inline-block;
    margin: 0 0 .7rem;
    padding-bottom: .15rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid currentColor;
}

.stamp {
    font-family: var(--f-head);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    pointer-events: none;
    user-select: none;
}

.stamp-rect {
    display: inline-block;
    padding: .2em .55em;
    color: var(--brick);
    border: 3px solid currentColor;
    box-shadow: inset 0 0 0 3px var(--milk), inset 0 0 0 5px currentColor;
    transform: rotate(-11deg);
    opacity: .9;
    mix-blend-mode: multiply;
}

.btn-blank {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.15rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .95rem;
    line-height: 1.2;
    letter-spacing: .12em;
    color: var(--line);
    background: transparent;
    border: 3px double var(--line);
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-blank:hover,
.btn-blank:focus-visible {
    background: var(--line);
    color: var(--milk);
}
.btn-sm {
    padding: .32rem .7rem;
    font-size: .82rem;
    letter-spacing: .08em;
    white-space: nowrap;
}
.btn-light {
    color: var(--milk);
    border-color: var(--milk);
}
.btn-light:hover,
.btn-light:focus-visible {
    background: var(--milk);
    color: var(--brick);
}

.link-arrow {
    font-family: var(--f-head);
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--line);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    white-space: nowrap;
}
.link-arrow::after {
    content: " →";
    display: inline-block;
    transition: transform .15s;
}
.link-arrow:hover::after { transform: translateX(4px); }

.sec-head {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
}
.sec-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.05;
    color: var(--ink);
    min-width: 0;
}
.sec-rule {
    flex: 1 1 2rem;
    height: 2px;
    background: var(--line);
    min-width: 2rem;
}
.sec-link { flex: 0 0 auto; }
.sec-caption {
    margin: .45rem 0 0;
    font-size: .85rem;
    letter-spacing: .04em;
    color: var(--muted);
}

.empty-note {
    margin: 1rem 0 0;
    font-size: 1rem;
    color: var(--ink-soft);
}

/* ==========================================================
   Шапка
   ========================================================== */
.site-head {
    padding: 1.3rem 0;
    border-bottom: 1px solid rgba(244, 239, 230, .08);
}

.head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 640px;
}

.brand-mark {
    flex: 0 0 auto;
    display: block;
    padding-right: 1.2rem;
    color: var(--gold);
    border-right: 2px solid rgba(227, 212, 183, .55);
    line-height: 0;
}
.brand-stamp { display: block; width: 76px; height: 76px; }
.brand-logo { display: block; max-height: 76px; width: auto; }

.brand-text { min-width: 0; }

.brand-name {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: .01em;
    color: var(--gold);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
.brand-name a { color: inherit; text-decoration: none; }
.brand-name a:hover { text-decoration: underline; text-underline-offset: 3px; }

.brand-desc {
    margin: .35rem 0 0;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--fog);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.site-nav { flex: 0 0 auto; }

.nav-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list li + li { border-left: 1.5px solid rgba(244, 239, 230, .5); }
.nav-list a {
    display: block;
    padding: .1rem 1.05rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.18rem;
    color: var(--milk);
    text-decoration: none;
    text-underline-offset: .35em;
    text-decoration-thickness: 2px;
}
.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    text-decoration-line: underline;
    color: #FFFFFF;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    padding: .5rem .8rem;
    font-family: var(--f-head);
    font-weight: 500;
    letter-spacing: .1em;
    color: var(--milk);
    background: transparent;
    border: 3px double rgba(244, 239, 230, .7);
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ==========================================================
   Главная
   ========================================================== */
.fp {
    width: 85%;
    max-width: 1320px;
    margin: 2.4rem auto 0;
}

/* --- Блок 1: обложка + маршрут --- */
.fs-case { position: relative; }

.case-cover {
    z-index: 2;
    padding: 3rem 3.2rem 3.2rem;
    transform: rotate(-.5deg);
}
.case-cover::after {
    content: "";
    position: absolute;
    right: 3rem;
    bottom: 1.6rem;
    width: 34%;
    height: 1px;
    background: var(--line);
    opacity: .7;
}
.clip-cover { top: -1.6rem; left: 2.2rem; transform: rotate(-9deg); }

.cover-title {
    margin: 0 0 .9rem;
    padding-right: 13rem;
    font-weight: 700;
    font-size: clamp(2.6rem, 6.6vw, 6rem);
    line-height: .96;
    letter-spacing: -.005em;
    color: var(--ink);
}
.cover-lead {
    margin: 0 0 1rem;
    max-width: 34ch;
    font-family: var(--f-head);
    hyphens: manual;
    font-weight: 600;
    font-size: clamp(1.25rem, 2.5vw, 2.1rem);
    line-height: 1.15;
    color: var(--ink);
}
.cover-note {
    margin: 0;
    max-width: 54ch;
    font-size: .95rem;
    color: var(--ink-soft);
}
.case-cover .stamp-rect {
    position: absolute;
    top: 3rem;
    right: 3rem;
    font-size: clamp(1.3rem, 2.6vw, 2.4rem);
}

.case-route {
    z-index: 1;
    margin-top: -.6rem;
    padding: 2.6rem 2.8rem 2rem;
    transform: rotate(.25deg);
}
.clip-route { top: -1.5rem; right: 3.4rem; transform: rotate(16deg); }

.route {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2.4rem;
    margin: 1.8rem 0 1.4rem;
    padding: 0;
    list-style: none;
}
.route-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    min-width: 0;
    padding: 1rem .7rem 1.1rem;
    text-align: center;
    background: rgba(244, 239, 230, .9);
    border: 3px double var(--line);
}
.route-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -2.3rem;
    width: 2.1rem;
    height: 14px;
    margin-top: -7px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14'%3E%3Cpath d='M0 7h28' stroke='%232F5D7C' stroke-width='2'/%3E%3Cpath d='M22 1l10 6-10 6z' fill='%232F5D7C'/%3E%3C/svg%3E") no-repeat center / contain;
}
.route-num {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--line);
}
.route-name {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.15;
    color: var(--ink);
}
.route-note {
    font-size: .8rem;
    line-height: 1.35;
    color: var(--ink-soft);
}
.route-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 2rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(47, 93, 124, .5);
}
.route-remark {
    margin: 0;
    font-size: .85rem;
    font-style: italic;
    color: var(--ink-soft);
}

/* --- Блок 2: кто может претендовать --- */
.fs-who {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 25%);
    align-items: center;
    margin-top: 1.6rem;
}
.who-sheet {
    display: flex;
    min-width: 0;
    transform: rotate(-.3deg);
}
.who-strip {
    flex: 0 0 4.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 0;
    background: var(--brick);
}
.who-strip span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--milk);
    white-space: nowrap;
}
.who-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2.2rem 2.6rem 1.8rem 2.2rem;
}
.who-table {
    width: 100%;
    margin-top: 1.3rem;
    border-collapse: collapse;
    border-top: 1.5px solid var(--line);
    border-bottom: 1.5px solid var(--line);
}
.who-table th,
.who-table td {
    padding: .75rem .95rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
}
.who-table th {
    width: 36%;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--ink);
    border-right: 1px solid var(--line);
}
.who-table td {
    font-size: .95rem;
    line-height: 1.45;
    color: var(--ink-soft);
}
.who-note {
    margin: 1rem 0 0;
    font-size: .82rem;
    color: var(--muted);
}

.who-photo {
    position: relative;
    z-index: 3;
    margin: 0 0 0 -2.2rem;
    padding: .85rem .85rem 2.4rem;
    background: #FAF8F3;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, .65);
    transform: rotate(3deg);
}
.who-photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 885 / 789;
    object-fit: cover;
}
.who-photo figcaption {
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .65rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: .06em;
    text-align: center;
    color: var(--muted);
}

/* --- Последние материалы --- */
.fs-latest {
    margin-top: 1.6rem;
    padding: 2.2rem 2.4rem 2.6rem;
}
.fs-latest .cards { margin-top: 1.8rem; }
/* закреплённая запись поднимается первой; карточка сверх лимита на главной не выводится */
.fs-latest .cards .card:nth-child(n+4) { display: none; }

/* --- Карточки-картотека --- */
.cards {
    display: grid;
    gap: 1.9rem;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
    --tilt: 0deg;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.15rem 1rem;
    color: var(--ink);
    container-type: inline-size;
    filter: drop-shadow(0 9px 9px rgba(10, 16, 24, .32));
    transform: rotate(var(--tilt));
    transition: transform .2s ease;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(var(--line), var(--line)) top / 100% 3px no-repeat,
        var(--card);
    box-shadow: inset 0 0 0 1px var(--edge);
    clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(to bottom left, transparent 50%, #DDD2BC 50%);
    box-shadow: -2px 2px 3px rgba(0, 0, 0, .12);
}
.cards .card:nth-child(3n+1) { --tilt: -1.1deg; }
.cards .card:nth-child(3n+2) { --tilt: .8deg; }
.cards .card:nth-child(3n) { --tilt: -.45deg; }
.cards .card:hover,
.cards .card:focus-within { transform: rotate(0deg) translateY(-4px); }

.card-no {
    display: block;
    margin: 0 2rem .65rem 0;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.card-body {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
}
.card-thumb {
    flex: 0 0 108px;
    display: block;
    border: 4px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .28);
    background: var(--sand);
}
.card-img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: cover;
    filter: sepia(.12);
}
.card-text {
    flex: 1 1 auto;
    min-width: 0;
}
.card-pin {
    display: inline-block;
    margin-bottom: .35rem;
    padding: 0 .4rem;
    font-family: var(--f-head);
    font-size: .7rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--milk);
    background: var(--brick);
}
.card-title {
    margin: 0 0 .45rem;
    font-weight: 600;
    font-size: 1.14rem;
    line-height: 1.2;
}
.card-title a {
    color: var(--ink);
    text-decoration: none;
}
.card-title a:hover {
    color: var(--line);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.card-excerpt {
    font-size: .9rem;
    line-height: 1.45;
    color: var(--ink-soft);
}
.card-excerpt p {
    margin: 0 0 .5em;
    background: none;
}
.card-excerpt a { color: var(--line); }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid var(--edge);
}
.card-date,
.date-stamp {
    display: inline-block;
    padding: .05rem .45rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .06em;
    color: var(--brick);
    border: 1.5px solid currentColor;
    transform: rotate(-3deg);
    opacity: .9;
}

@container (max-width: 300px) {
    .card-body { flex-direction: column; }
    .card-thumb { flex: none; width: 100%; }
    .card-img { height: auto; aspect-ratio: 16 / 9; }
}

/* --- Блок 3: разбор заявления --- */
.fs-form {
    display: grid;
    grid-template-columns: minmax(0, 27%) minmax(0, 1fr);
    gap: 2.2rem;
    margin-top: 1.6rem;
    padding: 2.6rem 2.8rem 0;
    transform: rotate(-.2deg);
}
.clip-form { top: -1.4rem; right: 2.6rem; transform: rotate(12deg); }

.form-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}
.big-title {
    margin: 0 0 1.1rem;
    padding-bottom: .55rem;
    font-weight: 700;
    font-size: clamp(2.3rem, 4.4vw, 3.9rem);
    line-height: .98;
    color: var(--ink);
    border-bottom: 3px solid var(--line);
}
.form-text {
    margin: 0 0 1.4rem;
    font-size: .95rem;
    color: var(--ink-soft);
}
.form-plan {
    display: block;
    margin-top: auto;
    margin-left: -2.8rem;
    width: calc(100% + 2.8rem);
    max-width: none;
    height: auto;
    aspect-ratio: 736 / 470;
    object-fit: cover;
    mix-blend-mode: multiply;
    opacity: .9;
    -webkit-mask-image: linear-gradient(to top, #000 70%, transparent);
    mask-image: linear-gradient(to top, #000 70%, transparent);
}

.form-figure {
    margin: 0;
    padding-bottom: 2.6rem;
    min-width: 0;
}
.form-stage {
    position: relative;
    aspect-ratio: 1000 / 460;
}
.form-leaders {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}
.form-leaders path {
    fill: none;
    stroke: var(--line);
    stroke-width: 1.6;
    vector-effect: non-scaling-stroke;
}
.form-paper {
    position: absolute;
    left: 20%;
    top: 2.8%;
    width: 60%;
    filter: drop-shadow(0 14px 14px rgba(40, 30, 15, .35));
}
.form-paper img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1170 / 844;
}
.form-name {
    position: absolute;
    left: 45.3%;
    top: 16.4%;
    transform: translate(-50%, -50%) rotate(-3.6deg);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(.85rem, 1.9vw, 1.65rem);
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink);
}
.pin {
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    margin: -.75rem 0 0 -.75rem;
    display: grid;
    place-items: center;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .75rem;
    line-height: 1;
    color: var(--milk);
    background: var(--line);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(244, 239, 230, .9);
}
.pin-1 { left: 9.4%; top: 22.3%; }
.pin-2 { left: 10.7%; top: 60.2%; }
.pin-3 { left: 87%; top: 27.3%; }
.pin-4 { left: 88.5%; top: 79.6%; }

.callouts {
    margin: 0;
    padding: 0;
    list-style: none;
}
.callout {
    position: absolute;
    width: 18%;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.co-name {
    display: block;
    padding: .3rem .55rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(.85rem, 1.35vw, 1.12rem);
    line-height: 1.2;
    color: var(--ink);
    background: rgba(244, 239, 230, .8);
    border: 3px double var(--line);
}
.co-name b {
    margin-right: .3rem;
    color: var(--brick);
}
.co-text {
    font-size: .78rem;
    line-height: 1.35;
    color: var(--ink-soft);
}
.co-1 { left: 0; top: 9.6%; }
.co-2 { left: 0; top: 54.8%; }
.co-3 { right: 0; top: 14.3%; text-align: right; }
.co-4 { right: 0; top: 66.1%; text-align: right; }

/* --- Блок 4: права семьи --- */
.fs-rights {
    position: relative;
    margin-top: 1.6rem;
    padding: 2.4rem 3rem 3rem;
    color: var(--milk);
    background-color: var(--brick);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, .06), transparent 55%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 0, 0, .12), transparent 60%),
        repeating-linear-gradient(115deg, rgba(0, 0, 0, .025) 0 2px, transparent 2px 6px);
    box-shadow: var(--paper-shadow);
}
.rights-keys {
    position: absolute;
    z-index: 3;
    left: -1.6rem;
    bottom: -5rem;
    width: 190px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(2px 6px 5px rgba(0, 0, 0, .45));
}
.rights-plan {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    width: 92px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(-3px 4px 4px rgba(0, 0, 0, .3));
}
.rights-label {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 0 0 1.3rem;
    padding-bottom: .2rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--milk);
    border-bottom: 1px solid rgba(244, 239, 230, .7);
}
.rights-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2.4rem;
}
.rights-quote {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 2.1rem 2.6rem;
    color: var(--ink);
    background-color: var(--milk);
    background-image: linear-gradient(rgba(244, 239, 230, .7), rgba(244, 239, 230, .7)), url("images/paper.jpg");
    background-size: auto, 552px auto;
    box-shadow: 0 18px 26px -12px rgba(0, 0, 0, .6);
    transform: rotate(-2deg);
}
.rights-quote p {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.45rem, 3.3vw, 2.85rem);
    line-height: 1.1;
}
.stamp-round {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 9.5rem;
    height: 9.5rem;
    font-size: 1.15rem;
    line-height: 1.08;
    text-align: center;
    color: var(--milk);
    border: 3px solid var(--milk);
    border-radius: 50%;
    box-shadow: inset 0 0 0 5px var(--brick), inset 0 0 0 7px var(--milk);
    transform: rotate(-10deg);
    opacity: .9;
}
.rights-foot {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.8rem;
    margin-top: 2.4rem;
    padding: 0 6rem 0 7rem;
}
.rights-sub {
    flex: 1 1 18rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: .04em;
    color: var(--gold);
}
.rights-sub::before,
.rights-sub::after {
    content: "";
    flex: 1 1 1.5rem;
    min-width: 1.5rem;
    height: 1px;
    background: rgba(244, 239, 230, .6);
}

/* ==========================================================
   Внутренние страницы
   ========================================================== */
.inner { padding-bottom: 1rem; }

.crumbs {
    padding: 1.6rem 0 1.2rem;
    font-size: .9rem;
    line-height: 1.5;
    color: var(--fog);
    overflow-wrap: break-word;
}
.crumbs a {
    color: var(--milk);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { margin: 0 .35rem; color: var(--gold); }
.crumbs-current { color: var(--gold); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
}
.layout-single { display: block; }
.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.clip-head { top: -1.3rem; left: 2rem; transform: rotate(-7deg); }

.list-head {
    margin-bottom: 2.2rem;
    padding: 2.2rem 2.4rem 2rem;
}
.page-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
    color: var(--ink);
}
.list-intro {
    margin-top: 1rem;
    font-size: .98rem;
    color: var(--ink-soft);
}
.list-intro > *:last-child { margin-bottom: 0; }
.list-search { margin-top: 1.2rem; max-width: 520px; }

.empty-sheet { padding: 2rem 2.2rem; }
.empty-sheet .search-form { margin-top: 1.2rem; max-width: 520px; }

/* Запись и страница */
.entry {
    padding: 2.6rem clamp(1.3rem, 4vw, 3rem) 2.4rem;
}
.entry::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--line);
}
.entry-head { margin-bottom: 1.6rem; }
.entry-title {
    margin: 0;
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.06;
    color: var(--ink);
}
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 1.2rem;
    margin-top: 1rem;
}
.entry-cats {
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
}
.entry-cats a {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--line);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.entry-cover {
    margin: 0 0 1.8rem;
    border: 6px solid #FFFFFF;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .25);
}
.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content {
    font-size: 1.06rem;
    line-height: 1.72;
    color: var(--ink);
    overflow-wrap: break-word;
    hyphens: auto;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    margin: 2.2rem 0 .9rem;
    padding-bottom: .35rem;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    font-weight: 600;
    border-bottom: 2px solid var(--line);
}
.entry-content h3 { margin: 1.8rem 0 .7rem; font-size: 1.4rem; }
.entry-content h4 { margin: 1.5rem 0 .6rem; font-size: 1.18rem; }
.entry-content h5,
.entry-content h6 { margin: 1.3rem 0 .5rem; font-size: 1.05rem; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content a {
    color: var(--line);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.entry-content a:hover { color: var(--brick); }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-content li { margin: .35em 0; }
.entry-content ul li::marker { color: var(--brick); }
.entry-content ol li::marker { color: var(--line); font-family: var(--f-head); font-weight: 600; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.2rem 1.6rem;
    font-size: 1.1rem;
    font-style: italic;
    background: var(--sand);
    border-left: 6px solid var(--brick);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table {
    width: 100%;
    margin: 1.4rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: .96rem;
}
.entry-content th,
.entry-content td {
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.entry-content th {
    font-family: var(--f-head);
    font-weight: 600;
    background: var(--blank);
}
.entry-content figure { margin: 1.6rem 0; }
.entry-content img { display: block; max-width: 100%; height: auto; }
.entry-content figcaption,
.wp-caption-text {
    margin-top: .5rem;
    font-size: .85rem;
    color: var(--muted);
}
.entry-content code {
    padding: .1em .35em;
    font-size: .9em;
    background: var(--sand);
}
.entry-content pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    color: var(--milk);
    background: var(--folder);
}
.entry-content pre code { padding: 0; background: none; }
.entry-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 2px dashed var(--line);
}
.page-links {
    margin-top: 1.4rem;
    font-family: var(--f-head);
}

.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.gallery-caption,
.bypostauthor,
.sticky { display: block; }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--edge);
}
.entry-tags-label {
    font-family: var(--f-head);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.entry-tags a {
    padding: .1rem .55rem;
    font-size: .85rem;
    color: var(--line);
    text-decoration: none;
    border: 1px solid var(--line);
}
.entry-tags a:hover { color: var(--milk); background: var(--line); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    margin: 2rem 0;
}
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--ink);
    text-decoration: none;
    background: var(--blank);
    border: 3px double var(--line);
    transition: background-color .15s, color .15s;
}
.post-nav-link span {
    display: block;
    margin-bottom: .3rem;
    font-size: .75rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-link:hover { color: var(--milk); background: var(--line); }
.post-nav-link:hover span { color: var(--blank); }

/* Пагинация (paginate_links, type => plain) */
.pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
    margin: 2.6rem 0 1rem;
}
.pager .page-numbers {
    min-width: 2.7rem;
    padding: .45rem .8rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    color: var(--milk);
    text-decoration: none;
    border: 3px double rgba(244, 239, 230, .7);
    transition: background-color .15s, border-color .15s, color .15s;
}
.pager a.page-numbers:hover {
    background: var(--line);
    border-color: var(--blank);
}
.pager .page-numbers.current {
    color: var(--ink);
    background: var(--milk);
    border-color: var(--milk);
}
.pager .page-numbers.dots {
    border-color: transparent;
}

/* ==========================================================
   Сайдбар и виджеты
   ========================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    min-width: 0;
}
.sidebar .widget {
    position: relative;
    padding: 1.6rem 1.5rem 1.4rem;
    color: var(--ink);
    background-color: var(--blank);
    background-image: var(--grid-mm);
    box-shadow: var(--paper-shadow);
    transform: rotate(.4deg);
}
.sidebar .widget:nth-child(even) { transform: rotate(-.4deg); }
.sidebar .widget-title {
    margin: 0 0 .9rem;
    padding-bottom: .4rem;
    font-size: 1.3rem;
    color: var(--ink);
    border-bottom: 2px solid var(--line);
}
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--brick); }
.sidebar .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sidebar .widget li {
    padding: .55rem 0;
    line-height: 1.35;
    border-bottom: 1px solid rgba(47, 93, 124, .3);
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget li a {
    text-decoration: none;
    font-weight: 700;
}
.sidebar .widget li a:hover { text-decoration: underline; }
.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}
.sidebar .widget p { color: var(--ink-soft); }

/* ==========================================================
   Форма поиска
   ========================================================== */
.search-form {
    display: flex;
    gap: .6rem;
}
.search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: .6rem .8rem;
    font-size: 1rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0;
}
.search-field:focus { outline: 2px solid var(--line); outline-offset: 0; }
.search-submit { flex: 0 0 auto; }
.site-foot .search-field { background: var(--milk); }
.site-foot .search-submit { color: var(--milk); border-color: var(--milk); }

/* ==========================================================
   Комментарии
   ========================================================== */
.comments {
    margin-top: 2.2rem;
    padding: 2.2rem clamp(1.2rem, 3.5vw, 2.6rem);
}
.comments-title,
.comment-reply-title {
    margin: 0 0 1.2rem;
    font-size: 1.6rem;
    color: var(--ink);
}
.comment-list,
.comment-list .children {
    margin: 0;
    padding: 0;
    list-style: none;
}
.comment-list .children { padding-left: 1.6rem; }
.note { margin: 0 0 1.2rem; }
.note-body {
    padding: 1rem 1.2rem;
    background: rgba(251, 248, 241, .85);
    border-left: 3px solid var(--line);
}
.note-head {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: .6rem;
}
.note-avatar { display: block; border-radius: 0; }
.note-author {
    display: block;
    font-family: var(--f-head);
    font-weight: 600;
    color: var(--ink);
}
.note-date { font-size: .8rem; color: var(--muted); }
.note-wait { font-size: .85rem; font-style: italic; color: var(--brick); }
.note-text { color: var(--ink); }
.note-text p:last-child { margin-bottom: 0; }
.note-reply { margin-top: .5rem; }
.note-reply a {
    font-family: var(--f-head);
    font-size: .85rem;
    letter-spacing: .08em;
    color: var(--line);
}
.comment-respond { margin-top: 1.6rem; }
.comment-notes,
.logged-in-as,
.must-log-in { font-size: .9rem; color: var(--ink-soft); }
.comment-form label {
    display: block;
    margin-bottom: .3rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .92rem;
    color: var(--ink);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    font-size: 1rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 0;
}
.comment-form textarea { resize: vertical; }
.comment-form input:focus,
.comment-form textarea:focus { outline: 2px solid var(--line); outline-offset: 0; }
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}
.comment-form-cookies-consent label {
    font-family: var(--f-text);
    font-size: .88rem;
    font-weight: 400;
}
.comment-form .req { color: var(--brick); }
.comments-closed { color: var(--ink-soft); }
.comment-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: var(--f-head);
}
.comment-navigation a { color: var(--line); }

/* ==========================================================
   404
   ========================================================== */
.lost { padding: 3rem clamp(1.4rem, 4vw, 3rem) 2.6rem; }
.lost-stamp {
    position: absolute;
    top: 2.4rem;
    right: 2.4rem;
    font-size: clamp(1.1rem, 2.4vw, 1.8rem);
}
.lost-text {
    max-width: 58ch;
    margin: 1.1rem 0 0;
    color: var(--ink-soft);
}
.lost-search { max-width: 520px; margin: 1.6rem 0; }
.lost-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
    margin: 0;
}

/* ==========================================================
   Подвал
   ========================================================== */
.site-foot {
    margin-top: 4.6rem;
    padding: 3.4rem 0 1.6rem;
    color: #D3DBE2;
    background-color: var(--folder-deep);
    background-image: linear-gradient(rgba(16, 24, 33, .4), rgba(16, 24, 33, .4)), url("images/cardboard.jpg");
    background-size: auto, 384px auto;
    border-top: 1px solid rgba(244, 239, 230, .14);
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.foot-col {
    min-width: 0;
    padding: 0 2.2rem;
}
.foot-col:first-child { padding-left: 0; }
.foot-col:last-child { padding-right: 0; }
.foot-col + .foot-col { border-left: 1px solid rgba(244, 239, 230, .35); }
.site-foot .widget { margin-bottom: 1.4rem; color: #D3DBE2; }
.site-foot .widget:last-child { margin-bottom: 0; }
.site-foot .widget-title {
    margin: 0 0 .8rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--milk);
}
.site-foot .widget p,
.site-foot .textwidget { font-size: .95rem; line-height: 1.55; color: #D3DBE2; }
.site-foot .widget a {
    color: var(--milk);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.site-foot .widget a:hover { color: var(--gold); }
.site-foot .widget ul {
    margin: 0;
    padding-left: 1.1rem;
    list-style: disc;
}
.site-foot .widget li {
    margin: .2rem 0 .45rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: .02em;
    color: var(--milk);
}
.site-foot .widget li::marker { color: var(--gold); }
.site-foot .post-date { display: block; font-size: .8rem; color: var(--fog); }
.foot-copy {
    margin: 2.6rem 0 0;
    padding-top: 1.2rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .04em;
    text-align: center;
    color: #C9D2DA;
    border-top: 1px solid rgba(244, 239, 230, .35);
}

/* ==========================================================
   Cookie-баннер
   ========================================================== */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    max-width: 780px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    color: var(--ink);
    background-color: var(--milk);
    background-image: linear-gradient(rgba(244, 239, 230, .75), rgba(244, 239, 230, .75)), url("images/paper.jpg");
    background-size: auto, 552px auto;
    border-top: 4px solid var(--brick);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .5);
}
.cookie-text {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: .92rem;
    line-height: 1.45;
}
.cookie-accept { flex: 0 0 auto; }

/* ==========================================================
   Адаптив
   ========================================================== */
@media (max-width: 1180px) {
    .route { gap: 1.9rem; }
    .route-step:not(:last-child)::after { right: -1.85rem; width: 1.7rem; }
    .co-text { font-size: .74rem; }
}

@media (max-width: 960px) {
    .head-row { flex-wrap: wrap; gap: 1rem; }
    .brand { flex: 1 1 0; max-width: none; }
    .nav-toggle { display: inline-flex; }
    .site-nav { display: none; flex: 1 1 100%; }
    .site-nav.is-open { display: block; }
    .site-nav .nav-list { flex-direction: column; padding: .4rem 0; }
    .site-nav .nav-list li + li { border-left: 0; border-top: 1px solid rgba(244, 239, 230, .2); }
    .site-nav .nav-list a { padding: .7rem 0; }

    .fp { width: 92%; margin-top: 2rem; }

    .case-cover { padding: 2.6rem 2rem 2.6rem; }
    .case-cover .stamp-rect { top: 1.4rem; right: 1.4rem; }
    .cover-title { padding-right: 9rem; }
    .case-route { padding: 2.4rem 2rem 1.8rem; }

    .route {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.7rem;
    }
    .route-step {
        display: grid;
        grid-template-columns: 3rem minmax(0, 1fr);
        align-items: center;
        column-gap: .9rem;
        row-gap: .15rem;
        text-align: left;
        padding: .85rem 1rem;
    }
    .route-num { grid-row: 1 / span 2; font-size: 1.6rem; text-align: center; }
    .route-step:not(:last-child)::after {
        top: auto;
        right: auto;
        left: 2rem;
        bottom: -1.65rem;
        width: 1.5rem;
        height: 12px;
        margin-top: 0;
        transform: rotate(90deg);
        transform-origin: left center;
    }

    .fs-who { grid-template-columns: minmax(0, 1fr); }
    .who-photo {
        justify-self: center;
        width: min(70%, 340px);
        margin: -1.4rem 0 0;
    }

    .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .fs-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
        padding: 2.4rem 2rem 0;
    }
    .form-plan {
        margin-left: -2rem;
        width: calc(100% + 4rem);
        max-height: 170px;
        order: 3;
    }
    .form-intro { flex-direction: column; }
    .form-stage { aspect-ratio: auto; }
    .form-leaders { display: none; }
    .form-paper { position: relative; left: auto; top: auto; width: 100%; }
    .callouts {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem 1.2rem;
        margin-top: 1.6rem;
    }
    .callout { position: static; width: auto; }
    .co-3, .co-4 { text-align: left; }
    .co-text { font-size: .85rem; }

    .fs-rights { padding: 2.2rem 2rem 2.6rem; }
    .rights-row { flex-direction: column; align-items: stretch; gap: 1rem; }
    .stamp-round { align-self: flex-end; width: 7.5rem; height: 7.5rem; font-size: .95rem; margin-top: -1.4rem; }
    .rights-foot { padding: 0 3rem 0 4.5rem; }
    .rights-keys { width: 120px; left: -1rem; bottom: -3.4rem; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single > .content-area { width: 100%; }

    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .foot-col { padding: 1.4rem 0; }
    .foot-col:first-child { padding-top: 0; }
    .foot-col + .foot-col { border-left: 0; border-top: 1px solid rgba(244, 239, 230, .25); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .brand { gap: .8rem; }
    .brand-mark { padding-right: .8rem; }
    .brand-stamp { width: 56px; height: 56px; }
    .brand-logo { max-height: 56px; }
    .brand-name { font-size: .92rem; }
    .brand-desc { display: none; }

    .fp { width: 94%; }
    .sheet { box-shadow: 0 12px 20px -12px rgba(5, 10, 16, .6); }

    .case-cover { padding: 2.4rem 1.3rem 2.2rem; transform: none; }
    .case-cover .stamp-rect { position: static; display: inline-block; margin-top: 1.4rem; }
    .cover-title { padding-right: 0; }
    .case-route { padding: 2.2rem 1.3rem 1.6rem; transform: none; }
    .sec-head { flex-wrap: wrap; gap: .6rem 1rem; }
    .sec-rule { flex-basis: 100%; order: 2; }
    .sec-link { order: 3; }

    .who-sheet { flex-direction: column; transform: none; }
    .who-strip { flex: none; padding: .55rem 1rem; }
    .who-strip span { writing-mode: horizontal-tb; transform: none; font-size: 1rem; }
    .who-body { padding: 1.6rem 1.3rem 1.4rem; }
    .who-table,
    .who-table tbody,
    .who-table tr,
    .who-table th,
    .who-table td { display: block; width: 100%; }
    .who-table th { border-right: 0; border-bottom: 0; padding: .7rem 0 .15rem; }
    .who-table td { padding: 0 0 .7rem; }

    .fs-latest { padding: 2rem 1.3rem 2.2rem; }
    .cards-3,
    .cards-2 { grid-template-columns: minmax(0, 1fr); }

    .fs-form { padding: 2.2rem 1.3rem 0; transform: none; }
    .form-plan { margin-left: -1.3rem; width: calc(100% + 2.6rem); }
    .callouts { grid-template-columns: minmax(0, 1fr); }
    .pin { width: 1.2rem; height: 1.2rem; margin: -.6rem 0 0 -.6rem; font-size: .65rem; }

    .fs-rights { padding: 2rem 1.3rem 2.4rem; }
    .rights-quote { padding: 1.5rem 1.3rem; transform: rotate(-1deg); }
    .rights-foot { padding: 0 0 0 4.2rem; }
    .rights-sub::before { display: none; }
    .rights-plan { display: none; }
    .rights-keys { width: 92px; left: -.6rem; bottom: -2.6rem; }

    .list-head { padding: 2rem 1.3rem 1.6rem; }
    .entry { padding: 2.2rem 1.2rem 2rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .lost-stamp { position: static; display: inline-block; margin-bottom: 1rem; }
    .search-form { flex-wrap: wrap; }
    .search-submit { flex: 1 1 100%; justify-content: center; }

    .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
    .cookie-accept { justify-content: center; }

    .alignleft,
    .alignright { float: none; margin: 1rem 0; }
}

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