/*
Theme Name: nova-klining-ru
Author: Ксения Трофимова
Description: Тема информационного сайта об уборке в стиле лабораторного атласа чистоты: бледно-мятная миллиметровка, чернильно-зелёные рамки, каталожные номера «Пластина», моноширинные этикетки и сигнальный оранжевый. На главной — матрица совместимости поверхностей и средств, срез пятна под лупой с выносками, последние записи на каталожных карточках с отверстиями для подшивки, шкала «Уборка за 40 минут» и красный список опасных сочетаний с разбором мифа.
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: nkl
*/
/* ---------- Шрифты (локально, OFL) ---------- */
@font-face {
	font-family: "PT Sans Narrow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-sans-narrow-cyrillic-700-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "PT Sans Narrow";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-sans-narrow-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-cyrillic-400-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-sans-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-sans-cyrillic-700-normal.woff2") format("woff2");
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "PT Sans";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/pt-sans-latin-700-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "PT Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-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: "PT Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/pt-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;
}

/* ---------- Основа: миллиметровка лабораторного атласа ---------- */
:root {
	--paper: #E9EFEA;
	--grid: #CBDAD3;
	--ink: #132A2F;
	--accent: #F04E23;
	--accent-2: #D23E16;
	--teal: #12A08F;
	--teal-2: #0C7F71;
	--card: #FFFFFF;
	--muted: #6E8880;
	--graphite: #132A2F;
	--mahogany: #132A2F;
	--on-dark: #E9EFEA;
	--on-dark-2: #A9BDB6;
	--lime: #12A08F;
	--brass: #12A08F;
	--brass-2: #5FD3C3;
	--brass-3: #2F4B50;
	--morocco: #F04E23;
	--morocco-2: #D23E16;
	--paper-0: #FFFFFF;
	--shadow: 4px 4px 0 0 #132A2F;
	--font-head: "PT Sans Narrow", "Arial Narrow", sans-serif;
	--font-body: "PT Sans", Arial, sans-serif;
	--font-mono: "PT 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(--ink);
	background-color: var(--paper);
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 20px 20px;
	background-position: -1px -1px;
}

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

img {
	height: auto;
}

a {
	color: var(--teal-2);
	text-decoration: underline wavy;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-head);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.005em;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 0.6rem;
	left: 0.6rem;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.6rem 1rem;
	margin: 0;
	clip: auto;
	color: var(--on-dark);
	background: var(--ink);
}

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

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

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

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(2.2rem, 4.4vw, 3.9rem);
	font-weight: 700;
	line-height: 0.95;
	text-transform: uppercase;
}

.brand-desc {
	margin-top: 0.8rem;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.35;
	color: var(--ink);
}

.nav-toggle {
	display: none;
	padding: 0.45rem 1rem;
	font-family: var(--font-head);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ink);
	background: var(--card);
	border: 2px solid var(--ink);
	border-radius: 0;
	box-shadow: 3px 3px 0 var(--ink);
	cursor: pointer;
}

.main-nav {
	justify-self: end;
	padding-top: 0.9rem;
}

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

.main-nav a {
	display: inline-block;
	padding: 0.2rem 0;
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	border-bottom: 2px solid transparent;
}

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

.dbl-line {
	height: 7px;
	border-top: 2px solid var(--ink);
	border-bottom: 2px solid var(--ink);
}

/* ---------- Заголовки секций: «Пластина 01» ---------- */
.plate-no {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 0.9rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ink);
}

.plate-no::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.55;
}

.sec-title {
	margin: 0;
	font-size: clamp(2.4rem, 5vw, 4.4rem);
	line-height: 0.98;
	text-transform: uppercase;
	color: var(--ink);
}

.sec-lead {
	margin: 1.1rem 0 0;
	font-size: 1.45rem;
	line-height: 1.3;
}

.sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 2rem;
}

.sec-head > div {
	flex: 1 1 420px;
}

.more-link {
	font-family: var(--font-mono);
	font-size: 0.95rem;
}

/* ---------- Кнопка с тенью-блоком ---------- */
.btn-tag {
	display: inline-block;
	padding: 0.5em 1.2em;
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: #FFFFFF;
	background: var(--accent);
	border: 2px solid var(--ink);
	box-shadow: 4px 4px 0 0 var(--ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-tag:hover {
	color: #FFFFFF;
	background: var(--accent-2);
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 0 var(--ink);
}

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

.front > section,
.duo {
	padding-top: 3.4rem;
	padding-bottom: 3.6rem;
}

/* Пластина 01: матрица */
.matrix-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: 2.4rem 3.4rem;
	align-items: start;
}

.matrix-legend {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 1.8rem 0 0;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--muted);
}

.matrix-legend span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.matrix-legend .mk {
	width: 18px;
	height: 18px;
}

.matrix-table-wrap {
	padding: 5px;
	background: var(--paper);
	border: 2px solid var(--ink);
}

.matrix-table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.55);
}

.matrix-table th,
.matrix-table td {
	padding: 0.45rem 0.6rem;
	border: 1.5px solid var(--ink);
}

.matrix-table thead th {
	font-family: var(--font-head);
	font-size: 1.3rem;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

.matrix-table tbody th {
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-weight: 700;
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
}

.matrix-table td {
	text-align: center;
}

.mk {
	display: inline-block;
	width: 28px;
	height: 28px;
	vertical-align: middle;
	fill: none;
	stroke-width: 3.2;
	stroke-linecap: square;
}

.mk--ok {
	stroke: var(--teal);
}

.mk--no {
	stroke: var(--accent);
}

/* Пластина 02: пятно под лупой */
.lens {
	color: var(--on-dark);
	background: var(--ink);
}

.lens .plate-no,
.lens .sec-title {
	color: #FFFFFF;
}

.lens-grid {
	display: grid;
	grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
	gap: 2rem 4.4rem;
	align-items: center;
}

.lens-figure {
	position: relative;
	margin: 0;
}

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

.lens-no {
	position: absolute;
	left: 93.75%;
	width: 7.6%;
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-size: clamp(0.8rem, 1.6vw, 1.15rem);
	color: #FFFFFF;
	border: 1.5px solid #FFFFFF;
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.lens-list {
	margin: 1.6rem 0 0;
	padding: 0;
	list-style: none;
}

.lens-list li {
	display: flex;
	gap: 1.1rem;
	font-family: var(--font-head);
	font-size: clamp(1.4rem, 2.4vw, 2rem);
	font-weight: 700;
	line-height: 1.45;
	text-transform: uppercase;
}

.lens-list b {
	min-width: 1ch;
	font-family: var(--font-mono);
	font-weight: 400;
	color: var(--teal);
}

.lens-note {
	max-width: 30em;
	margin: 1.4rem 0 0;
	padding-top: 1.2rem;
	font-size: 1.3rem;
	line-height: 1.4;
	border-top: 1px solid var(--brass-3);
}

/* Пластина 03: каталожные карточки */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.8rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1.1rem 1.4rem 1.6rem 3.4rem;
	color: var(--ink);
	background: var(--card);
	border: 1.5px solid var(--ink);
}

.holes {
	position: absolute;
	top: 1.1rem;
	bottom: 1.6rem;
	left: 1rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.holes i {
	display: block;
	width: 15px;
	height: 15px;
	background: var(--paper);
	border: 1.5px solid var(--ink);
	border-radius: 50%;
}

.card-thumb {
	position: relative;
	display: block;
	aspect-ratio: 343 / 153;
	overflow: hidden;
	background: var(--paper);
	border: 1.5px solid var(--ink);
}

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

.card-no {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	padding: 0.15rem 0.6rem;
	font-family: var(--font-head);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
	background: rgba(19, 42, 47, 0.55);
}

.card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding-top: 1rem;
}

.card-title {
	margin: 0 0 0.6rem;
	font-size: 1.75rem;
	line-height: 1.08;
	text-transform: uppercase;
}

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

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

.card-excerpt {
	flex: 1;
	font-size: 1rem;
	line-height: 1.45;
}

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

.card-foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.8rem;
}

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

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

/* Пластины 04 и 05 рядом */
.duo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 3rem 4.4rem;
	align-items: start;
}

.duo .sec-title {
	font-size: clamp(2.3rem, 4.2vw, 3.6rem);
}

/* Шкала «Уборка за 40 минут» */
.ruler-wrap {
	margin-top: 2.4rem;
}

.flags {
	position: relative;
	height: 210px;
	margin: 0 2.4rem 0 1.6rem;
	padding: 0;
	list-style: none;
}

.flag {
	position: absolute;
	left: calc(var(--x) * 100%);
	bottom: var(--h);
	padding: 0.35rem 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.92rem;
	line-height: 1.2;
	white-space: nowrap;
	color: #FFFFFF;
	background: var(--ink);
}

.flag--t1 { --h: 34px; }
.flag--t2 { --h: 54px; }
.flag--t3 { --h: 96px; }
.flag--t4 { --h: 124px; }
.flag--t5 { --h: 164px; }

.flag::before {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 1.5px;
	z-index: -1;
	height: var(--h);
	background: var(--ink);
}

.flag::after {
	content: "";
	position: absolute;
	top: calc(100% + var(--h) - 8px);
	left: -5.25px;
	border: 6px solid transparent;
	border-top: 8px solid var(--ink);
	border-bottom: 0;
}

.flag:last-child {
	left: auto;
	right: 0;
}

.flag:last-child::before {
	left: auto;
	right: 0;
}

.flag:last-child::after {
	left: auto;
	right: -5.25px;
}

.flag-min {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.ruler {
	position: relative;
	height: 92px;
	padding: 0 2.4rem 0 1.6rem;
	background-color: var(--card);
	border: 1.5px solid var(--ink);
	background-image:
		linear-gradient(90deg, var(--ink) 1.5px, transparent 1.5px),
		linear-gradient(90deg, transparent calc(100% - 1.5px), var(--ink) 0),
		linear-gradient(90deg, var(--ink) 1px, transparent 1px),
		linear-gradient(90deg, var(--ink) 1px, transparent 1px),
		linear-gradient(transparent, transparent);
	background-size: 25% 34px, 100% 34px, 12.5% 24px, 2.5% 13px, 100% 100%;
	background-position: 0 8px;
	background-repeat: repeat-x, no-repeat, repeat-x, repeat-x, no-repeat;
	background-origin: content-box;
	background-clip: content-box, content-box, content-box, content-box, padding-box;
}

.ruler span {
	position: absolute;
	left: calc(1.6rem + (100% - 4rem) * var(--x));
	top: 48px;
	font-family: var(--font-mono);
	font-size: 1.5rem;
	line-height: 1;
	transform: translateX(-50%);
}

/* Красный список */
.hazards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin: 2rem 0 1.6rem;
	padding: 0;
	list-style: none;
	text-align: center;
}

.hazard svg {
	display: block;
	width: 140px;
	height: 140px;
	margin: 0 auto 0.4rem;
}

.hazard-label {
	display: block;
	font-family: var(--font-mono);
	font-size: 1.05rem;
	line-height: 1.3;
}

.myths {
	background: var(--paper);
	border: 1.5px solid var(--ink);
}

.myth + .myth {
	border-top: 1.5px solid var(--ink);
}

.myth summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 0.8rem 1.2rem;
	font-family: var(--font-mono);
	font-size: 1.05rem;
	font-weight: 400;
	list-style: none;
	cursor: pointer;
}

.myth summary::-webkit-details-marker {
	display: none;
}

.myth[open] summary {
	border-bottom: 1.5px solid var(--ink);
}

.myth-tag {
	flex: none;
	font-style: normal;
	text-transform: uppercase;
	color: var(--accent);
}

.myth-tag.is-fact {
	color: var(--teal-2);
}

.myth p {
	margin: 0;
	padding: 0.8rem 1.2rem 1rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.5;
}

/* ---------- Внутренние страницы ---------- */
.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: 700;
	color: var(--ink);
	border-bottom: 2px solid var(--ink);
	box-shadow: 0 5px 0 -3px var(--ink);
}

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

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

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

.sheet {
	border: 1.5px solid var(--ink);
	box-shadow: none;
}

.sheet::before {
	inset: auto;
	border: 0;
}

.entry-content a {
	color: var(--teal-2);
	text-decoration: underline wavy;
	text-decoration-thickness: 1px;
}

.entry-content h2 {
	font-size: 2.2rem;
	text-transform: uppercase;
	border-bottom: 1.5px solid var(--ink);
}

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

.entry-content ul > li::before {
	top: 0.5em;
	width: 0.55em;
	height: 0.55em;
	border: 1.5px solid var(--ink);
	background: var(--accent);
}

.entry-content blockquote {
	font-family: var(--font-mono);
	background: var(--paper);
	border-left: 4px solid var(--teal);
}

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

.sidebar {
	color: var(--ink);
	background: var(--card);
	background-image: none;
	border: 1.5px solid var(--ink);
	box-shadow: var(--shadow);
}

.sidebar .widget-title {
	font-size: 1.6rem;
	border-bottom: 1.5px solid var(--ink);
}

.sidebar li {
	border-bottom: 1px dashed var(--grid);
}

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

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

.post-nav a,
.pager .page-numbers {
	border: 1.5px solid var(--ink);
	box-shadow: var(--shadow);
}

.post-nav strong {
	font-size: 1.35rem;
	font-weight: 700;
	text-transform: uppercase;
}

.post-nav small {
	color: var(--muted);
}

.post-nav a:hover,
.pager a.page-numbers:hover {
	color: var(--on-dark);
	background: var(--ink);
}

.comment-respond {
	border: 1.5px solid var(--ink);
}

.comment-body {
	border-left-color: var(--teal);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form input[type="search"] {
	border: 1.5px solid var(--ink);
}

.comment-form input[type="submit"],
.search-form button,
.cut-btn,
.cookie-banner button {
	font-weight: 700;
	color: #FFFFFF;
	background: var(--accent);
	border: 2px solid var(--ink);
	box-shadow: 4px 4px 0 0 var(--ink);
}

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

.cookie-banner button {
	box-shadow: 3px 3px 0 0 #000;
}

.lost-code {
	font-weight: 700;
	color: var(--ink);
}

.site-footer {
	color: var(--on-dark);
	background: var(--ink);
	border-top: 0;
}

.footer-col .widget-title {
	font-size: 1.3rem;
	color: #FFFFFF;
}

.footer-col p {
	font-family: var(--font-mono);
	font-size: 0.92rem;
}

.footer-col ul {
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.9;
}

.footer-col a {
	text-decoration: underline dashed;
	text-underline-offset: 4px;
	text-decoration-thickness: 1px;
}

.footer-col p a,
.footer-col a:hover,
.footer-col a:focus-visible {
	color: var(--brass-2);
}

.copyright {
	font-family: var(--font-mono);
	font-size: 0.88rem;
	border-top-color: var(--brass-3);
}

.cookie-banner {
	color: var(--on-dark);
	background: var(--ink);
	border-left: 4px solid var(--accent);
	box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.25);
}

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.duo {
		grid-template-columns: minmax(0, 1fr);
		gap: 4rem;
	}

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

	.lens-figure {
		max-width: 560px;
	}

	.matrix-table-wrap {
		max-width: 680px;
	}
}

@media (max-width: 959px) {
	.header-row {
		grid-template-columns: minmax(0, 1fr) auto;
	}

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

	.main-nav {
		grid-column: 1 / -1;
		justify-self: stretch;
		padding-top: 0;
	}

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

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

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

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

@media (max-width: 640px) {
	body {
		font-size: 16px;
	}

	.shell {
		padding-left: 16px;
		padding-right: 16px;
	}

	.brand {
		gap: 0.7rem;
	}

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

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

	.brand-desc {
		margin-top: 0.5rem;
		font-size: 0.85rem;
	}

	.front > section,
	.duo {
		padding-top: 2.6rem;
		padding-bottom: 2.6rem;
	}

	.sec-lead {
		font-size: 1.2rem;
	}

	.matrix-table-wrap {
		padding: 3px;
	}

	.matrix-table th,
	.matrix-table td {
		padding: 0.35rem 0.25rem;
	}

	.matrix-table thead th {
		font-size: 0.9rem;
	}

	.matrix-table tbody th {
		font-size: 0.95rem;
	}

	.mk {
		width: 20px;
		height: 20px;
	}

	.lens-list li {
		font-size: 1.4rem;
	}

	.lens-note {
		font-size: 1.1rem;
	}

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

	.card {
		padding: 1rem 1rem 1.3rem 2.8rem;
	}

	.holes {
		left: 0.8rem;
	}

	.card-title {
		font-size: 1.5rem;
	}

	/* Шкала: флажки уходят в список над линейкой */
	.flags {
		height: auto;
		margin: 0 0 1rem;
		counter-reset: none;
	}

	.flag,
	.flag:last-child {
		position: static;
		left: auto;
		right: auto;
		display: flex;
		gap: 0.6rem;
		margin-bottom: 0.4rem;
		white-space: normal;
		color: var(--ink);
		background: none;
		padding: 0;
		transform: none;
	}

	.flag::before,
	.flag::after {
		display: none;
	}

	.flag-min {
		position: static;
		width: auto;
		height: auto;
		clip: auto;
		overflow: visible;
		flex: none;
		min-width: 4.2em;
		padding: 0 0.3rem;
		color: #FFFFFF;
		background: var(--ink);
	}

	.ruler {
		height: 74px;
		padding: 0 1.2rem;
	}

	.ruler span {
		left: calc(1.2rem + (100% - 2.4rem) * var(--x));
		top: 42px;
		font-size: 1.1rem;
	}

	.hazards {
		gap: 0.4rem;
	}

	.hazard svg {
		width: 92px;
		height: 92px;
	}

	.hazard-label {
		font-size: 0.85rem;
	}

	.myth summary {
		padding: 0.7rem 0.9rem;
		font-size: 0.95rem;
	}

	.myth p {
		padding: 0.7rem 0.9rem 0.9rem;
		font-size: 0.88rem;
	}

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