/*
Theme Name: alcopushkino-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: push
*/
/* ---------- Шрифты (локально, OFL) ---------- */
@font-face {
	font-family: "Noto Serif Display";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62.5% 100%;
	font-display: swap;
	src: url("fonts/noto-serif-display-cyrillic-standard-normal.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
	font-family: "Noto Serif Display";
	font-style: normal;
	font-weight: 100 900;
	font-stretch: 62.5% 100%;
	font-display: swap;
	src: url("fonts/noto-serif-display-latin-standard-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: "PT Sans Narrow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-narrow-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
	font-family: "PT Sans Narrow";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-narrow-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: "PT Sans Narrow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-sans-narrow-cyrillic-700-normal.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
	font-family: "PT Sans Narrow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-sans-narrow-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;
}
/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #1B2A22;
	--deep: #101A14;
	--oxblood: #3A1017;
	--panel: #101A14;
	--paper: #E9DCC0;
	--ink: #2A2118;
	--faded: #8A7659;
	--text: #EFE3C8;
	--muted: #A89C80;
	--orange: #C9A227;
	--yellow: #C9A227;
	--wine: #8C2F2A;
	--line: rgba(201, 162, 39, 0.55);
	--footer: #3A1017;
	--font-head: "Noto Serif Display", "Times New Roman", serif;
	--font-body: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
	--font-mono: "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
	--bricks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='44'%3E%3Cg fill='none' stroke='rgba(239,227,200,0.055)' stroke-width='1.5'%3E%3Cpath d='M0 .75H96M0 22.75H96M48 0v22M0 22v22M96 22v22'/%3E%3C/g%3E%3C/svg%3E");
	--paper-tex: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%), radial-gradient(ellipse at 90% 100%, rgba(120, 90, 40, 0.16), transparent 55%);
	--cut: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
	--cut-sm: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
}

/* ---------- База ---------- */
*,
*::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: 19px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg) var(--bricks);
	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: 500;
	font-stretch: 75%;
	line-height: 1.1;
	letter-spacing: 0.03em;
	margin: 1.3em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

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

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

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

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

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

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

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

/* ---------- Кнопка: бумажный ярлык со срезанными углами ---------- */
.tag-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.42em 1.7em 0.38em;
	font-family: var(--font-mono);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: linear-gradient(180deg, #E3C25A, #C9A227 55%, #A8861C);
	border: 0;
	border-radius: 0;
	clip-path: var(--cut-sm);
	cursor: pointer;
	transition: filter 0.15s;
}

.tag-btn:hover,
.tag-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: var(--ink);
	filter: brightness(1.12);
}

/* ---------- Шапка ---------- */
.site-header {
	padding: 1.6rem 0 1.4rem;
	border-bottom: 1px solid var(--yellow);
}

.header-grid {
	display: grid;
	grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
	gap: 1.4rem 3rem;
	align-items: center;
}

.brand-pic {
	display: block;
}

.brand-mark,
.brand-logo {
	display: block;
	width: 100%;
	max-width: 440px;
	height: auto;
}

.nav-row {
	display: flex;
	justify-content: flex-end;
	margin-bottom: clamp(1.4rem, 4vw, 3.4rem);
}

.main-nav {
	border-bottom: 1px solid var(--yellow);
	padding-bottom: 0.7rem;
}

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

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

.main-nav a {
	display: inline-block;
	padding: 0 1.1em;
	font-family: var(--font-mono);
	font-size: clamp(1rem, 1.4vw, 1.3rem);
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
}

.main-nav li:last-child a {
	padding-right: 0;
}

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

.brand {
	display: block;
	text-decoration: none;
	color: var(--text);
}

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

.brand-name {
	display: block;
	font-family: var(--font-head);
	font-size: clamp(2rem, 5.4vw, 5.6rem);
	font-weight: 500;
	font-stretch: 72%;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--paper);
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.brand-desc {
	display: block;
	margin-top: 0.9rem;
	font-size: clamp(1rem, 1.7vw, 1.6rem);
	line-height: 1.3;
	color: var(--text);
}

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

/* ---------- Заголовки блоков ---------- */
.big-title {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding-bottom: 0.3rem;
	font-size: clamp(2rem, 4.6vw, 4.4rem);
	font-weight: 500;
	font-stretch: 72%;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--yellow);
	hyphens: none;
	overflow-wrap: normal;
}

.big-title--center {
	display: table;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.sub {
	margin: 0.4rem 0 0;
	font-size: clamp(1.1rem, 1.6vw, 1.5rem);
	line-height: 1.3;
}

/* ---------- Блоки 1 и 2: бумага и тёмная ниша ---------- */
.split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.registry,
.anatomy {
	padding: clamp(2.2rem, 4.5vw, 4rem) clamp(1rem, 5vw, 5.5rem);
}

.registry {
	padding-left: 7.5vw;
	color: var(--ink);
	background: var(--paper-tex), var(--paper);
}

.registry .big-title,
.anatomy .big-title,
.punch .big-title {
	font-size: clamp(2rem, 3.6vw, 3.6rem);
}

.registry .big-title {
	color: var(--ink);
	border-bottom-color: transparent;
}

.registry-list {
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
}

.registry-list li {
	display: grid;
	grid-template-columns: 3.2rem minmax(0, 1fr) 4.4rem;
	gap: 0.8rem;
	align-items: center;
	padding: 0.55rem 0;
	border-bottom: 1px solid rgba(138, 118, 89, 0.7);
}

.reg-num {
	font-family: var(--font-head);
	font-size: 2.3rem;
	font-stretch: 75%;
	line-height: 1;
	color: #B08C1E;
}

.reg-text {
	font-size: clamp(1.05rem, 1.4vw, 1.3rem);
	line-height: 1.3;
}

.reg-icon {
	justify-self: center;
	width: auto;
	max-height: 56px;
}

.anatomy {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
	gap: 1.5rem 2.5rem;
	align-items: center;
	padding-right: 7.5vw;
	background: var(--deep) var(--bricks);
}

.anatomy .big-title {
	color: var(--paper);
	border-bottom-color: transparent;
}

.anatomy-list {
	margin: 2.4rem 0 0;
	padding: 0;
	list-style: none;
	font-size: clamp(1.2rem, 1.7vw, 1.6rem);
	line-height: 2;
}

.anatomy-list span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	font-size: 0.85em;
	line-height: 1;
	color: var(--ink);
	background: var(--yellow);
	border-radius: 50%;
}

.anatomy-pic {
	position: relative;
	margin: 0;
	max-width: 300px;
	justify-self: center;
}

.anatomy-pic img {
	display: block;
	width: 100%;
}

.mark {
	position: absolute;
	transform: translate(-50%, -50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.7rem;
	height: 1.7rem;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	background: var(--yellow);
	border: 2px solid var(--paper);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

/* ---------- Блок 3: последние записи на оксбладе ---------- */
.front > section {
	padding: clamp(2.4rem, 5vw, 4.2rem) 0;
}

.latest {
	background: var(--oxblood);
	border-top: 1px solid var(--yellow);
	border-bottom: 1px solid var(--yellow);
}

.latest .big-title {
	color: var(--yellow);
	border-bottom-color: transparent;
	margin-bottom: 2rem;
}

.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.2rem, 2.6vw, 2.6rem);
}

/* ---------- Карточка: этикетка в латунной рамке ---------- */
.card {
	padding: 3px;
	background: linear-gradient(135deg, #E3C25A, #A8861C 50%, #E3C25A);
	clip-path: var(--cut);
}

.card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 1.4rem 1.5rem 1.4rem;
	color: var(--ink);
	background: var(--paper-tex), #F1E7CF;
	clip-path: var(--cut);
	box-shadow: inset 0 0 0 5px #F1E7CF, inset 0 0 0 6px rgba(201, 162, 39, 0.7);
}

.card-head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 1rem;
	flex: 1;
}

.card-thumb {
	display: block;
	align-self: start;
}

.card-thumb img {
	display: block;
	width: auto;
	max-width: 110px;
	max-height: 130px;
	mix-blend-mode: multiply;
}

.card-thumb--photo img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	mix-blend-mode: normal;
	filter: sepia(0.35);
	border: 1px solid var(--faded);
}

.card-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-body);
	font-size: clamp(1.35rem, 1.9vw, 1.9rem);
	font-weight: 400;
	font-stretch: normal;
	letter-spacing: 0;
	line-height: 1.1;
	color: var(--ink);
	hyphens: none;
	overflow-wrap: normal;
}

.card-title a {
	color: inherit;
	text-decoration: none;
}

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

.card-excerpt {
	font-size: 1.05rem;
	line-height: 1.3;
}

.card-excerpt p {
	margin: 0;
}

.card-date {
	display: block;
	margin-top: 0.5rem;
	font-size: 1rem;
	color: var(--faded);
}

.card .tag-btn {
	align-self: center;
	margin-top: 1rem;
}

.feed-more {
	margin: 2.4rem 0 0;
	text-align: center;
}

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

/* ---------- Блок 4: лента лет ---------- */
.years {
	background: var(--deep);
}

.years .big-title {
	color: var(--paper);
	border-bottom-color: transparent;
	margin-bottom: 1.6rem;
}

.timeline {
	position: relative;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.timeline::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 140px;
	height: 2px;
	background: var(--yellow);
}

.timeline::after {
	content: "";
	position: absolute;
	left: -5px;
	right: -5px;
	top: 136px;
	height: 10px;
	background:
		radial-gradient(circle, var(--yellow) 4px, transparent 5px) left center / 10px 10px no-repeat,
		radial-gradient(circle, var(--yellow) 4px, transparent 5px) right center / 10px 10px no-repeat;
}

.timeline li {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.tl-pic {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	height: 120px;
}

.tl-pic img {
	display: block;
	width: auto;
	max-height: 116px;
}

.tl-dot {
	position: relative;
	z-index: 1;
	width: 22px;
	height: 22px;
	margin: 9px 0 14px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #F0D77A, #C9A227 55%, #8A6D12);
	box-shadow: 0 0 0 3px var(--deep);
}

.tl-text {
	max-width: 13em;
	font-size: clamp(1rem, 1.45vw, 1.35rem);
	line-height: 1.3;
}

.tl-text b {
	display: block;
	font-weight: 400;
}

/* ---------- Блок 5: пушкинский пунш ---------- */
.punch {
	color: var(--ink);
	background: var(--paper-tex), var(--paper);
}

.punch-row {
	display: grid;
	grid-template-columns: minmax(0, 30fr) minmax(0, 70fr);
	gap: 2rem 3rem;
	align-items: center;
}

.punch .big-title {
	color: var(--ink);
	border-bottom-color: transparent;
}

.punch-card {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 0.55fr);
	gap: 1.2rem;
	align-items: center;
	padding: 3.2rem 2rem 2rem;
	background: var(--paper-tex), #F3EBD6;
	clip-path: var(--cut);
	box-shadow: inset 0 0 0 1px #8A7659, inset 0 0 0 8px #F3EBD6, inset 0 0 0 9px rgba(201, 162, 39, 0.8);
}

.seal {
	position: absolute;
	left: 50%;
	top: -2px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 72px;
	background: radial-gradient(circle at 40% 35%, #A63A35, #8C2F2A 50%, #5E1A18);
	border-radius: 0 0 48% 52% / 0 0 55% 55%;
	box-shadow: 0 3px 6px rgba(58, 16, 23, 0.4);
}

.seal svg {
	width: 34px;
	height: 34px;
	opacity: 0.8;
}

.punch-lemon,
.punch-jug {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

.punch-list {
	margin: 0;
	padding: 0 0 0 1.2rem;
	list-style: none;
	font-size: clamp(1.15rem, 1.6vw, 1.5rem);
	line-height: 1.4;
	border-left: 1px solid var(--faded);
}

.punch-dial {
	display: block;
	width: 100%;
	height: auto;
}

.punch-dial text {
	font-family: var(--font-body);
	font-size: 12px;
	fill: var(--ink);
}

.punch-jug {
	max-width: 130px;
	justify-self: center;
}
/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.6rem 0 1.4rem;
}

.page-head h1 {
	display: inline-block;
	margin: 0.8rem 0 0;
	padding-bottom: 0.25rem;
	font-size: clamp(1.9rem, 4vw, 3.2rem);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border-bottom: 3px solid var(--orange);
	color: var(--paper);
}

.single .page-head h1 {
	font-size: clamp(2rem, 3.6vw, 3rem);
	letter-spacing: 0.02em;
}

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

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

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

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

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

.layout-single {
	display: block;
}

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

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

.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	color: var(--ink);
	background: var(--paper-tex), var(--paper);
	border: 0;
	clip-path: var(--cut);
}

.layout-single .sheet {
	max-width: 960px;
}

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

.entry-meta a {
	color: inherit;
}

.entry-thumb {
	margin: 0 0 1.8rem;
	border: 1.5px solid var(--line);
}

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

.entry-content {
	font-size: 1.1rem;
	line-height: 1.75;
	hyphens: auto;
}

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

.entry-content a {
	color: #E3C25A;
}

.entry-content h2 {
	font-size: 2.1rem;
	letter-spacing: 0.02em;
	color: var(--orange);
}

.entry-content h3 {
	font-size: 1.65rem;
	color: var(--orange);
}

.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.25em;
	top: 0.6em;
	width: 0.42em;
	height: 0.42em;
	background: var(--orange);
	transform: rotate(45deg);
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-head);
	font-stretch: 80%;
	font-size: 1.5rem;
	line-height: 1.35;
	background: rgba(201, 162, 39, 0.12);
	border-left: 3px solid var(--wine);
}

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

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

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

.entry-content th {
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--orange);
}

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

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

.entry-content img {
	display: block;
}

.entry-content pre,
.entry-content code {
	font-family: Consolas, "DejaVu Sans Mono", "Courier New", monospace;
	font-size: 0.88em;
	background: rgba(0, 0, 0, 0.25);
}

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

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.95rem;
	border-top: 1px solid var(--line);
}

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

.layout-with-sidebar .post-nav {
	max-width: none;
}

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

.post-nav a:hover {
	background: #22322A;
}

.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.35rem;
	font-weight: 400;
	color: var(--paper);
}

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

.pager .page-numbers {
	display: inline-block;
	min-width: 2.6em;
	padding: 0.45em 0.8em;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--orange);
	background: var(--panel);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	color: #E3C25A;
}

.pager .page-numbers.current {
	color: var(--bg);
	background: var(--orange);
}

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

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

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

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.6rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--orange);
}

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

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

.sidebar a {
	text-decoration: none;
}

.sidebar a:hover {
	color: #E3C25A;
}

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

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

.comments-title,
.comment-reply-title {
	font-size: 1.9rem;
	margin: 0 0 1rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--orange);
}

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

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

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

.comment-wait {
	font-size: 0.92rem;
	color: var(--yellow);
}

.comment-reply-link {
	font-size: 0.9rem;
	color: #E3C25A;
}

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

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.92rem;
	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.6rem 0.8rem;
	font: inherit;
	font-size: 1rem;
	color: var(--paper);
	background: var(--bg);
	border: 1px solid var(--line);
	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(6rem, 18vw, 12rem);
	font-stretch: 70%;
	line-height: 0.9;
	color: var(--orange);
}

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

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

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

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

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

.footer-col {
	min-width: 0;
	font-size: 1.1rem;
	line-height: 1.45;
}

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

.footer-col .widget-title {
	margin: 0 0 0.6rem;
	font-size: 2rem;
	color: var(--paper);
}

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

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

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

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

.footer-col a:hover,
.footer-col a:focus-visible {
	color: #E3C25A;
	text-decoration: underline;
}

.copyright {
	margin: 0;
	padding: 0.6rem 0 2rem;
	font-size: 1rem;
	text-align: center;
	color: var(--paper);
}

/* ---------- 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;
	background: var(--panel);
	border: 1px solid var(--line);
}

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

/* ---------- Запись на бумажном листе ---------- */
.sheet .entry-content a {
	color: var(--wine);
	text-decoration-color: rgba(140, 47, 42, 0.5);
}

.sheet .entry-content h2,
.sheet .entry-content h3,
.sheet .entry-content h4 {
	color: var(--ink);
}

.sheet .entry-content h2 {
	padding-bottom: 0.2em;
	border-bottom: 1px solid var(--yellow);
}

.sheet .entry-content th {
	color: var(--wine);
}

.sheet .entry-content th,
.sheet .entry-content td {
	border-bottom-color: rgba(138, 118, 89, 0.6);
}

.sheet .entry-content ul > li::before {
	background: var(--wine);
}

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

.sheet .entry-content figcaption,
.sheet .entry-footer {
	color: var(--faded);
}

.sheet .entry-footer {
	border-top-color: rgba(138, 118, 89, 0.6);
}

.sheet .entry-footer a {
	color: var(--wine);
}

.sheet .pager .page-numbers {
	background: transparent;
}

/* ---------- Лента записей на внутренних страницах ---------- */
.layout-with-sidebar .feed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-head h1 {
	font-stretch: 72%;
	letter-spacing: 0.04em;
	border-bottom-width: 1px;
	color: var(--paper);
}

.sidebar,
.comment-respond,
.post-nav a,
.comment-body,
.pager .page-numbers {
	background: rgba(16, 26, 20, 0.85);
}

.sidebar .widget-title,
.comments-title,
.comment-reply-title {
	font-stretch: 75%;
	color: var(--yellow);
}

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

.cookie-banner {
	background: var(--deep);
	border: 1px solid var(--yellow);
}

/* ---------- Подвал на оксбладе ---------- */
.site-footer {
	background: var(--oxblood);
	border-top: 1px solid var(--yellow);
}

.footer-cols {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
	padding: 2.8rem 0 1.8rem;
}

.footer-col {
	font-size: 1.2rem;
	line-height: 1.3;
}

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

.footer-col .widget-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-body);
	font-size: 1.75rem;
	font-weight: 400;
	font-stretch: normal;
	letter-spacing: 0;
	color: var(--paper);
}

.footer-col:nth-child(2) ul {
	padding-left: 1.4rem;
	border-left: 1px solid var(--yellow);
}

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

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

.copyright {
	padding: 1.1rem 0 2rem;
	font-size: 1.1rem;
	color: var(--paper);
	border-top: 1px solid var(--yellow);
}

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

	.registry,
	.anatomy {
		padding-left: 4%;
		padding-right: 4%;
	}

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

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

	.brand-pic {
		max-width: 240px;
	}

	.header-main {
		display: flex;
		flex-direction: column-reverse;
		gap: 1rem;
	}

	.nav-row {
		flex-direction: column;
		align-items: flex-start;
		margin: 0;
	}

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

	.main-nav {
		width: 100%;
		margin-top: 0.6rem;
		border-bottom: 0;
	}

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

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

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

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

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

	.timeline {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 1.6rem;
		padding-left: 2.2rem;
	}

	.timeline::before {
		left: 10px;
		right: auto;
		top: 0;
		bottom: 0;
		width: 2px;
		height: auto;
	}

	.timeline::after {
		display: none;
	}

	.timeline li {
		display: grid;
		grid-template-columns: 90px minmax(0, 1fr);
		gap: 1rem;
		align-items: center;
		text-align: left;
	}

	.tl-pic {
		height: auto;
	}

	.tl-pic img {
		max-height: 80px;
	}

	.tl-dot {
		position: absolute;
		left: calc(-2.2rem - 0px);
		top: 50%;
		margin: -11px 0 0;
	}

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

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

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

	.registry-list li {
		grid-template-columns: 2.4rem minmax(0, 1fr) 3rem;
		gap: 0.6rem;
	}

	.reg-num {
		font-size: 1.8rem;
	}

	.reg-icon {
		max-height: 42px;
	}

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

	.anatomy-list {
		margin-top: 1.2rem;
	}

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

	.card-thumb img {
		max-width: 80px;
		max-height: 100px;
	}

	.punch-card {
		padding: 3.6rem 1.2rem 1.6rem;
		gap: 1rem;
	}

	.sheet {
		padding: 1.6rem 1.2rem 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;
	}
}

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

	* {
		transition: none !important;
	}
}
