/*
Theme Name: aeroptimo-ru
Author: Мария Соловьёва
Description: Тема статейного сайта о вентиляции и кондиционировании: монтажный чертёж на оцинкованном листе, графитовые полосы, изометрия и сигнальные оранжевые метки.
Version: 1.1
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: aeroptimo
*/

/* ---------- Шрифты (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: 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+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-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: 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+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: 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+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-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: 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+2122, U+2190-2193, U+2212, U+FEFF, U+FFFD;
}

/* ---------- Палитра ---------- */
:root {
	--zinc: #D5D9D6;
	--zinc-light: #E3E6E4;
	--zinc-deep: #C6CBC8;
	--graphite: #1F2527;
	--graphite-2: #262D30;
	--ink: #14181A;
	--ink-on-dark: #E8EBE9;
	--muted: #5C6664;
	--signal: #E0521C;
	--signal-dark: #B83F12;
	--patina: #2C6B63;
	--steel: #8F9895;
	--brass: #A9803F;
	--font-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
	--font-mono: "JetBrains Mono", "IBM Plex Mono", "Cascadia Mono", Consolas, "DejaVu Sans Mono", "Courier New", monospace;
	--grid-light: linear-gradient(rgba(44, 107, 99, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 107, 99, 0.09) 1px, transparent 1px);
	--grid-dark: linear-gradient(rgba(232, 235, 233, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(232, 235, 233, 0.035) 1px, transparent 1px);
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.33 0 0 0 0 0.32 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
	--rivets: radial-gradient(circle at 50% 50%, #EEF1EF 0 1.5px, #A7AFAC 2.2px, #6C7572 3.2px, transparent 3.8px);
}

/* ---------- База ---------- */
*,
*::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-mono);
	font-size: 15px;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--zinc);
	background-image: var(--grain), var(--grid-light);
	background-size: 180px 180px, 40px 40px, 40px 40px;
	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.08;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 1.4em 0 0.55em;
	hyphens: auto;
	overflow-wrap: break-word;
}

a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--signal);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.12s, background-color 0.12s;
}

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

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

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

@media (min-width: 960px) {
	.shell {
		width: 85%;
	}
}

/* ---------- Кнопки-бирки ---------- */
.tag-btn,
.search-form button,
.form-submit input[type="submit"],
.cookie-banner button {
	display: inline-block;
	padding: 0.62em 1.15em;
	font-family: var(--font-mono);
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	background: var(--signal);
	border: 1px solid var(--ink);
	border-radius: 0;
	cursor: pointer;
	transition: transform 0.1s, background-color 0.1s, color 0.1s;
}

.tag-btn:hover,
.tag-btn:focus-visible,
.search-form button:hover,
.form-submit input[type="submit"]:hover,
.cookie-banner button:hover {
	color: var(--ink-on-dark);
	background: var(--graphite);
	transform: translate(2px, 2px);
}

/* ---------- Фланцевые полосы с заклёпками ---------- */
.flange {
	height: 18px;
	background:
		var(--rivets) 6px 50% / 30px 18px repeat-x,
		linear-gradient(180deg, #F1F3F2 0%, #B9C0BD 45%, #8E9794 100%);
	border-top: 1px solid #6C7572;
	border-bottom: 1px solid #3A4245;
}

/* ---------- Шапка ---------- */
.site-header {
	color: var(--ink-on-dark);
	background-color: var(--graphite);
	background-image: var(--grid-dark);
	background-size: 40px 40px;
}

.site-header::before {
	content: "";
	display: block;
	height: 12px;
	background: var(--rivets) 10px 50% / 30px 12px repeat-x;
	opacity: 0.55;
}

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

.brand {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-width: 0;
	text-decoration: none;
	color: inherit;
}

.brand:hover {
	color: inherit;
}

.brand-mark,
.brand-logo {
	flex: 0 0 auto;
	display: block;
	width: 72px;
	height: auto;
}

.brand-text {
	min-width: 0;
}

.brand-name {
	display: block;
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(1.7rem, 3.4vw, 2.9rem);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	overflow-wrap: anywhere;
}

.brand-desc {
	display: block;
	margin-top: 0.45rem;
	font-size: 0.74rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #B9C1BE;
}

.nav-toggle {
	display: none;
	padding: 0.55em 0.9em;
	font: 700 0.8rem/1 var(--font-mono);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-on-dark);
	background: transparent;
	border: 1px solid var(--steel);
	cursor: pointer;
}

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

.main-nav a {
	display: inline-block;
	padding: 0.3em 0;
	font-family: var(--font-head);
	font-size: 1.02rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ink-on-dark);
	border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav .current-menu-item > a {
	color: #fff;
	border-bottom-color: var(--signal);
}

/* ---------- Размерные стрелки по краям секций ---------- */
.edge-marks {
	position: relative;
}

.edge-marks::before,
.edge-marks::after {
	content: "";
	position: absolute;
	top: 28px;
	bottom: 28px;
	width: 9px;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M0 0l4.5 9L9 0' fill='none' stroke='%238F9895' stroke-width='1.2'/%3E%3C/svg%3E") 50% 100% / 9px 9px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M0 9l4.5-9L9 9' fill='none' stroke='%238F9895' stroke-width='1.2'/%3E%3C/svg%3E") 50% 0 / 9px 9px no-repeat,
		linear-gradient(var(--steel), var(--steel)) 50% 50% / 1px calc(100% - 4px) no-repeat;
	opacity: 0.7;
	pointer-events: none;
}

.edge-marks::before {
	left: 1.3%;
}

.edge-marks::after {
	right: 1.3%;
}

/* ---------- Заголовки секций ---------- */
.sect-title {
	margin: 0 0 2.2rem;
	font-size: clamp(2rem, 4.4vw, 4rem);
	line-height: 1;
}

.sect-num {
	color: var(--signal);
	margin-right: 0.18em;
}

.sect-kicker {
	display: inline-block;
	margin-bottom: 0.6rem;
	font-family: var(--font-head);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--signal);
	letter-spacing: 0.08em;
}

.is-dark {
	color: var(--ink-on-dark);
	background-color: var(--graphite);
	background-image: var(--grid-dark);
	background-size: 40px 40px;
}

/* ---------- Блок 1: приточная установка в разрезе ---------- */
.ahu {
	position: relative;
	overflow: hidden;
}

.ahu-stage {
	position: relative;
}

.ahu-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2304 / 1048;
}

.ahu-head {
	position: absolute;
	top: 6.2%;
	left: 7.5%;
	right: 36%;
}

.ahu-title {
	margin: 0;
	font-size: clamp(2.2rem, 4.5vw, 5.4rem);
	line-height: 1.02;
	color: #DDE1DF;
}

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

.ahu-label {
	position: absolute;
	margin: 0;
	font-size: clamp(0.62rem, 0.92vw, 0.95rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ink-on-dark);
	white-space: nowrap;
}

.ahu-label.to-left {
	text-align: right;
}

.ahu-label--intake { right: 66.1%; top: 33.6%; }
.ahu-label--filter { right: 57.0%; top: 33.6%; }
.ahu-label--heater { right: 48.9%; top: 33.6%; }
.ahu-label--fan { right: 38.6%; top: 22.6%; }
.ahu-label--silencer { left: 65.0%; top: 10.3%; }
.ahu-label--supply { left: 79.0%; top: 6.6%; white-space: normal; width: 12%; }

.ahu-flow {
	position: absolute;
	left: 66.1%;
	top: 69.4%;
	padding: 0.32em 0.75em;
	font-size: clamp(0.8rem, 1.25vw, 1.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--signal);
	border: 1px solid var(--ink);
	white-space: nowrap;
}

/* ---------- Блок 2: подбор по расходу и напору ---------- */
.duty {
	position: relative;
	padding: 4.2rem 0 3rem;
}

.duty-run {
	position: absolute;
	top: 0;
	right: 0;
	width: 28.1%;
	height: auto;
	display: block;
	pointer-events: none;
}

.duty .shell {
	position: relative;
}

.duty .sect-title {
	max-width: 70%;
}

.duty-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: 2rem 4.5rem;
	align-items: start;
}

.nomo {
	position: relative;
	margin: 0;
	padding: 0 2.8rem 2.6rem 2.4rem;
}

.nomo-field {
	position: relative;
}

.nomo-img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1114 / 758;
}

.nomo-axis,
.nomo-line,
.nomo-point {
	position: absolute;
	margin: 0;
	font-size: clamp(0.66rem, 0.95vw, 0.92rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
}

.nomo-axis--x {
	left: 2.4rem;
	right: 2.8rem;
	bottom: 0.2rem;
	text-align: center;
}

.nomo-axis--y {
	left: 0;
	top: 0;
	bottom: 2.6rem;
	width: 1.6rem;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	text-align: center;
}

.nomo-line {
	right: 0;
	font-family: var(--font-head);
	font-size: clamp(0.85rem, 1.15vw, 1.15rem);
	font-weight: 500;
}

.nomo-line--a1 { top: 0.3%; }
.nomo-line--a2 { top: 12.6%; }
.nomo-line--a3 { top: 22.3%; }

.nomo-point {
	left: 53.3%;
	top: 39.6%;
	padding: 0.1em 0.35em;
	color: var(--signal);
	background: rgba(213, 217, 214, 0.92);
}

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

.duty-notes li {
	padding: 0.85rem 0.2rem 0.75rem;
	font-size: clamp(0.85rem, 1.1vw, 1.08rem);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--steel);
}

.duty-notes li:first-child {
	border-top: 1px solid var(--steel);
}

.duty-text {
	margin-top: 1.4rem;
	color: var(--muted);
	font-size: 0.86rem;
}

/* ---------- Последние записи: бирки ---------- */
.journal {
	position: relative;
	z-index: 2;
	padding: 1rem 0 0;
	margin-bottom: -7rem;
}

.journal-grid {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr);
	gap: 2rem 3rem;
	align-items: end;
}

.journal-head {
	padding-bottom: 8.5rem;
}

.journal-head .sect-title {
	margin-bottom: 1rem;
}

.journal-link {
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tags {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.4rem;
	align-items: start;
}

.tags > .card:nth-child(2) {
	margin-top: 2.6rem;
}

.journal-empty {
	padding: 1.4rem 1.6rem;
	background: var(--zinc-light);
	border: 1px solid var(--ink);
}

/* Карточка-бирка (используется и на главной, и в лентах) */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 2.1rem 1.05rem 1.1rem;
	color: var(--ink);
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 3px),
		linear-gradient(165deg, #E9ECEA 0%, #C3C9C6 48%, #D7DBD9 100%);
	border: 1px solid var(--ink);
	box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.45), inset 0 0 0 4px rgba(20, 24, 26, 0.35);
}

.card::before {
	content: "";
	position: absolute;
	top: 0.75rem;
	left: 50%;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	border-radius: 50%;
	background: var(--zinc);
	border: 1px solid var(--ink);
	box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.35);
}

.card-num {
	position: absolute;
	top: 0.45rem;
	right: 0.85rem;
	font-family: var(--font-head);
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1;
}

.card-thumb {
	display: block;
	margin: 0.4rem 0 0.9rem;
	text-decoration: none;
}

.card-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: 1px solid var(--ink);
	background: rgba(255, 255, 255, 0.25);
}

.card-thumb img.is-drawing {
	object-fit: contain;
	border-color: transparent;
	background: none;
}

.card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.card-title {
	margin: 0 0 0.5rem;
	font-size: 1.22rem;
	line-height: 1.12;
}

.card-title a {
	text-decoration: none;
}

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

.card-excerpt {
	font-size: 0.82rem;
	line-height: 1.45;
	text-transform: none;
	hyphens: auto;
}

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

.card-date {
	display: block;
	margin: auto 0 0.8rem;
	padding-top: 0.3rem;
	font-size: 0.8rem;
	color: var(--muted);
}

.card .tag-btn {
	align-self: stretch;
	text-align: center;
}

/* ---------- Блок 3: атлас узлов ---------- */
.atlas {
	padding: 10rem 0 4.5rem;
}

.atlas-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 2.4rem 2.2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.atlas-item {
	min-width: 0;
}

.atlas-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 22 / 17;
	object-fit: contain;
	margin-bottom: 1.1rem;
}

.atlas-num {
	display: block;
	font-family: var(--font-head);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: var(--steel);
}

.atlas-name {
	display: block;
	margin: 0.45rem 0 0;
	padding-bottom: 0.65rem;
	font-size: clamp(0.9rem, 1.15vw, 1.15rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-bottom: 1px solid var(--steel);
}

.atlas-spec {
	margin: 0.65rem 0 0;
	font-size: 0.76rem;
	line-height: 1.5;
	color: #A9B1AE;
}

/* ---------- Блок 4: сервисный бланк ---------- */
.service {
	padding: 4.5rem 0 4.8rem;
}

.service-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 2.5rem 4rem;
	align-items: center;
}

.service-sheet {
	position: relative;
	min-width: 0;
}

.service-table {
	width: 100%;
	border-collapse: collapse;
	font-size: clamp(0.82rem, 1.15vw, 1.12rem);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.service-table th,
.service-table td {
	padding: 0.7rem 1rem 0.55rem 0;
	text-align: left;
	vertical-align: bottom;
	border: 0;
	border-bottom: 1px solid var(--steel);
}

.service-table th {
	font-weight: 700;
	border-bottom: 2px solid var(--ink);
}

.service-table td {
	font-weight: 400;
}

.stamp {
	position: absolute;
	right: 1%;
	bottom: -9%;
	padding: 0.2em 0.5em;
	font-family: var(--font-head);
	font-size: clamp(1.4rem, 2.5vw, 2.5rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--signal);
	border: 3px solid var(--signal);
	outline: 1px solid var(--signal);
	outline-offset: 3px;
	transform: rotate(-16deg);
	opacity: 0.88;
	mix-blend-mode: multiply;
	pointer-events: none;
}

.service-title {
	margin: 0;
	font-size: clamp(2.2rem, 4.6vw, 4.6rem);
	line-height: 1;
}

.service-note {
	margin: 1.2rem 0 0;
	color: var(--muted);
	font-size: 0.86rem;
}

/* ---------- Внутренние страницы ---------- */
.page-head {
	padding: 2.2rem 0 2.6rem;
}

.page-head h1 {
	margin: 0.8rem 0 0;
	font-size: clamp(2rem, 4.6vw, 4rem);
	line-height: 1.02;
	color: #DDE1DF;
}

.page-head .entry-meta {
	margin-top: 0.9rem;
	color: #A9B1AE;
}

.breadcrumbs {
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #A9B1AE;
}

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

.breadcrumbs .sep {
	margin: 0 0.35em;
	color: var(--signal);
}

.site-main {
	padding: 3rem 0 4.5rem;
}

.layout-single {
	display: block;
}

.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
	column-gap: 6%;
	align-items: start;
}

.content-area {
	min-width: 0;
}

.sheet {
	padding: 2.2rem 2.4rem 2.4rem;
	background: var(--zinc-light);
	border: 1px solid var(--ink);
}

.entry-meta {
	font-size: 0.82rem;
	color: var(--muted);
}

.entry-meta a {
	color: inherit;
}

.entry-thumb {
	margin: 0 0 1.8rem;
}

.entry-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--ink);
}

.entry-content {
	font-size: 0.98rem;
	line-height: 1.75;
	hyphens: auto;
}

.entry-content > *:first-child {
	margin-top: 0;
}

.entry-content h2 {
	font-size: 1.9rem;
}

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

.entry-content h4 {
	font-size: 1.15rem;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.6em;
}

.entry-content ul {
	list-style: none;
	padding-left: 1.4em;
}

.entry-content ul > li {
	position: relative;
	margin-bottom: 0.35em;
}

.entry-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.25em;
	top: 0.62em;
	width: 0.5em;
	height: 0.5em;
	background: var(--signal);
}

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

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 1.2rem 1.5rem;
	background: var(--zinc);
	border: 1px solid var(--ink);
	border-left: 6px solid var(--signal);
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content table {
	width: 100%;
	margin: 1.4em 0;
	border-collapse: collapse;
	font-size: 0.88rem;
	border: 1px solid var(--ink);
}

.entry-content th,
.entry-content td {
	padding: 0.55rem 0.75rem;
	text-align: left;
	border: 1px solid var(--steel);
}

.entry-content th {
	color: var(--ink-on-dark);
	background: var(--graphite);
	border-color: var(--ink);
}

.entry-content figure {
	margin: 1.6em 0;
}

.entry-content figcaption {
	margin-top: 0.4rem;
	font-size: 0.8rem;
	color: var(--muted);
}

.entry-content img {
	display: block;
	border: 1px solid var(--ink);
}

.entry-content pre,
.entry-content code {
	font-family: var(--font-mono);
	background: var(--zinc);
}

.entry-content pre {
	padding: 1rem 1.2rem;
	overflow-x: auto;
	border: 1px solid var(--steel);
}

.entry-content hr {
	height: 0;
	margin: 2em 0;
	border: 0;
	border-top: 1px dashed var(--steel);
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1rem;
	font-size: 0.82rem;
	border-top: 1px solid var(--steel);
}

.post-nav {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 1.2rem;
	margin-top: 2rem;
}

.post-nav a {
	display: block;
	padding: 1rem 1.2rem;
	text-decoration: none;
	background: var(--zinc-light);
	border: 1px solid var(--ink);
}

.post-nav a:hover {
	color: var(--ink);
	border-color: var(--signal);
	transform: translate(2px, 2px);
}

.post-nav .nav-next {
	text-align: right;
}

.post-nav small {
	display: block;
	font-size: 0.74rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--muted);
}

.post-nav strong {
	font-family: var(--font-head);
	font-weight: 500;
	font-size: 1.05rem;
	text-transform: uppercase;
}

.feed {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.6rem;
}

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

.feed-empty {
	padding: 1.6rem 1.8rem;
	background: var(--zinc-light);
	border: 1px solid var(--ink);
}

/* ---------- Пагинация (type => plain) ---------- */
.pager {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin-top: 2.6rem;
}

.pager .page-numbers {
	display: inline-block;
	min-width: 2.6em;
	padding: 0.5em 0.8em;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	color: var(--ink);
	background: var(--zinc-light);
	border: 1px solid var(--ink);
}

.pager a.page-numbers:hover {
	color: #fff;
	background: var(--graphite);
}

.pager .page-numbers.current {
	color: #fff;
	background: var(--signal);
}

.pager .page-numbers.dots {
	min-width: 0;
	background: none;
	border-color: transparent;
}

/* ---------- Сайдбар ---------- */
.sidebar {
	min-width: 0;
	padding: 1.6rem 1.5rem;
	color: var(--ink);
	background: var(--zinc-deep);
	border: 1px solid var(--ink);
	border-top: 6px solid var(--patina);
}

.sidebar .widget + .widget {
	margin-top: 2rem;
}

.sidebar .widget-title {
	margin: 0 0 0.9rem;
	font-size: 1.25rem;
	color: var(--ink);
}

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

.sidebar li {
	padding: 0.55rem 0;
	font-size: 0.86rem;
	line-height: 1.45;
	border-bottom: 1px solid var(--steel);
}

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

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

.sidebar .post-date,
.sidebar .wp-block-latest-posts__post-date {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
}

/* ---------- Комментарии ---------- */
.comments {
	margin-top: 2.6rem;
}

.comments-title,
.comment-reply-title {
	font-size: 1.5rem;
	margin: 0 0 1rem;
}

.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(--zinc-light);
	border: 1px solid var(--ink);
}

.comment-head {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.8rem;
	color: var(--muted);
}

.comment-head b {
	color: var(--ink);
}

.comment-wait {
	font-size: 0.8rem;
	color: var(--signal-dark);
}

.comment-reply-link {
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
}

.comment-respond {
	margin-top: 1.8rem;
	padding: 1.6rem 1.6rem;
	background: var(--zinc-light);
	border: 1px solid var(--ink);
}

.comment-form label {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
}

.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.75rem;
	font: inherit;
	font-size: 0.9rem;
	color: var(--ink);
	background: #F2F4F3;
	border: 1px solid var(--ink);
	border-radius: 0;
}

.comment-form .comment-form-cookies-consent label {
	display: inline;
	font-weight: 400;
	text-transform: none;
}

.comment-notes,
.logged-in-as {
	font-size: 0.82rem;
	color: var(--muted);
}

/* ---------- Поиск и 404 ---------- */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 560px;
}

.search-form label {
	flex: 1;
	min-width: 0;
}

.lost {
	padding: 1rem 0 2rem;
}

.lost-code {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(6rem, 18vw, 13rem);
	font-weight: 700;
	line-height: 0.9;
	margin-bottom: 1.4rem;
	color: var(--graphite);
	-webkit-text-stroke: 2px var(--graphite);
}

.lost-code span {
	color: var(--signal);
}

.lost p {
	max-width: 620px;
}

.lost .tag-btn {
	margin-top: 1.4rem;
}

/* ---------- Подвал ---------- */
.site-footer {
	color: var(--ink-on-dark);
	background-color: var(--graphite);
	background-image: var(--grid-dark);
	background-size: 40px 40px;
}

.footer-cols {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem 3.5rem;
	padding: 2.6rem 0 2.2rem;
}

.footer-col {
	min-width: 0;
	font-size: 0.86rem;
	line-height: 1.5;
	color: #C9CFCC;
}

.footer-col .widget-title {
	margin: 0 0 0.6rem;
	font-family: var(--font-mono);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: #fff;
}

.footer-col p {
	margin: 0 0 0.6em;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.footer-col ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-col li {
	margin-bottom: 0.25rem;
}

.footer-col a {
	color: var(--ink-on-dark);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-decoration-color: transparent;
}

.footer-col a:hover,
.footer-col a:focus-visible {
	color: #fff;
	text-decoration-color: var(--signal);
}

.copyright {
	margin: 0;
	padding: 1.1rem 0 1.4rem;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-align: center;
	text-transform: uppercase;
	color: #B9C1BE;
	border-top: 1px solid #3C4548;
}

/* ---------- 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.82rem;
	line-height: 1.5;
	color: var(--ink-on-dark);
	background: var(--graphite);
	border: 1px solid var(--steel);
	border-top: 4px solid var(--signal);
}

.cookie-banner p {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
	.atlas-list {
		grid-template-columns: repeat(3, 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;
		padding-bottom: 0.4rem;
	}

	.main-nav li {
		border-top: 1px solid #3C4548;
	}

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

	.ahu-head {
		position: static;
		padding: 2.4rem 0 1rem;
		width: 92%;
		margin-left: auto;
		margin-right: auto;
	}

	.duty-run {
		display: none;
	}

	.duty .sect-title {
		max-width: none;
	}

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

	.journal {
		margin-bottom: 0;
		padding-bottom: 3rem;
	}

	.journal-head {
		padding-bottom: 0;
	}

	.atlas {
		padding-top: 4rem;
	}

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

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

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

	.edge-marks::before,
	.edge-marks::after {
		display: none;
	}
}

@media (max-width: 760px) {
	.ahu-labels {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.5rem 1rem;
		width: 92%;
		margin: 0 auto;
		padding: 0 0 2rem;
		list-style: none;
	}

	.ahu-label,
	.ahu-flow {
		position: static;
		width: auto;
		font-size: 0.78rem;
		white-space: normal;
	}

	.ahu-label.to-left {
		text-align: left;
	}

	.ahu-label::before {
		content: "";
		display: inline-block;
		width: 0.55em;
		height: 0.55em;
		margin-right: 0.5em;
		background: var(--steel);
	}

	.ahu-label--supply {
		width: auto;
	}

	.ahu-flow {
		justify-self: start;
	}

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

	.tags > .card:nth-child(2) {
		margin-top: 0;
	}

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

	.stamp {
		bottom: -1.2rem;
	}
}

@media (max-width: 600px) {
	body {
		font-size: 14px;
	}

	.header-row {
		padding: 1rem 0 1.1rem;
	}

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

	.duty,
	.service {
		padding: 3rem 0;
	}

	.nomo {
		padding: 0 1.8rem 2.2rem 1.9rem;
	}

	.nomo-axis--x {
		left: 1.9rem;
		right: 1.8rem;
	}

	.nomo-axis--y {
		bottom: 2.2rem;
		width: 1.3rem;
	}

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

	.sheet {
		padding: 1.4rem 1.2rem 1.6rem;
	}

	.sidebar {
		padding: 1.3rem 1.2rem;
	}

	.comment-respond {
		padding: 1.2rem 1.1rem;
	}

	.service-table th,
	.service-table td {
		padding-right: 0.5rem;
	}

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

	.atlas-list {
		gap: 2rem 1.2rem;
	}

	.search-form {
		flex-direction: column;
	}

	.cookie-banner {
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.6rem;
	}
}

.single .page-head h1 {
	font-size: clamp(1.8rem, 3.4vw, 3.2rem);
	line-height: 1.06;
}
