/*
Theme Name: bigdaycatering-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: bdc
*/
/* ---------- Шрифты (локально, OFL / Apache 2.0) ---------- */
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/oswald-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/oswald-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: "Oswald";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/oswald-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: "Oswald";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/oswald-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Oswald";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/oswald-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Oswald";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/oswald-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: "Oswald";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/oswald-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+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: "Roboto Condensed";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-condensed-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-condensed-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Roboto Condensed";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Roboto Condensed";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-condensed-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+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: "Roboto Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-mono-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Roboto Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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;
}
@font-face {
	font-family: "Roboto Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-mono-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: "Roboto Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/roboto-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+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 {
	--graphite: #17181A;
	--grid: #2A2C2E;
	--footer: #121316;
	--mahogany: #121316;
	--on-dark: #F1EADB;
	--on-dark-2: #B9B3A5;
	--muted: #8E8A7E;
	--brass: #D8A73C;
	--brass-2: #E9C46E;
	--brass-3: #6E5A2C;
	--accent: #E0532F;
	--morocco: #E0532F;
	--morocco-2: #C4421F;
	--lime: #D8A73C;
	--paper: #E4D9C1;
	--paper-0: #F1EADB;
	--card: #EFE6D2;
	--ink: #24231F;
	--shadow: 0 14px 28px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
	--font-head: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--font-mono: "Roboto 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: 17px;
	line-height: 1.6;
	color: var(--on-dark);
	background-color: var(--graphite);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 24px 24px;
	background-position: -1px -1px;
}

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

img {
	height: auto;
}

a {
	color: var(--brass);
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0.01em;
}

.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(--ink);
	background: var(--card);
}

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

/* ---------- Шапка ---------- */
.site-header {
	padding-top: 1.6rem;
}

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

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.brand-desc {
	margin-top: 0.3rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--muted);
}

.nav-toggle {
	display: none;
	padding: 0.45rem 1rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--on-dark);
	background: transparent;
	border: 1px solid var(--brass);
	border-radius: 0;
	cursor: pointer;
}

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

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

.main-nav li {
	counter-increment: nav;
}

.main-nav a {
	position: relative;
	display: inline-block;
	padding: 0.3rem 0 0.4rem;
	font-family: var(--font-head);
	font-size: 1.02rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--on-dark);
}

.main-nav a::before {
	content: counter(nav, decimal-leading-zero);
	margin-right: 0.45em;
	font-family: var(--font-mono);
	font-size: 0.68rem;
	font-weight: 400;
	letter-spacing: 0;
	vertical-align: 0.35em;
	color: var(--brass);
}

.main-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--brass);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after,
.main-nav a[aria-current]::after {
	transform: scaleX(1);
}

/* Линейка под шапкой */
.ruler {
	height: 14px;
	border-top: 1px solid var(--brass);
	background-image:
		linear-gradient(90deg, var(--brass) 1px, transparent 1px),
		linear-gradient(90deg, rgba(216, 167, 60, 0.55) 1px, transparent 1px);
	background-size: 120px 14px, 12px 6px;
	background-repeat: repeat-x;
}

/* ---------- Подписи секций ---------- */
.zone-no {
	display: flex;
	align-items: center;
	gap: 0.8rem;
	margin: 0 0 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--brass);
}

.zone-no::after {
	content: "";
	flex: 0 0 64px;
	height: 1px;
	background: var(--brass);
}

.sec-title {
	margin: 0;
	font-size: clamp(2rem, 4vw, 3.1rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--on-dark);
}

.sec-sub {
	margin: 0.4rem 0 0;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--muted);
}

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

.more-link {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--brass);
	border-bottom: 1px solid var(--brass);
}

.more-link:hover {
	color: var(--brass-2);
}

/* ---------- Кнопка-бирка ---------- */
.btn-tag {
	position: relative;
	display: inline-block;
	padding: 0.45em 1em 0.45em 1.4em;
	font-family: var(--font-mono);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--paper-0);
	border: 1px solid var(--ink);
	transition: background 0.2s ease;
}

.btn-tag::before {
	content: "";
	position: absolute;
	left: 0.5em;
	top: 50%;
	width: 4px;
	height: 60%;
	background: var(--brass);
	transform: translateY(-50%);
}

.btn-tag:hover {
	background: #FFF8E6;
}

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

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

.front > section + section {
	border-top: 1px dashed rgba(216, 167, 60, 0.28);
}

/* План площадки */
.plan {
	padding-top: 3rem !important;
}

.plan-figure {
	margin: 2.2rem 0 0;
}

.plan-svg {
	display: block;
	width: 100%;
	height: auto;
}

.pl-wall {
	fill: none;
	stroke: var(--on-dark);
	stroke-width: 4;
}

.pl-wall2 {
	fill: none;
	stroke: var(--on-dark);
	stroke-width: 1;
	opacity: 0.55;
}

.pl-b {
	fill: rgba(216, 167, 60, 0.07);
	stroke: var(--brass);
	stroke-width: 2;
}

.pl-thin {
	fill: none;
	stroke-width: 1.2;
	stroke-dasharray: 5 4;
}

.pl-c {
	fill: none;
	stroke: var(--on-dark-2);
	stroke-width: 1.4;
}

.pl-t {
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	fill: var(--on-dark);
}

.pl-n {
	font-family: var(--font-mono);
	font-size: 15px;
	fill: var(--accent);
}

.zone-list {
	display: none;
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.92rem;
}

.zone-list b {
	margin-right: 0.5em;
	font-weight: 500;
	color: var(--accent);
}

/* Накладная — меню на 60 гостей */
.invoice-sheet {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 2rem 3.4rem;
	align-items: start;
	max-width: 1060px;
	margin: 0 auto;
	padding: 2.8rem 3rem 3rem;
	color: var(--ink);
	background: var(--card);
	box-shadow: var(--shadow);
	transform: rotate(-0.6deg);
}

.invoice-sheet::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(36, 35, 31, 0.25);
	pointer-events: none;
}

.invoice .zone-no {
	color: #8A6A1F;
}

.invoice .zone-no::after {
	background: #8A6A1F;
}

.invoice-text h2 {
	margin: 0 0 0.8rem;
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.invoice-text p {
	margin: 0;
	font-size: 1.1rem;
	color: #4A4740;
}

.invoice-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-mono);
	font-size: 0.95rem;
}

.invoice-table th {
	padding: 0 0.6rem 0.7rem 0;
	font-size: 0.74rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-align: left;
	text-transform: uppercase;
	color: #6B665A;
	border-bottom: 2px solid var(--ink);
}

.invoice-table td {
	padding: 0.8rem 0.6rem 0.8rem 0;
	border-bottom: 1px dashed rgba(36, 35, 31, 0.4);
}

.invoice-table td:first-child {
	font-family: var(--font-body);
	font-size: 1.05rem;
}

.invoice-table th:not(:first-child),
.invoice-table td:not(:first-child) {
	text-align: right;
	white-space: nowrap;
}

.invoice-table td:last-child {
	font-weight: 500;
	color: var(--accent);
}

.paperclip,
.clip {
	position: absolute;
	width: 20px;
	height: 52px;
	fill: none;
	stroke: var(--brass);
	stroke-width: 2.2;
	stroke-linecap: round;
	filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, 0.35));
}

.paperclip--top {
	top: -16px;
	right: 72px;
	transform: rotate(8deg);
}

.paperclip--side {
	top: 40px;
	left: -9px;
	transform: rotate(-90deg);
}

/* Последние записи — скреплённые карточки */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 3rem 2.2rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 12px 12px 0;
	color: var(--ink);
	background: var(--card);
	box-shadow: var(--shadow);
	transition: transform 0.25s ease;
}

.feed--front .card:nth-child(1) {
	transform: rotate(-1.2deg);
}

.feed--front .card:nth-child(2) {
	transform: rotate(0.8deg) translateY(10px);
}

.feed--front .card:nth-child(3) {
	transform: rotate(-0.5deg);
}

.feed--front .card:hover {
	transform: rotate(0) translateY(-4px);
}

.card .clip {
	top: -18px;
	left: 28px;
	z-index: 2;
	transform: rotate(-6deg);
}

.card-thumb {
	display: block;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: var(--paper);
}

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

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.1rem 0.5rem 1.2rem;
}

.card-title {
	margin: 0 0 0.6rem;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.2;
}

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

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

.card-excerpt {
	flex: 1;
	font-size: 0.98rem;
	line-height: 1.5;
	color: #4A4740;
}

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

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	padding-top: 0.8rem;
	border-top: 1px dashed rgba(36, 35, 31, 0.35);
}

.card-date {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	color: #6B665A;
}

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

/* Анатомия фуршета */
.buffet-grid {
	display: grid;
	grid-template-columns: 80px minmax(0, 1fr);
	gap: 2rem;
	align-items: stretch;
}

.buffet-title {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0;
	font-size: clamp(1.8rem, 2.6vw, 2.4rem);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.buffet-title span {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	color: var(--brass);
}

.buffet-figure {
	position: relative;
	margin: 0;
	padding: 0 220px 0 190px;
}

.buffet-photo {
	position: relative;
	padding: 10px;
	background: linear-gradient(135deg, #E9C46E, #A57A22 45%, #E2B85A 70%, #8C6619);
	box-shadow: var(--shadow);
}

.buffet-photo img {
	display: block;
	width: 100%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

.buffet-figure figcaption {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

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

.callout {
	position: absolute;
	top: var(--y);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 210px;
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	transform: translateY(-50%);
}

.callout b {
	font-family: var(--font-mono);
	font-size: 0.8rem;
	font-weight: 500;
	color: var(--accent);
}

.callout::before {
	content: "";
	flex: 0 0 34px;
	height: 1px;
	background: var(--brass);
	box-shadow: -4px 0 0 0 var(--brass);
}

.callout--right {
	right: 0;
}

.callout--left {
	left: 0;
	flex-direction: row-reverse;
	justify-content: flex-end;
	width: 180px;
	text-align: right;
}

/* Сезонная шкала */
.scale {
	position: relative;
	margin: 3.2rem 0 1.4rem;
	padding: 4.6rem 0 4.6rem;
}

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

.scale-months li {
	position: relative;
	padding-top: 0.9rem;
	font-family: var(--font-mono);
	font-size: 0.78rem;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	color: var(--muted);
}

.scale-months li::before {
	content: "";
	position: absolute;
	top: -2px;
	left: 50%;
	width: 1px;
	height: 12px;
	background: var(--brass);
}

.scale-marks {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
}

.scale-marks li {
	position: absolute;
	top: 4.6rem;
	left: calc((var(--m) - 0.5) / 12 * 100%);
	font-family: var(--font-body);
	font-size: 1rem;
	white-space: nowrap;
	color: var(--on-dark-2);
	transform: translateX(-50%);
}

.scale-marks li::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -6px;
	width: 13px;
	height: 13px;
	margin-left: -6.5px;
	background: var(--accent);
	border: 2px solid var(--graphite);
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--accent);
}

.scale-marks li::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 1px;
	background: rgba(216, 167, 60, 0.6);
}

.scale-marks .is-high {
	transform: translate(-50%, calc(-100% - 2.2rem));
}

.scale-marks .is-high::before {
	top: auto;
	bottom: calc(-2.2rem - 6px);
}

.scale-marks .is-high::after {
	top: 100%;
	height: 2.2rem;
}

.scale-marks .is-low {
	transform: translate(-50%, 3.2rem);
}

.scale-marks .is-low::before {
	top: calc(-3.2rem - 6px);
}

.scale-marks .is-low::after {
	bottom: 100%;
	height: 1rem;
}

.scale-marks li:last-child {
	transform: translate(-82%, 3.2rem);
}

.scale-marks li:last-child::before,
.scale-marks li:last-child::after {
	left: 82%;
}

.scale-marks b {
	font-family: var(--font-head);
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--on-dark);
}

.scale-note {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(1.4rem, 2.6vw, 2rem);
	font-weight: 400;
	letter-spacing: 0.06em;
	text-align: center;
	text-transform: uppercase;
	color: var(--brass);
}

/* ---------- Внутренние страницы ---------- */
.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: 600;
	letter-spacing: 0.04em;
	color: var(--on-dark);
	border-bottom: 1px solid var(--brass);
}

.single .page-head h1 {
	color: var(--on-dark);
}

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

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

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

.sheet::before {
	border-color: rgba(36, 35, 31, 0.22);
}

.entry-content a {
	color: #B23B1C;
	text-decoration: underline;
}

.entry-content h2 {
	font-size: 2rem;
	border-bottom: 1px solid var(--ink);
}

.entry-content ul > li::before {
	top: 0.6em;
	width: 0.45em;
	height: 0.45em;
	border: 0;
	background: var(--accent);
	transform: rotate(45deg);
}

.entry-content blockquote {
	font-family: var(--font-body);
	font-size: 1.05rem;
	background: rgba(216, 167, 60, 0.18);
	border-left-color: var(--brass);
}

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

.entry-content td,
.entry-content th {
	border-color: rgba(36, 35, 31, 0.3);
}

.sidebar {
	background-color: var(--footer);
	border: 1px solid var(--brass-3);
}

.sidebar .widget-title {
	font-size: 1.4rem;
	border-bottom: 1px solid var(--brass);
}

.sidebar li {
	border-bottom: 1px dashed rgba(216, 167, 60, 0.28);
}

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

.post-nav a,
.pager .page-numbers {
	border: 1px solid var(--ink);
}

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

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

.comment-respond {
	color: var(--ink);
	border: 1px solid var(--ink);
}

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

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

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

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

.lost-code {
	color: var(--on-dark);
}

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

.site-footer {
	background: var(--footer);
	border-top: 1px solid var(--brass);
}

.footer-col .widget-title {
	font-size: 1.4rem;
}

.copyright {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	border-top-color: var(--grid);
}

.cookie-banner {
	background: var(--footer);
	border: 1px solid var(--brass);
	border-left-width: 4px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.buffet-figure {
		padding: 0 190px 0 160px;
	}

	.callout {
		width: 180px;
		font-size: 0.95rem;
	}

	.callout--left {
		width: 150px;
	}
}

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

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

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

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

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

	/* Фуршет: подписи уходят списком под фото */
	.buffet-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.buffet-title {
		writing-mode: horizontal-tb;
		transform: none;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.4rem;
		white-space: normal;
	}

	.buffet-figure {
		padding: 0;
	}

	.buffet-figure figcaption {
		position: static;
	}

	.callouts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1.6rem;
		margin-top: 1.4rem;
	}

	.callout,
	.callout--left {
		position: static;
		flex-direction: row;
		justify-content: flex-start;
		width: auto;
		text-align: left;
		transform: none;
	}

	.callout::before {
		flex-basis: 18px;
	}
}

@media (max-width: 720px) {
	.plan-svg {
		display: none;
	}

	.plan-figure {
		margin-top: 1.4rem;
		padding: 1.2rem;
		border: 1px solid var(--brass);
	}

	.zone-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1rem;
		margin: 0;
	}

	/* Шкала становится вертикальным списком */
	.scale {
		padding: 0;
		margin: 2rem 0 1.4rem;
	}

	.scale-months {
		display: none;
	}

	.scale-marks {
		position: static;
		padding-left: 1.4rem;
		border-left: 2px solid var(--brass);
	}

	.scale-marks li,
	.scale-marks .is-high,
	.scale-marks .is-low {
		position: relative;
		top: auto;
		left: auto;
		padding: 0.5rem 0;
		white-space: normal;
		transform: none;
	}

	.scale-marks li::before,
	.scale-marks .is-high::before,
	.scale-marks .is-low::before {
		top: 50%;
		bottom: auto;
		left: calc(-1.4rem - 1px);
		margin: -6.5px 0 0 -6.5px;
	}

	.scale-marks li::after {
		display: none;
	}

	.scale-marks li:last-child {
		transform: none;
	}

	.scale-marks li:last-child::before {
		left: calc(-1.4rem - 1px);
	}
}

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

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

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

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

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

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

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

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

	.invoice-sheet {
		padding: 2rem 1.2rem 1.8rem;
		transform: none;
	}

	.invoice-table {
		font-size: 0.85rem;
	}

	.invoice-table td:first-child {
		font-size: 0.95rem;
	}

	.paperclip--top {
		right: 30px;
	}

	.paperclip--side {
		display: none;
	}

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

	.zone-list {
		grid-template-columns: 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;
	}
}
