/* =====================================================================
   Admin-Lic — стиль «Velvet»: фиолетовые акценты, градиентная шапка,
   тёмная боковая панель. Светлая тема по умолчанию, тёмная — переключателем.
   ===================================================================== */

:root {
	--primary: #845adf;
	--primary-2: #9a75ea;
	--primary-ink: #ffffff;
	--primary-soft: rgba(132, 90, 223, .1);
	--secondary: #23b7e5;
	--warning: #f5b849;
	--success: #26bf94;
	--danger: #e6533c;
	--info: #49b6f5;

	--bg: #f0f1f7;
	--card: #ffffff;
	--card-2: #f9fafc;
	--line: #eef0f6;
	--line-2: #e2e5ee;
	--text: #232a3b;
	--muted: #8c9097;
	--faint: #a9adb6;
	--input: #ffffff;
	--shadow: 0 1px 2px rgba(33, 40, 50, .05), 0 6px 18px -10px rgba(33, 40, 50, .14);
	--radius: 8px;

	--sidebar: #1a2232;
	--sidebar-2: #212a3c;
	--sidebar-line: rgba(255, 255, 255, .07);
	--sidebar-text: #a3aed1;
	--sidebar-label: #687592;
	--sidebar-w: 300px;
	--sidebar-w-collapsed: 76px;

	--band: linear-gradient(90deg, #5c67f7 0%, #7a63ef 45%, #a15ae6 100%);
	--band-h: 186px;
	--topbar-h: 64px;

	--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	/* Совместимость со старыми именами переменных */
	--amber: var(--primary);
	--amber-2: var(--primary-2);
	--amber-ink: var(--primary-ink);
	--amber-soft: var(--primary-soft);
	--green: var(--success);
	--red: var(--danger);
	--blue: var(--secondary);
	color-scheme: light;
}

html[data-theme="dark"] {
	--bg: #1b1f27;
	--card: #252a35;
	--card-2: #2a303c;
	--line: rgba(255, 255, 255, .06);
	--line-2: rgba(255, 255, 255, .1);
	--text: #e3e6ed;
	--muted: #949bab;
	--faint: #6f7686;
	--input: #20242d;
	--shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 26px -14px rgba(0, 0, 0, .6);
	--primary-soft: rgba(132, 90, 223, .18);
	--sidebar: #1f242e;
	--sidebar-2: #262c38;
	color-scheme: dark;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--topbar-h) + 16px);
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	color: var(--primary-2);
}

:focus-visible {
	outline: 2px solid var(--primary);
	outline-offset: 2px;
}

.icon {
	width: 18px;
	height: 18px;
	flex: none;
	display: block;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	margin: -1px;
	padding: 0;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -60px;
	z-index: 1000;
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--primary);
	color: #fff;
	font-weight: 600;
}

.skip-link:focus {
	top: 12px;
}

/* ---------- Каркас ---------- */
.shell {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	width: var(--sidebar-w);
	flex: none;
	display: flex;
	flex-direction: column;
	background: var(--sidebar);
	color: var(--sidebar-text);
	border-right: 1px solid var(--sidebar-line);
	z-index: 50;
	transition: width .22s ease, transform .25s ease;
}

.main {
	position: relative;
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

/* Градиентная полоса под шапкой и заголовком */
.main::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--band-h);
	background: var(--band);
	pointer-events: none;
}

.content {
	position: relative;
	flex: 1;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 22px clamp(16px, 2.6vw, 32px) 48px;
	outline: none;
}

/* ---------- Логотип ---------- */
.brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	height: var(--topbar-h);
	padding: 0 18px;
	border-bottom: 1px solid var(--sidebar-line);
	flex: none;
}

.brand-link {
	display: flex;
	align-items: center;
	gap: 11px;
	min-width: 0;
	color: #fff;
}

.brand-link:hover {
	color: #fff;
}

.brand-mark {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	flex: none;
	color: #fff;
	background: linear-gradient(135deg, #5c67f7, #a15ae6);
	box-shadow: 0 6px 16px -6px rgba(132, 90, 223, .8);
	overflow: hidden;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.brand-mark .icon {
	width: 20px;
	height: 20px;
}

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

.brand-name {
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.brand-tagline {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sidebar-label);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.icon-btn.sidebar-close {
	display: none;
}

/* ---------- Навигация ---------- */
.side-nav {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.side-label {
	padding: 6px 12px 10px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sidebar-label);
}

/* Подписи разделов внутри меню (Документы, Аудио, Видео…) */
.side-label--group {
	height: 30px;
	padding: 12px 12px 4px;
	line-height: 14px;
}

.nav-menu > li.nav-group-start > .nav-toggle {
	top: 34px;
}

.nav-menu > li.nav-group-start:first-child > .side-label--group {
	height: auto;
	padding-top: 0;
}

.nav-menu > li.nav-group-start:first-child > .nav-toggle {
	top: 22px;
}

.nav-menu,
.nav-menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu > li {
	position: relative;
	margin-bottom: 2px;
}

.nav-menu a {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 38px;
	padding: 5px 12px;
	border-radius: 7px;
	color: var(--sidebar-text);
	font-weight: 500;
	font-size: 14px;
	transition: background .15s, color .15s;
}

.nav-menu > .menu-item-has-children > a {
	padding-right: 36px;
}

.nav-menu a:hover {
	background: rgba(255, 255, 255, .04);
	color: #fff;
}

.nav-ic {
	width: 22px;
	height: 22px;
	display: grid;
	place-items: center;
	flex: none;
	color: var(--sidebar-text);
	transition: color .15s;
}

.nav-ic .icon {
	width: 19px;
	height: 19px;
}

.nav-menu a:hover .nav-ic {
	color: #fff;
}

.nav-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nav-menu > .current-menu-item > a,
.nav-menu > .current-menu-ancestor > a,
.nav-menu > .current_page_item > a {
	color: #fff;
	font-weight: 600;
	background: rgba(255, 255, 255, .06);
	box-shadow: inset 3px 0 0 var(--primary);
}

.nav-menu > .current-menu-item > a .nav-ic,
.nav-menu > .current-menu-ancestor > a .nav-ic,
.nav-menu > .current_page_item > a .nav-ic {
	color: #fff;
}

.nav-toggle {
	position: absolute;
	right: 6px;
	top: 4px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--sidebar-text);
	cursor: pointer;
}

.nav-toggle .icon {
	width: 15px;
	height: 15px;
	transition: transform .2s;
}

.nav-toggle:hover {
	color: #fff;
}

.menu-item.is-open > .nav-toggle .icon {
	transform: rotate(180deg);
}

.nav-menu .sub-menu {
	display: none;
	margin: 2px 0 8px 22px;
	padding-left: 12px;
}

.menu-item.is-open > .sub-menu,
.current-menu-ancestor > .sub-menu,
.current-menu-parent > .sub-menu {
	display: block;
}

.nav-menu .sub-menu a {
	position: relative;
	min-height: 34px;
	padding: 5px 10px 5px 16px;
	font-size: 13px;
}

.nav-menu .sub-menu a::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 50%;
	width: 6px;
	height: 1.5px;
	background: currentColor;
	opacity: .7;
}

.nav-menu .sub-menu .current-menu-item > a {
	color: #fff;
	font-weight: 600;
}

/* Низ боковой панели */
.sidebar-foot {
	padding: 12px;
	border-top: 1px solid var(--sidebar-line);
	flex: none;
}

.side-card {
	display: flex;
	gap: 10px;
	padding: 12px;
	border-radius: 8px;
	border: 1px solid var(--sidebar-line);
	background: var(--sidebar-2);
	margin-bottom: 8px;
	font-size: 11.5px;
	line-height: 1.45;
	color: var(--sidebar-text);
}

a.side-card {
	color: var(--sidebar-text);
	transition: border-color .15s;
}

a.side-card:hover {
	color: var(--sidebar-text);
	border-color: rgba(132, 90, 223, .6);
}

.side-card strong {
	display: block;
	color: #fff;
	font-size: 12.5px;
	font-weight: 600;
	margin-bottom: 2px;
}

.side-card-ic {
	color: var(--success);
	flex: none;
}

.collapse-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 9px 12px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--sidebar-text);
	font: 500 13px/1 var(--font);
	cursor: pointer;
}

.collapse-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, .04);
}

/* Свёрнутая боковая панель (десктоп) */
@media (min-width: 1025px) {
	.is-collapsed .sidebar {
		width: var(--sidebar-w-collapsed);
	}

	.is-collapsed .brand {
		justify-content: center;
		padding: 0;
	}

	.is-collapsed .brand-text,
	.is-collapsed .nav-label,
	.is-collapsed .nav-toggle,
	.is-collapsed .sub-menu,
	.is-collapsed .side-card,
	.is-collapsed .side-label {
		display: none !important;
	}

	.is-collapsed .nav-menu > .nav-group-start:not(:first-child) {
		margin-top: 8px;
		padding-top: 8px;
		border-top: 1px solid var(--sidebar-line);
	}

	.is-collapsed .nav-menu a {
		justify-content: center;
		padding: 6px;
	}

	.is-collapsed .collapse-btn {
		justify-content: center;
	}

	.is-collapsed .collapse-btn .icon {
		transform: scaleX(-1);
	}
}

/* ---------- Верхняя строка (на градиенте) ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 14px;
	height: var(--topbar-h);
	padding: 0 clamp(16px, 2.6vw, 32px);
	background: var(--band);
	border-bottom: 1px solid rgba(255, 255, 255, .12);
	color: #fff;
}

.search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: min(380px, 100%);
	margin: 0;
}

.search-ic {
	position: absolute;
	right: 14px;
	left: auto;
	width: 17px;
	height: 17px;
	color: #fff;
	pointer-events: none;
}

.search-field {
	width: 100%;
	height: 40px;
	padding: 0 70px 0 18px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .14);
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font: 400 13.5px/1 var(--font);
	transition: background .15s, border-color .15s;
}

.search-field::placeholder {
	color: rgba(255, 255, 255, .75);
}

.search-field:focus {
	outline: none;
	background: rgba(255, 255, 255, .22);
	border-color: rgba(255, 255, 255, .4);
}

.search-field::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.search-kbd {
	position: absolute;
	right: 42px;
	font: 600 10px/1 var(--mono);
	padding: 4px 6px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, .3);
	color: rgba(255, 255, 255, .85);
	pointer-events: none;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-left: auto;
}

.icon-btn {
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	padding: 0;
	border-radius: 8px;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background .15s, color .15s;
}

.topbar .icon-btn {
	color: #fff;
}

.topbar .icon-btn:hover {
	background: rgba(255, 255, 255, .14);
	color: #fff;
}

.icon-btn.burger {
	display: grid;
	flex: none;
}

.i-sun {
	display: none;
}

html[data-theme="dark"] .i-sun {
	display: block;
}

html[data-theme="dark"] .i-moon {
	display: none;
}

.user-chip {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 10px 4px 4px;
	margin-left: 6px;
	border-radius: 999px;
	color: #fff;
	max-width: 240px;
	transition: background .15s;
}

.user-chip:hover {
	color: #fff;
	background: rgba(255, 255, 255, .12);
}

.avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	flex: none;
	font-weight: 700;
	font-size: 12px;
	color: var(--primary);
	background: #fff;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .35);
}

.avatar--sm {
	width: 26px;
	height: 26px;
	font-size: 10px;
	color: #fff;
	background: var(--primary);
	box-shadow: none;
}

.user-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	min-width: 0;
}

.user-name {
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.user-role {
	font-size: 11px;
	color: rgba(255, 255, 255, .75);
}

.topbar .btn-ghost {
	color: #fff;
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .45);
}

.topbar .btn-ghost:hover {
	color: var(--primary);
	background: #fff;
	border-color: #fff;
}

/* Панель администратора WordPress */
@media (min-width: 783px) {
	.admin-bar .sidebar,
	.admin-bar .topbar {
		top: 32px;
	}

	.admin-bar .sidebar {
		height: calc(100vh - 32px);
	}
}

/* ---------- Кнопки ---------- */
.btn,
.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	font: 600 13.5px/1 var(--font);
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn-primary,
.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	color: #fff;
	background: var(--primary);
	box-shadow: 0 4px 14px -6px rgba(132, 90, 223, .8);
}

.btn-primary:hover,
.wp-block-button__link:hover,
.wp-element-button:hover,
input[type="submit"]:hover {
	color: #fff;
	background: #7448d4;
}

.btn-ghost,
.is-style-outline .wp-block-button__link {
	color: var(--text);
	background: var(--card);
	border-color: var(--line-2);
	box-shadow: none;
}

.btn-ghost:hover,
.is-style-outline .wp-block-button__link:hover {
	color: var(--primary);
	border-color: var(--primary);
	background: var(--primary-soft);
}

.btn-sm {
	height: 34px;
	padding: 0 14px;
	font-size: 12.5px;
}

.btn .icon {
	width: 16px;
	height: 16px;
}

/* ---------- Заголовки страниц (на градиенте) ---------- */
.page-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 28px;
	color: #fff;
}

.eyebrow {
	color: var(--primary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.page-head .eyebrow {
	color: rgba(255, 255, 255, .78);
}

.page-title {
	margin: 0;
	font-size: clamp(22px, 2.2vw, 26px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: #fff;
}

.page-lead {
	margin: 6px 0 0;
	color: rgba(255, 255, 255, .85);
	max-width: 720px;
}

.page-lead p {
	margin: 0;
}

.page-head .btn-ghost {
	color: #fff;
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .3);
}

.page-head .btn-ghost:hover {
	color: var(--primary);
	background: #fff;
}

.page-head .badge {
	color: #fff;
	background: rgba(255, 255, 255, .18);
	border-color: rgba(255, 255, 255, .3);
}

.post-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
}

.dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: currentColor;
	opacity: .6;
}

.badge,
.tag {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 9px;
	border-radius: 5px;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--primary);
	background: var(--primary-soft);
	border: 1px solid transparent;
}

a.tag:hover {
	color: #fff;
	background: var(--primary);
}

/* ---------- Карточки ---------- */
.card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

html[data-theme="light"] .card,
html:not([data-theme="dark"]) .card {
	border-color: transparent;
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 32px 0 14px;
}

.section-head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
}

/* Приветствие на главной (на градиенте) */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 24px;
	align-items: center;
	padding: clamp(22px, 3vw, 32px);
	margin-bottom: 8px;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: -45% -12% auto auto;
	width: 460px;
	height: 460px;
	background: radial-gradient(circle, rgba(132, 90, 223, .16), transparent 62%);
	pointer-events: none;
}

.hero-body {
	position: relative;
}

.hero-title {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -.015em;
	max-width: 720px;
}

.hero-lead {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 15px;
	max-width: 620px;
}

.hero-stats {
	position: relative;
	display: grid;
	gap: 12px;
}

.stat {
	--tone: var(--primary);
	--tone-soft: var(--primary-soft);
	display: flex;
	flex-direction: column;
	padding: 14px 16px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--card-2);
	box-shadow: inset 3px 0 0 var(--tone);
}

.stat--green {
	--tone: var(--success);
}

.stat span {
	font-size: 12px;
	color: var(--muted);
	font-weight: 500;
}

.stat b {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

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

.tool-section {
	margin-bottom: 12px;
}

/* Блок «Безопасность» на главной */
.trust {
	margin-top: 24px;
	padding: 24px;
}

.trust-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.trust-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}

.trust-head .btn .icon {
	width: 15px;
	height: 15px;
}

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

.trust-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
	border-radius: 8px;
	border: 1px solid var(--line);
	background: var(--card-2);
}

.trust-item b {
	font-size: 14px;
	font-weight: 600;
}

.trust-item span:last-child {
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}

.trust-ic {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	margin-bottom: 4px;
	color: var(--success);
	background: rgba(38, 191, 148, .12);
}

/* Карточки инструментов */
.tool-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

.tool-card {
	--tone: var(--primary);
	--tone-soft: var(--primary-soft);
	position: relative;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 22px;
	color: var(--text);
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}

.tool-card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--tone);
	opacity: .85;
}

.tool-card:hover {
	color: var(--text);
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -16px rgba(33, 40, 50, .3);
}

.tool-card--amber {
	--tone: var(--primary);
	--tone-soft: var(--primary-soft);
}

.tool-card--blue {
	--tone: var(--secondary);
	--tone-soft: rgba(35, 183, 229, .12);
}

.tool-card--violet {
	--tone: #a15ae6;
	--tone-soft: rgba(161, 90, 230, .12);
}

.tool-card--green {
	--tone: var(--success);
	--tone-soft: rgba(38, 191, 148, .12);
}

.tool-ic {
	width: 48px;
	height: 48px;
	border-radius: 8px;
	display: grid;
	place-items: center;
	flex: none;
	color: var(--tone);
	background: var(--tone-soft);
}

.tool-ic .icon {
	width: 24px;
	height: 24px;
}

.tool-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	flex: 1;
	padding-bottom: 28px;
}

.tool-title {
	font-size: 17px;
	font-weight: 600;
}

.tool-desc {
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.55;
}

.tool-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 6px;
}

.tool-tags span {
	font: 600 10.5px/1 var(--font);
	padding: 5px 8px;
	border-radius: 4px;
	color: var(--muted);
	background: var(--card-2);
	border: 1px solid var(--line);
}

.tool-go {
	position: absolute;
	right: 22px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 13px;
	color: var(--tone);
}

.tool-go .icon {
	width: 15px;
	height: 15px;
	transition: transform .15s;
}

.tool-card:hover .tool-go .icon {
	transform: translateX(3px);
}

/* Сетка записей */
.post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
}

.post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .15s, box-shadow .15s;
}

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px -16px rgba(33, 40, 50, .3);
}

.post-card-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s;
}

.post-card:hover .post-card-thumb img {
	transform: scale(1.03);
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 18px 20px 20px;
}

.post-card-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.post-card-date {
	font-size: 12px;
	color: var(--muted);
}

.post-card-title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

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

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

.post-card-excerpt {
	color: var(--muted);
	font-size: 13.5px;
	flex: 1;
}

.post-card-excerpt p {
	margin: 0 0 14px;
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	font-size: 13px;
}

.link-arrow .icon {
	width: 15px;
	height: 15px;
	transition: transform .15s;
}

.link-arrow:hover .icon {
	transform: translateX(3px);
}

/* Пагинация */
.pagination {
	margin-top: 28px;
}

.pagination .nav-links {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.page-numbers {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	display: inline-grid;
	place-items: center;
	border-radius: 6px;
	border: 1px solid var(--line-2);
	background: var(--card);
	color: var(--text);
	font-weight: 600;
	font-size: 13px;
}

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

a.page-numbers:hover {
	border-color: var(--primary);
	color: var(--primary);
}

/* Пустые состояния / 404 */
.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 48px 20px;
}

.empty-state h1,
.empty-state h2 {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
}

.empty-state p {
	margin: 0 0 8px;
	color: var(--muted);
}

.empty-ic {
	width: 54px;
	height: 54px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	color: var(--primary);
	background: var(--primary-soft);
}

.code-404 {
	font-size: clamp(72px, 12vw, 128px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -.04em;
	background: linear-gradient(90deg, #5c67f7, #a15ae6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.empty-actions {
	margin-bottom: 14px;
}

.empty-state .search-form .search-field {
	color: var(--text);
	background: var(--input);
	border-color: var(--line-2);
}

.empty-state .search-form .search-field::placeholder {
	color: var(--faint);
}

.empty-state .search-form .search-ic,
.empty-state .search-form .search-kbd {
	color: var(--muted);
	border-color: var(--line-2);
}

/* ---------- Контент записи/страницы ---------- */
.entry-hero {
	margin: 0 0 24px;
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
}

.entry-hero img {
	display: block;
	width: 100%;
}

/* Обычная страница — текст в карточке */
.page:not(.page-full) > .entry-content,
.single-post > .entry-content {
	padding: clamp(20px, 3vw, 36px);
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.entry-content {
	font-size: 15px;
	line-height: 1.75;
}

.single-post .entry-content,
.page article:not(.page-full) .entry-content > :not(.alignwide):not(.alignfull):not(.wp-block-shortcode):not(.alc-root):not(.apt-root):not(.adc-root):not(.aie-root):not(.ave-root):not(.apc-root):not(.awp-root):not(.tool-about) {
	max-width: 820px;
}

/* Инструменты — шире обычного текста */
.entry-content > .alc-root,
.entry-content > .apt-root,
.entry-content > .adc-root,
.entry-content > .aie-root,
.entry-content > .ave-root,
.entry-content > .apc-root,
.entry-content > .awp-root,
.entry-content > .tool-about {
	max-width: 1230px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2em;
}

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

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-weight: 600;
	line-height: 1.3;
	margin: 1.8em 0 .6em;
	letter-spacing: -.01em;
}

.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }
.entry-content h4 { font-size: 16px; }

.entry-content p,
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.1em;
}

.entry-content a {
	text-decoration: underline;
	text-decoration-color: rgba(132, 90, 223, .35);
	text-underline-offset: 3px;
}

.entry-content a:hover {
	text-decoration-color: var(--primary);
}

.entry-content a.wp-block-button__link,
.entry-content [class$="-root"] a {
	text-decoration: none;
}

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 16px 20px;
	border-left: 3px solid var(--primary);
	border-radius: 0 8px 8px 0;
	background: var(--primary-soft);
	font-size: 16px;
}

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

.entry-content code,
.entry-content kbd {
	font-family: var(--mono);
	font-size: .88em;
	padding: 2px 6px;
	border-radius: 5px;
	background: var(--card-2);
	border: 1px solid var(--line);
}

.entry-content pre {
	padding: 16px 18px;
	border-radius: 8px;
	background: #1a2232;
	color: #e3e6ed;
	overflow-x: auto;
	font-size: 13.5px;
	line-height: 1.6;
}

.entry-content pre code {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.entry-content th,
.entry-content td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line-2);
	text-align: left;
}

.entry-content th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--muted);
}

.entry-content img {
	border-radius: 8px;
}

.entry-content hr,
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--line-2);
	margin: 2.4em 0;
}

.entry-content figcaption {
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	margin-top: 8px;
}

.alignwide {
	max-width: 1200px;
}

.alignfull {
	max-width: none;
}

.entry-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 24px 0;
	max-width: 820px;
}

.post-navigation {
	max-width: 820px;
	margin: 28px 0;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.post-navigation a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 14px 16px;
	border-radius: 8px;
	background: var(--card);
	box-shadow: var(--shadow);
	color: var(--text);
}

.post-navigation a:hover {
	color: var(--primary);
}

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

.nav-dir {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--primary);
}

.nav-title {
	font-weight: 600;
}

/* ---------- Комментарии и формы ---------- */
.comments-area {
	max-width: 820px;
	margin-top: 28px;
	padding: 24px;
}

.comments-title,
.comment-reply-title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 600;
}

.comment-list,
.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .children {
	margin-left: 28px;
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.comment-author img {
	border-radius: 50%;
}

.comment-meta a,
.comment-metadata a {
	color: var(--muted);
	font-size: 12px;
}

.reply a {
	font-size: 13px;
	font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid var(--line-2);
	background: var(--input);
	color: var(--text);
	font: 400 14px/1.4 var(--font);
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-soft);
}

.comment-form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	margin-bottom: 6px;
}

.comment-form p {
	margin: 0 0 14px;
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent input {
	width: auto;
	margin-top: 4px;
}

.empty-state .search-form,
.empty-state--404 .search-form {
	width: min(420px, 100%);
}

/* ---------- Подвал ---------- */
.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 16px clamp(16px, 2.6vw, 32px);
	border-top: 1px solid var(--line-2);
	background: var(--card);
	color: var(--muted);
	font-size: 13px;
}

.footer-nav ul {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-nav a {
	color: var(--muted);
}

.footer-nav a:hover {
	color: var(--primary);
}

/* =====================================================================
   Инструменты (плагины) на градиентной полосе: заголовок белый
   ===================================================================== */
.content .alc-app .alc-title,
.content .apt-app .apt-title,
.content .adc-app .adc-title,
.content .aie-app .aie-title,
.content .ave-app .ave-title,
.content .apc-app .apc-title,
.content .awp-app .awp-title {
	margin: 0;
	padding: 0;
	line-height: 1.2;
	letter-spacing: -.01em;
	color: #fff;
	font-weight: 600;
	font-size: clamp(22px, 2.2vw, 26px);
}

.content .alc-app .alc-sub,
.content .apt-app .apt-sub,
.content .adc-app .adc-sub,
.content .aie-app .aie-sub,
.content .ave-app .ave-sub,
.content .apc-app .apc-sub,
.content .awp-app .awp-sub {
	color: rgba(255, 255, 255, .85);
}

/* Отступ от заголовка на градиенте до рабочей области */
.content .alc-head,
.content .apt-head,
.content .adc-head,
.content .aie-head,
.content .ave-head,
.content .apc-head,
.content .awp-head {
	margin-bottom: 32px;
}

.content .apt-head + .apt-tabs,
.content .adc-head + .adc-tabs {
	margin-top: -14px;
	margin-bottom: 28px;
}

.content .alc-eyebrow,
.content .apt-eyebrow,
.content .adc-eyebrow,
.content .aie-eyebrow,
.content .ave-eyebrow,
.content .apc-eyebrow,
.content .awp-eyebrow {
	color: rgba(255, 255, 255, .78);
}

.content .alc-pill,
.content .apt-pill,
.content .adc-pill,
.content .aie-pill,
.content .ave-pill,
.content .apc-pill,
.content .awp-pill {
	color: #fff;
	background: rgba(255, 255, 255, .16);
	border-color: rgba(255, 255, 255, .3);
}

.content .alc-head .alc-btn--ghost,
.content .apt-head .apt-btn--ghost,
.content .aie-head .aie-btn--ghost {
	color: #fff;
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .3);
}

.content .alc-head .alc-btn--primary {
	color: var(--primary);
	background: #fff;
	box-shadow: none;
}

/* Вкладки PDF-редактора и проверки устройств лежат на градиенте */
.content .apt-tabs,
.content .adc-tabs {
	background: rgba(255, 255, 255, .14);
	border-color: rgba(255, 255, 255, .22);
}

.content .apt-app .apt-tabs button,
.content .adc-app .adc-tabs button {
	color: rgba(255, 255, 255, .85);
}

.content .apt-app .apt-tabs button:hover,
.content .adc-app .adc-tabs button:hover {
	color: #fff;
}

.content .apt-app .apt-tabs button.is-active,
.content .adc-app .adc-tabs button.is-active {
	color: var(--primary);
	background: #fff;
	box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .3);
}

/* ---------- Описание инструмента (под рабочей областью) ---------- */
.tool-about {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 28px;
	margin-top: 24px;
	padding: clamp(22px, 3vw, 34px);
	background: var(--card);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	position: relative;
	overflow: hidden;
}

.tool-about::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: linear-gradient(180deg, #5c67f7, #a15ae6);
}

.tool-about.has-points {
	grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr);
}

.tool-about-eyebrow {
	color: var(--primary);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.entry-content .tool-about-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

.tool-about-text {
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.75;
}

.tool-about-text p {
	margin: 0 0 .9em;
}

.tool-about-text ul {
	margin: 0 0 .9em;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.tool-about-text li {
	position: relative;
	padding-left: 18px;
}

.tool-about-text li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .7em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--primary);
}

.tool-about--home {
	margin: 24px 0 0;
}

.tool-about--home .tool-about-title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}

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

.tool-about-text strong,
.tool-about-text b {
	color: var(--text);
	font-weight: 600;
}

.entry-content ul.tool-about-points,
.tool-about-points {
	list-style: none;
	margin: 0;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-self: start;
	border-radius: var(--radius);
	background: var(--primary-soft);
}

.tool-about-points li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

.tool-about-check {
	width: 22px;
	height: 22px;
	flex: none;
	display: grid;
	place-items: center;
	border-radius: 50%;
	color: #fff;
	background: var(--primary);
}

.tool-about-check svg {
	width: 13px;
	height: 13px;
}

@media (max-width: 800px) {
	.tool-about.has-points {
		grid-template-columns: minmax(0, 1fr);
	}
}

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

@media (max-width: 1024px) {
	.sidebar {
		position: fixed;
		left: 0;
		top: 0;
		bottom: 0;
		transform: translateX(-102%);
		box-shadow: 30px 0 60px -20px rgba(0, 0, 0, .6);
	}

	.sidebar-open .sidebar {
		transform: none;
	}

	.icon-btn.sidebar-close {
		display: grid;
		color: var(--sidebar-text);
	}

	.admin-bar .sidebar {
		top: 32px;
	}

	.collapse-btn {
		display: none;
	}

	.sidebar-backdrop {
		position: fixed;
		inset: 0;
		z-index: 45;
		background: rgba(10, 14, 22, .55);
		backdrop-filter: blur(2px);
	}

	.hero {
		grid-template-columns: 1fr;
	}

	.hero-stats {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	:root {
		--topbar-h: 58px;
		--band-h: 170px;
	}

	.topbar {
		gap: 8px;
	}

	.search-kbd,
	.user-meta,
	.topbar .btn span {
		display: none;
	}

	.user-chip {
		padding: 2px;
	}

	.content {
		padding-top: 18px;
	}

	.hero-stats,
	.trust-grid,
	.post-grid {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}
}
