/*
Theme Name: dds_charlesbennion.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: cbdos
*/

:root {
	--board: #1E2226;
	--head: #14181B;
	--foot: #121A16;
	--paper: #F2EBDD;
	--paper-deep: #E3DBC8;
	--paper-shade: #D9CFB8;
	--ink: #1C1A17;
	--muted: #6E6657;
	--copper: #C0703A;
	--copper-dark: #9A5629;
	--teal: #2F6E6A;
	--teal-soft: #72958A;
	--mark: #8E2F2F;
	--sticky: #E4D28A;
	--sticky-paper: #EADFB4;
	--line: #4A443A;
	--rule: #CFC4AC;
	--foot-text: #D8D0C0;
	--foot-muted: #9C9483;
	--f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	--f-text: "PT Serif", Georgia, "Times New Roman", serif;
	--torn: polygon(0.00% 3px, 2.78% 4px, 5.56% 3px, 8.33% 3px, 11.11% 4px, 13.89% 4px, 16.67% 1px, 19.44% 1px, 22.22% 4px, 25.00% 3px, 27.78% 5px, 30.56% 4px, 33.33% 1px, 36.11% 0px, 38.89% 3px, 41.67% 2px, 44.44% 1px, 47.22% 0px, 50.00% 4px, 52.78% 5px, 55.56% 5px, 58.33% 0px, 61.11% 4px, 63.89% 3px, 66.67% 3px, 69.44% 5px, 72.22% 5px, 75.00% 4px, 77.78% 5px, 80.56% 1px, 83.33% 4px, 86.11% 0px, 88.89% 4px, 91.67% 0px, 94.44% 0px, 97.22% 0px, 100.00% 1px, 100.00% calc(100% - 1px), 97.22% calc(100% - 4px), 94.44% calc(100% - 0px), 91.67% calc(100% - 3px), 88.89% calc(100% - 2px), 86.11% calc(100% - 3px), 83.33% calc(100% - 4px), 80.56% calc(100% - 1px), 77.78% calc(100% - 4px), 75.00% calc(100% - 1px), 72.22% calc(100% - 5px), 69.44% calc(100% - 2px), 66.67% calc(100% - 3px), 63.89% calc(100% - 0px), 61.11% calc(100% - 5px), 58.33% calc(100% - 0px), 55.56% calc(100% - 3px), 52.78% calc(100% - 5px), 50.00% calc(100% - 2px), 47.22% calc(100% - 3px), 44.44% calc(100% - 4px), 41.67% calc(100% - 0px), 38.89% calc(100% - 5px), 36.11% calc(100% - 2px), 33.33% calc(100% - 2px), 30.56% calc(100% - 1px), 27.78% calc(100% - 4px), 25.00% calc(100% - 2px), 22.22% calc(100% - 0px), 19.44% calc(100% - 0px), 16.67% calc(100% - 4px), 13.89% calc(100% - 0px), 11.11% calc(100% - 3px), 8.33% calc(100% - 0px), 5.56% calc(100% - 2px), 2.78% calc(100% - 3px), 0.00% calc(100% - 0px));
}

/* ---------- Базовые стили ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	overflow-x: hidden;
	background-color: var(--board);
	background-image: url("images/board-tile.jpg");
	background-repeat: repeat;
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 17px;
	line-height: 1.65;
	overflow-wrap: break-word;
	hyphens: auto;
}
img { max-width: 100%; height: auto; }
a { color: var(--copper-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--copper); transition: color .15s; }
a:hover { color: var(--mark); }
a:focus-visible, button:focus-visible { outline: 2px dashed var(--copper); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 600; line-height: 1.2; margin: 1.4em 0 .6em; color: var(--ink); letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
table, th, td { border: 1px solid var(--line); }
th, td { padding: .6em .8em; text-align: left; vertical-align: top; }
th { font-family: var(--f-head); font-weight: 500; background: var(--paper-shade); }
blockquote {
	margin: 1.6em 0;
	padding: 1.1em 1.4em 1.1em 1.6em;
	background: var(--sticky-paper);
	border-left: 4px solid var(--mark);
	font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
pre { overflow: auto; background: var(--head); color: var(--paper); padding: 1em 1.2em; font-size: .9rem; }
code { font-size: .92em; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 100; top: 8px; left: 8px; background: var(--paper); padding: .5em 1em; color: var(--ink); }

/* Контейнер ширины — единственное место ограничения */
.shell { width: min(92%, 1240px); margin-inline: auto; }

/* ---------- Бумажный лист ---------- */
.sheet {
	position: relative;
	isolation: isolate;
	padding: 2.4rem 2.4rem 2.6rem;
	margin-bottom: 1.1rem;
}
.sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: var(--paper-deep);
	background-image: url("images/paper-tile.jpg");
	background-size: 800px auto;
	clip-path: var(--torn);
}
.sheet::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: rgba(0, 0, 0, .55);
	transform: translate(3px, 6px);
	clip-path: var(--torn);
}
.sheet--yellow::before { background-image: linear-gradient(rgba(236, 224, 172, .78), rgba(236, 224, 172, .78)), url("images/paper-tile.jpg"); background-size: auto, 800px auto; }

/* ---------- Ярлык-штамп раздела ---------- */
.stamp {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0 0 1.8rem;
	flex-wrap: nowrap;
}
.stamp__num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.1rem;
	height: 3rem;
	padding: 0 .55rem;
	background: var(--copper);
	color: #F7EFE2;
	font-family: var(--f-head);
	font-size: 1.65rem;
	font-weight: 500;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12);
	transform: rotate(-1.2deg);
}
.stamp__label {
	min-width: 0;
	margin: 0;
	padding: .3rem .9rem .25rem;
	border: 2px solid var(--ink);
	box-shadow: 4px 4px 0 var(--ink), inset 0 0 0 2px var(--paper);
	background: transparent;
	font-family: var(--f-head);
	font-size: clamp(1.25rem, 2.3vw, 1.75rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	line-height: 1.25;
	color: var(--ink);
}

/* ---------- Кнопки-ярлычки ---------- */
.tag-btn {
	display: inline-block;
	padding: .38em 1.4em .4em;
	border: 2px solid var(--copper);
	background: var(--paper);
	color: var(--copper-dark);
	font-family: var(--f-text);
	font-size: .95rem;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.tag-btn:hover, .tag-btn:focus-visible {
	background: var(--copper);
	color: #FFF8EE;
	transform: translate(-2px, -2px);
	box-shadow: 3px 3px 0 var(--ink);
}

/* ---------- Шапка ---------- */
.site-header {
	background: var(--head);
	border-bottom: 5px solid var(--copper);
	color: var(--paper);
	margin-bottom: 1.4rem;
}
.site-header__row {
	display: flex;
	align-items: center;
	gap: 1.6rem;
	padding: 1.3rem 0;
}
.brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1 1 auto;
	min-width: 0;
	color: var(--paper);
	text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand-logo, .brand-mark { flex: none; width: 92px; height: 78px; display: block; }
.brand-logo { object-fit: contain; }
.brand-text {
	display: flex;
	align-items: center;
	gap: 1.3rem;
	min-width: 0;
}
.brand-name {
	font-family: var(--f-head);
	font-weight: 500;
	font-size: 1.02rem;
	line-height: 1.32;
	letter-spacing: .02em;
	hyphens: manual;
	max-width: 21rem;
	min-width: 0;
}
.brand-desc {
	padding-left: 1.3rem;
	border-left: 1px solid #3A3F3E;
	color: #C9C1B1;
	font-size: .82rem;
	line-height: 1.5;
	hyphens: manual;
	max-width: 25rem;
	min-width: 0;
}

.main-nav { flex: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav li { margin: 0; position: relative; }
.main-nav li + li { border-left: 1px solid var(--copper); }
.main-nav a {
	display: block;
	padding: .55rem 1.2rem;
	color: #EDE5D6;
	text-decoration: none;
	font-size: .98rem;
	transition: color .15s, background .15s;
}
.main-nav a:hover { color: var(--copper); background: rgba(192, 112, 58, .08); }
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a { text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 5px; }

.nav-toggle[hidden] { display: none !important; }
.nav-toggle {
	display: none;
	flex: none;
	margin-left: auto;
	padding: .45rem .8rem;
	background: transparent;
	border: 2px solid var(--copper);
	color: var(--paper);
	font-family: var(--f-head);
	font-size: .95rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
	margin: 0 0 1.1rem;
	padding: .55rem 1rem;
	background: var(--head);
	border-left: 4px solid var(--copper);
	color: #CFC7B8;
	font-size: .88rem;
}
.breadcrumbs a { color: var(--sticky); text-decoration-color: var(--copper); }
.breadcrumbs a:hover { color: var(--copper); }
.breadcrumbs .sep { margin: 0 .45em; color: var(--copper); }

/* ---------- Раскладки ---------- */
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	justify-content: space-between;
	column-gap: 6%;
	align-items: start;
}
.content-area { min-width: 0; }
.sidebar { min-width: 0; }

/* ---------- Главная ---------- */
.fp-wrap { width: 85%; margin-left: auto; margin-right: auto; }

/* Блок 01 — карта сделки */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; position: relative; }
.route::before {
	content: "";
	position: absolute;
	top: 13px;
	left: 7%;
	right: 7%;
	border-top: 1px dashed var(--line);
}
.route__step { position: relative; margin: 0; text-align: center; padding: 0 .3rem; min-width: 0; }
.route__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 70px;
	right: -14%;
	width: 28%;
	height: 10px;
	background:
		linear-gradient(90deg, var(--ink) 0 50%, transparent 50% 100%) left center / 7px 1.5px repeat-x,
		none;
}
.route__step:not(:last-child) .route__arrow {
	position: absolute;
	top: 70px;
	right: calc(-14% - 2px);
	width: 0; height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 8px solid var(--ink);
}
.route__num {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 27px; height: 27px;
	border: 1.5px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	font-family: var(--f-head);
	font-size: .85rem;
	line-height: 1;
}
.route__step.is-key .route__num { background: var(--teal-soft); color: #10201E; }
.route__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px; height: 84px;
	margin: 6px auto 1rem;
	border: 2px solid var(--ink);
	border-radius: 50%;
	background: rgba(242, 235, 221, .6);
	position: relative;
}
.route__icon::before {
	content: "";
	position: absolute;
	top: -8px; left: 50%;
	width: 1.5px; height: 8px;
	background: var(--ink);
}
.route__icon svg { width: 44px; height: 44px; }
.route__title { font-family: var(--f-text); font-weight: 700; font-size: 1rem; line-height: 1.3; margin: 0 0 .45rem; }
.route__risk { margin: 0; color: var(--mark); font-size: .82rem; line-height: 1.35; }
.route__risk::before { content: "✕ "; font-weight: 700; }

/* Блок 02 — разбор риелтора */
.sheet.anatomy-grid {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 0;
	padding: 0;
}
.anatomy-grid > .anatomy-main { padding: 2.4rem 2rem 2.2rem 2.4rem; min-width: 0; }
.anatomy-grid > .anatomy-photo {
	min-width: 0;
	padding: 1.6rem 1.6rem 1.8rem;
	border-left: 2px solid rgba(74, 68, 58, .35);
	display: flex;
}
.anatomy-photo img {
	display: block;
	width: 100%;
	aspect-ratio: 416 / 446;
	height: auto;
	object-fit: cover;
	align-self: center;
	box-shadow: 0 0 0 1px rgba(74, 68, 58, .4);
	filter: contrast(1.02);
}
.anatomy {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: start;
	column-gap: 1rem;
	row-gap: 0;
}
.anatomy__figure {
	grid-column: 2;
	grid-row: 1 / span 2;
	justify-self: center;
	width: 100%;
	max-width: 330px;
}
.anatomy__figure img { display: block; width: 100%; height: auto; aspect-ratio: 644 / 822; }
.pin { position: relative; min-width: 0; }
.pin--a { grid-column: 1; grid-row: 1; margin-top: 2.2rem; }
.pin--b { grid-column: 3; grid-row: 1; margin-top: .9rem; }
.pin--c { grid-column: 1; grid-row: 2; margin-top: 4.5rem; }
.pin--d { grid-column: 3; grid-row: 2; margin-top: 2.5rem; }
.pin__tag {
	position: relative;
	display: inline-block;
	padding: .4rem 1.4rem .45rem;
	background: var(--teal-soft);
	color: #10201E;
	font-family: var(--f-text);
	font-size: 1.12rem;
	box-shadow: 2px 3px 0 rgba(28, 26, 23, .25);
	transform: rotate(-1deg);
}
.pin__tag::before {
	content: "";
	position: absolute;
	top: -7px; left: 40%;
	width: 26px; height: 12px;
	background: rgba(242, 235, 221, .7);
	transform: rotate(4deg);
}
.pin__head { position: relative; display: flex; align-items: center; }
.pin__tag { flex: none; }
.pin__line {
	position: absolute;
	top: 50%;
	height: 0;
	border-top: 1.5px solid var(--ink);
}
.pin__line::after {
	content: "";
	position: absolute;
	top: -4px;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--ink);
}
.pin--a .pin__line, .pin--c .pin__line { position: relative; top: auto; flex: 1 1 auto; min-width: 1.5rem; margin-right: -2.4rem; }
.pin--a .pin__line::after, .pin--c .pin__line::after { right: -3px; }
.pin--b .pin__line, .pin--d .pin__line { right: 100%; width: 3rem; }
.pin--b .pin__line::after, .pin--d .pin__line::after { left: -3px; }
.pin__text { margin: .65rem 0 0; font-size: .95rem; line-height: 1.5; color: #2B2823; }

/* Блок 03 — последние записи */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}
.empty-note { margin: 0; padding: 1rem 1.2rem; background: var(--paper); border: 1px dashed var(--line); }

/* ---------- Карточка записи ---------- */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--paper);
	padding: 1.1rem 1.1rem 1.5rem;
	box-shadow: 1px 2px 0 rgba(28, 26, 23, .18), 0 0 0 1px rgba(74, 68, 58, .12);
	transition: transform .18s, box-shadow .18s;
}
.card::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: -12px; left: 18px;
	width: 70px; height: 26px;
	background: rgba(228, 210, 138, .55);
	box-shadow: 0 0 0 1px rgba(160, 140, 80, .15);
	transform: rotate(-32deg);
}
.card::after {
	content: "";
	position: absolute;
	right: 0; bottom: 0;
	width: 38px; height: 38px;
	background: linear-gradient(135deg, var(--paper-shade) 0 48%, rgba(74, 68, 58, .45) 50%, var(--paper-deep) 53% 100%);
	box-shadow: -2px -2px 3px rgba(0, 0, 0, .12);
}
.card:hover { transform: translate(-2px, -3px) rotate(-.3deg); box-shadow: 4px 6px 0 rgba(28, 26, 23, .35), 0 0 0 1px rgba(74, 68, 58, .2); }
.card-thumb { display: block; margin: 0 0 1.1rem; overflow: hidden; }
.card-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	filter: sepia(.12);
}
.card-thumb--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 7;
	background:
		repeating-linear-gradient(0deg, transparent 0 21px, rgba(74, 68, 58, .14) 21px 22px),
		repeating-linear-gradient(90deg, transparent 0 21px, rgba(74, 68, 58, .14) 21px 22px),
		var(--paper-deep);
}
.card-thumb--empty svg { width: 64px; height: 64px; display: block; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 0 .4rem; }
.card-title { font-family: var(--f-text); font-weight: 700; font-size: 1.22rem; line-height: 1.3; margin: 0 0 .6rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--copper-dark); text-decoration: underline; }
.card-excerpt { color: #3A362F; font-size: .96rem; line-height: 1.55; margin-bottom: .8rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-meta { margin-top: auto; color: var(--muted); font-size: .9rem; padding-bottom: .9rem; }
.card-more { align-self: flex-start; }

/* Блоки 04 и 05 — нижняя пара */
.duo {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 1.1rem;
	align-items: stretch;
}
.duo > .sheet { margin-bottom: 1.1rem; min-width: 0; }

.checklist {
	list-style: none;
	margin: 0;
	padding: 0 0 0 1.4rem;
	border-left: 3px solid var(--mark);
}
.checklist li {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	padding: .8rem 0;
	border-bottom: 1px solid var(--rule);
	font-size: 1.05rem;
	line-height: 1.4;
	cursor: pointer;
	user-select: none;
}
.checklist li:last-child { border-bottom: 0; }
.checklist__box {
	flex: none;
	position: relative;
	width: 24px; height: 24px;
	border: 2px solid var(--line);
	background: var(--paper);
}
.checklist li.is-done .checklist__box::after {
	content: "";
	position: absolute;
	left: 6px; top: 1px;
	width: 7px; height: 13px;
	border: solid var(--mark);
	border-width: 0 3px 3px 0;
	transform: rotate(40deg);
}
.checklist li.is-done .checklist__text { text-decoration: line-through; text-decoration-color: var(--mark); color: var(--muted); }

.ref-table { margin: 0; font-size: .95rem; }
.ref-table, .ref-table th, .ref-table td { border: 0; }
.ref-table th, .ref-table td { border-top: 1.5px solid var(--copper); padding: .9rem .8rem; line-height: 1.5; }
.ref-table tr:last-child td { border-bottom: 1.5px solid var(--copper); }
.ref-table th { background: transparent; font-family: var(--f-text); font-weight: 700; font-size: .95rem; }
.ref-table th + th, .ref-table td + td { border-left: 1.5px solid var(--copper); }
.ref-table td:first-child { font-weight: 700; color: var(--ink); hyphens: manual; }
.duo .stamp__label { font-size: clamp(1.1rem, 1.9vw, 1.5rem); }
.ref-scroll { overflow-x: auto; }

/* ---------- Контентные листы ---------- */
.entry-title, .page-title { margin: 0 0 1.2rem; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; line-height: 1.15; }
.entry-meta { color: var(--muted); font-size: .92rem; margin-bottom: 1.4rem; padding-bottom: .9rem; border-bottom: 1px dashed var(--line); }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--copper-dark); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { color: var(--muted); font-size: .88rem; margin-top: .4em; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-tags { margin-top: 1.8rem; font-size: .92rem; color: var(--muted); }
.entry-tags a { display: inline-block; margin: 0 .3em .3em 0; padding: .1em .7em; border: 1px solid var(--copper); text-decoration: none; }
.archive-head { margin-bottom: 1.8rem; }
.archive-desc { color: var(--muted); margin-top: .6rem; }
.list-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.8rem; }
.layout-single .list-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Пагинация ---------- */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: 2.4rem;
	align-items: center;
}
.pager .page-numbers {
	display: inline-block;
	min-width: 2.5rem;
	padding: .35em .75em;
	border: 2px solid var(--copper);
	background: var(--paper);
	color: var(--copper-dark);
	text-align: center;
	text-decoration: none;
	font-family: var(--f-head);
	font-size: 1rem;
	line-height: 1.4;
	transition: background .15s, color .15s, transform .15s;
}
.pager a.page-numbers:hover { background: var(--copper); color: #FFF8EE; transform: translate(-1px, -2px); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--sticky); }
.pager .page-numbers.dots { border: 0; background: transparent; min-width: 0; color: var(--muted); }

/* ---------- Сайдбар ---------- */
.sidebar .widget {
	position: relative;
	isolation: isolate;
	padding: 1.6rem 1.5rem 1.6rem;
	margin-bottom: 1.2rem;
	color: var(--ink);
}
.sidebar .widget::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--sticky-paper);
	clip-path: var(--torn);
}
.sidebar .widget::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background: rgba(0, 0, 0, .5);
	transform: translate(3px, 5px);
	clip-path: var(--torn);
}
.sidebar .widget-title {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .2rem .7rem;
	border: 2px solid var(--ink);
	box-shadow: 3px 3px 0 var(--ink);
	font-family: var(--f-head);
	font-size: 1.05rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--ink);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { margin: 0; padding: .55rem 0; border-bottom: 1px solid rgba(74, 68, 58, .3); line-height: 1.4; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration-color: var(--copper); }
.sidebar .widget a:hover { color: var(--mark); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: .85rem; }
.sidebar .widget p { color: var(--ink); }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0; }
.search-form label { flex: 1 1 14rem; min-width: 0; }
.search-field {
	width: 100%;
	padding: .55em .8em;
	border: 2px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 1rem;
}
.search-field:focus { outline: 2px dashed var(--copper); outline-offset: 2px; }
.search-submit { font-family: var(--f-text); }

/* ---------- 404 ---------- */
.notfound { text-align: center; }
.notfound__code {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .1em .5em;
	border: 3px solid var(--mark);
	color: var(--mark);
	font-family: var(--f-head);
	font-size: clamp(3.5rem, 9vw, 6rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	transform: rotate(-4deg);
}
.notfound .search-form { max-width: 520px; margin: 1.4rem auto; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 2px solid var(--ink); }
.comments-title { margin-top: 0; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.3rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; border-left: 2px dashed var(--rule); }
.comment-item { margin: 0 0 1rem; }
.comment-box { padding: 1rem 1.2rem; background: var(--paper); border-left: 3px solid var(--teal); }
.comment-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; flex-wrap: wrap; }
.comment-head img { display: block; border-radius: 50%; }
.comment-author-name { font-weight: 700; }
.comment-date { color: var(--muted); font-size: .85rem; }
.comment-await { color: var(--mark); font-style: italic; font-size: .9rem; }
.comment-reply a { font-size: .9rem; }
.comment-respond { margin-top: 1.4rem; }
.comment-reply-title { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1.2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .92rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: .6em .8em;
	border: 2px solid var(--line);
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-text);
	font-size: 1rem;
}
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-form .submit { padding: .5em 1.6em; border: 2px solid var(--copper); background: var(--copper); color: #FFF8EE; font-family: var(--f-text); font-size: 1rem; cursor: pointer; }
.comment-form .submit:hover { background: var(--ink); border-color: var(--ink); }
.comment-nav { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }

/* ---------- Подвал ---------- */
.site-footer {
	margin-top: 1.6rem;
	background: var(--foot);
	color: var(--foot-text);
	padding: 2.8rem 0 1.6rem;
	border-top: 1px solid #2A332E;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.footer-col { min-width: 0; padding: 0 2.2rem; }
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { padding-right: 0; }
.footer-col + .footer-col { border-left: 1px solid var(--copper); }
.site-footer .widget { margin-bottom: 1.2rem; color: var(--foot-text); }
.site-footer .widget-title { margin: 0 0 .8rem; font-family: var(--f-text); font-weight: 700; font-size: 1.12rem; color: #F2EBDD; letter-spacing: 0; }
.site-footer .widget p, .site-footer .widget .textwidget { color: var(--foot-text); font-size: .95rem; line-height: 1.6; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { margin: 0 0 .45rem; }
.site-footer .widget a { color: var(--copper); text-decoration-color: var(--copper); }
.site-footer .widget a:hover { color: var(--sticky); }
.site-footer .widget .post-date { color: var(--foot-muted); }
.copyright { margin: 2.2rem 0 0; padding-top: 1.2rem; border-top: 1px solid #253029; color: var(--foot-muted); font-size: .88rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
	position: fixed;
	z-index: 90;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.6rem;
	flex-wrap: wrap;
	max-width: 880px;
	margin-inline: auto;
	padding: 1rem 1.4rem;
	background: var(--head);
	color: #E4DCCB;
	border: 2px solid var(--copper);
	box-shadow: 5px 5px 0 rgba(0, 0, 0, .45);
	font-size: .92rem;
	line-height: 1.5;
}
.cookie-banner p { margin: 0; flex: 1 1 22rem; min-width: 0; }
.cookie-banner .tag-btn { background: var(--copper); color: #FFF8EE; }
.cookie-banner .tag-btn:hover { background: var(--paper); color: var(--ink); box-shadow: 3px 3px 0 var(--copper); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.brand-text { flex-direction: column; align-items: flex-start; gap: .45rem; }
	.brand-desc { padding-left: 0; border-left: 0; max-width: 34rem; font-size: .8rem; }
	.route__title { font-size: .92rem; }
	.route__icon { width: 72px; height: 72px; }
	.route__icon svg { width: 38px; height: 38px; }
	.route__step:not(:last-child)::after { top: 64px; }
	.route__step:not(:last-child) .route__arrow { top: 64px; }
}

@media (max-width: 960px) {
	.fp-wrap, .layout-single { width: 100%; }
	.site-header__row { flex-wrap: wrap; gap: 1rem; }
	.nav-toggle { display: inline-block; }
	.main-nav { flex: 1 1 100%; }
	.main-nav.is-collapsed { display: none; }
	.main-nav ul { flex-direction: column; border-top: 1px solid #343a38; }
	.main-nav li + li { border-left: 0; border-top: 1px solid #343a38; }
	.main-nav a { padding: .7rem .2rem; }
	.layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 1.2rem; }

	.route { grid-template-columns: minmax(0, 1fr); }
	.route::before { top: 14px; bottom: 14px; left: 41px; right: auto; border-top: 0; border-left: 1px dashed var(--line); }
	.route__step {
		display: grid;
		grid-template-columns: 84px minmax(0, 1fr);
		grid-template-rows: auto auto;
		column-gap: 1rem;
		text-align: left;
		padding: 0 0 1.2rem;
	}
	.route__step:not(:last-child)::after, .route__step .route__arrow { display: none; }
	.route__num { position: absolute; left: 0; top: 0; }
	.route__icon { grid-row: 1 / span 2; width: 72px; height: 72px; margin: 4px 0 0 6px; }
	.route__icon::before { display: none; }
	.route__title { align-self: end; margin-top: .9rem; }
	.route__title br { display: none; }

	.sheet.anatomy-grid { grid-template-columns: minmax(0, 1fr); }
	.anatomy-grid > .anatomy-photo { border-left: 0; border-top: 2px solid rgba(74, 68, 58, .35); padding: 1.6rem 2rem 2.2rem; }
	.posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.list-grid, .layout-single .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-cols { grid-template-columns: minmax(0, 1fr); row-gap: 1.6rem; }
	.footer-col, .footer-col:first-child, .footer-col:last-child { padding: 0; }
	.footer-col + .footer-col { border-left: 0; border-top: 1px solid var(--copper); padding-top: 1.4rem; }
}

@media (max-width: 760px) {
	.anatomy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.2rem; row-gap: 1.4rem; }
	.anatomy__figure { grid-column: 1 / -1; grid-row: 1; max-width: 300px; }
	.pin--a, .pin--b, .pin--c, .pin--d { grid-row: auto; margin-top: 0; }
	.pin--a, .pin--c { grid-column: 1; }
	.pin--b, .pin--d { grid-column: 2; }
	.pin__line { display: none; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.shell { width: min(94%, 1240px); }
	.sheet { padding: 1.8rem 1.3rem 2rem; }
	.anatomy-grid > .anatomy-main { padding: 1.8rem 1.3rem 1.6rem; }
	.anatomy-grid > .anatomy-photo { padding: 1.3rem 1.3rem 1.8rem; }
	.stamp { gap: .6rem; margin-bottom: 1.4rem; }
	.stamp__num { min-width: 2.6rem; height: 2.5rem; font-size: 1.35rem; }
	.brand-logo, .brand-mark { width: 64px; height: 54px; }
	.brand-name { font-size: .98rem; }
	.posts-grid, .list-grid, .layout-single .list-grid { grid-template-columns: minmax(0, 1fr); }
	.anatomy { grid-template-columns: minmax(0, 1fr); }
	.pin--a, .pin--b, .pin--c, .pin--d { grid-column: 1; }
	.checklist { padding-left: 1rem; }
	.checklist li { font-size: 1rem; }
	.ref-table { font-size: .88rem; }
	.ref-table th, .ref-table td { padding: .7rem .55rem; }
	.cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: .9rem 1rem; }
	.sidebar .widget { padding: 1.4rem 1.2rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em 0; }
}
.entry-title + .entry-meta { margin-top: -.6rem; }
