/*
Theme Name: stgauto-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: stg
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-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: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-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 Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-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: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-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: "Roboto Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/roboto-condensed-latin-800-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: #16181B;
	--panel: #1E2124;
	--grid: #2A2E33;
	--line: #3A3F45;
	--paper: #E9E5DA;
	--paper-grid: #D2CCBD;
	--ink: #1A1C1E;
	--text: #EDEAE3;
	--muted: #8C9096;
	--yellow: #FFC300;
	--orange: #FF4D00;
	--khaki: #4A5240;
	--footer: #121416;
	--font-head: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--font-mono: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
	--cut: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* ---------- База ---------- */
*,
*::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);
	/* Чертёжная сетка: шаг 8 px и крупная клетка через 5 */
	background-image:
		linear-gradient(rgba(42, 46, 51, 0.9) 1px, transparent 1px),
		linear-gradient(90deg, rgba(42, 46, 51, 0.9) 1px, transparent 1px),
		linear-gradient(rgba(42, 46, 51, 0.4) 1px, transparent 1px),
		linear-gradient(90deg, rgba(42, 46, 51, 0.4) 1px, transparent 1px);
	background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
	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: 700;
	line-height: 1.15;
	margin: 1.4em 0 0.5em;
	hyphens: none;
	overflow-wrap: normal;
}

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

a:hover,
a:focus-visible {
	color: var(--yellow);
	text-decoration-color: var(--yellow);
}

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

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

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

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

/* ---------- Шапка ---------- */
.site-header {
	background: rgba(22, 24, 27, 0.75);
	border-top: 6px solid var(--yellow);
}

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

.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: 84px;
	height: auto;
}

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

.brand-name {
	font-family: var(--font-head);
	font-size: clamp(1.7rem, 3.4vw, 2.7rem);
	font-weight: 700;
	line-height: 1.05;
}

.brand-desc {
	margin-top: 0.35rem;
	font-size: clamp(0.92rem, 1.3vw, 1.12rem);
	line-height: 1.3;
}

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

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

.main-nav a {
	display: inline-block;
	font-size: 1.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(--yellow);
}

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

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

.block-title {
	margin: 0 0 1.6rem;
	font-size: clamp(1.8rem, 3.4vw, 2.9rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: var(--text);
}

.block-title--center {
	text-align: center;
}

/* ---------- Блок 1: разбор по узлам на кальке ---------- */
.front .nodes {
	padding: 2rem 0 2.2rem;
	color: var(--ink);
	background-color: var(--paper);
	background-image:
		linear-gradient(rgba(150, 140, 120, 0.35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 140, 120, 0.35) 1px, transparent 1px),
		linear-gradient(rgba(150, 140, 120, 0.14) 1px, transparent 1px),
		linear-gradient(90deg, rgba(150, 140, 120, 0.14) 1px, transparent 1px);
	background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
	border-top: 1px solid var(--paper-grid);
	border-bottom: 1px solid var(--paper-grid);
}

.nodes-grid {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr) 34px;
	gap: 0 1.8rem;
	align-items: stretch;
}

.nodes-nums {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border-right: 1.5px solid var(--ink);
}

.nodes-nums li {
	flex: 1;
	display: flex;
	align-items: center;
	padding-left: 0.9rem;
	font-size: 1.7rem;
	line-height: 1;
	border-bottom: 1px solid rgba(26, 28, 30, 0.45);
}

.nodes-nums li:first-child {
	border-left: 4px solid var(--ink);
}

.nodes-nums li:last-child {
	border-bottom: 0;
}

.nodes .block-title {
	margin: 0.2rem 0 0.3rem;
	color: var(--ink);
}

.block-sub {
	margin: 0 0 0.8rem;
	font-size: clamp(1.1rem, 1.6vw, 1.4rem);
}

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

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

.nodes-lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.nodes-lines path {
	fill: none;
	stroke: var(--orange);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.nodes-lines marker path {
	stroke: none;
	fill: var(--orange);
}

.node-label {
	position: absolute;
	padding: 0 0.15em;
	font-size: clamp(0.62rem, 1.32vw, 1.3rem);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--orange);
	background: rgba(233, 229, 218, 0.9);
	border-bottom: 2px solid var(--orange);
}

.node-label b {
	display: none;
}

.nodes-list {
	display: none;
	margin: 1rem 0 0;
	padding-left: 1.6rem;
	font-weight: 700;
	color: var(--orange);
}

.nodes-list li::marker {
	color: var(--ink);
}

.nodes-side {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.2;
	text-align: center;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	border-right: 1.5px solid var(--ink);
	padding-right: 0.5rem;
}

/* ---------- Блок 2: дуэль ---------- */
.duel-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: 960px;
	margin: 0 auto;
}

.duel-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0.4rem 2rem;
	text-align: center;
}

.duel-col + .duel-col {
	border-left: 2px solid var(--text);
}

.duel-col img {
	width: 100%;
	max-width: 380px;
	min-height: 0;
}

.duel-col figcaption {
	margin-top: 1rem;
	font-size: 1.3rem;
	line-height: 1.35;
}

.duel-col figcaption b {
	display: block;
	font-weight: 700;
}

.duel-verdict {
	margin: 1.6rem 0 0;
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	text-align: center;
}

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

.card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 0 1.1rem 1.1rem;
	background: var(--panel);
	border: 1px solid var(--grid);
	border-radius: 6px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

/* Перфорация сверху, как у ленты самописца */
.card-holes {
	height: 30px;
	margin: 0 -0.2rem;
	background: radial-gradient(circle, #0C0D0F 0 4px, transparent 4.6px) center / 22px 30px repeat-x;
}

.card-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	text-decoration: none;
	background-color: #1A1D20;
	background-image:
		linear-gradient(rgba(58, 63, 69, 0.8) 1px, transparent 1px),
		linear-gradient(90deg, rgba(58, 63, 69, 0.8) 1px, transparent 1px);
	background-size: 16px 16px;
	border: 1px solid var(--grid);
}

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

.card-thumb .card-blank {
	width: auto;
	height: auto;
	max-width: 74%;
	max-height: 80%;
	object-fit: contain;
}

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

.card-title {
	margin: 0 0 0.45rem;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.2;
}

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

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

.card-excerpt {
	font-size: 1rem;
	line-height: 1.45;
	color: #C9C6BE;
}

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

.card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem 1rem;
	margin-top: auto;
}

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

.feed-more {
	margin: 2.2rem 0 0;
	text-align: center;
}

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

/* ---------- Сезонный чек-лист на жёлтой полосе ---------- */
.front .season {
	padding: 2.4rem 0 2.2rem;
	color: var(--ink);
	background: var(--yellow);
}

.season .block-title {
	margin-bottom: 1rem;
	color: var(--ink);
}

.season-scale {
	height: 22px;
	background:
		linear-gradient(var(--ink), var(--ink)) left bottom / 100% 3px no-repeat,
		linear-gradient(var(--ink), var(--ink)) left bottom / 3px 22px no-repeat,
		linear-gradient(var(--ink), var(--ink)) right bottom / 3px 22px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 48px) left bottom / 100% 12px no-repeat;
}

.season-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.4rem 1.6rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 1.1rem;
}

.season-list b {
	font-weight: 800;
}

/* ---------- Запчасти по миру ---------- */
.world-map {
	position: relative;
	max-width: 920px;
	margin: 0 auto;
}

.world-map img {
	display: block;
	width: 100%;
}

.pin {
	position: absolute;
	font-size: clamp(0.7rem, 1.25vw, 1.05rem);
	line-height: 1;
	white-space: nowrap;
	color: var(--text);
	text-shadow: 0 0 3px var(--bg), 0 0 6px var(--bg);
	transform: translate(0, -50%);
}

.pin::before {
	content: "";
	position: absolute;
	top: 50%;
	width: 0.8em;
	height: 0.8em;
	background: var(--orange);
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--bg);
	transform: translate(-50%, -50%);
}

.pin--r {
	padding-left: 0.9em;
}

.pin--r::before {
	left: 0;
}

.pin--l {
	padding-right: 0.9em;
	transform: translate(-100%, -50%);
}

.pin--l::before {
	left: 100%;
}

.world-list {
	display: none;
	margin: 1rem 0 0;
	font-weight: 700;
	text-align: center;
	color: var(--orange);
}

.world-note {
	margin: 1.4rem 0 0;
	font-size: clamp(1.15rem, 2vw, 1.6rem);
	text-align: center;
}

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

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

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

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

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

.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(--yellow);
	clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.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: #FFD54D;
	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(--panel);
	border-top: 1px solid var(--grid);
}

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

.footer-col .widget-title {
	font-size: 1.5rem;
	font-weight: 700;
}

.footer-col:nth-child(n+2) .widget-title {
	text-transform: uppercase;
}

.footer-col a {
	text-decoration: underline dotted var(--muted);
	text-underline-offset: 4px;
}

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

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

/* ---------- Адаптив ---------- */
@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: 66px;
	}

	.nodes-grid {
		grid-template-columns: 56px minmax(0, 1fr);
		gap: 0 1rem;
	}

	.nodes-nums li {
		padding-left: 0.5rem;
		font-size: 1.2rem;
	}

	.nodes-side {
		grid-column: 1 / -1;
		margin-top: 1rem;
		padding: 0.6rem 0 0;
		text-align: left;
		writing-mode: horizontal-tb;
		transform: none;
		border-right: 0;
		border-top: 1.5px solid var(--ink);
	}

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

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

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

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

	.brand {
		gap: 0.8rem;
	}

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

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

	.nodes-nums {
		display: none;
	}

	.nodes-lines,
	.node-label {
		display: none;
	}

	.nodes-list {
		display: block;
	}

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

	.duel-col {
		padding: 1.2rem 0;
	}

	.duel-col + .duel-col {
		border-left: 0;
		border-top: 2px solid var(--text);
	}

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

	.season-list {
		flex-direction: column;
	}

	.pin {
		width: 10px;
		height: 10px;
		padding: 0;
		font-size: 0;
		transform: none;
	}

	.pin::before {
		left: 50%;
		width: 10px;
		height: 10px;
	}

	.world-list {
		display: block;
	}

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