/*
Theme Name: dds_alfredlanellc.com
Author: Анна Савельева
Description: Тема «Инженерный атлас» для консалтингового сайта о CPG-стратегии и операциях с недвижимостью: тёмная миллиметровка, чертёжные линии, две практики — два акцента.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: alfrlane
License: GNU General Public License v2 or later
*/

/* ---------- Служебные правила hidden ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #12161A;
    --navy: #16202B;
    --calque: #D9D4C7;
    --text: #ECEFF1;
    --muted: #8A97A3;
    --ink: #1B1F24;
    --cpg: #E8552F;
    --re: #4FA3A5;
    --line: #38444F;
    --gold: #F2C14E;
    --gold-ink: #8F6B12;
    --grid-s: rgba(34, 42, 49, .75);
    --grid-l: rgba(46, 57, 66, .7);
    --foot: #0E1216;
    --side: #171E25;
    --grey: #8C939A;
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--f-body);
    font-size: 15.5px;
    line-height: 1.75;
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid-l) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-l) 1px, transparent 1px),
        linear-gradient(var(--grid-s) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-s) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
}

img { max-width: 100%; height: auto; display: block; }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 500;
    line-height: 1.2;
    margin: 1.6em 0 .6em;
    letter-spacing: .02em;
}

p, li, dd, dt, h1, h2, h3, h4, figcaption, summary, .card-title, .brand-text {
    overflow-wrap: break-word;
    hyphens: auto;
}

a { color: var(--text); text-decoration: underline; text-decoration-color: var(--cpg); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--cpg); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: .6rem 1.1rem;
    background: var(--cpg);
    color: var(--bg);
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.shell { width: 92%; max-width: 1240px; margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .72rem 1.7rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--f-head);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.3;
    border-radius: 0;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--line); color: var(--text); }
.btn--cpg { background: var(--cpg); border-color: var(--cpg); color: var(--bg); }
.btn--cpg:hover { background: #F06A45; color: var(--bg); box-shadow: 3px 3px 0 var(--gold); }
.btn--re { border-color: var(--re); color: var(--re); }
.btn--re:hover { background: var(--re); color: var(--bg); box-shadow: 3px 3px 0 var(--line); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: .42rem 1rem; font-size: .76rem; }

/* ---------- Шапка ---------- */
.masthead { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: var(--text);
    min-width: 0;
    flex: 1 1 320px;
    max-width: 640px;
}
.brand:hover { color: var(--text); }
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    margin-top: .2rem;
    font-size: .76rem;
    line-height: 1.45;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .9rem;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 1.5px;
    background: var(--cpg);
    position: relative;
    content: "";
}
.nav-toggle-bars::before { position: absolute; top: -5px; }
.nav-toggle-bars::after { position: absolute; top: 5px; background: var(--re); }

.topnav { display: none; width: 100%; }
.topnav.is-open { display: block; }
.topnav-list { list-style: none; margin: 0; padding: .4rem 0 0; border-top: 1px solid var(--line); }
.topnav-list li { border-bottom: 1px solid var(--line); }
.topnav-list a {
    display: block;
    padding: .7rem 0;
    font-family: var(--f-head);
    font-size: 1rem;
    letter-spacing: .04em;
    text-decoration: none;
    color: var(--text);
}
.topnav-list a:hover,
.topnav-list .current-menu-item > a { color: var(--cpg); }

/* ---------- Заголовки-штампы ---------- */
.sheet-tag {
    display: block;
    font-family: var(--f-head);
    font-size: .74rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.sheet-head { margin-bottom: 2rem; }
.sheet-head .sheet-tag { padding-bottom: .55rem; border-bottom: 1px solid var(--line); position: relative; }
.sheet-head .sheet-tag::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 48px; height: 1px;
    background: var(--cpg);
}
.sheet-title {
    hyphens: manual;
    margin: .7rem 0 0;
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    line-height: 1.1;
}
.sheet-head--ink .sheet-tag { color: #4A525B; border-bottom-color: rgba(27, 31, 36, .35); }
.sheet-head--ink .sheet-title { color: var(--ink); }

/* ---------- Полосы главной ---------- */
.band { padding: 3.5rem 0; position: relative; }
.band--graphite { background: transparent; }
.band--navy {
    background-color: var(--navy);
    background-image:
        linear-gradient(rgba(56, 68, 79, .35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 68, 79, .35) 1px, transparent 1px);
    background-size: 50px 50px;
}
.band--calque {
    background-color: var(--calque);
    background-image:
        linear-gradient(rgba(27, 31, 36, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 31, 36, .06) 1px, transparent 1px);
    background-size: 25px 25px;
    color: var(--ink);
}

/* Первый экран */
.opening { padding: 3rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.opening-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.opening-copy { min-width: 0; }
.opening-title {
    margin: .8rem 0 1.2rem;
    font-size: clamp(2.1rem, 3.6vw, 3.6rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.04;
    hyphens: manual;
    overflow-wrap: normal;
}
.opening-title span { white-space: nowrap; }
.opening-lead { font-size: 1.15rem; line-height: 1.55; max-width: 30ch; color: var(--text); }
.opening-figure { margin: 0; min-width: 0; position: relative; }
.opening-figure img { width: 100%; aspect-ratio: 1450 / 925; object-fit: cover; }
.opening-figure::before {
    content: "";
    position: absolute;
    inset: -10px auto auto -10px;
    width: 26px; height: 26px;
    border-top: 1px solid var(--re);
    border-left: 1px solid var(--re);
}
.opening-figure::after {
    content: "";
    position: absolute;
    right: -10px; bottom: -10px;
    width: 26px; height: 26px;
    border-bottom: 1px solid var(--cpg);
    border-right: 1px solid var(--cpg);
}

/* Блок 1 — атлас практик */
.atlas-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.atlas-half { min-width: 0; }
.practice-chip {
    display: inline-block;
    padding: .22rem .75rem;
    margin-bottom: 1rem;
    font-family: var(--f-head);
    font-size: .95rem;
    letter-spacing: .04em;
    color: var(--bg);
    text-decoration: none;
}
.practice-chip--cpg { background: var(--cpg); }
.practice-chip--re { background: var(--re); }
.practice-chip--line { color: var(--re); border: 1px solid var(--re); padding: .15rem .7rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.practice-chip--line:hover { background: var(--re); color: var(--bg); }

.atlas-row { border-bottom: 1px solid var(--line); }
.atlas-row:first-of-type { border-top: 1px solid var(--line); }
.atlas-row summary {
    list-style: none;
    cursor: pointer;
    padding: .7rem 0 .7rem 1.4rem;
    position: relative;
    font-family: var(--f-head);
    font-size: 1.15rem;
    letter-spacing: .02em;
}
.atlas-row summary::-webkit-details-marker { display: none; }
.atlas-row summary::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 9px; height: 1.5px;
    background: var(--cpg);
}
.atlas-half--re .atlas-row summary::before { background: var(--re); }
.atlas-row summary::after {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    margin-left: .6rem;
    border-right: 1.5px solid var(--cpg);
    border-bottom: 1.5px solid var(--cpg);
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s;
}
.atlas-half--re .atlas-row summary::after { border-color: var(--re); }
.atlas-row[open] summary::after { transform: translateY(0) rotate(-135deg); }
.atlas-row summary:hover { color: var(--cpg); }
.atlas-half--re .atlas-row summary:hover { color: var(--re); }
.atlas-row p { margin: -.2rem 0 .9rem 1.4rem; font-size: .9rem; color: #C4CCD3; max-width: 52ch; }

/* Блок 2 — полка и квартал */
.cut-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; align-items: end; }
.cut-figure { margin: 0; min-width: 0; }
.cut-figure img { width: 100%; height: auto; }
.cut-figure figcaption {
    margin-top: .8rem;
    text-align: center;
    font-family: var(--f-head);
    font-size: 1.05rem;
    letter-spacing: .04em;
    padding-top: .5rem;
    border-top: 1px solid var(--line);
}
.cut-axis {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    min-width: 0;
}
.cut-axis-label {
    font-family: var(--f-head);
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-align: center;
    max-width: 14ch;
    line-height: 1.25;
}
.cut-axis-line { position: relative; display: block; width: 46px; height: 1px; background: var(--muted); }
.cut-axis-line::after {
    content: "";
    position: absolute;
    left: -1px; top: -4px;
    width: 8px; height: 8px;
    border-left: 1px solid var(--muted);
    border-top: 1px solid var(--muted);
    transform: rotate(-45deg);
}
.cut-axis-line--down::after { left: auto; right: -1px; transform: rotate(135deg); }

/* Последние записи */
.latest { border-top: 1px solid var(--line); }
.latest-more { margin: 2.2rem 0 0; text-align: right; }

/* Блок 3 — метрики на кальке */
.metrics { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.metrics-vertical {
    margin: 0;
    font-family: var(--f-head);
    font-size: 2.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .14em;
    line-height: 1;
    color: var(--ink);
}
.metrics-main { min-width: 0; }
.metrics-lead { max-width: 44ch; color: #3A4048; font-size: .95rem; }
.metrics-table {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid var(--ink);
    min-width: 0;
}
.metric { padding: .9rem 1.2rem 1rem; border-bottom: 1px solid var(--ink); min-width: 0; }
.metric:last-child { border-bottom: 0; }
.metric dt { font-size: .92rem; color: var(--ink); }
.metric dt::after { content: " —"; }
.metric dd { margin: .2rem 0 0; font-size: .88rem; color: #3A4048; line-height: 1.3; }
.metric dd strong {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 2.6rem;
    line-height: 1;
    color: var(--gold-ink);
    margin-right: .25rem;
    letter-spacing: .01em;
    text-shadow: 1px 1px 0 rgba(242, 193, 78, .55);
}

/* Блок 4 — два пути сделки */
.route { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.route-name { margin: 0; font-family: var(--f-head); font-size: 1.3rem; letter-spacing: .02em; }
.route--cpg .route-name { color: var(--cpg); }
.route--re .route-name { color: var(--re); }
.route-track {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.4rem;
    position: relative;
    min-width: 0;
}
.route-track::before {
    content: "";
    position: absolute;
    left: 5px; top: .4rem; bottom: .4rem;
    width: 1.5px;
    background: var(--cpg);
}
.route--re .route-track::before { background: var(--re); }
.route-track li { position: relative; padding: .35rem 0; }
.route-dot {
    position: absolute;
    left: -1.4rem; top: 50%;
    width: 12px; height: 12px;
    margin-top: -6px;
    background: var(--cpg);
    border: 1px solid var(--bg);
    outline: 1px solid var(--cpg);
}
.route--re .route-dot { background: var(--re); outline-color: var(--re); }
.route-step { font-family: var(--f-head); font-size: 1.1rem; letter-spacing: .03em; }
.route-between {
    margin: 1.6rem 0;
    padding: .5rem 0;
    border-top: 1px dashed var(--line);
    border-bottom: 1px dashed var(--line);
    font-size: .9rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: .06em;
}
.routes-more { margin: 2.4rem 0 0; text-align: right; }

/* ---------- Карточки ---------- */
.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: rgba(18, 22, 26, .92);
    border: 1px solid var(--line);
    border-top: 0;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.card::before { content: ""; display: block; height: 14px; background: var(--cpg); flex: 0 0 auto; }
.card--re::before { background: var(--re); }
.card--joint::before { background: var(--grey); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--line); border-color: var(--muted); }
.card-thumb { position: relative; border-bottom: 1px solid var(--line); background: #181E24; }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; display: block; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.25rem 1.3rem; min-width: 0; }
.card-flag {
    align-self: flex-start;
    margin-bottom: .6rem;
    padding: .1rem .55rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--f-head);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.card-title { margin: 0 0 .5rem; font-size: 1.3rem; font-weight: 500; line-height: 1.25; }
.card-title a { text-decoration: none; color: var(--text); }
.card-title a:hover { color: var(--cpg); }
.card--re .card-title a:hover { color: var(--re); }
.card-excerpt { flex: 1; font-size: .9rem; color: #C4CCD3; line-height: 1.6; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: inherit; }
.card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
}
.card-date { font-size: .8rem; color: var(--muted); letter-spacing: .06em; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 4rem; }
.crumbs {
    font-size: .82rem;
    color: var(--muted);
    padding-bottom: .9rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    letter-spacing: .02em;
}
.crumbs a { color: var(--muted); text-decoration-color: var(--line); }
.crumbs a:hover { color: var(--cpg); }
.crumbs span:last-child { color: var(--text); }
.crumbs-sep { margin: 0 .35rem; color: var(--cpg); }

.layout-single { display: block; }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-title {
    margin: .5rem 0 .8rem;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}
.page-lead { color: #C4CCD3; max-width: 62ch; }
.empty-note { color: var(--muted); }
.empty-state .search-form { margin-top: 1rem; }

.entry {
    background: rgba(18, 22, 26, .9);
    border: 1px solid var(--line);
    padding: 1.6rem 1.3rem;
}
.entry-head { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.entry-title { margin: .6rem 0 .5rem; font-size: clamp(1.8rem, 3.8vw, 2.6rem); font-weight: 500; letter-spacing: .03em; line-height: 1.15; }
.entry-meta { margin: 0; font-size: .82rem; color: var(--muted); letter-spacing: .06em; }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { width: 100%; height: auto; }
.entry-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { font-size: .8rem; padding: .15rem .6rem; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.entry-tags a:hover { color: var(--cpg); border-color: var(--cpg); }

.entry-content { font-size: 1rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.7rem; text-transform: uppercase; letter-spacing: .04em; padding-top: .6rem; border-top: 1px solid var(--line); }
.entry-content h3 { font-size: 1.35rem; color: var(--re); }
.entry-content h4 { font-size: 1.15rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--cpg); }
.entry-content ol li::marker { color: var(--re); font-family: var(--f-head); }
.entry-content blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.4rem 1.2rem 1.6rem;
    background: var(--navy);
    border-left: 3px solid var(--re);
    font-family: var(--f-head);
    font-size: 1.2rem;
    line-height: 1.5;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .92rem; border: 1px solid var(--line); }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--navy); font-family: var(--f-head); letter-spacing: .04em; }
.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; background: #0B0E11; border: 1px solid var(--line); padding: 1rem; font-size: .88rem; }
.entry-content code { background: #0B0E11; padding: .05rem .3rem; font-size: .9em; }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.entry-content .wp-block-image img { height: auto; }
.page-links { margin-top: 1.5rem; display: flex; gap: .5rem; flex-wrap: wrap; }

.post-navigation { margin-top: 2rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.post-navigation a {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--line);
    text-decoration: none;
    background: rgba(18, 22, 26, .9);
}
.post-navigation a:hover { border-color: var(--cpg); color: var(--text); }
.post-navigation .nav-next a { text-align: right; }
.nav-cap { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav-ttl { display: block; font-family: var(--f-head); font-size: 1.1rem; margin-top: .2rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.6rem; align-items: center; }
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: .45rem .8rem;
    border: 1px solid var(--line);
    text-align: center;
    text-decoration: none;
    font-family: var(--f-head);
    font-size: .95rem;
    color: var(--text);
    background: rgba(18, 22, 26, .9);
}
.pager a.page-numbers:hover { border-color: var(--cpg); color: var(--cpg); }
.pager .page-numbers.current { background: var(--cpg); border-color: var(--cpg); color: var(--bg); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    margin-top: 2.6rem;
    min-width: 0;
    background: var(--side);
    border: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
    color: var(--text);
}
.sidebar .widget + .widget { margin-top: 2rem; }
.widget-title {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    position: relative;
}
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 32px; height: 1px; background: var(--re); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget, .sidebar .widget p, .sidebar .widget li { color: #C4CCD3; font-size: .92rem; }
.sidebar .widget a { color: var(--text); text-decoration: none; }
.sidebar .widget a:hover { color: var(--cpg); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); font-size: .8rem; display: block; }
.sidebar .search-form { flex-direction: column; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 520px; margin: 1.2rem 0 1.6rem; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: .7rem .9rem;
    background: #0E1216;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    border-radius: 0;
}
.search-field::placeholder { color: var(--muted); }

/* ---------- 404 ---------- */
.notfound { text-align: left; }
.notfound-code {
    margin: 0;
    font-family: var(--f-head);
    font-size: clamp(5rem, 16vw, 9rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px var(--cpg);
    letter-spacing: .06em;
}

/* ---------- Комментарии ---------- */
.comments {
    margin-top: 2.4rem;
    padding: 1.6rem 1.3rem;
    border: 1px solid var(--line);
    background: rgba(18, 22, 26, .9);
}
.comments-title, .comment-reply-title { margin: 0 0 1.2rem; font-size: 1.4rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.4rem; border-left: 1px solid var(--line); }
.comment-body { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-family: var(--f-head); }
.comment-author .avatar { border: 1px solid var(--line); }
.comment-author .says { display: none; }
.comment-metadata { font-size: .78rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-content { margin-top: .6rem; font-size: .95rem; }
.comment-awaiting-moderation { color: var(--gold); font-size: .85rem; }
.reply a { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--re); text-decoration-color: var(--re); }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .85rem; color: var(--muted); 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;
    background: #0E1216;
    border: 1px solid var(--line);
    color: var(--text);
    font: inherit;
    border-radius: 0;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit {
    padding: .72rem 1.7rem;
    background: var(--cpg);
    border: 1px solid var(--cpg);
    color: var(--bg);
    font-family: var(--f-head);
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}
.comment-form .submit:hover { background: #F06A45; }
.req { color: var(--cpg); }
.comment-notes, .logged-in-as { font-size: .85rem; color: var(--muted); }
.comments-pagination, .comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.4rem;
    color: #C4CCD3;
}
.colophon-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.colophon-col { min-width: 0; }
.colophon .widget-title { color: var(--text); border-bottom: 0; padding-bottom: 0; font-size: 1.05rem; letter-spacing: .06em; text-transform: none; }
.colophon .widget-title::after { display: none; }
.colophon .widget, .colophon .widget p, .colophon .widget li { color: #C4CCD3; font-size: .9rem; }
.colophon .widget li { border-bottom: 0; padding: .15rem 0; }
.colophon .widget a { color: #C4CCD3; text-decoration: none; }
.colophon .widget a:hover { color: var(--cpg); }
.colophon .textwidget a { color: var(--text); text-decoration: underline; text-decoration-color: var(--re); }
.colophon-copy {
    margin: 2.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
    color: var(--muted);
    text-align: center;
    letter-spacing: .04em;
}

/* ---------- 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: 1rem;
    padding: 1rem 1.3rem;
    background: var(--navy);
    border: 1px solid var(--line);
    border-top: 3px solid var(--cpg);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, .35);
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
}
.cookie-text { margin: 0; flex: 1 1 320px; font-size: .86rem; color: #C4CCD3; min-width: 0; }
.cookie-text a { color: var(--text); }

/* ---------- WordPress-классы ---------- */
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: .82rem; color: var(--muted); }
.sticky { position: relative; }
.bypostauthor > .comment-body .fn::after { content: " · автор"; color: var(--re); font-size: .8rem; }

/* ---------- ≥600px ---------- */
@media (min-width: 600px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metrics-table { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { border-right: 1px solid var(--ink); }
    .metric:nth-child(2n) { border-right: 0; }
    .metric--wide { grid-column: 1 / -1; border-right: 0; }
    .metric:last-child { border-bottom: 0; }
    .colophon-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .entry, .comments { padding: 2rem 2.2rem; }
    .cut-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .cut-axis { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- ≥960px ---------- */
@media (min-width: 960px) {
    .shell { width: 85%; }
    .band { padding: 4.5rem 0; }

    .nav-toggle { display: none; }
    .topnav { display: block; width: auto; }
    .topnav-list { display: flex; gap: 2rem; padding: 0; border-top: 0; }
    .topnav-list li { border-bottom: 0; }
    .topnav-list a { padding: .3rem 0; border-bottom: 1px solid transparent; }
    .topnav-list a:hover, .topnav-list .current-menu-item > a { border-bottom-color: var(--cpg); }

    .opening { padding: 4.5rem 0 5rem; }
    .opening-grid { grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); gap: 3rem; }

    .atlas-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
    .atlas-half--cpg { padding-right: 3rem; border-right: 1px solid var(--line); }
    .atlas-half--re { padding-left: 3rem; }

    .cut-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 170px) minmax(0, 1fr); gap: 2rem; }
    .cut-axis { grid-column: auto; grid-row: auto; flex-direction: column; align-self: center; padding-bottom: 2.6rem; }
    .cut-axis-line { width: 1px; height: 64px; }
    .cut-axis-line::after { left: -4px; top: -1px; transform: rotate(45deg); }
    .cut-axis-line--down::after { top: auto; bottom: -1px; left: -4px; right: auto; transform: rotate(225deg); }

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

    .metrics-grid { grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.25fr); gap: 2.4rem; align-items: start; }
    .metrics-vertical {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 3rem;
        align-self: stretch;
        text-align: end;
    }

    .route { grid-template-columns: 260px minmax(0, 1fr); align-items: center; gap: 1.5rem; }
    .route-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; height: 64px; }
    .route-track::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1.5px; }
    .route-track::after {
        content: "";
        position: absolute;
        right: 0; top: 50%;
        width: 9px; height: 9px;
        margin-top: -4px;
        border-top: 1.5px solid var(--cpg);
        border-right: 1.5px solid var(--cpg);
        transform: rotate(45deg);
    }
    .route--re .route-track::after { border-color: var(--re); }
    .route-track li { padding: 0; display: flex; justify-content: center; }
    .route-dot { left: 50%; margin-left: -6px; }
    .route--cpg .route-step { position: absolute; bottom: calc(50% + 14px); left: 0; right: 0; text-align: center; }
    .route--re .route-step { position: absolute; top: calc(50% + 14px); left: 0; right: 0; text-align: center; }
    .route--cpg { padding-top: 1.6rem; }
    .route--re { padding-bottom: 1.6rem; }
    .route-between { margin: .8rem 0 .8rem 260px; border: 0; padding: 0; }

    .layout-with-sidebar { display: flex; justify-content: space-between; align-items: flex-start; }
    .layout-with-sidebar .content-area { flex: 0 0 67%; width: 67%; }
    .layout-with-sidebar .sidebar { flex: 0 0 27%; width: 27%; margin-top: 0; }
    .layout-with-sidebar .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .colophon-cols { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }

    .entry, .comments { padding: 2.4rem 2.8rem; }
}

@media (max-width: 600px) {
    .band { padding: 2.8rem 0; }
    .entry, .comments { padding: 1.4rem 1.1rem; }
    .sidebar { padding: 1.2rem 1rem; }
    .metric { padding: .9rem 1rem 1rem; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem 1.1rem; }
    .latest-more, .routes-more { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
