/*
Theme Name: beton-grant-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: beton
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@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: 700; font-display: swap; src: url("fonts/oswald-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: "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+2000-206F, U+20AC, U+20BD, U+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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; }
@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; }
@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; }
/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--bg: #C6C3BD;
	--panel: #D9D6D0;
	--board: #CFCAC2;
	--graphite: #26282A;
	--footer: #26282A;
	--text: #1A1B1C;
	--ink: #1A1B1C;
	--muted: #6E6A62;
	--accent: #E2531B;
	--accent-dark: #B33C0E;
	--blue: #173F73;
	--blue-line: #BBD1E8;
	--paper: #E4DBC4;
	--red: #B03024;
	--green: #3E6B47;
	--pink: #BC9594;
	--sage: #9AAC99;
	--line: #8C8880;
	--on-dark: #ECEAE5;
	--side: max(12px, calc((100% - 1400px) / 2), 6vw);
	--font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
	--font-body: "Fira Sans Condensed", "Arial Narrow", Arial, sans-serif;
	--font-mono: "JetBrains Mono", Consolas, "DejaVu Sans Mono", monospace;
}

/* ---------- База ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	position: relative;
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--board);
	/* Опалубочный щит: швы между щитами и волокна досок */
	background-image:
		linear-gradient(rgba(140, 136, 128, 0.55) 2px, transparent 2px),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 9px, rgba(140, 136, 128, 0.12) 9px 10px, transparent 10px 23px);
	background-size: 100% 336px, 100% 100%;
	overflow-wrap: break-word;
}

/* Отверстия от стяжек по обеим сторонам плиты */
body::before,
body::after {
	content: "";
	position: absolute;
	top: 210px;
	bottom: 0;
	width: 52px;
	pointer-events: none;
	background: radial-gradient(circle, #8C8880 0 5px, #A7A39C 6px 10px, #BDB8B0 11px 15px, rgba(189, 184, 176, 0) 16px) center 0 / 52px 168px repeat-y;
}

body::before {
	left: calc(var(--side) / 2 - 26px);
}

body::after {
	right: calc(var(--side) / 2 - 26px);
}

/* Плита по центру страницы, щиты опалубки остаются по бокам */
#content {
	position: relative;
	z-index: 1;
	padding-top: 62px;
	background: linear-gradient(90deg, transparent var(--side), var(--bg) var(--side), var(--bg) calc(100% - var(--side)), transparent calc(100% - var(--side)));
}

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

p {
	margin: 0 0 1em;
}

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

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

a:hover,
a:focus-visible {
	color: var(--accent-dark);
}

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

.shell {
	width: min(calc(100% - 2 * var(--side) - 4vw), 1300px);
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Кнопка: жёсткий оранжевый прямоугольник с треугольником ---------- */
.cut-btn,
.key-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.45em 0.9em 0.4em;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--accent);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.cut-btn::after {
	content: "";
	display: inline-block;
	margin-left: 0.55em;
	border-style: solid;
	border-width: 0.32em 0 0.32em 0.5em;
	border-color: transparent transparent transparent currentColor;
	vertical-align: 0.06em;
}

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

/* Ссылка прописными с тонким подчёркиванием */
.line-link,
.arrow-link {
	font-family: var(--font-head);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--text);
	text-decoration: underline solid var(--accent);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 5px;
}

.line-link:hover,
.arrow-link:hover {
	color: var(--accent-dark);
}

/* ---------- Шапка ---------- */
.site-header {
	position: relative;
	z-index: 3;
	background: var(--graphite);
	color: var(--on-dark);
}

.header-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	min-height: 118px;
}

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

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

.brand-mark,
.brand-logo {
	flex: none;
	align-self: stretch;
	width: 118px;
	height: auto;
	padding: 18px;
	background: var(--accent);
}

.brand-logo {
	object-fit: contain;
}

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(2.2rem, 4.6vw, 4rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.brand-desc {
	margin-top: 0.45rem;
	font-size: clamp(0.85rem, 1.2vw, 1.05rem);
	line-height: 1.3;
	color: #CFCCC6;
}

.nav-toggle {
	display: none;
	padding: 0.45em 0.9em;
	font-family: var(--font-head);
	font-size: 1rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--on-dark);
	background: transparent;
	border: 2px solid var(--accent);
	border-radius: 0;
	cursor: pointer;
}

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

.main-nav a {
	display: inline-block;
	font-family: var(--font-head);
	font-size: 1.12rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--on-dark);
}

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

/* Оранжевая линейка-шкала под шапкой */
.ruler {
	position: relative;
	height: 62px;
	margin-bottom: -62px;
	overflow: hidden;
	background-color: var(--accent);
	background-image:
		repeating-linear-gradient(90deg, var(--graphite) 0 2px, transparent 2px 180px),
		repeating-linear-gradient(90deg, var(--graphite) 0 2px, transparent 2px 36px);
	background-size: 100% 30px, 100% 17px;
	background-position: 118px 0, 118px 0;
	background-repeat: no-repeat;
}

.ruler span {
	position: absolute;
	bottom: 6px;
	left: calc(119px + var(--n) * 180px);
	transform: translateX(-50%);
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1;
	color: var(--graphite);
}

/* ---------- Заголовки секций: оранжевая размерная черта над текстом ---------- */
.front section {
	padding: 2.6rem 0;
}

.block-title {
	position: relative;
	display: inline-block;
	margin: 0 0 1.6rem;
	padding: 1rem 0.9rem 0;
	font-size: clamp(2rem, 3.8vw, 3.2rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--text);
}

.block-title::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 14px;
	border-left: 2px solid var(--accent);
	border-right: 2px solid var(--accent);
	background: linear-gradient(var(--accent), var(--accent)) 0 6px / 100% 2px no-repeat;
}

/* Вариант на всю ширину: черта продолжается после заголовка */
.block-title--wide {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0;
}

.block-title--wide::before,
.block-title--wide::after {
	content: "";
	position: static;
	height: 26px;
	background: linear-gradient(var(--accent), var(--accent)) 0 12px / 100% 2px no-repeat;
}

.block-title--wide::before {
	flex: none;
	width: 22px;
	border-left: 2px solid var(--accent);
	border-right: 0;
}

.block-title--wide::after {
	flex: 1;
	border-right: 2px solid var(--accent);
}

/* ---------- Блок 1: чертёж разреза фундамента ---------- */
.front .cut {
	padding-top: 1.8rem;
}

.cut-sheet {
	display: grid;
	grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
	gap: 1.5rem 2rem;
	align-items: center;
	padding: clamp(1.6rem, 3vw, 2.6rem);
	color: #FFFFFF;
	background-color: var(--blue);
	background-image:
		linear-gradient(rgba(187, 209, 232, 0.3) 1px, transparent 1px),
		linear-gradient(90deg, rgba(187, 209, 232, 0.3) 1px, transparent 1px),
		linear-gradient(rgba(187, 209, 232, 0.1) 1px, transparent 1px),
		linear-gradient(90deg, rgba(187, 209, 232, 0.1) 1px, transparent 1px);
	background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
	outline: 2px solid var(--blue-line);
	outline-offset: -16px;
}

.cut-title {
	margin: 0 0 2.4rem;
	font-size: clamp(2.2rem, 4vw, 3.4rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #FFFFFF;
}

.cut-list {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-head);
	font-size: clamp(1.15rem, 1.6vw, 1.45rem);
	font-weight: 600;
	line-height: 1.5;
}

.cut-num {
	display: inline-block;
	min-width: 1.4em;
	color: var(--blue-line);
}

.cut-pic {
	margin: 0;
}

.cut-pic svg {
	display: block;
	width: 100%;
	height: auto;
}

.cut-pic .ground {
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 2;
}

.cut-pic .ground-tick {
	fill: none;
	stroke: var(--blue-line);
	stroke-width: 1.2;
}

.cut-pic .fill-hatch {
	fill: url(#beton-hatch);
	stroke: #FFFFFF;
	stroke-width: 1.6;
}

.cut-pic .fill-sand {
	fill: url(#beton-sand);
	stroke: #FFFFFF;
	stroke-width: 1.6;
}

.cut-pic .fill-gravel {
	fill: url(#beton-gravel);
	stroke: #FFFFFF;
	stroke-width: 1.6;
}

.cut-pic .fill-concrete {
	fill: url(#beton-concrete);
	stroke: #FFFFFF;
	stroke-width: 2.4;
	stroke-linejoin: round;
}

.cut-pic .wp {
	fill: none;
	stroke: var(--accent);
	stroke-width: 4;
	stroke-dasharray: 10 4;
}

.cut-pic .rebar path {
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 1.4;
	stroke-dasharray: 5 4;
}

.cut-pic .rebar circle {
	fill: #FFFFFF;
}

.cut-pic .dim path {
	fill: none;
	stroke: var(--blue-line);
	stroke-width: 1.2;
}

.cut-pic .dim .dim-arrow {
	fill: var(--blue-line);
	stroke: none;
}

.cut-pic .lead {
	fill: none;
	stroke: #FFFFFF;
	stroke-width: 1.4;
}

.cut-pic .lead-dot {
	fill: #FFFFFF;
	stroke: var(--blue);
	stroke-width: 1.5;
}

.cut-pic .lead-ring {
	fill: var(--blue);
	stroke: #FFFFFF;
	stroke-width: 2;
}

.cut-pic .lead-num {
	font-family: var(--font-head);
	font-size: 21px;
	font-weight: 600;
	text-anchor: middle;
	fill: #FFFFFF;
}

/* ---------- Блок 2: пропорции бетона ---------- */
.mix-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 1.6rem 3rem;
	align-items: start;
}

.mix-table-wrap {
	min-width: 0;
	overflow-x: auto;
}

.mix-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 600;
	text-align: center;
	background: var(--panel);
	border: 3px solid var(--ink);
}

.mix-table th,
.mix-table td {
	padding: 0.45rem 0.7rem;
	border: 2px solid var(--ink);
}

.mix-table thead th {
	font-size: 1.05rem;
	white-space: nowrap;
}

.mix-table tbody th {
	width: 18%;
}

.mix-table td {
	font-family: var(--font-body);
	font-weight: 500;
}

.mix-note {
	margin: 0.8rem 0 0;
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--muted);
}

.mix-bars {
	min-width: 0;
	padding-top: 0.4rem;
}

.bar-row {
	display: grid;
	grid-template-columns: 3.4rem minmax(0, 1fr);
	gap: 0.8rem;
	align-items: center;
	margin-bottom: 1.05rem;
}

.bar-grade {
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 600;
}

.bar {
	display: flex;
	height: 38px;
	background: var(--panel);
	border: 2px solid var(--ink);
}

.bar-part {
	display: block;
	height: 100%;
}

.bar-part + .bar-part {
	border-left: 2px solid var(--ink);
}

.bar-part--c,
.key--c {
	background: repeating-linear-gradient(-45deg, var(--ink) 0 2px, #9C9890 2px 6px);
}

.bar-part--s,
.key--s {
	background: repeating-linear-gradient(-45deg, var(--ink) 0 1.5px, #E9E6E0 1.5px 8px);
}

.bar-part--g,
.key--g {
	background: repeating-linear-gradient(45deg, var(--ink) 0 1.5px, var(--panel) 1.5px 12px);
}

.bar-part--w,
.key--w {
	background: var(--accent);
}

.bar-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1.2rem;
	margin: 0.4rem 0 0 4.2rem;
	font-size: 0.95rem;
}

.key {
	display: inline-block;
	width: 1.1rem;
	height: 0.8rem;
	margin-right: 0.35rem;
	vertical-align: -0.05em;
	border: 1.5px solid var(--ink);
}

.bar-caption {
	margin: 0.4rem 0 0 4.2rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 600;
}

/* ---------- Из практики: угловатые карточки ---------- */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.2rem;
	align-items: stretch;
}

.card {
	--cut: 30px;
	display: flex;
	min-width: 0;
	padding: 2px;
	background: var(--ink);
	clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

.card-in {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
	background: var(--panel);
	clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px));
}

.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	text-decoration: none;
	background: var(--bg);
	border-bottom: 2px solid var(--ink);
}

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

.card-num {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 0.15rem 0.75rem 0.1rem;
	font-family: var(--font-head);
	font-size: 1.9rem;
	font-weight: 600;
	line-height: 1.2;
	color: #FFFFFF;
	background: var(--accent);
	border-top: 2px solid var(--ink);
	border-right: 2px solid var(--ink);
}

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

.card-title {
	margin: 0 1.3rem 0.5rem 0;
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

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

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

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

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

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

.card .cut-btn {
	align-self: flex-end;
	margin-top: auto;
	padding: 0.55em 1em 0.5em;
	font-size: 1.1rem;
}

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

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

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

/* ---------- Блоки 3 и 4: «так нельзя / так надо» и бланк приёмки ---------- */
.front .site-check {
	padding-bottom: 3.4rem;
}

.check-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: 2.4rem;
	align-items: stretch;
}

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

.dodont-col {
	padding: 1.4rem 1.5rem 1.6rem;
}

.dodont-col--no {
	background: var(--pink);
	border-right: 3px dashed var(--ink);
}

.dodont-col--yes {
	background: var(--sage);
}

.dodont-title {
	margin: 0 0 1.1rem;
	font-size: clamp(1.9rem, 3vw, 2.6rem);
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	color: var(--ink);
}

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

.dodont-list li {
	margin-bottom: 1.2rem;
	text-align: center;
}

.dodont-list li:last-child {
	margin-bottom: 0;
}

.dodont-list p {
	margin: 0.45rem 0 0;
	font-size: 0.98rem;
	line-height: 1.4;
}

.pic {
	display: block;
	width: min(100%, 210px);
	height: auto;
	margin: 0 auto;
	background: rgba(236, 234, 229, 0.7);
	border: 2px solid var(--ink);
}

.pic .pic-c {
	fill: #B7B3AC;
	stroke: var(--ink);
	stroke-width: 2;
}

.pic .pic-r {
	fill: #7A4A2E;
	stroke: var(--ink);
	stroke-width: 1.5;
}

.pic .pic-g {
	fill: none;
	stroke: #6B5A44;
	stroke-width: 4;
}

.pic .pic-s {
	fill: none;
	stroke: var(--accent);
	stroke-width: 3;
}

.pic .pic-b rect {
	fill: #C0583A;
	stroke: #EDE6DA;
	stroke-width: 2.5;
}

.pic .pic-rain {
	fill: none;
	stroke: var(--blue);
	stroke-width: 2.4;
	stroke-linecap: round;
}

.pic .pic-film {
	fill: none;
	stroke: var(--blue);
	stroke-width: 3;
}

.pic .pic-x {
	fill: none;
	stroke: var(--red);
	stroke-width: 7;
	stroke-linecap: round;
}

.pic .pic-v {
	fill: none;
	stroke: var(--green);
	stroke-width: 9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.blank {
	position: relative;
	align-self: start;
	padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.4rem, 3vw, 2.2rem) 6.5rem;
	background: var(--paper);
	border: 3px solid var(--ink);
	outline: 1.5px solid var(--ink);
	outline-offset: -10px;
	box-shadow: 4px 6px 0 rgba(26, 27, 28, 0.18);
}

.blank-title {
	margin: 0 0 1.4rem;
	font-size: clamp(2rem, 3.2vw, 2.7rem);
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
	text-transform: uppercase;
	color: var(--ink);
}

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

.blank-list li {
	position: relative;
	margin-bottom: 0.75rem;
	padding-left: 2.3rem;
	font-size: 1.15rem;
	line-height: 1.35;
}

.blank-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 1.35rem;
	height: 1.35rem;
	border: 2px solid var(--ink);
	background: rgba(255, 255, 255, 0.35);
}

.blank-stamp {
	position: absolute;
	right: 2rem;
	bottom: 1.8rem;
	padding: 0.15rem 0.9rem 0.1rem;
	font-family: var(--font-head);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--red);
	border: 3px solid var(--red);
	outline: 1.5px solid var(--red);
	outline-offset: 3px;
	transform: rotate(-9deg);
	opacity: 0.88;
}
/* ---------- Внутренние страницы ---------- */
.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(--accent);
	color: var(--text);
}

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

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

.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: var(--accent-dark);
}

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

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

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

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

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

.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(26, 27, 28, 0.08);
}

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

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

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

/* ---------- Пагинация (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(--accent);
	background: var(--panel);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	color: var(--accent-dark);
}

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

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

.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: var(--accent-dark);
}

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

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

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

.comment-reply-link {
	font-size: 0.9rem;
	color: var(--accent-dark);
}

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

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

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

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

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

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

.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(--text);
	text-decoration: none;
}

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

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

/* ---------- 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 {
	position: relative;
	z-index: 1;
	margin-top: 0;
	color: var(--on-dark);
	background: var(--footer);
	border-top: 0;
}

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

.footer-col,
.footer-col:nth-child(2) {
	font-size: 1.08rem;
	line-height: 1.45;
	text-align: left;
	color: #CFCCC6;
}

.footer-col .widget-title {
	margin: 0 0 0.5rem;
	font-size: 1.9rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--on-dark);
}

.footer-col:nth-child(n + 2) .widget-title {
	font-size: 1.15rem;
	font-weight: 500;
	text-transform: none;
}

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

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

.footer-col p a {
	text-decoration: underline solid var(--accent);
	text-underline-offset: 4px;
}

.copyright {
	padding: 1.1rem 0 1.8rem;
	font-size: 0.98rem;
	color: #CFCCC6;
	border-top: 1px solid #4A4C4F;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	body::before,
	body::after {
		display: none;
	}

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

	.blank {
		max-width: 620px;
	}

	.ruler {
		background-position: 0 0, 0 0;
	}

	.ruler span {
		left: calc(1px + var(--n) * 180px);
	}

	.ruler span:first-child {
		transform: none;
		left: 6px;
	}
}

@media (max-width: 959px) {
	.header-row {
		min-height: 0;
		padding-bottom: 0.9rem;
	}

	.brand {
		align-self: auto;
	}

	.brand-mark,
	.brand-logo {
		align-self: auto;
	}

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

	.main-nav {
		flex-basis: 100%;
		padding-bottom: 1rem;
	}

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

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

	.main-nav li + li {
		border-top: 1px solid #44474A;
	}

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

	.brand-mark,
	.brand-logo {
		width: 92px;
		padding: 14px;
	}

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

	.cut-title {
		margin-bottom: 1.2rem;
	}

	.cut-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.5rem;
	}

	.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: 640px) {
	body {
		font-size: 17px;
	}

	body::before,
	body::after {
		display: none;
	}

	.brand {
		gap: 0.8rem;
	}

	.brand-mark,
	.brand-logo {
		width: 64px;
		padding: 10px;
	}

	.brand-name {
		font-size: 1.75rem;
	}

	.brand-desc {
		display: none;
	}

	.ruler {
		height: 46px;
		margin-bottom: -46px;
	}

	.ruler span {
		font-size: 1rem;
	}

	#content {
		padding-top: 46px;
	}

	.cut-sheet {
		outline-offset: -8px;
	}

	.cut-list {
		grid-template-columns: minmax(0, 1fr);
		font-size: 1.05rem;
	}

	.mix-table {
		font-size: 1rem;
	}

	.mix-table th,
	.mix-table td {
		padding: 0.4rem 0.35rem;
	}

	.mix-table thead th {
		font-size: 0.85rem;
		white-space: normal;
	}

	.bar-legend,
	.bar-caption {
		margin-left: 0;
	}

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

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

	.dodont-col--no {
		border-right: 0;
		border-bottom: 3px dashed var(--ink);
	}

	.blank-stamp {
		right: 1.2rem;
		font-size: 1.6rem;
	}

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