/* ==========================================================================
   Техномаг — Центр помощи
   Изолированный интерфейс на токенах темы «Техномаг».
   Пространство имён: body.technomag-help / .tmh-*
   ========================================================================== */

/* ---------- 01. Токены ---------- */
:root {
	--font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--tmh-gutter: clamp(18px, 4vw, 40px);
	--tmh-header-h: 72px;
	--tmh-radius: 10px;
	--tmh-ease: cubic-bezier(.22, .61, .36, 1);
	--tmh-width: 1280px;
}

/* Токены темы продублированы здесь: на поддомене её основной CSS отключён. */
html[data-theme="dark"] {
	--card: #121211;
	--ink: #F4F4EF;
	--ink-2: #A6A69D;
	--ink-3: #6E6E65;
	--ink-fixed: #0A0A09;
	--line: rgba(244, 244, 239, .13);
	--line-strong: rgba(244, 244, 239, .30);
	--shadow: 0 30px 60px -30px rgba(0, 0, 0, .9);
	color-scheme: dark;
}

html[data-theme="light"] {
	--card: #FFFFFF;
	--ink: #0C0C0A;
	--ink-2: #56564E;
	--ink-3: #8B8B81;
	--ink-fixed: #0A0A09;
	--line: rgba(12, 12, 10, .13);
	--line-strong: rgba(12, 12, 10, .28);
	--shadow: 0 24px 50px -28px rgba(12, 12, 10, .35);
	color-scheme: light;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--tmh-header-h) + 24px);
	-webkit-text-size-adjust: 100%;
}

body.technomag-help {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.technomag-help *,
body.technomag-help *::before,
body.technomag-help *::after {
	box-sizing: border-box;
}

body.technomag-help img:not(.tmh-logo__img) {
	max-width: 100%;
	height: auto;
}

body.technomag-help svg {
	display: inline-block;
	vertical-align: middle;
	flex: none;
}

body.technomag-help a {
	color: inherit;
	text-decoration: none;
}

body.technomag-help button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

body.technomag-help :where(h1, h2, h3, h4) {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.1;
}

body.technomag-help ::selection {
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
}

body.technomag-help :focus-visible:not(.tmh-search__input) {
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
}

/* Поиск показывает фокус на всей форме, внутреннее кольцо не нужно. */
body.technomag-help .tmh-search__input:focus-visible {
	outline: none;
}

.tmh-icon {
	display: inline-block;
	vertical-align: middle;
}

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

.tmh-skip {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 300;
	padding: 10px 16px;
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
	font-size: 13px;
	font-weight: 600;
	transform: translateY(-200%);
	transition: transform .2s var(--tmh-ease);
}

.tmh-skip:focus { transform: none; }

.tmh-container {
	width: 100%;
	max-width: calc(var(--tmh-width) + var(--tmh-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--tmh-gutter);
}

.tmh-main {
	min-height: 60vh;
}

/* ---------- 02. Шапка ---------- */
.tmh-header {
	position: sticky;
	top: 0;
	z-index: 80;
	background: var(--header-bg, var(--bg));
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s var(--tmh-ease);
}

.tmh-header.is-scrolled {
	box-shadow: 0 12px 30px -24px rgba(0, 0, 0, .55);
}

.tmh-header__inner {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 32px);
	min-height: var(--tmh-header-h);
}

.tmh-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex: none;
	min-width: 0;
}

.tmh-logo {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.tmh-logo__images {
	display: inline-flex;
}

.tmh-logo__img {
	display: block;
	width: auto;
	height: 26px;
	max-width: 160px;
	object-fit: contain;
}

.tmh-logo__img--light { display: none; }
html[data-theme="light"] .tmh-logo__img--light { display: block; }
html[data-theme="light"] .tmh-logo__img--dark { display: none; }
html[data-theme="dark"] .tmh-logo__img--light { display: none; }
html[data-theme="dark"] .tmh-logo__img--dark { display: block; }

.tmh-logo__text {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1;
}

.tmh-brand__divider {
	display: block;
	width: 1px;
	height: 24px;
	background: var(--line-strong);
}

.tmh-brand__label {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .17em;
	text-transform: uppercase;
	color: var(--ink-2);
	white-space: nowrap;
}

.tmh-header__search {
	flex: 1;
	max-width: 520px;
	margin-left: auto;
}

.tmh-header__tools {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
}

.tmh-header__shop {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-2);
	transition: color .2s;
	white-space: nowrap;
}

.tmh-header__shop:hover { color: var(--yellow); }

.tmh-header__sections {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 5px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-2);
	white-space: nowrap;
	transition: border-color .2s, color .2s, background-color .2s;
}

.tmh-header__sections:hover {
	border-color: var(--yellow);
	color: var(--ink);
	background: var(--bg-2);
}

.tmh-header__sections .tmh-icon { color: var(--yellow); }

/* Переключатель темы — как на основном сайте */
.theme-toggle {
	position: relative;
	width: 56px;
	height: 30px;
	border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: var(--bg-2);
	flex: none;
	transition: background-color .3s var(--tmh-ease), border-color .3s var(--tmh-ease);
}

.theme-toggle__knob {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--yellow);
	transition: transform .35s var(--tmh-ease), background-color .3s var(--tmh-ease);
}

html[data-theme="light"] .theme-toggle__knob { transform: translateX(26px); }

.theme-toggle__sun,
.theme-toggle__moon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ink-3);
	transition: opacity .25s var(--tmh-ease), color .25s var(--tmh-ease);
}

.theme-toggle__sun { right: 7px; }
.theme-toggle__moon { left: 7px; }

html[data-theme="dark"] .theme-toggle__sun { opacity: .55; color: var(--ink); }
html[data-theme="dark"] .theme-toggle__moon { opacity: .45; }
html[data-theme="light"] .theme-toggle__sun { opacity: .45; }
html[data-theme="light"] .theme-toggle__moon { opacity: .55; color: var(--ink); }
.theme-toggle:hover { border-color: var(--yellow); }

.tmh-burger {
	display: none;
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	border-radius: 5px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	transition: border-color .2s;
}

.tmh-burger span {
	display: block;
	width: 18px;
	height: 1.5px;
	background: var(--ink);
	transition: transform .2s, opacity .2s;
}

.tmh-burger:hover { border-color: var(--yellow); }

/* ---------- 03. Поиск ---------- */
.tmh-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 6px;
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.tmh-search:focus-within {
	border-color: var(--line-strong);
	background: var(--bg);
	outline: 2px solid var(--yellow);
	outline-offset: 3px;
	box-shadow: none;
}

.tmh-search--compact { height: 40px; }
.tmh-search--large { height: clamp(56px, 6vw, 68px); }

.tmh-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	color: var(--ink-3);
	pointer-events: none;
}

.tmh-search--large .tmh-search__icon { left: 22px; color: var(--yellow); }

.tmh-search__input {
	flex: 1;
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0 12px 0 44px;
	background: transparent;
	border: 0;
	outline: none;
	font-family: var(--font-body);
	font-size: 14px;
	color: var(--ink);
}

.tmh-search--large .tmh-search__input {
	padding-left: 56px;
	font-size: 16px;
}

.tmh-search__input::placeholder { color: var(--ink-3); }
.tmh-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }

.tmh-search__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: calc(100% - 8px);
	margin: 4px;
	padding: 0 18px;
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
	border-radius: 4px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: background-color .2s, transform .2s;
	flex: none;
}

.tmh-search__submit:hover { background: var(--yellow-deep, var(--yellow)); }

.tmh-search__submit--icon {
	width: 32px;
	padding: 0;
	background: transparent;
	color: var(--ink-2);
}

.tmh-search__submit--icon:hover { background: transparent; color: var(--yellow); }

.tmh-search__results {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	max-height: min(70vh, 440px);
	overflow: auto;
	padding: 6px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: var(--shadow);
}

.tmh-search__results[hidden] { display: none; }

.tmh-search-result-link {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 12px;
	border-radius: 7px;
	transition: background-color .15s;
}

.tmh-search-result-link:hover,
.tmh-search-result-link.is-active {
	background: var(--bg-2);
}

.tmh-search-result-link__title {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ink);
}

.tmh-search-result-link__meta {
	display: flex;
	gap: 8px;
	align-items: center;
	font-size: 10.5px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-search-result-link__snippet {
	font-size: 12px;
	line-height: 1.45;
	color: var(--ink-2);
}

.tmh-search-result-link__snippet mark,
.tmh-search-result-link__title mark {
	background: rgba(var(--yellow-rgb), .9);
	color: var(--ink-fixed, #0A0A09);
	padding: 0 1px;
	border-radius: 2px;
}

.tmh-search__status {
	padding: 14px 12px;
	font-size: 12.5px;
	color: var(--ink-3);
}

/* ---------- 04. Главная ---------- */
.tmh-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(54px, 7.5vw, 100px) 0 clamp(42px, 5vw, 64px);
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(120% 110% at 85% 0%, rgba(var(--yellow-rgb), .12), transparent 58%),
		var(--bg);
}

.tmh-hero__glow {
	position: absolute;
	right: -10%;
	top: -40%;
	width: 560px;
	height: 560px;
	border: 1px solid rgba(var(--yellow-rgb), .18);
	border-radius: 50%;
	pointer-events: none;
}

.tmh-hero__glow::after {
	content: '';
	position: absolute;
	inset: 70px;
	border: 1px solid rgba(var(--yellow-rgb), .10);
	border-radius: 50%;
}

.tmh-hero__inner { position: relative; z-index: 1; }

.tmh-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-eyebrow__dot {
	width: 6px;
	height: 6px;
	background: var(--yellow);
	border-radius: 50%;
	box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), .16);
}

.tmh-hero__title {
	max-width: 900px;
	margin: 0;
	font-size: clamp(44px, 7.4vw, 92px);
	line-height: .92;
	text-transform: uppercase;
	letter-spacing: .005em;
}

.tmh-hero__accent {
	display: inline-block;
	margin-left: .08em;
	padding: 0 .12em .04em;
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
}

.tmh-hero__lead {
	max-width: 620px;
	margin: 22px 0 0;
	font-size: clamp(15px, 1.4vw, 17px);
	line-height: 1.65;
	color: var(--ink-2);
}

.tmh-hero__search {
	max-width: 760px;
	margin-top: 32px;
}

.tmh-hero__chips {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 18px;
}

.tmh-hero__chips-label {
	font-size: 11px;
	color: var(--ink-3);
	margin-right: 4px;
}

.tmh-chip {
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 13px;
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12px;
	color: var(--ink-2);
	transition: color .2s, border-color .2s, background-color .2s;
}

.tmh-chip:hover {
	border-color: var(--yellow);
	color: var(--ink);
	background: rgba(var(--yellow-rgb), .08);
}

.tmh-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 34px;
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	font-size: 10.5px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-hero__stats strong { color: var(--ink); font-weight: 700; }

.tmh-section { padding: clamp(44px, 6vw, 74px) 0; }
.tmh-section--articles { background: var(--bg-2); border-block: 1px solid var(--line); }

.tmh-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.tmh-section__head--compact { margin-bottom: 18px; }

.tmh-section__head .tmh-eyebrow { margin-bottom: 10px; }

.tmh-section__title {
	margin: 0;
	font-size: clamp(27px, 3.2vw, 40px);
	text-transform: uppercase;
	letter-spacing: .005em;
}

.tmh-section__aside {
	max-width: 340px;
	margin: 0 0 4px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--ink-3);
	text-align: right;
}

.tmh-section__count {
	font-size: 10.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
	white-space: nowrap;
}

.tmh-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
	gap: 16px;
}

.tmh-cat-grid--sub { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.tmh-cat-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--tmh-radius);
	overflow: hidden;
	transition: transform .25s var(--tmh-ease), border-color .25s, box-shadow .25s;
}

.tmh-cat-card:hover {
	transform: translateY(-3px);
	border-color: var(--yellow);
	box-shadow: var(--shadow);
}

.tmh-cat-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 132px;
	background:
		radial-gradient(90% 120% at 20% 0%, rgba(var(--yellow-rgb), .16), transparent 65%),
		var(--bg-3);
	overflow: hidden;
}

.tmh-cat-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s var(--tmh-ease);
}

.tmh-cat-card:hover .tmh-cat-card__img { transform: scale(1.04); }

.tmh-cat-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
	position: relative;
	z-index: 1;
}

.tmh-cat-card__letter {
	position: absolute;
	right: 12px;
	bottom: -18px;
	font-family: var(--font-display);
	font-size: 92px;
	font-weight: 700;
	line-height: 1;
	color: var(--ink);
	opacity: .06;
	text-transform: uppercase;
	pointer-events: none;
}

.tmh-cat-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.tmh-cat-card__name {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.15;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.tmh-cat-card__desc {
	margin-top: 7px;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--ink-3);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tmh-cat-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 16px;
}

.tmh-cat-card__count {
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-cat-card__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-2);
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}

.tmh-cat-card:hover .tmh-cat-card__arrow {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--on-accent, #0A0A09);
	transform: translateX(2px);
}

.tmh-home-columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(28px, 5vw, 72px);
}

.tmh-link-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--line);
}

.tmh-link-list__item {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 15px 0;
	border-bottom: 1px solid var(--line);
	transition: padding-left .2s var(--tmh-ease);
}

.tmh-link-list__item:hover { padding-left: 4px; }

.tmh-link-list__num {
	font-family: var(--font-display);
	font-size: 17px;
	color: var(--ink-3);
	letter-spacing: .04em;
}

.tmh-link-list__cat {
	display: block;
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 2px;
}

html[data-theme="light"] .tmh-link-list__cat { color: var(--ink-3); }

.tmh-link-list__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	transition: color .2s;
}

.tmh-link-list__item:hover .tmh-link-list__title { color: var(--yellow); }
html[data-theme="light"] .tmh-link-list__item:hover .tmh-link-list__title { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

.tmh-link-list__meta {
	font-size: 10.5px;
	color: var(--ink-3);
	white-space: nowrap;
}

.tmh-empty-text { margin: 18px 0; color: var(--ink-3); font-size: 14px; }

/* ---------- 05. Хлебные крошки ---------- */
.tmh-breadcrumbs {
	padding: 20px 0 0;
	font-size: 10.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmh-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.tmh-breadcrumbs__link { color: var(--ink-2); transition: color .2s; }
.tmh-breadcrumbs__link:hover { color: var(--yellow); }
.tmh-breadcrumbs__text { color: var(--ink-3); }
.tmh-breadcrumbs__item.is-current .tmh-breadcrumbs__text { color: var(--ink); }
.tmh-breadcrumbs__sep { color: var(--ink-3); opacity: .6; }

/* ---------- 06. Категория ---------- */
.tmh-category-hero {
	padding: clamp(28px, 4vw, 46px) 0 clamp(26px, 4vw, 42px);
	border-bottom: 1px solid var(--line);
	background:
		radial-gradient(100% 130% at 90% 0%, rgba(var(--yellow-rgb), .09), transparent 60%),
		var(--bg);
}

.tmh-category-hero__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}

.tmh-category-hero__body { max-width: 760px; }
.tmh-category-hero__title {
	font-size: clamp(36px, 5.4vw, 64px);
	line-height: .95;
	text-transform: uppercase;
}

.tmh-category-hero__desc {
	margin: 16px 0 0;
	max-width: 640px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--ink-2);
}

.tmh-category-hero__meta {
	margin: 16px 0 0;
	font-size: 10px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-category-hero__media {
	width: min(320px, 34%);
	flex: none;
	border-radius: var(--tmh-radius);
	overflow: hidden;
	background: var(--bg-2);
}

.tmh-category-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tmh-category-body { padding-block: clamp(34px, 5vw, 58px); }

.tmh-subcategories { margin-bottom: clamp(34px, 5vw, 54px); }
.tmh-subcategories__title {
	margin: 0 0 18px;
	font-size: 20px;
	text-transform: uppercase;
}

.tmh-articles-list {
	display: grid;
	gap: 14px;
}

/* ---------- 07. Карточка статьи ---------- */
.tmh-card {
	display: flex;
	align-items: stretch;
	gap: 0;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--tmh-radius);
	overflow: hidden;
	transition: border-color .2s, transform .2s var(--tmh-ease), box-shadow .25s;
}

.tmh-card:hover {
	border-color: var(--line-strong);
	transform: translateY(-2px);
	box-shadow: var(--shadow);
}

.tmh-card__media {
	flex: none;
	width: 230px;
	background: var(--bg-2);
	overflow: hidden;
}

.tmh-card__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 150px;
	object-fit: cover;
	transition: transform .5s var(--tmh-ease);
}

.tmh-card:hover .tmh-card__img { transform: scale(1.04); }

.tmh-card__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 20px 24px;
}

.tmh-card__eyebrow {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 7px;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--yellow);
}

html[data-theme="light"] .tmh-card__eyebrow { color: var(--ink-3); }

.tmh-card__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.18;
	text-transform: none;
}

.tmh-card__title a { transition: color .2s; }
.tmh-card:hover .tmh-card__title a { color: var(--yellow); }
html[data-theme="light"] .tmh-card:hover .tmh-card__title a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }

.tmh-card__excerpt {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ink-2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tmh-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: auto;
	padding-top: 14px;
	font-size: 10.5px;
	color: var(--ink-3);
}

.tmh-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tmh-card--related { flex-direction: column; }
.tmh-card--related .tmh-card__media { width: 100%; height: 150px; }
.tmh-card--related .tmh-card__img { min-height: 150px; }
.tmh-card--related .tmh-card__body { padding: 16px 18px 18px; }
.tmh-card--related .tmh-card__title { font-size: 17px; }

/* ---------- 08. Статья ---------- */
.tmh-article-mobilebar {
	display: none;
	position: sticky;
	top: var(--tmh-header-h);
	z-index: 60;
	background: var(--header-bg, var(--bg));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}

.tmh-article-mobilebar__btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 44px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.tmh-article-mobilebar__btn + .tmh-article-mobilebar__btn { border-left: 1px solid var(--line); }

.tmh-article-layout {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr) 246px;
	gap: clamp(24px, 3.4vw, 44px);
	padding-block: 28px clamp(46px, 6vw, 76px);
}

.tmh-article-layout--no-sidebar { grid-template-columns: minmax(0, 1fr) 246px; }
.tmh-article-layout--no-toc { grid-template-columns: 268px minmax(0, 1fr); }
.tmh-article-layout--no-sidebar.tmh-article-layout--no-toc { grid-template-columns: minmax(0, 1fr); max-width: 920px; }

.tmh-article-sidebar__inner {
	position: sticky;
	top: calc(var(--tmh-header-h) + 24px);
	max-height: calc(100vh - var(--tmh-header-h) - 48px);
	overflow-y: auto;
	padding-right: 6px;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}

.tmh-article-sidebar__inner::-webkit-scrollbar { width: 5px; }
.tmh-article-sidebar__inner::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }

.tmh-article-toc__inner {
	position: sticky;
	top: calc(var(--tmh-header-h) + 24px);
}

/* Дерево категорий */
.tmh-nav__title {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-nav__title-icon { color: var(--yellow); }

.tmh-nav--drawer .tmh-nav__title { display: none; }

.tmh-nav__expand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 34px;
	margin: 0 0 10px;
	padding: 6px 10px;
	border: 1px solid var(--line);
	border-radius: 5px;
	background: var(--bg-2);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	transition: border-color .2s, color .2s, background-color .2s;
}

.tmh-nav__expand:hover {
	border-color: var(--yellow);
	color: var(--ink);
}

.tmh-nav__expand-icon { color: var(--yellow); transition: transform .2s var(--tmh-ease); }
.tmh-nav__expand[aria-expanded="true"] .tmh-nav__expand-icon { transform: rotate(180deg); }

.tmh-nav__list,
.tmh-nav__sublist,
.tmh-nav__articles {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmh-nav__row {
	display: flex;
	align-items: center;
	gap: 2px;
	border-radius: 5px;
	transition: background-color .15s;
}

.tmh-nav__row:hover { background: var(--bg-2); }

.tmh-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 30px;
	flex: none;
	color: var(--ink-3);
	border-radius: 4px;
	transition: color .2s;
}

.tmh-nav__toggle:hover { color: var(--yellow); }
.tmh-nav__toggle--empty { pointer-events: none; }
.tmh-nav__chevron { transition: transform .2s var(--tmh-ease); }
.tmh-nav__item.is-open > .tmh-nav__row > .tmh-nav__toggle .tmh-nav__chevron { transform: rotate(90deg); }

.tmh-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex: 1;
	min-width: 0;
	min-height: 34px;
	padding: 5px 8px 5px 2px;
	border-radius: 5px;
	font-size: 14px;
	line-height: 1.35;
	color: var(--ink-2);
	transition: color .15s;
}

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

.tmh-nav__item.is-current > .tmh-nav__row {
	background: rgba(var(--yellow-rgb), .09);
}

.tmh-nav__item.is-current > .tmh-nav__row .tmh-nav__link {
	color: var(--ink);
	font-weight: 600;
}

.tmh-nav__name { min-width: 0; }

.tmh-nav__count {
	font-size: 11px;
	color: var(--ink-3);
	flex: none;
}

.tmh-nav__sublist {
	display: none;
	margin-left: 13px;
	padding-left: 8px;
	border-left: 1px solid var(--line);
}

.tmh-nav__item.is-open > .tmh-nav__sublist { display: block; }

.tmh-nav__articles {
	margin: 4px 0 8px 13px;
	padding-left: 8px;
	border-left: 1px solid var(--line);
}

.tmh-nav__article a {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	padding: 6px 7px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ink-3);
	transition: color .15s, background-color .15s;
}

.tmh-nav__article a:hover { color: var(--ink); background: var(--bg-2); }

.tmh-nav__article.is-current a {
	color: var(--ink);
	background: rgba(var(--yellow-rgb), .09);
	font-weight: 600;
}

.tmh-nav__dot {
	width: 4px;
	height: 4px;
	margin-top: 7px;
	border-radius: 50%;
	background: var(--line-strong);
	flex: none;
}

.tmh-nav__article.is-current .tmh-nav__dot { background: var(--yellow); }

.tmh-nav__empty { color: var(--ink-3); font-size: 13px; }

/* Статья */
.tmh-article { min-width: 0; }

.tmh-article .tmh-breadcrumbs { padding-top: 0; margin-bottom: 20px; }

.tmh-article__header { margin-bottom: 26px; }

.tmh-article__category {
	display: inline-flex;
	align-items: center;
	height: 28px;
	padding: 0 12px;
	margin-bottom: 14px;
	border: 1px solid var(--yellow);
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--yellow);
	transition: background-color .2s, color .2s;
}

.tmh-article__category:hover {
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
}

html[data-theme="light"] .tmh-article__category { border-color: var(--line-strong); color: var(--ink-2); }
html[data-theme="light"] .tmh-article__category:hover { border-color: var(--yellow); color: var(--on-accent, #0A0A09); }

.tmh-article__title {
	margin: 0;
	font-size: clamp(30px, 4.3vw, 52px);
	line-height: 1.07;
	letter-spacing: .005em;
	text-transform: none;
}

.tmh-article__lead {
	max-width: 760px;
	margin: 18px 0 0;
	padding-left: 16px;
	border-left: 3px solid var(--yellow);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink-2);
}

.tmh-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-top: 20px;
	font-size: 12.5px;
	color: var(--ink-3);
}

.tmh-article__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tmh-article__author {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	font-size: 13px;
	color: var(--ink-3);
}

.tmh-article__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: rgba(var(--yellow-rgb), .14);
	color: var(--yellow);
	font-family: var(--font-display);
	font-size: 14px;
	font-weight: 600;
}

.tmh-article__author strong { color: var(--ink-2); font-weight: 600; }

.tmh-article__cover {
	margin: 0 0 28px;
	border-radius: var(--tmh-radius);
	overflow: hidden;
	background: var(--bg-2);
}

.tmh-article__cover-img {
	display: block;
	width: 100%;
	max-height: 460px;
	object-fit: cover;
}

/* Оглавление справа */
.tmh-side-toc { border-left: 1px solid var(--line); padding-left: 18px; }

.tmh-side-toc__title {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-side-toc__title .tmh-icon { color: var(--yellow); }
.tmh-side-toc__list { margin: 0; padding: 0; list-style: none; }

.tmh-side-toc__item { margin: 0; }

.tmh-side-toc__link {
	display: block;
	padding: 5px 0 5px 10px;
	border-left: 1px solid transparent;
	margin-left: -19px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--ink-3);
	transition: color .2s, border-color .2s;
}

.tmh-side-toc__item--l3 .tmh-side-toc__link { padding-left: 22px; }
.tmh-side-toc__item--l4 .tmh-side-toc__link { padding-left: 34px; }

.tmh-side-toc__link:hover { color: var(--ink); }

.tmh-side-toc__link.is-active {
	color: var(--ink);
	border-left-color: var(--yellow);
	font-weight: 600;
}

.tmh-article-toc__top {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: 18px;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ink-3);
	transition: color .2s;
}

.tmh-article-toc__top:hover { color: var(--yellow); }

.tmh-toc-mobile { display: none; }

/* ---------- 09. Контент статьи ---------- */
.tmh-content {
	font-size: 16.5px;
	line-height: 1.75;
	color: var(--ink);
	overflow-wrap: break-word;
}

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

.tmh-content h2,
.tmh-content h3,
.tmh-content h4 {
	scroll-margin-top: calc(var(--tmh-header-h) + 24px);
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.15;
	text-transform: none;
	letter-spacing: .005em;
}

.tmh-content h2 {
	margin: 46px 0 20px;
	padding-top: 4px;
	font-size: clamp(25px, 2.6vw, 32px);
}

.tmh-content h2::before {
	content: '';
	display: block;
	width: 34px;
	height: 3px;
	margin-bottom: 14px;
	background: var(--yellow);
}

.tmh-content h3 {
	margin: 34px 0 12px;
	font-size: clamp(20px, 2vw, 24px);
}

.tmh-content h4 {
	margin: 26px 0 10px;
	font-size: 18px;
}

.tmh-content p { margin: 0 0 18px; }

.tmh-content ul,
.tmh-content ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.tmh-content ul { list-style: none; }
.tmh-content ul > li { position: relative; }
.tmh-content ul > li::before {
	content: '';
	position: absolute;
	left: -16px;
	top: .62em;
	width: 6px;
	height: 6px;
	background: var(--yellow);
	border-radius: 1px;
}
.tmh-content ol { list-style: decimal; }
.tmh-content ol > li::marker { color: var(--yellow); font-weight: 700; }
.tmh-content li { margin-bottom: 8px; }
.tmh-content li > ul,
.tmh-content li > ol { margin-top: 7px; }

.tmh-content a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-color: var(--yellow);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: background-color .15s, color .15s;
}

.tmh-content a:hover {
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
	text-decoration-color: transparent;
}

.tmh-content strong { font-weight: 700; }
.tmh-content em { font-style: italic; }

.tmh-content blockquote {
	margin: 28px 0;
	padding: 6px 0 6px 20px;
	border-left: 3px solid var(--yellow);
	color: var(--ink-2);
	font-size: 18px;
	line-height: 1.6;
}

.tmh-content blockquote p:last-child { margin-bottom: 0; }
.tmh-content blockquote cite { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); font-style: normal; }

.tmh-content code {
	padding: 2px 6px;
	background: var(--bg-3);
	border-radius: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .88em;
}

.tmh-content pre {
	margin: 22px 0;
	padding: 18px 20px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.6;
}

.tmh-content pre code { padding: 0; background: none; font-size: inherit; }

.tmh-content hr {
	margin: 36px 0;
	border: 0;
	border-top: 1px solid var(--line);
}

.tmh-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.tmh-content figure { margin: 26px 0; }
.tmh-content figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-3); text-align: center; }

.tmh-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 26px 0;
	font-size: 14.5px;
	line-height: 1.55;
}

.tmh-content th,
.tmh-content td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.tmh-content th {
	background: var(--bg-2);
	font-weight: 600;
	color: var(--ink);
}

.tmh-content tbody tr:nth-child(even) { background: var(--bg-2); }

.tmh-content .wp-block-table { overflow-x: auto; }
.tmh-content .wp-block-table table { min-width: 520px; margin: 0; }

.tmh-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tmh-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 22px;
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
	border-radius: 3px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .2s;
}

.tmh-content .wp-block-button__link:hover { background: var(--yellow-deep, var(--yellow)); color: var(--on-accent, #0A0A09); }

.tmh-content .wp-block-columns { gap: 24px; margin: 24px 0; }
.tmh-content .wp-block-group { margin: 24px 0; }

.tmh-content .wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 32px 0;
}

.tmh-content .wp-block-file {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 22px 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--bg-2);
}

.tmh-content .wp-block-file__button {
	background: var(--yellow);
	color: var(--on-accent, #0A0A09) !important;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}

.tmh-content .wp-block-embed { margin: 26px 0; }
.tmh-content .wp-block-embed iframe { max-width: 100%; }

.tmh-content .wp-block-gallery { margin: 26px 0; }

.tmh-content .wp-block-pullquote {
	margin: 30px 0;
	padding: 26px;
	border-block: 3px solid var(--yellow);
	text-align: left;
}

/* ---------- 10. Обратная связь ---------- */
.tmh-feedback {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px 24px;
	margin: 44px 0 0;
	padding: 24px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: var(--tmh-radius);
}

.tmh-feedback__title {
	margin: 0;
	font-family: var(--font-display);
	font-size: 22px;
	line-height: 1.15;
	text-transform: uppercase;
}

.tmh-feedback__hint {
	margin: 6px 0 0;
	font-size: 12.5px;
	color: var(--ink-3);
}

.tmh-feedback__actions {
	display: flex;
	gap: 8px;
}

.tmh-feedback__btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	height: 42px;
	padding: 0 17px;
	border: 1px solid var(--line-strong);
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-2);
	transition: border-color .2s, background-color .2s, color .2s;
}

.tmh-feedback__btn:hover,
.tmh-feedback__btn[aria-pressed="true"] {
	border-color: var(--yellow);
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
}

.tmh-feedback__btn:disabled { opacity: .55; cursor: default; }

.tmh-feedback__result {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 12px;
	color: var(--yellow);
	min-height: 0;
}

.tmh-feedback__result:empty { display: none; }

.tmh-feedback__stats {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 12px;
	color: var(--ink-3);
}

.tmh-feedback__stats:empty { display: none; }

/* ---------- 11. Соседние и похожие ---------- */
.tmh-adjacent {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 0;
}

.tmh-adjacent__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: var(--card);
	transition: border-color .2s, transform .2s;
}

.tmh-adjacent__item:hover { border-color: var(--yellow); transform: translateY(-2px); }

.tmh-adjacent__item--next { text-align: right; align-items: flex-end; }

.tmh-adjacent__label {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-adjacent__title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
}

.tmh-related { margin-top: clamp(38px, 5vw, 56px); }

.tmh-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

/* ---------- 12. Пагинация ---------- */
.tmh-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	margin-top: 34px;
}

.tmh-pagination__page,
.tmh-pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 8px;
	border: 1px solid var(--line);
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	color: var(--ink-2);
	transition: border-color .2s, background-color .2s, color .2s;
}

.tmh-pagination__page:hover,
.tmh-pagination__arrow:hover { border-color: var(--yellow); color: var(--ink); }

.tmh-pagination__page.is-current {
	background: var(--yellow);
	border-color: var(--yellow);
	color: var(--on-accent, #0A0A09);
}

.tmh-pagination__arrow.is-disabled { opacity: .4; pointer-events: none; }
.tmh-pagination__dots { color: var(--ink-3); padding: 0 4px; }

/* ---------- 13. Главная: поиск ---------- */
.tmh-search-page { padding: clamp(34px, 5vw, 58px) 0 clamp(50px, 6vw, 80px); }
.tmh-search-page__head { max-width: 820px; }
.tmh-search-page__title { font-size: clamp(32px, 4.6vw, 56px); text-transform: uppercase; line-height: .98; }
.tmh-search-page__query { margin: 16px 0 0; font-size: 15px; color: var(--ink-2); }
.tmh-search-page__query strong { color: var(--ink); }
.tmh-search-page__form { margin-top: 26px; }

.tmh-search-results { margin-top: 38px; }

.tmh-search-result {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.tmh-search-result:first-child { border-top: 1px solid var(--line); }
.tmh-search-result__body { flex: 1; min-width: 0; }
.tmh-search-result__cat { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
html[data-theme="light"] .tmh-search-result__cat { color: var(--ink-3); }

.tmh-search-result__title {
	margin: 6px 0 0;
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.tmh-search-result__title a:hover { color: var(--yellow); }
.tmh-search-result__title mark { background: rgba(var(--yellow-rgb), .9); color: var(--ink-fixed, #0A0A09); padding: 0 2px; border-radius: 2px; }

.tmh-search-result__excerpt {
	margin: 8px 0 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--ink-2);
}

.tmh-search-result__excerpt mark {
	background: rgba(var(--yellow-rgb), .85);
	color: var(--ink-fixed, #0A0A09);
	padding: 0 1px;
	border-radius: 2px;
}

.tmh-search-result__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 12px;
	font-size: 10.5px;
	color: var(--ink-3);
}

.tmh-search-result__meta span { display: inline-flex; align-items: center; gap: 5px; }

.tmh-search-result__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-2);
	flex: none;
	transition: background-color .2s, color .2s, border-color .2s;
}

.tmh-search-result:hover .tmh-search-result__arrow { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent, #0A0A09); }

.tmh-search-suggest { margin-top: 44px; display: grid; gap: 42px; }
.tmh-search-suggest__block h2 { font-size: 24px; text-transform: uppercase; margin-bottom: 18px; }

/* ---------- 14. Пустые состояния и 404 ---------- */
.tmh-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	padding: 42px 24px;
	border: 1px dashed var(--line-strong);
	border-radius: var(--tmh-radius);
	background: var(--bg-2);
}

.tmh-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 8px;
	border-radius: 50%;
	background: rgba(var(--yellow-rgb), .12);
	color: var(--yellow);
}

.tmh-empty__title { margin: 0; font-family: var(--font-display); font-size: 22px; text-transform: uppercase; }
.tmh-empty__text { margin: 0; max-width: 420px; font-size: 13.5px; color: var(--ink-3); }
.tmh-empty .tmh-search { max-width: 430px; margin-top: 14px; }

.tmh-404 { padding: clamp(50px, 8vw, 110px) 0; }
.tmh-404__inner { max-width: 760px; }
.tmh-404__code {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(100px, 20vw, 210px);
	font-weight: 700;
	line-height: .8;
	color: var(--yellow);
	letter-spacing: -.02em;
}

.tmh-404__title { margin: 20px 0 0; font-size: clamp(30px, 4vw, 46px); text-transform: uppercase; }
.tmh-404__text { max-width: 520px; margin: 14px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.tmh-404__search { max-width: 640px; margin-top: 28px; }
.tmh-404__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tmh-404__cats { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.tmh-404__cats-title { margin: 0 0 12px; font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- 15. Кнопки ---------- */
.tmh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 44px;
	padding: 0 20px;
	background: var(--yellow);
	color: var(--on-accent, #0A0A09);
	border: 1px solid var(--yellow);
	border-radius: 4px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	transition: background-color .2s, border-color .2s, color .2s;
}

.tmh-btn:hover { background: var(--yellow-deep, var(--yellow)); border-color: var(--yellow-deep, var(--yellow)); }
.tmh-btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.tmh-btn--ghost:hover { background: var(--bg-2); border-color: var(--yellow); color: var(--ink); }
.tmh-btn--sm { height: 34px; padding: 0 13px; font-size: 9.5px; }
.tmh-btn__icon { margin-right: 1px; }

/* ---------- 16. Подвал ---------- */
.tmh-footer {
	margin-top: 0;
	background: var(--bg-2);
	border-top: 1px solid var(--line);
	padding: clamp(38px, 5vw, 60px) 0 22px;
}

.tmh-footer__top {
	display: grid;
	grid-template-columns: minmax(260px, 1.4fr) 1fr 1fr;
	gap: clamp(28px, 5vw, 70px);
	padding-bottom: 34px;
}

.tmh-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
}

.tmh-footer__logo .tmh-logo__img { height: 30px; }

.tmh-footer__logo > span:last-child {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.tmh-footer__desc { max-width: 340px; margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-3); }

.tmh-footer__socials { display: flex; gap: 9px; margin-top: 18px; }
.tmh-footer__socials a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-2);
	transition: border-color .2s, color .2s, background-color .2s;
}
.tmh-footer__socials a:hover { border-color: var(--yellow); color: var(--yellow); }

.tmh-footer__heading {
	margin: 0 0 14px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.tmh-footer__list { margin: 0; padding: 0; list-style: none; }
.tmh-footer__list li { margin-bottom: 8px; font-size: 13px; color: var(--ink-2); }
.tmh-footer__list a { transition: color .2s; }
.tmh-footer__list a:hover { color: var(--yellow); }

.tmh-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	font-size: 10.5px;
	color: var(--ink-3);
}

.tmh-footer__bottom p { margin: 0; }

.tmh-to-top {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 9.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ink-3);
	transition: color .2s;
}

.tmh-to-top:hover { color: var(--yellow); }

/* ---------- 17. Выдвижные панели ---------- */
.tmh-drawer,
.tmh-toc-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	z-index: 200;
	width: min(380px, 92vw);
	background: var(--bg);
	border-right: 1px solid var(--line);
	box-shadow: 0 0 60px rgba(0, 0, 0, .35);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .3s var(--tmh-ease);
	visibility: hidden;
}

.tmh-toc-drawer {
	right: 0;
	left: auto;
	width: min(340px, 90vw);
	border-right: 0;
	border-left: 1px solid var(--line);
	transform: translateX(100%);
	padding: 18px 20px 30px;
}

.tmh-drawer.is-open,
.tmh-toc-drawer.is-open {
	transform: none;
	visibility: visible;
}

.tmh-drawer {
	padding: 18px 20px 30px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.tmh-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.tmh-drawer__title {
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
}

.tmh-drawer__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var(--line);
	border-radius: 50%;
	color: var(--ink-2);
	transition: border-color .2s, color .2s;
}

.tmh-drawer__close:hover { border-color: var(--yellow); color: var(--yellow); }

.tmh-drawer__search .tmh-search { background: var(--bg-2); }

.tmh-drawer__foot {
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.tmh-drawer__shop {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--ink-2);
}

.tmh-drawer__shop:hover { color: var(--yellow); }
.tmh-drawer__phone { font-family: var(--font-display); font-size: 22px; color: var(--ink); }

.tmh-overlay {
	position: fixed;
	inset: 0;
	z-index: 190;
	background: rgba(5, 5, 4, .6);
	backdrop-filter: blur(2px);
	opacity: 0;
	transition: opacity .25s;
}

.tmh-overlay.is-open { opacity: 1; }
.tmh-overlay[hidden] { display: none; }

.tmh-toc-drawer .tmh-side-toc { border-left: 0; padding-left: 0; margin-top: 18px; }
.tmh-toc-drawer .tmh-side-toc__link { margin-left: 0; border-left: 1px solid transparent; padding-left: 12px; }
.tmh-toc-drawer .tmh-side-toc__item--l3 .tmh-side-toc__link { padding-left: 26px; }
.tmh-toc-drawer .tmh-side-toc__item--l4 .tmh-side-toc__link { padding-left: 40px; }

/* ---------- 18. Лайтбокс ---------- */
.tmh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
	background: rgba(5, 5, 4, .94);
	backdrop-filter: blur(6px);
}

.tmh-lightbox[hidden] { display: none; }

.tmh-lightbox__figure {
	margin: 0;
	max-width: 92vw;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.tmh-lightbox__img {
	max-width: 92vw;
	max-height: 82vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.tmh-lightbox__caption { color: rgba(255, 255, 255, .78); font-size: 13px; text-align: center; }

.tmh-lightbox__close,
.tmh-lightbox__prev,
.tmh-lightbox__next {
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	color: #fff;
	background: rgba(0, 0, 0, .35);
	transition: background-color .2s, border-color .2s;
}

.tmh-lightbox__close:hover,
.tmh-lightbox__prev:hover,
.tmh-lightbox__next:hover { background: var(--yellow); border-color: var(--yellow); color: var(--on-accent, #0A0A09); }

.tmh-lightbox__close { top: 20px; right: 20px; }
.tmh-lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.tmh-lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

.tmh-lightbox__count {
	position: absolute;
	top: 28px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, .65);
	font-size: 11px;
	letter-spacing: .1em;
}

body.tmh-lock { overflow: hidden; }

/* ---------- 19. Адаптив ---------- */
@media (max-width: 1240px) {
	.tmh-article-layout { grid-template-columns: 230px minmax(0, 1fr) 210px; gap: 28px; }
	.tmh-article-layout--no-sidebar { grid-template-columns: minmax(0, 1fr) 210px; }
}

@media (max-width: 1080px) {
	.tmh-header__search { display: none; }
	.tmh-header__inner { justify-content: space-between; }
	.tmh-article-layout,
	.tmh-article-layout--no-sidebar,
	.tmh-article-layout--no-toc,
	.tmh-article-layout--no-sidebar.tmh-article-layout--no-toc {
		grid-template-columns: minmax(0, 1fr);
		max-width: 860px;
	}
	.tmh-article-sidebar,
	.tmh-article-toc { display: none; }
	.tmh-article-mobilebar { display: flex; }
	.tmh-toc-mobile {
		display: block;
		margin: 0 0 26px;
		border: 1px solid var(--line);
		border-radius: 8px;
		background: var(--bg-2);
	}
	.tmh-toc-mobile__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 14px 18px;
		font-size: 11px;
		font-weight: 700;
		letter-spacing: .08em;
		text-transform: uppercase;
		cursor: pointer;
		list-style: none;
	}
	.tmh-toc-mobile__summary::-webkit-details-marker { display: none; }
	.tmh-toc-mobile__summary > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
	.tmh-toc-mobile__count { color: var(--ink-3); }
	.tmh-toc-mobile__list { margin: 0; padding: 0 18px 16px; list-style: none; }
	.tmh-toc-mobile__item { margin: 0 0 7px; }
	.tmh-toc-mobile__item--l3 { padding-left: 14px; }
	.tmh-toc-mobile__item--l4 { padding-left: 28px; }
	.tmh-toc-mobile__item a { font-size: 13px; color: var(--ink-2); }
	.tmh-toc-mobile__item a:hover { color: var(--yellow); }
	.tmh-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
	.tmh-hero__title { font-size: clamp(38px, 8.6vw, 62px); }
	.tmh-category-hero__inner { align-items: flex-start; }
	.tmh-category-hero__media { width: 220px; }
	.tmh-home-columns { grid-template-columns: minmax(0, 1fr); gap: 42px; }
	.tmh-section__aside { display: none; }
	.tmh-card__media { width: 190px; }
	.tmh-footer__top { grid-template-columns: 1fr 1fr; }
	.tmh-footer__brand { grid-column: 1 / -1; }
	.tmh-feedback { grid-template-columns: minmax(0, 1fr); }
	.tmh-feedback__actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
	.tmh-header__shop { display: inline-flex; }
	.tmh-header__shop span { display: none; }
	.tmh-brand__label { display: none; }
	.tmh-brand__divider { display: none; }
	.tmh-header__sections { display: none; }
	.tmh-burger { display: flex; }
	.tmh-hero { padding-top: 48px; }
	.tmh-hero__stats { gap: 8px 18px; }
	.tmh-category-hero__media { display: none; }
	.tmh-category-hero__title { font-size: clamp(30px, 8vw, 46px); }
	.tmh-cat-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
	.tmh-card { flex-direction: column; }
	.tmh-card__media { width: 100%; height: 170px; }
	.tmh-card__body { padding: 16px 18px; }
	.tmh-card__title { font-size: 19px; }
	.tmh-article__title { font-size: clamp(27px, 6vw, 38px); }
	.tmh-article__lead { font-size: 15.5px; }
	.tmh-content { font-size: 15.5px; }
	.tmh-content h2 { margin-top: 36px; }
	.tmh-related__grid { grid-template-columns: minmax(0, 1fr); }
	.tmh-adjacent { grid-template-columns: minmax(0, 1fr); }
	.tmh-adjacent__item--next { text-align: left; align-items: flex-start; }
	.tmh-search-result__title { font-size: 19px; }
	.tmh-search-result__arrow { display: none; }
	.tmh-footer__bottom { flex-direction: column; align-items: flex-start; }
	.tmh-404__actions .tmh-btn { width: 100%; }
	.tmh-pagination__page, .tmh-pagination__arrow { min-width: 34px; height: 34px; }
}

@media (max-width: 560px) {
	:root { --tmh-header-h: 64px; }
	.tmh-logo__img { height: 22px; max-width: 120px; }
	.tmh-header__tools { gap: 11px; }
	.tmh-header__shop { display: none; }
	.tmh-hero__title { font-size: clamp(34px, 10.5vw, 48px); }
	.tmh-hero__lead { font-size: 14.5px; }
	.tmh-hero__chips { gap: 6px; }
	.tmh-hero__chips-label { width: 100%; }
	.tmh-chip { height: 29px; padding: 0 11px; font-size: 11px; }
	.tmh-search--large { height: 54px; }
	.tmh-search--large .tmh-search__input { font-size: 14px; padding-left: 48px; }
	.tmh-search--large .tmh-search__icon { left: 17px; }
	.tmh-search--large .tmh-search__submit { padding: 0 14px; }
	.tmh-search--large .tmh-search__submit span { display: none; }
	.tmh-cat-grid, .tmh-cat-grid--sub { grid-template-columns: minmax(0, 1fr); }
	.tmh-cat-card__media { height: 112px; }
	.tmh-section__head { align-items: flex-start; flex-direction: column; gap: 10px; }
	.tmh-section__head--compact { flex-direction: row; align-items: flex-end; }
	.tmh-section__title { font-size: 26px; }
	.tmh-link-list__item { grid-template-columns: 28px minmax(0, 1fr); }
	.tmh-link-list__meta { display: none; }
	.tmh-article__meta { gap: 6px 14px; font-size: 10px; }
	.tmh-article__cover { margin-bottom: 22px; }
	.tmh-feedback { padding: 18px; }
	.tmh-feedback__title { font-size: 19px; }
	.tmh-feedback__actions { width: 100%; }
	.tmh-feedback__btn { flex: 1; justify-content: center; }
	.tmh-footer__top { grid-template-columns: minmax(0, 1fr); }
	.tmh-footer__brand { grid-column: auto; }
	.tmh-pagination__page:not(.is-current):not(:first-child):not(:last-child) { display: none; }
	.tmh-lightbox__prev { left: 8px; }
	.tmh-lightbox__next { right: 8px; }
	.tmh-lightbox__close { top: 10px; right: 10px; }
	.tmh-404__search .tmh-search--large { height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}