/*
Theme Name: dds_diamondweddingstudios.com
Theme URI: https://diamondweddingstudios.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: wedarch
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-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+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: 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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-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: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-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: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-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: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Палитра ---------- */
:root {
    --graphite: #1C1B1A;
    --graphite-deep: #141312;
    --paper: #E8E0D2;
    --rose: #C9A9A0;
    --ash: #D6CFC2;
    --brass: #B08D57;
    --brass-dark: #7C6239;
    --gold: #E4C98A;
    --cream: #F2EDE4;
    --ink: #232120;
    --muted: #9A9186;
    --muted-dark: #5E574F;
    --film: #2A1513;
    --film-deep: #170B0A;
    --panel: #262422;
    --line-dark: rgba(176, 141, 87, 0.55);
    --f-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    --f-body: "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
    --f-mono: "IBM Plex Mono", "DejaVu Sans Mono", Consolas, monospace;
    --grain: url("images/grain-dark.jpg");
}

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

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    background: var(--graphite) var(--grain) repeat;
    background-size: 380px auto;
    color: var(--cream);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    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 {
    font-family: var(--f-head);
    font-weight: 400;
    line-height: 1.15;
    margin: 1.4em 0 0.55em;
    overflow-wrap: break-word;
    hyphens: auto;
}
a { color: inherit; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--gold); text-decoration-color: var(--gold); }
:focus-visible { outline: 2px dashed var(--gold); outline-offset: 3px; }
.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: -60px; z-index: 100;
    background: var(--brass); color: var(--ink); padding: .5rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.shell { width: min(92%, 1080px); margin-left: auto; margin-right: auto; }
@media (min-width: 960px) { .shell { width: min(85%, 1080px); } }

/* ---------- Кнопки ---------- */
.btn-brass, .search-form__btn, .form-submit .submit {
    display: inline-block;
    padding: .62rem 1.35rem;
    background: var(--brass);
    color: var(--ink);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    text-decoration: none;
    border: 1px solid var(--brass-dark);
    border-radius: 0;
    box-shadow: inset 0 0 0 2px var(--brass), inset 0 0 0 3px rgba(35, 33, 32, .6);
    cursor: pointer;
    transition: transform .15s, background-color .15s, box-shadow .15s;
}
.btn-brass:hover, .search-form__btn:hover, .form-submit .submit:hover {
    background: var(--gold);
    color: var(--ink);
    transform: translate(-2px, -2px);
    box-shadow: inset 0 0 0 2px var(--gold), inset 0 0 0 3px rgba(35, 33, 32, .6), 3px 3px 0 var(--ink);
}
.btn-brass--sm { padding: .38rem .95rem; font-size: .95rem; }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--graphite) var(--grain) repeat;
    background-size: 380px auto;
    border-bottom: 5px solid var(--brass);
    box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .35);
}
.masthead__bar { border-bottom: 1px solid var(--line-dark); }
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 92px;
    position: relative;
}
.brand { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.brand__logo { width: 52px; height: 52px; object-fit: contain; display: block; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 2.2rem; }
.site-nav__list a {
    font-family: var(--f-head);
    font-size: 1.15rem;
    letter-spacing: .04em;
    color: var(--cream);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 1px solid transparent;
}
.site-nav__list a:hover { color: var(--gold); border-bottom-color: var(--brass); }
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { color: var(--brass); }
.nav-toggle { display: none; }

.masthead__title { padding: 2.4rem 0 2.6rem; }
.masthead__title--home { padding: 3.2rem 0 3.4rem; }
.site-name {
    hyphens: manual;
    font-family: var(--f-head);
    font-weight: 400;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.12;
    margin: 0 0 .9rem;
    max-width: 22em;
    color: var(--cream);
}
.masthead__title--home .site-name { font-size: clamp(2.2rem, 5.2vw, 4.1rem); max-width: 16em; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.site-name a { text-decoration: none; color: inherit; }
.site-name a:hover { color: var(--cream); }
.site-tagline {
    hyphens: manual;
    font-family: var(--f-mono);
    font-size: .92rem;
    line-height: 1.55;
    color: var(--muted);
    max-width: 40em;
    margin: 0;
}

/* ---------- Секции главной ---------- */
.fs { position: relative; padding: 3.4rem 0 3.8rem; }
.fs__label {
    font-family: var(--f-mono);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: lowercase;
    margin: 0 0 .35rem;
    color: var(--muted);
}
.fs__title {
    display: inline-block;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    margin: 0 0 2.2rem;
    padding-bottom: .12em;
    border-bottom: 5px solid var(--brass);
    letter-spacing: .01em;
}
.fs__more { margin: 2.4rem 0 0; }
.empty-note { color: var(--muted); font-family: var(--f-mono); }

.fs--sheet {
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(35, 33, 32, .085) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(35, 33, 32, .085) 0 1px, transparent 1px 22px),
        radial-gradient(rgba(35, 33, 32, .05) 1px, transparent 1.5px);
    background-size: auto, auto, 7px 7px;
    color: var(--ink);
    border-top: 4px solid var(--brass);
    overflow: hidden;
}
.fs--sheet .fs__label { color: var(--muted-dark); }
.fs--rose { background: var(--rose); color: var(--ink); overflow: hidden; min-height: 430px; }
.fs--rose .fs__label { color: var(--muted-dark); }
.fs--rose .fs__title { transform: rotate(-1.2deg); transform-origin: left bottom; }
.fs--dark { background: var(--graphite) var(--grain) repeat; background-size: 380px auto; color: var(--cream); }
.fs--posts { border-top: 1px solid #000; }
.fs--talk { padding-top: 1rem; }
.fs--ash {
    background-color: var(--ash);
    background-image: radial-gradient(rgba(35, 33, 32, .06) 1px, transparent 1.4px);
    background-size: 5px 5px;
    color: var(--ink);
}
.fs--ash .fs__label { color: var(--muted-dark); }

/* --- Контактная лента стилей --- */
.strip {
    list-style: none;
    margin: 0 -2%;
    padding: 0;
    display: flex;
    align-items: flex-start;
}
.strip__item { flex: 1 1 0; min-width: 0; position: relative; text-align: center; }
.strip__item + .strip__item { margin-left: -1.6%; }
.strip__item--1 { transform: rotate(-4deg); margin-top: 6px; z-index: 1; }
.strip__item--2 { margin-top: 18px; z-index: 2; }
.strip__item--3 { margin-top: 0; z-index: 3; }
.strip__item--4 { margin-top: 18px; z-index: 2; }
.strip__item--5 { transform: rotate(3deg); margin-top: 4px; z-index: 4; }
.film {
    position: relative;
    margin: 0;
    padding: 26px 11px;
    background: var(--film);
    box-shadow: 0 10px 16px -6px rgba(35, 33, 32, .55), inset 0 0 0 1px rgba(0, 0, 0, .5);
    transition: transform .2s;
}
.film::before, .film::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px;
    height: 10px;
    background: repeating-linear-gradient(90deg, #EFE7D9 0 9px, transparent 9px 21px);
    border-radius: 1px;
    opacity: .92;
}
.film::before { top: 8px; }
.film::after { bottom: 8px; }
.film__img { width: 100%; aspect-ratio: 188 / 130; object-fit: cover; display: block; }
.film__num, .film__code {
    position: absolute;
    font-family: var(--f-mono);
    font-size: .6rem;
    line-height: 1;
    color: #C9883C;
    letter-spacing: .08em;
}
.film__num { top: 0; right: 32%; }
.film__code { bottom: 0; right: 14px; }
.strip__item:hover .film { transform: translateY(-6px); }
.strip__name {
    font-family: var(--f-head);
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    margin: .75rem 0 .1rem;
    color: var(--ink);
}
.strip__note { font-family: var(--f-mono); font-size: .74rem; line-height: 1.4; color: var(--muted-dark); margin: 0; padding: 0 .4rem; }

/* --- План фотопрогулки --- */
.route { position: relative; width: 66%; height: 440px; min-width: 0; }
.route__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route__line polyline { fill: none; stroke: var(--brass); stroke-width: 3; vector-effect: non-scaling-stroke; }
.route__list { list-style: none; margin: 0; padding: 0; }
.route__stop {
    position: absolute;
    width: 136px;
    margin-left: -68px;
    text-align: center;
    transform: translateY(-7px);
}
.route__stop--1 { left: 5.9%; top: 80%; }
.route__stop--2 { left: 23.7%; top: 68.3%; }
.route__stop--3 { left: 41.4%; top: 57%; }
.route__stop--4 { left: 59.2%; top: 45.5%; }
.route__stop--5 { left: 75.7%; top: 34.1%; }
.route__stop--6 { left: 93%; top: 22.8%; }
.route__icon {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    width: 46px; height: 46px;
    fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.route__stop--1 .route__icon, .route__stop--1 .route__dot { margin-left: 0; }
.route__dot {
    display: block;
    width: 14px; height: 14px;
    margin: 0 auto .45rem;
    border-radius: 50%;
    background: var(--brass);
    box-shadow: 0 0 0 3px var(--rose), 0 0 0 4px var(--brass-dark);
}
.route__name { display: block; font-family: var(--f-head); font-size: 1.22rem; line-height: 1.15; color: var(--ink); }
.route__hint { display: block; font-family: var(--f-mono); font-size: .72rem; line-height: 1.35; color: #4A3F3B; margin-top: .2rem; }
.route__edge {
    position: absolute;
    font-family: var(--f-mono);
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--gold);
    padding: .15rem .5rem;
}
.route__edge--start { left: 0; top: calc(80% + 92px); }
.route__edge--end { right: 0; top: calc(22.8% - 100px); }
.route-art {
    position: absolute;
    right: 0; bottom: 0;
    width: min(34%, 560px);
    height: auto;
    pointer-events: none;
}

/* --- Карточки-кадры --- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem 2.6rem; }
.layout-with-sidebar .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card-body { flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.frame-card {
    position: relative;
    background: var(--film-deep);
    padding: 12px 30px 14px;
    box-shadow: 0 0 0 1px #000, 0 14px 24px -12px rgba(0, 0, 0, .8);
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
}
.frame-card::before, .frame-card::after {
    content: "";
    position: absolute;
    top: 12px; bottom: 12px;
    width: 11px;
    background: repeating-linear-gradient(180deg, #4E3F38 0 12px, transparent 12px 26px);
    border-radius: 1px;
}
.frame-card::before { left: 10px; }
.frame-card::after { right: 10px; }
.frame-card:hover { transform: translate(-3px, -3px); box-shadow: 0 0 0 1px #000, 6px 6px 0 var(--brass-dark); }
.frame-card__thumb { display: block; text-decoration: none; }
.frame-card__img, .frame-card__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; filter: sepia(.12) contrast(1.02); }
.frame-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
    background: var(--panel);
    padding: 1rem 1rem 1.1rem;
    margin-top: 10px;
}
.frame-card__title { font-size: 1.32rem; line-height: 1.2; margin: 0 0 .35rem; }
.frame-card__title a { color: var(--cream); text-decoration: none; }
.frame-card__title a:hover { color: var(--gold); }
.frame-card__excerpt { font-size: .92rem; line-height: 1.5; color: #B7AEA2; }
.frame-card__excerpt a { color: var(--gold); }
.frame-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    font-family: var(--f-mono);
    font-size: .74rem;
    color: var(--muted);
    margin: .2rem 0 .8rem;
}
.frame-card__no { color: var(--gold); }
.frame-card .btn-brass { margin-top: auto; }
.sticky .frame-card__no::after { content: " · закреплено"; }

/* --- Что обсудить заранее --- */
.talk { margin: 0; border-bottom: 1px solid var(--brass); }
.talk__row {
    display: grid;
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
    border-top: 1px solid var(--brass);
}
.talk__q, .talk__a { margin: 0; padding: .85rem 1.2rem .85rem 0; min-width: 0; }
.talk__q { font-family: var(--f-head); font-size: 1.2rem; color: var(--cream); border-right: 1px solid var(--brass); }
.talk__a { padding-left: 1.6rem; color: #D8D0C3; }
.talk__row:hover { background: rgba(176, 141, 87, .08); }
.talk__row:hover .talk__q { color: var(--gold); }

/* --- Свет в кадре --- */
.light { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.light__scheme { min-width: 0; }
.sunmap { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: stretch; }
.sunmap__art { width: 100%; height: auto; display: block; }
.sunmap__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: 2% 0; }
.sunmap__item { display: flex; flex-direction: column; justify-content: center; }
.sunmap__name { font-family: var(--f-head); font-size: 1.35rem; line-height: 1.15; color: var(--ink); }
.sunmap__text { font-size: .86rem; line-height: 1.4; color: var(--muted-dark); }
.collage { position: relative; aspect-ratio: 399 / 260; min-width: 0; }
.collage__pic {
    position: absolute;
    object-fit: cover;
    display: block;
    box-shadow: 0 10px 18px -8px rgba(35, 33, 32, .55);
    transition: transform .2s;
}
.collage__pic--a { left: 23.3%; top: 0; width: 44.1%; height: 43.1%; z-index: 1; }
.collage__pic--b { left: 55.6%; top: 16.2%; width: 44.4%; height: 45.8%; z-index: 2; }
.collage__pic--c { left: 0; top: 35.4%; width: 44.1%; height: 46.2%; z-index: 3; }
.collage__pic--d { left: 36.8%; top: 52.7%; width: 44.1%; height: 47.3%; z-index: 4; }
.collage__pic:hover { transform: translateY(-4px); }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.6rem 0 4rem; }
.crumbs {
    font-family: var(--f-mono);
    font-size: .8rem;
    color: var(--muted);
    margin: 0 0 2rem;
    padding-bottom: .6rem;
    border-bottom: 1px dashed var(--line-dark);
}
.crumbs a { color: var(--cream); }
.crumbs__sep { color: var(--brass); margin: 0 .35rem; }
.crumbs__current { color: var(--muted); }

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

.page-head { margin-bottom: 2.2rem; }
.page-head__title, .entry__title {
    display: inline-block;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    padding-bottom: .12em;
    border-bottom: 5px solid var(--brass);
}
.page-head__intro { margin-top: 1.2rem; color: #D8D0C3; }
.page-head__search { margin-top: 1.4rem; max-width: 520px; }

.entry__head { margin-bottom: 1.6rem; }
.entry__meta { font-family: var(--f-mono); font-size: .82rem; color: var(--muted); margin: 1rem 0 0; }
.entry__meta a { color: var(--gold); }
.entry__sep { color: var(--brass); margin: 0 .4rem; }
.entry__cover { margin: 0 0 2rem; padding: 12px; background: var(--film-deep); box-shadow: 0 0 0 1px #000; }
.entry__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.entry__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry__tags a { font-family: var(--f-mono); font-size: .8rem; padding: .25rem .6rem; border: 1px solid var(--brass); text-decoration: none; }
.entry__tags a:hover { background: var(--brass); color: var(--ink); }

.entry-content { font-size: 1.08rem; color: #E4DDD1; }
.entry-content h2 { font-size: 2rem; color: var(--cream); }
.entry-content h3 { font-size: 1.55rem; color: var(--cream); }
.entry-content h4 { font-size: 1.25rem; }
.entry-content a { color: var(--gold); }
.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(--brass); }
.entry-content ol li::marker { color: var(--gold); font-family: var(--f-mono); }
.entry-content img { margin: 1.4rem 0; }
.entry-content figure { margin: 1.6rem 0; }
.entry-content figcaption { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 1.8rem;
    background: var(--paper);
    color: var(--ink);
    border-left: 6px solid var(--brass);
    font-family: var(--f-head);
    font-size: 1.3rem;
    line-height: 1.4;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; font-family: var(--f-mono); font-size: .8rem; font-style: normal; color: var(--muted-dark); margin-top: .6rem; }
.entry-content pre { background: var(--graphite-deep); padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: .9rem; }
.entry-content code { font-family: var(--f-mono); font-size: .92em; }
.entry-content hr { border: 0; border-top: 1px solid var(--brass); margin: 2rem 0; }
table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; border: 1px solid var(--brass); font-size: .98rem; }
th, td { border: 1px solid var(--brass); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: rgba(176, 141, 87, .16); font-family: var(--f-head); font-weight: 400; color: var(--cream); }
.page-links { margin-top: 1.5rem; font-family: var(--f-mono); }

.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.2rem; margin: 3rem 0 0; }
.entry-nav__link {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--brass);
    text-decoration: none;
    font-family: var(--f-head);
    font-size: 1.1rem;
    line-height: 1.3;
}
.entry-nav__link span { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--muted); margin-bottom: .3rem; }
.entry-nav__link--next { grid-column: 2; text-align: right; }
.entry-nav__link:hover { background: rgba(176, 141, 87, .12); color: var(--cream); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin: 2.8rem 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 .75rem;
    border: 1px solid var(--brass);
    font-family: var(--f-mono);
    font-size: .9rem;
    color: var(--cream);
    text-decoration: none;
    background: rgba(0, 0, 0, .25);
}
.pager a.page-numbers:hover { background: var(--brass); color: var(--ink); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--gold); }
.pager .page-numbers.current { background: var(--brass); color: var(--ink); box-shadow: inset 0 0 0 2px var(--brass), inset 0 0 0 3px rgba(35, 33, 32, .6); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(35, 33, 32, .07) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(35, 33, 32, .07) 0 1px, transparent 1px 22px);
    color: var(--ink);
    padding: 1.6rem 1.5rem;
    border-top: 5px solid var(--brass);
    box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .8);
}
.sidebar .widget { margin-bottom: 2rem; color: var(--ink); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-family: var(--f-mono);
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: lowercase;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-bottom: .4rem;
    border-bottom: 3px solid var(--brass);
    display: inline-block;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px solid rgba(35, 33, 32, .18); line-height: 1.35; }
.sidebar a { color: var(--ink); text-decoration-color: var(--brass); }
.sidebar a:hover { color: var(--brass-dark); }
.sidebar .post-date { display: block; font-family: var(--f-mono); font-size: .74rem; color: var(--muted-dark); }
.sidebar p { color: var(--ink); }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--graphite-deep) var(--grain) repeat;
    background-size: 380px auto;
    border-top: 5px solid var(--brass);
    color: var(--cream);
    padding: 3rem 0 1.6rem;
}
.site-foot__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.site-foot__col { min-width: 0; }
.site-foot .widget { color: #D8D0C3; font-size: .98rem; line-height: 1.55; }
.site-foot .widget-title { font-family: var(--f-head); font-size: 1.55rem; color: var(--cream); margin: 0 0 .8rem; }
.site-foot .widget p { color: #D8D0C3; }
.site-foot .widget a { color: var(--cream); text-decoration-color: var(--brass); }
.site-foot .widget a:hover { color: var(--gold); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .45rem; }
.site-foot .post-date { color: var(--muted); }
.site-foot__copy { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); text-align: center; }
.site-foot__copy p { margin: 0; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

/* ---------- Комментарии ---------- */
.comments { margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--brass); }
.comments__title, .comment-reply-title { font-size: 1.8rem; margin: 0 0 1.4rem; }
.comments__list, .comments__list .children { list-style: none; margin: 0; padding: 0; }
.comments__list .children { margin-left: 1.8rem; }
.note__body { background: var(--panel); padding: 1.1rem 1.3rem; margin-bottom: 1rem; border-left: 4px solid var(--brass); }
.note__head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .6rem; }
.note__head img { border-radius: 0; border: 1px solid var(--brass); }
.note__author { font-family: var(--f-head); font-size: 1.1rem; }
.note__date { font-family: var(--f-mono); font-size: .76rem; color: var(--muted); }
.note__moderation { font-family: var(--f-mono); font-size: .8rem; color: var(--gold); }
.note__reply a { font-family: var(--f-mono); font-size: .8rem; color: var(--gold); }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-form__field {
    width: 100%;
    padding: .7rem .9rem;
    background: rgba(0, 0, 0, .3);
    color: var(--cream);
    border: 1px solid var(--brass);
    border-radius: 0;
    font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus, .search-form__field:focus { outline: 2px solid var(--gold); outline-offset: 0; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-notes, .logged-in-as { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .6rem; }
.search-form__field { flex: 1; min-width: 0; }
.search-form__btn { flex: 0 0 auto; }
.sidebar .search-form__field { background: #F4EFE6; color: var(--ink); }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost__code { font-family: var(--f-head); font-size: clamp(6rem, 18vw, 11rem); line-height: .9; margin: 0 0 1rem; color: transparent; -webkit-text-stroke: 2px var(--brass); }
.lost__text { margin: 1.6rem 0; max-width: 36em; color: #D8D0C3; }
.lost__search { max-width: 520px; margin-bottom: 1.6rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 16px;
    z-index: 90;
    width: min(92%, 820px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
    background: var(--graphite-deep);
    color: var(--cream);
    border: 1px solid var(--brass);
    box-shadow: inset 0 0 0 3px var(--graphite-deep), inset 0 0 0 4px var(--line-dark), 0 12px 30px rgba(0, 0, 0, .6);
}
.cookie-banner__text { margin: 0; font-size: .92rem; line-height: 1.45; flex: 1; min-width: 0; }
.cookie-banner__btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .masthead__row { min-height: 76px; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        background: none;
        border: 1px solid var(--brass);
        color: var(--cream);
        font-family: var(--f-mono);
        font-size: .85rem;
        padding: .45rem .8rem;
        cursor: pointer;
    }
    .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
        display: block; width: 18px; height: 2px; background: var(--brass); position: relative; content: "";
    }
    .nav-toggle__bars::before { position: absolute; top: -6px; }
    .nav-toggle__bars::after { position: absolute; top: 6px; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        z-index: 40;
        background: var(--graphite-deep);
        border: 1px solid var(--brass);
        padding: 1rem 1.2rem;
    }
    .site-nav.is-open { display: block; }
    .site-nav__list { flex-direction: column; gap: .2rem; }
    .site-nav__list a { display: block; padding: .5rem 0; }

    .strip {
        margin: 0 -4%;
        padding: .8rem 4% 1.4rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.2rem;
    }
    .strip__item { flex: 0 0 min(62%, 280px); scroll-snap-align: center; }
    .strip__item + .strip__item { margin-left: 0; }
    .strip__item--1, .strip__item--5 { transform: none; }

    .fs--rose { min-height: 0; padding-bottom: 0; }
    .route { width: 100%; height: auto; padding: .4rem 0 1rem; display: flex; flex-direction: column; align-items: flex-start; }
    .route__list { order: 1; align-self: stretch; }
    .route__edge--end { order: 2; margin-top: .2rem; }
    .route__line { display: none; }
    .route__list { position: relative; border-left: 3px solid var(--brass); margin-left: 7px; padding: .4rem 0; }
    .route__stop {
        position: relative;
        left: auto; top: auto;
        width: auto;
        margin: 0 0 1.4rem;
        transform: none;
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: .9rem;
        align-items: center;
        text-align: left;
        padding-left: 1.4rem;
    }
    .route__icon { position: static; transform: none; grid-row: span 2; }
    .route__dot { position: absolute; left: -9px; top: 50%; margin: -7px 0 0; }
    .route__edge { position: static; display: inline-block; margin: 0 0 1rem; }
    .route-art { position: relative; display: block; width: min(100%, 560px); margin: 0 0 0 auto; }

    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single > .content-area { width: 100%; }
    .light { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .site-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .fs { padding: 2.6rem 0 2.8rem; }
    .fs--rose { padding-bottom: 0; }
    .masthead__title, .masthead__title--home { padding: 1.8rem 0 2rem; }
    .site-tagline { font-size: .82rem; }
    .cards, .layout-with-sidebar .cards { grid-template-columns: minmax(0, 1fr); }
    .frame-card { padding: 10px 26px 12px; }
    .talk__row { grid-template-columns: minmax(0, 1fr); }
    .talk__q { border-right: 0; padding: .8rem 0 .2rem; }
    .talk__a { padding: 0 0 .9rem; }
    .sunmap { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); column-gap: .4rem; }
    .sunmap__name { font-size: 1.12rem; }
    .sunmap__text { font-size: .78rem; }
    .site-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .entry-content blockquote { padding: 1.1rem 1.1rem 1.1rem 1.3rem; font-size: 1.15rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav__link--next { grid-column: 1; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; gap: .8rem; }
    .search-form { flex-direction: column; }
    .comments__list .children { margin-left: .8rem; }
}

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