/*
Theme Name: appcatalogue-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: app
*/
/* ---------- Шрифты (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: #12151A;
	--grid: #212A33;
	--panel: #1B2027;
	--panel-2: #232A33;
	--sand: #EFE7D6;
	--ink: #171A1F;
	--ink-2: #6E6A5F;
	--paper: #F1F0EA;
	--text: #F1F0EA;
	--muted: #8A939E;
	--lime: #C6F24E;
	--orange: #FF6A2B;
	--line: #333B45;
	--footer: #0C0E12;
	--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 {
	margin: 0;
	overflow-x: hidden;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	color: var(--text);
	background-color: var(--bg);
	/* Техническая сетка */
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 48px 48px;
	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: 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(--lime);
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
}

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

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

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

/* ---------- Кнопка-клавиша: лайм и жёсткая оранжевая тень ---------- */
.key-btn,
.cut-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.55em 1.1em 0.5em;
	font-family: var(--font-head);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
	background: var(--lime);
	border: 0;
	border-radius: 0;
	box-shadow: 0 6px 0 var(--orange);
	cursor: pointer;
	transition: transform 0.12s, box-shadow 0.12s;
}

.key-btn {
	font-size: clamp(1.1rem, 1.6vw, 1.45rem);
	padding: 0.6em 1em 0.55em;
}

.key-btn:hover,
.key-btn:focus-visible,
.cut-btn:hover,
.cut-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: var(--ink);
	box-shadow: 0 2px 0 var(--orange);
	transform: translateY(4px);
}

/* Ссылка со стрелкой */
.arrow-link {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--lime);
	text-decoration: underline solid var(--lime);
	text-underline-offset: 5px;
}

.arrow-link::after {
	content: " →";
}

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

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

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

/* Лаймовая линейка под шапкой */
.site-header::after {
	content: "";
	display: block;
	height: 14px;
	background:
		linear-gradient(var(--lime), var(--lime)) left top / 100% 2px no-repeat,
		repeating-linear-gradient(90deg, var(--lime) 0 1.5px, transparent 1.5px 48px) left top / 100% 14px no-repeat,
		repeating-linear-gradient(90deg, var(--lime) 0 1px, transparent 1px 12px) left top / 100% 7px no-repeat;
	opacity: 0.85;
}

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

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

.brand-desc {
	margin-top: 0.25rem;
	font-family: var(--font-mono);
	font-size: clamp(0.85rem, 1.25vw, 1.08rem);
	line-height: 1.3;
}

.nav-toggle {
	display: none;
	padding: 0.45em 0.9em;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--lime);
	background: transparent;
	border: 2px solid var(--lime);
	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-mono);
	font-size: 1rem;
	line-height: 1.35;
	text-decoration: none;
	color: var(--text);
}

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

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
	text-decoration: underline solid var(--lime);
	text-decoration-thickness: 2px;
	text-underline-offset: 7px;
}

/* ---------- Заголовки секций ---------- */
.front section {
	padding: 3.4rem 0;
}

.front section + section {
	border-top: 2px solid var(--lime);
}

.block-title {
	margin: 0 0 1.4rem;
	font-size: clamp(2rem, 3.6vw, 3.1rem);
	font-weight: 600;
	line-height: 1.08;
	text-transform: uppercase;
	color: var(--text);
}

.block-title--hero {
	font-size: clamp(2.6rem, 6vw, 5.4rem);
	font-weight: 700;
	line-height: 1.02;
}

/* ---------- Блок 1: что внутри приложения ---------- */
.front .inside {
	padding: 2.4rem 0 3rem;
}

.inside-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2rem 3rem;
	align-items: center;
}

.inside-pic {
	margin: 0;
}

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

.phone rect,
.phone path,
.phone circle {
	fill: none;
	stroke: var(--lime);
	stroke-width: 2.6;
	stroke-linejoin: round;
	stroke-linecap: round;
}

.phone .thin {
	stroke-width: 1.4;
}

.phone .faint {
	stroke-width: 1;
	opacity: 0.4;
}

.phone .btn {
	stroke-width: 5;
}

.phone .dim {
	stroke-width: 1.2;
	opacity: 0.75;
}

.lead {
	fill: none;
	stroke: var(--lime);
	stroke-width: 1.4;
}

.lead-dot {
	fill: var(--bg);
	stroke: var(--lime);
	stroke-width: 2;
}

.lead-text {
	font-family: var(--font-mono);
	font-size: 22px;
	fill: var(--text);
}

.inside-lead {
	max-width: 34em;
	margin: 0 0 1.8rem;
	font-family: var(--font-mono);
	font-size: clamp(1rem, 1.4vw, 1.2rem);
	line-height: 1.5;
}

.inside-list {
	display: none;
	margin: 1.8rem 0 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--lime);
}

/* ---------- Блок 2: сравнительный стенд ---------- */
.front .bench {
	color: var(--ink);
	background: var(--sand);
}

.bench-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: 1.6rem 3rem;
	align-items: start;
}

.bench .block-title {
	color: var(--ink);
}

.bench-sub {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 1rem;
	color: var(--ink-2);
}

.bench-table {
	width: 100%;
	border-collapse: collapse;
	font-family: var(--font-mono);
	font-size: 0.98rem;
}

.bench-table th,
.bench-table td {
	padding: 0.55rem 0.9rem;
	border-bottom: 1px solid var(--ink);
}

.bench-table thead th {
	font-weight: 500;
	text-align: center;
	border-bottom: 1.5px solid var(--ink);
}

.bench-table tbody th {
	font-weight: 400;
	text-align: left;
}

.bench-table td {
	width: 30%;
	text-align: center;
}

.bench-table td + td,
.bench-table th + th,
.bench-table th + td {
	border-left: 1px solid var(--ink);
}

.bench-table tbody tr:nth-child(odd) {
	background: rgba(23, 26, 31, 0.06);
}

.bench-table td.yes {
	background: rgba(198, 242, 78, 0.45);
}

.bench-table td.no {
	background: rgba(255, 106, 43, 0.14);
}

.mark {
	display: inline-block;
	width: 1.3rem;
	height: 1.3rem;
	vertical-align: middle;
}

.mark--yes {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23C6F24E'/%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='%23171A1F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.mark--no {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 5l14 14M19 5L5 19' fill='none' stroke='%23FF6A2B' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Свежие разборы ---------- */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	align-items: start;
}

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

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

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem 1.2rem 1.3rem 1.6rem;
	background: rgba(27, 32, 39, 0.92);
	border: 1px solid var(--line);
	border-left: 6px solid var(--lime);
}

.card-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	text-decoration: none;
	background: var(--bg);
	border: 1px solid var(--line);
}

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

.card-thumb .card-blank {
	width: 92%;
	height: auto;
}

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

.card-date {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	color: var(--muted);
}

.card-title {
	margin: 0.35rem 0 0.5rem;
	font-size: 1.55rem;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
}

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

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

.card-excerpt {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	line-height: 1.5;
	color: #CFD3D8;
}

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

.card .arrow-link {
	margin-top: auto;
}

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

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

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

/* ---------- Блок 4 и 5: схема и журнал ---------- */
.lab-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 2.4rem 3rem;
	align-items: start;
}

.where-map {
	display: block;
	width: 100%;
	height: auto;
	background:
		linear-gradient(rgba(198, 242, 78, 0.16) 1px, transparent 1px),
		linear-gradient(90deg, rgba(198, 242, 78, 0.16) 1px, transparent 1px);
	background-size: 28px 28px;
}

.wires path {
	fill: none;
	stroke: var(--lime);
	stroke-width: 2;
}

.wires .dash {
	stroke-dasharray: 3 5;
}

.wires .dash2 {
	stroke-dasharray: 10 7;
}

.joints circle {
	fill: var(--lime);
}

.node circle,
.node rect,
.node path {
	fill: none;
	stroke: var(--text);
	stroke-width: 2;
}

.node > circle {
	fill: var(--bg);
	stroke: var(--lime);
	stroke-width: 2.4;
}

.node--hot > circle {
	stroke: var(--orange);
	stroke-width: 3;
}

.node-text text {
	font-family: var(--font-body);
	font-size: 23px;
	fill: var(--text);
}

.journal {
	padding: clamp(1.3rem, 3vw, 2rem);
	background: var(--panel-2);
	border: 1px solid var(--line);
}

.journal .block-title {
	margin-bottom: 0.8rem;
}

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

.journal-list li {
	display: grid;
	grid-template-columns: 7.2rem minmax(0, 1fr) auto;
	gap: 0.4rem 1.2rem;
	align-items: center;
	padding: 0.9rem 0;
	border-bottom: 1.5px dashed rgba(241, 240, 234, 0.35);
}

.journal-list li:last-child {
	border-bottom: 0;
}

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

.journal-note {
	font-family: var(--font-mono);
	font-size: 0.92rem;
	line-height: 1.4;
}

.stamp {
	justify-self: end;
	padding: 0.15rem 0.5rem;
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--lime);
	border: 2px solid var(--lime);
	transform: rotate(-5deg);
}

.journal-list li:nth-child(even) .stamp {
	transform: rotate(4deg);
}

.stamp--warn {
	color: var(--orange);
	border-color: var(--orange);
}

/* ---------- Внутренние страницы ---------- */
.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(--lime);
	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(--lime);
}

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

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

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

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

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

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

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

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

.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(--lime);
	background: var(--panel);
	border: 1px solid var(--line);
}

.pager a.page-numbers:hover {
	color: #D9FF7A;
}

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

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

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

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

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

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

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

.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: #D9FF7A;
	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: 0;
	background: var(--footer);
	border-top: 2px solid var(--lime);
}

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

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

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

.footer-col a {
	text-decoration: none;
}

.footer-col a:hover {
	color: var(--lime);
	text-decoration: underline solid var(--lime);
}

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

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.bench-grid,
	.lab-grid {
		grid-template-columns: 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 ul {
		flex-direction: column;
		gap: 0;
	}

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

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

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

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

	.inside-pic {
		order: 2;
		max-width: 560px;
	}

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

	.feed--front .card:nth-child(n) {
		margin-top: 0;
	}

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

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

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

	.brand {
		gap: 0.8rem;
	}

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

	.lead,
	.lead-text {
		display: none;
	}

	.inside-list {
		display: block;
	}

	.bench-table {
		font-size: 0.82rem;
	}

	.bench-table th,
	.bench-table td {
		padding: 0.5rem 0.4rem;
	}

	.journal-list li {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.journal-note {
		grid-column: 1 / -1;
		grid-row: 2;
	}

	.feed,
	.layout-with-sidebar .feed {
		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;
	}
}
