/*
Theme Name: exkavatornews-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: exn
*/
/* ---------- Шрифты (локально, OFL) ---------- */
@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: "Oswald";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/oswald-cyrillic-600-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/oswald-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/jetbrains-mono-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- Основа: ремонтный цех, тёмная сталь и сетка ---------- */
:root {
	--graphite: #16181A;
	--grid-line: #232629;
	--blue: #0E3A5C;
	--blue-grid: #4FA3D1;
	--paper-cream: #E9E3D5;
	--head: #0F1113;
	--yellow: #F2B705;
	--yellow-2: #FFCB2E;
	--rust: #B03A2E;
	--text: #EDE8DE;
	--muted: #8A8D90;
	--navy: #1D3557;
	--steel: #24272B;
	--steel-line: #3A3E43;
	/* имена, которые используют inner.css и tail.css */
	--ink: #EDE8DE;
	--ivory: #1E2124;
	--ivory-2: #1E2124;
	--line: #3A3E43;
	--brass: #F2B705;
	--brass-2: #EDE8DE;
	--brass-dark: #F2B705;
	--malachite: #24272B;
	--night: #0F1113;
	--night-2: #0F1113;
	--on-dark: #EDE8DE;
	--on-dark-2: #8A8D90;
	--paper: #16181A;
	--card: #1E2124;
	--accent: #F2B705;
	--mahogany: #0F1113;
	--brass-3: #3A3E43;
	--morocco: #B03A2E;
	--morocco-2: #C24A3D;
	--paper-0: #1E2124;
	--grid: #3A3E43;
	--plum: #16181A;
	--plum-2: #1E2124;
	--plum-3: #24272B;
	--chalk: #EDE8DE;
	--wine: #B03A2E;
	--wine-2: #C24A3D;
	--wine-light: #F2B705;
	--frame: #3A3E43;
	--shadow: none;
	--font-head: "Oswald", "Arial Narrow", sans-serif;
	--font-body: "JetBrains Mono", "Courier New", monospace;
	--font-mono: "JetBrains Mono", "Courier New", monospace;
}

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

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

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--graphite);
	background-image:
		linear-gradient(var(--grid-line) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
	background-size: 24px 24px;
}

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

img {
	height: auto;
}

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

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 600;
	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: #111;
	background: var(--yellow);
}

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

/* Жёлто-чёрные полосы */
.hazard,
.site-header::after,
.site-footer::before {
	display: block;
	height: 20px;
	background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #111214 14px 28px);
	border-top: 2px solid #0B0C0D;
	border-bottom: 2px solid #0B0C0D;
}

/* ---------- Шапка ---------- */
.site-header {
	color: var(--text);
	background: var(--head);
}

.site-header::after {
	content: "";
}

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

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

.brand-mark,
.brand-logo {
	flex: none;
	width: 128px;
	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.4vw, 3rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #D9D3C7;
}

.brand-desc {
	margin-top: 0.6rem;
	font-size: 1.02rem;
	line-height: 1.45;
	color: var(--text);
}

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

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

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

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

.main-nav a:hover {
	color: var(--yellow);
}

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

/* ---------- Шильдик заголовка секции ---------- */
.plate {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 0.35rem 1.5rem 0.3rem;
	font-size: clamp(1.7rem, 3.2vw, 2.9rem);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #111214;
	background: linear-gradient(180deg, #FFD23F 0%, var(--yellow) 45%, #D9A204 100%);
	border: 3px solid #8E9296;
	outline: 1px solid #2B2E31;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 3px 0 rgba(0, 0, 0, 0.35);
}

.plate::before,
.plate::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 9px;
	height: 9px;
	margin-top: -4.5px;
	background: radial-gradient(circle at 35% 35%, #F4F4F4, #7C8085 70%);
	border-radius: 50%;
}

.plate::before {
	left: 4px;
}

.plate::after {
	right: 4px;
}

.plate-num {
	font-weight: 500;
}

.more-wrap {
	margin: 2rem 0 0;
}

.more-link {
	font-family: var(--font-head);
	font-size: 1.2rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--yellow);
}

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

.front > .hazard {
	margin: 1.6rem 0;
}

/* Стальные и синие листы с заклёпками */
.panel {
	position: relative;
	width: calc(100% - 48px);
	max-width: 1460px;
	margin: 0 auto;
	padding: 1.6rem 0 3rem;
	border: 1px solid #000;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.panel--blue {
	background-color: var(--blue);
	background-image:
		linear-gradient(rgba(79, 163, 209, 0.22) 1px, transparent 1px),
		linear-gradient(90deg, rgba(79, 163, 209, 0.22) 1px, transparent 1px),
		linear-gradient(rgba(79, 163, 209, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(79, 163, 209, 0.08) 1px, transparent 1px);
	background-size: 80px 80px, 80px 80px, 16px 16px, 16px 16px;
	outline: 1px solid var(--blue-grid);
	outline-offset: -14px;
}

.panel--steel {
	background: linear-gradient(180deg, #2C2F33 0%, var(--steel) 100%);
}

.panel-inner {
	width: 85%;
	max-width: 1180px;
	margin: 0 auto;
}

.rivets,
.screws {
	position: absolute;
	inset: 10px;
	pointer-events: none;
	background:
		radial-gradient(circle, #9DA2A7 0 2.5px, #2A2D30 3px, transparent 4px) 0 0 / 10px 10px no-repeat,
		radial-gradient(circle, #9DA2A7 0 2.5px, #2A2D30 3px, transparent 4px) 100% 0 / 10px 10px no-repeat,
		radial-gradient(circle, #9DA2A7 0 2.5px, #2A2D30 3px, transparent 4px) 0 100% / 10px 10px no-repeat,
		radial-gradient(circle, #9DA2A7 0 2.5px, #2A2D30 3px, transparent 4px) 100% 100% / 10px 10px no-repeat;
}

/* Блок 1: чертёж экскаватора */
.blueprint .panel-inner {
	text-align: center;
}

.blueprint-sub {
	margin: 1.2rem 0 1.2rem;
	font-size: 1.6rem;
	font-weight: 500;
	color: var(--text);
}

.blueprint-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: 2rem 2.6rem;
	align-items: center;
	text-align: left;
}

.drawing {
	position: relative;
	margin: 0;
	container-type: inline-size;
}

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

.num {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.2em;
	height: 2.2em;
	font-size: 0.95rem;
	color: var(--text);
	background: var(--blue);
	border: 1.5px solid var(--text);
	border-radius: 50%;
}

.num--abs {
	position: absolute;
	font-size: clamp(9px, 2.2cqw, 15px);
	width: 2.45em;
	height: 2.45em;
	transform: translate(-50%, -50%);
}

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

.legend li {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin: 0 0 1rem;
	font-size: 1.12rem;
	line-height: 1.35;
}

.legend li > span:last-child {
	padding-top: 0.25rem;
}

/* Кремовые листы: сервисная книжка и наряд-заказ */
.sheet-paper {
	padding: 0 24px;
}

.paper {
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 1.6rem clamp(16px, 4vw, 56px) 2rem;
	color: var(--navy);
	background: var(--paper-cream);
	background-image: radial-gradient(rgba(29, 53, 87, 0.05) 1px, transparent 1px);
	background-size: 5px 5px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.paper .plate {
	margin-left: calc(-1 * clamp(16px, 4vw, 56px) + 10px);
}

.screws {
	inset: 12px;
}

.table-wrap {
	margin-top: 1.4rem;
	overflow-x: auto;
}

.service-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 1.3rem;
	line-height: 1.3;
}

.service-table th {
	padding: 0.4rem 1.1rem;
	font-family: var(--font-head);
	font-size: 1.6rem;
	font-weight: 500;
	text-align: left;
	text-transform: uppercase;
	color: var(--navy);
}

.service-table td {
	padding: 0.45rem 1.1rem;
	vertical-align: top;
}

.service-table tbody tr:nth-child(odd) {
	background: rgba(150, 128, 104, 0.2);
}

.paper-note {
	margin: 1rem 0 0;
	padding-left: 1.1rem;
	font-size: 1rem;
	font-weight: 500;
}

/* Блок 3: последние материалы */
.latest .plate {
	margin-bottom: 1.6rem;
}

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

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.6rem 1.2rem 1rem;
	color: #16181A;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px),
		linear-gradient(135deg, #C9CCCF 0%, #9EA2A6 40%, #D3D5D8 60%, #8F9397 100%);
	border-top: 12px solid var(--yellow);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}

.card-screws {
	position: absolute;
	inset: 6px;
	pointer-events: none;
	background:
		radial-gradient(circle, #5D6166 0 2px, transparent 2.5px) 0 0 / 8px 8px no-repeat,
		radial-gradient(circle, #5D6166 0 2px, transparent 2.5px) 100% 0 / 8px 8px no-repeat,
		radial-gradient(circle, #5D6166 0 2px, transparent 2.5px) 0 100% / 8px 8px no-repeat,
		radial-gradient(circle, #5D6166 0 2px, transparent 2.5px) 100% 100% / 8px 8px no-repeat;
}

.card-title {
	margin: 0 0 0.6rem;
	font-family: var(--font-body);
	font-size: 1.32rem;
	font-weight: 500;
	line-height: 1.22;
}

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

.card-title a:hover {
	text-decoration: underline dashed 1px;
}

.card-mid {
	display: flex;
	flex: 1;
	gap: 0.9rem;
	align-items: flex-start;
}

.card-excerpt {
	flex: 1;
	min-width: 0;
	font-size: 0.98rem;
	line-height: 1.4;
	color: #1E2124;
}

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

.card-thumb {
	display: block;
	flex: none;
	width: 38%;
	aspect-ratio: 104 / 90;
	overflow: hidden;
	border: 1px solid #5D6166;
}

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

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-top: 0.6rem;
}

.card-date {
	font-size: 1rem;
	color: #1E2124;
}

.read-more {
	display: inline-block;
	padding: 0.35rem 0.9rem 0.3rem;
	font-family: var(--font-head);
	font-size: 1.2rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--yellow);
	background: #16181A;
	border: 2px solid var(--yellow);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.read-more:hover {
	color: #111214;
	background: var(--yellow);
}

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

/* Блок 4: классы машин по массе */
.scale {
	position: relative;
	height: 236px;
	margin-top: 1.8rem;
}

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

.scale-items li {
	position: absolute;
	top: 0;
	width: 32%;
	transform: translateX(-50%);
	text-align: center;
}

.scale-items li::before {
	content: "";
	display: block;
	height: 140px;
}

.scale-items img {
	position: absolute;
	top: 140px;
	left: 50%;
	transform: translate(-50%, -100%);
}

.scale-items b {
	display: block;
	margin-top: 34px;
	font-size: 1.3rem;
	font-weight: 500;
	line-height: 1.25;
}

.scale-items li > span {
	display: block;
	font-size: 1rem;
	opacity: 0.85;
}

.ruler {
	position: absolute;
	top: 132px;
	left: 0;
	right: 0;
	height: 12px;
	border-bottom: 2px solid var(--yellow);
	background: repeating-linear-gradient(90deg, var(--yellow) 0 2px, transparent 2px 40px) left bottom / 100% 8px no-repeat;
}

.ruler span {
	position: absolute;
	bottom: 14px;
	font-size: 1.35rem;
	font-weight: 500;
	color: var(--yellow);
}

.ruler-min {
	left: 0;
}

.ruler-max {
	right: 0;
}

/* Блок 5: перед покупкой */
.checklist-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
	gap: 1.6rem 2rem;
	align-items: end;
	margin-top: 1.4rem;
}

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

.check-list li {
	margin: 0 0 0.4rem;
	font-size: 1.35rem;
	font-weight: 500;
	line-height: 1.35;
}

.check-list li > span {
	display: inline-block;
	min-width: 1.4em;
}

.order {
	text-align: right;
}

.stamp {
	display: inline-block;
	margin: 0 0 2.4rem;
	padding: 0.1rem 1.1rem 0.2rem;
	font-family: var(--font-head);
	font-size: 3.2rem;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--rust);
	border: 5px solid var(--rust);
	outline: 2px solid var(--rust);
	outline-offset: 4px;
	opacity: 0.88;
	transform: rotate(-12deg);
	-webkit-mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, 0.7) 61%, #000 75%);
	mask-image: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, 0.7) 61%, #000 75%);
}

.order-no {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 500;
}

/* ---------- Внутренние страницы ---------- */
.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 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) {
	.blueprint-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.panel-inner {
		width: 90%;
	}
}

@media (max-width: 959px) {
	.header-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}
	.brand-mark,
	.brand-logo {
		width: 84px;
	}
	.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;
	}
	.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);
	}
	.checklist-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.order {
		text-align: left;
	}
	/* Шкала: силуэты списком, шкала скрыта */
	.scale {
		height: auto;
	}
	.ruler {
		display: none;
	}
	.scale-items {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.2rem;
	}
	.scale-items li {
		position: static;
		width: auto;
		transform: none;
	}
	.scale-items li::before {
		content: none;
	}
	.scale-items img {
		position: static;
		display: block;
		width: auto !important;
		max-width: 100%;
		height: 80px;
		margin: 0 auto;
		object-fit: contain;
		transform: none;
	}
	.scale-items b {
		margin-top: 0.8rem;
		font-size: 1.05rem;
	}
}

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}
	.shell {
		padding-left: 16px;
		padding-right: 16px;
	}
	.panel {
		width: calc(100% - 16px);
		padding-bottom: 2rem;
	}
	.panel-inner {
		width: auto;
		padding: 0 16px;
	}
	.sheet-paper {
		padding: 0 8px;
	}
	.header-row {
		padding-top: 1.2rem;
		padding-bottom: 1.2rem;
	}
	.brand {
		gap: 0.8rem;
		align-items: flex-start;
	}
	.brand-mark,
	.brand-logo {
		width: 56px;
	}
	.brand-name {
		font-size: 1.6rem;
	}
	.brand-desc {
		font-size: 0.82rem;
	}
	.plate {
		padding: 0.3rem 1rem;
		font-size: 1.4rem;
	}
	.paper .plate {
		margin-left: 0;
	}
	.blueprint-sub {
		font-size: 1.15rem;
	}
	.legend li {
		font-size: 0.98rem;
	}
	.service-table {
		font-size: 0.9rem;
	}
	.service-table th {
		font-size: 1.05rem;
		padding: 0.3rem 0.5rem;
	}
	.service-table td {
		padding: 0.35rem 0.5rem;
	}
	.feed,
	.layout-with-sidebar .feed {
		grid-template-columns: minmax(0, 1fr);
	}
	.scale-items {
		grid-template-columns: minmax(0, 1fr);
	}
	.check-list li {
		font-size: 1.05rem;
	}
	.stamp {
		font-size: 2.2rem;
		margin-bottom: 1.4rem;
	}
	.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;
	}
}

/* ---------- Подвал и внутренние страницы: цех ---------- */
.site-footer {
	background: var(--head);
}

.site-footer::before {
	content: "";
}

.footer-col .widget-title {
	font-family: var(--font-head);
	font-size: 1.9rem;
	font-weight: 500;
	text-transform: uppercase;
	color: #D9D3C7;
}

.footer-col ul a,
.footer-col p a {
	color: var(--yellow);
	text-decoration: underline dashed 1px;
	text-underline-offset: 4px;
}

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

.footer-col ul a {
	font-size: 1.02rem;
}

.copyright {
	text-align: center;
	color: var(--text);
	border-top: 0;
}

.page-head h1 {
	font-weight: 600;
}

.sheet,
.sidebar,
.comment-respond,
.post-nav a,
.pager .page-numbers {
	background: #1E2124;
	border: 1px solid var(--steel-line);
	border-top: 6px solid var(--yellow);
}

.pager .page-numbers {
	border-top-width: 1px;
}

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

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	color: var(--yellow);
	background: #16181A;
	border: 2px solid var(--yellow);
}

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

.entry-content h2 {
	text-transform: uppercase;
}

.entry-content blockquote {
	font-style: normal;
	background: #24272B;
	border-left-color: var(--yellow);
}

.sidebar .widget-title {
	border-bottom-color: var(--yellow);
}
