/*
Theme Name: office-mebel-in-msk-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: office
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-condensed-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-condensed-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: "Fira Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/fira-sans-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-condensed-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+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, 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: 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: 700; font-display: swap; src: url("fonts/jetbrains-mono-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "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+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@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+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #14181C;
	--grid: #232A31;
	--panel: #1D2329;
	--paper: #E8EDE9;
	--paper-grid: #C6D2CB;
	--text: #F2F4F1;
	--muted: #8A959C;
	--orange: #FF5A1F;
	--yellow: #F5D547;
	--line: #39434B;
	--footer: #101317;
	--font-head: "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
	--font-body: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
	--font-mono: "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
	--cut: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

/* ---------- База ---------- */
*,
*::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.6;
	color: var(--text);
	background-color: var(--bg);
	/* Миллиметровка: мелкая клетка и крупная через 5 */
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px),
		linear-gradient(rgba(35, 42, 49, 0.45) 1px, transparent 1px),
		linear-gradient(90deg, rgba(35, 42, 49, 0.45) 1px, transparent 1px);
	background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
}

p {
	margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 500;
	line-height: 1.15;
	margin: 1.4em 0 0.5em;
	hyphens: auto;
	overflow-wrap: break-word;
}

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

a:hover,
a:focus-visible {
	color: var(--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(--bg);
}

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

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

/* ---------- Кнопка: срезанный угол, обводка 2 px ---------- */
.cut-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	position: relative;
	display: inline-block;
	padding: 0.55em 1.3em 0.5em 1em;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	color: var(--text);
	background:
		linear-gradient(135deg, transparent calc(50% - 1px), var(--orange) calc(50% - 1px), var(--orange) calc(50% + 1px), transparent calc(50% + 1px)) right bottom / 12px 12px no-repeat,
		transparent;
	border: 2px solid var(--orange);
	border-radius: 0;
	clip-path: var(--cut);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.cut-btn:hover,
.cut-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: var(--bg);
	background-color: var(--orange);
}

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

.header-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem 2rem;
	padding-bottom: 2.6rem;
}

/* Линейка с засечками под шапкой */
.header-row::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0.6rem;
	height: 26px;
	background:
		linear-gradient(var(--yellow), var(--yellow)) left bottom / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--yellow) 0 1.5px, transparent 1.5px 60px) left bottom / 100% 24px no-repeat,
		repeating-linear-gradient(90deg, var(--yellow) 0 1px, transparent 1px 12px) left bottom / 100% 12px no-repeat;
	opacity: 0.85;
}

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

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

.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.5rem, 4.2vw, 4rem);
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	overflow-wrap: anywhere;
}

.brand-desc {
	margin-top: 0.5rem;
	font-family: var(--font-mono);
	font-size: clamp(0.9rem, 1.6vw, 1.45rem);
	line-height: 1.25;
}

.nav-toggle {
	display: none;
	padding: 0.45em 0.9em;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	text-transform: uppercase;
	color: var(--orange);
	background: transparent;
	border: 2px solid var(--orange);
	border-radius: 0;
	cursor: pointer;
}

.main-nav ul {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav a {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: clamp(1rem, 1.6vw, 1.45rem);
	font-weight: 500;
	line-height: 1.35;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--orange);
}

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

.main-nav .current-menu-item > a::before,
.main-nav .current_page_item > a::before {
	content: "▸ ";
}

/* ---------- Заголовки блоков ---------- */
.front {
	padding-bottom: 3rem;
}

.front section {
	margin-top: 2.4rem;
}

.block-title {
	display: inline-block;
	margin: 0 0 1.6rem;
	padding-bottom: 0.3rem;
	font-size: clamp(1.7rem, 3.2vw, 2.8rem);
	text-transform: uppercase;
	border-bottom: 3px solid var(--orange);
}

.panel {
	display: grid;
	gap: 2rem 3.4rem;
	align-items: center;
	padding: clamp(1.4rem, 3vw, 2.6rem);
	background: rgba(29, 35, 41, 0.92);
	border: 1.5px solid var(--line);
}

/* ---------- Блок 1: стол по росту ---------- */
.height {
	grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
}

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

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

.height-pic figcaption {
	max-width: 30rem;
	margin-top: 0.8rem;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--muted);
}

.tape {
	position: relative;
	margin: 0.4rem 0 2.6rem;
	padding-right: 3.4rem;
}

.tape-nums {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.3rem;
	font-family: var(--font-mono);
	font-size: clamp(1rem, 1.6vw, 1.4rem);
	margin-right: -3.4rem;
}

.tape-track {
	position: relative;
}

.tape-scale {
	height: 30px;
	border-left: 2px solid var(--orange);
	border-right: 2px solid var(--orange);
	background:
		linear-gradient(var(--yellow), var(--yellow)) left 50% / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 25%) left top / 100% 100% no-repeat,
		repeating-linear-gradient(90deg, var(--yellow) 0 1px, transparent 1px 12.5%) left 50% / 100% 60% no-repeat,
		repeating-linear-gradient(90deg, var(--yellow) 0 1px, transparent 1px 2.5%) left 50% / 100% 30% no-repeat;
}

.tape-pin {
	position: absolute;
	top: calc(100% + 2px);
	width: 2px;
	height: 1.6rem;
	margin-left: -1px;
	background: var(--orange);
}

.tape-pin::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -2px;
	border: 6px solid transparent;
	border-bottom: 10px solid var(--orange);
	border-top: 0;
	transform: translate(-50%, -100%) translateY(10px);
}

.height-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: clamp(1.05rem, 1.9vw, 1.6rem);
	line-height: 1.55;
}

.height-list b {
	font-weight: 500;
	color: var(--orange);
}

/* ---------- Блок 2: кресло по узлам ---------- */
.chair {
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
}

.chair-pic {
	position: relative;
	width: min(100%, 340px);
	margin: 0 auto;
}

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

.node,
.nodes-list li::before {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1;
	color: var(--text);
	background: var(--bg);
	border: 2px solid var(--orange);
	border-radius: 50%;
}

.node {
	position: absolute;
	transform: translate(-50%, -50%);
}

.nodes-list {
	counter-reset: node;
	margin: 0 0 1.8rem;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: clamp(1rem, 1.7vw, 1.45rem);
	line-height: 1.4;
}

.nodes-list li {
	counter-increment: node;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	padding: 0.2rem 0;
}

.nodes-list li::before {
	content: counter(node);
	flex: none;
}

.materials {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.materials th {
	padding: 0.5rem 0.6rem;
	font-family: var(--font-mono);
	font-size: 1.3rem;
	font-weight: 400;
	text-align: center;
	border-top: 1.5px solid var(--line);
	border-bottom: 1.5px solid var(--line);
}

.materials td {
	padding: 0.7rem 0.8rem 0.9rem;
	font-size: 0.95rem;
	line-height: 1.4;
	vertical-align: top;
	color: var(--muted);
	border-bottom: 1.5px solid var(--line);
}

.materials th + th,
.materials td + td {
	border-left: 1.5px solid var(--line);
}

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

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

.card-thumb {
	position: relative;
	padding: 0.7rem;
	background: var(--panel);
	border: 1px solid var(--line);
}

.card-thumb a {
	display: block;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	border: 1px solid var(--line);
}

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

.card-thumb .card-blank {
	object-fit: contain;
	padding: 0.4rem;
}

.card-stamp {
	position: absolute;
	right: 1.3rem;
	bottom: 1.1rem;
	padding: 0.25rem 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--yellow);
	background:
		repeating-linear-gradient(45deg, rgba(245, 213, 71, 0.18) 0 1px, transparent 1px 6px),
		repeating-linear-gradient(-45deg, rgba(245, 213, 71, 0.18) 0 1px, transparent 1px 6px),
		var(--bg);
	border: 2px solid var(--yellow);
	border-radius: 4px;
	transform: rotate(-6deg);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 1rem 0 0;
}

.card-title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 400;
	line-height: 1.3;
}

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

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

.card-excerpt {
	font-size: 1.02rem;
	line-height: 1.45;
	color: var(--muted);
}

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

.card .cut-btn {
	margin-top: auto;
}

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

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

/* ---------- Блок 3: смета на светлой вклейке ---------- */
.estimate {
	position: relative;
	padding: clamp(1.4rem, 3vw, 2.4rem);
	color: #14181C;
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--paper-grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--paper-grid) 1px, transparent 1px);
	background-size: 24px 24px;
}

.estimate .block-title {
	color: #14181C;
	border-bottom-color: #14181C;
}

.estimate-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-mono);
	font-size: clamp(0.95rem, 1.7vw, 1.45rem);
}

.estimate-table th,
.estimate-table td {
	padding: 0.35rem 0.6rem;
	text-align: left;
	background: rgba(232, 237, 233, 0.82);
}

.estimate-table thead th {
	font-size: 0.82em;
	font-weight: 500;
	text-transform: uppercase;
	border-bottom: 2px solid #14181C;
}

.estimate-table td {
	border-bottom: 1px solid var(--paper-grid);
}

.estimate-table .num {
	white-space: nowrap;
}

.estimate-table td:last-child,
.estimate-table th:last-child {
	text-align: right;
}

.estimate-table tfoot th,
.estimate-table tfoot td {
	padding-top: 0.6rem;
	font-weight: 700;
	color: var(--orange);
}

.estimate-table tfoot th {
	text-align: right;
}

.estimate-stamp {
	position: absolute;
	right: 2rem;
	bottom: -1rem;
	margin: 0;
	padding: 0.3rem 0.9rem;
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 700;
	color: #14181C;
	background: var(--yellow);
	border-radius: 4px;
	transform: rotate(-3deg);
}

/* ---------- Блок 4: планировки ---------- */
.plans-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.plan-pic {
	padding: 0.8rem;
	background: var(--panel);
}

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

.plan-cap {
	margin: 0.8rem 0 0;
	font-family: var(--font-mono);
	font-size: 1.05rem;
	line-height: 1.4;
	text-align: center;
}

.plan-cap b {
	font-weight: 500;
	color: var(--text);
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.6rem 0 1.4rem;
}

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

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

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

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

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

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

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

.layout-single {
	display: block;
}

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

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

.sheet {
	position: relative;
	padding: 2.4rem 2.6rem 2.6rem;
	background: var(--panel);
	border: 1.5px 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: #FF8A5C;
}

.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.6em;
	height: 0.6em;
	background: var(--orange);
	clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	font-family: var(--font-head);
	font-size: 1.5rem;
	line-height: 1.35;
	background: var(--bg);
	border-left: 4px solid var(--line);
}

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

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

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

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

.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);
	line-height: 0.9;
	color: var(--orange);
}

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

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

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

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

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

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

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

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

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

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

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

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

.footer-col a:hover,
.footer-col a:focus-visible {
	color: #FF8A5C;
	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 {
	margin-top: 1rem;
	border-top: 1.5px solid var(--line);
}

.footer-col .widget-title {
	font-family: var(--font-mono);
	font-size: 1.5rem;
}

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

.footer-col:nth-child(2) a {
	font-family: var(--font-mono);
	color: var(--orange);
}

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

.copyright {
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--muted);
	border-top: 1px solid var(--line);
	padding-top: 1.2rem;
}

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

	.height-pic {
		max-width: 520px;
	}

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

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

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

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

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

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

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

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

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

	.brand {
		gap: 0.8rem;
	}

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

	.tape {
		padding-right: 2.4rem;
	}

	.tape-nums {
		margin-right: -2.4rem;
		font-size: 0.85rem;
	}

	.materials,
	.materials thead,
	.materials tbody,
	.materials tr,
	.materials th,
	.materials td {
		display: block;
	}

	.materials thead {
		display: none;
	}

	.materials td + td {
		border-left: 0;
	}

	.materials td::before {
		display: block;
		margin-bottom: 0.2rem;
		font-family: var(--font-mono);
		font-size: 1.1rem;
		color: var(--text);
	}

	.materials td:nth-child(1)::before { content: "сетка"; }
	.materials td:nth-child(2)::before { content: "экокожа"; }
	.materials td:nth-child(3)::before { content: "ткань"; }

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

	.estimate-table thead th:nth-child(2),
	.estimate-table tbody td:nth-child(2) {
		display: none;
	}

	.estimate-table {
		font-size: 0.88rem;
	}

	.estimate-table th,
	.estimate-table td {
		padding-left: 0.3rem;
		padding-right: 0.3rem;
	}

	.estimate-stamp {
		right: 1rem;
		font-size: 0.85rem;
	}

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

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