/*
Theme Name: communityeducation-ru
Author: Анна Колесникова
Description: Тема образовательного журнала в стиле рабочей тетради на миллиметровке: серо-голубая бумага в клетку с красным полем, узкие заголовки в верхнем регистре, моноширинные подписи, оранжевые номера разделов и лаймовый маркер. На главной — три маршрута в цифровую профессию, чек-лист выбора онлайн-курса, свежие руководства в виде наклеенных вырезок, чертёж рабочего стола SMM-специалиста и словарь цифровых профессий на тёмной вставке.
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: ced
*/
/* ---------- Шрифты (локально, OFL / Apache 2.0) ---------- */
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/caveat-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: "Caveat";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/caveat-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/oswald-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: "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: 400;
	font-display: swap;
	src: url("fonts/oswald-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: "Oswald";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("fonts/oswald-latin-600-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/roboto-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: "Roboto Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("fonts/roboto-mono-latin-400-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto Mono";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("fonts/roboto-mono-latin-500-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Roboto Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("fonts/roboto-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ---------- Палитра (HEX из задания) ---------- */
:root {
	--paper: #E9EEF1;
	--paper-2: #F4F7F8;
	--grid: #C6D2D9;
	--grid-soft: rgba(198, 210, 217, 0.55);
	--ink: #14181C;
	--ink-2: #3A434A;
	--muted: #6C7A83;
	--accent: #E03B12;
	--accent-2: #B92E0B;
	--lime: #DDF247;
	--graphite: #12171B;
	--on-dark: #F2F5F7;
	--on-dark-2: #9AA6AD;
	--card: #F7F9FA;
	--tape: rgba(200, 204, 206, 0.72);
	--shadow: 0 10px 18px rgba(20, 24, 28, 0.14), 0 2px 4px rgba(20, 24, 28, 0.12);
	--margin-x: max(16px, calc((100vw - 1240px) / 2 - 40px));
	--font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
	--font-body: "Roboto", Arial, sans-serif;
	--font-mono: "Roboto Mono", Consolas, "DejaVu Sans Mono", monospace;
	--font-hand: "Caveat", "Segoe Print", cursive;
}

/* ---------- База ---------- */
*,
*::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: 17px;
	line-height: 1.6;
	color: var(--ink);
	background-color: var(--paper);
	/* Миллиметровка: клетка и красная линия поля слева */
	background-image:
		linear-gradient(90deg, transparent calc(var(--margin-x) - 1px), var(--accent) calc(var(--margin-x) - 1px), var(--accent) calc(var(--margin-x) + 1px), transparent calc(var(--margin-x) + 1px)),
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px);
	background-size: 100% 100%, 28px 28px, 28px 28px;
}

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

a {
	color: var(--ink);
	text-decoration-color: var(--accent);
	text-underline-offset: 3px;
}

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

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

h1,
h2,
h3,
h4 {
	margin: 0 0 0.6em;
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.15;
}

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

.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 !important;
	top: 10px;
	left: 10px;
	z-index: 100;
	width: auto;
	height: auto;
	padding: 0.6em 1em;
	clip: auto;
	color: var(--on-dark);
	background: var(--ink);
}

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

.header-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 2rem;
	padding-bottom: 1.6rem;
	/* двойная чернильная линия */
	background:
		linear-gradient(var(--ink), var(--ink)) bottom 0 left 32px / calc(100% - 64px) 3px no-repeat,
		linear-gradient(var(--ink), var(--ink)) bottom 7px left 32px / calc(100% - 64px) 3px no-repeat;
}

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

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

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

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.9rem, 3.2vw, 2.7rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.brand-desc {
	max-width: 30em;
	margin-top: 0.35rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.35;
	color: var(--ink-2);
}

.nav-toggle {
	display: none;
	padding: 0.45em 1em;
	font-family: var(--font-head);
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--on-dark);
	background: var(--ink);
	border: 0;
	cursor: pointer;
}

.main-nav {
	flex: none;
}

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

/* Пункты меню — ярлыки-закладки */
.main-nav a {
	display: block;
	padding: 0.35em 0.6em;
	font-family: var(--font-head);
	font-size: 1.2rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink);
}

.main-nav a:hover {
	color: var(--accent);
	box-shadow: inset 0 -3px 0 var(--accent);
}

.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--on-dark);
	background: var(--accent);
	box-shadow: none;
}

/* ---------- Заголовки секций ---------- */
.sec-title {
	position: relative;
	display: block;
	margin: 0 0 2rem;
	padding-bottom: 0.7rem;
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ink);
}

.sec-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3.2rem;
	height: 2px;
	background: var(--accent);
}

.sec-title span {
	margin-right: 0.4em;
	font-weight: 600;
	color: var(--accent);
}

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

.more-link {
	margin-bottom: 2rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--accent);
	text-decoration: underline double;
	text-underline-offset: 4px;
}

/* ---------- Скотч и вырезки ---------- */
.tape {
	position: absolute;
	z-index: 2;
	width: 92px;
	height: 28px;
	background: var(--tape);
	box-shadow: 0 1px 2px rgba(20, 24, 28, 0.12);
	pointer-events: none;
}

.cutout {
	position: relative;
	margin: 0;
	padding: 10px;
	background: var(--card);
	box-shadow: var(--shadow);
}

.cutout img {
	display: block;
	width: 100%;
	filter: grayscale(1) contrast(1.05);
}

.cutout--photo {
	transform: rotate(3deg);
}

.cutout .tape--tl {
	top: 4px;
	left: -30px;
	transform: rotate(-42deg);
}

.cutout .tape--br {
	right: -30px;
	bottom: 4px;
	transform: rotate(-42deg);
}

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

.front > section {
	padding: 3.2rem 0 1rem;
}

.front > section:first-child {
	padding-top: 2.6rem;
}

/* 01 Маршруты */
.routes-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 3rem;
}

.route-list {
	display: grid;
	gap: 2.4rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.route {
	position: relative;
	display: grid;
	grid-template-columns: 9.5rem minmax(0, 1fr);
	align-items: start;
	gap: 0.8rem;
}

.route-name {
	padding-top: 0.55rem;
	font-family: var(--font-mono);
	font-size: 1.1rem;
	font-weight: 500;
	line-height: 1.25;
}

.route-track {
	position: relative;
	padding-top: 44px;
}

.route-line {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	overflow: visible;
}

.route-line path {
	fill: none;
	stroke: var(--ink);
	stroke-width: 2.5;
	stroke-dasharray: 10 7;
	vector-effect: non-scaling-stroke;
}

/* Петля к следующему маршруту */
.route:not(:last-child) .route-track::after {
	content: "";
	position: absolute;
	top: 22px;
	right: -22px;
	width: 34px;
	height: calc(100% + 2.4rem);
	border: 2.5px dashed var(--ink);
	border-left: 0;
	border-radius: 0 40px 40px 0;
}

.route-track::before {
	content: "";
	position: absolute;
	top: 13px;
	left: -9px;
	width: 18px;
	height: 18px;
	background: var(--paper);
	border: 2.5px solid var(--ink);
	border-radius: 50%;
}

.route-stops {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0 0 0 33.333%;
	list-style: none;
}

.route-stops li {
	position: relative;
	padding-right: 0.5rem;
	font-family: var(--font-mono);
	font-size: 0.92rem;
	line-height: 1.3;
	transform: translateX(-9px);
}

.route-stops li::before {
	content: "";
	position: absolute;
	top: -31px;
	left: 0;
	width: 18px;
	height: 18px;
	background: var(--paper);
	border: 2.5px solid var(--ink);
	border-radius: 50%;
}

.route-stops li:last-child::before {
	border-color: var(--accent);
	background: var(--accent);
}

.cutout--photo img {
	filter: none;
}

/* 02 Онлайн-курс */
.course-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: start;
	gap: 3rem;
}

.checklist {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0 0 0 1.4rem;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 1.15rem;
}

.checklist li {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}

.checklist .box {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	border: 2.5px solid var(--ink);
	background: var(--paper-2);
}

.checklist .is-on .box::after {
	content: "";
	position: absolute;
	left: 3px;
	top: -9px;
	width: 10px;
	height: 20px;
	border: solid var(--ink);
	border-width: 0 3.5px 3.5px 0;
	transform: rotate(40deg);
}

.checklist .is-on .txt {
	padding: 0 0.4em;
	margin-left: -0.4em;
	background: linear-gradient(100deg, transparent 0.2em, var(--lime) 0.4em, var(--lime) calc(100% - 0.4em), transparent calc(100% - 0.1em));
	border-radius: 0.3em 0.6em 0.4em 0.7em;
}

.alarms {
	padding: 1.3rem 1.6rem 1.4rem;
	background: rgba(244, 247, 248, 0.6);
	border: 2.5px solid var(--accent);
}

.alarms h3 {
	margin-bottom: 0.7rem;
	font-size: 1.7rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--accent);
}

.alarms ul {
	display: grid;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 1.05rem;
	line-height: 1.35;
}

.alarms li {
	position: relative;
	padding-left: 2rem;
}

.alarms li::before,
.alarms li::after {
	content: "";
	position: absolute;
	left: 0.2rem;
	top: 0.6em;
	width: 1.2rem;
	height: 3px;
	background: var(--ink);
	transform: rotate(45deg);
}

.alarms li::after {
	transform: rotate(-45deg);
}

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

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 12px 12px 1.2rem;
	background: var(--card);
	border: 1px solid #D6DEE3;
	box-shadow: var(--shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feed .card:nth-child(3n + 1) {
	transform: rotate(-3deg);
}

.feed .card:nth-child(3n + 2) {
	transform: rotate(2deg);
}

.feed .card:nth-child(3n) {
	transform: rotate(3deg);
}

.feed .card:hover {
	transform: rotate(0) translateY(-4px);
	box-shadow: 0 16px 26px rgba(20, 24, 28, 0.2);
}

.card .tape {
	top: -14px;
	left: 50%;
	width: 110px;
	transform: translateX(-50%) rotate(-3deg);
}

.feed .card:nth-child(3n) .tape {
	left: auto;
	right: -26px;
	transform: rotate(32deg);
}

.card-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #2A3036;
}

.card-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.08);
}

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

.card-title {
	margin: 0 0 0.5rem;
	font-family: var(--font-mono);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
}

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

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

.card-excerpt {
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--ink-2);
}

.card-excerpt p {
	margin: 0 0 0.5em;
}

.card-foot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
	margin-top: auto;
	padding-top: 0.6rem;
}

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

/* «Читать далее» — подчёркнутая надпись с длинной оранжевой стрелкой */
.read-more {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 5px;
}

.read-arrow {
	position: relative;
	display: inline-block;
	width: 3.2rem;
	height: 2px;
	background: var(--accent);
	transition: width 0.15s ease;
}

.read-arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: -4px;
	width: 9px;
	height: 9px;
	border: solid var(--accent);
	border-width: 2px 2px 0 0;
	transform: rotate(45deg);
}

.read-more:hover {
	color: var(--accent-2);
}

.read-more:hover .read-arrow {
	width: 4.4rem;
}

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

/* 04 Чертёж стола */
.desk-plan {
	position: relative;
	margin: 0;
	padding: 0 22%;
}

.desk-plan img {
	display: block;
	width: 100%;
	mix-blend-mode: multiply;
}

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

.callout {
	position: absolute;
	font-family: var(--font-hand);
	font-size: clamp(1.4rem, 2.4vw, 2.1rem);
	font-weight: 500;
	line-height: 1;
	color: var(--ink);
	white-space: nowrap;
}

.callout--plan {
	left: 3%;
	top: 18%;
}

.callout--stories {
	left: 1%;
	top: 64%;
}

.callout--stats {
	right: 2%;
	top: 13%;
}

.callout--replies {
	right: 3%;
	top: 50%;
	white-space: normal;
	width: 6.6em;
}

.callout--brief {
	right: 3%;
	top: 77%;
}

/* 05 Словарь: тёмная вставка в тонкую белую клетку */
.glossary {
	margin-top: 2.4rem;
	color: var(--on-dark);
	background-color: var(--graphite);
	background-image:
		linear-gradient(rgba(242, 245, 247, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242, 245, 247, 0.08) 1px, transparent 1px);
	background-size: 28px 28px;
}

.front > .glossary {
	padding: 3rem 0 3.2rem;
}

.glossary .sec-title {
	color: var(--on-dark);
}

.terms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-flow: column;
	grid-template-rows: repeat(4, auto);
	gap: 0.8rem 3rem;
	margin: 0;
}

.term {
	display: grid;
	grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
	align-items: baseline;
	gap: 1rem;
}

.term dt {
	font-family: var(--font-body);
	font-size: clamp(1.4rem, 2.2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.15;
}

.term dd {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--on-dark-2);
}

/* ---------- Внутренние страницы ---------- */
.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;
	background: var(--card);
	border: 1px solid #D6DEE3;
	box-shadow: var(--shadow);
}

.sheet::before {
	content: "";
	position: absolute;
	top: -14px;
	left: 2.4rem;
	width: 110px;
	height: 28px;
	background: var(--tape);
	transform: rotate(-3deg);
}

.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-color: var(--graphite);
	background-image:
		linear-gradient(rgba(242, 245, 247, 0.08) 1px, transparent 1px),
		linear-gradient(90deg, rgba(242, 245, 247, 0.08) 1px, transparent 1px);
	background-size: 28px 28px;
	border-top: 14px solid var(--paper);
	box-shadow: inset 0 3px 0 var(--graphite);
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3rem;
	padding: 3rem 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.45rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--on-dark);
}

.footer-col p {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--on-dark-2);
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.9;
}

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

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

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

.copyright {
	margin: 0;
	padding: 0.4rem 0 2.2rem;
	font-family: var(--font-mono);
	font-size: 0.9rem;
	text-align: center;
	color: var(--on-dark);
}

.copyright::after {
	content: "";
	display: block;
	width: min(560px, 100%);
	height: 7px;
	margin: 0.5rem auto 0;
	border-top: 2px solid var(--on-dark);
	border-bottom: 2px solid var(--on-dark);
}

/* ---------- 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;
}

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

	.cutout--photo {
		max-width: 620px;
		margin: 0 auto;
	}

	.desk-plan {
		padding: 0 18%;
	}

	.callout {
		font-size: 1.35rem;
	}
}

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

	.header-row {
		padding-bottom: 1.5rem;
	}

	.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 dashed var(--grid);
	}

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

	.course-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
	}

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

	.terms {
		grid-template-columns: minmax(0, 1fr);
		grid-auto-flow: row;
		grid-template-rows: none;
	}

	/* Чертёж: подписи уходят в нумерованный список под рисунком */
	.desk-plan {
		padding: 0;
	}

	.callouts {
		display: flex;
		flex-wrap: wrap;
		gap: 0.3rem 1.6rem;
		margin-top: 1rem;
	}

	.callout {
		position: static;
		width: auto !important;
		white-space: nowrap !important;
	}

	.callout::before {
		content: "→ ";
		color: var(--accent);
	}
}

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

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

	.header-row {
		background:
			linear-gradient(var(--ink), var(--ink)) bottom 0 left 22px / calc(100% - 38px) 3px no-repeat,
			linear-gradient(var(--ink), var(--ink)) bottom 7px left 22px / calc(100% - 38px) 3px no-repeat;
	}

	.brand {
		gap: 0.7rem;
		align-items: flex-start;
	}

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

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

	.brand-desc {
		font-size: 0.8rem;
	}

	.sec-title {
		font-size: 1.6rem;
	}

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

	.route-name {
		padding-top: 0;
	}

	.route-stops li {
		font-size: 0.82rem;
	}

	.route:not(:last-child) .route-track::after {
		display: none;
	}

	.cutout .tape--tl {
		left: -18px;
		width: 70px;
	}

	.cutout .tape--br {
		right: -18px;
		width: 70px;
	}

	.checklist {
		padding-left: 0;
		font-size: 1rem;
	}

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

	.feed .card:nth-child(n) {
		transform: rotate(-1.2deg);
	}

	.feed .card:nth-child(2n) {
		transform: rotate(1.2deg);
	}

	.term {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.1rem;
	}

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