/*
Theme Name: dds_logg-out.com
Theme URI: https://logg-out.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: lgout
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Russo One"; src: url("fonts/russo-cyr.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Russo One"; src: url("fonts/russo-lat.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/rc-cyr-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/rc-lat-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/rc-cyr-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/rc-lat-500.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/rc-cyr-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/rc-lat-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --paper: #E8EDF0;
    --paper-lite: #F1F4F6;
    --grid-fine: #B9C6CF;
    --grid-major: #8FA3B0;
    --ink: #14202B;
    --ink-2: #1B2A37;
    --muted: #6C7F8C;
    --signal: #FF5C1F;
    --signal-ink: #C9430F;
    --teal: #1FA8A0;
    --teal-ink: #11706B;
    --mint: #D7E8E6;
    --line: #8FA3B0;
    --aside: #DCE4E9;
    --white: #FFFFFF;
    --f-head: "Russo One", "Arial Black", "Segoe UI", Arial, sans-serif;
    --f-text: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-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; } *, *::before, *::after { transition: none !important; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(143, 163, 176, .32) 1px, transparent 1px),
        linear-gradient(90deg, rgba(143, 163, 176, .32) 1px, transparent 1px),
        linear-gradient(rgba(185, 198, 207, .45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(185, 198, 207, .45) 1px, transparent 1px);
    background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
    background-position: -1px -1px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 400; line-height: 1.2; margin: 1.6em 0 .6em; color: var(--ink); overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.08rem; }
p, li, dd, td, th, blockquote, figcaption { 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-to { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--signal); color: var(--white); padding: .5rem 1rem; text-decoration: none; }
.skip-to:focus { top: 1rem; color: var(--white); }

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

/* ---------- Кнопки ---------- */
.btn-frame {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .72em 1.3em;
    font-family: var(--f-head);
    font-size: .82rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 0;
    box-shadow: inset 0 0 0 3px var(--paper-lite), inset 0 0 0 4px var(--ink);
    cursor: pointer;
    line-height: 1.2;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn-frame span[aria-hidden] { transition: transform .15s; }
.btn-frame:hover { background: var(--ink); color: var(--white); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--signal); }
.btn-frame:hover span[aria-hidden] { transform: translateX(4px); }
.btn-frame:active { transform: translateY(1px); }
.btn-sm { font-size: .72rem; padding: .62em 1em; }

/* ---------- Шапка ---------- */
.topbar { background: var(--ink); border-top: 3px solid var(--signal); color: var(--white); position: relative; }
.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 106px; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--white); text-decoration: none; min-width: 0; flex: 1 1 auto; max-width: 720px; }
.brand:hover { color: var(--white); }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { max-height: 72px; width: auto; display: block; }
.brand-svg { display: block; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand-name { font-family: var(--f-head); font-size: clamp(.92rem, 1.25vw, 1.08rem); line-height: 1.25; letter-spacing: .02em; color: var(--white); }
.brand-desc { font-size: .8rem; line-height: 1.35; color: #B9C6CF; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: flex-end; }
.topnav-list a { display: inline-block; color: var(--white); text-decoration: none; font-size: 1.02rem; font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent; transition: border-color .15s, color .15s; }
.topnav-list a:hover { color: var(--white); border-bottom-color: var(--teal); }
.topnav-list .current-menu-item > a, .topnav-list a[aria-current="page"] { border-bottom-color: var(--signal); }
.nav-toggle { display: none; align-items: center; gap: .6rem; background: transparent; color: var(--white); border: 1px solid var(--grid-major); padding: .55rem .8rem; font-family: var(--f-head); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border-radius: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--white); position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

/* ---------- Заголовки секций ---------- */
.sec-head { display: flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; font-family: var(--f-head); font-size: clamp(1.05rem, 1.7vw, 1.3rem); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); line-height: 1.25; }
.sec-num { color: var(--muted); }
.sec-head-line::after, .layers-text .sec-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); min-width: 40px; }
.x-mark { color: var(--signal); font-weight: 700; margin-right: .35em; }

/* ---------- Главная ---------- */
.front { padding: 2.6rem 0 1rem; }
.fs { margin-bottom: 4rem; }

/* Блок 1: слои поиска */
.fs-layers { display: grid; grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1.25fr); gap: 2rem; align-items: center; }
.layers-text { min-width: 0; }
.layers-title { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; letter-spacing: .02em; text-transform: uppercase; margin: 1.2rem 0 1.4rem; hyphens: manual; }
.layers-lead { font-size: 1.22rem; color: #3E4F5C; max-width: 30rem; margin-bottom: 1.8rem; }
.layers-ruler { align-self: stretch; position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 1rem 0; }
.layers-ruler::before { content: ""; position: absolute; top: 1rem; bottom: 1rem; left: 50%; width: 2px; margin-left: -1px; background: var(--ink); opacity: .75; }
.layers-ruler span { width: 16px; height: 2px; background: var(--ink); position: relative; }
.layers-ruler span:nth-child(2) { width: 10px; background: var(--teal); }
.layers-fig { margin: 0; position: relative; padding-right: 160px; min-width: 0; }
.layers-fig img { display: block; width: 100%; height: auto; aspect-ratio: 960 / 952; mix-blend-mode: multiply; }
.layers-tags { list-style: none; margin: 0; padding: 0; position: absolute; top: 0; bottom: 0; right: 0; width: 160px; }
.layers-tags li { position: absolute; top: var(--y); left: 0; right: 0; transform: translateY(-50%); padding-left: 34px; font-size: .98rem; font-weight: 500; line-height: 1.2; }
.layers-tags li::before { content: ""; position: absolute; left: -6px; width: 26px; top: 50%; border-top: 1px dashed currentColor; }
.layers-tags li::after { content: "+"; position: absolute; left: 14px; top: 50%; transform: translateY(-52%); font-weight: 700; font-size: 1.15rem; }
.tag-teal { color: var(--teal-ink); }
.tag-orange { color: var(--signal-ink); }

/* Блок 2: сравнение */
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--ink); }
.compare-grid { min-width: 760px; background: var(--ink); color: var(--white); }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr)); border-bottom: 1px solid #33495A; }
.cmp-row:last-child { border-bottom: 0; }
.cmp-param { display: flex; align-items: center; gap: .9rem; padding: .85rem 1.3rem; font-family: var(--f-head); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border-right: 1px solid #33495A; min-width: 0; }
.cmp-ico { flex: 0 0 22px; width: 22px; height: 22px; display: block; }
.cmp-ico svg { width: 22px; height: 22px; display: block; fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.cmp-cell { padding: .85rem 1.6rem; display: flex; flex-direction: column; justify-content: center; align-items: stretch; border-right: 1px solid #33495A; min-width: 0; position: relative; }
.cmp-cell:last-child { border-right: 0; }
.cmp-row-img .cmp-cell { padding: 1.2rem 1.4rem .9rem; align-items: center; gap: .5rem; }
.cmp-row-img .cmp-param { align-items: flex-start; padding-top: 1.1rem; }
.cmp-cell img { display: block; width: 100%; max-width: 250px; height: 110px; object-fit: contain; mix-blend-mode: lighten; }
.cmp-cap { font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #B9C6CF; }
.cmp-cell.is-picked { box-shadow: inset 2px 0 0 var(--signal), inset -2px 0 0 var(--signal); }
.cmp-row:first-child .cmp-cell.is-picked { box-shadow: inset 2px 0 0 var(--signal), inset -2px 0 0 var(--signal), inset 0 2px 0 var(--signal); }
.cmp-row:last-child .cmp-cell.is-picked { box-shadow: inset 2px 0 0 var(--signal), inset -2px 0 0 var(--signal), inset 0 -2px 0 var(--signal); }
.scale { display: block; position: relative; height: 12px; background: radial-gradient(circle at 3px 6px, #E3EAEE 3px, transparent 3.5px) no-repeat; }
.scale::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: linear-gradient(90deg, var(--teal) 0, var(--teal) var(--p), #6C7F8C var(--p), #6C7F8C 100%); }
.scale::after { content: ""; position: absolute; right: -2px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: #B9C6CF; }
.scale-knob { position: absolute; top: 1px; left: var(--p); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(31, 168, 160, .25); }
.cmp-cell .scale > .scale-knob { z-index: 1; }
.cmp-cell.is-picked .scale-knob { background: var(--white); box-shadow: 0 0 0 3px rgba(255, 92, 31, .45); }
.compare-note { margin: .9rem 0 0; font-size: .95rem; color: var(--muted); max-width: 62rem; }

/* Блок последних записей */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.card-grid-front { align-items: start; }
.layout-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper-lite);
    border: 2px solid var(--ink);
    overflow: hidden;
    min-width: 0;
    transition: transform .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.card-thumb { position: relative; border-bottom: 1px solid var(--ink); background: var(--paper-lite); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8.8; object-fit: cover; }
.card-thumb img.card-thumb-fb { object-fit: contain; padding: 2.2rem 1.2rem 1rem; mix-blend-mode: multiply; }
.card-thumb::before, .card-thumb::after { content: ""; position: absolute; pointer-events: none; background: rgba(20, 32, 43, .28); z-index: 1; }
.card-thumb::before { left: 50%; top: 10%; bottom: 10%; width: 1px; }
.card-thumb::after { top: 50%; left: 8%; right: 8%; height: 1px; }
.card-stamp { position: absolute; top: 0; left: 0; z-index: 2; background: var(--paper-lite); border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .25rem .6rem; font-family: var(--f-head); font-size: .82rem; letter-spacing: .08em; color: var(--ink); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.25rem 1.25rem; min-width: 0; }
.card-title { hyphens: manual; font-size: 1.08rem; line-height: 1.3; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 .7rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--teal-ink); }
.card-excerpt { color: #4A5A66; font-size: .98rem; line-height: 1.5; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--teal-ink); }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.card-date { color: var(--muted); font-size: .9rem; letter-spacing: .03em; }
.empty-state { padding: 1.6rem 1.8rem; border: 1px dashed var(--grid-major); background: var(--paper-lite); color: var(--muted); }

/* Блок 3: анатомия района */
.anatomy-wrap { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.8fr); gap: 1.6rem; align-items: stretch; }
.anatomy-list { border: 2px solid var(--ink); background: var(--paper-lite); align-self: start; min-width: 0; }
.ana-item { border-bottom: 1px solid var(--grid-major); }
.ana-item:last-child { border-bottom: 0; }
.ana-item summary { list-style: none; display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; cursor: pointer; font-family: var(--f-head); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #3E4F5C; position: relative; padding-right: 2.6rem; }
.ana-item summary::-webkit-details-marker { display: none; }
.ana-item summary::after { content: "›"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-52%); font-size: 1.3rem; font-family: var(--f-text); transition: transform .15s; }
.ana-item summary:hover { background: #E1E8EC; color: var(--ink); }
.ana-num { color: var(--muted); min-width: 1.6em; }
.ana-name { min-width: 0; }
.ana-item[open] summary { background: var(--teal); color: var(--ink); }
.ana-item[open] summary .ana-num { color: var(--ink); }
.ana-item[open] summary::after { transform: translateY(-52%) rotate(90deg); }
.ana-item p { margin: 0; padding: 1.1rem 1.4rem 1.3rem; font-size: 1rem; line-height: 1.6; color: #2C3D4A; }
.anatomy-map { margin: 0; position: relative; background: var(--mint); border: 1px solid #B5D2CF; padding: 0; min-width: 0; display: flex; flex-direction: column; }
.anatomy-map img { display: block; width: 100%; height: auto; aspect-ratio: 1600 / 614; object-fit: cover; }
.map-dim { position: absolute; left: 50%; transform: translateX(-50%); font-size: .82rem; font-weight: 700; letter-spacing: .03em; color: #0F5E59; background: var(--mint); padding: 0 .4rem; }
.map-dim-top { top: 1.2%; }
.map-dim-bottom { bottom: 1.2%; }
.map-frame { position: relative; }
.map-cap { padding: .7rem 1.1rem .8rem; font-size: .9rem; color: #2C4A48; border-top: 1px solid #B5D2CF; }

/* Блок 4: API и виджеты */
.api-panel { background: var(--ink); color: var(--white); padding: 2.4rem 2.2rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.6fr); gap: 2.2rem; align-items: center; position: relative; }
.api-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(143, 163, 176, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(143, 163, 176, .08) 1px, transparent 1px); background-size: 24px 24px; }
.api-intro, .api-flow { position: relative; min-width: 0; }
.api-title { hyphens: manual; font-family: var(--f-head); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; text-transform: uppercase; letter-spacing: .03em; margin: 0 0 1rem; color: var(--white); }
.api-lead { color: #C9D4DB; font-size: 1rem; margin: 0; }
.api-flow { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; gap: .6rem; }
.flow-box { border: 1px solid var(--teal); padding: 1rem 1.1rem; min-width: 0; background: #041C2E; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; gap: .7rem; }
.flow-label { margin: 0; font-family: var(--f-head); font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--teal); }
.flow-box img { display: block; width: 100%; height: auto; }
.flow-list { list-style: none; margin: 0; padding: 0; }
.flow-list li { position: relative; padding: .28rem 0 .28rem 1.7rem; font-family: var(--f-head); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: #E3EAEE; }
.flow-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 15px; margin-top: -8px; border: 1.5px solid var(--teal); border-radius: 50% / 22%; box-shadow: inset 0 5px 0 -3px var(--teal); }
.flow-arrow { position: relative; height: 2px; background: var(--teal); }
.flow-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6px solid transparent; border-left: 9px solid var(--teal); border-right: 0; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.8rem 0 3.5rem; }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 1.8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--teal-ink); }
.crumbs-sep { margin: 0 .4rem; color: var(--grid-major); }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; align-items: start; }
.layout-single { display: block; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2rem; }
.page-head .sec-head { margin-bottom: .8rem; font-size: .95rem; }
.page-title { hyphens: manual; font-size: clamp(1.7rem, 3.2vw, 2.6rem); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 .8rem; }
.page-lead { color: #3E4F5C; font-size: 1.1rem; max-width: 46rem; }

.entry { background: var(--paper-lite); border: 2px solid var(--ink); padding: 2.2rem 2.4rem; }
.entry-head { border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; padding-bottom: 1rem; }
.entry-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.entry-meta a { color: var(--teal-ink); }
.meta-sep { margin: 0 .5rem; color: var(--grid-major); }
.entry-thumb { margin: 0 0 1.6rem; border: 1px solid var(--ink); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.06rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { text-transform: uppercase; letter-spacing: .03em; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.entry-content h3 { text-transform: uppercase; letter-spacing: .03em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: "+"; position: absolute; left: -1.2em; color: var(--signal); font-weight: 700; }
.entry-content ol li::marker { color: var(--teal-ink); font-weight: 700; }
.entry-content img { display: block; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }
.entry-content blockquote { margin: 1.6em 0; padding: 1.2rem 1.6rem; background: var(--ink); color: var(--white); border-left: 4px solid var(--signal); font-size: 1.1rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote a { color: #7FD9D3; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .97rem; border: 2px solid var(--ink); }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; margin: 1.6em 0; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content th, .entry-content td { border: 1px solid var(--grid-major); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--ink); color: var(--white); font-family: var(--f-head); font-weight: 400; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; border-color: #33495A; }
.entry-content tr:nth-child(even) td { background: #E4EAEE; }
.entry-content pre, .entry-content code { font-family: "Consolas", "Courier New", monospace; font-size: .92em; }
.entry-content pre { background: var(--ink); color: #DDE6EB; padding: 1rem 1.2rem; overflow-x: auto; }
.entry-content hr { border: 0; border-top: 1px dashed var(--grid-major); margin: 2em 0; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { border: 1px solid var(--ink); padding: .2rem .6rem; font-size: .88rem; text-decoration: none; color: var(--ink); }
.entry-tags a:hover { background: var(--ink); color: var(--white); }
.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-caption-text { font-size: .9rem; color: var(--muted); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.post-nav-link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--ink); background: var(--paper-lite); text-decoration: none; color: var(--ink); font-weight: 500; min-width: 0; }
.post-nav-link span { display: block; font-family: var(--f-head); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.post-nav-link:hover { background: var(--ink); color: var(--white); }
.post-nav-next { grid-column: 2; text-align: right; }

/* Пагинация (type => plain) */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2.4rem 0 0; align-items: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .8rem; border: 1px solid var(--ink); background: var(--paper-lite); color: var(--ink); text-decoration: none; font-family: var(--f-head); font-size: .85rem; }
.pager a.page-numbers:hover { background: var(--ink); color: var(--white); }
.pager .page-numbers.current { background: var(--ink); color: var(--white); box-shadow: inset 0 -3px 0 var(--signal); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .3rem; }

/* Поиск */
.search-box { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0; max-width: 34rem; }
.search-input { flex: 1 1 220px; min-width: 0; padding: .72rem .9rem; font: inherit; font-size: 1rem; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }

/* 404 */
.nf-code { font-family: var(--f-head); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; margin: 0 0 .4rem; color: transparent; -webkit-text-stroke: 2px var(--ink); letter-spacing: .05em; }

/* ---------- Сайдбар ---------- */
.sidebar { background: var(--aside); border: 2px solid var(--ink); padding: 1.4rem 1.4rem .6rem; min-width: 0; color: var(--ink); }
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title { margin: 0 0 .9rem; font-size: .92rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); padding-bottom: .5rem; border-bottom: 1px solid var(--grid-major); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { position: relative; padding: .45rem 0 .45rem 1.3rem; border-bottom: 1px dashed var(--grid-major); line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar li::before { content: "+"; position: absolute; left: 0; top: .42rem; color: var(--signal-ink); font-weight: 700; }
.sidebar a { color: var(--ink); text-decoration-color: var(--grid-major); }
.sidebar a:hover { color: var(--teal-ink); text-decoration-color: var(--teal-ink); }
.sidebar .post-date { display: block; color: #4F6270; font-size: .85rem; }
.sidebar p { color: #2C3D4A; }

/* ---------- Комментарии ---------- */
.notes { margin-top: 2.6rem; }
.notes-list, .notes-list .children { list-style: none; margin: 0; padding: 0; }
.notes-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--grid-major); margin-left: .6rem; }
.note-body { background: var(--paper-lite); border: 1px solid var(--ink); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .6rem; }
.note-head img { display: block; border: 1px solid var(--ink); }
.note-author { font-weight: 700; }
.note-date { color: var(--muted); font-size: .88rem; }
.note-wait { color: var(--signal-ink); font-size: .92rem; }
.note-reply a { font-family: var(--f-head); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.comment-respond { background: var(--paper-lite); border: 2px solid var(--ink); padding: 1.6rem 1.8rem; margin-top: 1.4rem; }
.comment-reply-title { margin-top: 0; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .04em; }
.comment-reply-title small { margin-left: .8rem; font-family: var(--f-text); font-size: .85rem; }
.comment-form label { display: block; font-size: .9rem; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .65rem .8rem; font: inherit; border: 1px solid var(--ink); border-radius: 0; background: var(--white); color: var(--ink); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .92rem; }

/* ---------- Подвал ---------- */
.sitefoot { margin-top: 2rem; padding: 2.6rem 0 1.4rem; background: var(--paper); border-top: 1px solid var(--line); color: var(--ink); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.foot-col { padding: 0 2rem; border-left: 1px solid var(--line); min-width: 0; }
.foot-col:first-child { border-left: 0; padding-left: 0; }
.foot-col .widget-title { font-size: .95rem; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 .9rem; color: var(--ink); padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.foot-col p, .foot-col .textwidget { color: #3E4F5C; font-size: .95rem; }
.foot-col a { color: var(--ink); }
.foot-col a:hover { color: var(--signal-ink); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { position: relative; padding: .32rem 0 .32rem 1.4rem; border-bottom: 1px solid #CDD7DE; }
.foot-col li::before { content: "+"; position: absolute; left: 0; top: .28rem; color: var(--signal-ink); font-weight: 700; }
.foot-col li a { text-decoration: none; }
.foot-col li a:hover { text-decoration: underline; }
.foot-copy { margin: 1.1rem 0 0; font-size: .88rem; color: #56697A; letter-spacing: .02em; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--ink); color: var(--white); border-top: 3px solid var(--signal); }
.cookie-inner { width: min(92%, 1320px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1rem 0; }
.cookie-text { margin: 0; font-size: .95rem; color: #DDE6EB; min-width: 0; }
.cookie-mark { color: var(--signal); font-weight: 700; margin-right: .3rem; }
.cookie-banner .btn-frame { color: var(--white); border-color: var(--white); box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 4px var(--white); flex: 0 0 auto; }
.cookie-banner .btn-frame:hover { background: var(--signal); box-shadow: inset 0 0 0 3px var(--signal), inset 0 0 0 4px var(--white); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
    .api-panel { grid-template-columns: minmax(0, 1fr); }
    .layers-fig { padding-right: 140px; }
    .layers-tags { width: 140px; }
}
@media (max-width: 960px) {
    .topbar-row { flex-wrap: wrap; min-height: 0; }
    .nav-toggle { display: inline-flex; }
    .topnav { flex-basis: 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; gap: 0; padding: .4rem 0 .4rem; border-top: 1px solid #33495A; }
    .topnav-list a { display: block; padding: .7rem 0; border-bottom: 1px solid #263847; }
    .fs-layers { grid-template-columns: minmax(0, 1fr); }
    .layers-ruler { display: none; }
    .anatomy-wrap { grid-template-columns: minmax(0, 1fr); }
    .card-grid, .layout-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .layout-single > .content-area { width: 100%; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
    .foot-col { padding: 0; border-left: 0; }
    .api-flow { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .flow-arrow { width: 2px; height: 34px; justify-self: center; }
    .flow-arrow::after { right: auto; left: -5px; top: auto; bottom: -1px; border: 6px solid transparent; border-top: 9px solid var(--teal); border-bottom: 0; }
    .flow-box img { max-width: 320px; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .brand-svg { width: 52px; height: 52px; }
    .brand-desc { display: none; }
    .front { padding-top: 1.8rem; }
    .fs { margin-bottom: 3rem; }
    .layers-fig { padding-right: 0; }
    .layers-tags { position: static; width: auto; display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: .8rem; }
    .layers-tags li { position: relative; top: auto; left: auto; right: auto; transform: none; padding-left: 1.1rem; }
    .layers-tags li::before { display: none; }
    .layers-tags li::after { left: 0; top: 50%; }
    .card-grid, .layout-with-sidebar .card-grid { grid-template-columns: minmax(0, 1fr); }
    .api-panel { padding: 1.6rem 1.3rem; }
    .entry { padding: 1.4rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; }
    .cookie-inner { flex-direction: column; align-items: flex-start; }
    .ana-item p { padding: 1rem 1.1rem 1.1rem; }
    .map-dim { font-size: .7rem; }
    .map-dim-bottom { display: none; }
}
