/*
Theme Name: dds_covid19edtechguidance.com
Theme URI: https://covid19edtechguidance.com/
Author: Анна Соколова
Description: Тема информационно-аналитического портала о трансформации рынка недвижимости под влиянием пандемии COVID-19. Стилистика полевого дневника аналитика: грифельная доска, миллиметровая сетка, бумажные вырезки и схемы.
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: cvdkhron
*/

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

/* ---------- Переменные ---------- */
:root {
    --graphite: #1C2321;
    --graphite-grid: #2E3A36;
    --mm-paper: #D9D3C3;
    --mm-line: #8FA6A0;
    --night: #121816;
    --night-2: #0E1210;
    --chalk: #EDE8DA;
    --dust: #8C9A91;
    --rust: #C4553B;
    --rust-deep: #A8432C;
    --cyan: #6FB3AD;
    --cyan-deep: #2E7F78;
    --paper: #E8E2D2;
    --ink: #242B28;
    --ink-soft: #4E5752;
    --rule: #55645C;
    --tape: rgba(214, 205, 180, 0.72);
    --sidebar-bg: #151C1A;

    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-mono: "Plex Mono", "IBM Plex Mono", "DejaVu Sans Mono", Consolas, monospace;
    --f-text: "Plex Sans", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

    --torn-a: polygon(0.0% 1px, 7.1% 2px, 14.3% 1px, 21.4% 2px, 28.6% 3px, 35.7% 0px, 42.9% 0px, 50.0% 3px, 57.1% 1px, 64.3% 1px, 71.4% 4px, 78.6% 2px, 85.7% 3px, 92.9% 2px, 100.0% 3px, calc(100% - 1px) 7.1%, calc(100% - 3px) 14.3%, calc(100% - 3px) 21.4%, calc(100% - 2px) 28.6%, calc(100% - 3px) 35.7%, calc(100% - 3px) 42.9%, calc(100% - 0px) 50.0%, calc(100% - 3px) 57.1%, calc(100% - 2px) 64.3%, calc(100% - 1px) 71.4%, calc(100% - 0px) 78.6%, calc(100% - 3px) 85.7%, calc(100% - 2px) 92.9%, calc(100% - 3px) 100.0%, 92.9% calc(100% - 4px), 85.7% calc(100% - 3px), 78.6% calc(100% - 4px), 71.4% calc(100% - 2px), 64.3% calc(100% - 3px), 57.1% calc(100% - 2px), 50.0% calc(100% - 4px), 42.9% calc(100% - 4px), 35.7% calc(100% - 0px), 28.6% calc(100% - 1px), 21.4% calc(100% - 1px), 14.3% calc(100% - 4px), 7.1% calc(100% - 2px), 0.0% calc(100% - 3px), 1px 92.9%, 2px 85.7%, 2px 78.6%, 1px 71.4%, 2px 64.3%, 2px 57.1%, 4px 50.0%, 3px 42.9%, 4px 35.7%, 3px 28.6%, 4px 21.4%, 3px 14.3%, 1px 7.1%);
    --torn-b: polygon(0.0% 1px, 12.5% 2px, 25.0% 3px, 37.5% 1px, 50.0% 2px, 62.5% 2px, 75.0% 1px, 87.5% 2px, 100.0% 2px, calc(100% - 2px) 12.5%, calc(100% - 0px) 25.0%, calc(100% - 1px) 37.5%, calc(100% - 0px) 50.0%, calc(100% - 2px) 62.5%, calc(100% - 2px) 75.0%, calc(100% - 0px) 87.5%, calc(100% - 3px) 100.0%, 87.5% calc(100% - 3px), 75.0% calc(100% - 2px), 62.5% calc(100% - 2px), 50.0% calc(100% - 0px), 37.5% calc(100% - 0px), 25.0% calc(100% - 2px), 12.5% calc(100% - 0px), 0.0% calc(100% - 1px), 1px 87.5%, 0px 75.0%, 1px 62.5%, 1px 50.0%, 3px 37.5%, 2px 25.0%, 2px 12.5%);

    --grid-dark:
        linear-gradient(var(--graphite-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--graphite-grid) 1px, transparent 1px),
        linear-gradient(rgba(46, 58, 54, 0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 58, 54, 0.45) 1px, transparent 1px);
    --grid-paper:
        linear-gradient(rgba(143, 166, 160, 0.75) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 166, 160, 0.75) 1px, transparent 1px),
        linear-gradient(rgba(143, 166, 160, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 166, 160, 0.28) 1px, transparent 1px);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--graphite);
    background-image:
        radial-gradient(ellipse 380px 220px at 12% 22%, rgba(237, 232, 218, 0.035), transparent 70%),
        radial-gradient(ellipse 300px 180px at 86% 64%, rgba(237, 232, 218, 0.03), transparent 70%),
        var(--grid-dark);
    background-size: auto, auto, 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    color: var(--chalk);
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 1.65;
    overflow-wrap: break-word;
}
p, li, .card-excerpt, .entry-content, .timeline-text, .clip-note-label { hyphens: auto; }

img, svg { max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 0.6em;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    hyphens: manual;
}
a { color: var(--cyan); text-decoration: underline dashed 1px; text-underline-offset: 4px; transition: color .15s, background-color .15s, text-decoration-color .15s; }
a:hover { color: var(--chalk); text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--rust); 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: -60px; z-index: 100;
    background: var(--rust); color: var(--chalk); padding: 0.6rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Единый контейнер ширины */
.shell { width: min(85%, 1240px); margin-inline: auto; }

/* ---------- Кнопка-штамп ---------- */
.stamp-btn {
    display: inline-block;
    position: relative;
    padding: 0.62em 1.25em 0.55em;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--chalk);
    background: transparent;
    border: 1px dashed var(--cyan);
    border-radius: 0;
    box-shadow: inset 0 -2px 0 var(--cyan);
    cursor: pointer;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
}
.stamp-btn:hover { background: var(--cyan); color: var(--night); border-style: solid; text-decoration: none; transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--rust); }
.stamp-btn:active { transform: translate(0, 0); box-shadow: none; }
.stamp-btn-ink, .card .stamp-btn { color: var(--ink); border-color: var(--cyan-deep); box-shadow: inset 0 -2px 0 var(--cyan-deep); }
.stamp-btn-ink:hover, .card .stamp-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: 2px 2px 0 var(--rust); }
.stamp-btn-sm { font-size: 0.82rem; padding: 0.5em 0.9em 0.45em; }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background-color: var(--graphite);
    background-image: var(--grid-dark);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    border-bottom: 1px solid var(--rule);
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; }
.brand { display: flex; align-items: center; gap: 1.1rem; color: var(--chalk); text-decoration: none; min-width: 0; flex: 1 1 auto; }
.brand:hover { color: var(--chalk); }
.brand-mark { flex: 0 0 auto; color: var(--chalk); display: block; }
.brand-svg { display: block; width: 120px; height: 64px; }
.brand-logo { display: block; max-height: 72px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 600;
    text-transform: uppercase;
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: 0.03em;
    max-width: 34ch;
}
.brand-desc {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--dust);
    max-width: 62ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.main-nav { flex: 0 1 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 2.2rem; }
.nav-list a {
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.98rem;
    color: var(--chalk);
    text-decoration: none;
    padding: 0.3rem 0;
    border-bottom: 2px dashed transparent;
}
.nav-list a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--cyan); border-bottom-color: var(--cyan); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--chalk);
    border: 1px dashed var(--cyan);
    padding: 0.55rem 0.9rem;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 20px; height: 2px; background: currentColor; display: block; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Секции главной ---------- */
.fs { position: relative; padding: 4rem 0; }
.fs-title { font-size: clamp(1.9rem, 3.4vw, 3rem); color: var(--chalk); }
.fs-title-xl { font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: 1.04; letter-spacing: 0.015em; }
.fs-title-ink { color: var(--ink); }
.caps-heading {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    color: var(--chalk);
    margin-bottom: 1.4rem;
}

/* Блок 1: карта переезда */
.fs-migration {
    background-color: #1A2220;
    background-image:
        radial-gradient(ellipse 520px 260px at 18% 30%, rgba(237, 232, 218, 0.045), transparent 70%),
        radial-gradient(ellipse 420px 240px at 72% 78%, rgba(111, 179, 173, 0.05), transparent 70%),
        radial-gradient(ellipse 260px 120px at 92% 12%, rgba(237, 232, 218, 0.03), transparent 70%);
    border-bottom: 1px solid var(--rule);
    padding: 3.2rem 0 3rem;
}
.fs-migration-grid { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); gap: 2.5rem; align-items: center; }
.fs-migration-text { min-width: 0; }
.fs-lead { color: var(--dust); max-width: 42ch; font-size: 0.9rem; margin-bottom: 2rem; }
.clip-notes { display: flex; flex-direction: column; gap: 1.4rem; }
.clip-note {
    position: relative;
    width: min(100%, 360px);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.35));
}
.clip-note-paper {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    background: var(--paper);
    color: var(--ink);
    padding: 1.3rem 1.8rem 1.2rem 1.6rem;
    clip-path: var(--torn-a);
}
.clip-note-a { transform: rotate(-1.4deg); }
.clip-note-b { transform: rotate(0.9deg); margin-left: 1rem; }
.clip-note-tape {
    position: absolute;
    z-index: 2;
    left: -14px; top: 4px;
    width: 72px; height: 22px;
    background: var(--tape);
    transform: rotate(-38deg);
}
.clip-note-icon { flex: 0 0 64px; width: 64px; height: 64px; color: var(--ink); }
.clip-note-text { display: flex; flex-direction: column; min-width: 0; }
.clip-note-label { font-size: 0.9rem; letter-spacing: 0.04em; }
.clip-note-value { font-family: var(--f-head); font-weight: 600; font-size: 2.6rem; line-height: 1; }
.clip-note-word { font-weight: 500; font-size: 2.1rem; text-transform: lowercase; }

.fs-migration-map { margin: 0; min-width: 0; }
.fs-migration-map img {
    display: block;
    width: 100%;
    aspect-ratio: 1800 / 912;
    object-fit: cover;
    -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%);
}
.fs-migration-map figcaption {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--dust);
}

/* Блок 2: хроника */
.fs-chronicle { background: var(--night); padding: 3rem 0; border-bottom: 1px solid var(--rule); }
.fs-chronicle-grid { display: grid; grid-template-columns: minmax(0, 270px) minmax(0, 1fr); gap: 3rem; align-items: center; }
.fs-chronicle .fs-title { margin: 0; padding-right: 2.2rem; border-right: 1px solid var(--rule); font-size: clamp(2rem, 3.4vw, 3.1rem); }
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 0; right: 0;
    top: calc(1.6rem + 15px);
    height: 2px;
    background: var(--cyan);
    opacity: 0.85;
}
.timeline-node { position: relative; display: flex; flex-direction: column; gap: 0.7rem; padding-right: 1rem; min-width: 0; }
.timeline-date {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    line-height: 1.6rem;
    height: 1.6rem;
    white-space: nowrap;
}
.timeline-dot {
    position: relative;
    z-index: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 3px solid var(--cyan);
    background: var(--night);
    box-shadow: 0 0 0 5px var(--night);
}
.timeline-dot::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.7;
}
.timeline-text { font-size: 0.92rem; line-height: 1.5; color: var(--chalk); max-width: 22ch; }
.timeline-node.is-alert .timeline-date { color: var(--rust); }
.timeline-node.is-alert .timeline-dot { border-color: var(--rust); box-shadow: 0 0 0 5px var(--night), 0 0 0 7px rgba(196, 85, 59, 0.35); }
.timeline-node.is-alert .timeline-dot::after { background: var(--rust); opacity: 0.9; }

/* Бумажные зоны */
.fs-latest, .fs-takeaways {
    background-color: var(--mm-paper);
    background-image: var(--grid-paper);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
    color: var(--ink);
}
.fs-latest .fs-title, .fs-takeaways .fs-title { color: var(--ink); }
.fs-latest-more { margin: 2.5rem 0 0; text-align: center; }
.empty-note { color: var(--ink); font-size: 1rem; }

/* ---------- Карточки записей ---------- */
.card-grid { display: grid; gap: 2.4rem 2rem; }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-slot { position: relative; min-width: 0; transition: transform .2s; filter: drop-shadow(0 8px 12px rgba(20, 25, 23, 0.28)); }
.card-grid > .card-slot:nth-child(3n+1) { transform: rotate(-0.6deg); }
.card-grid > .card-slot:nth-child(3n+2) { transform: rotate(0.45deg); }
.card-grid > .card-slot:nth-child(3n) { transform: rotate(-0.25deg); }
.card-grid > .card-slot:hover { transform: rotate(0deg) translateY(-4px); }
.card-tape {
    position: absolute;
    z-index: 2;
    left: -14px; top: 4px;
    width: 86px; height: 26px;
    background: var(--tape);
    transform: rotate(-36deg);
    pointer-events: none;
}
.card-slot:nth-child(even) .card-tape { left: auto; right: -14px; transform: rotate(36deg); }
.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
    clip-path: var(--torn-a);
}
.card-thumb { padding: 1rem 1rem 0; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 17 / 8;
    object-fit: cover;
    mix-blend-mode: multiply;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.4rem; min-width: 0; }
.card-title {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    margin: 0 0 0.6rem;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--rust-deep); text-decoration: underline dashed 1px; }
.card-excerpt { font-size: 0.86rem; line-height: 1.55; color: var(--ink-soft); flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--cyan-deep); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; margin-top: 0.9rem; }
.card-date { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.sticky .card { box-shadow: inset 0 4px 0 var(--rust); }

/* Блок 3: квартира */
.fs-flat { background: var(--night); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.fs-flat-grid { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 0.4fr); gap: 3rem; align-items: start; }
.fs-flat-main { min-width: 0; }
.flat-figure { position: relative; margin: 1.5rem 0 0; padding: 1.5rem 0; min-height: 300px; }
.flat-plan { position: relative; width: 56%; margin-left: auto; margin-right: auto; }
.flat-plan img { display: block; width: 100%; aspect-ratio: 1089 / 897; object-fit: cover; }
.flat-pin {
    position: absolute;
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 50%;
    background: var(--rust);
    color: var(--chalk);
    border: 2px solid var(--night);
    font-family: var(--f-head);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(196, 85, 59, 0.45);
}
.flat-pin-1 { left: 5%; top: 17%; }
.flat-pin-2 { left: 95%; top: 11%; }
.flat-pin-3 { left: 94%; top: 81%; }
.flat-tags { margin: 0; }
.flat-tag {
    position: absolute;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--paper);
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.35;
    padding: 0.75rem 1rem 0.7rem 0.85rem;
    width: 22%;
    clip-path: var(--torn-b);
}
.flat-tag b {
    flex: 0 0 auto;
    font-family: var(--f-head);
    color: var(--rust-deep);
    font-size: 1rem;
    line-height: 1.2;
}
.flat-tag-1 { left: 0; top: 14%; transform: rotate(-3deg); }
.flat-tag-2 { right: 0; top: 2%; transform: rotate(-2.5deg); }
.flat-tag-3 { right: 0; bottom: 8%; transform: rotate(1.5deg); }
.fs-flat-facts { border-left: 1px solid var(--rule); padding: 0.6rem 0 0.6rem 2.2rem; min-width: 0; }
.fact-list { list-style: none; margin: 0; padding: 0; }
.fact-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.1rem;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dust);
    border-bottom: 1px dashed rgba(85, 100, 92, 0.6);
}
.fact-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.05rem;
    width: 5px; height: 5px;
    background: var(--cyan);
}
.fact-list li span { color: var(--cyan); }

/* Блок 4: выводы */
.takeaway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.takeaway { position: relative; min-width: 0; filter: drop-shadow(0 8px 12px rgba(20, 25, 23, 0.28)); }
.takeaway-a { transform: rotate(-0.8deg); }
.takeaway-b { transform: rotate(0.6deg); margin-top: 0.8rem; }
.takeaway-c { transform: rotate(-0.4deg); }
.takeaway-tape {
    position: absolute;
    z-index: 2;
    right: -12px; top: 2px;
    width: 80px; height: 24px;
    background: var(--tape);
    transform: rotate(38deg);
}
.takeaway-paper {
    background: var(--paper);
    color: var(--ink);
    padding: 1.6rem 1.7rem 1.5rem;
    clip-path: var(--torn-a);
    min-height: 100%;
}
.takeaway-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.12em;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.takeaway-title svg { flex: 0 0 36px; width: 36px; height: 36px; color: var(--ink); }
.takeaway-paper p { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.takeaway-num {
    display: block;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(2.6rem, 4.6vw, 3.8rem);
    line-height: 1;
    text-transform: uppercase;
}
.takeaway-num.is-cyan { color: var(--cyan-deep); }
.takeaway-num.is-rust { color: var(--rust); }
.takeaway-cap {
    display: block;
    margin-top: 0.4rem;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 4rem; }
.crumbs {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dust);
    margin-bottom: 1.8rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px dashed var(--rule);
}
.crumbs a { color: var(--cyan); }
.crumbs .sep { color: var(--rust); margin: 0 0.35rem; }
.crumbs-current { color: var(--chalk); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }

.list-head { margin-bottom: 2rem; }
.list-title { font-size: clamp(2rem, 3.6vw, 3rem); color: var(--chalk); margin-bottom: 0.4rem; }
.list-desc { color: var(--dust); max-width: 70ch; }
.list-desc p:last-child { margin-bottom: 0; }

.sheet {
    position: relative;
    background: var(--paper);
    color: var(--ink);
    padding: 2.4rem 2.6rem;
    clip-path: var(--torn-a);
}
.sheet a { color: var(--cyan-deep); }
.sheet a:hover { color: var(--rust-deep); }
.entry { margin-bottom: 2rem; }
.entry-head { margin-bottom: 1.6rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--rule); }
.entry-cat {
    display: inline-block;
    margin-bottom: 0.8rem;
    font-size: 0.74rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--rust);
    color: var(--rust-deep) !important;
    padding: 0.15rem 0.55rem;
}
.entry-title { font-size: clamp(1.8rem, 3.2vw, 2.7rem); color: var(--ink); margin-bottom: 0.6rem; }
.entry-date { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--ink-soft); }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content { font-family: var(--f-text); font-size: 1.04rem; line-height: 1.75; color: var(--ink); }
.entry-content > * { max-width: 100%; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content h2 { font-size: 1.75rem; margin: 2rem 0 0.8rem; color: var(--ink); }
.entry-content h3 { font-size: 1.35rem; margin: 1.7rem 0 0.7rem; color: var(--ink); }
.entry-content h4, .entry-content h5, .entry-content h6 { font-size: 1.1rem; margin: 1.4rem 0 0.6rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--rust); }
.entry-content ol li::marker { color: var(--rust-deep); font-family: var(--f-mono); }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--graphite);
    color: var(--chalk);
    border-left: 4px solid var(--rust);
    font-family: var(--f-mono);
    font-size: 0.98rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: 0.6rem; color: var(--dust); font-size: 0.82rem; font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.92rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--mm-paper); font-family: var(--f-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.8rem; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content img { display: block; }
.entry-content figcaption, .wp-caption-text { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.5rem; }
.entry-content pre, .entry-content code { font-family: var(--f-mono); font-size: 0.88rem; background: rgba(36, 43, 40, 0.08); }
.entry-content pre { padding: 1rem; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px dashed var(--rule); margin: 2rem 0; }
.alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed var(--rule); font-size: 0.8rem; }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px dashed var(--rule);
    color: var(--chalk);
    text-decoration: none;
    font-size: 0.9rem;
    min-width: 0;
}
.post-nav-link span { display: block; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.3rem; }
.post-nav-link:hover { border-color: var(--cyan); background: rgba(111, 179, 173, 0.08); color: var(--chalk); }
.post-nav-next { grid-column: 2; text-align: right; }

/* Сайдбар */
.sidebar {
    background: var(--sidebar-bg);
    border: 1px solid var(--rule);
    padding: 1.6rem 1.5rem;
    color: var(--chalk);
    min-width: 0;
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.86rem;
    letter-spacing: 0.22em;
    color: var(--chalk);
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--rule);
}
.sidebar, .sidebar p, .sidebar li { color: var(--chalk); font-size: 0.86rem; }
.sidebar a { color: var(--cyan); }
.sidebar a:hover { color: var(--chalk); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed rgba(85, 100, 92, 0.6); }
.sidebar .post-date { display: block; color: var(--dust); font-size: 0.75rem; }

/* Пагинация (type => plain) */
.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.8rem; align-items: center; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    border: 1px dashed var(--cyan);
    color: var(--chalk);
    text-decoration: none;
    font-family: var(--f-head);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
}
.pager a.page-numbers:hover { background: var(--cyan); color: var(--night); border-style: solid; }
.pager .page-numbers.current { background: var(--rust); border: 1px solid var(--rust); color: var(--chalk); }
.pager .page-numbers.dots { border: 0; min-width: auto; padding: 0 0.3rem; }
.pager-inner { margin-top: 1.5rem; }
.pager-inner a, .pager-inner .post-page-numbers { padding: 0.3rem 0.7rem; border: 1px dashed var(--cyan-deep); }

/* Поиск */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    font-family: var(--f-mono);
    font-size: 0.9rem;
    color: var(--ink);
    background: #F3EEE2;
    border: 1px solid var(--rule);
    border-radius: 0;
}
.sidebar .search-field { background: var(--night); color: var(--chalk); }
.sidebar .search-submit { color: var(--chalk); border-color: var(--cyan); box-shadow: inset 0 -2px 0 var(--cyan); }

.empty-sheet p { margin-bottom: 0.4rem; }
.notfound { text-align: left; }
.notfound-code { font-family: var(--f-head); font-weight: 600; font-size: clamp(4rem, 12vw, 8rem); line-height: 1; color: var(--rust); margin: 0 0 0.5rem; }

/* Комментарии */
.comments-area { margin-top: 0; }
.comments-title, .comment-reply-title { font-size: 1.5rem; color: var(--ink); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--rule); margin-left: 0.6rem; }
.log-entry-body { padding: 1rem 0; border-bottom: 1px dashed var(--rule); }
.log-entry-head { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline; margin-bottom: 0.4rem; font-family: var(--f-mono); }
.log-entry-author { font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.log-entry-head time { font-size: 0.78rem; color: var(--ink-soft); }
.log-entry-wait { color: var(--rust-deep); font-size: 0.85rem; }
.log-entry-text { font-family: var(--f-text); font-size: 0.95rem; }
.log-entry-reply a { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--f-mono);
    font-size: 0.92rem;
    background: #F3EEE2;
    color: var(--ink);
    border: 1px solid var(--rule);
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-size: 0.82rem; margin: 0; }
.comment-form .submit {
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    padding: 0.7rem 1.4rem;
    background: transparent;
    color: var(--ink);
    border: 1px dashed var(--cyan-deep);
    box-shadow: inset 0 -2px 0 var(--cyan-deep);
    cursor: pointer;
    border-radius: 0;
}
.comment-form .submit:hover { background: var(--ink); color: var(--paper); border-style: solid; }
.comment-notes, .logged-in-as { font-size: 0.82rem; color: var(--ink-soft); }
.comments-area .comment-navigation { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-size: 0.85rem; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--night-2);
    color: var(--chalk);
    padding: 3.2rem 0 2rem;
    border-top: 1px solid var(--rule);
}
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--rule); }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.5rem; }
.colophon .widget-title {
    font-family: var(--f-mono);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.24em;
    color: var(--chalk);
    margin-bottom: 0.7rem;
}
.colophon, .colophon p, .colophon li, .colophon .textwidget { color: #CFCABC; font-size: 0.85rem; line-height: 1.6; }
.colophon a { color: var(--cyan); }
.colophon a:hover { color: var(--chalk); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: 0.18rem 0; }
.colophon-copy { margin: 1.4rem 0 0; text-align: center; font-size: 0.74rem; color: var(--cyan); letter-spacing: 0.02em; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.4rem;
    background: var(--night);
    color: var(--chalk);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--rust);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.cookie-banner-text { margin: 0; font-size: 0.82rem; line-height: 1.5; color: var(--chalk); min-width: 0; }
.cookie-banner-btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .flat-tag { width: 25%; font-size: 0.8rem; }
    .flat-plan { width: 50%; }
}

@media (max-width: 960px) {
    .shell { width: 92%; }
    .masthead-row { flex-wrap: wrap; }
    .nav-toggle { display: inline-flex; }
    .main-nav { flex: 1 0 100%; display: none; }
    .main-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px dashed var(--rule); padding-top: 0.4rem; }
    .nav-list a { display: block; padding: 0.7rem 0; border-bottom: 1px dashed var(--rule); }
    .brand-svg { width: 92px; height: 50px; }

    .fs { padding: 3rem 0; }
    .fs-migration-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .clip-notes { flex-direction: row; flex-wrap: wrap; }
    .clip-note { width: min(100%, 320px); }
    .clip-note-b { margin-left: 0; }

    .fs-chronicle-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .fs-chronicle .fs-title { border-right: 0; padding-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
    .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .timeline::before { display: none; }

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

    .fs-flat-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .fs-flat-facts { border-left: 0; border-top: 1px solid var(--rule); padding: 1.6rem 0 0; }
    .flat-figure { min-height: 0; padding: 0; }
    .flat-plan { width: 88%; }
    .flat-tags { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }
    .flat-tag { position: static; width: auto; flex: 1 1 200px; }

    .takeaway-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .takeaway-b { margin-top: 0; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .brand { gap: 0.7rem; }
    .brand-svg { width: 70px; height: 38px; }
    .brand-name { font-size: 0.98rem; }
    .brand-desc { display: none; }

    .fs { padding: 2.4rem 0; }
    .fs-migration { padding: 2.2rem 0; }
    .clip-note { width: 100%; }
    .clip-note-paper { padding: 1.1rem 1.3rem 1rem 1.2rem; }
    .clip-note-icon { flex-basis: 48px; width: 48px; height: 48px; }
    .clip-note-value { font-size: 2.1rem; }

    .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; padding-left: 0.2rem; }
    .timeline::before { display: block; left: 15px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
    .timeline-node { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.2rem; padding: 0 0 1.6rem; }
    .timeline-dot { grid-column: 1; grid-row: 1 / span 2; }
    .timeline-date { grid-column: 2; grid-row: 1; height: auto; }
    .timeline-text { grid-column: 2; grid-row: 2; max-width: none; }

    .card-grid-3, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .card-grid > .card-slot:nth-child(n) { transform: none; }
    .card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; }

    .flat-plan { width: 100%; }
    .fact-list li { font-size: 0.78rem; letter-spacing: 0.05em; }

    .takeaway-paper { padding: 1.4rem 1.3rem 1.3rem; }

    .sheet { padding: 1.6rem 1.3rem; }
    .entry-content { font-size: 1rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: 1; }
    .sidebar { padding: 1.4rem 1.2rem; }

    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
    .alignleft, .alignright { float: none; margin: 1rem 0; }
    .entry-content table { display: block; overflow-x: auto; }
}
