:root {
	--accent: #007aff;
	--accent-dark: #005ecc;
	--accent-text: #0064d2;
	--accent-text-hover: #004fa6;
	--bg: #f7f8fa;
	--bg-soft: #f7f8fa;
	--surface: rgba(255, 255, 255, 0.86);
	--surface-solid: #ffffff;
	--surface-soft: #f0f2f5;
	--text: #0b0f17;
	--muted: #5f6b7a;
	--line: rgba(80, 96, 120, 0.16);
	--line-strong: rgba(80, 96, 120, 0.24);
	--shadow: 0 2px 8px rgba(17, 28, 45, 0.04);
	--shadow-hover: 0 4px 16px rgba(17, 28, 45, 0.07);
	--radius: 8px;
	--content: 1160px;
	--article: 760px;
	--font: "Gilroy", "Montserrat", Helvetica, Arial, sans-serif;
	color-scheme: light;
}

:root[data-theme="dark"] {
	--accent-text: #6aaeff;
	--accent-text-hover: #9acbff;
	--bg: #161616;
	--bg-soft: #171717;
	--surface: rgba(28, 28, 28, 0.88);
	--surface-solid: #1d1d1d;
	--surface-soft: #262626;
	--text: #f5f5f5;
	--muted: #b0b0b0;
	--line: rgba(255, 255, 255, 0.12);
	--line-strong: rgba(255, 255, 255, 0.2);
	--shadow: 0 10px 32px rgba(0, 0, 0, 0.24);
	--shadow-hover: 0 14px 38px rgba(0, 0, 0, 0.3);
	color-scheme: dark;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.62;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration-color: rgba(0, 122, 255, 0.36);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
	transition: color 160ms ease, text-decoration-color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

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

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

button,
input,
textarea,
select {
	font: inherit;
}

button {
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

button:disabled {
	cursor: wait;
	opacity: 0.65;
}

a,
button,
summary,
label {
	touch-action: manipulation;
}

.control-label {
	position: relative;
	top: 1px;
	display: inline-block;
}

::selection {
	background: var(--accent);
	color: #fff;
}

:focus-visible {
	outline: 3px solid rgba(0, 122, 255, 0.32);
	outline-offset: 3px;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	z-index: 1000;
	top: 12px;
	left: 12px;
	padding: 10px 14px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	vertical-align: -0.12em;
}

.site-header {
	position: sticky;
	z-index: 20;
	top: 0;
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
	box-shadow: 0 7px 24px rgba(17, 28, 45, 0.045);
	backdrop-filter: blur(20px) saturate(1.16);
	-webkit-backdrop-filter: blur(20px) saturate(1.16);
}

:root[data-theme="dark"] .site-header {
	background: rgba(24, 24, 24, 0.9);
	box-shadow: 0 7px 24px rgba(0, 0, 0, 0.18);
}

.site-header__inner,
.site-footer__inner,
.site-main {
	width: min(100% - 36px, var(--content));
	margin-inline: auto;
}

.site-header__inner {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	min-height: 66px;
}

.site-branding {
	min-width: 0;
}

.brand-link {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	color: var(--text);
	text-decoration: none;
}

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

.brand-link:hover .brand-mark {
	background: var(--accent);
	color: #fff;
}

.brand-mark {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	height: 38px;
	background: var(--surface-solid);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	color: var(--accent-text);
	font-size: 18px;
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 10px 24px rgba(17, 28, 45, 0.08);
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.brand-text,
.site-description {
	display: block;
	min-width: 0;
}

.custom-logo {
	width: 38px;
	height: 38px;
	max-width: 38px;
	max-height: 38px;
	object-fit: contain;
}

.site-header .custom-logo {
	transform: translateY(3px);
}

.site-header .site-title {
	transform: translateY(4px);
}

.site-title {
	display: block;
	overflow: hidden;
	color: var(--text);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-description {
	overflow: hidden;
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.primary-nav {
	position: relative;
	min-width: 0;
	justify-self: end;
}

.primary-menu,
.footer-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu {
	gap: 3px;
	justify-content: center;
}

.primary-menu li {
	position: relative;
	flex: 0 0 auto;
}

.primary-menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 9px 11px;
	border-radius: 10px;
	color: var(--text);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.primary-menu .menu-label {
	position: relative;
	z-index: 1;
	display: inline-block;
	width: fit-content;
}

.primary-menu > li.menu-item-has-children > a {
	gap: 7px;
}

.primary-menu > li.menu-item-has-children > a::after {
	content: "";
	display: block;
	flex: 0 0 auto;
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: 0.52;
	transform: translateY(-2px) rotate(45deg);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current-menu-ancestor > a {
	background: color-mix(in srgb, var(--accent) 9%, transparent);
	color: var(--accent-text);
}

.primary-menu .menu-label::after {
	display: none;
}

.primary-menu a:hover .menu-label::after,
.primary-menu .current-menu-item > a .menu-label::after,
.primary-menu .current-menu-ancestor > a .menu-label::after {
	display: none;
}

.menu-toggle {
	display: none;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 10px;
	color: var(--text);
	box-shadow: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.menu-toggle:hover {
	background: color-mix(in srgb, var(--accent) 11%, transparent);
	color: var(--accent-text);
	box-shadow: none;
	transform: none;
}

.menu-toggle .icon {
	display: block;
	width: 19px;
	height: 19px;
	margin: auto;
	transform: translateY(-1px);
	vertical-align: middle;
}

.primary-menu .sub-menu {
	position: absolute;
	z-index: 30;
	top: 100%;
	left: 0;
	min-width: 244px;
	margin: 0;
	padding: 7px;
	list-style: none;
	background: rgba(255, 255, 255, 0.97);
	border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(17, 28, 45, 0.13);
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
	backdrop-filter: blur(18px) saturate(1.08);
	-webkit-backdrop-filter: blur(18px) saturate(1.08);
}

:root[data-theme="dark"] .primary-menu .sub-menu {
	background: rgba(31, 31, 31, 0.94);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.primary-menu .sub-menu a {
	display: flex;
	width: 100%;
	align-items: center;
	min-height: 38px;
	padding: 9px 10px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
}

.primary-menu .sub-menu > li.menu-item-has-children > a {
	gap: 8px;
	justify-content: space-between;
	padding-right: 32px;
}

.primary-menu .sub-menu > li.menu-item-has-children > a::after {
	content: "";
	display: block;
	flex: 0 0 auto;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: 0.55;
	transform: rotate(45deg);
	transition: opacity 160ms ease, transform 160ms ease;
}

.primary-menu .sub-menu > li.menu-item-has-children:hover > a::after,
.primary-menu .sub-menu > li.menu-item-has-children:focus-within > a::after {
	opacity: 1;
	transform: translateY(-1px) rotate(45deg);
}

.primary-menu .sub-menu li {
	width: 100%;
	padding-block: 1px;
}

.primary-menu .sub-menu li + li {
	margin-top: 0;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu .current-menu-item > a,
.primary-menu .sub-menu .current-menu-ancestor > a {
	background: rgba(0, 122, 255, 0.1);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	color: var(--accent-text);
}

.primary-menu .sub-menu .menu-label::after {
	display: none;
}

.primary-menu .sub-menu .sub-menu {
	position: static;
	display: block;
	min-width: 0;
	margin: 2px 0 2px 8px;
	padding: 4px 0 4px 8px;
	background: transparent;
	border: 0;
	border-left: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
	border-radius: 0;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.primary-menu > li.is-submenu-open > .sub-menu,
.primary-menu > li.is-submenu-open > .sub-menu .sub-menu {
	opacity: 1;
	pointer-events: auto;
	visibility: visible;
	transform: translateY(0);
}

@media (min-width: 901px) {
	/* Remove closed dropdowns from hit testing, including their nested links. */
	.primary-menu > li:not(.is-submenu-open) > .sub-menu {
		display: none;
	}

	.primary-menu > li > .sub-menu {
		left: auto;
		right: 0;
		max-height: calc(100dvh - 100px);
		overflow-y: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
}

.primary-menu .sub-menu .sub-menu a {
	min-height: 34px;
	padding: 8px 9px 8px 22px;
	color: var(--muted);
	font-size: 13px;
	position: relative;
}

.primary-menu .sub-menu .sub-menu a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 9px;
	width: 5px;
	height: 5px;
	background: currentColor;
	border-radius: 50%;
	opacity: 0.45;
	transform: translateY(-50%);
}

.primary-menu .sub-menu .sub-menu a:hover {
	background: rgba(0, 122, 255, 0.12);
	background: color-mix(in srgb, var(--accent) 13%, transparent);
	color: var(--accent-text);
}

.header-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 2px;
	align-items: center;
	justify-content: flex-end;
	justify-self: end;
	padding: 3px;
	background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
	border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
	border-radius: 12px;
}

.header-social-links,
.footer-social-links {
	display: flex;
	align-items: center;
	gap: 6px;
}

.header-social-links a,
.footer-social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 10px;
	color: var(--muted);
	text-decoration: none;
	box-shadow: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.header-social-links a {
	width: 34px;
	height: 34px;
}

.header-social-links a:hover,
.footer-social-links a:hover {
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	border-color: color-mix(in srgb, var(--accent) 18%, transparent);
	color: var(--accent-text);
	box-shadow: none;
	transform: translateY(-1px);
}

.header-social-links .icon,
.footer-social-links .icon {
	width: 17px;
	height: 17px;
}

.header-social-links a[href*="max.ru"] .icon,
.footer-social-links a[href*="max.ru"] .icon,
.subscribe-tab__icon .icon {
	transform-origin: center;
}

.header-social-links a[href*="max.ru"] .icon,
.footer-social-links a[href*="max.ru"] .icon {
	transform: scale(0.9);
}

.header-social-links a[href*="vk.com"] .icon,
.footer-social-links a[href*="vk.com"] .icon {
	transform: scale(1.3);
	transform-origin: center;
}

.header-search {
	position: absolute;
	right: 0;
	top: calc(100% + 7px);
	z-index: 30;
	width: min(440px, calc(100vw - 32px));
	padding: 12px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: 14px;
	box-shadow: 0 18px 48px rgba(17, 28, 45, 0.14);
}

.header-search[hidden] {
	display: none;
}

.header-search .search-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	max-width: 620px;
	margin: 0;
}

.header-search .search-form button {
	min-height: 44px;
	padding-inline: 14px;
	border-radius: 10px;
}

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 9px;
	color: var(--text);
	box-shadow: none;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.icon-button:hover {
	background: var(--surface-solid);
	color: var(--accent-text);
	box-shadow: 0 3px 10px rgba(17, 28, 45, 0.08);
	transform: none;
}

.icon-button .icon {
	width: 18px;
	height: 18px;
}

.mobile-nav-footer {
	display: none;
}

.theme-toggle__moon,
:root[data-theme="dark"] .theme-toggle__sun {
	display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
	display: block;
}

.site-main {
	padding-block: 30px 60px;
}

.home .site-main {
	padding-top: 0;
}

.archive-header,
.not-found,
.topic-band {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	backdrop-filter: blur(16px) saturate(1.08);
	-webkit-backdrop-filter: blur(16px) saturate(1.08);
}

.front-hero {
	--hero-band: #e5ecf5;
	--hero-panel: #f7f9fc;
	--hero-panel-line: rgba(71, 89, 112, 0.2);
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
	gap: 46px;
	align-items: center;
	min-height: 0;
	padding: 32px 0;
	background: var(--hero-band);
	box-shadow: 0 0 0 100vmax var(--hero-band);
	clip-path: inset(0 -100vmax);
}

.front-hero::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 100vw;
	height: 1px;
	background: color-mix(in srgb, var(--accent) 24%, var(--line-strong));
	transform: translateX(-50%);
}

:root[data-theme="dark"] .front-hero {
	--hero-band: #252525;
	--hero-panel: #202020;
	--hero-panel-line: rgba(255, 255, 255, 0.13);
}

.front-hero__copy {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	max-width: 650px;
}

.front-hero h1,
.archive-header h1,
.single-header h1,
.not-found h1 {
	max-width: 820px;
	margin: 0;
	font-size: 40px;
	font-weight: 800;
	line-height: 1.06;
	letter-spacing: 0;
}

.front-hero h1 {
	max-width: 650px;
	font-size: 36px;
	line-height: 1.16;
}

.front-hero p,
.archive-header p,
.lead {
	max-width: 680px;
	color: var(--muted);
	font-size: 18px;
	font-weight: 400;
}

.front-hero__copy > p:not(.eyebrow) {
	margin: 18px 0 0;
	font-size: 17px;
	line-height: 1.65;
}

.archive-header p {
	max-width: none;
	margin: 12px 0 0;
	line-height: 1.65;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 22px;
}

.hero-directory {
	align-self: center;
	min-width: 0;
	overflow: hidden;
	background: var(--hero-panel);
	border: 1px solid var(--hero-panel-line);
	border-radius: var(--radius);
	box-shadow: none;
}

.hero-directory__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 19px 20px 17px;
}

.hero-directory__icon {
	display: grid;
	flex: 0 0 38px;
	place-items: center;
	width: 38px;
	height: 38px;
	background: var(--accent);
	border-radius: var(--radius);
	color: #fff;
}

.hero-directory__icon .icon {
	width: 18px;
	height: 18px;
}

.hero-directory .eyebrow {
	margin-bottom: 3px;
	color: var(--muted);
	font-size: 12px;
}

.hero-directory h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.hero-topics {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	max-width: none;
	margin: 0;
	border-top: 1px solid var(--hero-panel-line);
}

.hero-topics a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 58px;
	padding: 14px 18px;
	overflow: hidden;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.hero-topics a:nth-child(odd) {
	border-right: 1px solid var(--hero-panel-line);
}

.hero-topics a:nth-child(n + 3) {
	border-top: 1px solid var(--hero-panel-line);
}

.hero-topics a:hover {
	background: color-mix(in srgb, var(--accent) 9%, var(--hero-panel));
	color: var(--accent-text);
}

.hero-topics .icon {
	width: 14px;
	height: 14px;
	color: var(--accent-text);
	opacity: 0.7;
	transition: opacity 160ms ease, transform 160ms ease;
}

.hero-topics a:hover .icon {
	opacity: 1;
	transform: translateX(2px);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	margin: 0 0 12px;
	color: var(--accent-text);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: none;
}

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 7px;
	align-items: center;
	margin-bottom: 14px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
}

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

.breadcrumbs span:last-child {
	overflow: hidden;
	max-width: 100%;
	color: var(--text);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.category-nav {
	display: grid;
	gap: 14px;
	margin-bottom: 24px;
	padding: 16px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 7px 24px rgba(17, 28, 45, 0.04);
}

.category-nav__group {
	display: grid;
	gap: 10px;
}

.category-nav__group p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

.category-nav__links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.category-nav__links a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 7px 11px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.category-nav__links a:hover,
.category-nav__links a.is-active {
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
	color: var(--accent-text);
}

.section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 20px;
	margin-block: 52px 18px;
}

.home .topic-links,
.home .subscribe-switch,
.home .section-html,
.home .topic-band,
.home .site-main > .section-head {
	margin-top: 48px;
}

.home .section-head,
.home .topic-links .section-head {
	margin-bottom: 16px;
}

.section-head h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.14;
	letter-spacing: 0;
}

.text-link {
	color: var(--accent-text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
}

.post-card {
	display: flex;
	height: 100%;
	overflow: hidden;
	flex-direction: column;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: border-color 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
	border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
	box-shadow: var(--shadow-hover);
}

.post-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1.66 / 1;
	overflow: hidden;
	background: var(--surface-soft);
	text-decoration: none;
}

.post-card__media::after {
	content: none;
}

.post-card:hover .post-card__media::after {
	opacity: 0.5;
}

.post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 180ms ease;
}

.post-card:hover .post-card__media img {
	filter: saturate(1.03) contrast(1.01);
}

.post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--surface-soft);
}

.post-card__category {
	position: absolute;
	z-index: 2;
	left: 12px;
	bottom: 12px;
	max-width: calc(100% - 24px);
	padding: 6px 9px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.88);
	border-radius: var(--radius);
	color: #0b0f17;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.post-card__body {
	display: flex;
	flex: 1;
	min-height: 210px;
	padding: 18px;
	flex-direction: column;
}

.post-card h2 {
	display: -webkit-box;
	min-height: calc(1.24em * 2);
	overflow: hidden;
	margin: 11px 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.24;
	letter-spacing: 0;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.post-card h2 a {
	text-decoration: none;
}

.post-card:hover h2 a {
	color: var(--accent-text);
}

.post-card p {
	display: -webkit-box;
	min-height: calc(1.55em * 3);
	overflow: hidden;
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.post-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	width: fit-content;
	min-height: 32px;
	margin-top: auto;
	padding: 7px 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--accent-text);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.post-card__more:hover {
	background: transparent;
	color: var(--accent-text-hover);
}

.post-card__more .icon {
	width: 15px;
	height: 15px;
	transition: transform 160ms ease;
}

.post-card:hover .post-card__more .icon {
	transform: translateX(2px);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: center;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
}

.entry-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1.25;
}

.entry-meta .icon {
	width: 1em;
	height: 1em;
	color: var(--accent-text);
	position: relative;
	top: -0.09em;
	transform: none;
	vertical-align: middle;
}

.entry-meta a {
	color: var(--muted);
	text-decoration: none;
}

.entry-meta a:hover {
	color: var(--accent-text);
}

.archive-header,
.not-found {
	margin-bottom: 26px;
	padding: 30px;
	box-shadow: none;
}

.single-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 46px;
	align-items: start;
	max-width: var(--content);
	margin-inline: auto;
}

.single-article,
.comments-area {
	min-width: 0;
	max-width: var(--article);
}

.page-article {
	max-width: 100%;
}

.about-page .breadcrumbs {
	margin-bottom: 16px;
}

.about-hero {
	--about-band: #edf1f5;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
	gap: 48px;
	align-items: center;
	padding: 38px 0 40px;
	background: var(--about-band);
	box-shadow: 0 0 0 100vmax var(--about-band);
	clip-path: inset(0 -100vmax);
}

.about-hero::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 100vw;
	height: 1px;
	background: color-mix(in srgb, var(--accent) 24%, var(--line-strong));
	transform: translateX(-50%);
}

:root[data-theme="dark"] .about-hero {
	--about-band: #202020;
}

.about-hero__copy {
	min-width: 0;
}

.about-hero__copy > .eyebrow {
	margin-bottom: 8px;
}

.about-hero h1 {
	max-width: 720px;
	margin: 0;
	color: var(--text);
	font-size: 40px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
}

.about-hero__intro {
	max-width: 700px;
	margin-top: 18px;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.68;
}

.about-hero__intro p {
	margin: 0 0 12px;
	color: inherit;
}

.about-hero__intro p:last-child {
	margin-bottom: 0;
}

.about-hero__topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.about-hero__topics li {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 32px;
	padding: 6px 10px;
	background: color-mix(in srgb, var(--accent) 6%, var(--surface-solid));
	border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
	border-radius: var(--radius);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.about-hero__topics li::before {
	content: "";
	flex: 0 0 5px;
	width: 5px;
	height: 5px;
	background: var(--accent);
	border-radius: 50%;
}

.about-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.about-hero__actions .button-link {
	min-height: 44px;
}

.about-hero__actions .button-link--ghost .icon {
	width: 17px;
	height: 17px;
	fill: currentColor;
	stroke: none;
}

.about-hero__signals {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 24px 0 0;
	padding: 17px 0 0;
	border-top: 1px solid var(--line-strong);
	list-style: none;
}

.about-hero__signals li {
	min-width: 0;
	padding: 0 14px;
}

.about-hero__signals li:first-child {
	padding-left: 0;
}

.about-hero__signals li + li {
	border-left: 1px solid var(--line-strong);
}

.about-hero__signals strong,
.about-hero__signals span {
	display: block;
}

.about-hero__signals strong {
	font-size: 13px;
	line-height: 1.35;
}

.about-hero__signals span {
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.4;
}

.about-hero__portrait {
	position: relative;
	justify-self: end;
	width: min(100%, 300px);
}

.about-hero__portrait figure {
	margin: 0;
}

.about-hero__portrait img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center 16%;
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	box-shadow: 0 14px 34px rgba(17, 28, 45, 0.13);
}

.about-hero__portrait figcaption {
	display: none;
}

.about-page__layout {
	display: grid;
	grid-template-columns: 230px minmax(0, 780px);
	gap: 56px;
	justify-content: center;
	align-items: start;
	max-width: 1066px;
	margin: 44px auto 0;
}

.about-page__rail {
	position: sticky;
	top: 90px;
	display: grid;
	gap: 20px;
}

.about-page__nav {
	padding: 18px 0;
	border-block: 1px solid var(--line-strong);
}

.about-page__nav > .eyebrow {
	margin: 0 0 10px;
}

.about-page__nav ol {
	display: grid;
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.about-page__nav a {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	gap: 8px;
	align-items: baseline;
	padding: 7px 6px;
	border-radius: 6px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.about-page__nav a:hover {
	background: color-mix(in srgb, var(--accent) 7%, transparent);
	color: var(--text);
}

.about-page__nav a span {
	color: var(--accent-text);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0;
}

.about-page__principle {
	padding: 18px;
	background: color-mix(in srgb, var(--accent) 6%, var(--surface-solid));
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.about-page__note-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin-bottom: 12px;
	background: color-mix(in srgb, var(--accent) 11%, transparent);
	border-radius: var(--radius);
	color: var(--accent-text);
}

.about-page__note-icon .icon {
	width: 18px;
	height: 18px;
}

.about-page__principle .eyebrow {
	margin-bottom: 6px;
}

.about-page__principle p:not(.eyebrow) {
	margin: 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.55;
}

.about-page__main,
.about-page__content {
	min-width: 0;
	max-width: 780px;
}

.about-page__content {
	counter-reset: about-section;
}

.about-page__content > p {
	font-size: 17px;
	line-height: 1.72;
}

.about-page__content > h2 {
	display: flex;
	gap: 12px;
	align-items: baseline;
	scroll-margin-top: 92px;
	counter-increment: about-section;
	margin-top: 44px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
	font-size: 26px;
	line-height: 1.22;
}

.about-page__content > h2::before {
	content: counter(about-section, decimal-leading-zero);
	color: var(--accent-text);
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.about-page__content > h2:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: 0;
}

.about-page__content > ul {
	display: grid;
	gap: 0;
	margin: 22px 0 30px;
	padding: 0;
	border-block: 1px solid var(--line);
	list-style: none;
}

.about-page__content > ul li {
	position: relative;
	margin: 0;
	padding: 13px 8px 13px 30px;
	line-height: 1.55;
}

.about-page__content > ul li + li {
	border-top: 1px solid var(--line);
}

.about-page__content > ul li::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 4px;
	width: 9px;
	height: 5px;
	border-bottom: 2px solid var(--accent);
	border-left: 2px solid var(--accent);
	transform: rotate(-45deg);
}

.about-contacts {
	display: grid;
	grid-template-columns: minmax(190px, 0.72fr) minmax(0, 1.28fr);
	gap: 30px;
	align-items: start;
	scroll-margin-top: 92px;
	margin-top: 48px;
	padding: 28px;
	background: color-mix(in srgb, var(--accent) 7%, var(--surface-solid));
	border-top: 3px solid var(--accent);
	border-radius: var(--radius);
}

.about-contacts__head .eyebrow {
	margin-bottom: 6px;
}

.about-contacts__head h2 {
	margin: 0;
	font-size: 24px;
	line-height: 1.2;
}

.about-contacts__head p:last-child {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.about-contacts__links {
	display: grid;
}

.about-contacts__links > a {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) 16px;
	gap: 12px;
	align-items: center;
	min-height: 62px;
	padding: 10px 4px;
	border-bottom: 1px solid var(--line-strong);
	color: var(--text);
	text-decoration: none;
}

.about-contacts__links > a:first-child {
	padding-top: 0;
}

.about-contacts__links > a:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.about-contacts__links > a:hover {
	color: var(--accent-text);
}

.about-contacts__icon {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	background: var(--surface-solid);
	border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(17, 28, 45, 0.08);
	color: var(--accent-text);
}

.about-contacts__icon .icon {
	width: 17px;
	height: 17px;
	fill: currentColor;
	stroke: none;
}

.about-contacts__links a[aria-label^="MAX"] .about-contacts__icon .icon {
	width: 15px;
	height: 15px;
	transform: translateX(0.5px);
}

.about-contacts__links a[aria-label*="ВКонтакте"] .about-contacts__icon .icon {
	width: 16px;
	height: 16px;
}

.about-contacts__label,
.about-contacts__label strong,
.about-contacts__label small {
	display: block;
	min-width: 0;
}

.about-contacts__label strong {
	font-size: 14px;
	line-height: 1.25;
}

.about-contacts__label small {
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.3;
}

.about-contacts__arrow {
	width: 16px;
	height: 16px;
	color: var(--muted);
}

.single-header {
	margin-bottom: 24px;
}

.single-header .entry-meta {
	margin-bottom: 14px;
}

.single-cover {
	margin: 0 0 30px;
	overflow: hidden;
	background: var(--surface-soft);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.single-cover img {
	width: 100%;
	max-height: min(520px, 58vh);
	object-fit: cover;
}

.post-toc {
	margin: 0 0 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 8px 26px rgba(17, 28, 45, 0.045);
	overflow: hidden;
}

.post-toc summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 15px 18px;
	color: var(--text);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	list-style: none;
}

.post-toc summary::-webkit-details-marker {
	display: none;
}

.post-toc summary .icon {
	width: 17px;
	height: 17px;
	color: var(--accent-text);
	transform: rotate(90deg);
	transition: transform 160ms ease;
}

.post-toc[open] summary {
	border-bottom: 1px solid var(--line);
}

.post-toc[open] summary .icon {
	transform: rotate(-90deg);
}

.post-toc nav {
	padding: 14px 18px 18px;
}

.post-toc ol {
	display: grid;
	gap: 6px;
	counter-reset: toc;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-toc__item {
	counter-increment: toc;
}

.post-toc a {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: start;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 8px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.post-toc a::before {
	content: counter(toc, decimal-leading-zero);
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.65;
}

.post-toc a:hover {
	background: color-mix(in srgb, var(--accent) 9%, transparent);
	color: var(--accent-text);
}

.entry-content {
	font-size: 18px;
	line-height: 1.75;
	overflow-wrap: break-word;
}

.entry-content :is(h2, h3, h4, [id]) {
	scroll-margin-top: 100px;
}

.entry-content .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
}

.entry-content .wp-block-table table {
	width: 100%;
	border-collapse: collapse;
}

.entry-content .wp-block-table :is(th, td) {
	padding: 10px 12px;
	border: 1px solid var(--line-strong);
	text-align: inherit;
}

.entry-content .wp-block-table thead {
	background: var(--surface-soft);
}

.entry-content > * {
	margin-block: 0 1.18em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	margin-block: 1.7em 0.55em;
	line-height: 1.22;
	letter-spacing: 0;
}

.entry-content h2 {
	font-size: 29px;
}

.entry-content h3 {
	font-size: 23px;
}

.entry-content p,
.entry-content li {
	color: var(--text);
	line-height: 1.75;
}

.entry-content a {
	color: var(--accent-text);
	font-weight: 600;
}

.entry-content blockquote {
	margin-inline: 0;
	padding: 18px 20px;
	background: color-mix(in srgb, var(--accent) 5%, var(--surface-solid));
	border: 1px solid var(--line);
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0;
}

.entry-content code {
	padding: 0.12em 0.28em;
	background: var(--surface-soft);
	border-radius: 5px;
	font-size: 0.9em;
	color: var(--text);
}

.entry-content pre {
	overflow-x: auto;
	padding: 18px;
	background: #0b1220;
	border-radius: var(--radius);
	color: #eef5ff;
}

.entry-content .wp-block-code {
	overflow-x: auto;
	padding: 18px;
	background: #f6f8fb;
	border: 1px solid #d8e0ea;
	border-radius: var(--radius);
	color: #111827;
}

.entry-content .wp-block-code code {
	display: block;
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: 0.92em;
	line-height: 1.65;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

:root[data-theme="dark"] .entry-content .wp-block-code {
	background: #151515;
	border-color: rgba(255, 255, 255, 0.14);
	color: #f3f4f6;
}

.entry-content figure {
	margin-inline: 0;
}

.entry-content img,
.entry-content video {
	width: auto;
	max-width: 100%;
	max-height: min(680px, 72vh);
	border-radius: var(--radius);
	object-fit: contain;
}

.entry-content figure,
.entry-content .wp-block-image,
.entry-content .wp-block-video {
	max-width: 100%;
}

.entry-content figure.wp-block-image {
	display: block;
	width: fit-content;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.entry-content figcaption,
.entry-content .wp-element-caption {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 8px 0 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.45;
}

.entry-content figure.wp-block-image figcaption,
.entry-content figure.wp-block-image .wp-element-caption {
	display: block;
	width: 100%;
	max-width: 100%;
}

.entry-content .has-text-align-center,
.entry-content figcaption.has-text-align-center,
.entry-content .wp-element-caption.has-text-align-center {
	text-align: center;
}

.entry-content .has-text-align-right,
.entry-content figcaption.has-text-align-right,
.entry-content .wp-element-caption.has-text-align-right {
	text-align: right;
}

.entry-content .has-text-align-left,
.entry-content figcaption.has-text-align-left,
.entry-content .wp-element-caption.has-text-align-left {
	text-align: left;
}

.entry-content figure img,
.entry-content .wp-block-image img,
.entry-content .wp-block-video video {
	display: block;
	margin-inline: auto;
}

.entry-content .wp-block-image,
.entry-content .wp-block-video {
	overflow: hidden;
}

.entry-content .wp-block-video video {
	width: auto;
	max-width: 100%;
	max-height: min(680px, 72vh);
	margin-inline: auto;
	background: #0b0f17;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
	max-width: 100%;
	border-radius: var(--radius);
}

.entry-content .wp-block-embed {
	overflow: hidden;
}

.entry-content .wp-block-embed__wrapper {
	overflow: hidden;
	border-radius: var(--radius);
}

@supports selector(img:has(+ *)) {
	.entry-content figure:has(img[width][height]) {
		width: fit-content;
		max-width: 100%;
		margin-right: auto;
		margin-left: auto;
	}

	.entry-content figure:has(img[width][height]) figcaption,
	.entry-content figure:has(img[width][height]) .wp-element-caption {
		width: 100%;
	}

	.entry-content figure.alignleft:has(img[width][height]),
	.entry-content figure.alignright:has(img[width][height]) {
		width: auto;
	}
}

@supports selector(img[style*="aspect-ratio"]) {
	.entry-content img[style*="aspect-ratio"] {
		max-height: min(680px, 72vh);
	}
}

.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-content .alignright,
.entry-content figure.alignright,
.entry-content img.alignright {
	float: right;
	max-width: min(48%, 360px);
	margin: 0.35em 0 1em 1.4em;
}

.entry-content .alignleft,
.entry-content figure.alignleft,
.entry-content img.alignleft {
	float: left;
	max-width: min(48%, 360px);
	margin: 0.35em 1.4em 1em 0;
}

.entry-content .aligncenter,
.entry-content figure.aligncenter,
.entry-content img.aligncenter {
	display: block;
	margin-right: auto;
	margin-left: auto;
	text-align: center;
}

.entry-content figure.wp-block-image.aligncenter {
	width: fit-content;
	max-width: 100%;
}

.entry-content .alignwide {
	max-width: 100%;
}

.entry-content figure.alignright img,
.entry-content figure.alignleft img,
.entry-content figure.aligncenter img {
	width: 100%;
}

.entry-content figure.alignright figcaption,
.entry-content figure.alignleft figcaption {
	font-size: 13px;
	line-height: 1.4;
}

.article-share {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
	gap: 22px;
	align-items: center;
	margin-top: 38px;
	padding: 22px;
	background: color-mix(in srgb, var(--accent) 5%, var(--surface-solid));
	border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
	border-radius: var(--radius);
}

.article-share .eyebrow,
.article-author .eyebrow {
	margin-bottom: 5px;
	font-size: 12px;
}

.article-share h2 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.28;
}

.article-share__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.article-share__feedback {
	grid-column: 1 / -1;
	min-width: 0;
	margin-top: -12px;
}

.article-share__status {
	min-height: 1.5em;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.5;
}

.article-share__manual {
	display: grid;
	gap: 6px;
	margin-top: 8px;
	font-size: 13px;
}

.article-share__manual input {
	width: 100%;
	min-width: 0;
	padding: 10px;
	background: var(--surface-solid);
	border: 1px solid var(--line-strong);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 16px;
}

.share-action {
	position: relative;
	display: inline-flex;
	min-width: 0;
	min-height: 40px;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 8px 11px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: left;
	text-decoration: none;
	touch-action: manipulation;
}

.share-action:hover {
	background: color-mix(in srgb, var(--accent) 9%, var(--surface-solid));
	border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
	color: var(--accent-text);
}

.share-action .icon {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	color: var(--accent-text);
}

.article-author {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	gap: 18px;
	align-items: center;
	margin-top: 22px;
	padding: 22px 0;
	border-bottom: 1px solid var(--line);
}

.article-author__portrait {
	display: grid;
	width: 88px;
	height: 88px;
	overflow: hidden;
	place-items: center;
	background: color-mix(in srgb, var(--accent) 10%, var(--surface-soft));
	border-radius: 50%;
	color: var(--accent-text);
	font-size: 20px;
	font-weight: 800;
	text-decoration: none;
}

.article-author__portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-author__copy h2 {
	margin: 0;
	font-size: 19px;
	line-height: 1.2;
}

.article-author__copy h2 a {
	text-decoration: none;
}

.article-author__copy > p:last-child {
	max-width: 48ch;
	margin: 7px 0 0;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

.article-author__actions {
	display: grid;
	gap: 10px;
	justify-items: end;
}

.article-author__more {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	gap: 6px;
	color: var(--accent-text);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
}

.article-author__more .icon {
	width: 14px;
	height: 14px;
}

.article-author__socials {
	display: flex;
	gap: 6px;
}

.article-author__socials a {
	display: grid;
	width: 32px;
	height: 32px;
	place-items: center;
	background: var(--surface-soft);
	border: 1px solid transparent;
	border-radius: 50%;
	color: var(--muted);
	text-decoration: none;
}

.article-author__socials a:hover {
	background: color-mix(in srgb, var(--accent) 10%, var(--surface-solid));
	border-color: color-mix(in srgb, var(--accent) 24%, transparent);
	color: var(--accent-text);
}

:root:not([data-theme="dark"]) .article-author__socials a {
	background: #ffffff;
	border-color: var(--line-strong);
	box-shadow: 0 3px 10px rgba(17, 28, 45, 0.08);
}

:root:not([data-theme="dark"]) .article-author__socials a:hover {
	background: color-mix(in srgb, var(--accent) 9%, #ffffff);
	border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
	box-shadow: 0 4px 12px rgba(0, 122, 255, 0.12);
}

.article-author__socials .icon {
	width: 16px;
	height: 16px;
}

.article-author__socials a[aria-label*="ВКонтакте"] .icon {
	width: 18px;
	height: 18px;
}

.article-author__socials a[aria-label^="MAX"] .icon {
	width: 15px;
	height: 15px;
	transform: translateX(0.5px);
}

.single-footer {
	margin-top: 36px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.related-posts {
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.related-posts__head {
	margin-bottom: 16px;
}

.related-posts__head h2 {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.15;
}

.related-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.related-card {
	display: flex;
	height: 100%;
	overflow: hidden;
	flex-direction: column;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	text-decoration: none;
	box-shadow: var(--shadow);
}

.related-card:hover {
	border-color: rgba(0, 122, 255, 0.3);
	color: var(--text);
}

.related-card__media {
	display: block;
	aspect-ratio: 1.58 / 1;
	overflow: hidden;
	background: var(--surface-soft);
}

.related-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 180ms ease, filter 180ms ease;
}

.related-card:hover .related-card__media img {
	filter: saturate(1.03);
	transform: none;
}

.related-card__body {
	display: flex;
	flex: 1;
	min-height: 112px;
	padding: 14px;
	flex-direction: column;
	gap: 8px;
}

.related-card__title {
	display: -webkit-box;
	min-height: calc(1.32em * 2);
	overflow: hidden;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.32;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.related-card__footer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 6px;
}

.related-card__meta {
	min-width: 0;
	overflow: hidden;
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.related-card__more {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 30px;
	padding: 7px 9px;
	background: rgba(0, 122, 255, 0.08);
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	border: 1px solid rgba(0, 122, 255, 0.18);
	border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
	border-radius: 10px;
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
}

.related-card:hover .related-card__more {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.related-card__more .icon {
	width: 14px;
	height: 14px;
	transition: transform 160ms ease;
}

.related-card:hover .related-card__more .icon {
	transform: translateX(3px);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.tag-list a,
.button-link,
.search-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 16px;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}

.button-link:hover,
.search-form button:hover {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: #fff;
}

.button-link .icon {
	width: 16px;
	height: 16px;
	vertical-align: middle;
}

.button-link--ghost {
	background: var(--surface-solid);
	border-color: var(--line);
	color: var(--text);
}

.button-link--ghost:hover {
	background: var(--surface-soft);
	border-color: var(--line-strong);
	color: var(--text);
}

.tag-list a {
	min-height: 34px;
	padding: 7px 10px 5px;
	background: var(--surface-soft);
	border-color: var(--line);
	color: var(--text);
	font-size: 14px;
	box-shadow: none;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	align-items: stretch;
}

.post-navigation a {
	display: flex;
	height: 112px;
	padding: 16px;
	overflow: hidden;
	flex-direction: column;
	justify-content: center;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: rgba(0, 122, 255, 0.28);
	box-shadow: var(--shadow);
}

.post-navigation span {
	display: block;
	margin-bottom: 0;
}

.post-navigation .nav-direction {
	margin-bottom: 6px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 700;
}

.post-navigation .post-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--text);
	font-size: 15px;
	font-weight: 800;
	line-height: 1.28;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.topic-band {
	margin-top: 52px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}

.topic-links,
.subscribe-switch,
.section-html {
	margin-top: 52px;
}

.topic-band .section-head {
	margin-top: 0;
}

.topic-links .section-head {
	margin-block: 0 16px;
}

.topic-links__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	counter-reset: useful-links;
}

.topic-link {
	counter-increment: useful-links;
	position: relative;
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr) auto;
	min-height: 72px;
	padding: 14px 16px;
	overflow: hidden;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: 0 7px 24px rgba(17, 28, 45, 0.04);
}

.topic-link::before {
	content: counter(useful-links, decimal-leading-zero);
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.topic-link:hover {
	background: color-mix(in srgb, var(--accent) 5%, var(--surface-solid));
	border-color: color-mix(in srgb, var(--accent) 26%, var(--line));
	box-shadow: 0 8px 26px rgba(17, 28, 45, 0.06);
	transform: none;
}

.topic-link .icon {
	width: 17px;
	height: 17px;
	align-self: center;
	color: var(--accent-text);
	transition: transform 160ms ease;
}

.topic-link span {
	align-self: center;
}

.topic-link:hover .icon {
	transform: translateX(2px);
}

.subscribe-switch {
	position: relative;
	overflow: hidden;
	background: transparent;
	border-block: 1px solid var(--line);
	border-inline: 0;
	border-radius: 0;
	box-shadow: none;
}

.subscribe-switch > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

#tab-tg:focus-visible ~ .subscribe-switch__inner label[for="tab-tg"],
#tab-max:focus-visible ~ .subscribe-switch__inner label[for="tab-max"],
#tab-vk:focus-visible ~ .subscribe-switch__inner label[for="tab-vk"] {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.subscribe-switch__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 30px 0;
}

.subscribe-switch__head {
	min-width: 0;
}

.subscribe-switch__title {
	max-width: 700px;
	margin: 0;
	color: var(--text);
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.subscribe-switch__subtitle {
	max-width: 620px;
	margin: 9px 0 0;
	color: var(--muted);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.55;
}

.subscribe-switch__tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
	margin: 0;
	padding: 5px;
	background: color-mix(in srgb, var(--surface-soft) 84%, transparent);
	border: 1px solid var(--line);
	border-radius: 10px;
}

.subscribe-tab {
	display: flex;
	min-width: 0;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 9px 12px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 7px;
	color: var(--muted);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.subscribe-tab__icon {
	display: inline-grid;
	place-items: center;
	flex: 0 0 30px;
	width: 30px;
	height: 30px;
	background: transparent;
	border-radius: 7px;
	color: var(--accent-text);
}

.subscribe-tab__icon .icon {
	width: 16px;
	height: 16px;
}

.subscribe-tab[for="tab-max"] .icon {
	transform: scale(0.9);
}

.subscribe-tab[for="tab-vk"] .icon {
	transform: scale(1.3);
}

.subscribe-switch__panels {
	position: relative;
	display: flex;
	min-height: 0;
	margin-top: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.subscribe-switch__panel {
	display: none;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
	gap: 14px;
}

.subscribe-switch__text {
	margin: 0;
	color: var(--text);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
}

.subscribe-switch__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	gap: 8px;
	min-height: 42px;
	padding: 10px 14px;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
}

.subscribe-switch__btn:hover {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: #fff;
	box-shadow: none;
}

.subscribe-switch__btn .icon {
	width: 15px;
	height: 15px;
}

#tab-tg:checked ~ .subscribe-switch__inner label[for="tab-tg"],
#tab-max:checked ~ .subscribe-switch__inner label[for="tab-max"],
#tab-vk:checked ~ .subscribe-switch__inner label[for="tab-vk"] {
	background: var(--surface-solid);
	border-color: transparent;
	color: var(--accent-text);
	box-shadow: 0 3px 12px rgba(17, 28, 45, 0.06);
}

#tab-tg:checked ~ .subscribe-switch__inner .subscribe-tg,
#tab-max:checked ~ .subscribe-switch__inner .subscribe-max,
#tab-vk:checked ~ .subscribe-switch__inner .subscribe-vk {
	display: flex;
}

.topic-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.topic-list a {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 10px;
	min-height: 56px;
	padding: 12px 13px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

.topic-list a:hover {
	border-color: color-mix(in srgb, var(--accent) 25%, var(--line));
	background: color-mix(in srgb, var(--accent) 5%, var(--surface-solid));
}

.topic-list__icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	background: var(--surface-soft);
	border-radius: var(--radius);
	color: var(--accent-text);
}

.topic-list__icon .icon {
	width: 15px;
	height: 15px;
}

.topic-list small {
	color: var(--muted);
}

.section-html__body {
	width: 100%;
	padding: 30px 0;
	background: transparent;
	border-block: 1px solid var(--line);
	border-inline: 0;
	border-radius: 0;
	box-shadow: none;
}

.why-site__title {
	margin: 0 0 16px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0;
}

.section-html__body p {
	margin: 0 0 1em;
	color: var(--text);
	font-size: 17px;
	line-height: 1.7;
}

.section-html__body p:last-child {
	margin-bottom: 0;
}

.section-html__body ul {
	display: grid;
	gap: 9px;
	margin: 0 0 1.2em;
	padding: 0;
	list-style: none;
}

.section-html__body li {
	position: relative;
	padding-left: 20px;
	color: var(--text);
	font-size: 16px;
	line-height: 1.55;
}

.section-html__body li::before {
	content: "";
	position: absolute;
	top: 0.68em;
	left: 0;
	width: 7px;
	height: 7px;
	background: var(--accent);
	border-radius: 50%;
}

.search-form {
	display: flex;
	gap: 10px;
	max-width: 560px;
	margin-top: 18px;
}

.search-form label {
	flex: 1;
}

.search-field {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
}

.page-links,
.nav-links,
.pagination {
	margin-top: 28px;
}

.page-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	font-weight: 700;
}

.page-links a,
.page-links .post-page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 6px 9px 4px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
	line-height: 1;
	text-decoration: none;
}

.page-links .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 7px 10px 5px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	line-height: 1;
	text-decoration: none;
}

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

.comments-area {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
}

.ad-slot {
	overflow: hidden;
	margin: 30px 0;
	padding: 14px;
	background: var(--surface-solid);
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--muted);
	text-align: center;
}

.ad-slot--sidebar {
	margin: 0;
	padding: 12px;
}

.post-sidebar {
	position: sticky;
	top: 96px;
	display: grid;
	gap: 14px;
	align-self: start;
	max-height: calc(100vh - 116px);
	min-width: 0;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 122, 255, 0.36) transparent;
}

.post-sidebar::-webkit-scrollbar {
	width: 6px;
}

.post-sidebar::-webkit-scrollbar-thumb {
	background: rgba(0, 122, 255, 0.34);
	border-radius: 999px;
}

.sidebar-widget {
	padding: 18px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: none;
}

.sidebar-widget--accent {
	background: color-mix(in srgb, var(--accent) 8%, var(--surface-solid));
	border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
	color: var(--text);
}

.sidebar-widget--accent p {
	color: var(--muted);
}

.sidebar-widget__title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
}

.sidebar-widget--accent .sidebar-widget__title {
	border-bottom-color: color-mix(in srgb, var(--accent) 18%, var(--line));
}

.sidebar-widget p {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.55;
}

.sidebar-widget .search-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 0;
}

.sidebar-widget .search-form button {
	width: 100%;
}

.sidebar-widget__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent-text);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.sidebar-widget__link:hover {
	color: var(--accent-text-hover);
	opacity: 1;
}

.sidebar-posts {
	display: grid;
	gap: 10px;
}

.sidebar-posts a {
	display: grid;
	gap: 4px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	text-decoration: none;
}

.sidebar-posts a:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sidebar-posts a:hover span {
	color: var(--accent-text);
}

.sidebar-posts span {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.sidebar-posts small {
	color: var(--muted);
	font-size: 12px;
}

.sidebar-categories {
	display: grid;
	gap: 8px;
}

.sidebar-categories a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--line);
	color: var(--text);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.sidebar-categories a:last-child {
	border-bottom: 0;
}

.sidebar-categories a:hover span {
	color: var(--accent-text);
}

.sidebar-categories small {
	color: var(--muted);
	font-size: 12px;
}

.comment-list {
	padding-left: 22px;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	background: var(--surface-solid);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	color: var(--text);
}

.form-submit .submit {
	min-height: 42px;
	padding: 10px 14px 8px;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: var(--radius);
	color: #fff;
	font-weight: 700;
}

.site-footer {
	margin-top: 14px;
	background: color-mix(in srgb, var(--surface-solid) 84%, var(--bg-soft));
	border-top: 1px solid var(--line);
	color: var(--muted);
}

.site-footer__inner {
	display: grid;
	grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
	gap: 28px;
	align-items: start;
	padding-block: 32px 24px;
	color: var(--muted);
	font-size: 14px;
}

.site-footer p {
	margin: 0;
}

.site-footer .brand-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--text);
}

.site-footer .brand-link:hover {
	color: var(--text);
}

.site-footer .brand-mark {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	box-shadow: none;
}

.footer-logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.footer-logo .custom-logo {
	max-width: 190px;
	max-height: 46px;
}

.footer-brand .brand-text > span:last-child {
	display: block;
	max-width: 360px;
	margin-top: 8px;
	color: var(--muted);
	line-height: 1.5;
}

.footer-social-links {
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	width: fit-content;
	max-width: 100%;
}

.footer-social-links a {
	gap: 8px;
	min-height: 38px;
	padding: 0 12px;
	background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
	border-color: transparent;
	color: var(--muted);
	font-size: 13px;
	font-weight: 800;
}

.footer-social-links a:hover {
	background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.footer-title {
	color: var(--text);
	font-size: 17px;
	font-weight: 800;
}

.footer-navs {
	display: grid;
	gap: 16px;
	justify-items: end;
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 6px 14px;
}

.footer-menu a {
	color: var(--muted);
	font-weight: 600;
	text-decoration: none;
}

.footer-menu a:hover {
	color: var(--accent-text);
}

.footer-category-tree {
	display: grid;
	gap: 10px;
	justify-items: end;
}

.footer-category-tree__group {
	display: grid;
	gap: 5px;
	justify-items: end;
	padding-bottom: 8px;
}

.footer-category-tree__parent {
	color: var(--text);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.footer-category-tree__children {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	justify-content: flex-end;
}

.footer-category-tree__children a {
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.footer-category-tree a:hover {
	color: var(--accent-text);
}

.site-footer__bottom {
	display: flex;
	width: min(100% - 36px, var(--content));
	margin-inline: auto;
	padding-block: 16px 22px;
	justify-content: space-between;
	gap: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 13px;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	color: var(--muted);
	text-decoration: none;
}

.site-footer__bottom a:hover {
	color: var(--accent-text);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	justify-content: flex-end;
}

.post-max-subscribe {
	position: relative;
	margin: 34px 0;
	padding: 0;
	overflow: hidden;
	background: color-mix(in srgb, var(--accent) 6%, var(--surface-solid));
	border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
	border-radius: var(--radius);
	color: var(--text);
	box-shadow: 0 8px 28px rgba(17, 28, 45, 0.055);
}

.post-max-subscribe::before {
	display: none;
}

:root[data-theme="dark"] .post-max-subscribe {
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.post-max-subscribe__inner {
	position: relative;
	display: grid;
	padding: 26px;
	gap: 0;
}

.post-max-subscribe__badge {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	margin: 0;
	padding: 6px 10px;
	background: rgba(0, 122, 255, 0.1);
	border: 1px solid rgba(0, 122, 255, 0.18);
	border-radius: 6px;
	color: var(--accent-text);
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.entry-content .post-max-subscribe__title {
	max-width: 760px;
	margin: 9px 0 0;
	color: var(--text);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
}

.post-max-subscribe__text {
	max-width: 780px;
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
}

.post-max-subscribe__text strong {
	color: var(--text);
	font-weight: 800;
}

.post-max-subscribe__button {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 44px;
	margin-top: 16px;
	padding: 10px 14px;
	background: var(--accent);
	border: 1px solid var(--accent);
	border-radius: 8px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	box-shadow: none;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.post-max-subscribe__button:hover,
.post-max-subscribe__button:focus {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: #fff !important;
	box-shadow: none;
	transform: none;
}

.post-max-subscribe__button span:last-child {
	display: inline-block;
	padding-top: 1px;
}

.post-max-subscribe__button-icon,
.post-max-subscribe__button-icon svg {
	display: block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.post-max-subscribe__button-icon {
	display: inline-grid;
	place-items: center;
}

@media (max-width: 768px) {
	.post-max-subscribe {
		margin-block: 24px;
		border-radius: var(--radius);
	}

	.post-max-subscribe::before {
		display: none;
	}

	.post-max-subscribe__inner {
		padding: 18px;
	}

	.entry-content .post-max-subscribe__title {
		margin-top: 8px;
		font-size: 22px;
	}

	.post-max-subscribe__text {
		margin-top: 9px;
		font-size: 15px;
		line-height: 1.62;
	}

	.post-max-subscribe__button {
		width: 100%;
		min-height: 46px;
		margin-top: 14px;
	}

	.entry-content .alignright,
	.entry-content .alignleft,
	.entry-content figure.alignright,
	.entry-content figure.alignleft,
	.entry-content img.alignright,
	.entry-content img.alignleft {
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 0 16px !important;
	}

	.entry-content figure.alignright figcaption,
	.entry-content figure.alignleft figcaption {
		width: 100% !important;
		max-width: 100% !important;
		padding: 8px 0 0;
		text-align: left;
	}

	.entry-content img,
	.entry-content video,
	.entry-content .wp-block-video video {
		max-height: 62vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (max-width: 1080px) {
	.site-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 10px;
	}

	.primary-menu a {
		padding-inline: 9px;
	}
}

@media (max-width: 920px) {
	.front-hero,
	.topic-links__grid,
	.subscribe-switch__inner,
	.topic-list,
	.single-layout,
	.site-footer__inner {
		grid-template-columns: 1fr;
	}

	.post-grid,
	.related-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.front-hero {
		min-height: 0;
		gap: 28px;
	}

	.about-hero {
		grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
		gap: 32px;
		padding-block: 32px 36px;
	}

	.about-page__layout {
		grid-template-columns: 200px minmax(0, 1fr);
		gap: 32px;
	}

	.hero-directory {
		width: 100%;
	}

	.post-card__body {
		min-height: 0;
	}

	.post-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.site-footer__inner,
	.site-footer__bottom {
		text-align: left;
	}

	.footer-navs,
	.footer-menu,
	.footer-category-tree,
	.footer-category-tree__group,
	.footer-category-tree__children {
		justify-items: start;
		justify-content: flex-start;
	}
}

@media (max-width: 900px) {
	.site-header__inner {
		grid-template-columns: minmax(0, 1fr) auto auto;
		min-height: 60px;
		padding-block: 7px;
	}

	.about-page__layout {
		grid-template-columns: 1fr;
		margin-top: 36px;
	}

	.about-page__rail {
		position: static;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(240px, 0.62fr);
		gap: 20px;
		align-items: start;
	}

	.about-page__nav ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 16px;
	}

	.menu-toggle {
		display: inline-grid;
		order: 3;
	}

	body.is-menu-open .menu-toggle {
		background: color-mix(in srgb, var(--accent) 13%, transparent);
		color: var(--accent-text);
		box-shadow: none;
	}

	.header-actions {
		order: 2;
	}

	.header-social-links {
		display: none;
	}

	.primary-nav {
		position: absolute;
		justify-self: stretch;
		width: auto;
		z-index: 60;
		top: calc(100% + 8px);
		right: 0;
		left: 0;
		display: block;
		max-height: calc(100dvh - 86px);
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 10px 10px 12px;
		background: var(--surface-solid);
		border: 1px solid var(--line);
		border-radius: 14px;
		box-shadow: 0 20px 52px rgba(17, 28, 45, 0.16);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-8px) scale(0.985);
		transform-origin: top center;
		transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
		visibility: hidden;
		backdrop-filter: blur(18px) saturate(1.08);
		-webkit-backdrop-filter: blur(18px) saturate(1.08);
		scrollbar-color: color-mix(in srgb, var(--accent) 54%, transparent) transparent;
		scrollbar-width: thin;
	}

	.primary-nav::-webkit-scrollbar {
		display: block;
		width: 7px;
	}

	.primary-nav::-webkit-scrollbar-track {
		background: transparent;
	}

	.primary-nav::-webkit-scrollbar-thumb {
		background: color-mix(in srgb, var(--accent) 42%, transparent);
		border-radius: 999px;
	}

	.header-actions .search-toggle {
		display: none;
	}

	.header-search {
		position: static;
		width: 100%;
		margin-bottom: 10px;
		padding: 0;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.header-search .search-form {
		grid-template-columns: minmax(0, 1fr) auto;
		max-width: none;
		gap: 6px;
	}

	body.is-menu-open .primary-nav {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0) scale(1);
		visibility: visible;
	}

	.primary-nav.is-scrollable:not(.is-at-end)::after {
		content: "ещё пункты ниже";
		position: sticky;
		z-index: 3;
		bottom: -1px;
		display: flex;
		justify-content: center;
		margin: 10px -2px -2px;
		padding: 9px 12px;
		background: linear-gradient(180deg, transparent, var(--surface-solid) 24%, var(--surface-solid));
		color: var(--muted);
		font-size: 12px;
		font-weight: 800;
		line-height: 1;
		pointer-events: none;
	}

	.primary-menu {
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.primary-menu a {
		width: 100%;
		min-height: 44px;
		align-items: center;
		justify-content: space-between;
		padding: 11px 12px;
		background: transparent;
		border: 0;
		border-radius: 9px;
		box-shadow: none;
		font-size: 15px;
	}

	.primary-menu a:hover,
	.primary-menu .current-menu-item > a,
	.primary-menu .current-menu-ancestor > a {
		background: color-mix(in srgb, var(--accent) 11%, transparent);
	}

	.primary-menu .menu-label::after {
		right: -0.12em;
		bottom: -0.02em;
		left: -0.12em;
		height: 0.64em;
	}

	.primary-menu .sub-menu {
		display: block;
		position: static;
		margin: 2px 0 5px 12px;
		padding: 3px 0 3px 9px;
		border: 0;
		border-left: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
		background: transparent;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		pointer-events: auto;
		visibility: visible;
		transform: none;
	}

	.primary-menu .sub-menu a {
		position: relative;
		z-index: 1;
		min-height: 40px;
		padding: 9px 11px;
		background: transparent;
		color: var(--muted);
		font-size: 14px;
		touch-action: manipulation;
	}

	.primary-menu .sub-menu .sub-menu {
		margin: 2px 0 2px 10px;
		padding: 2px 0 2px 8px;
		background: transparent;
		border: 0;
		border-left: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
		border-radius: 0;
		pointer-events: auto;
	}

	.primary-menu .sub-menu .sub-menu a {
		min-height: 38px;
		padding-block: 8px;
	}

	.mobile-nav-footer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-top: 8px;
		padding: 10px 5px 2px 12px;
		border-top: 1px solid var(--line);
	}

	.mobile-nav-footer__label {
		color: var(--muted);
		font-size: 13px;
		font-weight: 600;
	}

	.mobile-nav-socials {
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.mobile-nav-socials a {
		display: inline-grid;
		place-items: center;
		width: 36px;
		height: 36px;
		min-height: 0;
		padding: 0;
		background: color-mix(in srgb, var(--surface-soft) 78%, transparent);
		border-radius: 9px;
		color: var(--muted);
	}

	.mobile-nav-socials a:hover {
		background: color-mix(in srgb, var(--accent) 11%, transparent);
		color: var(--accent-text);
	}

	.mobile-nav-socials .icon {
		width: 17px;
		height: 17px;
	}

	.mobile-nav-socials a[href*="max.ru"] .icon {
		transform: scale(0.9);
	}

	.mobile-nav-socials a[href*="vk.com"] .icon {
		transform: scale(1.3);
	}

	body:not(.is-menu-open) .primary-nav,
	body:not(.is-menu-open) .primary-nav * {
		pointer-events: none;
		visibility: hidden;
	}
}

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

	.site-main {
		padding-block: 20px 44px;
	}

	.site-header__inner,
	.site-footer__inner,
	.site-main {
		width: min(100% - 24px, var(--content));
	}

	.brand-mark {
		width: 34px;
		height: 34px;
		font-size: 16px;
	}

	.custom-logo {
		width: 34px;
		height: 34px;
		max-width: 34px;
		max-height: 34px;
	}

	.site-title {
		max-width: 178px;
		font-size: 15px;
	}

	.site-description {
		display: none;
	}

	.header-actions {
		gap: 6px;
	}

	.icon-button {
		width: 36px;
		height: 36px;
	}

	.archive-header,
	.not-found,
	.topic-band {
		padding: 20px;
	}

	.front-hero {
		gap: 24px;
		padding: 28px 0 32px;
	}

	.about-page .breadcrumbs {
		margin-bottom: 14px;
	}

	.about-hero {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 26px 0 30px;
	}

	.about-hero h1 {
		font-size: 32px;
	}

	.about-hero__intro {
		margin-top: 14px;
		font-size: 16px;
		line-height: 1.62;
	}

	.about-hero__topics {
		gap: 8px;
		margin-top: 18px;
	}

	.about-hero__actions {
		display: grid;
		grid-template-columns: 1fr;
		margin-top: 18px;
	}

	.about-hero__actions .button-link {
		width: 100%;
	}

	.about-hero__portrait {
		justify-self: center;
		width: min(100%, 280px);
	}

	.about-page__layout {
		gap: 28px;
		margin-top: 30px;
	}

	.about-page__rail {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.about-page__nav {
		padding-block: 15px;
	}

	.about-page__nav ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 12px;
	}

	.about-page__principle {
		padding: 16px;
	}

	.about-hero__signals {
		grid-template-columns: 1fr;
		gap: 10px;
		padding-top: 14px;
	}

	.about-hero__signals li,
	.about-hero__signals li:first-child {
		padding: 0;
	}

	.about-hero__signals li + li {
		padding-top: 10px;
		border-top: 1px solid var(--line);
		border-left: 0;
	}

	.about-page__content > h2 {
		gap: 9px;
		padding-top: 24px;
		font-size: 23px;
	}

	.about-page__content > ul li {
		padding: 12px 4px 12px 28px;
	}

	.about-page__content > ul li::before {
		top: 18px;
		left: 3px;
	}

	.about-page__content > p {
		font-size: 16px;
		line-height: 1.68;
	}

	.about-contacts {
		grid-template-columns: 1fr;
		gap: 20px;
		margin-top: 38px;
		padding: 22px 18px;
	}

	.archive-header,
	.not-found {
		padding-block: 20px;
	}

	.archive-header,
	.not-found {
		margin-bottom: 18px;
	}

	.single-header {
		margin-bottom: 18px;
	}

	.single-header .entry-meta {
		margin-bottom: 10px;
	}

	.single-cover {
		margin-bottom: 22px;
	}

	.front-hero h1,
	.archive-header h1,
	.single-header h1,
	.not-found h1 {
		font-size: 30px;
		line-height: 1.08;
	}

	.front-hero p,
	.archive-header p,
	.lead {
		font-size: 16px;
	}

	.archive-header p {
		margin: 9px 0 0;
		line-height: 1.58;
	}

	.hero-actions,
	.search-form {
		flex-direction: column;
	}

	.hero-actions {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hero-actions .button-link {
		width: 100%;
	}

	.hero-topics {
		grid-template-columns: 1fr;
		max-width: none;
	}

	.hero-topics a:nth-child(odd) {
		border-right: 0;
	}

	.hero-topics a:nth-child(n + 2) {
		border-top: 1px solid var(--hero-panel-line);
	}

	.post-grid,
	.related-posts__grid {
		grid-template-columns: 1fr;
	}

	.section-head,
	.post-navigation .nav-links {
		align-items: stretch;
		flex-direction: column;
		grid-template-columns: 1fr;
	}

	.section-head {
		gap: 10px;
		margin-block: 30px 14px;
	}

	.section-head h2 {
		font-size: 26px;
	}

	.subscribe-switch__inner {
		padding: 24px 0;
	}

	.subscribe-switch__tabs {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.subscribe-tab {
		justify-content: center;
		gap: 5px;
		padding: 8px 4px;
		font-size: 12px;
	}

	.subscribe-tab__icon {
		flex-basis: 18px;
		width: 18px;
		height: 24px;
	}

	.topic-links,
	.subscribe-switch,
	.section-html,
	.topic-band {
		margin-top: 30px;
	}

	.home .topic-links,
	.home .subscribe-switch,
	.home .section-html,
	.home .topic-band,
	.home .site-main > .section-head {
		margin-top: 32px;
	}

	.home .section-head,
	.home .topic-links .section-head {
		margin-bottom: 14px;
	}

	.topic-band {
		padding: 0;
	}

	.entry-content > * {
		margin-block-end: 1.05em;
	}

	.entry-content h2,
	.entry-content h3,
	.entry-content h4 {
		margin-block: 1.55em 0.5em;
	}

	.article-share {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 30px;
		padding: 18px;
	}

	.article-share h2 {
		font-size: 18px;
	}

	.share-action {
		min-height: 42px;
		justify-content: center;
		padding-inline: 8px;
	}

	.article-author {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 14px;
		padding-block: 20px;
	}

	.article-author__portrait {
		width: 68px;
		height: 68px;
	}

	.article-author__copy > p:last-child {
		font-size: 13px;
	}

	.article-author__actions {
		grid-column: 1 / -1;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		justify-items: start;
	}

	.article-author__socials {
		justify-self: end;
	}

	.single-footer {
		margin-top: 28px;
		padding-top: 20px;
	}

	.related-posts {
		margin-top: 28px;
		padding-top: 22px;
	}

	.post-card h2 {
		font-size: 19px;
	}

	.related-card__footer {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		gap: 8px;
	}

	.related-card__more {
		min-height: 32px;
		padding-inline: 10px;
	}

	.entry-content {
		font-size: 16px;
	}

	.entry-content h2 {
		font-size: 25px;
	}

	.site-footer__bottom {
		width: min(100% - 24px, var(--content));
		flex-direction: column;
	}

	.footer-legal {
		justify-content: flex-start;
	}
}
