/*
Theme Name: otelipeterburg-ru-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: opb
*/
/* ---------- Шрифты (локально, OFL) ---------- */
@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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fira Sans Extra Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/fira-sans-extra-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: "Fira Sans Extra Condensed";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/fira-sans-extra-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fira Sans Condensed";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/fira-sans-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 Condensed";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/fira-sans-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Fira Sans Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/fira-sans-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 Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/fira-sans-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "IBM Plex Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Основа: калька с миллиметровой сеткой ---------- */
:root {
	--kalka: #D9DFD6;
	--grid: #C3CBC0;
	--ink: #14212B;
	--night: #0F1A24;
	--deep: #16232E;
	--deep-2: #14202C;
	--rust: #C24A2A;
	--rust-2: #A63C20;
	--muted: #6C7A78;
	--cream: #EDEAE0;
	--blue: #C6D3D8;
	--yellow: #EFE3B0;
	/* имена, которые использует inner.css */
	--paper: #D9DFD6;
	--card: #EDEAE0;
	--accent: #C24A2A;
	--graphite: #0F1A24;
	--mahogany: #0F1A24;
	--on-dark: #EDEAE0;
	--on-dark-2: #A9B4B2;
	--lime: #C24A2A;
	--brass: #C24A2A;
	--brass-2: #E07A5A;
	--brass-3: #2B3A46;
	--morocco: #C24A2A;
	--morocco-2: #A63C20;
	--paper-0: #EDEAE0;
	--shadow: none;
	--font-head: "Fira Sans Extra Condensed", "Arial Narrow", sans-serif;
	--font-body: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
	--font-mono: "IBM Plex Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.55;
	color: var(--ink);
	background-color: var(--kalka);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 22px 22px;
	background-position: -1px -1px;
}

img,
svg {
	max-width: 100%;
}

img {
	height: auto;
}

a {
	color: var(--rust);
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--rust-2);
}

a:focus-visible,
button:focus-visible {
	outline: 2px solid var(--rust);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.08;
}

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

.skip-link:focus {
	position: fixed;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.6rem 1rem;
	margin: 0;
	clip: auto;
	color: var(--cream);
	background: var(--night);
}

.shell {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding-left: 32px;
	padding-right: 32px;
}

/* ---------- Шапка: тёмная полоса ---------- */
.site-header {
	color: var(--cream);
	background: var(--night);
}

.header-row {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	align-items: center;
	gap: 1rem 2.4rem;
	padding-top: 2.4rem;
	padding-bottom: 2.4rem;
}

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(2rem, 3.6vw, 3rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.04em;
}

.brand-desc {
	margin-top: 0.7rem;
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--cream);
	opacity: 0.85;
}

.nav-toggle {
	display: none;
	padding: 0.45rem 1rem;
	font-family: var(--font-head);
	font-size: 1.05rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cream);
	background: transparent;
	border: 1px solid var(--cream);
	border-radius: 0;
	cursor: pointer;
}

.main-nav {
	justify-self: end;
}

.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.2rem 0 0.25rem;
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--cream);
	border-bottom: 1px solid rgba(237, 234, 224, 0.7);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav a[aria-current] {
	color: #FFFFFF;
	border-bottom: 2px solid var(--rust);
}

/* ---------- Заголовки секций ---------- */
.sec-title {
	margin: 0;
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--ink);
}

.sec-lead {
	margin: 1.2rem 0 0;
	font-size: 1.35rem;
	line-height: 1.3;
}

.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2.4rem;
}

.more-link {
	font-family: var(--font-mono);
	font-size: 0.9rem;
}

/* ---------- Главная ---------- */
.front {
	overflow-x: clip;
}

.front > section {
	padding: 3.6rem 0;
}

/* Блок 1: районы */
.districts-grid {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 2.4rem 2.6rem;
	align-items: start;
}

.districts .sec-title {
	font-size: clamp(2.2rem, 3.6vw, 3rem);
}

.sec-lead + .legend {
	margin-top: 1.6rem;
}

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

.legend li {
	position: relative;
	padding: 0.3rem 0 0.3rem 2rem;
	line-height: 1.25;
}

.legend li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.5rem;
	width: 17px;
	height: 17px;
	border: 1.5px solid var(--ink);
}

.legend b {
	display: block;
	font-size: 1.2rem;
	font-weight: 500;
}

.legend span {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--muted);
}

.city-plan {
	position: relative;
	margin: 0;
	padding: 6px;
	background: var(--kalka);
	border: 1.5px solid var(--ink);
}

.city-plan img {
	display: block;
	width: 100%;
}

.plan-note {
	position: absolute;
	right: 0;
	top: calc(100% + 0.4rem);
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	color: var(--muted);
}

.city-plan figcaption {
	position: absolute;
	inset: 6px 6px auto;
	aspect-ratio: 965 / 490;
	pointer-events: none;
}

.pin {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform: translate(-50%, -24px);
}

.pin i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	font-family: var(--font-head);
	font-size: 1.45rem;
	font-style: normal;
	font-weight: 500;
	color: var(--ink);
	background: var(--kalka);
	border: 2px solid var(--ink);
	border-radius: 50%;
}

.pin em {
	margin-top: 0.15rem;
	padding: 0 0.3rem;
	font-size: 1.2rem;
	font-style: normal;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
	background: rgba(217, 223, 214, 0.85);
}

/* Блок 2: разрез номера */
.section-cut {
	color: var(--cream);
	background: var(--deep);
}

.section-cut .sec-title {
	color: var(--cream);
}

.cut-grid {
	display: grid;
	grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
	gap: 2rem;
	align-items: start;
}

.cut-figure {
	position: relative;
	margin: 0;
	padding: 0 190px 3.4rem;
}

.cut-drawing {
	position: relative;
}

.cut-drawing img {
	display: block;
	width: 100%;
}

.cut-label {
	position: absolute;
	width: 180px;
	font-size: 1.2rem;
	line-height: 1.15;
	transform: translateY(-50%);
}

.cut-label--left {
	right: 100%;
	padding-right: 0.6rem;
	text-align: right;
}

.cut-label--right {
	left: 100%;
	padding-left: 0.6rem;
}

.stamp {
	position: absolute;
	right: 0;
	bottom: 0;
	padding: 0.35rem 0.9rem;
	font-family: var(--font-head);
	font-size: 1.25rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--rust);
	border: 2px solid var(--rust);
	outline: 1px solid var(--rust);
	outline-offset: 3px;
	transform: rotate(-4deg);
}

/* Последние записи: листы кальки со скотчем */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.6rem 2.4rem;
	align-items: start;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 2rem 1.4rem 1.3rem;
	color: var(--ink);
	background: var(--cream);
	border: 1.5px solid var(--ink);
}

.feed--front .card:nth-child(2) {
	margin-top: 1rem;
}

.feed--front .card:nth-child(3) {
	margin-top: -0.4rem;
}

.tape {
	position: absolute;
	top: -12px;
	left: 26%;
	width: 108px;
	height: 30px;
	background: rgba(196, 184, 150, 0.75);
	transform: rotate(-3deg);
}

.feed .card:nth-child(even) .tape {
	left: 34%;
	transform: rotate(4deg);
}

.card-thumb {
	display: block;
	aspect-ratio: 340 / 146;
	overflow: hidden;
	background: var(--cream);
}

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

.card-thumb img:not(.card-drawing) {
	filter: grayscale(1) contrast(1.05);
	mix-blend-mode: multiply;
}

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

.card-title {
	margin: 0 0 0.5rem;
	font-size: 1.65rem;
	line-height: 1.12;
}

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

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

.card-excerpt {
	flex: 1;
	font-size: 1.05rem;
	line-height: 1.4;
}

.card-excerpt p {
	margin: 0 0 0.8rem;
}

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.4rem 1rem;
}

.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 1.1rem;
	text-decoration: underline;
	color: var(--rust);
}

.read-more svg {
	width: 24px;
	height: 12px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.card-date {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.feed-empty {
	font-family: var(--font-mono);
	color: var(--muted);
}

/* Блок 3: три дня */
.days {
	background: var(--blue);
}

.route {
	position: relative;
	height: 200px;
	margin: 3.4rem 0 3.6rem;
}

.route-line {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 200px;
	fill: none;
	stroke: var(--ink);
	stroke-width: 2;
}

.route-line path {
	vector-effect: non-scaling-stroke;
}

.route-line .route-thin {
	stroke-width: 1.5;
	stroke-dasharray: 5 5;
}

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

.stop {
	position: absolute;
	top: 65%;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	transform: translate(-50%, 22px);
}

.stop::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -33px;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	background: var(--blue);
	border: 2px solid var(--ink);
	border-radius: 50%;
	box-shadow: inset 0 0 0 4px var(--blue), inset 0 0 0 11px var(--ink);
}

.stop--1 {
	left: 16.67%;
}

.stop--2 {
	left: 50%;
	top: 35%;
	transform: translate(-50%, calc(-100% - 22px));
}

.stop--2::before {
	top: calc(100% + 11px);
}

.stop--3 {
	left: 83.33%;
}

.stop-day {
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rust);
}

.stop b {
	font-family: var(--font-head);
	font-size: 1.7rem;
	font-weight: 500;
}

.stop-note {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

/* Блок 4: календарь */
.calendar {
	color: var(--cream);
	background: var(--deep-2);
}

.calendar .sec-title {
	color: var(--cream);
}

.cal {
	position: relative;
	margin-top: 2.2rem;
	padding: 2.6rem 0 2.4rem;
}

.cal-months {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--cream);
	border-bottom: 1px solid var(--cream);
	border-left: 1px solid var(--cream);
}

.cal-months li {
	position: relative;
	height: 64px;
	border-right: 1px solid var(--cream);
}

.cal-months span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% + 0.4rem);
	font-family: var(--font-head);
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
}

.cal-months .is-white {
	background: var(--yellow);
}

.cal-months .is-velvet::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 10px;
	height: 10px;
	background: var(--rust);
	transform: translate(-50%, -50%) rotate(45deg);
}

.cal-mark {
	position: absolute;
	top: -0.6rem;
	margin: 0;
	padding-left: 1.1rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	white-space: nowrap;
	color: #E07A5A;
}

.cal-mark::before {
	content: "↓";
	position: absolute;
	left: 0;
	top: 0.3rem;
	font-size: 1rem;
	color: var(--rust);
}

.cal-mark--may {
	left: calc(100% / 12 * 4 + 100% / 24 - 0.4rem);
}

.cal-mark--sep {
	left: calc(100% / 12 * 8 + 100% / 24 - 0.4rem);
}

.cal-white {
	position: absolute;
	left: calc(100% / 12 * 5);
	width: calc(100% / 12 * 2);
	bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 1.8rem;
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	white-space: nowrap;
	color: var(--yellow);
}

.cal-white::before,
.cal-white::after {
	content: "";
	flex: 1;
	align-self: stretch;
	height: 50%;
	border-bottom: 1px solid var(--yellow);
}

.cal-white::before {
	border-left: 1px solid var(--yellow);
}

.cal-white::after {
	border-right: 1px solid var(--yellow);
}

.cal-note {
	margin: 1.6rem 0 0;
	font-family: var(--font-mono);
	font-size: 0.95rem;
}

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

.page-head h1 {
	margin: 0.3rem 0 0.5rem;
	padding-bottom: 0.6rem;
	font-size: clamp(2rem, 4vw, 3.2rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--accent);
}

.single .page-head h1 {
	max-width: 24em;
	font-size: clamp(1.8rem, 3.4vw, 2.7rem);
	text-transform: none;
}

.breadcrumbs {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

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

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

.entry-meta {
	font-family: var(--font-mono);
	font-size: 0.88rem;
	color: var(--muted);
}

.entry-meta a {
	color: var(--accent);
}

.site-main {
	overflow-x: clip;
	padding: 0.6rem 0 4rem;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	align-items: start;
	gap: 3rem;
}

.layout-single .content-area {
	max-width: 860px;
}

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

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

/* Лист записи — вырезка на миллиметровке */
.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	color: var(--ink);
	background: var(--card);
	box-shadow: var(--shadow);
}

.sheet::before {
	content: "";
	position: absolute;
	inset: 8px;
	border: 1px solid rgba(198, 162, 74, 0.6);
	pointer-events: none;
}

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

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

.entry-content {
	overflow-wrap: break-word;
}

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

.entry-content a {
	color: var(--accent);
	text-decoration: underline double;
}

.entry-content h2 {
	margin-top: 1.6em;
	padding-bottom: 0.3rem;
	font-size: 1.9rem;
	border-bottom: 2px solid var(--accent);
}

.entry-content h3 {
	margin-top: 1.4em;
	font-size: 1.45rem;
}

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

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

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

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

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.5em;
	top: 0.45em;
	width: 0.75em;
	height: 0.75em;
	border: 2px solid var(--ink);
	background: var(--lime);
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1rem 1.4rem;
	font-family: var(--font-mono);
	font-size: 0.98rem;
	background: rgba(221, 242, 71, 0.35);
	border-left: 4px solid var(--accent);
}

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

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

.entry-content td,
.entry-content th {
	padding: 0.55em 0.75em;
	text-align: left;
	border: 1px solid var(--grid);
}

.entry-content th {
	font-family: var(--font-mono);
	font-weight: 700;
	background: var(--paper);
}

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

.entry-content figcaption {
	margin-top: 0.4em;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.entry-content img {
	height: auto;
}

.entry-content code {
	padding: 0.1em 0.35em;
	font-family: var(--font-mono);
	font-size: 0.88em;
	background: var(--paper);
}

.entry-content pre {
	overflow-x: auto;
	padding: 1rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--on-dark);
	background: var(--graphite);
}

.entry-content pre code {
	padding: 0;
	background: none;
}

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

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	border-top: 1px solid var(--grid);
}

.entry-footer a {
	margin-left: 0.4em;
	color: var(--accent);
}

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

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

.post-nav a:hover {
	color: var(--on-dark);
	background: var(--ink);
}

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

.post-nav small {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	color: var(--accent);
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 400;
	line-height: 1.25;
}

.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.6rem;
	padding: 0.45rem 0.7rem;
	font-family: var(--font-mono);
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
}

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

.pager .page-numbers.current {
	color: var(--on-dark);
	background: var(--accent);
	border-color: var(--accent);
}

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

/* ---------- Сайдбар: тёмная вставка ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	color: var(--on-dark);
	background-color: var(--graphite);
	background-image:
		linear-gradient(rgba(242, 245, 247, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242, 245, 247, 0.07) 1px, transparent 1px);
	background-size: 28px 28px;
}

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

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	padding-bottom: 0.5rem;
	font-size: 1.5rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--accent);
}

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

.sidebar li {
	padding: 0.55rem 0;
	font-size: 0.95rem;
	line-height: 1.4;
	border-bottom: 1px dashed rgba(242, 245, 247, 0.22);
}

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

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

.sidebar .wp-block-latest-posts__post-date,
.sidebar .post-date {
	display: block;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: var(--on-dark-2);
}

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

.comments-title,
.comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.7rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

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

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

.comment-body {
	margin-bottom: 1rem;
	padding: 1rem 1.2rem;
	background: var(--card);
	border-left: 3px solid var(--accent);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1rem;
	margin-bottom: 0.4rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

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

.comment-wait {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--accent);
}

.comment-reply-link {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--accent);
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem;
	background: var(--card);
	border: 2px solid var(--ink);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
}

.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.6rem 0.8rem;
	font: inherit;
	font-size: 1rem;
	color: var(--ink);
	background: #fff;
	border: 2px solid var(--ink);
	border-radius: 0;
}

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

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	display: inline-block;
	padding: 0.65em 1.4em;
	font-family: var(--font-head);
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--on-dark);
	background: var(--accent);
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.comment-form input[type="submit"]:hover,
.search-form button:hover,
.cut-btn:hover,
.cookie-banner button:hover {
	color: var(--on-dark);
	background: var(--ink);
}

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

.search-form {
	display: flex;
	gap: 0.6rem;
	margin: 0 0 2rem;
}

.search-form label {
	flex: 1;
}

/* ---------- 404 ---------- */
.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(6rem, 18vw, 12rem);
	font-weight: 600;
	line-height: 0.9;
}

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

.lost p {
	font-family: var(--font-mono);
}

/* ---------- Подвал: махагон и латунная линия ---------- */
.site-footer {
	color: var(--on-dark);
	background: var(--mahogany);
	border-top: 2px solid var(--brass);
}

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

.footer-col {
	min-width: 0;
}

.footer-col:nth-child(2) {
	text-align: center;
}

.footer-col .widget-title {
	margin: 0 0 0.6rem;
	font-size: 1.6rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--brass);
}

.footer-col p {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--on-dark-2);
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
	line-height: 2;
}

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

.footer-col p a {
	color: var(--brass);
	text-decoration: underline;
}

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

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

/* ---------- Cookie ---------- */
.cookie-banner[hidden] {
	display: none;
}

.cookie-banner {
	position: fixed;
	right: 1.2rem;
	bottom: 1.2rem;
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 1rem;
	max-width: 560px;
	padding: 1rem 1.3rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--on-dark);
	background: var(--graphite);
	border-left: 4px solid var(--accent);
	box-shadow: var(--shadow);
}

.cookie-banner p {
	margin: 0;
}

/* ---------- Внутренние страницы: лист кальки ---------- */
.page-head h1 {
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--ink);
	border-bottom: 1.5px solid var(--ink);
}

.single .page-head h1 {
	text-transform: none;
	letter-spacing: 0.01em;
}

.breadcrumbs,
.entry-meta {
	color: var(--muted);
}

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

.breadcrumbs .sep,
.entry-meta a {
	color: var(--rust);
}

.sheet {
	background: var(--cream);
	border: 1.5px solid var(--ink);
	box-shadow: none;
}

.sheet::before {
	border: 0;
}

.entry-content a {
	color: var(--rust);
	text-decoration: underline;
}

.entry-content h2 {
	font-size: 2.1rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--ink);
}

.entry-content h3 {
	font-size: 1.6rem;
	font-weight: 500;
}

.entry-content ul > li::before {
	top: 0.55em;
	width: 0.55em;
	height: 0.55em;
	border: 1.5px solid var(--ink);
	background: transparent;
}

.entry-content ol > li::marker {
	color: var(--rust);
}

.entry-content blockquote {
	font-family: var(--font-mono);
	font-size: 0.95rem;
	background: var(--kalka);
	border-left: 3px solid var(--rust);
}

.entry-content th {
	background: var(--kalka);
}

.entry-content td,
.entry-content th {
	border-color: var(--ink);
}

.sidebar {
	color: var(--ink);
	background: var(--cream);
	background-image: none;
	border: 1.5px solid var(--ink);
}

.sidebar .widget-title {
	font-size: 1.5rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	border-bottom: 1px solid var(--ink);
}

.sidebar li {
	border-bottom: 1px dashed var(--grid);
}

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

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

.post-nav a,
.pager .page-numbers {
	background: var(--cream);
	border: 1.5px solid var(--ink);
	box-shadow: none;
}

.post-nav strong {
	font-size: 1.3rem;
	font-weight: 500;
}

.post-nav small {
	color: var(--rust);
}

.post-nav a:hover,
.pager a.page-numbers:hover {
	color: var(--cream);
	background: var(--ink);
}

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

.comment-respond {
	background: var(--cream);
	border: 1.5px solid var(--ink);
}

.comment-body {
	background: var(--cream);
	border-left-color: var(--rust);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	background: #F6F4EC;
	border: 1.5px solid var(--ink);
}

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--cream);
	background: var(--ink);
	border: 0;
	box-shadow: none;
}

.comment-form input[type="submit"]:hover,
.search-form button:hover,
.cut-btn:hover,
.cookie-banner button:hover {
	color: #FFFFFF;
	background: var(--rust);
}

.cookie-banner button {
	color: var(--ink);
	background: var(--cream);
}

.lost-code {
	font-weight: 500;
	color: var(--ink);
}

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

.site-footer {
	color: var(--cream);
	background: var(--night);
	border-top: 0;
}

.footer-col .widget-title {
	font-size: 1.9rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	color: var(--cream);
}

.footer-col:nth-child(2) {
	text-align: left;
}

.footer-col:nth-child(2) .widget-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.footer-col p,
.footer-col ul {
	font-family: var(--font-mono);
	font-size: 0.92rem;
}

.footer-col p {
	color: var(--on-dark-2);
}

.footer-col a {
	color: var(--cream);
	text-decoration: underline;
	text-underline-offset: 4px;
}

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

.copyright {
	font-family: var(--font-mono);
	font-size: 0.88rem;
	border-top-color: var(--brass-3);
}

.cookie-banner {
	color: var(--cream);
	background: var(--night);
	border: 1px solid var(--cream);
	border-left: 4px solid var(--rust);
	box-shadow: none;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.districts-grid,
	.cut-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.districts-text {
		max-width: 640px;
	}

	.legend {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 1.6rem;
	}

	.cut-figure {
		max-width: 1060px;
	}

	.cal-months span {
		font-size: 0.85rem;
		letter-spacing: 0.02em;
	}
}

@media (max-width: 959px) {
	.header-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

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

	.nav-toggle {
		display: inline-block;
	}

	.main-nav {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

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

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

	.main-nav a {
		border-bottom-color: transparent;
	}

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

	.feed--front .card:nth-child(n) {
		margin-top: 0;
	}

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

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

	/* Разрез: подписи уходят списком под рисунок */
	.cut-figure {
		padding: 0 0 4.4rem;
		counter-reset: cut;
	}

	.cut-drawing {
		padding-bottom: 0.4rem;
	}

	.cut-label {
		position: static;
		display: inline-block;
		width: auto;
		margin: 0.8rem 1.4rem 0 0;
		padding: 0;
		font-size: 1rem;
		text-align: left;
		transform: none;
	}

	.cut-label::before {
		content: "— ";
		color: var(--rust);
	}

	/* Три дня: вертикальная ветка */
	.route {
		height: auto;
		margin: 1.8rem 0 0;
	}

	.route-line {
		display: none;
	}

	.stops {
		margin-left: 0.7rem;
		padding-left: 1.6rem;
		border-left: 2px solid var(--ink);
	}

	.stop,
	.stop--2 {
		position: relative;
		top: auto;
		left: auto;
		align-items: flex-start;
		margin-bottom: 1.4rem;
		text-align: left;
		white-space: normal;
		transform: none;
	}

	.stop:last-child {
		margin-bottom: 0;
	}

	.stop::before,
	.stop--2::before {
		left: calc(-1.6rem - 1px);
		top: 1.45rem;
		margin: -11px 0 0 -11px;
	}

	/* Календарь: два ряда по шесть месяцев */
	.cal {
		padding: 0;
	}

	.cal-mark,
	.cal-white {
		display: none;
	}

	.cal-months {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		border-bottom: 0;
	}

	.cal-months li {
		height: auto;
		min-height: 64px;
		padding: 0.5rem 0.3rem;
		border-bottom: 1px solid var(--cream);
	}

	.cal-months span {
		position: static;
		display: block;
		font-size: 0.85rem;
		word-break: break-word;
	}

	.cal-months .is-white span {
		color: var(--ink);
	}

	.cal-months .is-velvet span {
		color: #E07A5A;
	}

	.cal-months .is-velvet::after {
		top: auto;
		bottom: 0.6rem;
		transform: translateX(-50%) rotate(45deg);
	}
}

@media (max-width: 640px) {
	body {
		font-size: 17px;
	}

	.shell {
		padding-left: 16px;
		padding-right: 16px;
	}

	.header-row {
		padding-top: 1.4rem;
		padding-bottom: 1.4rem;
	}

	.brand {
		gap: 0.8rem;
		align-items: flex-start;
	}

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

	.brand-name {
		font-size: 1.6rem;
	}

	.brand-desc {
		margin-top: 0.4rem;
		font-size: 0.9rem;
	}

	.front > section {
		padding: 2.8rem 0;
	}

	.sec-lead {
		font-size: 1.15rem;
	}

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

	.pin i {
		width: 28px;
		height: 28px;
		font-size: 0.9rem;
		border-width: 1.5px;
	}

	.pin {
		transform: translate(-50%, -14px);
	}

	.pin em {
		font-size: 0.72rem;
	}

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

	.card-title {
		font-size: 1.45rem;
	}

	.cal-months {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.sheet {
		padding: 1.6rem 1.1rem 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;
		flex-direction: column;
		align-items: flex-start;
	}
}

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

	* {
		transition: none !important;
	}
}
