/*
Theme Name: dds_fundedequitytrading.com
Author: Алексей Хлебников
Description: Тема для информационно-аналитического портала о пассивных инвестициях в недвижимость через REIT и фонды недвижимости. Стилистика годового отчёта управляющего фондом: сукно биржевого стола, листы слоновой кости в миллиметровку, золото и штампы.
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: fundeq
*/

/* ---------- Токены ---------- */
:root {
    --felt: #0F2A22;
    --felt-deep: #0B211A;
    --ivory: #EDE6D6;
    --ivory-2: #E4DCC8;
    --grid: #C9BFA8;
    --graphite: #14201C;
    --graphite-2: #1A2925;
    --gold: #C9A227;
    --gold-soft: #D9BC5E;
    --ink: #1A1A17;
    --olive: #6B6A5C;
    --brick: #B14A32;
    --rule: #A89C80;
    --cream: #EDE6D6;
    --cream-dim: #BFB8A6;
    --moss: #3E6B4F;
    --slate: #4C6670;
    --sand: #B9A882;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --f-text: "PT Serif", Georgia, "Times New Roman", serif;
    --mm: linear-gradient(rgba(201, 191, 168, .38) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 191, 168, .38) 1px, transparent 1px), linear-gradient(rgba(168, 156, 128, .35) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 156, 128, .35) 1px, transparent 1px);
}

/* Скрытые через атрибут элементы — до основных стилей */
.cookie-banner[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background-color: var(--felt);
    background-image: radial-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), radial-gradient(rgba(0, 0, 0, .18) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    color: var(--cream);
    font-family: var(--f-text);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
p, li, dd, dt, td, th, .card__title { overflow-wrap: break-word; hyphens: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr {
    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 { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-family: var(--f-head); }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Кнопки и ссылки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .92rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    padding: .7em 1.3em;
    border: 3px double var(--ink);
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .15s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--ink); color: var(--gold); border-color: var(--gold); }
.btn--plate { background: var(--ivory); color: var(--ink); border-color: var(--gold); }
.btn--plate:hover { background: var(--gold); color: var(--ink); border-color: var(--ink); transform: translateX(3px); }
.arrowlink {
    font-family: var(--f-head);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: underline;
    text-decoration-color: var(--rule);
}
.arrowlink { hyphens: manual; }
.arrowlink::after { content: " →"; color: var(--gold); }
.arrowlink:hover { color: var(--gold); text-decoration-color: var(--gold); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--graphite);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.masthead__inner {
    width: min(92%, 1320px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--cream); min-width: 0; flex: 1 1 auto; max-width: 760px; }
.brand__mark { color: var(--gold); flex: 0 0 auto; }
.brand__svg { width: 64px; height: 52px; display: block; }
.brand__logo { max-height: 64px; width: auto; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: .02em;
    color: var(--cream);
}
.brand__desc {
    font-size: .8rem;
    line-height: 1.4;
    color: var(--cream-dim);
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand:hover .brand__name { color: var(--gold); }
.topnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 2rem; }
.topnav__list a {
    font-family: var(--f-head);
    font-size: 1.02rem;
    letter-spacing: .04em;
    color: var(--cream);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.topnav__list a:hover,
.topnav__list .current-menu-item > a { color: var(--gold); border-bottom-color: var(--gold); }
.navtoggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--gold);
    padding: .5rem .8rem;
    font-family: var(--f-head);
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}
.navtoggle__bars, .navtoggle__bars::before, .navtoggle__bars::after {
    display: block; width: 20px; height: 2px; background: var(--gold); position: relative; content: "";
}
.navtoggle__bars::before { position: absolute; top: -6px; }
.navtoggle__bars::after { position: absolute; top: 6px; }

/* ---------- Полосы главной ---------- */
.band { padding: 4.5rem 0; position: relative; }
.band__inner { width: 85%; max-width: 1320px; margin-inline: auto; }
.band--felt { background: transparent; }
.band--graphite {
    background-color: var(--graphite);
    background-image: repeating-linear-gradient(90deg, rgba(201, 162, 39, .05) 0 1px, transparent 1px 80px);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.band--sheet {
    background-color: var(--ivory);
    background-image: var(--mm);
    background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px;
    color: var(--ink);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}
.sechead { display: flex; align-items: flex-end; gap: .9rem; margin-bottom: 2.4rem; }
.sechead__num {
    font-family: var(--f-head);
    font-weight: 300;
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    line-height: .85;
    color: var(--gold);
    border-bottom: 3px solid var(--gold);
    padding-bottom: .1em;
}
.sechead__title {
    margin: 0;
    font-size: clamp(1.9rem, 4.2vw, 3.3rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1;
    color: var(--cream);
}
.sechead__title, .pagehead__title { hyphens: manual; }
.sechead--ink .sechead__title { color: var(--ink); }
.empty { color: var(--cream-dim); font-style: italic; }

/* Блок 01 — реестр */
.registry__grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 3rem; }
.registry__row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1.4fr) 5rem minmax(0, 1.3fr);
    align-items: center;
    gap: 1rem;
    padding: .9rem .4rem;
    border-bottom: 1px solid rgba(168, 156, 128, .45);
}
.registry__row:hover { background: rgba(201, 162, 39, .06); }
.registry__row--head {
    font-family: var(--f-head);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-top: 0;
}
.registry__row--head:hover { background: none; }
.registry__no { font-family: var(--f-head); color: var(--cream-dim); }
.registry__name { display: flex; flex-direction: column; min-width: 0; }
.registry__name small { color: var(--cream-dim); font-size: .78rem; font-style: italic; }
.registry__pct { font-family: var(--f-head); font-size: 1.15rem; color: var(--cream); }
.registry__bar { display: block; height: 12px; background: rgba(237, 230, 214, .08); border: 1px solid rgba(168, 156, 128, .3); }
.registry__fill { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--gold), var(--gold-soft)); }
.registry__legend { border-left: 2px solid var(--gold); padding-left: 2rem; min-width: 0; }
.registry__legend-title { font-size: 1.05rem; color: var(--gold); letter-spacing: .04em; font-weight: 500; }
.registry__keys { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.registry__keys li { display: flex; align-items: center; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed rgba(168, 156, 128, .35); }
.registry__key-name { flex: 1; min-width: 0; }
.registry__key-pct { font-family: var(--f-head); color: var(--gold); }
.swatch { width: 18px; height: 18px; flex: 0 0 18px; border: 1px solid rgba(0, 0, 0, .3); }
.swatch--gold { background: var(--gold); }
.swatch--moss { background: var(--moss); }
.swatch--slate { background: var(--slate); }
.swatch--sand { background: var(--sand); }
.swatch--brick { background: var(--brick); }
.registry__note { font-size: .82rem; color: var(--cream-dim); font-style: italic; margin: 0; }

/* Блок 02 — анатомия */
.anatomy__grid { display: grid; grid-template-columns: 150px minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.anatomy__scale-title { font-family: var(--f-head); font-weight: 500; margin-bottom: 1rem; }
.scale {
    list-style: none;
    margin: 0 0 1rem 8px;
    padding: 0 0 0 1.2rem;
    border-left: 2px solid var(--ink);
    display: grid;
    gap: 1.7rem;
}
.scale li { position: relative; font-family: var(--f-head); font-size: .95rem; color: var(--ink); line-height: 1; }
.scale li::before { content: ""; position: absolute; left: -1.2rem; top: .45em; width: 14px; height: 2px; background: var(--ink); }
.scale li:nth-child(-n+2) span { color: var(--brick); }
.scale li:nth-child(n+3):nth-child(-n+5) span { color: var(--gold); }
.anatomy__scale-note { font-size: .8rem; color: var(--olive); font-style: italic; margin: 0; }
.anatomy__figure { position: relative; margin: 0; min-width: 0; }
.anatomy__figure img { width: 58%; margin-left: 21%; border: 1px solid var(--rule); }
.callout {
    position: absolute;
    top: var(--y);
    transform: translateY(-100%);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.15;
    color: var(--ink);
    padding-bottom: .3rem;
    border-bottom: 2px solid var(--gold);
}
.callout::after {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    border: 1px solid var(--ink);
}
.callout--l { left: 0; width: var(--x); }
.callout--l::after { right: -4px; }
.callout--r { left: var(--x); right: 0; text-align: right; }
.callout--r::after { left: -4px; }
.anatomy__notes { border-left: 1px solid var(--ink); padding-left: 1.5rem; }
.anatomy__notes-title { font-size: 1.15rem; font-weight: 500; color: var(--ink); }
.anatomy__notes p { font-size: .92rem; line-height: 1.5; color: var(--ink); padding-bottom: .9rem; border-bottom: 1px solid var(--rule); }
.anatomy__notes p:last-child { border-bottom: 0; margin-bottom: 0; }
.anatomy__notes b { font-weight: 700; }

/* Блок 03 — записи */
.cards { display: grid; gap: 1.6rem; }
.cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.no-side .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--ivory);
    color: var(--ink);
    border: 1px solid var(--gold);
    padding: 1rem 1rem 1.1rem 3rem;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    min-width: 0;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 -4px rgba(0, 0, 0, .35); }
.card__spine {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2.1rem;
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    border-right: 1px solid var(--ink);
    font-family: var(--f-head);
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink);
    text-align: center;
    padding-top: .7rem;
}
.card__thumb { border: 1px solid var(--ink); margin-bottom: 1rem; overflow: hidden; }
.card__thumb a { display: block; }
.card__thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.85); transition: filter .2s, transform .3s; }
.card:hover .card__thumb img { filter: saturate(1); transform: scale(1.03); }
.card__body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card__tag {
    align-self: flex-start;
    font-family: var(--f-head);
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--brick);
    border: 1px solid var(--brick);
    padding: .1rem .45rem;
    margin-bottom: .6rem;
}
.card__title { font-size: 1.3rem; font-weight: 600; margin-bottom: .5rem; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--brick); }
.card__excerpt { font-size: .92rem; line-height: 1.5; color: #34332C; flex: 1; }
.card__excerpt p { margin: 0 0 .5em; background: none; }
.card__excerpt a { color: var(--brick); }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--rule); }
.card__date { font-family: var(--f-head); font-size: .85rem; color: var(--brick); letter-spacing: .05em; }
.card__more { font-size: .8rem; padding: .5em 1em; }
.latest__all { margin: 2rem 0 0; text-align: right; }

/* Блок 04 — календарь */
.payouts__lead { max-width: 760px; color: var(--cream-dim); margin-bottom: 2.4rem; }
.tape {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    position: relative;
}
.tape::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 9px;
    height: 2px;
    background: var(--gold);
}
.tape__m { display: flex; flex-direction: column; align-items: center; gap: .9rem; position: relative; z-index: 1; min-width: 0; }
.tape__label { font-family: var(--f-head); font-size: 1rem; color: var(--cream-dim); letter-spacing: .04em; }
.tape__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--gold); background: var(--graphite); }
.tape__m.is-paid .tape__dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(201, 162, 39, .2); }
.tape__m.is-paid .tape__label { color: var(--gold); }
.tape__quarters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1rem 0 3rem; }
.tape__quarters span { text-align: center; font-size: .9rem; color: var(--cream-dim); font-style: italic; border-right: 1px dashed rgba(168, 156, 128, .4); }
.tape__quarters span:last-child { border-right: 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.fact {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    border: 1px solid var(--rule);
    outline: 1px solid rgba(201, 162, 39, .35);
    outline-offset: -6px;
    padding: 1.5rem 1.6rem;
    min-width: 0;
}
.fact > div { min-width: 0; }
.fact__icon { width: 52px; height: 52px; flex: 0 0 52px; color: var(--gold); }
.fact__num { font-family: var(--f-head); font-size: 2.2rem; line-height: 1; color: var(--cream); margin: 0 0 .35rem; }
.fact__text { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--cream-dim); }

/* Блок 05 — справочник */
.glossary__grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: 3rem; align-items: start; }
.glossary__head { position: relative; }
.glossary__head .sechead__num { display: inline-block; }
.glossary__title {
    font-size: clamp(1.8rem, 2.8vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.05;
    hyphens: manual;
    color: var(--ink);
    border-left: 4px solid var(--gold);
    padding-left: .8rem;
    margin: 1.4rem 0 1rem;
}
.glossary__lead { font-size: .92rem; color: var(--olive); font-style: italic; }
.stamp {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brick);
    border: 3px solid var(--brick);
    outline: 1px solid var(--brick);
    outline-offset: 2px;
    padding: .15rem .7rem;
    transform: rotate(-7deg);
    margin-left: 1rem;
    opacity: .9;
}
.cells {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--gold);
    background: rgba(237, 230, 214, .7);
}
.cell { padding: 1.4rem 1.5rem; border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); min-width: 0; transition: background-color .15s; }
.cell:nth-child(3n) { border-right: 0; }
.cell:nth-last-child(-n+3) { border-bottom: 0; }
.cell:hover { background: rgba(201, 162, 39, .14); }
.cell dt { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: .6rem; margin-bottom: .45rem; }
.cell__no { background: var(--gold); color: var(--ink); font-size: .9rem; padding: .05rem .35rem; border: 1px solid var(--ink); }
.cell dd { margin: 0; font-size: .92rem; line-height: 1.45; color: #3B3A32; }

/* ---------- Внутренние страницы ---------- */
.shell { width: min(92%, 1320px); margin-inline: auto; padding: 1.8rem 0 4rem; }
.crumbs { font-size: .88rem; color: var(--cream-dim); margin-bottom: 1.6rem; font-family: var(--f-head); letter-spacing: .03em; }
.crumbs a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(201, 162, 39, .4); }
.crumbs a:hover { border-bottom-color: var(--gold); }
.crumbs__sep { color: var(--rule); margin: 0 .3rem; }
.layout--side { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
.layout--single { display: block; }
.layout--single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.pagehead { margin-bottom: 2rem; border-bottom: 2px solid var(--gold); padding-bottom: 1rem; }
.pagehead__kicker { font-family: var(--f-head); color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; }
.pagehead__title { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; letter-spacing: .05em; color: var(--cream); margin: .2rem 0 .5rem; }
.pagehead__intro { color: var(--cream-dim); }
.sheet {
    background-color: var(--ivory);
    background-image: var(--mm);
    background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px;
    color: var(--ink);
    border: 1px solid var(--gold);
    padding: 2.4rem 2.6rem;
    position: relative;
}
.sheet a { color: #7E2F1E; }
.sheet a:hover { color: var(--brick); }
.empty--sheet { color: var(--ink); font-style: normal; }
.entry__meta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; font-family: var(--f-head); font-size: .88rem; color: var(--brick); letter-spacing: .05em; margin-bottom: .6rem; }
.entry__cat { color: var(--brick) !important; border: 1px solid var(--brick); padding: .05rem .5rem; text-decoration: none; text-transform: uppercase; font-size: .75rem; letter-spacing: .12em; }
.entry__title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); text-transform: uppercase; letter-spacing: .03em; color: var(--ink); line-height: 1.1; }
.entry__head { border-bottom: 2px solid var(--gold); margin-bottom: 1.6rem; padding-bottom: .6rem; }
.entry__cover { margin: 0 0 1.8rem; border: 1px solid var(--ink); }
.entry__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.entry__content { font-size: 1.05rem; line-height: 1.7; }
.entry__content h2 { font-size: 1.7rem; margin-top: 1.6em; padding-bottom: .3rem; border-bottom: 1px solid var(--rule); }
.entry__content h3 { font-size: 1.35rem; margin-top: 1.4em; }
.entry__content h4 { font-size: 1.15rem; margin-top: 1.2em; }
.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(--gold); }
.entry__content ol li::marker { color: var(--brick); font-family: var(--f-head); }
.entry__content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    background: var(--graphite);
    color: var(--cream);
    border-left: 6px solid var(--gold);
    font-style: italic;
}
.entry__content blockquote p:last-child { margin-bottom: 0; }
.entry__content blockquote a { color: var(--gold); }
.entry__content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; background: rgba(237, 230, 214, .85); }
.entry__content th, .entry__content td { border: 1px solid var(--rule); padding: .55rem .75rem; text-align: left; vertical-align: top; }
.entry__content th { background: var(--graphite); color: var(--gold); font-family: var(--f-head); font-weight: 500; letter-spacing: .04em; }
.entry__content img { margin: 1.2em 0; border: 1px solid var(--rule); }
.entry__content figure { margin: 1.4em 0; }
.entry__content figcaption { font-size: .85rem; color: var(--olive); font-style: italic; margin-top: .4rem; }
.entry__content pre { overflow-x: auto; background: var(--graphite); color: var(--cream); padding: 1rem; font-size: .9rem; }
.entry__content code { background: rgba(201, 162, 39, .18); padding: .05em .3em; }
.entry__content pre code { background: none; padding: 0; }
.entry__tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry__tags a { font-family: var(--f-head); font-size: .85rem; text-decoration: none; border: 1px solid var(--rule); padding: .15rem .6rem; color: var(--ink); }
.entry__tags a:hover { background: var(--gold); }
.postnav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1.6rem 0; }
.postnav__link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--rule); text-decoration: none; color: var(--cream); font-family: var(--f-head); min-width: 0; }
.postnav__link span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.postnav__link:hover { border-color: var(--gold); background: rgba(201, 162, 39, .08); color: var(--cream); }
.postnav__link--next { text-align: right; grid-column: 2; }

/* Пагинация */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; 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;
    font-family: var(--f-head);
    font-size: .95rem;
    color: var(--cream);
    text-decoration: none;
    border: 1px solid var(--rule);
    background: var(--graphite);
}
.pager a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.pager .page-numbers.current { background: var(--gold); color: var(--ink); border: 3px double var(--ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.4rem; padding: 0; }
.sheet .pager .page-numbers { color: var(--cream); }

/* Сайдбар */
.sidebar {
    background: var(--graphite);
    border-top: 3px solid var(--gold);
    padding: 1.6rem 1.5rem;
    color: var(--cream);
    min-width: 0;
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title, .colophon .widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gold);
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(201, 162, 39, .5);
    margin-bottom: 1rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(168, 156, 128, .35); color: var(--cream-dim); font-size: .95rem; line-height: 1.4; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--cream); text-decoration: none; }
.sidebar a:hover { color: var(--gold); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--cream-dim); }
.sidebar p, .sidebar .textwidget { color: var(--cream-dim); font-size: .95rem; }

/* Поиск */
.seek { display: flex; gap: .5rem; margin: 1.2rem 0; flex-wrap: wrap; }
.seek__field {
    flex: 1 1 220px;
    min-width: 0;
    font: inherit;
    font-size: 1rem;
    padding: .7rem .9rem;
    background: #F6F1E6;
    color: var(--ink);
    border: 1px solid var(--rule);
}
.seek__field:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 0; }
.sidebar .seek__field { background: var(--graphite-2); color: var(--cream); }

/* 404 */
.notfound { text-align: left; }
.stamp--big { font-size: 3.2rem; margin: 0 0 1.4rem; transform: rotate(-5deg); }

/* Комментарии */
.discussion { margin-top: 1.8rem; }
.discussion__title { color: var(--ink); text-transform: uppercase; letter-spacing: .05em; font-size: 1.5rem; }
.discussion__list, .discussion__list .children { list-style: none; margin: 0; padding: 0; }
.discussion__list .children { padding-left: 1.6rem; border-left: 2px solid var(--gold); margin-top: 1rem; }
.remark { margin-bottom: 1.2rem; }
.remark__body { background: rgba(255, 255, 255, .35); border: 1px solid var(--rule); padding: 1rem 1.2rem; }
.remark__head { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.remark__ava { border-radius: 0; border: 1px solid var(--gold); }
.remark__author { font-family: var(--f-head); font-weight: 600; }
.remark__date { font-size: .82rem; color: var(--brick); font-family: var(--f-head); }
.remark__hold { font-style: italic; color: var(--olive); }
.remark__text p:last-child { margin-bottom: .4rem; }
.remark__reply a { font-family: var(--f-head); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.4rem; text-transform: uppercase; color: var(--ink); }
.comment-reply-title small { font-family: var(--f-text); font-size: .85rem; margin-left: .6rem; text-transform: none; }
.comment-form label { display: block; font-family: var(--f-head); font-size: .9rem; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    padding: .65rem .8rem;
    background: #F6F1E6;
    border: 1px solid var(--rule);
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-family: var(--f-text); font-size: .88rem; }
.comment-form .submit {
    font-family: var(--f-head);
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--gold);
    color: var(--ink);
    border: 3px double var(--ink);
    padding: .7em 1.4em;
    cursor: pointer;
}
.comment-form .submit:hover { background: var(--ink); color: var(--gold); border-color: var(--gold); }
.req { color: var(--brick); }

/* ---------- Подвал ---------- */
.colophon { background: var(--graphite); border-top: 3px solid var(--gold); color: var(--cream); padding: 3.4rem 0 1.6rem; }
.colophon__inner { width: min(92%, 1320px); margin-inline: auto; }
.colophon__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.colophon__col { padding: 0 2rem; border-left: 1px solid rgba(168, 156, 128, .4); min-width: 0; }
.colophon__col:first-child { border-left: 0; padding-left: 0; }
.colophon__col:last-child { padding-right: 0; }
.colophon .widget { margin-bottom: 1.4rem; color: var(--cream-dim); }
.colophon .widget-title { text-transform: none; font-size: 1.35rem; letter-spacing: .02em; border-bottom: 0; padding-bottom: 0; color: var(--cream); }
.colophon p, .colophon .textwidget { color: var(--cream-dim); font-size: .95rem; line-height: 1.55; }
.colophon a { color: var(--cream-dim); text-decoration: none; }
.colophon a:hover { color: var(--gold); }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .25rem 0; }
.colophon .menu li a::before { content: "›"; color: var(--gold); margin-right: .6rem; font-family: var(--f-head); font-weight: 700; }
.colophon__copy {
    margin: 2.6rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--gold);
    text-align: center;
    font-family: var(--f-head);
    font-size: .88rem;
    letter-spacing: .04em;
    color: var(--cream-dim);
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 920px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    background: var(--graphite);
    color: var(--cream);
    border: 1px solid var(--gold);
    border-top: 4px solid var(--gold);
    padding: 1.1rem 1.4rem;
    box-shadow: 0 8px 0 rgba(0, 0, 0, .35);
}
.cookie-banner__text { margin: 0; font-size: .9rem; line-height: 1.45; flex: 1; min-width: 0; }
.cookie-banner__btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1200px) {
    .anatomy__grid { grid-template-columns: 120px minmax(0, 1fr) 260px; }
    .callout { font-size: .92rem; }
}

@media (max-width: 960px) {
    .masthead__inner { flex-wrap: wrap; }
    .navtoggle { display: inline-flex; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); padding-top: .5rem; }
    .topnav__list a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(168, 156, 128, .25); }
    .brand { max-width: calc(100% - 130px); }
    .band { padding: 3.4rem 0; }
    .band__inner { width: 90%; }
    .registry__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .registry__legend { border-left: 0; border-top: 2px solid var(--gold); padding: 1.4rem 0 0; }
    .anatomy__grid { grid-template-columns: minmax(0, 1fr); }
    .anatomy__scale { display: none; }
    .anatomy__figure { display: flex; flex-direction: column; gap: .5rem; }
    .anatomy__figure img { width: 100%; max-width: 520px; margin: 0 auto 1rem; }
    .callout, .callout--l, .callout--r { position: relative; transform: none; width: auto; text-align: left; border-bottom: 1px solid var(--gold); padding: .4rem 0 .4rem 1.2rem; }
    .callout::after { left: 0; right: auto; bottom: auto; top: .75em; }
    .anatomy__notes { border-left: 0; border-top: 1px solid var(--ink); padding: 1.2rem 0 0; }
    .cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .no-side .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .glossary__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cell:nth-child(3n) { border-right: 1px solid var(--gold); }
    .cell:nth-child(2n) { border-right: 0; }
    .cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--gold); }
    .cell:nth-last-child(-n+2) { border-bottom: 0; }
    .layout--side { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .layout--single .content-area { width: 100%; }
    .colophon__grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .colophon__col { padding: 0; border-left: 0; }
    .colophon__col + .colophon__col { border-top: 1px solid rgba(168, 156, 128, .4); padding-top: 1.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .brand__svg { width: 46px; height: 38px; }
    .brand__name { font-size: .8rem; line-height: 1.3; }
    .brand__desc { display: none; }
    .brand { max-width: calc(100% - 115px); }
    .band { padding: 2.6rem 0; }
    .band__inner { width: 92%; }
    .sechead { gap: .6rem; }
    .registry__row { grid-template-columns: 1.6rem minmax(0, 1fr) 3.4rem; }
    .registry__bar { grid-column: 2 / -1; }
    .registry__row--head span:last-child { display: none; }
    .cards--three, .cards--list, .no-side .cards--list { grid-template-columns: minmax(0, 1fr); }
    .tape__label { font-size: .66rem; letter-spacing: 0; }
    .tape__dot { width: 14px; height: 14px; }
    .tape::after { bottom: 6px; }
    .tape__quarters span { font-size: .72rem; }
    .fact { padding: 1.2rem 1.2rem; }
    .cells { grid-template-columns: minmax(0, 1fr); }
    .cell, .cell:nth-child(3n), .cell:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--gold); }
    .cell:last-child { border-bottom: 0; }
    .cell:nth-last-child(-n+3), .cell:nth-last-child(-n+2) { border-bottom: 1px solid var(--gold); }
    .cell:last-child { border-bottom: 0; }
    .stamp { margin-left: .6rem; font-size: 1rem; }
    .sheet { padding: 1.6rem 1.3rem; }
    .postnav { grid-template-columns: minmax(0, 1fr); }
    .postnav__link--next { grid-column: auto; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .cookie-banner__btn { justify-content: center; }
    .sidebar { padding: 1.4rem 1.2rem; }
}
