/*
Theme Name: dds_45678official.com
Theme URI: https://45678official.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: gizhile
*/

/* ---------- Шрифты ---------- */
@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: 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; }

/* ---------- Скрытые элементы (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.topnav[hidden] { display: none !important; }

/* ---------- Переменные ---------- */
:root {
    --paper: #F2EDE3;
    --paper-2: #E9E2D4;
    --paper-3: #F7F3EB;
    --grid: #D9CFBE;
    --ink: #23282B;
    --ink-2: #1A1E20;
    --muted: #6E6A5E;
    --teal: #2F6E6B;
    --teal-light: #9CC7C2;
    --brick: #A6432E;
    --brick-dark: #8A3624;
    --line: #B9AE9B;
    --frame: #8E8677;
    --on-dark: #EDE8DD;
    --on-dark-muted: #ABA597;
    --dark-rule: #4A5154;
    --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --font-text: "IBM Plex Sans", "Segoe UI", Roboto, 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(--font-text);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(rgba(217, 207, 190, .55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 207, 190, .55) 1px, transparent 1px),
        linear-gradient(rgba(217, 207, 190, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 207, 190, .28) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    overflow-wrap: break-word;
    hyphens: auto;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.15; hyphens: manual; }
a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; transition: color .15s; }
a:hover { color: var(--brick); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }
figure { margin: 0; }

.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(--ink); color: var(--paper);
    text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .4em;
    padding: .6em 1.15em;
    font-family: var(--font-text);
    font-size: .8rem; font-weight: 600;
    line-height: 1.2;
    letter-spacing: .07em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--brick); border-color: var(--brick); color: #fff; }
.btn-small { padding: .5em .85em; font-size: .72rem; }
.btn-light { color: var(--on-dark); border-color: var(--on-dark); }
.btn-light:hover { background: var(--on-dark); color: var(--ink); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--paper);
    border-bottom: 3px solid var(--ink);
    position: relative;
}
.masthead::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -7px;
    height: 1px; background: var(--ink);
}
.masthead-row {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 1rem 1.5rem;
    padding: 1.2rem 0 1.3rem;
}
.brand {
    display: flex; align-items: center; gap: 1rem;
    flex: 1 1 0; min-width: 0;
    color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
    flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    width: 64px; height: 64px;
    border: 2px solid var(--ink);
    padding: 5px;
    background: var(--paper-3);
    box-shadow: 4px 4px 0 -2px var(--paper), 4px 4px 0 0 var(--ink);
}
.brand-svg { width: 100%; height: 100%; color: var(--ink); }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.22;
    letter-spacing: .01em;
    text-transform: uppercase;
    max-width: 62ch;
    hyphens: manual;
}
.brand-desc {
    font-size: .78rem; line-height: 1.4;
    color: var(--muted);
    max-width: 78ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    hyphens: manual;
}
.nav-toggle {
    display: inline-flex; align-items: center; gap: .55rem;
    margin-left: auto;
    padding: .55rem .8rem;
    font: 600 .78rem/1 var(--font-text);
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--ink); background: transparent;
    border: 1px solid var(--ink); border-radius: 0;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.topnav { flex: 1 0 100%; }
.topnav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column;
    border-top: 1px solid var(--line);
}
.topnav-list a {
    display: block;
    padding: .75rem 0;
    font-size: .88rem; font-weight: 500;
    letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.topnav-list a:hover { color: var(--brick); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--brick); }
.js-nav .topnav { display: none; }
.js-nav .topnav.is-open { display: block; }

@media (min-width: 601px) and (max-width: 959px) {
    .brand-name { font-size: .95rem; }
}
@media (min-width: 960px) and (max-width: 1199px) {
    .brand-name { font-size: .92rem; }
    .topnav-list { gap: .4rem 1.4rem; }
}
@media (min-width: 960px) {
    .masthead-row { flex-wrap: nowrap; padding: 1.5rem 0; gap: 2rem; }
    .brand-mark { width: 92px; height: 92px; padding: 8px; }
    .brand-name { font-size: 1.12rem; }
    .nav-toggle { display: none; }
    .topnav, .js-nav .topnav { display: block; flex: 0 0 auto; }
    .topnav-list { flex-direction: row; flex-wrap: wrap; gap: .4rem 2.1rem; border-top: 0; justify-content: flex-end; }
    .topnav-list a { padding: .35rem 0; border-bottom: 2px solid transparent; font-size: .9rem; white-space: nowrap; }
    .topnav-list a:hover { color: var(--ink); border-bottom-color: var(--ink); }
    .topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--ink); border-bottom-color: var(--ink); }
}

/* ---------- Подписи секций ---------- */
.sec-label {
    display: inline-block;
    margin: 0 0 1.3rem;
    padding: 0 2.6rem .4rem 0;
    font-family: var(--font-text);
    font-size: 1.05rem; font-weight: 600;
    line-height: 1.3;
    letter-spacing: .05em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}
.sec-num { font-variant-numeric: tabular-nums; margin-right: .15em; }
.sec-head-row {
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: .6rem 1.5rem;
    margin-bottom: 1.3rem;
}
.sec-head-row .sec-label { margin-bottom: 0; }
.sec-aside { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Полосы главной ---------- */
.band { padding: 2.6rem 0 3rem; }
.band-paper { background: transparent; }
.band-graphite {
    color: var(--on-dark);
    background-color: var(--ink);
    border-top: 1px solid var(--ink-2);
}
.band-brick {
    color: #FBF4EC;
    background-color: var(--brick);
    border-top: 1px solid var(--brick-dark);
}
@media (min-width: 960px) {
    .band { padding: 3rem 0 3.4rem; }
}

/* 1. Атлас районов */
.atlas-title {
    margin: 0 0 .35em;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.5rem, 6.6vw, 5.2rem);
    line-height: .95;
    text-transform: uppercase;
    letter-spacing: -.005em;
}
.atlas-lead { max-width: 64ch; margin-bottom: 1.6rem; color: #3A3F42; }
.atlas-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.atlas-map {
    position: relative;
    min-width: 720px;
    border: 1px solid var(--frame);
    background: var(--paper-3);
}
.atlas-map img { width: 100%; height: auto; }
.atlas-pin {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    padding: 0 .35em;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(.68rem, 1.18vw, 1.12rem);
    line-height: 1;
    white-space: nowrap;
    background: var(--paper-3);
    border: 2px solid currentColor;
}
.atlas-pin-quiet { left: 7.4%; top: 8.6%; width: 13.4%; height: 12.6%; color: var(--teal); }
.atlas-pin-new { left: 48%; top: 2.2%; width: 16.4%; height: 12.4%; color: var(--brick); }
.atlas-pin-old { left: 78.8%; top: 8.6%; width: 13.8%; height: 13.2%; color: var(--brick); }
.atlas-compass {
    position: absolute; right: 1.4%; top: 5%;
    width: 3.6%; height: auto;
    color: var(--ink); opacity: .75;
}
.atlas-legend {
    list-style: none; margin: 1.4rem 0 0; padding: 0;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
}
.atlas-legend li {
    position: relative;
    min-width: 0;
    padding-left: 1.6rem;
    font-size: .92rem; color: #3A3F42;
}
.atlas-legend strong {
    display: block;
    font-family: var(--font-head); font-weight: 500;
    font-size: 1.02rem; letter-spacing: .03em;
    text-transform: uppercase; color: var(--ink);
}
.legend-mark { position: absolute; left: 0; top: .3em; width: 14px; height: 14px; border: 1px solid var(--ink); }
.legend-teal { background: #6FA9A0; }
.legend-brick { background: #C9735E; }
.legend-hatch { background: repeating-linear-gradient(45deg, #C9735E 0 3px, #E9C3B6 3px 5px); }
@media (min-width: 700px) {
    .atlas-scroll { overflow: visible; }
    .atlas-map { min-width: 0; }
    .atlas-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
}

/* 2. Разрез квартиры */
.cut .sec-label { color: var(--on-dark); }
.cut-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.cut-figure img { width: 100%; height: auto; }
.cut-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.cut-note { display: flex; align-items: flex-start; gap: .9rem; min-width: 0; }
.cut-floor {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.3rem; height: 2.3rem;
    border-radius: 50%;
    background: var(--teal);
    color: var(--on-dark);
    font-weight: 600; font-size: 1rem;
    box-shadow: 0 0 0 3px rgba(47, 110, 107, .28);
}
.cut-body { display: flex; flex-direction: column; min-width: 0; }
.cut-body strong { font-weight: 500; font-size: 1.15rem; color: #FFFFFF; line-height: 1.25; }
.cut-body span { font-size: .86rem; color: var(--teal-light); line-height: 1.35; }
@media (min-width: 1100px) {
    .cut-grid { grid-template-columns: minmax(0, 64fr) minmax(0, 36fr); gap: 0; align-items: stretch; }
    .cut-notes { position: relative; display: block; }
    .cut-note { position: absolute; left: 0; right: 0; align-items: center; transform: translateY(-1.15rem); }
    .cut-note::before {
        content: ""; flex: 0 0 2.4rem; height: 1px;
        background: var(--teal); align-self: flex-start; margin-top: 1.15rem;
    }
    .cut-note-1 { top: 20.5%; }
    .cut-note-2 { top: 41.2%; }
    .cut-note-3 { top: 61.7%; }
    .cut-body span { white-space: nowrap; }
}

/* 3. Последние записи */
.latest .btn-ghost { margin-bottom: .2rem; }
.empty-note { color: var(--muted); }

/* 4. Дом по частям */
.parts .sec-label { color: #FBF4EC; }
.parts-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.parts-figure img { width: 100%; height: auto; }
.parts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.parts-item { display: flex; align-items: flex-start; gap: .8rem; min-width: 0; }
.parts-num {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem;
    border-radius: 50%;
    background: #FBF4EC; color: var(--brick);
    font-weight: 600; font-size: .95rem;
}
.parts-body { display: flex; flex-direction: column; min-width: 0; }
.parts-body strong { font-weight: 500; font-size: 1.12rem; line-height: 1.2; color: #FFFFFF; }
.parts-body span { font-size: .88rem; line-height: 1.35; color: rgba(255, 244, 234, .88); }
@media (min-width: 1100px) {
    .parts-grid { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); gap: 0; }
    .parts-list { position: relative; display: block; }
    .parts-item { position: absolute; left: 0; right: 0; transform: translateY(-1rem); }
    .parts-item::before {
        content: ""; flex: 0 0 1.6rem; height: 1px;
        margin-top: 1rem; background: rgba(251, 244, 236, .75);
    }
    .parts-item-1 { top: 6.7%; }
    .parts-item-2 { top: 26.7%; }
    .parts-item-3 { top: 46.7%; }
    .parts-item-4 { top: 66.7%; }
    .parts-item-5 { top: 86.7%; }
    .parts-body span { white-space: nowrap; }
}

/* 5. Словарь покупателя */
.table-wrap { overflow-x: auto; }
.gloss-table { width: 100%; border-collapse: collapse; background: var(--paper-3); border: 2px solid var(--ink); }
.gloss-table th, .gloss-table td { border: 1px solid var(--frame); padding: .75rem 1rem; text-align: left; vertical-align: top; font-size: .93rem; }
.gloss-table thead th {
    font-size: .76rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
    background: var(--paper-2); border-bottom: 2px solid var(--ink);
}
.gloss-table tbody th { width: 34%; font-weight: 600; }
.gloss-table tbody tr:hover { background: #FFFDF8; }

/* ---------- Карточки ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 600px) {
    .cards-3, .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
}
.card {
    display: flex; flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--paper-3);
    border: 1px solid var(--frame);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--teal); border-color: var(--ink); }
.card-thumb { display: block; border-bottom: 1px solid var(--frame); background: var(--paper); }
.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: 1.1rem 1.15rem 1.1rem;
}
.card-stamp {
    align-self: flex-start;
    margin-bottom: .6rem;
    padding: .15rem .5rem;
    font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brick); border: 1px solid var(--brick);
}
.card-title {
    margin: 0 0 .55rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brick); }
.card-excerpt { font-size: .9rem; line-height: 1.5; color: var(--muted); margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-excerpt a { color: var(--teal); }
.card-foot {
    margin-top: auto;
    display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
    gap: .6rem;
}
.card-date { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .03em; }

/* ---------- Внутренние страницы ---------- */
.page-shell { padding: 1.6rem 0 3.4rem; }
.crumbs {
    display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem;
    margin: 0 0 2rem;
    padding: .45rem .8rem;
    width: fit-content; max-width: 100%;
    font-size: .76rem; letter-spacing: .07em; text-transform: uppercase;
    color: var(--muted);
    background: var(--paper-3);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
}
.crumbs a { color: var(--ink); }
.crumbs a:hover { color: var(--brick); }
.crumbs-sep { color: var(--brick); }
.layout-single, .layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.sidebar { margin-top: 2.6rem; min-width: 0; }
@media (min-width: 960px) {
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        align-items: start;
    }
    .layout-with-sidebar .sidebar { margin-top: 0; }
    .layout-single .content-area { width: 92%; margin-left: auto; margin-right: auto; }
}
.page-head { margin-bottom: 2rem; }
.page-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    line-height: 1.05;
    text-transform: uppercase;
    margin: 0 0 .5rem;
}
.page-intro { max-width: 70ch; color: #3A3F42; }

.entry-head { margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.entry-meta a { color: var(--teal); }
.meta-sep { color: var(--line); }
.entry-cover { margin-bottom: 1.6rem; border: 1px solid var(--frame); }
.entry-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content { font-size: 1.04rem; line-height: 1.72; }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3, .entry-content h4 {
    font-family: var(--font-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .02em;
    margin: 1.8em 0 .6em;
}
.entry-content h2 { font-size: 1.6rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
.entry-content h3 { font-size: 1.28rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.3rem; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before {
    content: ""; position: absolute; left: -1.15rem; top: .62em;
    width: 7px; height: 7px; background: var(--teal);
}
.entry-content ol > li::marker { color: var(--brick); font-weight: 600; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.5rem;
    background: var(--paper-2);
    border-left: 4px solid var(--brick);
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; background: var(--paper-3); border: 1px solid var(--ink); }
.entry-content th, .entry-content td { border: 1px solid var(--frame); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper-2); font-weight: 600; }
.entry-content img { border: 1px solid var(--line); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; padding: 1rem; background: var(--ink); color: var(--on-dark); font-size: .88rem; }
.entry-content code { font-size: .9em; background: var(--paper-2); padding: .1em .3em; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; border-top: 1px dashed var(--frame); margin: 2em 0; }
.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: .82rem; color: var(--muted); }
.page-links { margin-top: 1.4rem; font-size: .9rem; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.tag-chip {
    padding: .3rem .7rem;
    font-size: .75rem; letter-spacing: .06em; text-transform: uppercase;
    color: var(--ink); text-decoration: none;
    border: 1px solid var(--ink);
}
.tag-chip:hover { background: var(--ink); color: var(--paper); }

.post-nav {
    display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem;
    margin-top: 2.6rem;
}
@media (min-width: 600px) {
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-nav-next { grid-column: 2; }
}
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    color: var(--ink); text-decoration: none;
    background: var(--paper-3);
    border: 1px solid var(--frame);
    font-weight: 500;
}
.post-nav-link span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brick); margin-bottom: .3rem; }
.post-nav-link:hover { border-color: var(--ink); color: var(--ink); }
.post-nav-next { text-align: right; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.5rem; height: 2.5rem;
    padding: 0 .75rem;
    font-size: .86rem; font-weight: 600;
    color: var(--ink); text-decoration: none;
    background: var(--paper-3);
    border: 1px solid var(--ink);
}
.pager a.page-numbers:hover { background: var(--ink); color: var(--paper); }
.pager .page-numbers.current { background: var(--ink); color: var(--paper); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 .2rem; }

/* ---------- Сайдбар ---------- */
.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.3rem 1.3rem 1.1rem;
    background: var(--paper-2);
    border: 1px solid var(--frame);
    border-top: 4px solid var(--teal);
    color: var(--ink);
}
.sidebar .widget-title {
    display: inline-block;
    margin: 0 0 .9rem;
    padding: 0 1.6rem .3rem 0;
    font-family: var(--font-text);
    font-size: .88rem; font-weight: 600;
    letter-spacing: .07em; text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed var(--frame); font-size: .92rem; line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--brick); text-decoration: underline; }
.sidebar .widget .post-date { display: block; font-size: .78rem; color: var(--muted); }
.sidebar .widget p { color: var(--ink); font-size: .92rem; }
.sidebar .searchbox { flex-wrap: wrap; }

/* ---------- Поиск ---------- */
.searchbox { display: flex; gap: .5rem; max-width: 560px; }
.searchbox-field {
    flex: 1 1 auto; min-width: 0;
    padding: .65rem .8rem;
    font: inherit; font-size: .95rem;
    color: var(--ink);
    background: var(--paper-3);
    border: 1px solid var(--ink);
    border-radius: 0;
}
.searchbox-btn { flex: 0 0 auto; }
.empty-block .searchbox { margin-top: 1rem; }

/* ---------- 404 ---------- */
.lost { padding: 1rem 0 2rem; }
.lost-code {
    margin: 0;
    font-family: var(--font-head); font-weight: 700;
    font-size: clamp(6rem, 18vw, 12rem); line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--brick);
    letter-spacing: .02em;
    margin-bottom: .15em;
}
.lost-text { max-width: 60ch; color: #3A3F42; margin-bottom: 1.4rem; }
.lost-actions { margin-top: 1.4rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 3rem; padding-top: 1.6rem; border-top: 3px solid var(--ink); }
.talk-title, .comment-reply-title {
    font-family: var(--font-head); font-weight: 500;
    font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em;
}
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.4rem; border-left: 1px dashed var(--frame); margin-left: .6rem; }
.note-body { margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: var(--paper-3); border: 1px solid var(--frame); }
.note-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin-bottom: .6rem; }
.note-meta img { width: 44px; height: 44px; border: 1px solid var(--line); }
.note-author { font-weight: 600; }
.note-date { font-size: .8rem; color: var(--muted); }
.note-wait { font-size: .85rem; color: var(--brick); }
.note-text p { margin-bottom: .6em; }
.note-reply a { font-size: .76rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .86rem; font-weight: 600; }
.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; font-size: .95rem;
    color: var(--ink); background: var(--paper-3);
    border: 1px solid var(--ink); border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.form-note { font-size: .86rem; color: var(--muted); }
.req { color: var(--brick); }
.comment-form .submit { font-family: var(--font-text); }
#cancel-comment-reply-link { margin-left: .6rem; font-size: .8rem; font-family: var(--font-text); text-transform: none; }

/* ---------- Подвал ---------- */
.sitefoot {
    color: var(--on-dark);
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    padding: 2.6rem 0 1.6rem;
    border-top: 3px solid var(--ink-2);
}
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
.foot-col { min-width: 0; }
.sitefoot .widget { margin-bottom: 1.2rem; color: var(--on-dark); }
.sitefoot .widget-title {
    display: inline-block;
    margin: 0 0 .9rem;
    padding: 0 1.8rem .3rem 0;
    font-family: var(--font-text);
    font-size: 1.02rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    color: #FFFFFF;
    border-bottom: 1px solid var(--on-dark-muted);
}
.sitefoot .widget p, .sitefoot .textwidget { color: var(--on-dark); font-size: .92rem; line-height: 1.55; }
.sitefoot .widget ul { list-style: none; margin: 0; padding: 0; }
.sitefoot .widget li { margin: 0 0 .45rem; font-size: .92rem; }
.sitefoot .widget a { color: var(--on-dark); text-decoration: none; }
.sitefoot .widget a:hover { color: var(--teal-light); text-decoration: underline; }
.copyline {
    margin: 2rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--dark-rule);
    font-size: .82rem;
    color: var(--on-dark-muted);
}
@media (min-width: 760px) {
    .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
    .foot-col { padding: 0 2.2rem; }
    .foot-col-1 { padding-left: 0; }
    .foot-col-3 { padding-right: 0; }
    .foot-col-2, .foot-col-3 { border-left: 1px solid var(--dark-rule); }
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--ink-2);
    color: var(--on-dark);
    border-top: 3px solid var(--teal);
}
.cookie-inner {
    width: min(92%, 1240px); margin-inline: auto;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .8rem 1.6rem;
    padding: 1rem 0;
}
.cookie-text { margin: 0; flex: 1 1 320px; min-width: 0; font-size: .88rem; line-height: 1.5; color: var(--on-dark); }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Мобильные уточнения ---------- */
@media (max-width: 600px) {
    .band { padding: 2.2rem 0 2.4rem; }
    .front-shell { width: min(90%, 1240px); }
    .sec-label { font-size: .95rem; padding-right: 1.6rem; }
    .gloss-table th, .gloss-table td { padding: .6rem .7rem; font-size: .88rem; }
    .gloss-table tbody th { width: 38%; }
    .sidebar .widget { padding: 1.1rem 1rem 1rem; }
    .crumbs { font-size: .7rem; }
    .masthead-row { align-items: flex-start; }
    .brand { align-items: flex-start; gap: .75rem; }
    .brand-mark { width: 52px; height: 52px; padding: 4px; }
    .brand-name {
        font-size: .86rem; line-height: 1.25;
        text-transform: none;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .brand-desc { font-size: .72rem; }
}
