/*
Theme Name: otelimoskva-ru-ru
Author: Илья Ковалёв
Description: Тема сайта об отелях Москвы: гостиничный коридор 1970-х — тёмно-зелёные панели с рифлением, латунные ключи на стойке, кольцо метро, журнал гостей и счёт за ночь на бордовом ковре.
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: otelimoskva
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/fira-sans-extra-condensed-cyrillic-300-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/fira-sans-extra-condensed-latin-300-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-extra-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: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-extra-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-extra-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: "Fira Sans Extra Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-extra-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-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 Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-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 Serif"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-serif-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-serif-latin-400-italic.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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/caveat-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: "Caveat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/caveat-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-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: "PT Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-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+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }

/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #16211D;
	--bg-deep: #111A16;
	--bordo: #6E1F2A;
	--brass: #C9A54E;
	--brass-light: #E8CE8C;
	--brass-dark: #8E7130;
	--paper: #F1E8D6;
	--ink: #2A2A26;
	--text: #F2ECE0;
	--muted: #9C9484;
	--line: #3A4A42;
	--font-head: "Fira Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
	--font-body: "PT Serif", Georgia, "Times New Roman", serif;
	--font-hand: "Caveat", "Segoe Print", cursive;
	--font-mono: "PT Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
	--brass-grad: linear-gradient(160deg, #E8CE8C 0%, #C9A54E 38%, #A88838 70%, #D7BB6E 100%);
}

/* ---------- База ---------- */
*,
*::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.6;
	color: var(--text);
	background-color: var(--bg);
	/* Рифлёные обои: тонкие вертикальные полосы и тень по краям */
	background-image:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 2px, rgba(0, 0, 0, 0.09) 2px 5px, transparent 5px 11px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.35));
	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: 400;
	line-height: 1.05;
	margin: 1.4em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

a {
	color: var(--brass-light);
	text-decoration: underline solid rgba(201, 165, 78, 0.55);
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
	color: var(--brass);
	text-decoration-color: var(--brass);
}

:focus-visible {
	outline: 2px solid var(--brass-light);
	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(--brass);
	color: var(--ink);
}

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

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

/* ---------- Латунная табличка: кнопки ---------- */
.plate-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.4em 0.75em 0.35em;
	font-family: var(--font-body);
	font-size: 0.92rem;
	line-height: 1.2;
	text-decoration: none;
	color: #1E1A10;
	background: var(--brass-grad);
	border: 1px solid #6F5A26;
	border-radius: 2px;
	box-shadow: inset 0 1px 0 rgba(255, 245, 210, 0.6), 0 2px 4px rgba(0, 0, 0, 0.45);
	cursor: pointer;
	/* Шурупы по углам таблички */
	background-image:
		radial-gradient(circle, #6F5A26 0 1.5px, transparent 2px),
		radial-gradient(circle, #6F5A26 0 1.5px, transparent 2px),
		radial-gradient(circle, #6F5A26 0 1.5px, transparent 2px),
		radial-gradient(circle, #6F5A26 0 1.5px, transparent 2px),
		linear-gradient(160deg, #E8CE8C 0%, #C9A54E 38%, #A88838 70%, #D7BB6E 100%);
	background-size: 6px 6px, 6px 6px, 6px 6px, 6px 6px, 100% 100%;
	background-position: 2px 2px, calc(100% - 2px) 2px, 2px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), 0 0;
	background-repeat: no-repeat;
	transition: filter 0.15s, transform 0.15s;
}

.plate-btn:hover,
.plate-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: #1E1A10;
	filter: brightness(1.1);
	transform: translateY(-1px);
}

/* ---------- Шапка ---------- */
.site-header {
	background: transparent;
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding: 2.4rem 0 1.9rem;
	border-bottom: 1px solid var(--brass);
}

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

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

.brand-mark,
.brand-logo {
	flex: none;
	width: 128px;
	height: auto;
	filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
}

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.8rem, 3.2vw, 3.3rem);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: var(--brass);
	text-shadow: 0 2px 3px rgba(0, 0, 0, 0.5);
}

.brand-desc {
	max-width: 25em;
	margin-top: 0.7rem;
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--text);
}

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

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

.main-nav a {
	display: inline-block;
	padding: 0.2em 0;
	font-family: var(--font-head);
	font-size: 1.45rem;
	font-weight: 400;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--brass);
	border-bottom: 1px 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(--brass-light);
	border-bottom-color: var(--brass);
}

/* ---------- Заголовки секций ---------- */
.brass-title {
	margin: 0 0 1.1rem;
	font-family: var(--font-head);
	font-size: clamp(2.6rem, 5.4vw, 5.2rem);
	font-weight: 400;
	line-height: 1.02;
	text-transform: uppercase;
	hyphens: manual;
	color: var(--brass);
	text-shadow: 0 3px 4px rgba(0, 0, 0, 0.55);
}

.brass-title--rule {
	padding-bottom: 1.2rem;
	font-size: clamp(2.2rem, 4vw, 3.6rem);
	border-bottom: 1px solid var(--brass);
}

.lead {
	margin: 0;
	font-size: clamp(1.15rem, 1.9vw, 1.9rem);
	line-height: 1.3;
	color: var(--text);
}

.front section {
	padding: 3.2rem 0;
}

/* ---------- Блок 1: стойка с ключами ---------- */
.keys-row {
	display: grid;
	grid-template-columns: minmax(0, 27fr) minmax(0, 50fr) minmax(0, 20fr);
	gap: 2.5rem;
	align-items: center;
}

.keys-text .brass-title {
	font-size: clamp(2.6rem, 4.6vw, 4.8rem);
}

.rack {
	position: relative;
	margin: 0;
	container-type: inline-size;
}

.rack > img {
	display: block;
	width: 100%;
	filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.5));
}

.rack-tags {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Надписи на латунных бирках: сами бирки нарисованы на картинке */
.rack-tag {
	position: absolute;
	top: 39%;
	width: 13%;
	height: 26%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: translateX(-50%);
	font-family: var(--font-body);
	line-height: 1.15;
	text-align: center;
	color: #1F1C14;
	text-shadow: 0 1px 0 rgba(255, 240, 200, 0.45);
}

.rack-tag b {
	font-size: 4.4cqw;
	font-weight: 400;
	line-height: 1;
}

.rack-tag span {
	margin-top: 0.35cqw;
	font-size: 2.7cqw;
}

.rack-tag small {
	font-size: 2.15cqw;
	white-space: nowrap;
}

.rack-tag--1 { left: 15.3%; }
.rack-tag--2 { left: 33%; }
.rack-tag--3 { left: 50.5%; }
.rack-tag--4 { left: 68.1%; }
.rack-tag--5 { left: 85.6%; }

.corridor {
	display: block;
	width: 100%;
	aspect-ratio: 279 / 345;
	object-fit: cover;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
}

/* ---------- Блок 2: кольцо метро ---------- */
.metro-row {
	display: grid;
	grid-template-columns: minmax(0, 50fr) minmax(0, 47fr);
	gap: 3rem;
	align-items: center;
}

.ring {
	position: relative;
	max-width: 760px;
	margin: 0;
	aspect-ratio: 750 / 420;
	container-type: inline-size;
}

.ring > img {
	position: absolute;
	left: 20.7%;
	top: 0;
	width: 54.7%;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.55));
}

.station {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5cqw;
	margin: 0;
	font-size: 2.6cqw;
	line-height: 1.2;
}

.plate {
	display: inline-block;
	padding: 0.25em 0.75em;
	font-family: var(--font-body);
	white-space: nowrap;
	color: #1F1C14;
	border: 1px solid #6F5A26;
	border-radius: 2px;
	background-image:
		radial-gradient(circle, #6F5A26 0 1.5px, transparent 2px),
		radial-gradient(circle, #6F5A26 0 1.5px, transparent 2px),
		linear-gradient(160deg, #E8CE8C 0%, #C9A54E 38%, #A88838 70%, #D7BB6E 100%);
	background-size: 6px 6px, 6px 6px, 100% 100%;
	background-position: 3px 50%, calc(100% - 3px) 50%, 0 0;
	background-repeat: no-repeat;
	box-shadow: inset 0 1px 0 rgba(255, 245, 210, 0.6), 0 3px 5px rgba(0, 0, 0, 0.5);
}

.station-count {
	color: var(--text);
}

.station--kiev { left: 3%; top: 24%; }
.station--belarus { left: 0; top: 63%; }
.station--park { left: 75%; top: 25%; }
.station--kursk { left: 75%; top: 63%; }

/* ---------- Блок 3: журнал гостей ---------- */
.guestbook-row {
	display: grid;
	grid-template-columns: minmax(0, 36fr) minmax(0, 60fr);
	gap: 3rem;
	align-items: end;
}

.journal {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	padding: 10px;
	background: #2B302B;
	box-shadow: 0 18px 30px rgba(0, 0, 0, 0.6);
}

.journal-page {
	position: relative;
	min-height: 330px;
	padding: 2.4rem 1.8rem 1.6rem;
	color: var(--ink);
	background-color: var(--paper);
	/* Линовка журнала */
	background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(80, 90, 100, 0.28) 33px 34px);
	background-position: 0 16px;
}

.journal-page--left {
	box-shadow: inset -22px 0 26px -18px rgba(60, 45, 20, 0.45);
}

.journal-page--right {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.6rem;
	box-shadow: inset 22px 0 26px -18px rgba(60, 45, 20, 0.45);
}

.hand {
	margin: 0;
	font-family: var(--font-hand);
	font-size: 1.75rem;
	line-height: 1.15;
	color: #14161C;
}

.journal-head {
	margin-left: 18%;
}

.note span {
	display: block;
	text-align: right;
}

.note--2 {
	transform: rotate(-1.5deg);
}

.note--3 {
	transform: rotate(-1deg);
}

.stamp {
	position: absolute;
	top: 1.4rem;
	right: 1.4rem;
	width: 92px;
	height: 92px;
	fill: none;
	stroke: rgba(40, 44, 54, 0.6);
	stroke-width: 1.6;
	transform: rotate(-12deg);
}

.stamp text {
	fill: rgba(40, 44, 54, 0.65);
	stroke: none;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.5px;
}

.stamp .stamp-mid {
	font-size: 11px;
}

.clip {
	position: absolute;
	top: -28px;
	z-index: 2;
	width: 26px;
	height: 76px;
	fill: none;
	stroke: var(--brass);
	stroke-width: 2.2;
	stroke-linecap: round;
	filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.45));
}

.clip--left {
	left: 18%;
}

.clip--right {
	right: 6%;
}

/* ---------- Блок 4: счёт за ночь ---------- */
.bill-row {
	display: grid;
	grid-template-columns: minmax(0, 32fr) minmax(0, 65fr);
	gap: 3rem;
	align-items: center;
}

.carpet {
	position: relative;
	display: flex;
	justify-content: flex-end;
	min-height: 316px;
	padding: 1.4rem 5% 0;
	overflow: hidden;
	background: var(--bordo) url("images/carpet.jpg") left top / auto 100% repeat-x;
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.55);
}

.receipt {
	position: relative;
	width: min(100%, 400px);
	margin-bottom: -2rem;
	padding: 2.2rem 1.6rem 3rem;
	font-family: var(--font-mono);
	font-size: 1.12rem;
	line-height: 1.5;
	color: var(--ink);
	background: var(--paper);
	transform: rotate(-5deg);
	transform-origin: 50% 0;
	box-shadow: 6px 8px 14px rgba(0, 0, 0, 0.45);
	/* Зубчатый край отрыва сверху */
	-webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 18px 51% repeat-x, linear-gradient(#000 0 0) bottom / 100% 50% no-repeat;
	mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / 18px 51% repeat-x, linear-gradient(#000 0 0) bottom / 100% 50% no-repeat;
}

.receipt-cut {
	margin: 0 0 0.8rem;
	border-top: 2px dashed rgba(42, 42, 38, 0.55);
}

.receipt dl {
	margin: 0;
}

.receipt dl div {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.receipt dt::after {
	content: " —";
}

.receipt dd {
	margin: 0;
	text-align: right;
	white-space: nowrap;
}

.receipt-total {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 2px dashed rgba(42, 42, 38, 0.55);
	font-weight: 700;
}

/* ---------- Последние записи: таблички без скруглений ---------- */
.journal-feed .brass-title--rule {
	margin-bottom: 1.6rem;
}

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

.feed--front {
	padding-bottom: 1.6rem;
	border-bottom: 1px solid var(--brass);
}

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

.feed-more {
	margin: 1.4rem 0 0;
	font-size: 1rem;
}

.feed-empty {
	padding: 1.6rem 1.8rem;
	color: var(--ink);
	background: var(--paper);
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card-thumb {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 912 / 438;
	background: var(--bg-deep);
}

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

.card:hover .card-thumb img {
	transform: scale(1.03);
}

.card-num {
	position: absolute;
	top: 0;
	left: 0;
	padding: 0.35rem 0.6rem 0.25rem;
	background: rgba(17, 26, 22, 0.55);
	font-family: var(--font-head);
	font-size: 2.2rem;
	line-height: 1;
	color: var(--brass);
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

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

.card-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-head);
	font-size: 1.85rem;
	font-weight: 400;
	line-height: 1.1;
}

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

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

.card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 1rem;
	font-size: 1.02rem;
	line-height: 1.45;
	color: var(--text);
}

.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-size: 0.98rem;
	color: var(--muted);
}

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

.page-head h1 {
	margin: 0.8rem 0 0;
	font-size: clamp(2.3rem, 4.6vw, 4.2rem);
	text-transform: uppercase;
	color: var(--brass);
	text-shadow: 0 3px 4px rgba(0, 0, 0, 0.55);
}

.single .page-head h1 {
	font-size: clamp(2rem, 3.6vw, 3.4rem);
	text-transform: none;
}

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

.breadcrumbs {
	font-size: 0.9rem;
	color: var(--muted);
}

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

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

.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.6rem 2.8rem 2.8rem;
	color: var(--ink);
	background: var(--paper);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.55);
}

.sheet::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 6px;
	background: var(--brass-grad);
}

.entry-meta {
	font-size: 0.92rem;
	color: #6A6456;
}

.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: 1.06rem;
	line-height: 1.75;
	hyphens: auto;
}

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

.entry-content a {
	color: var(--bordo);
	text-decoration-color: rgba(110, 31, 42, 0.5);
}

.entry-content a:hover {
	color: #4E1520;
}

.entry-content h2 {
	font-size: 2.2rem;
	color: #3B3320;
}

.entry-content h3 {
	font-size: 1.7rem;
	color: #3B3320;
}

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

.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.2em;
	top: 0.72em;
	width: 7px;
	height: 7px;
	background: var(--brass);
	transform: rotate(45deg);
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-hand);
	font-size: 1.7rem;
	line-height: 1.25;
	color: #14161C;
	background: repeating-linear-gradient(180deg, transparent 0 33px, rgba(80, 90, 100, 0.25) 33px 34px), #F7F0E2;
	border-left: 4px solid var(--brass);
}

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

.entry-content table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-family: var(--font-mono);
	font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border-bottom: 1px dashed rgba(42, 42, 38, 0.4);
}

.entry-content th {
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--text);
	background: var(--bg);
}

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

.entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: #6A6456;
}

.entry-content img {
	display: block;
}

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

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

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

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.9rem;
	border-top: 1px dashed rgba(42, 42, 38, 0.4);
}

.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(--bg-deep);
	border: 1px solid var(--line);
	border-top: 2px solid var(--brass);
}

.post-nav a:hover {
	color: var(--brass-light);
	border-color: var(--brass);
}

.post-nav .nav-next {
	text-align: right;
}

.post-nav small {
	display: block;
	font-size: 0.85rem;
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.45rem;
	font-weight: 400;
	color: var(--brass-light);
}

/* ---------- Пагинация (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.5em 0.85em;
	font-size: 0.95rem;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--brass-light);
	background: var(--bg-deep);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	border-color: var(--brass);
}

.pager .page-numbers.current {
	color: #1E1A10;
	background: var(--brass-grad);
	border-color: #6F5A26;
}

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

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

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

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.7rem;
	text-transform: uppercase;
	color: var(--brass);
}

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

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

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

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

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

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

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

.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(--paper);
	border-left: 3px solid var(--brass);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.88rem;
	color: #6A6456;
}

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

.comment-wait {
	font-size: 0.9rem;
	color: var(--bordo);
}

.comment-reply-link {
	font-size: 0.88rem;
	color: var(--bordo);
}

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

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.9rem;
	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: 1rem;
	color: var(--ink);
	background: var(--paper);
	border: 1px solid var(--brass-dark);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
}

.comment-notes,
.logged-in-as,
.must-log-in {
	font-size: 0.92rem;
	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: 300;
	line-height: 0.85;
	color: var(--brass);
	text-shadow: 0 6px 8px rgba(0, 0, 0, 0.6);
}

.lost-code span {
	color: var(--brass-light);
}

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

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

/* ---------- Подвал ---------- */
.site-footer {
	margin-top: 2rem;
	color: var(--text);
	background: transparent;
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3.5rem;
	padding: 2.4rem 0 2.2rem;
	border-top: 1px solid var(--brass);
}

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

.footer-col .widget-title {
	margin: 0 0 0.7rem;
	font-size: 2rem;
	text-transform: uppercase;
	color: var(--brass);
}

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

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

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

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

.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--brass-light);
	text-decoration: underline;
}

.footer-col .textwidget a {
	color: var(--brass-light);
}

.copyright {
	margin: 0;
	padding: 1.2rem 0 2rem;
	font-size: 1.05rem;
	text-align: center;
	color: var(--brass);
	border-top: 1px solid var(--brass);
}

/* ---------- 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.95rem;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg-deep);
	border: 1px solid var(--line);
	border-top: 2px solid var(--brass);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

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

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
	.header-row {
		align-items: flex-end;
	}
}

@media (max-width: 1180px) {
	.keys-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	}

	.corridor {
		display: none;
	}

	.main-nav a {
		font-size: 1.35rem;
	}
}

@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 {
		border-top: 1px solid var(--line);
	}

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

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

	.keys-row,
	.metro-row,
	.guestbook-row,
	.bill-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.6rem;
	}

	.metro-text {
		order: -1;
	}

	.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 {
		gap: 1rem;
	}

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

	.brand-desc {
		font-size: 0.95rem;
	}

	.front section {
		padding: 2.2rem 0;
	}

	.ring {
		aspect-ratio: auto;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 1rem 1.4rem;
	}

	.ring > img {
		position: static;
		width: 70%;
		margin: 0 15% 0.6rem;
	}

	.station {
		position: static;
		font-size: 0.95rem;
	}

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

	.journal-page--left {
		min-height: 150px;
	}

	.journal-page--right {
		min-height: 0;
		padding-top: 1.4rem;
	}

	.carpet {
		justify-content: center;
		padding: 1.2rem 6% 0;
	}

	.receipt {
		font-size: 0.95rem;
		padding: 2rem 1.2rem 2.6rem;
	}

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

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

	.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;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	* {
		transition: none !important;
	}
}
