/*
Theme Name: dds_getcontenu.com
Theme URI: https://getcontenu.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: gcntn
*/

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

/* ---------- Переменные ---------- */
:root {
    --paper: #F2F4F1;
    --paper-hi: #F8F9F6;
    --ink: #16273D;
    --ink-deep: #0F1D2F;
    --muted: #6C7A86;
    --stamp: #C0392B;
    --stamp-dark: #9E2C21;
    --ochre: #D9A441;
    --ochre-soft: #EFDDB0;
    --ochre-line: #C9AB6A;
    --tab: #DDE4DC;
    --sage: #D5E3DA;
    --line: #A9B4B0;
    --grid: rgba(96, 140, 168, 0.13);
    --grid-fine: rgba(96, 140, 168, 0.06);
    --aside: #E6EBE6;
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --text: "PT Serif", Georgia, "Times New Roman", serif;
}

/* ---------- Сброс и база ---------- */
*, *::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;
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.0625rem;
    line-height: 1.6;
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px),
        linear-gradient(var(--grid-fine) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-fine) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--stamp); text-decoration-color: var(--stamp); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--stamp);
    outline-offset: 2px;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    margin: 1.4em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1em; }
p, li, td, th, dd, dt, blockquote { overflow-wrap: break-word; hyphens: auto; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--stamp);
    color: #fff;
    font-family: var(--head);
}
.skip-link:focus { top: 1rem; color: #fff; }

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

/* ---------- Кнопки-штампы и ссылки ---------- */
.stamp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    padding: 0.7em 1.4em;
    border: 2px solid var(--stamp);
    border-radius: 0;
    background: var(--stamp);
    color: #fff;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 3px 3px 0 var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.stamp-btn:hover, .stamp-btn:focus-visible {
    background: var(--stamp-dark);
    border-color: var(--stamp-dark);
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--ink);
}
.stamp-btn--sm { padding: 0.5em 0.95em; font-size: 0.92rem; box-shadow: 2px 2px 0 var(--ink); }
.arrow-link {
    font-family: var(--head);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--ink);
}
.arrow-link::after { content: " ↗"; color: var(--stamp); }
.arrow-link:hover { text-decoration-color: var(--stamp); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--ink);
    color: #fff;
    border-bottom: 6px solid var(--ink-deep);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.masthead-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding: 1.4rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    flex: 1 1 560px;
    min-width: 0;
    color: #fff;
    text-decoration: none;
}
.brand:hover { color: #fff; }
.brand-seal {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    color: #F2F4F1;
    border: 2px solid rgba(242, 244, 241, 0.7);
    outline: 1px solid rgba(242, 244, 241, 0.35);
    outline-offset: 3px;
}
.brand-mark { width: 64px; height: 64px; }
.brand-logo { max-width: 76px; max-height: 76px; width: auto; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.brand-name {
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
.brand-desc {
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.82rem;
    line-height: 1.4;
    letter-spacing: 0.03em;
    color: #C9D3DC;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.site-nav { flex: 0 1 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-list li { position: relative; }
.nav-list li + li::before {
    content: "";
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    border-left: 1px solid rgba(242, 244, 241, 0.35);
}
.nav-list a {
    display: block;
    padding: 0.5rem 1.15rem;
    color: #F2F4F1;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.02rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.nav-list a:hover { color: #fff; border-bottom-color: var(--ochre); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { border-bottom-color: #F2F4F1; }
.menu-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid #F2F4F1;
    border-radius: 0;
    background: transparent;
    color: #F2F4F1;
    font-family: var(--head);
    font-size: 1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

/* ---------- Главная: реестр ---------- */
.front-wrap { width: 85%; margin: 0 auto; padding: 1.5rem 0 3.5rem; }
.reg {
    position: relative;
    padding: 2.2rem 0 2.6rem;
    border-bottom: 1px solid var(--line);
}
.reg::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -5px;
    border-bottom: 1px solid var(--line);
}
.reg:last-child { border-bottom: 0; }
.reg:last-child::after { display: none; }
.reg-head {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0 1.1rem;
    margin-bottom: 1.6rem;
    border: 1px solid var(--line);
    border-left: 0;
    background: rgba(248, 249, 246, 0.6);
}
.reg-num {
    display: grid;
    place-items: center;
    min-width: 3.4rem;
    padding: 0.35rem 0.6rem;
    background: var(--stamp);
    color: #fff;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1.85rem;
    line-height: 1;
}
.reg-title {
    margin: 0;
    align-self: center;
    padding: 0.55rem 0;
    font-size: clamp(1.5rem, 2.6vw, 2.15rem);
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: var(--ink);
    flex: 1 1 0;
    min-width: 0;
}
.reg-kicker {
    align-self: center;
    margin-left: auto;
    padding: 0.3rem 1rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}
.reg-head--band { background: var(--ink); border-color: var(--ink); }
.reg-head--band .reg-title { color: #fff; }
.reg-more { margin: 1.6rem 0 0; text-align: right; }
.empty-note {
    padding: 1.4rem 1.6rem;
    border: 1px dashed var(--line);
    background: var(--paper-hi);
    color: var(--muted);
    font-style: italic;
}

/* 01 — сумма */
.ledger {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.5fr) minmax(0, 0.7fr);
    border: 1px solid var(--ochre-line);
    background:
        repeating-linear-gradient(0deg, transparent 0 31px, rgba(160, 120, 40, 0.12) 31px 32px),
        var(--ochre-soft);
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}
.ledger-lead {
    min-width: 0;
    padding: 1.8rem 2rem;
    border-right: 1px solid var(--ochre-line);
}
.ledger-caption {
    margin: 0 0 0.6rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: #4B4126;
}
.ledger-figure {
    margin: 0 0 0.8rem;
    font-family: var(--head);
    font-weight: 600;
    font-size: clamp(2.6rem, 5.2vw, 4.4rem);
    line-height: 1;
    color: var(--stamp);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.ledger-rub { font-size: 0.82em; }
.ledger-note { margin: 0; font-size: 0.92rem; line-height: 1.5; color: #4B4126; }
.ledger-table-wrap { min-width: 0; overflow-x: auto; border-right: 1px solid var(--ochre-line); }
.ledger-table {
    width: 100%;
    height: 100%;
    border-collapse: collapse;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1rem;
    color: #2D2A20;
}
.ledger-table th, .ledger-table td {
    padding: 0.55rem 1rem;
    border: 1px solid var(--ochre-line);
    text-align: left;
    vertical-align: middle;
}
.ledger-table tr > :first-child { border-left: 0; }
.ledger-table tr > :last-child { border-right: 0; }
.ledger-table thead th {
    border-top: 0;
    background: rgba(217, 164, 65, 0.45);
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.03em;
}
.ledger-table tbody tr:last-child td { border-bottom: 0; }
.ledger-table td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger-table tbody tr:last-child td { background: rgba(217, 164, 65, 0.22); color: var(--ink); }
.ledger-seal {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    color: var(--stamp);
}
.seal-svg {
    width: min(100%, 190px);
    height: auto;
    transform: rotate(-12deg);
    opacity: 0.88;
    filter: drop-shadow(0 0 0.4px var(--stamp));
}
.seal-arc { fill: currentColor; font-family: var(--head); font-weight: 600; font-size: 25px; letter-spacing: 3px; }
.seal-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* 02 — маршрут */
.reg--route {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300' fill='none' stroke='%2316273D' stroke-opacity='.14' stroke-width='1.4'%3E%3Crect x='10' y='10' width='400' height='280'/%3E%3Cpath d='M10 130h150v160M160 10v70M160 105v25M260 10v120h150M260 175v115M260 175h150M60 130v-40M300 130v-30'/%3E%3Cpath d='M160 80a25 25 0 0 1 25 25M260 175a25 25 0 0 0 -25 -25' stroke-dasharray='3 3'/%3E%3Cpath d='M10 300v8M410 300v8M10 304h400M420 10h8M420 290h8M424 10v280'/%3E%3Crect x='300' y='210' width='70' height='45'/%3E%3Ccircle cx='85' cy='210' r='26'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -40px center;
    background-size: auto 115%;
}
.route {
    list-style: none;
    margin: 0;
    padding: 0.9rem 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 3rem;
    position: relative;
    counter-reset: none;
}
.route::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 3rem;
    width: 1rem;
    height: 3rem;
    border: 1px solid var(--ink);
    border-right: 0;
}
.route-stop {
    position: relative;
    min-width: 0;
    padding: 1.6rem 1rem 1rem 1.2rem;
    border: 1px solid var(--ink);
    background: var(--paper-hi);
    box-shadow: 3px 3px 0 rgba(22, 39, 61, 0.12);
}
.route-stop + .route-stop::before {
    content: "→";
    position: absolute;
    left: -2.3rem;
    top: 1.9rem;
    width: 1.6rem;
    text-align: center;
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.25rem;
    line-height: 1;
}
.route-no {
    position: absolute;
    left: -1px;
    top: -1.05rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.2rem;
    background: var(--stamp);
    color: #fff;
    font-family: var(--head);
    font-weight: 600;
    font-size: 1.3rem;
}
.route-name {
    display: block;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.1rem;
    line-height: 1.25;
    color: var(--ink);
}
.route-hint {
    display: block;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--line);
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

/* ---------- Карточки-каталожки ---------- */
.card-grid { display: grid; gap: 1.6rem; }
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #F7F7F2;
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 rgba(22, 39, 61, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 30px;
    height: 30px;
    z-index: 2;
    background: linear-gradient(225deg, var(--paper) 0 50%, #D3D9D4 50% 100%);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: -2px 2px 3px rgba(22, 39, 61, 0.12);
}
.card:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0 var(--ink);
    border-color: var(--ink);
}
.card-thumb { position: relative; margin: 12px 12px 0; border: 1px solid var(--line); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    filter: saturate(0.9);
}
.card-flag {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    padding: 0.2rem 0.6rem;
    background: var(--ochre);
    color: var(--ink);
    font-family: var(--head);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.1rem 1.3rem 1.3rem;
}
.card-title { margin: 0 0 0.6rem; font-size: 1.42rem; line-height: 1.2; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--stamp); }
.card-excerpt { flex: 1; font-size: 0.95rem; line-height: 1.55; color: #3A4756; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}
.card-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
}
.card-date svg { color: var(--stamp); }

/* 04 — разбор документа */
.reg--doc {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300' fill='none' stroke='%2316273D' stroke-opacity='.08' stroke-width='1.2'%3E%3Crect x='20' y='20' width='260' height='260'/%3E%3Cpath d='M20 120h120v160M140 20v60M200 120h80M200 120v160'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left -60px bottom 10px;
    background-size: 340px auto;
}
.doc-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.32fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}
.doc-check {
    min-width: 0;
    padding: 1.6rem 1.6rem 1.8rem;
    background: var(--sage);
    border: 1px solid var(--line);
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}
.doc-check-title { margin: 0 0 0.7rem; font-size: 1.8rem; line-height: 1.12; }
.doc-check-lead { font-size: 0.92rem; line-height: 1.5; color: #3A4756; }
.doc-check-list { list-style: none; margin: 0; padding: 0; counter-reset: chk; }
.doc-check-list li {
    counter-increment: chk;
    position: relative;
    padding: 0.4rem 0 0.4rem 2.5rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.05rem;
    line-height: 1.3;
    border-bottom: 1px dashed rgba(22, 39, 61, 0.2);
}
.doc-check-list li:last-child { border-bottom: 0; }
.doc-check-list li::before {
    content: counter(chk);
    position: absolute;
    left: 0;
    top: 0.3rem;
    display: grid;
    place-items: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-size: 0.9rem;
}
.doc-figure {
    position: relative;
    min-width: 0;
    container-type: inline-size;
}
.doc-sheet { position: relative; width: 39.4%; margin-left: 30.3%; }
.doc-sheet img {
    width: 100%;
    height: auto;
    filter: drop-shadow(6px 10px 10px rgba(22, 39, 61, 0.25));
}
.doc-pin {
    position: absolute;
    left: var(--px);
    top: var(--py);
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--stamp);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.2);
    color: transparent;
    font-size: 0;
    overflow: hidden;
}
.doc-notes { list-style: none; margin: 0; padding: 0; }
.doc-note {
    position: absolute;
    top: var(--y);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0;
}
.doc-note--l { left: 0; width: var(--x); }
.doc-note--r { left: var(--x); right: 0; }
.doc-note-text {
    flex: 0 0 26cqw;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.3;
    color: var(--ink);
}
.doc-note--l .doc-note-text { padding-right: 0.6rem; }
.doc-note--r .doc-note-text { padding-left: 0.6rem; }
.doc-note-no { display: none; }
.doc-note-line {
    flex: 1 1 auto;
    position: relative;
    height: 0;
    border-top: 2px solid var(--stamp);
}
.doc-note--l .doc-note-line::before,
.doc-note--r .doc-note-line::after {
    content: "";
    position: absolute;
    top: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--stamp);
}
.doc-note--l .doc-note-line::before { left: 0; }
.doc-note--r .doc-note-line::after { right: 0; }

/* 05 — частые вопросы */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0 1.1rem;
    padding: 1.1rem;
    min-height: 15rem;
    border: 1px solid var(--line);
    background: rgba(248, 249, 246, 0.7);
}
.faq-item { min-width: 0; }
.faq-q {
    position: relative;
    display: block;
    list-style: none;
    padding: 0.85rem 1rem 0.85rem 2.8rem;
    background: var(--tab);
    border: 1px solid var(--line);
    font-family: var(--head);
    font-weight: 500;
    font-size: 1.04rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.12s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ""; }
.faq-q::before {
    content: "+";
    position: absolute;
    left: 1rem;
    top: 0.7rem;
    font-family: var(--text);
    font-size: 1.4rem;
    line-height: 1;
    color: var(--ink);
}
.faq-q:hover { background: #CFD9CF; }
.faq-item[open] .faq-q { background: #C8D7C7; border-bottom-color: transparent; }
.faq-item[open] .faq-q::before { content: "−"; color: var(--stamp); }
.faq-a {
    padding: 1rem 1.1rem 1.1rem;
    border: 1px solid var(--line);
    border-top: 0;
    background: var(--paper-hi);
    font-size: 0.97rem;
    line-height: 1.55;
}
.faq-a p { margin: 0; }

/* ---------- Внутренние страницы ---------- */
.crumbs {
    padding: 1.2rem 0 0.4rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}
.crumbs a { color: var(--ink); }
.crumbs-sep { color: var(--stamp); padding: 0 0.25rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
    padding: 1rem 0 3.5rem;
}
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; padding: 1rem 0 3.5rem; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.page-head-tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    background: var(--stamp);
    color: #fff;
    font-family: var(--head);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.page-title { margin: 0.6rem 0 0.4rem; font-size: clamp(1.9rem, 3.4vw, 2.7rem); text-transform: uppercase; }
.page-intro { color: #3A4756; }
.page-search { margin-top: 1rem; max-width: 560px; }

.sheet {
    position: relative;
    padding: 2rem 2.4rem 2.4rem;
    background: var(--paper-hi);
    border: 1px solid var(--line);
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
}
.sheet::after {
    content: "";
    position: absolute;
    top: -1px; right: -1px;
    width: 38px; height: 38px;
    background: linear-gradient(225deg, var(--paper) 0 50%, #D3D9D4 50% 100%);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.sheet-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.sheet-tab {
    display: inline-block;
    padding: 0.15rem 0.7rem;
    background: var(--ochre);
    color: var(--ink);
    font-family: var(--head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.sheet-tab:hover { background: var(--ink); color: #fff; }
.sheet-title { margin: 0.6rem 0 0.5rem; font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.sheet-meta { margin: 0; font-family: var(--head); color: var(--muted); letter-spacing: 0.03em; }
.sheet-cover { margin: 0 0 1.6rem; border: 1px solid var(--line); padding: 8px; background: #fff; }
.sheet-cover img { width: 100%; }
.sheet-tags { list-style: none; margin: 2rem 0 0; padding: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; border-top: 1px dashed var(--line); }
.sheet-tags a {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--line);
    font-family: var(--head);
    font-size: 0.9rem;
    text-decoration: none;
}
.sheet-tags a:hover { border-color: var(--stamp); }
.sheet-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.sheet-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--paper-hi);
    font-family: var(--head);
    font-weight: 500;
    text-decoration: none;
    min-width: 0;
}
.sheet-nav-link span { display: block; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.sheet-nav-link--next { grid-column: 2; text-align: right; }
.sheet-nav-link:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }

/* Контент записи */
.entry { min-width: 0; }
.entry > *:first-child { margin-top: 0; }
.entry h2 { font-size: 1.8rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.entry h3 { font-size: 1.4rem; }
.entry h4 { font-size: 1.2rem; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry li { margin-bottom: 0.35em; }
.entry ul li::marker { color: var(--stamp); }
.entry ol li::marker { color: var(--stamp); font-family: var(--head); font-weight: 600; }
.entry blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    border-left: 6px solid var(--stamp);
    background: var(--ochre-soft);
    font-style: italic;
}
.entry blockquote p:last-child { margin-bottom: 0; }
.entry table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; border: 1px solid var(--ink); }
.entry th, .entry td { padding: 0.55rem 0.8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry th { background: var(--tab); font-family: var(--head); font-weight: 500; }
.entry tr:nth-child(even) td { background: rgba(221, 228, 220, 0.35); }
.entry img { margin: 1em 0; border: 1px solid var(--line); }
.entry figure { margin: 1.4em 0; }
.entry figcaption { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 0.4rem; }
.entry pre { overflow-x: auto; padding: 1rem; background: var(--ink); color: #F2F4F1; font-size: 0.9rem; }
.entry code { background: var(--tab); padding: 0.1em 0.35em; font-size: 0.92em; }
.entry pre code { background: none; padding: 0; }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.88rem; color: var(--muted); }

/* ---------- Пагинация (type: plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-top: 2.4rem;
}
.pager .page-numbers,
.pager > a,
.pager > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.85rem;
    border: 1px solid var(--ink);
    background: var(--paper-hi);
    color: var(--ink);
    font-family: var(--head);
    font-weight: 500;
    text-decoration: none;
}
.pager a.page-numbers:hover, .pager > a:hover { background: var(--ink); color: #fff; }
.pager .page-numbers.current, .pager > span.current {
    background: var(--stamp);
    border-color: var(--stamp);
    color: #fff;
    box-shadow: 2px 2px 0 var(--ink);
}
.pager .page-numbers.dots { border-color: transparent; background: none; min-width: 1.4rem; padding: 0; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.4rem 1.4rem 0.4rem;
    background: var(--aside);
    border: 1px solid var(--line);
    border-top: 6px solid var(--ink);
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.15rem;
    text-transform: uppercase;
    color: var(--ink);
}
.sidebar .widget-title::before { content: ""; width: 0.75rem; height: 0.75rem; background: var(--stamp); flex: none; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.5rem 0; border-bottom: 1px dashed var(--line); line-height: 1.35; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.sidebar a:hover { color: var(--stamp); text-decoration: underline; }
.sidebar .post-date { display: block; color: var(--muted); font-size: 0.85rem; }
.sidebar p, .sidebar .textwidget { color: #2C3A4C; font-size: 0.95rem; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--text);
    font-size: 1rem;
}
.seek-btn { flex: none; }

/* ---------- Комментарии ---------- */
.notes { margin-top: 2.6rem; }
.notes-title, .comment-reply-title { font-size: 1.6rem; text-transform: uppercase; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 2rem; border-left: 2px solid var(--line); margin-left: 0.6rem; }
.note-card { margin-bottom: 1rem; padding: 1rem 1.2rem; background: var(--paper-hi); border: 1px solid var(--line); }
.note-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.5rem; }
.note-head img { border: 1px solid var(--line); }
.note-author { font-family: var(--head); font-weight: 600; }
.note-date { font-family: var(--head); color: var(--muted); font-size: 0.9rem; }
.note-wait { color: var(--stamp); font-style: italic; }
.note-text p:last-child { margin-bottom: 0.4em; }
.note-reply a { font-family: var(--head); font-size: 0.92rem; color: var(--stamp); }
.notes-closed { color: var(--muted); font-style: italic; }
.comment-respond { margin-top: 1.6rem; padding: 1.4rem 1.6rem; background: var(--aside); border: 1px solid var(--line); }
.comment-form label { display: block; margin-bottom: 0.3rem; font-family: var(--head); font-weight: 500; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: #fff;
    font-family: var(--text);
    font-size: 1rem;
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-family: var(--text); font-weight: 400; font-size: 0.92rem; }
.comment-notes, .logged-in-as { font-size: 0.92rem; color: var(--muted); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; font-family: var(--head); }

/* ---------- 404 ---------- */
.lost {
    position: relative;
    padding: 2.4rem 2.4rem 2.8rem;
    background: var(--paper-hi);
    border: 1px solid var(--line);
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--line);
    text-align: center;
}
.lost-code { margin: 0; font-family: var(--head); font-weight: 600; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--stamp); opacity: 0.85; }
.lost-title { margin-top: 0.4rem; font-size: 2rem; text-transform: uppercase; }
.lost-text { max-width: 560px; margin-inline: auto; color: #3A4756; }
.lost-search { max-width: 520px; margin: 1.4rem auto 1.6rem; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--ink);
    color: #DCE3EA;
    border-top: 6px solid var(--ink-deep);
    padding: 2.6rem 0 1.4rem;
}
.colophon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.colophon-col { min-width: 0; padding-right: 1.5rem; }
.colophon-col + .colophon-col { padding-left: 2rem; border-left: 1px solid rgba(220, 227, 234, 0.25); }
.colophon .widget { margin-bottom: 1.2rem; color: #DCE3EA; }
.colophon .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #FFFFFF;
}
.colophon p, .colophon .textwidget { color: #DCE3EA; font-size: 0.95rem; line-height: 1.6; }
.colophon a { color: #F2F4F1; text-decoration-color: rgba(242, 244, 241, 0.5); }
.colophon a:hover { color: var(--ochre); text-decoration-color: var(--ochre); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { position: relative; padding: 0.3rem 1.6rem 0.3rem 1.1rem; font-size: 0.97rem; }
.colophon li::before { content: "›"; position: absolute; left: 0; top: 0.25rem; color: var(--ochre); }
.colophon .menu li a { text-decoration: underline; text-underline-offset: 3px; }
.colophon-copy {
    margin: 1.8rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(220, 227, 234, 0.25);
    text-align: center;
    font-family: var(--head);
    font-weight: 500;
    font-size: 0.93rem;
    letter-spacing: 0.03em;
    color: #C9D3DC;
}

/* ---------- Cookie-баннер ---------- */
.cookie-slip[hidden] { display: none !important; }
.cookie-slip {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem 1.6rem;
    max-width: 920px;
    margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--paper-hi);
    color: var(--ink);
    border: 1px solid var(--ink);
    border-left: 8px solid var(--stamp);
    box-shadow: 6px 6px 0 var(--ink);
}
.cookie-slip-text { flex: 1 1 320px; margin: 0; font-size: 0.95rem; line-height: 1.5; }
.cookie-slip-btn { flex: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .doc-layout { grid-template-columns: minmax(0, 1fr); }
    .doc-check-list { columns: 2; column-gap: 2rem; }
    .doc-check-list li { break-inside: avoid; }
    .route { gap: 1.6rem 2.4rem; }
    .route-stop + .route-stop::before { left: -2rem; }
    .doc-note-text { font-size: 0.92rem; }
}
@media (max-width: 960px) {
    .front-wrap { width: 100%; }
    .menu-toggle { display: inline-flex; margin-left: auto; }
    .site-nav { flex: 1 1 100%; display: none; }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; border-top: 1px solid rgba(242, 244, 241, 0.3); }
    .nav-list li + li::before { display: none; }
    .nav-list a { padding: 0.75rem 0.2rem; border-bottom: 1px solid rgba(242, 244, 241, 0.15); }
    .brand { flex: 1 1 0; }
    .ledger { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .ledger-table-wrap { grid-column: 1 / -1; grid-row: 2; border-right: 0; border-top: 1px solid var(--ochre-line); }
    .ledger-seal { border-left: 0; }
    .route { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; padding-left: 1rem; }
    .route::before { left: 0; top: 0.9rem; bottom: 0; height: auto; width: 0; border-right: 0; border-top: 0; border-bottom: 0; border-left: 1px dashed var(--ink); }
    .route-stop + .route-stop::before { content: "↓"; left: 50%; top: -1.6rem; transform: translateX(-50%); }
    .reg--route { background-size: 320px auto; background-position: right -40px bottom -20px; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-sheet { width: min(78%, 440px); margin: 0 auto; }
    .doc-pin { width: 1.6rem; height: 1.6rem; display: grid; place-items: center; color: #fff; font-family: var(--head); font-size: 0.85rem; box-shadow: 0 0 0 3px rgba(242, 244, 241, 0.9); }
    .doc-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem 1.4rem; margin-top: 1.4rem; }
    .doc-note { position: static; transform: none; width: auto; gap: 0.6rem; align-items: flex-start; }
    .doc-note--r { order: 1; }
    .doc-note-line { display: none; }
    .doc-note-no { display: grid; place-items: center; flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--stamp); color: #fff; font-family: var(--head); font-size: 0.85rem; }
    .doc-note-text { flex: 1 1 auto; padding: 0.1rem 0 0 !important; font-size: 1rem; }
    .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; min-height: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single { width: 100%; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .colophon-col, .colophon-col + .colophon-col { padding: 0 0 1.2rem; border-left: 0; border-bottom: 1px solid rgba(220, 227, 234, 0.2); }
    .colophon-col:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .front-wrap { width: 100%; padding-top: 0.6rem; }
    .masthead-row { padding: 1rem 0; gap: 0.8rem; }
    .brand { gap: 0.7rem; flex-basis: 100%; }
    .brand-seal { width: 58px; height: 58px; }
    .brand-mark { width: 44px; height: 44px; }
    .brand-name { font-size: 1rem; }
    .brand-desc { font-size: 0.75rem; }
    .menu-toggle { margin-left: 0; }
    .reg { padding: 1.8rem 0 2rem; }
    .reg-num { min-width: 2.8rem; font-size: 1.5rem; }
    .reg-title { font-size: 1.35rem; padding: 0.5rem 0.6rem 0.5rem 0; }
    .reg-kicker { margin-left: 0; padding: 0 0 0.5rem 3.9rem; flex-basis: 100%; }
    .ledger { grid-template-columns: minmax(0, 1fr); }
    .ledger-lead { border-right: 0; padding: 1.4rem 1.3rem; }
    .ledger-table-wrap { grid-row: auto; }
    .ledger-table th, .ledger-table td { padding: 0.5rem 0.65rem; font-size: 0.93rem; }
    .ledger-seal { padding: 1rem 1.3rem 1.4rem; border-top: 1px solid var(--ochre-line); }
    .seal-svg { width: 150px; }
    .card-grid--three, .card-grid--two { grid-template-columns: minmax(0, 1fr); }
    .card-body { padding: 1rem 1.1rem 1.2rem; }
    .doc-check { padding: 1.3rem 1.2rem 1.4rem; }
    .doc-sheet { width: 88%; }
    .doc-notes { grid-template-columns: minmax(0, 1fr); }
    .faq-grid { grid-template-columns: minmax(0, 1fr); padding: 0.8rem; }
    .sheet { padding: 1.4rem 1.2rem 1.6rem; }
    .sheet-nav { grid-template-columns: minmax(0, 1fr); }
    .sheet-nav-link--next { grid-column: auto; }
    .lost { padding: 1.8rem 1.2rem 2rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .cookie-slip { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 1rem 1.1rem; }
    .notes-list .children { padding-left: 1rem; }
}
