/*
Theme Name: partiyavina-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: pv
*/
/* ---------- Шрифты (локально: Oswald — OFL, Roboto — 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: 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-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: 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: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-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";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-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;
}
/* ---------- Основа: разрез виноградника, сливовые слои и известняк ---------- */
:root {
	--plum: #140A12;
	--plum-2: #1C1017;
	--plum-3: #24131D;
	--lime: #E7E1D3;
	--chalk: #F2ECE1;
	--muted: #9C8A93;
	--ink-dark: #1B0E14;
	--wine: #8C1C33;
	--wine-2: #A8304A;
	--wine-light: #D88A9A;
	--moss: #6E8B7A;
	--frame: #4A3540;
	/* имена, которые используют inner.css и tail.css */
	--ink: #F2ECE1;
	--ivory: #1C1017;
	--ivory-2: #1C1017;
	--line: #4A3540;
	--brass: #8C1C33;
	--brass-2: #F2ECE1;
	--brass-dark: #D88A9A;
	--malachite: #24131D;
	--night: #140A12;
	--night-2: #140A12;
	--on-dark: #F2ECE1;
	--on-dark-2: #9C8A93;
	--paper: #140A12;
	--card: #1C1017;
	--accent: #D88A9A;
	--graphite: #140A12;
	--mahogany: #140A12;
	--lime-accent: #8C1C33;
	--brass-3: #4A3540;
	--morocco: #8C1C33;
	--morocco-2: #A8304A;
	--paper-0: #1C1017;
	--grid: #4A3540;
	--shadow: none;
	--font-head: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "Roboto", Arial, sans-serif;
	--font-mono: "Roboto", Arial, sans-serif;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.55;
	color: var(--chalk);
	background-color: var(--plum);
	background-image: repeating-linear-gradient(135deg, rgba(242, 236, 225, 0.018) 0 1px, transparent 1px 7px);
}

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

img {
	height: auto;
}

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

a:hover {
	color: var(--chalk);
}

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

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

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

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

/* ---------- Шапка ---------- */
.site-header {
	position: relative;
	color: var(--chalk);
	background: var(--plum);
}

.site-header::after {
	content: "";
	position: absolute;
	left: max(32px, calc(50% - 628px));
	right: max(32px, calc(50% - 628px));
	bottom: 0;
	height: 1px;
	background: rgba(242, 236, 225, 0.55);
}

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

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.9rem, 3.3vw, 2.9rem);
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--chalk);
}

.brand-desc {
	margin-top: 0.5rem;
	font-size: 1.05rem;
	line-height: 1.35;
	color: var(--chalk);
	opacity: 0.88;
}

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

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

.main-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	gap: 0.4rem 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav li + li::before {
	content: "";
	display: inline-block;
	width: 9px;
	height: 9px;
	margin: 0 1.1rem;
	vertical-align: 0.3em;
	background: var(--wine);
	border-radius: 50%;
}

.main-nav a {
	display: inline-block;
	padding: 0.1rem 0;
	font-family: var(--font-head);
	font-size: 1.55rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	text-decoration: none;
	color: var(--chalk);
	border-bottom: 1px solid transparent;
}

.main-nav a:hover {
	border-bottom-color: var(--wine-2);
}

.main-nav .current-menu-item > a,
.main-nav a[aria-current] {
	color: var(--moss);
}

/* ---------- Заголовки секций ---------- */
.sec-title {
	margin: 0;
	font-size: clamp(2.3rem, 4.2vw, 3.6rem);
	line-height: 1.05;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.sec-title--center {
	text-align: center;
}

.sec-title--huge {
	font-size: clamp(2.6rem, 5.5vw, 5.1rem);
	line-height: 0.98;
	letter-spacing: 0.035em;
	color: var(--chalk);
	text-shadow: 0 3px 14px rgba(0, 0, 0, 0.5);
}

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

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

.more-link {
	font-family: var(--font-head);
	font-size: 1.2rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--chalk);
	border-bottom: 1px solid var(--wine-2);
}

.more-link:hover {
	color: var(--wine-light);
}

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

.front > section {
	position: relative;
}

/* Волнистые границы слоёв */
.wave {
	position: absolute;
	left: 0;
	bottom: -1px;
	z-index: 2;
	display: block;
	width: 100%;
	height: clamp(36px, 6vw, 86px);
	pointer-events: none;
}

.wave--top {
	top: -1px;
	bottom: auto;
	transform: scaleY(-1);
}

.wave--lime path {
	fill: var(--lime);
}

.wave--top path {
	fill: var(--lime);
}

/* Слои почвы внизу тёмных секций */
.strata {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	width: 100%;
	height: 62%;
	pointer-events: none;
}

.strata .s1 {
	fill: #24131D;
}

.strata .s2 {
	fill: #3A1C2C;
}

.strata .s3 {
	fill: #5A2230;
}

.strata .hatch {
	fill: none;
	stroke: rgba(242, 236, 225, 0.12);
	stroke-width: 1.5;
}

.contours {
	position: absolute;
	z-index: 1;
	width: 300px;
	height: 300px;
	fill: none;
	stroke: var(--moss);
	stroke-width: 1.4;
	opacity: 0.55;
	pointer-events: none;
}

.ring {
	position: absolute;
	z-index: 1;
	width: 230px;
	height: 230px;
	fill: none;
	stroke: var(--wine);
	stroke-linecap: round;
	opacity: 0.45;
	pointer-events: none;
}

/* Блок 1: карта винных регионов */
.regions {
	padding: 3.2rem 0 clamp(36px, 6vw, 86px);
	background: var(--plum);
}

.regions-head {
	display: grid;
	grid-template-columns: minmax(0, 210px) minmax(0, 1fr);
	gap: 1.5rem 2.2rem;
	align-items: center;
}

.regions-lead {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.35;
}

.regions .sec-title--huge {
	text-align: right;
}

.wine-map {
	position: relative;
	margin: 1.6rem 0 0;
	container-type: inline-size;
}

.wine-map img {
	display: block;
	width: 100%;
	-webkit-mask-image: linear-gradient(180deg, #000 0 80%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0 80%, transparent 100%);
}

.map-label {
	position: absolute;
	top: 0.4%;
	font-size: clamp(11px, 1.5cqw, 23px);
	line-height: 1.1;
	color: var(--chalk);
}

/* Светлые известняковые плашки */
.lime {
	padding: 1.4rem 0 3.4rem;
	color: var(--ink-dark);
	background: var(--lime);
	background-image: repeating-linear-gradient(45deg, rgba(27, 14, 20, 0.025) 0 1px, transparent 1px 6px);
}

.lime .sec-title {
	color: var(--ink-dark);
}

/* Блок 2: анатомия этикетки */
.label-figure {
	position: relative;
	width: min(608px, 100%);
	margin: 1.6rem auto 0;
	container-type: inline-size;
}

.label-figure img {
	display: block;
	width: 62.2%;
}

.label-figure ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.label-figure li {
	position: absolute;
	left: 63.6%;
	transform: translateY(-50%);
	font-size: clamp(12px, 3.1cqw, 21px);
	line-height: 1.1;
	white-space: nowrap;
}

.ring--label {
	right: 2%;
	bottom: -70px;
	z-index: 3;
}

/* Блок 3: свежие заметки */
.latest {
	padding: clamp(80px, 9vw, 130px) 0 clamp(110px, 12vw, 170px);
	background: var(--plum);
}

.latest-inner {
	position: relative;
	z-index: 3;
}

.latest .sec-title {
	margin-bottom: 2.2rem;
}

.contours--latest {
	top: 40px;
	left: -40px;
}

.ring--latest {
	top: -40px;
	right: -40px;
	opacity: 0.6;
}

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

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

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

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

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 12px;
	color: var(--chalk);
	background: var(--plum-2);
	clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: var(--frame);
	clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%, 0 0, 2px 2px, 2px calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 30.8px, calc(100% - 30.8px) 2px, 2px 2px);
	pointer-events: none;
}

.card-thumb {
	position: relative;
	z-index: 1;
	display: block;
	aspect-ratio: 636 / 330;
	overflow: hidden;
	background: var(--lime);
	border: 1px solid rgba(242, 236, 225, 0.6);
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}

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

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

.card-body {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1rem 0.5rem 0.4rem;
}

.card-title {
	margin: 0 0 0.6rem;
	font-size: 1.6rem;
	line-height: 1.12;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

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

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

.card-excerpt {
	flex: 1;
	font-size: 1rem;
	line-height: 1.4;
	color: rgba(242, 236, 225, 0.9);
}

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

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

.read-more {
	display: inline-block;
	padding: 0.45rem 1.4rem 0.4rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--chalk);
	background: var(--wine);
	outline: 1px solid rgba(242, 236, 225, 0.75);
	outline-offset: -4px;
	transform: skewX(-18deg);
	transition: background-color 0.2s ease;
}

.read-more > span:first-child {
	display: inline-block;
	transform: skewX(18deg);
}

.read-more:hover {
	color: var(--chalk);
	background: var(--wine-2);
}

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

/* Блок 4: как хранить бутылку */
.cellar {
	padding-top: 2rem;
}

.cellar-figure {
	position: relative;
	width: min(760px, 100%);
	margin: 1.4rem auto 0;
	container-type: inline-size;
}

.cellar-figure img {
	display: block;
	width: 100%;
}

.cellar-label {
	position: absolute;
	font-size: clamp(11px, 3cqw, 22px);
	line-height: 1.15;
	white-space: nowrap;
}

.ring--cellar {
	top: -110px;
	left: -60px;
	z-index: 3;
}

.contours--cellar {
	right: -40px;
	bottom: 30px;
	transform: scaleX(-1);
}

/* Блок 5: колесо ароматов */
.aromas {
	padding: clamp(80px, 9vw, 130px) 0 4rem;
	background: var(--plum);
}

.aromas .strata {
	height: 72%;
}

.contours--aromas {
	left: -60px;
	bottom: 10px;
	width: 360px;
	height: 360px;
}

.aromas-grid {
	position: relative;
	z-index: 3;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
	gap: 2rem 3rem;
	align-items: center;
	max-width: 1180px;
}

.aromas-text {
	padding-left: 3vw;
}

.wheel {
	margin: 0;
}

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

.wheel-bg {
	fill: var(--plum-2);
	stroke: var(--plum);
	stroke-width: 8;
}

.wheel-line {
	fill: none;
	stroke: var(--chalk);
	stroke-width: 1.4;
	opacity: 0.85;
}

.wheel-dot {
	fill: var(--chalk);
}

.wheel-text {
	font-family: var(--font-body);
	font-size: 21px;
	fill: var(--chalk);
	text-anchor: middle;
	dominant-baseline: middle;
}

/* ---------- Внутренние страницы ---------- */
.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: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}

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

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

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

.sheet {
	background: var(--ivory-2);
	border: 1px solid var(--line);
	box-shadow: none;
}

.sheet::before {
	border: 0;
}

.entry-content {
	font-size: 1.12rem;
}

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

.entry-content h2 {
	font-size: 2.1rem;
	font-weight: 400;
	border-bottom: 1px solid var(--line);
}

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

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

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

.entry-content blockquote {
	font-size: 1.15rem;
	font-style: italic;
	background: var(--plum-3);
	border-left: 3px solid var(--wine);
}

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

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

.sidebar {
	color: var(--on-dark);
	background: var(--plum-2);
	background-image: none;
	border: 1px solid var(--frame);
}

.sidebar .widget-title {
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--chalk);
	border-bottom: 1px solid var(--wine);
}

.sidebar li {
	border-bottom: 1px solid rgba(74, 53, 64, 0.8);
}

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

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

.post-nav a,
.pager .page-numbers {
	background: var(--ivory-2);
	border: 1px solid var(--line);
	box-shadow: none;
}

.post-nav strong {
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 400;
	text-transform: uppercase;
}

.post-nav small {
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--brass-dark);
}

.post-nav a:hover,
.pager a.page-numbers:hover {
	color: var(--chalk);
	background: var(--plum-3);
}

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

.comment-respond {
	background: var(--ivory-2);
	border: 1px solid var(--line);
}

.comment-body {
	background: var(--ivory-2);
	border-left-color: var(--brass);
}

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

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	letter-spacing: 0.08em;
	font-family: var(--font-head);
	text-transform: uppercase;
	color: var(--chalk);
	background: var(--wine);
	border: 1px solid rgba(242, 236, 225, 0.7);
	box-shadow: none;
}

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

.lost-code {
	font-family: var(--font-head);
	font-weight: 400;
	color: var(--ink);
}

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

/* Подвал */
.site-footer {
	padding-top: 1rem;
	color: var(--on-dark);
	background: var(--plum);
	border-top: 0;
}

.footer-col .footer-name {
	margin: 0 0 0.8rem;
	font-family: var(--font-head);
	font-size: 2.5rem;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--chalk);
}

.footer-col .footer-desc {
	max-width: 22rem;
	font-size: 1.15rem;
	line-height: 1.35;
	color: var(--on-dark);
}

.footer-col .widget-title {
	margin: 0 0 0.9rem;
	font-family: var(--font-head);
	font-size: 1.7rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--chalk);
}

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

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

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

.footer-col li {
	margin: 0;
	padding: 0;
	line-height: 1.45;
}

.footer-col ul a {
	font-size: 1.1rem;
	text-decoration: none;
	color: var(--chalk);
}

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

.footer-col p {
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--on-dark);
}

.footer-col p a {
	color: var(--wine-light);
}

.copyright {
	font-size: 1.05rem;
	text-align: center;
	color: var(--muted);
	border-top: 1px solid var(--frame);
}

.cookie-banner {
	color: var(--on-dark);
	background: var(--plum-2);
	border: 1px solid var(--frame);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.regions-head {
		grid-template-columns: minmax(0, 1fr);
	}
	.regions .sec-title--huge {
		order: -1;
		text-align: left;
	}
	.aromas-grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
	}
}

@media (max-width: 959px) {
	.header-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.brand-mark,
	.brand-logo {
		width: 80px;
	}
	.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;
		align-items: flex-start;
		gap: 0.3rem;
	}
	.main-nav li + li::before {
		content: none;
	}
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.feed--front .card:nth-child(n) {
		margin-top: 0;
	}
	.layout-with-sidebar {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 2.5rem;
	}
	.footer-cols {
		grid-template-columns: minmax(0, 1fr);
	}
	.aromas-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.aromas-text {
		padding-left: 0;
	}
	.wheel {
		width: min(400px, 100%);
		margin: 0 auto;
	}
}

@media (max-width: 760px) {
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}
	/* Подписи к рисункам уходят списком под рисунок */
	.wine-map figcaption,
	.cellar-figure figcaption {
		display: flex;
		flex-wrap: wrap;
		gap: 0.4rem 1.2rem;
		padding: 0.8rem 16px 0;
	}
	.cellar-figure figcaption {
		justify-content: center;
		padding: 0.8rem 0 0;
	}
	.map-label,
	.cellar-label {
		position: static;
		font-size: 1rem;
		white-space: normal;
	}
	.map-label::before,
	.cellar-label::before {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-right: 0.45rem;
		vertical-align: 0.15em;
		background: var(--wine);
		border-radius: 50%;
	}
	.cellar-label br {
		display: none;
	}
	.wine-map img {
		width: 170%;
		max-width: none;
		margin-left: -35%;
	}
	.wine-map {
		overflow: hidden;
	}
	.label-figure {
		width: 100%;
	}
	.label-figure img {
		width: 100%;
	}
	.label-figure li {
		position: static;
		display: inline-block;
		margin: 0.3rem 1rem 0 0;
		font-size: 1rem;
		transform: none;
	}
	.label-figure li::before {
		content: "";
		display: inline-block;
		width: 7px;
		height: 7px;
		margin-right: 0.45rem;
		vertical-align: 0.15em;
		background: var(--wine);
		border-radius: 50%;
	}
	.label-figure ol {
		padding-top: 0.6rem;
	}
	.ring,
	.contours {
		width: 150px;
		height: 150px;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 17px;
	}
	.shell {
		padding-left: 16px;
		padding-right: 16px;
	}
	.site-header::after {
		left: 16px;
		right: 16px;
	}
	.header-row {
		padding-top: 1.1rem;
		padding-bottom: 1.1rem;
	}
	.brand {
		gap: 0.8rem;
		align-items: flex-start;
	}
	.brand-mark,
	.brand-logo {
		width: 58px;
	}
	.brand-name {
		font-size: 1.7rem;
	}
	.brand-desc {
		font-size: 0.9rem;
	}
	.regions {
		padding-top: 2rem;
	}
	.sec-title--huge {
		font-size: 2.9rem;
	}
	.regions-lead {
		font-size: 1.05rem;
	}
	.sec-lead {
		font-size: 1.15rem;
	}
	.card-title {
		font-size: 1.4rem;
	}
	.footer-col .footer-name {
		font-size: 2rem;
	}
	.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;
	}
}
