/*
Theme Name: dds_interactis.ru
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: navidu
*/

/* ---------- Шрифты ---------- */
@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: 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; }
@font-face { font-family: "IBM 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: "IBM 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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-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: "IBM 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: "IBM 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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-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; }

/* ---------- Переменные ---------- */
:root {
    --bg: #10161D;
    --grid: #1E2A36;
    --head: #0B1117;
    --paper: #F2EDE3;
    --text: #EDE8DE;
    --muted: #7C8B99;
    --lime: #D6F24A;
    --signal: #FF6B3D;
    --line: #2C3B4A;
    --tile: #0D1319;
    --ink: #10161D;
    --soft: #B9C1C9;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-text: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- Служебные правила 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%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(44, 59, 74, .55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(44, 59, 74, .55) 1px, transparent 1px),
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
    background-position: -1px -1px;
    color: var(--text);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
p, li, dd, td, th, blockquote, figcaption, .card-title, .tile-title, .widget {
    overflow-wrap: break-word;
    hyphens: auto;
}
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    margin: 1.6em 0 .6em;
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.12;
    color: var(--text);
    overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: rgba(214, 242, 74, .7); transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--lime); text-decoration-color: var(--lime); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--lime);
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: .85rem;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--ink); }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .62em 1.2em;
    border: 1.5px solid var(--lime);
    border-radius: 0;
    background: transparent;
    color: var(--lime);
    font-family: var(--f-text);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn:hover, .btn:focus-visible {
    background: var(--lime);
    color: var(--ink);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--signal);
}
.btn:active { transform: none; box-shadow: none; }
.btn-sm { padding: .45em .95em; font-size: .86rem; }

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background: var(--head);
    border-bottom: 1px solid var(--line);
}
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand:hover .brand-svg { transform: rotate(-3deg); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-svg { display: block; transition: transform .2s; }
.brand-logo { display: block; max-height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-text);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .005em;
}
.brand-topic {
    margin-top: .25rem;
    font-family: var(--f-mono);
    font-size: .74rem;
    line-height: 1.3;
    color: var(--muted);
}
.brand-desc {
    max-width: 30rem;
    margin-top: .15rem;
    font-family: var(--f-mono);
    font-size: .66rem;
    line-height: 1.4;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--f-mono);
    font-size: .8rem;
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--lime); color: var(--lime); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 1.5px;
    background: currentColor;
    content: "";
    transition: transform .2s, opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle-bars::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-list a {
    display: inline-block;
    padding: .3rem 0;
    color: var(--text);
    font-size: .92rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}
.nav-list a:hover { color: var(--lime); border-bottom-color: var(--lime); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a,
.nav-list .current-menu-ancestor > a { color: var(--lime); }

/* ---------- Главная: общее ---------- */
.fp { position: relative; padding: clamp(2.6rem, 5vw, 4.4rem) 0; }
.fp-inner { width: 85%; margin-left: auto; margin-right: auto; }
.mega {
    margin: 0 0 1.6rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2.3rem, 6.6vw, 5.6rem);
    line-height: .98;
    text-transform: uppercase;
    letter-spacing: .004em;
    color: var(--text);
    hyphens: manual;
}
.mega { overflow-wrap: normal; word-break: normal; }
.mega-stack { max-width: 10ch; font-size: clamp(2.2rem, 4.9vw, 4.6rem); }
.fp-frame {
    position: relative;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.fp-frame::before, .fp-frame::after {
    content: "";
    position: absolute;
    top: -1px;
    width: 14px; height: 14px;
    border-top: 1px solid var(--muted);
}
.fp-frame::before { left: -1px; border-left: 1px solid var(--muted); }
.fp-frame::after { right: -1px; border-right: 1px solid var(--muted); }
.fp-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: .6rem 2rem;
    margin-bottom: 1.6rem;
}
.fp-head .mega { margin: 0; }
.fp-more {
    font-family: var(--f-mono);
    font-size: .85rem;
    color: var(--lime);
}
.empty-note { color: var(--muted); font-family: var(--f-mono); font-size: .9rem; }

/* ---------- Блок 1: карта подготовки ---------- */
.fp-route { padding-top: clamp(2.4rem, 5vw, 3.6rem); }
.fp-route .mega { margin-bottom: 1.4rem; }
.route {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: flex-start;
    counter-reset: route;
}
.route-step {
    counter-increment: route;
    flex: 1 1 0;
    min-width: 0;
    display: grid;
    grid-template-columns: auto minmax(1.5rem, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
}
.route-step:last-child { flex: 0 0 auto; grid-template-columns: auto; }
.route-box {
    grid-column: 1; grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 7.4rem;
    min-height: 3.6rem;
    padding: .55rem .9rem;
    border: 2px solid var(--lime);
    background: var(--bg);
    font-size: .92rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s, color .15s;
}
.route-box::before {
    content: "0" counter(route);
    position: absolute;
    top: -.75rem; left: .5rem;
    padding: 0 .3rem;
    background: var(--bg);
    font-family: var(--f-mono);
    font-size: .66rem;
    color: var(--lime);
}
.route-step:hover .route-box { background: var(--lime); color: var(--ink); }
.route-step:hover .route-box::before { background: var(--lime); color: var(--ink); }
.route-hint {
    grid-column: 1; grid-row: 2;
    max-width: 8rem;
    margin-top: .5rem;
    font-family: var(--f-mono);
    font-size: .7rem;
    line-height: 1.35;
    color: var(--muted);
}
.route-step:not(:last-child)::after {
    content: "";
    grid-column: 2; grid-row: 1;
    height: 9px;
    margin: 0 .55rem;
    background:
        linear-gradient(var(--soft), var(--soft)) left center / calc(100% - 7px) 1px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 9'%3E%3Cpath d='M0 0l8 4.5L0 9' fill='none' stroke='%23B9C1C9' stroke-width='1.2'/%3E%3C/svg%3E") right center / 8px 9px no-repeat;
}
.route-note {
    margin: 1.8rem 0 0;
    font-size: 1.05rem;
    color: var(--soft);
}
.route-note::before {
    content: "";
    display: inline-block;
    width: 10px; height: 10px;
    margin-right: .6rem;
    background: var(--signal);
    vertical-align: .05em;
}

/* ---------- Блок 2: слои страницы ---------- */
.fp-layers { border-top: 1px solid var(--line); }
.layers-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: center;
}
.layers-copy { min-width: 0; }
.layers-copy .mega { margin-bottom: 1.2rem; }
.layers-lead {
    max-width: 26rem;
    margin: 0;
    font-size: .98rem;
    color: var(--soft);
}
.layers-figure {
    position: relative;
    min-width: 0;
    margin: 0;
    padding-right: 3rem;
}
.layers-art {
    margin-left: 36%;
    line-height: 0;
}
.layers-art img { display: block; width: 100%; height: auto; }
.layer-tags {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}
.layer-tags li {
    position: absolute;
    top: var(--y);
    left: 0;
    width: calc(36% + 64% * .12);
    display: flex;
    align-items: center;
    gap: .5rem;
    transform: translateY(-50%);
    font-family: var(--f-mono);
    font-size: .8rem;
    line-height: 1.2;
    color: var(--text);
    hyphens: manual;
}
.layer-tags li span { flex: 0 1 auto; min-width: 0; }
.layer-tags li::after {
    content: "";
    flex: 1 1 auto;
    min-width: 1rem;
    height: 7px;
    background:
        linear-gradient(var(--soft), var(--soft)) left center / calc(100% - 5px) 1px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 7'%3E%3Cpath d='M0 0l6 3.5L0 7' fill='none' stroke='%23B9C1C9' stroke-width='1.1'/%3E%3C/svg%3E") right center / 6px 7px no-repeat;
}
.layer-tags li.is-accent { color: var(--signal); }
.layers-ruler {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 2rem;
    height: 100%;
}

/* ---------- Блок записей: карточки ---------- */
.fp-posts { border-top: 1px solid var(--line); }
.cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}
.layout-single .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .9rem;
    border: 1px solid var(--line);
    background: rgba(16, 22, 29, .92);
    overflow: hidden;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover {
    border-color: var(--lime);
    transform: translate(-3px, -3px);
    box-shadow: 4px 4px 0 rgba(214, 242, 74, .35);
}
.card-num {
    position: absolute;
    top: .6rem; right: .8rem;
    font-family: var(--f-mono);
    font-size: 1.45rem;
    line-height: 1;
    color: var(--muted);
    transition: color .15s;
}
.card:hover .card-num { color: var(--lime); }
.card-thumb {
    display: block;
    width: calc(100% - 3.2rem);
    border: 1px solid var(--line);
    background: #0B1219;
    line-height: 0;
    text-decoration: none;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: .85rem;
}
.card-title {
    margin: 0 0 .45rem;
    font-family: var(--f-text);
    font-size: 1.08rem;
    font-weight: 500;
    line-height: 1.3;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--lime); }
.card-excerpt { flex: 1; font-size: .92rem; line-height: 1.5; color: var(--soft); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--soft); }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .8rem;
}
.card-date {
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--muted);
}

/* ---------- Блок 3: чек-лист ---------- */
.fp-check { padding-top: clamp(3rem, 5vw, 4.6rem); padding-bottom: clamp(3.2rem, 5vw, 4.8rem); }
.fp-check .fp-inner { position: relative; }
.fp-check .fp-inner::before {
    content: "";
    position: absolute;
    top: -1.2rem; bottom: -1.2rem;
    left: -1.6rem;
    width: .8rem;
    border: 1px solid var(--muted);
    border-right: 0;
}
.check-sheet {
    position: relative;
    z-index: 0;
    padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3.4vw, 2.6rem);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .3);
}
.check-sheet::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--lime);
    transform: translate(-10px, 12px) rotate(-1.2deg);
}
.check-sheet::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--paper);
}
.check-title {
    margin: 0 0 1.2rem;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink);
    hyphens: manual;
}
.check-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem 3rem;
    align-items: center;
}
.check-list {
    display: grid;
    gap: .15rem;
    margin: 0;
    padding: 0;
    list-style: none;
    min-width: 0;
}
.check-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    padding: .28rem 0;
    border: 0;
    background: none;
    color: var(--ink);
    font-family: var(--f-text);
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}
.check-item:hover { text-decoration: underline; text-decoration-color: rgba(16, 22, 29, .4); text-underline-offset: .2em; }
.check-item:focus-visible { outline-color: var(--ink); }
.check-box {
    flex: 0 0 auto;
    position: relative;
    width: 18px; height: 18px;
    border: 1.5px solid var(--ink);
    background: transparent;
    transition: background-color .15s;
}
.check-item[aria-pressed="true"] .check-box { background: var(--lime); }
.check-item[aria-pressed="true"] .check-box::after {
    content: "";
    position: absolute;
    left: 4.5px; top: 1px;
    width: 5px; height: 10px;
    border: solid var(--ink);
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}
.check-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 9rem;
}
.check-big {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(4.5rem, 9vw, 7rem);
    line-height: .9;
    color: var(--ink);
}
.check-caption {
    max-width: 9rem;
    margin-top: .4rem;
    font-size: 1rem;
    line-height: 1.2;
}
.check-progress {
    margin-top: .8rem;
    padding: .25rem .5rem;
    border: 1px solid var(--ink);
    font-family: var(--f-mono);
    font-size: .72rem;
}

/* ---------- Блок 4: инструменты ---------- */
.fp-tools { border-top: 1px solid var(--line); }
.tools-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 2rem;
    align-items: start;
}
.tools-grid .mega { margin: 0; }
.tiles {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0 1.4rem 0 0;
    list-style: none;
}
.tiles::after {
    content: "";
    position: absolute;
    top: -.4rem; bottom: -.4rem; right: 0;
    width: .6rem;
    border: 1px solid var(--muted);
    border-left: 0;
}
.tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .2rem;
    min-width: 0;
    min-height: 9rem;
    padding: 1.1rem 1.2rem 1rem;
    border: 1px solid var(--line);
    background: var(--tile);
    transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tile:hover { border-color: var(--lime); transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--lime); }
.tile-icon { display: block; width: 46px; height: 46px; margin: 0 auto .7rem; }
.tile-title { font-size: 1rem; font-weight: 500; line-height: 1.25; }
.tile-note { font-family: var(--f-mono); font-size: .7rem; line-height: 1.35; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.page-shell { padding: 1.6rem 0 4rem; }
.crumbs {
    margin: 0 0 1.8rem;
    font-family: var(--f-mono);
    font-size: .78rem;
    line-height: 1.6;
    color: var(--muted);
}
.crumbs a { color: var(--soft); text-decoration-color: transparent; }
.crumbs a:hover { color: var(--lime); text-decoration-color: var(--lime); }
.crumbs-sep { margin: 0 .35rem; color: var(--lime); }
.crumbs [aria-current] { color: var(--text); }

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

.page-head { margin-bottom: 2rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.page-kicker {
    margin: 0 0 .4rem;
    font-family: var(--f-mono);
    font-size: .78rem;
    color: var(--lime);
    text-transform: lowercase;
}
.page-title {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(2rem, 4.6vw, 3.6rem);
    line-height: 1.02;
    text-transform: uppercase;
    hyphens: manual;
}
.page-desc { margin-top: 1rem; color: var(--soft); }
.page-desc p:last-child { margin-bottom: 0; }

/* Запись */
.entry-head { margin-bottom: 1.6rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.2rem;
    margin-bottom: .7rem;
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--muted);
}
.entry-cat a { color: var(--lime); text-decoration: none; }
.entry-cat a::before { content: "§ "; }
.entry-cover { margin: 0 0 2rem; border: 1px solid var(--line); line-height: 0; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); text-transform: uppercase; }
.entry-content h2::before { content: "// "; color: var(--lime); font-family: var(--f-mono); font-size: .6em; vertical-align: .25em; }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.15rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.5em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: -1.25em; top: .62em;
    width: 8px; height: 8px;
    border: 1.5px solid var(--lime);
}
.entry-content ol > li::marker { font-family: var(--f-mono); color: var(--lime); }
.entry-content blockquote {
    margin: 1.8em 0;
    padding: 1.3rem 1.6rem;
    border-left: 6px solid var(--lime);
    background: var(--paper);
    color: var(--ink);
    font-size: 1.1rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote a { color: var(--ink); text-decoration-color: var(--ink); }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-family: var(--f-mono); font-size: .8rem; font-style: normal; }
.entry-content table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: .95rem;
}
.entry-content th, .entry-content td {
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.entry-content th { background: var(--tile); font-family: var(--f-mono); font-size: .82rem; font-weight: 500; color: var(--lime); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { margin-top: .5rem; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.entry-content code, .entry-content kbd {
    padding: .1em .35em;
    background: var(--tile);
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .88em;
}
.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--tile);
    border: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .88rem;
    line-height: 1.55;
}
.entry-content pre code { padding: 0; border: 0; background: none; }
.entry-content hr { margin: 2.4em 0; border: 0; border-top: 1px dashed var(--line); }
.entry-content img { display: block; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-block-image img { display: block; }
.page-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; font-family: var(--f-mono); font-size: .85rem; }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .8rem;
}
.entry-tags-label { color: var(--muted); }
.entry-tags a { padding: .15rem .5rem; border: 1px solid var(--line); color: var(--soft); text-decoration: none; }
.entry-tags a:hover { border-color: var(--lime); color: var(--lime); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
}
.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    background: var(--tile);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s;
}
.post-nav-link:hover { border-color: var(--lime); color: var(--text); }
.post-nav-next { grid-column: 2; text-align: right; }
.post-nav-dir { font-family: var(--f-mono); font-size: .75rem; color: var(--lime); }
.post-nav-title { font-size: .98rem; line-height: 1.35; }

/* Пустое состояние, 404 */
.empty-box { padding: 1.6rem; border: 1px dashed var(--line); }
.lost { text-align: left; }
.lost-code {
    margin: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(6rem, 18vw, 12rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--lime);
}
.lost .page-title { margin: .6rem 0 1rem; }
.lost-text { max-width: 36rem; color: var(--soft); }
.lost-home { margin-top: 1.6rem; }

/* Поиск */
.search-form { display: flex; gap: .5rem; max-width: 34rem; margin: 1rem 0; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: .62rem .8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--head);
    color: var(--text);
    font-family: var(--f-mono);
    font-size: .9rem;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: none; border-color: var(--lime); }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 2.4rem;
    font-family: var(--f-mono);
    font-size: .88rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    border: 1px solid var(--line);
    background: var(--tile);
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, background-color .15s, color .15s;
}
.pager a.page-numbers:hover { border-color: var(--lime); color: var(--lime); }
.pager .page-numbers.current { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; color: var(--muted); }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.4rem 1.4rem .4rem;
    border: 1px solid var(--line);
    background: var(--tile);
    color: var(--text);
}
.sidebar .widget { margin-bottom: 1.6rem; color: var(--soft); font-size: .95rem; }
.sidebar .widget-title, .sidebar .wp-block-heading {
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--lime);
}
.sidebar ul { margin: 0; padding: 0; list-style: none; }
.sidebar li { padding: .45rem 0; border-bottom: 1px dashed var(--line); line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--lime); }
.sidebar .post-date, .sidebar .rss-date { display: block; margin-top: .15rem; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.sidebar p { color: var(--soft); }

/* ---------- Комментарии ---------- */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { margin: 0 0 1.4rem; font-size: 1.6rem; text-transform: uppercase; }
.comments-count { font-family: var(--f-mono); font-size: .9rem; color: var(--lime); vertical-align: .3em; }
.comment-list, .comment-list .children { margin: 0; padding: 0; list-style: none; }
.comment-list .children { margin-left: 1.6rem; padding-left: 1rem; border-left: 1px dashed var(--line); }
.note-body { margin-bottom: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--tile); }
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-avatar { display: block; border: 1px solid var(--line); }
.note-who { display: flex; flex-direction: column; }
.note-author { font-weight: 500; }
.note-date { font-family: var(--f-mono); font-size: .74rem; color: var(--muted); }
.note-wait { font-family: var(--f-mono); font-size: .8rem; color: var(--signal); }
.note-text { font-size: .97rem; color: var(--soft); }
.note-text p:last-child { margin-bottom: 0; }
.note-reply { margin-top: .5rem; font-family: var(--f-mono); font-size: .8rem; }
.note-reply a { color: var(--lime); }
.comments-closed { font-family: var(--f-mono); color: var(--muted); }
.comment-respond { margin-top: 2rem; padding: 1.4rem 1.5rem; border: 1px solid var(--line); background: rgba(13, 19, 25, .85); }
.comment-reply-title { margin: 0 0 .8rem; font-size: 1.35rem; text-transform: uppercase; }
.comment-reply-title small { margin-left: .6rem; font-family: var(--f-mono); font-size: .75rem; text-transform: none; }
.form-note { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-family: var(--f-mono); font-size: .8rem; color: var(--soft); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    display: block;
    width: 100%;
    padding: .62rem .8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--head);
    color: var(--text);
    font-family: var(--f-text);
    font-size: .98rem;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--lime); }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: .6rem; }
.comment-form-cookies-consent label { margin: 0; }
.comment-form-cookies-consent input { margin-top: .25rem; accent-color: var(--lime); }
.req { color: var(--signal); }

/* ---------- Подвал ---------- */
.colophon {
    margin-top: 0;
    padding: 3rem 0 1.4rem;
    background: var(--head);
    border-top: 1px solid var(--line);
    color: var(--soft);
}
.colophon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1rem; color: var(--soft); font-size: .92rem; line-height: 1.55; }
.colophon .widget-title, .colophon .wp-block-heading {
    margin: 0 0 .6rem;
    font-family: var(--f-text);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
}
.colophon p { color: var(--soft); }
.colophon ul { margin: 0; padding: 0; list-style: none; }
.colophon li { padding: .14rem 0; }
.colophon a { color: var(--soft); text-decoration: none; }
.colophon a:hover { color: var(--lime); text-decoration: underline; text-decoration-color: var(--lime); }
.colophon .widget_nav_menu a { font-size: .9rem; color: #9AA6B2; }
.colophon .widget_nav_menu a:hover { color: var(--lime); }
.copyline {
    margin: 2.4rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    font-family: var(--f-mono);
    font-size: .76rem;
    text-align: center;
    color: var(--muted);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .8rem 1.4rem;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 1.3rem;
    border: 1px solid var(--lime);
    background: var(--head);
    box-shadow: 6px 6px 0 rgba(214, 242, 74, .25);
}
.cookie-text { flex: 1 1 22rem; margin: 0; font-size: .9rem; line-height: 1.45; color: var(--text); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .route-box { min-width: 6.2rem; font-size: .86rem; }
}
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        z-index: 50;
        padding: 1rem 4%;
        background: var(--head);
        border-bottom: 1px solid var(--line);
    }
    .site-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-list a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
    .brand-desc { display: none; }

    .fp-inner { width: 92%; }
    .route { flex-direction: column; gap: 0; }
    .route-step, .route-step:last-child {
        flex: 0 0 auto;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 1rem;
    }
    .route-box { grid-row: 1; min-width: 10rem; }
    .route-hint { grid-column: 2; grid-row: 1; max-width: none; margin: 0; }
    .route-step:not(:last-child)::after {
        grid-column: 1; grid-row: 2;
        justify-self: center;
        width: 9px; height: 2rem;
        margin: 0;
        background:
            linear-gradient(var(--soft), var(--soft)) center top / 1px calc(100% - 6px) no-repeat,
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 8'%3E%3Cpath d='M0 0l4.5 8L9 0' fill='none' stroke='%23B9C1C9' stroke-width='1.2'/%3E%3C/svg%3E") center bottom / 9px 8px no-repeat;
    }

    .layers-grid { grid-template-columns: minmax(0, 1fr); }
    .mega-stack { max-width: none; }
    .layers-figure { max-width: 40rem; }

    .cards-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-row .card:nth-child(3) { grid-column: 1 / -1; }
    .layout-single .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .tools-grid { grid-template-columns: minmax(0, 1fr); }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; }
    .layout-single > .content-area { width: 100%; }
    .colophon-grid { width: 100%; }
}
@media (max-width: 760px) {
    .cards-grid, .layout-single .cards-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .masthead-row { padding: .8rem 0; gap: .8rem; }
    .brand { gap: .6rem; }
    .brand-svg { width: 42px; height: 34px; }
    .brand-name { font-size: 1.25rem; }
    .brand-topic { font-size: .66rem; }
    .nav-toggle-label { display: none; }

    .fp { padding: 2.4rem 0; }
    .fp-inner { width: 100%; }
    .fp-frame { border-left: 0; border-right: 0; }
    .fp-frame::before, .fp-frame::after { display: none; }
    .mega { font-size: clamp(2rem, 11vw, 3rem); }
    .route-box { min-width: 8.4rem; min-height: 3rem; }

    .layers-figure { padding-right: 1.8rem; }
    .layers-ruler { width: 1.2rem; }
    .layer-tags { right: 1.8rem; }
    .layers-art { margin-left: 40%; }
    .layer-tags li { width: calc(40% + 60% * .12); font-size: .66rem; gap: .3rem; }

    .cards-row { grid-template-columns: minmax(0, 1fr); }
    .cards-row .card:nth-child(3) { grid-column: auto; }

    .fp-check .fp-inner::before { display: none; }
    .check-sheet { padding: 1.5rem 1.2rem; }
    .check-sheet::before { transform: translate(-6px, 8px) rotate(-1deg); }
    .check-grid { grid-template-columns: minmax(0, 1fr); }
    .check-total { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; text-align: left; }
    .check-big { font-size: 4.2rem; }
    .check-caption { margin: 0; }
    .check-progress { margin-top: 0; }

    .tiles { grid-template-columns: minmax(0, 1fr); padding-right: 1rem; }
    .tile { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 1rem; }
    .tile-icon { margin: 0; width: 40px; height: 40px; }
    .tile-title { flex: 1 1 8rem; }
    .tile-note { flex: 1 1 100%; padding-left: calc(40px + 1rem); }

    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .comment-list .children { margin-left: .6rem; }
    .entry-content table { display: block; overflow-x: auto; }
    .search-form { flex-direction: column; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
