/*
Theme Name: novosti-turizma-ru
Author: Иван Игнатов
Description: Тема портала о культурном туризме: разворот архитектурного атласа на бирюзовой сетке, кремовые листы с уголками-крестиками, линейная панорама города, разрез культурных слоёв и линия маршрута.
Version: 1.0
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: novosti
*/

/* ---------- Шрифты (OFL / Apache, файлы в /fonts) ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, 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+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-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: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-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+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-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: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-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+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-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+2190-2193, U+2212, U+FEFF, U+FFFD; }

/* ---------- Палитра (HEX из задания; кремовый и фон панели сведены к цвету вырезок из макета) ---------- */
:root {
	--bg: #0E7C86;
	--grid: #14A3B0;
	--panel: #05647A;
	--card: #FFEBB1;
	--text: #FFFFFF;
	--ink: #1A1F26;
	--ink-muted: #1D4E89;
	--muted: #CFE7EA;
	--line: rgba(255, 255, 255, 0.28);
	--amber: #FF4D2E;
	--amber-dark: #D93A1E;
	--teal: #00B894;
	--yellow: #FFD93D;
	--pink: #E84393;
	--sidebar: #0A6A7A;
	--header: #0B6F7B;
	--footer: #0B6F7B;
	--font-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	--font-body: "PT Sans", "Segoe UI", Roboto, Arial, sans-serif;
	--font-mono: "JetBrains Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
}

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

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

body {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--text);
	background-color: var(--bg);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 40px 40px;
	overflow-wrap: break-word;
}

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

p {
	margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.08;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 1.4em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration: underline solid var(--teal);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
	color: var(--yellow);
}

:focus-visible {
	outline: 2px solid var(--yellow);
	outline-offset: 2px;
}

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

.skip-link:focus {
	position: fixed !important;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	clip: auto;
	z-index: 1000;
	padding: 0.6em 1em;
	background: var(--yellow);
	color: var(--ink);
}

.shell {
	width: min(92%, 1360px);
	margin-left: auto;
	margin-right: auto;
}

@media (min-width: 960px) {
	.shell {
		width: 85%;
	}
}

/* ---------- Кнопки: рамка киноварью и угловые засечки ---------- */
.tag-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.55em 0.9em;
	font-family: var(--font-mono);
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background:
		linear-gradient(var(--amber), var(--amber)) left top / 7px 2px no-repeat,
		linear-gradient(var(--amber), var(--amber)) left top / 2px 7px no-repeat,
		linear-gradient(var(--amber), var(--amber)) right top / 7px 2px no-repeat,
		linear-gradient(var(--amber), var(--amber)) right top / 2px 7px no-repeat,
		linear-gradient(var(--amber), var(--amber)) left bottom / 7px 2px no-repeat,
		linear-gradient(var(--amber), var(--amber)) left bottom / 2px 7px no-repeat,
		linear-gradient(var(--amber), var(--amber)) right bottom / 7px 2px no-repeat,
		linear-gradient(var(--amber), var(--amber)) right bottom / 2px 7px no-repeat,
		transparent;
	border: 1px solid var(--amber);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.tag-btn:hover,
.tag-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: #fff;
	background-color: var(--amber);
}

.comment-respond .form-submit input[type="submit"],
.search-form button,
.cookie-banner button,
.lost .tag-btn {
	color: var(--text);
}

/* ---------- Шапка ---------- */
.site-header {
	position: relative;
	padding-bottom: 26px;
	background: var(--bg);
}

.site-header::after {
	content: "";
	position: absolute;
	left: 7.5%;
	right: 7.5%;
	bottom: 6px;
	height: 18px;
	border-bottom: 1.5px solid var(--text);
	background:
		repeating-linear-gradient(90deg, var(--text) 0 1.5px, transparent 1.5px 12px) left bottom / 100% 9px no-repeat,
		repeating-linear-gradient(90deg, var(--text) 0 1.5px, transparent 1.5px 60px) left bottom / 100% 18px no-repeat;
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 1.4rem 0 1.2rem;
}

.brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	text-decoration: none;
	color: var(--text);
}

.brand:hover {
	color: var(--text);
}

.brand-mark,
.brand-logo {
	flex: none;
	width: 70px;
	height: auto;
}

.brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.6rem, 3vw, 2.6rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.brand-desc {
	margin-top: 0.4rem;
	font-size: 0.86rem;
	color: var(--muted);
}

.nav-toggle {
	display: none;
	padding: 0.5em 0.9em;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text);
	background: transparent;
	border: 1px solid var(--text);
	cursor: pointer;
}

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li + li::before {
	content: "•";
	margin: 0 0.7rem;
	color: var(--muted);
}

.main-nav a {
	display: inline-block;
	padding: 0.3em 0;
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--text);
	border-bottom-color: var(--amber);
}

/* ---------- Заголовки секций: «02  СЛОИ ГОРОДА» с линией ---------- */
.sect-title {
	display: inline-flex;
	align-items: baseline;
	gap: 1.4rem;
	margin: 0 0 1.6rem;
	padding-bottom: 0.35rem;
	font-family: var(--font-mono);
	font-size: clamp(1.4rem, 2.4vw, 2.1rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--ink);
	border-bottom: 2px solid var(--ink);
}

.sect-title--light {
	color: var(--text);
	border-bottom-color: var(--text);
}

/* ---------- Лист с уголками-крестиками ---------- */
.plate {
	position: relative;
	padding: 2rem 2.4rem 2.4rem;
	color: var(--ink);
	background: var(--card);
	border: 1.5px solid var(--ink);
}

.plate {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231A1F26' stroke-width='1.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231A1F26' stroke-width='1.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231A1F26' stroke-width='1.5'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%231A1F26' stroke-width='1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: 6px 6px, calc(100% - 6px) 6px, 6px calc(100% - 6px), calc(100% - 6px) calc(100% - 6px);
}

/* ---------- Блок 1: панорама ---------- */
.hero {
	padding: 1.2rem 0 1.4rem;
}

.hero-sheet {
	position: relative;
	padding: 1.6rem 0 0;
	background: var(--panel);
}

.hero-text {
	position: absolute;
	left: 3%;
	top: 1.4rem;
	z-index: 1;
}

.hero-title {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(2.6rem, 7.4vw, 6.6rem);
	font-weight: 700;
	line-height: 0.92;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #FFF3C4;
}

.hero-sub {
	margin: 0.8rem 0 0;
	font-size: clamp(0.9rem, 1.6vw, 1.5rem);
	font-weight: 700;
	color: var(--text);
}

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

.dims {
	position: relative;
	height: 92px;
	margin: 0 3%;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--text);
}

.dims-line {
	position: absolute;
	left: 0;
	right: 9%;
	top: 22px;
	width: 91%;
	height: 50px;
	fill: none;
	stroke: var(--text);
	stroke-width: 1.5;
}

.dims-line .ticks {
	stroke-width: 1.5;
}

.dim--scale {
	position: absolute;
	left: 0;
	top: 64px;
	color: #FFC9A8;
}

.dim-axis {
	position: absolute;
	top: 64px;
	transform: translateX(-50%);
}

.dim-mark {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	color: #FFC9A8;
}

.dim-mark::after {
	content: "";
	display: block;
	width: 11px;
	height: 11px;
	margin: 6px auto 0;
	border-radius: 50%;
	background: var(--amber);
}

.dims-rose {
	position: absolute;
	right: 0;
	top: 8px;
	width: 70px;
	height: 70px;
}

/* ---------- Блок 2: слои города ---------- */
.layers,
.heritage,
.journal {
	padding: 0.8rem 0;
}

.layers-grid {
	display: grid;
	grid-template-columns: minmax(0, 22fr) minmax(0, 78fr);
	gap: 2rem;
	align-items: start;
}

.layers-lead {
	margin: 0;
	padding-right: 1.4rem;
	font-size: 1.05rem;
	line-height: 1.35;
	border-right: 2px solid var(--ink);
	min-height: 100%;
}

.strata {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stratum {
	display: grid;
	grid-template-columns: 4.5rem minmax(0, 11rem) minmax(0, 1fr) 7.5rem;
	align-items: center;
	min-height: 64px;
}

.stratum b {
	padding-right: 0.8rem;
	font-family: var(--font-mono);
	font-weight: 400;
	font-size: 0.95rem;
	text-align: right;
}

.stratum span {
	align-self: stretch;
	display: flex;
	align-items: center;
	padding: 0 0.8rem;
	font-size: 1rem;
	border: 1.5px solid var(--ink-muted);
	border-top-width: 0;
}

.stratum i {
	align-self: stretch;
	border: 1.5px solid var(--ink-muted);
	border-left: 0;
	border-top-width: 0;
	--h: #0E7C86;
}

.stratum:first-child span,
.stratum:first-child i {
	border-top-width: 1.5px;
}

.stratum img {
	justify-self: center;
	max-height: 56px;
	width: auto;
}

.stratum--dots i {
	background: radial-gradient(var(--h) 1.2px, transparent 1.6px) 0 0 / 8px 8px;
}

.stratum--diag i {
	background: repeating-linear-gradient(-45deg, var(--h) 0 1.5px, transparent 1.5px 8px);
}

.stratum--brick i {
	background:
		linear-gradient(var(--h) 1.5px, transparent 1.5px) 0 0 / 28px 14px,
		linear-gradient(90deg, var(--h) 1.5px, transparent 1.5px) 0 0 / 28px 28px,
		linear-gradient(90deg, var(--h) 1.5px, transparent 1.5px) 14px 14px / 28px 28px;
}

.stratum--wave i {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6c6-6 6 6 12 0s6 6 12 0' fill='none' stroke='%230E7C86' stroke-width='1.5'/%3E%3C/svg%3E") 0 0 / 24px 12px;
}

.stratum--grid i {
	background:
		linear-gradient(var(--h) 1.5px, transparent 1.5px) 0 0 / 12px 12px,
		linear-gradient(90deg, var(--h) 1.5px, transparent 1.5px) 0 0 / 12px 12px;
}

/* ---------- Блок 3: география наследия ---------- */
.heritage-grid {
	display: grid;
	grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
	gap: 2rem;
	align-items: center;
}

.map {
	position: relative;
	margin: 0;
}

.map img {
	display: block;
	width: 100%;
	height: auto;
}

.pin {
	position: absolute;
	transform: translate(-50%, -100%);
	padding: 0.18em 0.32em;
	font-family: var(--font-mono);
	font-size: clamp(0.58rem, 1vw, 0.82rem);
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: var(--pink);
	border-radius: 4px;
}

.pin::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	margin-left: -4px;
	border: 4px solid transparent;
	border-top-color: var(--pink);
}

.places {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.95rem;
}

.places li {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.32rem 0;
}

.places b {
	flex: none;
	padding: 0.12em 0.35em;
	font-weight: 700;
	color: #fff;
	background: var(--pink);
	border-radius: 3px;
}

/* ---------- Блок 4: линия маршрута ---------- */
.route {
	padding: 1.8rem 0 1.4rem;
	background: var(--panel);
	margin: 0.8rem 0;
}

.stations {
	display: grid;
	grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto;
	align-items: end;
	margin: 0;
	padding: 0 0 2rem;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	background: linear-gradient(var(--amber), var(--amber)) left calc(100% - 2rem - 9px) / 100% 6px no-repeat;
}

.stations li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.6rem;
}

.st-name {
	white-space: nowrap;
}

.stations i {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--amber);
}

.st-time {
	margin-bottom: 30px;
	font-size: 0.78rem;
	color: #FFC9A8;
	white-space: nowrap;
}

.is-hub .st-name {
	color: var(--yellow);
}

.is-hub i {
	border: 4px solid var(--yellow);
}

.st-note {
	position: absolute;
	top: 100%;
	margin-top: 0.4rem;
	font-size: 0.8rem;
	color: var(--yellow);
	white-space: nowrap;
}

/* ---------- Последние записи: карточки со скошенными углами ---------- */
.pieces {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.8rem;
	align-items: stretch;
}

.journal-more {
	margin: 1.8rem 0 0;
	font-size: 0.9rem;
}

.journal-more a {
	text-decoration-color: var(--amber);
}

.journal-more a:hover {
	color: var(--amber-dark);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.6rem 1rem 1rem;
	color: var(--ink);
	background: var(--ink);
	clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
	transition: transform 0.15s;
}

.card::before {
	content: "";
	position: absolute;
	inset: 1.5px;
	z-index: 0;
	background: var(--card);
	clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 13px, 100% calc(100% - 13px), calc(100% - 13px) 100%, 13px 100%, 0 calc(100% - 13px), 0 13px);
}

.card > * {
	position: relative;
	z-index: 1;
}

.card:hover {
	transform: translateY(-3px);
}

.card-num {
	position: absolute;
	top: 0.7rem;
	right: 1rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 700;
}

.card-thumb {
	display: block;
	overflow: hidden;
	aspect-ratio: 618 / 366;
	margin-top: 0.4rem;
}

.card-thumb img,
.card-blank {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 0.8rem 0.3rem 0;
}

.card-title {
	margin: 0 0 0.45rem;
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.3;
}

.card-title a {
	color: var(--ink);
	text-decoration: none;
}

.card-title a:hover {
	color: var(--amber-dark);
}

.card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0.7rem;
	font-size: 0.9rem;
	line-height: 1.4;
}

.card-excerpt p {
	margin: 0;
}

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
	margin-top: auto;
}

.card-date {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-muted);
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.2rem 0 1.6rem;
}

.page-head h1 {
	margin: 0.7rem 0 0;
	font-size: clamp(2.1rem, 4.4vw, 3.6rem);
	font-weight: 700;
	color: var(--text);
}

.single .page-head h1 {
	font-size: clamp(1.8rem, 3.4vw, 3rem);
}

.page-head .entry-meta {
	margin-top: 0.8rem;
	color: var(--muted);
}

.breadcrumbs {
	font-family: var(--font-mono);
	font-size: 0.74rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.breadcrumbs a {
	color: var(--text);
}

.breadcrumbs .sep {
	margin: 0 0.4em;
	color: var(--amber);
}

.site-main {
	padding: 0.6rem 0 4.5rem;
}

.layout-single {
	display: block;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	column-gap: 5%;
	align-items: start;
}

.content-area {
	min-width: 0;
}

.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	color: var(--ink);
	background: var(--card);
	border: 1.5px solid var(--ink);
	box-shadow: 6px 6px 0 rgba(10, 60, 70, 0.45);
}

.entry-meta {
	font-size: 0.76rem;
	letter-spacing: 0.03em;
	color: var(--ink-muted);
}

.entry-meta a {
	color: inherit;
}

.entry-thumb {
	margin: 0 0 1.8rem;
}

.entry-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.entry-content {
	font-size: 0.98rem;
	line-height: 1.7;
	hyphens: auto;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content a {
	text-decoration-color: var(--amber-dark);
}

.entry-content a:hover {
	color: var(--amber-dark);
}

.entry-content h2 {
	font-size: 1.9rem;
}

.entry-content h3 {
	font-size: 1.45rem;
}

.entry-content h4 {
	font-size: 1.2rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: none;
	padding-left: 1.5em;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.35em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.3em;
	top: 0.8em;
	width: 0.8em;
	border-top: 2px solid var(--amber-dark);
}

.entry-content ol > li::marker {
	font-weight: 700;
	color: var(--amber-dark);
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-head);
	font-size: 1.35rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	color: var(--text);
	background: var(--ink);
	border-left: 5px solid var(--teal);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border: 1px solid rgba(14, 17, 22, 0.35);
}

.entry-content th {
	font-family: var(--font-head);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text);
	background: var(--ink);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.74rem;
	color: var(--ink-muted);
}

.entry-content img {
	display: block;
}

.entry-content pre,
.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: rgba(14, 17, 22, 0.08);
}

.entry-content pre {
	padding: 1rem 1.2rem;
	overflow-x: auto;
}

.entry-content hr {
	height: 0;
	margin: 2em 0;
	border: 0;
	border-top: 2px solid var(--amber-dark);
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.78rem;
	border-top: 1px solid rgba(14, 17, 22, 0.25);
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.2rem;
	margin-top: 2rem;
}

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: var(--text);
	background: var(--sidebar);
	border: 1px solid var(--line);
	border-left: 4px solid var(--amber);
}

.post-nav a:hover {
	color: var(--text);
	border-color: var(--teal);
}

.post-nav .nav-next {
	text-align: right;
	border-left-width: 1px;
	border-right: 4px solid var(--amber);
}

.post-nav small {
	display: block;
	font-size: 0.7rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	align-items: stretch;
}

.layout-with-sidebar .feed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feed-empty {
	padding: 1.6rem 1.8rem;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

/* ---------- Пагинация (type => plain) ---------- */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.7em;
	padding: 0.55em 0.85em;
	font-size: 0.8rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--text);
	background: var(--sidebar);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	color: var(--ink);
	background: var(--teal);
}

.pager .page-numbers.current {
	color: var(--ink);
	background: var(--amber);
	border-color: var(--amber);
}

.pager .page-numbers.dots {
	min-width: 0;
	background: none;
	border-color: transparent;
}

.sheet .pager .page-numbers {
	color: var(--ink);
	background: transparent;
	border-color: rgba(14, 17, 22, 0.4);
}

/* ---------- Сайдбар ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	color: var(--text);
	background: var(--sidebar);
	border: 1px solid var(--line);
	border-top: 3px solid var(--amber);
}

.sidebar .widget + .widget {
	margin-top: 2rem;
}

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--text);
}

.sidebar ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar li {
	padding: 0.55rem 0;
	font-size: 0.86rem;
	line-height: 1.45;
	border-bottom: 1px solid var(--line);
}

.sidebar a {
	color: var(--text);
}

.sidebar a:hover {
	color: var(--teal);
}

.sidebar .post-date,
.sidebar .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.7rem;
	color: var(--muted);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 2.6rem;
}

.comments-title,
.comment-reply-title {
	font-size: 1.6rem;
	margin: 0 0 1rem;
	color: var(--text);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list .children {
	margin-left: 1.6rem;
}

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.74rem;
	color: var(--ink-muted);
}

.comment-head b {
	color: var(--ink);
}

.comment-wait {
	font-size: 0.82rem;
	color: var(--pink);
}

.comment-reply-link {
	font-size: 0.72rem;
	text-transform: uppercase;
	text-decoration-color: var(--amber-dark);
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem;
	background: var(--sidebar);
	border: 1px solid var(--line);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	width: 100%;
	padding: 0.65rem 0.8rem;
	font: inherit;
	font-size: 0.9rem;
	color: var(--ink);
	background: var(--text);
	border: 1px solid var(--line);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-size: 0.82rem;
	letter-spacing: 0;
	text-transform: none;
}

.comment-notes,
.logged-in-as,
.must-log-in {
	font-size: 0.82rem;
	color: var(--muted);
}

/* ---------- Поиск и 404 ---------- */
.search-form {
	display: flex;
	gap: 0.6rem;
	max-width: 560px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0 0 1.4rem;
	font-family: var(--font-head);
	font-size: clamp(7rem, 20vw, 14rem);
	font-weight: 500;
	line-height: 0.85;
	color: transparent;
	-webkit-text-stroke: 2px var(--text);
}

.lost-code span {
	color: var(--amber);
	-webkit-text-stroke: 0;
}

.lost p {
	max-width: 620px;
}

.lost .tag-btn {
	margin-top: 1.4rem;
}

/* ---------- Подвал ---------- */
.site-footer {
	color: var(--text);
	background: var(--footer);
	border-top: 1px solid var(--line);
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3.5rem;
	padding: 2.8rem 0 2.2rem;
}

.footer-col {
	min-width: 0;
	font-size: 0.86rem;
	line-height: 1.55;
	color: var(--text);
}

.footer-col .widget-title {
	margin: 0 0 0.7rem;
	font-size: 1.5rem;
	font-weight: 500;
	color: var(--text);
}

.footer-col p {
	margin: 0 0 0.6em;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li {
	margin-bottom: 0.25rem;
}

.footer-col a {
	color: var(--text);
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--teal);
}

.copyright {
	margin: 0;
	padding: 1.1rem 0 1.5rem;
	font-size: 0.78rem;
	text-align: center;
	color: var(--muted);
	border-top: 1px solid var(--line);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] {
	display: none !important;
}

.cookie-banner {
	position: fixed;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	z-index: 90;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem 1.5rem;
	max-width: 880px;
	margin-left: auto;
	margin-right: auto;
	padding: 1rem 1.3rem;
	font-size: 0.84rem;
	line-height: 1.5;
	color: var(--text);
	background: var(--header);
	border: 1px solid var(--line);
	border-top: 2px solid var(--amber);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-banner p {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
	.nav-toggle {
		display: inline-block;
	}

	.main-nav {
		flex-basis: 100%;
	}

	.main-nav[data-open="false"] {
		display: none;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.main-nav li + li::before {
		display: none;
	}

	.main-nav li + li {
		border-top: 1px solid var(--line);
	}

	.main-nav a {
		display: block;
		padding: 0.6em 0;
	}

	.hero-text {
		position: static;
		padding: 0 4% 1rem;
	}

	.dims-rose {
		display: none;
	}

	.dims-line {
		width: 100%;
	}

	.plate {
		padding: 1.6rem 1.4rem 1.8rem;
	}

	.layers-grid,
	.heritage-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.layers-lead {
		border-right: 0;
		padding-right: 0;
	}

	.stations {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
		gap: 0.2rem;
		padding: 0 0 0 1.2rem;
		background: linear-gradient(var(--amber), var(--amber)) 9px 0 / 6px 100% no-repeat;
	}

	.stations li {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 0.3rem 0.8rem;
		margin-left: -1.2rem;
	}

	.stations i {
		order: -1;
	}

	.st-note {
		flex-basis: 100%;
		padding-left: 2.4rem;
	}

	.st-time {
		margin: 0 0 0 2.4rem;
	}

	.st-note {
		position: static;
		margin: 0;
	}

	.is-hub {
		flex-wrap: wrap;
	}

	.pieces,
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}

	.footer-cols {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	body {
		font-size: 16px;
	}

	.brand-mark,
	.brand-logo {
		width: 52px;
	}

	.site-header::after {
		left: 4%;
		right: 4%;
	}

	.dims {
		font-size: 0.66rem;
	}

	.sect-title {
		gap: 0.8rem;
	}

	.stratum {
		grid-template-columns: 3.4rem minmax(0, 1fr) minmax(0, 0.7fr) 3.6rem;
	}

	.stratum b {
		font-size: 0.8rem;
		white-space: nowrap;
	}

	.stratum span {
		font-size: 0.86rem;
		padding: 0 0.5rem;
	}

	.stratum img {
		max-height: 36px;
	}

	.pieces,
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
	}

	.sheet {
		padding: 1.6rem 1.3rem 1.8rem;
	}

	.sidebar {
		padding: 1.3rem 1.2rem;
	}

	.comment-respond {
		padding: 1.2rem 1.1rem;
	}

	.post-nav {
		grid-template-columns: minmax(0, 1fr);
	}

	.search-form {
		flex-direction: column;
	}

	.cookie-banner {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.6rem;
	}
}
