/*
Theme Name: autozames-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: zam
*/
/* ---------- Шрифты (OFL, файлы в /fonts) ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-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: "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: 500; font-display: swap; src: url("fonts/oswald-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: "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: "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: #0E2230;
	--panel: #16323F;
	--grid: #24465A;
	--line: #24465A;
	--paper: #EFE7D6;
	--ink: #10222B;
	--text: #E8E2D4;
	--muted: #7E939C;
	--orange: #FF6B1A;
	--yellow: #F2C230;
	--footer: #0A1A24;
	--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);
	/* Миллиметровка: линии каждые 30 px и мелкая клетка 6 px */
	background-image:
		linear-gradient(var(--grid) 1px, transparent 1px),
		linear-gradient(90deg, var(--grid) 1px, transparent 1px),
		linear-gradient(rgba(36, 70, 90, 0.35) 1px, transparent 1px),
		linear-gradient(90deg, rgba(36, 70, 90, 0.35) 1px, transparent 1px);
	background-size: 30px 30px, 30px 30px, 6px 6px, 6px 6px;
	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: 500;
	line-height: 1.15;
	margin: 1.4em 0 0.5em;
	hyphens: none;
	overflow-wrap: normal;
}

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

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

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

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

/* ---------- Кнопка: рамка 2 px и оранжевая стрелка ---------- */
.cut-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.45em 0.9em;
	font-family: var(--font-mono);
	font-size: 0.85rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	color: var(--text);
	background: transparent;
	border: 2px solid var(--orange);
	border-radius: 0;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.cut-btn::after {
	content: " →";
	color: var(--orange);
}

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

.cut-btn:hover::after,
.cut-btn:focus-visible::after {
	color: var(--ink);
}

/* ---------- Шапка ---------- */
.site-header {
	background: var(--bg);
	border-bottom: 4px solid var(--orange);
}

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

.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: 82px;
	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.6vw, 3rem);
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

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

.nav-toggle {
	display: none;
	padding: 0.45em 0.9em;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	color: var(--orange);
	background: transparent;
	border: 2px solid var(--orange);
	border-radius: 0;
	cursor: pointer;
}

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

.main-nav li + li::before {
	content: "/";
	margin: 0 0.6rem;
	color: var(--muted);
}

.main-nav a {
	display: inline-block;
	font-family: var(--font-mono);
	font-size: 1.02rem;
	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(--orange);
}

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

.front > section + section {
	margin-top: 3rem;
}

.block-title {
	margin: 0 0 1.4rem;
	font-size: clamp(1.9rem, 3.6vw, 3.1rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.block-title--line {
	display: inline-block;
	padding-bottom: 0.35rem;
	border-bottom: 4px solid var(--orange);
}

/* Повёрнутый оранжевый штамп */
.paper-stamp,
.order-stamp {
	position: absolute;
	padding: 0.15rem 0.55rem;
	font-family: var(--font-head);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--orange);
	border: 2px solid var(--orange);
	transform: rotate(-12deg);
	opacity: 0.9;
	pointer-events: none;
}

/* ---------- Блок 1: лист сервисной книжки ---------- */
.front-top {
	display: grid;
	grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
	gap: 1.5rem;
	align-items: stretch;
}

.sheet-paper {
	position: relative;
	padding: clamp(1.4rem, 3vw, 2.4rem);
	color: var(--ink);
	background: var(--paper);
	outline: 1px solid rgba(16, 34, 43, 0.35);
	outline-offset: -12px;
	box-shadow: inset 0 0 0 1px var(--grid);
}

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

.paper-stamp {
	right: 1.6rem;
	bottom: 1.4rem;
}

.knock-body {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 1.5rem;
	align-items: center;
}

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

.knock-mark {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 9%;
	aspect-ratio: 1;
	font-family: var(--font-mono);
	font-size: clamp(0.8rem, 1.4vw, 1.25rem);
	font-weight: 500;
	line-height: 1;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--ink);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

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

.knock-list {
	margin: 0 0 1.2rem;
	padding: 0;
	list-style: none;
	counter-reset: knock;
}

.knock-list li {
	counter-increment: knock;
	font-family: var(--font-mono);
	font-size: clamp(1.05rem, 1.6vw, 1.4rem);
	font-weight: 500;
	line-height: 1.75;
	text-transform: uppercase;
}

.knock-list li::before {
	content: counter(knock) " ";
}

.knock-note {
	margin: 0;
	padding-bottom: 2.2rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.45;
}

/* ---------- Блок 2: заказ-наряд ---------- */
.order {
	position: relative;
	padding: clamp(1.4rem, 3vw, 2.2rem);
	background: rgba(22, 50, 63, 0.95);
	border: 2px solid var(--grid);
	outline: 1px solid var(--grid);
	outline-offset: -10px;
}

.order-title {
	margin: 0 0 0.8rem;
	font-size: clamp(1.7rem, 2.8vw, 2.5rem);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.order-sub {
	margin: 0 0 1.4rem;
	font-family: var(--font-mono);
	font-size: 0.95rem;
	line-height: 1.45;
}

.order-list {
	margin: 0;
	padding: 0 0 2.6rem;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.98rem;
}

.order-list li {
	position: relative;
	padding: 0.25rem 0 0.25rem 2.2rem;
}

.order-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 1.1rem;
	height: 1.1rem;
	border: 1.5px solid var(--text);
}

/* Рукописная галочка */
.order-list li.is-done::after {
	content: "";
	position: absolute;
	left: 0.1rem;
	top: -0.15rem;
	width: 1.5rem;
	height: 1.5rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13c2 1 4 3 5 6 3-7 8-13 14-17' fill='none' stroke='%23FF6B1A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.order-stamp {
	right: 1.4rem;
	bottom: 1.2rem;
	font-size: 1.05rem;
	background: rgba(14, 34, 48, 0.6);
}

/* ---------- Последние записи ---------- */
.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 1rem 1rem 1.1rem 2.4rem;
	color: var(--ink);
	background-color: var(--paper);
	/* Перфорация по левому краю */
	background-image: radial-gradient(circle, var(--bg) 0 5px, transparent 5.6px);
	background-size: 2.4rem 22px;
	background-repeat: repeat-y;
	background-position: left 4px;
}

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

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

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

.card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.8rem;
}

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

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

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

.card-num {
	flex: none;
	padding: 0.1rem 0.4rem;
	font-family: var(--font-mono);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--orange);
	border: 2px solid var(--orange);
}

.card-excerpt {
	font-family: var(--font-mono);
	font-size: 0.88rem;
	line-height: 1.45;
}

.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-family: var(--font-mono);
	font-size: 0.82rem;
	color: #4A5D66;
}

.card .cut-btn {
	color: var(--ink);
}

.card .cut-btn:hover,
.card .cut-btn:focus-visible {
	color: var(--ink);
}

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

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

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

/* ---------- Блок 3: регламент по пробегу ---------- */
.mileage {
	padding: clamp(1.3rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.2rem);
	color: var(--ink);
	background: var(--paper);
	box-shadow: inset 0 0 0 1px var(--grid);
}

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

/* Линейка: мелкие деления, крупные через 5, оранжевые отметки через 10 */
.mileage-ruler {
	height: 30px;
	background:
		repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 100px) left center / 100% 30px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 50px) left center / 100% 24px no-repeat,
		repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 10px) left center / 100% 14px no-repeat;
}

.mileage-list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.6rem 1.4rem;
	margin: 0.9rem 0 0.8rem;
	padding: 0;
	list-style: none;
	font-family: var(--font-mono);
	font-size: 0.98rem;
	line-height: 1.35;
	text-align: center;
}

.mileage-list b {
	font-weight: 700;
	color: var(--orange);
	white-space: nowrap;
}

.mileage-note {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 0.95rem;
}

/* ---------- Блок 4: симптом — причина ---------- */
.symptom {
	padding: clamp(1.3rem, 3vw, 2rem) clamp(1.2rem, 3vw, 2.2rem);
	background: rgba(22, 50, 63, 0.95);
	border: 2px solid var(--grid);
}

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

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

.symptom-table thead th {
	padding: 0 1rem 0.4rem;
	font-size: 0.8rem;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
	color: var(--muted);
}

.symptom-table td {
	width: 50%;
	padding: 0.45rem 1rem;
	border-top: 1.5px dashed rgba(232, 226, 212, 0.45);
}

.symptom-table tr:last-child td {
	border-bottom: 1.5px dashed rgba(232, 226, 212, 0.45);
}

.symptom-table td + td,
.symptom-table th + th {
	border-left: 1.5px dashed rgba(232, 226, 212, 0.45);
}

.symptom-table td + td::before {
	content: "⟶";
	margin-right: 0.8rem;
	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(--orange);
	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(--orange);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.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: #FF9A5C;
	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: 4px solid var(--orange);
}

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

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

.footer-col:first-child .widget-title {
	font-family: var(--font-head);
	font-size: 2.4rem;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

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

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

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

.copyright {
	font-family: var(--font-mono);
	font-size: 0.9rem;
	color: var(--text);
}

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

	.mileage-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		text-align: left;
	}
}

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

	.main-nav li + li::before {
		content: none;
	}

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

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

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

	.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: 52px;
	}

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

	.knock-pic {
		max-width: 420px;
	}

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

	.symptom-table,
	.symptom-table tbody,
	.symptom-table tr,
	.symptom-table td {
		display: block;
		width: auto;
	}

	.symptom-table thead {
		display: none;
	}

	.symptom-table tr {
		padding: 0.5rem 0;
		border-top: 1.5px dashed rgba(232, 226, 212, 0.45);
	}

	.symptom-table tr:last-child {
		border-bottom: 1.5px dashed rgba(232, 226, 212, 0.45);
	}

	.symptom-table td,
	.symptom-table tr:last-child td {
		padding: 0.1rem 0;
		border: 0;
	}

	.symptom-table td + td {
		border-left: 0;
	}

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