/*
Theme Name: alcolyubertsy-ru
Author: adm_qphlbx
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: alco
*/
/* ---------- Шрифты (локально, 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 Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-serif-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
	font-family: "PT Serif";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-serif-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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 Serif";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-serif-cyrillic-700-normal.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
	font-family: "PT Serif";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-serif-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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 Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-serif-cyrillic-400-italic.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
	font-family: "PT Serif";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-serif-latin-400-italic.woff2") format("woff2");
	unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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 Caption";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-caption-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 Caption";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-caption-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: "Caveat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/caveat-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: "Caveat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/caveat-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;
}
/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #101511;
	--panel: #0B0E0B;
	--wood: #241A12;
	--paper: #E7D7B6;
	--text: #EFE6D2;
	--muted: #948B74;
	--orange: #C2762E;
	--wine: #7A1F2B;
	--yellow: #B08D57;
	--line: #8A5A2B;
	--footer: #0B0E0B;
	--font-head: "Noto Serif Display", "Times New Roman", serif;
	--font-body: "PT Serif", Georgia, "Times New Roman", serif;
	--font-mono: "PT Sans Caption", "Trebuchet MS", Arial, sans-serif;
	--font-hand: "Caveat", "Segoe Script", cursive;
	--oak: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.016) 0 2px, transparent 2px 7px, rgba(0, 0, 0, 0.16) 7px 8px, transparent 8px 13px);
	--torn: polygon(0 0, 100% 0, 100% calc(100% - 9px), 95.7% calc(100% - 5px), 92.1% calc(100% - 0px), 87.4% calc(100% - 6px), 83.6% calc(100% - 12px), 79.7% calc(100% - 6px), 76.2% calc(100% - 2px), 72.9% calc(100% - 2px), 68.6% calc(100% - 6px), 65.2% calc(100% - 12px), 60.6% calc(100% - 8px), 58.0% calc(100% - 12px), 54.9% calc(100% - 12px), 50.2% calc(100% - 0px), 47.3% calc(100% - 0px), 42.4% calc(100% - 5px), 38.0% calc(100% - 5px), 34.7% calc(100% - 12px), 30.3% calc(100% - 5px), 26.0% calc(100% - 12px), 23.4% calc(100% - 3px), 18.3% calc(100% - 2px), 15.5% calc(100% - 12px), 10.8% calc(100% - 6px), 7.5% calc(100% - 3px), 3.8% calc(100% - 1px), 0 calc(100% - 7px));
}

/* ---------- База ---------- */
*,
*::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: 18px;
	line-height: 1.65;
	color: var(--text);
	background-color: var(--bg);
	background-image: var(--oak);
	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: 600;
	font-stretch: 75%;
	line-height: 1.08;
	letter-spacing: 0.01em;
	margin: 1.3em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

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

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

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

.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.45em 1.5em 0.4em;
	font-family: var(--font-mono);
	font-size: 0.92rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	color: #2A1708;
	background: linear-gradient(180deg, #D99A62, #C2762E 55%, #9C5A1F);
	border: 1px solid #7A4718;
	border-radius: 0;
	box-shadow: inset 0 1px 0 rgba(255, 233, 204, 0.5);
	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: #2A1708;
	filter: brightness(1.13);
}

/* ---------- Шапка: дубовая балка с латунным поручнем ---------- */
.site-header {
	padding-top: 1.6rem;
	background: #1C1309 var(--oak);
	border-bottom: 1px solid #0A0703;
}

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem 2.5rem;
	padding-bottom: 1.5rem;
}

.brass-rail {
	height: 14px;
	margin-bottom: 1.1rem;
	background: linear-gradient(180deg, #8A6B35, #D8BA7C 35%, #C7A362 55%, #7A5C2A);
	border-radius: 7px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.45);
}

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

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.7rem, 3.6vw, 3.1rem);
	font-weight: 500;
	font-stretch: 85%;
	line-height: 1.05;
	color: var(--paper);
	overflow-wrap: anywhere;
}

.brand-desc {
	margin-top: 0.4rem;
	max-width: 34rem;
	font-size: clamp(0.88rem, 1.2vw, 1.05rem);
	line-height: 1.35;
	color: var(--paper);
}

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

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

.main-nav a {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: clamp(0.85rem, 1.1vw, 1.02rem);
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--paper);
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--orange);
	border-bottom: 1px solid var(--orange);
}

/* ---------- Заголовки блоков ---------- */
.big-title {
	margin: 0 0 0.6rem;
	font-size: clamp(2rem, 4.4vw, 4rem);
	font-weight: 600;
	font-stretch: 68%;
	line-height: 0.98;
	letter-spacing: 0.005em;
	text-transform: uppercase;
	color: var(--paper);
	hyphens: none;
	overflow-wrap: normal;
}

.lead {
	margin: 0;
	font-size: clamp(1.05rem, 1.6vw, 1.45rem);
	line-height: 1.35;
	color: var(--text);
}

.front > section {
	padding: clamp(2.4rem, 5vw, 4.4rem) 0;
}

/* ---------- Блок 1: атлас напитков ---------- */
.atlas {
	background: var(--panel) var(--oak);
}

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

.atlas-map {
	position: relative;
	margin: 0;
	filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
	transform: rotate(-1.4deg);
}

.atlas-map img {
	display: block;
	width: 100%;
}

.pin-label {
	position: absolute;
	transform: translate(0, -50%);
	max-width: 11em;
	font-family: var(--font-hand);
	font-size: clamp(0.8rem, 1.25vw, 1.25rem);
	font-style: italic;
	line-height: 1.1;
	color: #33240F;
	text-shadow:
		0 0 4px #EFE1C2, 0 0 4px #EFE1C2, 0 0 8px #EFE1C2,
		0 1px 0 rgba(255, 248, 228, 0.7);
	pointer-events: none;
}

/* ---------- Блок 2: анатомия подачи ---------- */
.anatomy {
	background: #0B0E0B var(--oak);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

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

.anatomy-pic {
	position: relative;
	margin: 0;
}

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

.callout {
	position: absolute;
	transform: translate(0, -50%);
	font-family: var(--font-mono);
	font-size: clamp(0.72rem, 1.25vw, 1.15rem);
	letter-spacing: 0.06em;
	line-height: 1.1;
	text-transform: uppercase;
	color: var(--paper);
	white-space: nowrap;
	pointer-events: none;
}

.anatomy-list {
	display: none;
}

/* ---------- Блок 3: последние записи ---------- */
.latest {
	position: relative;
	background: var(--bg) var(--oak);
}

.latest-title {
	margin: 0 0 1.5rem;
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 500;
	font-stretch: 85%;
	text-align: center;
	color: var(--paper);
}

.rail {
	height: 16px;
	margin-bottom: 2.6rem;
	background: linear-gradient(180deg, #3A2715, #6B4A27 30%, #4A3119 60%, #241509);
	box-shadow: 0 3px 7px rgba(0, 0, 0, 0.5);
}

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

.feed--front {
	max-width: 1100px;
	margin: 0 auto;
}

/* ---------- Карточка: бирка на медном крючке ---------- */
.card {
	position: relative;
	margin-top: 2.2rem;
	padding: 2.2rem 1.5rem 1.8rem;
	text-align: center;
	color: #2E2112;
	background:
		radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.35), transparent 55%),
		linear-gradient(170deg, #EDDFC2, #DCC9A4 60%, #CDB68E);
	clip-path: var(--torn);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
}

.card::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -1.85rem;
	transform: translateX(-50%);
	width: 1.5rem;
	height: 2.6rem;
	border: 4px solid #B5672A;
	border-top-left-radius: 0.75rem;
	border-top-right-radius: 0.75rem;
	border-bottom-color: transparent;
}

.card::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0.55rem;
	transform: translateX(-50%);
	width: 1.05rem;
	height: 1.05rem;
	border: 3px solid #A05C25;
	border-radius: 50%;
	background: #241A12;
}

.card-thumb {
	margin: 1.9rem 0 0.9rem;
}

.card-thumb a {
	display: block;
}

.card-thumb img {
	display: block;
	width: auto;
	max-width: 85%;
	max-height: 150px;
	margin: 0 auto;
	mix-blend-mode: multiply;
}

.card-thumb img.card-blank {
	max-height: 125px;
}

.card-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.25rem, 1.9vw, 1.7rem);
	font-weight: 600;
	font-stretch: 85%;
	line-height: 1.15;
	color: #2A1D0F;
	hyphens: none;
}

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

.card-title a:hover {
	color: #8C4A14;
}

.card-excerpt {
	font-size: 0.98rem;
	line-height: 1.45;
	color: #413020;
}

.card-excerpt p {
	margin: 0;
}

.card-date {
	display: block;
	margin: 0.7rem 0 1.1rem;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: #6B5637;
}

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

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

/* ---------- Блок 4: шкала крепости ---------- */
.scale {
	background: var(--wood) var(--oak);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

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

.ruler-wrap {
	position: relative;
	padding-bottom: 5.4rem;
}

.ruler {
	position: relative;
	height: clamp(80px, 11vw, 116px);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--orange);
}

.ruler li {
	position: absolute;
	bottom: 0;
	transform: translateX(-50%);
	text-align: center;
}

.ruler .bottle {
	display: block;
	width: auto;
	height: clamp(66px, 9.5vw, 100px);
	margin: 0 auto;
}

.ruler-label {
	position: absolute;
	left: 50%;
	top: calc(100% + 4.6rem);
	transform: translateX(-50%);
	font-size: clamp(0.85rem, 1.15vw, 1.1rem);
	line-height: 1.2;
	color: var(--paper);
	white-space: nowrap;
}

.ruler-label b {
	display: block;
	font-weight: 400;
}

.ruler-bar {
	position: relative;
	height: 44px;
	margin-top: 0.7rem;
	padding: 0 18px;
	background: linear-gradient(180deg, #8A6B35, #D8BA7C 30%, #C09B57 60%, #7A5C2A);
	border-radius: 3px;
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.ruler-bar::before,
.ruler-bar::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #F0D9A6, #8A6B35);
}

.ruler-bar::before {
	left: 7px;
}

.ruler-bar::after {
	right: 7px;
}

.ruler-bar i {
	display: block;
	height: 100%;
	background:
		repeating-linear-gradient(90deg, #B5672A 0 2px, transparent 2px 24px) left 38% / 100% 36% no-repeat,
		repeating-linear-gradient(90deg, #B5672A 0 2px, transparent 2px 12px) left 38% / 100% 20% no-repeat;
}

/* ---------- Блок 5: рецептурная тетрадь ---------- */
.recipe {
	background: var(--panel) var(--oak);
}

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

.notebook {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	padding: 12px;
	background: linear-gradient(180deg, #1C2A20, #16211A);
	border-radius: 4px;
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.5);
	transform: rotate(-1deg);
}

.nb-page {
	position: relative;
	min-height: 300px;
	padding: 1.6rem 1.4rem;
	background-color: #F3EEE0;
	background-image:
		linear-gradient(#C9C3AE 1px, transparent 1px),
		linear-gradient(90deg, #C9C3AE 1px, transparent 1px);
	background-size: 17px 17px, 17px 17px;
	overflow: hidden;
}

.nb-left {
	box-shadow: inset -14px 0 18px -14px rgba(0, 0, 0, 0.5);
}

.nb-right {
	box-shadow: inset 14px 0 18px -14px rgba(0, 0, 0, 0.5);
}

.nb-hand {
	position: relative;
	z-index: 2;
	margin: 0;
	font-family: var(--font-hand);
	font-size: clamp(1.2rem, 2vw, 1.75rem);
	font-style: italic;
	line-height: 1.5;
	color: #1F2A4A;
	transform: rotate(-3deg);
	transform-origin: left top;
}

.nb-hand u {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.nb-ring {
	position: absolute;
	right: 4%;
	bottom: -6%;
	width: 52%;
	height: auto;
	mix-blend-mode: multiply;
	opacity: 0.9;
}

.nb-spoon {
	position: absolute;
	right: -8%;
	top: 4%;
	width: 92%;
	height: auto;
}
/* ---------- Внутренние страницы ---------- */
.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: 2px 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;
	background: rgba(11, 14, 11, 0.85);
	border: 1px solid var(--line);
}

.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: #DFA76C;
}

.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.45em;
	height: 0.45em;
	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-body);
	font-style: italic;
	font-size: 1.3rem;
	line-height: 1.45;
	background: rgba(36, 26, 18, 0.65);
	border-left: 3px solid var(--orange);
}

.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: #17200F;
}

.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: #DFA76C;
}

.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: #DFA76C;
}

.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: #DFA76C;
}

.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: 2px 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: #DFA76C;
	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;
}

/* ---------- Подвал: три колонки на зелёно-чёрном ---------- */
.site-footer {
	background: #121A13 var(--oak);
	border-top: 1px solid var(--line);
}

.footer-cols {
	grid-template-columns: minmax(0, 30fr) minmax(0, 40fr) minmax(0, 30fr);
	padding: 3rem 0 1.4rem;
}

.footer-col {
	font-size: 1rem;
}

.footer-col .widget-title {
	margin: 0 0 0.7rem;
	font-family: var(--font-head);
	font-size: clamp(1.3rem, 2vw, 1.9rem);
	font-weight: 600;
	font-stretch: 70%;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--paper);
}

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

.footer-col:nth-child(2) li {
	margin-bottom: 0.3rem;
}

.footer-col:nth-child(2) a {
	font-family: var(--font-mono);
	font-size: 0.92rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: underline dotted var(--line);
	text-underline-offset: 5px;
	color: var(--paper);
}

.footer-col:nth-child(2) a:hover {
	color: var(--orange);
	text-decoration-color: var(--orange);
}

.footer-col:nth-child(3) {
	text-align: right;
}

.copyright {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------- Внутренние страницы: мелкие поправки ---------- */
.page-head h1,
.block-title {
	font-stretch: 70%;
}

.sidebar .widget-title,
.comments-title,
.comment-reply-title {
	font-family: var(--font-head);
	font-stretch: 75%;
	letter-spacing: 0.01em;
}

.sidebar {
	background: rgba(36, 26, 18, 0.55);
}

.entry-content h2,
.entry-content h3 {
	color: var(--paper);
}

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

.pager .page-numbers.current {
	color: #2A1708;
	background: var(--orange);
	border-color: var(--orange);
}

.comment-body {
	background: rgba(36, 26, 18, 0.55);
	border-left: 3px solid var(--orange);
}

.comment-respond,
.post-nav a {
	background: rgba(36, 26, 18, 0.45);
}

.cookie-banner {
	background: #1C1309;
	border: 1px solid var(--line);
}

/* ---------- Лента с боковой колонкой ---------- */
.layout-with-sidebar .feed {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-with-sidebar .card-title {
	font-size: 1.3rem;
}

.card-title {
	overflow-wrap: normal;
	word-break: normal;
}

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

	.recipe-row .big-title,
	.scale-row .scale-text,
	.atlas-row .atlas-text {
		text-align: left;
	}

	.anatomy-row .anatomy-pic {
		order: 2;
	}
}

@media (max-width: 959px) {
	.nav-toggle {
		display: inline-block;
	}

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

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

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

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

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

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

	.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),
	.footer-col:nth-child(3) {
		text-align: left;
	}
}

@media (max-width: 760px) {
	.callout {
		font-size: 0.66rem;
		padding-left: 1.9em;
	}

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

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

	.brand {
		gap: 0.8rem;
	}

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

	.anatomy-pic .callout {
		display: none;
	}

	.anatomy-list {
		display: block;
		counter-reset: alist;
		margin: 1.2rem 0 0;
		padding: 0;
		list-style: none;
	}

	.anatomy-list li {
		position: relative;
		margin-bottom: 0.45rem;
		padding-left: 2.2em;
		font-family: var(--font-mono);
		font-size: 0.92rem;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--paper);
	}

	.anatomy-list li::before {
		counter-increment: alist;
		content: counter(alist);
		position: absolute;
		left: 0;
		top: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 1.7em;
		height: 1.7em;
		color: var(--orange);
		border: 1px solid var(--orange);
		border-radius: 50%;
	}

	.ruler-label {
		font-size: 0.7rem;
	}

	.ruler .bottle {
		height: 52px;
	}

	.nb-page {
		min-height: 210px;
		padding: 1rem 0.9rem;
	}

	.nb-hand {
		font-size: 1.05rem;
	}

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

	.feed--front {
		max-width: 380px;
	}

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