/* ==========================================================================
   Forever — основной стиль
   Тёмная «азеротская» тема: глубокий сине-чёрный фон, золотой акцент.
   ========================================================================== */

/* ---------- Шрифты (локальные, без Google) ---------- */
@font-face {
	font-family: "Forum";
	src: url("../fonts/forum-cyrillic.woff2") format("woff2");
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Forum";
	src: url("../fonts/forum-latin.woff2") format("woff2");
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-cyrillic.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Переменные ---------- */
:root {
	--bg: #0b0e14;
	--bg-2: #10151e;
	--surface: #141a25;
	--surface-2: #1a2130;
	--border: #262f40;
	--border-2: #323d52;
	--text: #e7e2d7;
	--text-2: #c4c0b6;
	--muted: #8f98a8;
	--gold: #c9a24a;
	--gold-2: #e9c977;
	--gold-dim: rgba(201, 162, 74, .14);
	--tank: #4f8edc;
	--heal: #4fd17a;
	--dps: #e0524f;
	--tier-s: #ff7f50;
	--tier-a: #f0b549;
	--tier-b: #d9d55a;
	--tier-c: #7fd17b;
	--tier-d: #6cb4e8;

	--font-head: "Forum", "Georgia", "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .35);
	--container: 1200px;
	--gutter: 16px;
	--header-h: 64px;

	color-scheme: dark;
}

/* ---------- База ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
	margin: 0;
	background: var(--bg);
	background-image:
		radial-gradient(1200px 600px at 50% -200px, rgba(201, 162, 74, .08), transparent 70%),
		radial-gradient(900px 500px at 100% 0, rgba(63, 110, 199, .06), transparent 60%);
	background-repeat: no-repeat;
	color: var(--text);
	font: 400 17px/1.7 var(--font-body);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

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

a { color: var(--gold-2); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, textarea:focus-visible, select:focus-visible {
	outline: 2px solid var(--gold-2);
	outline-offset: 2px;
	border-radius: 4px;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 400;
	line-height: 1.2;
	color: #f3ead6;
	margin: 1.6em 0 .6em;
	letter-spacing: .01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 1.25rem + 1.2vw, 2.1rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); margin: 2.5em 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--gold); color: #000; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #000; }

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.container--narrow { max-width: 820px; }
.container--mid { max-width: 980px; }
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	border: 1px solid var(--gold);
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, #d8b25a, #a9822f);
	color: #17120a;
	font: 600 15px/1.2 var(--font-body);
	cursor: pointer;
	transition: filter .15s, transform .15s;
}
.btn:hover { color: #000; filter: brightness(1.1); }
.btn--ghost { background: transparent; color: var(--gold-2); border-color: var(--border-2); }
.btn--ghost:hover { color: #fff; border-color: var(--gold); }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px;
	border: 1px solid transparent; border-radius: var(--radius-sm);
	background: transparent; color: var(--text);
	cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--surface-2); border-color: var(--border); color: var(--gold-2); }

/* ---------- Шапка ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	border-bottom: 1px solid var(--border);
}
/* Размытие — отдельным слоем: backdrop-filter на самой шапке «запирает» внутри неё
   fixed-меню на мобильных (оно обрезается до высоты шапки). */
.site-header::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: rgba(11, 14, 20, .86);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

.site-header__inner {
	display: flex; align-items: center; gap: 24px;
	min-height: var(--header-h);
}
.site-logo { display: flex; align-items: center; gap: 10px; color: var(--gold-2); }
.site-logo:hover { color: #fff; }
.site-logo__text { font: 400 1.6rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.custom-logo { max-height: 48px; width: auto; }
.brand-accent { color: var(--text-2); }

/* Меню. Разметка и классы пунктов (mega, mega-start, icon-*, tone-*, nav-cta) — в inc/nav-menu.php. */
.site-logo { flex-shrink: 0; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 0; }
.site-nav .menu a { display: block; color: var(--text-2); font-weight: 500; }
.nav-toggle {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 8px 10px 8px 14px; border: 0; border-radius: var(--radius-sm);
	background: none; color: var(--text-2); font: 500 15px/1.5 var(--font-body);
	cursor: pointer; white-space: nowrap;
}
.nav-toggle--arrow { padding: 8px 6px; margin-left: -6px; }
.nav-chevron { transition: transform .2s; opacity: .7; }
.is-open > .nav-toggle .nav-chevron { transform: rotate(180deg); }

/* Пункт подменю с иконкой и подписью. */
.site-nav .sub-menu a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: var(--radius-sm); color: var(--text); font-size: 15px; line-height: 1.35; transition: background .15s, color .15s; }
.site-nav .sub-menu a:hover { background: var(--surface-2); color: var(--gold-2); }
.nav-ico {
	--tone: var(--gold);
	flex-shrink: 0; display: grid; place-items: center;
	width: 36px; height: 36px; border-radius: 9px;
	color: var(--tone);
	background: color-mix(in srgb, var(--tone) 10%, transparent);
	border: 1px solid color-mix(in srgb, var(--tone) 24%, transparent);
	transition: background .15s, border-color .15s, box-shadow .15s;
}
.tone-dps .nav-ico { --tone: var(--dps); }
.tone-tank .nav-ico { --tone: var(--tank); }
.tone-heal .nav-ico { --tone: var(--heal); }
.site-nav .sub-menu a:hover .nav-ico { background: color-mix(in srgb, var(--tone) 20%, transparent); border-color: color-mix(in srgb, var(--tone) 55%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--tone) 30%, transparent); }
.nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 1px; }
.nav-title { font-weight: 600; }
.nav-desc { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.35; }
.site-nav .sub-menu a:has(.nav-ico) .nav-text { padding-top: 0; min-height: 36px; justify-content: center; }
.site-nav .current-menu-item > a .nav-title { color: var(--gold-2); }

/* Заголовок колонки большой панели. */
.nav-heading,
.site-nav .mega > .sub-menu > li > a {
	display: block; margin: 0 0 8px; padding: 0 10px;
	color: var(--muted); font: 600 12px/1.4 var(--font-body);
	letter-spacing: .14em; text-transform: uppercase;
	background: none;
}
.site-nav .mega > .sub-menu > li > a:hover { color: var(--gold-2); background: none; }

/* «С чего начать»: номера вместо иконок. */
.mega-start > .sub-menu { counter-reset: nav-step; }
.site-nav .mega-start > .sub-menu a { align-items: center; padding: 8px 10px; }
.site-nav .mega-start > .sub-menu a::before {
	counter-increment: nav-step; content: counter(nav-step);
	flex-shrink: 0; display: grid; place-items: center;
	width: 28px; height: 28px; border-radius: 50%;
	border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
	color: var(--gold-2); font: 600 13px/1 var(--font-body);
	transition: background .15s, color .15s;
}
.site-nav .mega-start > .sub-menu a:hover::before { background: var(--gold); color: #17120a; }

/* Кнопка-пункт. */
.site-nav .menu > .nav-cta > a {
	padding: 9px 16px; border: 1px solid var(--gold);
	background: linear-gradient(180deg, #d8b25a, #a9822f); color: #17120a;
	font-weight: 600;
}
.site-nav .menu > .nav-cta > a:hover { color: #000; filter: brightness(1.1); background: linear-gradient(180deg, #d8b25a, #a9822f); }

@media (min-width: 1100px) {
	.site-nav { margin-left: auto; align-self: stretch; display: flex; }
	.site-nav .menu { display: flex; align-items: stretch; gap: 2px; }
	/* Пункт на всю высоту шапки — курсор не «проваливается» по пути к панели. */
	.site-nav .menu > li { position: relative; display: flex; align-items: center; }
	.site-nav .menu > li > a { padding: 8px 14px; font-size: 15px; border-radius: var(--radius-sm); white-space: nowrap; }
	.site-nav .menu > li > a:hover,
	.site-nav .menu > li > .nav-toggle:hover,
	.site-nav .menu > li.is-open > .nav-toggle,
	.site-nav .menu > .current-menu-item > a,
	.site-nav .menu > .current-menu-ancestor > a,
	.site-nav .menu > .current-menu-ancestor > .nav-toggle { color: var(--gold-2); background: var(--gold-dim); }
	.site-nav .menu > li > a + .nav-toggle--arrow { background: none !important; }
	.site-nav .menu > .nav-cta { margin-left: 12px; }

	.site-nav .menu > li > .sub-menu {
		position: absolute; top: 100%; left: 0; z-index: 2; min-width: 300px;
		padding: 8px;
		background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
		box-shadow: var(--shadow);
		opacity: 0; visibility: hidden; transform: translateY(6px);
		transition: opacity .16s, transform .16s, visibility .16s;
	}
	.site-nav .menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	@media (hover: hover) {
		.site-nav .menu > li:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
	}

	/* Большая панель: на ширину контейнера под всей шапкой. */
	.site-nav .menu > li.mega { position: static; }
	.site-nav .menu > li.mega > .sub-menu {
		left: 0; right: 0; margin: 0 auto;
		width: min(calc(var(--container) - 2 * var(--gutter)), calc(100% - 2 * var(--gutter)));
		display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px;
		padding: 28px 24px;
		border-top: 0; border-radius: 0 0 var(--radius) var(--radius);
		background:
			radial-gradient(600px 220px at 15% 0%, color-mix(in srgb, var(--gold) 7%, transparent), transparent 70%),
			var(--surface);
	}
	.site-nav .menu > li.mega > .sub-menu::before {
		content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
		background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6;
	}
	.site-nav .mega-start,
	.site-nav .mega-box {
		align-self: start; padding: 18px 10px 10px;
		border: 1px solid var(--border); border-radius: var(--radius);
		background: var(--bg-2);
	}
}
@media (min-width: 1100px) and (max-width: 1239px) {
	.site-header__inner { gap: 16px; }
	.site-nav .menu > li > a, .nav-toggle { padding-left: 10px; padding-right: 10px; font-size: 14px; }
	.nav-toggle { padding-right: 6px; }
	.nav-toggle--arrow { padding: 8px 4px; }
	.site-nav .menu > .nav-cta { margin-left: 6px; }
}

.site-header__actions { display: flex; gap: 4px; }
.icon-btn--menu { display: none; }

.site-search { border-top: 1px solid var(--border); padding: 14px 0; background: var(--bg-2); }

@media (max-width: 1099px) {
	.icon-btn--menu { display: inline-grid; }
	.site-header__actions { margin-left: auto; }
	.site-nav {
		position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
		margin: 0; padding: 16px var(--gutter) 40px;
		background: var(--bg);
		overflow-y: auto;
		/* Не сдвигаем за край экрана: fixed-элемент за краем даёт горизонтальный скролл. */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.site-nav.is-open { opacity: 1; transform: none; visibility: visible; }
	.site-nav .menu { display: flex; flex-direction: column; }
	.site-nav .menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); }
	.site-nav .menu > li > a { flex: 1; padding: 14px 4px; font-size: 18px; }
	.nav-toggle { flex: 1; justify-content: space-between; padding: 14px 4px; font-size: 18px; border-radius: 0; }
	.nav-toggle--arrow { flex: 0 0 auto; padding: 14px 8px; margin: 0; }
	.site-nav .menu > li > .sub-menu { display: none; flex-basis: 100%; padding: 0 0 14px; }
	.site-nav .menu > li.is-open > .sub-menu { display: block; }
	.site-nav .mega.is-open > .sub-menu { display: flex; flex-direction: column; }
	.site-nav .mega > .sub-menu > li { margin-top: 12px; }
	.site-nav .mega-start, .site-nav .mega-box { order: -1; }
	.site-nav .mega-start, .site-nav .mega-box { padding: 14px 6px 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-2); }
	.site-nav .menu > .nav-cta { border: 0; margin-top: 20px; }
	.site-nav .menu > .nav-cta > a { text-align: center; padding: 14px; border-radius: var(--radius-sm); }
	body.menu-open { overflow: hidden; }
}

/* ---------- Переключатель игр (inc/games.php): полоса над шапкой на ПК, верх меню на мобильных ---------- */
.game-switch { display: flex; flex-wrap: wrap; gap: 4px; }
.game-switch__item {
	--tone: var(--gold-2);
	display: inline-flex; align-items: center; padding: 3px 12px;
	border: 1px solid transparent; border-radius: 999px;
	color: var(--text-2); font: 600 13px/1.5 var(--font-body); letter-spacing: .02em;
	transition: color .15s, background .15s, border-color .15s;
}
.game-switch__item--d4 { --tone: #e2554a; }
.game-switch__item--poe2 { --tone: #d9a35b; }
a.game-switch__item:hover { color: var(--tone); background: var(--surface-2); }
.game-switch__item.is-current { color: var(--tone); border-color: color-mix(in srgb, var(--tone) 45%, transparent); background: color-mix(in srgb, var(--tone) 12%, transparent); }
.game-bar { display: none; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.game-bar__inner { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.game-bar__label { color: var(--text-2); opacity: .7; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
@media (min-width: 1100px) {
	.game-bar { display: block; }
	.game-switch--menu { display: none; }
}
@media (max-width: 1099px) {
	.game-switch--menu { padding: 0 0 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
	.game-switch--menu .game-switch__item { padding: 6px 14px; font-size: 15px; border-color: var(--border); }
}

/* ---------- Поиск ---------- */
.search-form { display: flex; position: relative; max-width: 640px; }
.search-form__input {
	flex: 1; min-width: 0;
	padding: 13px 52px 13px 16px;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--border-2); border-radius: var(--radius-sm);
	font: inherit; font-size: 16px;
}
.search-form__input::placeholder { color: var(--muted); }
.search-form__input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px var(--gold-dim); }
.search-form__btn {
	position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
	width: 42px; height: 42px; display: grid; place-items: center;
	background: none; border: 0; color: var(--gold-2); cursor: pointer;
}

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--border-2); margin-right: 2px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs [aria-current] span { color: var(--text-2); }
.breadcrumbs--plugin a { margin: 0 2px; }

/* ---------- Плашки ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.badge {
	--c: var(--gold);
	display: inline-flex; align-items: center; gap: 6px;
	padding: 3px 10px;
	font: 600 12px/1.6 var(--font-body);
	letter-spacing: .02em;
	color: var(--c);
	background: color-mix(in srgb, var(--c) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
	border-radius: 999px;
	white-space: nowrap;
}
a.badge:hover { color: #fff; border-color: var(--c); }
.badge__sub { color: var(--text-2); font-weight: 500; }
.badge--role-tank { --c: var(--tank); }
.badge--role-heal { --c: var(--heal); }
.badge--role-dps { --c: var(--dps); }

.flag {
	display: inline-flex; padding: 4px 10px;
	font-size: 13px; font-weight: 600;
	border-radius: var(--radius-sm);
	background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2);
}
.flag--actual { color: var(--heal); border-color: rgba(79, 209, 122, .35); background: rgba(79, 209, 122, .08); }
.flag--easy { color: var(--heal); }
.flag--medium { color: var(--tier-a); }
.flag--hard { color: var(--dps); }
a.flag--bis { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); text-decoration: none; transition: background .15s; }
a.flag--bis:hover { background: var(--gold-dim); color: var(--gold-2); }

/* ---------- Главная: hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 88px);
	border-bottom: 1px solid var(--border);
	text-align: center;
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(600px 300px at 50% 0, rgba(233, 201, 119, .14), transparent 70%),
		linear-gradient(180deg, transparent 60%, var(--bg));
}
.hero::after {
	content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
	width: min(520px, 80%); height: 1px;
	background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero--image::before { background: linear-gradient(180deg, rgba(11, 14, 20, .3), var(--bg)); }
.hero__inner { max-width: 860px; }
.hero__kicker {
	display: inline-block; margin-bottom: 18px;
	font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
	color: var(--gold);
}
.hero__kicker::before, .hero__kicker::after { content: "◆"; font-size: 8px; vertical-align: middle; margin: 0 10px; opacity: .7; }
.hero__title { margin: 0 0 18px; font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); text-shadow: 0 2px 30px rgba(233, 201, 119, .15); }
.hero__text { color: var(--text-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 640px; margin: 0 auto 28px; }
.hero__search .search-form { margin: 0 auto; }
.hero__roles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.role-pill {
	--c: var(--gold);
	padding: 8px 18px; border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
	background: color-mix(in srgb, var(--c) 10%, transparent);
	color: var(--text); font-weight: 600; font-size: 15px;
}
.role-pill:hover { color: #fff; background: color-mix(in srgb, var(--c) 22%, transparent); }
.role-pill--tank { --c: var(--tank); }
.role-pill--heal { --c: var(--heal); }
.role-pill--dps { --c: var(--dps); }

/* ---------- Секции ---------- */
.section { padding: clamp(36px, 5vw, 64px) 0; }
.section + .section { padding-top: 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section__title { margin: 0; display: flex; align-items: center; gap: 14px; }
.section__title::before { content: ""; width: 4px; height: .9em; background: var(--gold); border-radius: 2px; }
.section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.section__more .icon { width: 16px; height: 16px; }

/* ---------- Сетка классов ---------- */
.class-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.class-tile {
	--c: var(--gold);
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px;
	align-items: center;
	padding: 16px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, var(--surface)), var(--surface) 60%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.class-tile:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--c) 14%, transparent); }
.class-tile__emblem {
	grid-row: span 2;
	position: relative;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	font: 400 24px/1 var(--font-head);
	color: var(--c);
}
/* Иконки классов и спеков (из калькулятора талантов) вместо букв-эмблем. */
.class-tile__icon, .top-item__icon {
	display: block; width: 48px; height: 48px; object-fit: cover;
	border-radius: 8px;
	border: 2px solid color-mix(in srgb, var(--c) 75%, transparent);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 2px 10px color-mix(in srgb, var(--c) 25%, transparent);
	background: var(--bg-2);
}
.class-tile__icon { grid-row: span 2; }
.class-tile__name { font: 400 1.3rem/1.2 var(--font-head); color: var(--c); }
.class-tile__specs { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- С чего начать ---------- */
.start-grid {
	list-style: none; margin: 0; padding: 0; counter-reset: start;
	display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}
.start-item { counter-increment: start; display: flex; }
.start-item__link {
	position: relative; flex: 1;
	display: grid; grid-template-columns: 40px 1fr 20px; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px;
	padding: 18px 16px;
	background: linear-gradient(135deg, var(--gold-dim), var(--surface) 55%);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.start-item__link::before {
	content: counter(start);
	grid-row: span 2; align-self: start;
	display: grid; place-items: center; width: 40px; height: 40px;
	border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); border-radius: 50%;
	font: 400 20px/1 var(--font-head); color: var(--gold-2);
}
.start-item__link:hover { color: var(--text); border-color: color-mix(in srgb, var(--gold) 60%, transparent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201, 162, 74, .12); }
.start-item__title { font: 400 1.25rem/1.2 var(--font-head); color: #f3ead6; }
.start-item__sub { grid-column: 2; font-size: 14px; line-height: 1.45; color: var(--muted); }
.start-item__arrow { grid-column: 3; grid-row: 1; align-self: center; color: var(--gold); transition: transform .15s; }
.start-item__arrow .icon { width: 18px; height: 18px; }
.start-item__link:hover .start-item__arrow { transform: translateX(3px); }

/* ---------- Инструменты (главная) ---------- */
.tools-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.tools-grid > li { display: flex; }
.tool-card {
	flex: 1;
	display: flex; flex-direction: column;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	overflow: hidden;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.tool-card:hover { color: var(--text); border-color: color-mix(in srgb, var(--tc) 65%, transparent); transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--tc) 18%, transparent); }
.tool-card__art {
	display: grid; place-items: center;
	height: 112px;
	border-bottom: 1px solid var(--border);
	background:
		radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--tc) 22%, transparent), transparent 70%),
		var(--bg-2);
}
.tool-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 6px; }
.tool-card__title { font: 400 1.3rem/1.2 var(--font-head); color: #f3ead6; }
.tool-card__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.tool-card__go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px 16px; font-size: 14px; font-weight: 600; color: var(--tc); }
.tool-card__go .icon { width: 16px; height: 16px; transition: transform .15s; }
.tool-card:hover .tool-card__go .icon { transform: translateX(3px); }

/* Мини-картинки — общий принцип: элементы <i>, «включённые» подсвечены цветом инструмента */
.tool-art { display: grid; transition: transform .25s; }
.tool-card:hover .tool-art { transform: scale(1.06); }
.tool-art--talents { grid-template-columns: repeat(4, 18px); gap: 7px; }
.tool-art--talents i { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border-2); background: var(--surface-2); }
.tool-art--talents i.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 55%, var(--surface)); box-shadow: 0 0 8px color-mix(in srgb, var(--tc) 55%, transparent); }
.tool-art--quiz { position: relative; width: 150px; gap: 7px; padding-left: 34px; }
.tool-art--quiz b { position: absolute; left: 0; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tc); color: #14131f; font: 400 18px/1 var(--font-head); }
.tool-art--quiz i { height: 14px; border-radius: 7px; border: 1px solid var(--border-2); background: var(--surface-2); }
.tool-art--quiz i.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 45%, var(--surface)); }
.tool-art--levels { position: relative; width: 170px; gap: 6px; }
.tool-art--levels i { display: block; height: 11px; width: var(--w); margin-left: var(--a); border-radius: 3px; border: 1px solid var(--c); background: color-mix(in srgb, var(--c) 50%, transparent); }
.tool-art--levels u { position: absolute; top: -8px; bottom: -8px; left: 48%; width: 2px; background: var(--gold-2); box-shadow: 0 0 8px rgba(233, 201, 119, .7); }
.tool-art--races { grid-template-columns: repeat(6, 20px); gap: 5px; }
.tool-art--races i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--surface-2); color: var(--text-2); }
.tool-art--races i.n { background: color-mix(in srgb, var(--tc) 22%, transparent); color: var(--tc); }
.tool-art--races i.x { background: transparent; border: 1px dashed var(--border); }
@media (prefers-reduced-motion: reduce) { .tool-card, .tool-art { transition: none; } .tool-card:hover .tool-art { transform: none; } }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.card {
	--c: var(--gold);
	display: flex; flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color .15s, transform .15s, box-shadow .15s;
}
.card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__type {
	position: absolute; left: 12px; top: 12px;
	padding: 2px 10px; border-radius: 6px;
	background: rgba(11, 14, 20, .82); border: 1px solid var(--border-2);
	color: var(--gold-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.card__body .badges { margin-bottom: 10px; }
.card__title { margin: 0 0 8px; font-size: 1.3rem; line-height: 1.25; }
.card__title a { color: #f3ead6; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card .badges { position: relative; z-index: 1; }
.card__title a:hover { color: var(--gold-2); }
.card__excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 14px; }
.card__meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.card__actual { color: var(--heal); }
.card__actual::before { content: "●"; font-size: 8px; vertical-align: middle; margin-right: 6px; }

.thumb-placeholder {
	--c: var(--gold);
	width: 100%; height: 100%;
	display: grid; place-items: center;
	background:
		radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
		radial-gradient(circle at 80% 90%, rgba(63, 110, 199, .25), transparent 55%),
		linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.thumb-placeholder span {
	font: 400 clamp(1.6rem, 4vw, 2.4rem)/1 var(--font-head);
	letter-spacing: .2em; text-transform: uppercase;
	color: color-mix(in srgb, var(--c) 55%, transparent);
}

/* ---------- Архивы ---------- */
.archive-header { --c: var(--gold); padding: 32px 0 8px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, transparent), transparent); }
.archive-title { margin: 0 0 10px; color: color-mix(in srgb, var(--c) 35%, #f3ead6); }
.archive-desc { color: var(--text-2); max-width: 760px; }
.archive-search { margin: 8px 0 16px; }
.class-hub { max-width: 820px; color: var(--text-2); }
.class-hub__lead { margin: 0 0 14px; }
.class-hub__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.class-hub__item { --c: var(--gold); padding: 10px 14px; border: 1px solid var(--border); border-left: 3px solid var(--c); border-radius: 8px; background: var(--surface); }
.class-hub__link { display: block; font-weight: 600; color: color-mix(in srgb, var(--c) 45%, #f3ead6); }
.class-hub__link:hover { color: var(--c); }
.class-hub__excerpt { display: block; margin-top: 2px; font-size: 14px; }
.class-hub__more { margin: 0; font-size: 14px; }
.class-hub--rich { max-width: none; padding-bottom: 24px; }
.class-hub--rich .class-hub__lead { max-width: 760px; margin-bottom: 20px; }
.class-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.class-card { --c: var(--gold); display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--border); border-top: 3px solid var(--c); border-radius: var(--radius); background: var(--surface); }
.class-card__head { display: flex; align-items: center; gap: 12px; }
.class-card__icon { flex: none; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border-2); }
.class-card__name { margin: 0; font-size: 20px; line-height: 1.2; }
.class-card__name a { color: color-mix(in srgb, var(--c) 45%, #f3ead6); }
.class-card__name a:hover { color: var(--c); }
.class-card__spec { font-size: 13px; color: var(--muted); }
.class-card__fit { margin: 0; font-size: 15px; }
.class-card__tier { margin: 0; font-size: 14px; }
.class-card__letter { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin: 0 2px; border-radius: 6px; background: var(--surface-2); color: var(--gold-2); font-weight: 800; }
.class-card__letter--s { color: var(--tier-s); }
.class-card__letter--a { color: var(--tier-a); }
.class-card__letter--b { color: var(--tier-b); }
.class-card__letter--c { color: var(--tier-c); }
.class-card__letter--d { color: var(--tier-d); }
.class-card__note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.class-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.class-card__btn { padding: 7px 12px; border: 1px solid var(--border-2); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.class-card__btn:hover { border-color: var(--c); color: #fff; }
.class-card__btn--main { border-color: color-mix(in srgb, var(--c) 60%, var(--border)); background: color-mix(in srgb, var(--c) 16%, transparent); }
.section--hub-body { padding-left: var(--gutter); padding-right: var(--gutter); padding-bottom: 0; }
.section--hub-body + .section { padding-left: var(--gutter); padding-right: var(--gutter); }
.class-hub-body { max-width: 820px; }
.class-hub-body h2:not(:first-child) { margin-top: 1.6em; }
.class-hub-body__links { margin: 1.6em 0 0; font-size: 15px; }
.class-hub-all { margin: 36px 0 4px; padding-top: 32px; border-top: 1px solid var(--border); }
.class-hub-backlink { margin: 0 0 18px; padding: 10px 14px; border-left: 3px solid var(--c, var(--gold)); border-radius: 0 8px 8px 0; background: var(--surface); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 22px; }
.chip {
	--c: var(--gold);
	padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--border-2); color: var(--text-2);
	font-size: 14px; font-weight: 500;
	background: var(--surface);
}
.chip:hover { border-color: var(--c); color: #fff; }
.chip.is-active { border-color: var(--c); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }

.empty { text-align: center; padding: 60px 16px; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--radius); }
.empty__title { font: 400 1.6rem/1.2 var(--font-head); color: var(--text); }

.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 0 0; padding: 0; }
.pagination a, .pagination span {
	display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px;
	border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text-2);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-2); }
.pagination .current { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }

/* ---------- Запись / гайд ---------- */
.entry-header { --c: var(--gold); padding: 28px 0 24px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, transparent), transparent 85%); }
.entry { --c: var(--gold); }
.entry-title { margin: 0 0 14px; max-width: 900px; }
.entry-lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-2); max-width: 820px; margin-bottom: 16px; }
.entry-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.post-meta__item + .post-meta__item::before { content: "·"; margin-right: 16px; color: var(--border-2); }
.post-meta__author { color: var(--text-2); font-weight: 600; }
.post-meta__updated { color: var(--gold-2); }
.entry-flags { display: flex; flex-wrap: wrap; gap: 8px; }

.entry-layout { padding-top: 32px; padding-bottom: 24px; }
.entry-layout--toc { display: grid; gap: 48px; }
@media (min-width: 1080px) {
	.entry-layout--toc { grid-template-columns: minmax(0, 1fr) 280px; }
	.toc--inline { display: none; }
}
@media (max-width: 1079px) { .entry-aside { display: none; } }
.entry-main { min-width: 0; max-width: 820px; }
.entry-layout:not(.entry-layout--toc) .entry-main { margin: 0 auto; }

.entry-cover { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.entry-cover img { width: 100%; }
.entry-cover--bottom { margin: 36px 0 0; }

.entry-aside .aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .entry-aside .aside-sticky { top: calc(var(--header-h) + 56px); }
.entry-aside .toc--sticky { max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
/* С рекламой в колонке оглавление делит высоту с блоком 280×~420. */
.entry-aside.has-ad .toc--sticky { --ad-gap: 0px; max-height: max(160px, calc(100vh - var(--header-h) - 64px - 20px - var(--ad-gap) - var(--ad-side-h, 430px))); margin-bottom: 20px; }
.admin-bar .entry-aside.has-ad .toc--sticky { --ad-gap: 32px; }

/* «Популярное сейчас» в колонке: над оглавлением, уезжает при прокрутке (не липкий). */
.popular-aside { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px 10px; margin-bottom: 20px; font-size: 14px; }
.popular-aside__title { margin: 0 0 6px; font: 400 1.2rem/1.2 var(--font-head); color: var(--gold-2); }
.popular-aside__list { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular-aside__item { counter-increment: pop; }
.popular-aside__item + .popular-aside__item { border-top: 1px solid var(--border); }
.popular-aside__item a { display: grid; grid-template-columns: 22px 1fr; column-gap: 6px; padding: 8px 0; color: var(--text-2); line-height: 1.35; }
.popular-aside__item a::before { content: counter(pop); grid-row: span 2; align-self: start; font: 400 1.05rem/1.2 var(--font-head); color: var(--gold); }
.popular-aside__item a:hover { color: #fff; }
.popular-aside__type { font-size: 12px; color: var(--muted); }

/* ---------- Реклама РСЯ ---------- */
.ad-slot { margin: 32px 0; }
.ad-slot__label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-slot__box { min-height: 250px; }
.ad-slot--end { margin-top: 36px; }
.ad-slot--side { margin: 0; }
.ad-slot--side .ad-slot__box { min-height: 400px; }
.ad-slot.is-empty { display: none; }
/* Колонка: только широкий и достаточно высокий экран, иначе блок не грузится. */
@media (max-height: 819px) { .ad-slot--side { display: none; } }
@media (max-width: 600px) { .ad-slot { margin: 24px 0; } .ad-slot__box { min-height: 200px; } }

/* ---------- Подписка на Telegram ---------- */
.tg-sub { display: flex; align-items: center; gap: 14px; margin: 32px 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid #2aabee; border-radius: var(--radius); }
.tg-sub__icon { flex: none; color: #2aabee; }
.tg-sub__text { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 15px; line-height: 1.4; }
.tg-sub__text strong { color: var(--text); font-weight: 600; }
.tg-sub__text span { color: var(--muted); }
.tg-sub__btn { flex: none; padding: 9px 16px; border-radius: var(--radius-sm); background: #2aabee; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background .15s; }
.tg-sub__btn:hover, .tg-sub__btn:focus-visible { background: #1d93d2; color: #fff; }
@media (max-width: 600px) {
	.tg-sub { flex-wrap: wrap; gap: 10px 12px; margin: 24px 0; }
	.tg-sub__text { flex-basis: calc(100% - 42px); }
	.tg-sub__btn { flex: 1 1 100%; text-align: center; }
}
/* Компактный блок подписки в середине статьи. */
.tg-sub--mid { margin: 28px 0; padding: 12px 16px; gap: 12px; }
.tg-sub--mid .tg-sub__text { font-size: 14px; }
.entry-content .tg-sub__btn { text-decoration: none; }
.tg-sub--mid .tg-sub__btn { padding: 7px 14px; font-size: 14px; }
@media (max-width: 600px) {
	.tg-sub--mid { margin: 22px 0; }
	.tg-sub--mid .tg-sub__text { flex-basis: calc(100% - 36px); }
}

/* Полоска Telegram внизу экрана — только на телефонах. */
.tg-bar { display: none; }
@media (max-width: 767px) {
	.tg-bar:not([hidden]) {
		position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
		display: flex; align-items: center;
		padding: 8px 4px 8px 12px; padding-bottom: calc(8px + env(safe-area-inset-bottom));
		background: var(--surface-2); border-top: 1px solid var(--border-2);
		box-shadow: 0 -8px 24px rgba(0, 0, 0, .4);
		animation: tg-bar-in .25s ease-out;
	}
	.tg-bar__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; line-height: 1.3; text-decoration: none; }
	.tg-bar__link:hover { color: var(--text-2); }
	.tg-bar__icon { flex: none; color: #2aabee; }
	.tg-bar__text { flex: 1; min-width: 0; }
	.tg-bar__text strong { color: var(--text); font-weight: 600; }
	.tg-bar__btn { flex: none; padding: 7px 12px; border-radius: var(--radius-sm); background: #2aabee; color: #fff; font-weight: 600; font-size: 14px; }
	.tg-bar__close { flex: none; width: 40px; height: 40px; padding: 0; background: none; border: 0; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
	.tg-bar__close:hover { color: var(--text); }
	body.tg-bar-on .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@keyframes tg-bar-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .tg-bar { animation: none !important; } }

/* Оглавление */
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 18px; margin-bottom: 28px; font-size: 15px; }
.toc__title {
	cursor: pointer; list-style: none;
	padding: 10px 0; font: 400 1.2rem/1.2 var(--font-head); color: var(--gold-2);
	display: flex; justify-content: space-between; align-items: center;
}
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: "▾"; font-size: 14px; color: var(--muted); transition: transform .2s; }
.toc details:not([open]) .toc__title::after { transform: rotate(-90deg); }
.toc__list { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: toc; }
.toc__item a { display: block; padding: 6px 0 6px 12px; color: var(--text-2); border-left: 2px solid var(--border); line-height: 1.4; }
.toc__item a:hover { color: #fff; border-left-color: var(--border-2); }
.toc__item a.is-active { color: var(--gold-2); border-left-color: var(--gold); }
.toc__item--h3 a { padding-left: 26px; font-size: 14px; color: var(--muted); }

/* Коротко */
.summary {
	position: relative;
	margin: 0 0 28px; padding: 18px 22px 8px;
	background: linear-gradient(135deg, var(--gold-dim), transparent 70%), var(--surface);
	border: 1px solid rgba(201, 162, 74, .35);
	border-radius: var(--radius);
}
.summary__title { font: 400 1.25rem/1.2 var(--font-head); color: var(--gold-2); margin-bottom: 8px; }
.summary ul { margin: 0; padding-left: 0; list-style: none; }
.summary li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.summary li::before { content: "◆"; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--gold); }

/* ---------- Контент ---------- */
.entry-content { overflow-wrap: break-word; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.entry-content h2, .entry-content h3 { scroll-margin-top: calc(var(--header-h) + 16px); }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(233, 201, 119, .4); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--gold); }
.entry-content strong { color: #fff; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 14px 22px;
	border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--text-2); font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code { background: var(--surface-2); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre { background: var(--bg-2); border: 1px solid var(--border); padding: 16px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 14px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
@media (max-width: 700px) { .entry-content table { display: block; overflow-x: auto; } }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface-2); color: var(--gold-2); font-weight: 600; }
.entry-content tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.entry-content iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 1em auto; } }
.entry-content::after { content: ""; display: table; clear: both; }

/* Блоки-шорткоды */
.callout {
	--c: var(--gold);
	margin: 1.6em 0; padding: 16px 20px 16px 52px; position: relative;
	background: color-mix(in srgb, var(--c) 8%, var(--surface));
	border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
	border-left: 4px solid var(--c);
	border-radius: var(--radius-sm);
}
.callout::before { position: absolute; left: 18px; top: 15px; font-size: 18px; line-height: 1.5; }
.callout__title { font-weight: 700; color: var(--c); margin-bottom: 4px; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; }
.callout__body > :last-child { margin-bottom: 0; }
.callout--tip { --c: var(--heal); }
.callout--tip::before { content: "💡"; }
.callout--warning { --c: var(--dps); }
.callout--warning::before { content: "⚠️"; }
.callout--note { --c: var(--tank); }
.callout--note::before { content: "ℹ️"; }

.proscons {
	--c: var(--heal);
	margin: 1.2em 0; padding: 14px 20px;
	border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
	background: color-mix(in srgb, var(--c) 6%, var(--surface));
	border-radius: var(--radius-sm);
}
.proscons--cons { --c: var(--dps); }
.proscons__title { font-weight: 700; color: var(--c); margin-bottom: 6px; }
.proscons ul { list-style: none; padding-left: 0; margin: 0; }
.proscons li { position: relative; padding-left: 26px; }
.proscons--pros li::before { content: "+"; position: absolute; left: 4px; color: var(--c); font-weight: 800; }
.proscons--cons li::before { content: "−"; position: absolute; left: 4px; color: var(--c); font-weight: 800; }
.proscons-pair {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
	margin: 1.2em 0;
}
.proscons-pair > .proscons { margin: 0; min-width: 0; }
@media (min-width: 700px) {
	.proscons-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.spoiler, .faq {
	margin: 1em 0; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.spoiler summary, .faq summary {
	cursor: pointer; padding: 12px 18px; font-weight: 600; color: var(--text);
	list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.spoiler summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.spoiler summary::after, .faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.spoiler[open] summary::after, .faq[open] summary::after { content: "−"; }
.spoiler[open] summary, .faq[open] summary { border-bottom: 1px solid var(--border); }
.spoiler__body, .faq__body { padding: 14px 18px 4px; }

.steps ol { list-style: none; counter-reset: step; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding: 10px 0 10px 52px; border-bottom: 1px dashed var(--border); margin: 0; }
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: 8px;
	width: 34px; height: 34px; display: grid; place-items: center;
	font: 400 18px/1 var(--font-head); color: #17120a;
	background: linear-gradient(180deg, var(--gold-2), var(--gold)); border-radius: 50%;
}

.wh-link { font-weight: 600; }

/* ---------- ТОПы ---------- */
.entry-content--intro { padding: 28px 0 8px; }
.entry-content--after { padding: 16px 0 8px; }
.ranking { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.top-item {
	--c: var(--gold);
	position: relative;
	display: grid; grid-template-columns: auto auto 1fr; gap: 16px; align-items: start;
	padding: 18px 20px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--c) 9%, var(--surface)), var(--surface) 45%);
	border: 1px solid var(--border);
	border-left: 3px solid var(--c);
	border-radius: var(--radius);
}
.top-item__place {
	font: 400 2rem/1 var(--font-head); color: var(--muted);
	min-width: 40px; text-align: center; padding-top: 6px;
}
.ranking > .top-item:nth-child(1) .top-item__place { color: #f2c14e; }
.ranking > .top-item:nth-child(2) .top-item__place { color: #c9d1dc; }
.ranking > .top-item:nth-child(3) .top-item__place { color: #d69259; }
.top-item__emblem {
	position: relative;
	display: grid; place-items: center;
	width: 48px; height: 48px;
	font: 400 22px/1 var(--font-head); color: var(--c);
}
/* Ромб-эмблема: поворачивается фон, буква остаётся ровной. */
.class-tile__emblem::before, .top-item__emblem::before {
	content: ""; position: absolute; inset: 7px; z-index: -1;
	border: 2px solid color-mix(in srgb, var(--c) 70%, transparent);
	background: color-mix(in srgb, var(--c) 12%, transparent);
	border-radius: 7px;
	transform: rotate(45deg);
}
.class-tile, .top-item { isolation: isolate; }
.top-item__body { min-width: 0; }
.top-item__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.top-item__name { margin: 0; font-size: 1.35rem; color: var(--c); display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.top-item__name a { color: inherit; }
.top-item__name a:hover { color: #fff; }
.top-item__class { font: 500 14px/1 var(--font-body); color: var(--text-2); }
.top-item__tier { margin-left: auto; }
.top-item__note { color: var(--text-2); font-size: 15px; line-height: 1.6; margin-top: 8px; }
.top-item__note p:last-child { margin-bottom: 0; }
.top-item__guide {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
	padding: 5px 12px; border-radius: 6px;
	font-size: 14px; font-weight: 600; color: var(--c); text-decoration: none;
	background: color-mix(in srgb, var(--c) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.top-item__guide:hover { color: #fff; background: color-mix(in srgb, var(--c) 24%, transparent); }
.top-item--tier .top-item__guide { font-size: 13px; padding: 4px 10px; margin-top: 8px; }

.score { display: flex; align-items: center; gap: 10px; margin-top: 10px; max-width: 360px; }
.score__bar { flex: 1; height: 6px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.score__bar span { display: block; height: 100%; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 60%, transparent), var(--c)); border-radius: 3px; }
.score__num { font-weight: 700; color: var(--text); font-size: 14px; min-width: 28px; text-align: right; }

.tier-chip {
	display: grid; place-items: center;
	width: 32px; height: 32px; border-radius: 6px;
	font: 400 18px/1 var(--font-head); color: #111;
}
.tier-chip--s, .tier--s { --t: var(--tier-s); }
.tier-chip--a, .tier--a { --t: var(--tier-a); }
.tier-chip--b, .tier--b { --t: var(--tier-b); }
.tier-chip--c, .tier--c { --t: var(--tier-c); }
.tier-chip--d, .tier--d { --t: var(--tier-d); }
.tier-chip { background: var(--t); }

.tierlist { margin: 24px 0; display: grid; gap: 10px; }
.tier {
	display: grid; grid-template-columns: 72px 1fr;
	border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
	background: var(--surface);
}
.tier__label {
	margin: 0; display: grid; place-items: center;
	background: var(--t); color: #111; font-size: 2.2rem; border: 0; padding: 0;
}
.tier__items { display: grid; gap: 8px; padding: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.top-item--tier { grid-template-columns: auto 1fr; padding: 12px 14px; gap: 12px; }
.top-item--tier .top-item__name { font-size: 1.15rem; }
.top-item--tier .top-item__emblem { width: 40px; height: 40px; font-size: 18px; }
.top-item--tier .top-item__emblem::before { inset: 6px; }
.top-item--tier .top-item__icon { width: 42px; height: 42px; }
.top-item--tier .top-item__note { font-size: 14px; }
@media (max-width: 600px) {
	.tier { grid-template-columns: 1fr; }
	.tier__label { padding: 6px 0; font-size: 1.6rem; }
	.top-item { grid-template-columns: auto 1fr; padding: 14px; }
	.top-item__place { grid-row: span 1; }
	.top-item--rating .top-item__emblem, .top-item--rating .top-item__icon { display: none; }
	.top-item__tier { margin-left: 0; }
}

/* ---------- Тир-лист Diablo 4 (inc/d4.php): цвета тиров = редкость предметов ---------- */
.tierlist--d4 { --d4-bg: #120c0b; --d4-card: #191110; --d4-line: #3b2722; --d4-bronze: #7a5a3a; gap: 12px; }
.tierlist--d4 .tier--s { --t: #d57bff; }
.tierlist--d4 .tier--a { --t: #f07c2a; }
.tierlist--d4 .tier--b { --t: #f2d64b; }
.tierlist--d4 .tier--c { --t: #7a8cff; }
.tierlist--d4 .tier--d { --t: #b8b2a7; }
.tierlist--d4 .tier {
	grid-template-columns: 80px 1fr;
	background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--t) 7%, var(--d4-bg)), var(--d4-bg) 55%);
	border: 1px solid color-mix(in srgb, var(--t) 28%, var(--d4-line));
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5), 0 6px 18px rgba(0, 0, 0, .35);
}
.tierlist--d4 .tier__label {
	margin: 0; display: grid; place-items: center;
	background: linear-gradient(180deg, color-mix(in srgb, var(--t) 22%, #0c0707), #0a0606 85%);
	border-right: 1px solid color-mix(in srgb, var(--t) 45%, transparent);
}
.tierlist--d4 .tier__label span {
	font: 400 3rem/1 var(--font-head); color: var(--t);
	text-shadow: 0 0 18px color-mix(in srgb, var(--t) 60%, transparent), 0 2px 0 #000;
}
.tierlist--d4 .tier__items { padding: 12px; gap: 10px; }
.tierlist--d4 .d4-card, .d4-builds .d4-card {
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--d4-card)), #120c0b);
	border: 1px solid var(--d4-line);
	border-top: 2px solid color-mix(in srgb, var(--c) 70%, transparent);
	border-left-width: 1px;
	border-radius: 3px;
}
.tierlist--d4 .d4-card__icon, .d4-builds .d4-card__icon {
	width: 52px; height: 52px; border-radius: 3px;
	border: 1px solid var(--d4-bronze);
	box-shadow: 0 0 0 1px #000, 0 0 12px color-mix(in srgb, var(--c) 30%, transparent);
}
.tierlist--d4 .top-item__name, .d4-builds .top-item__name { font: 400 1.25rem/1.15 var(--font-head); color: #f1e6d4; letter-spacing: .01em; flex-direction: column; align-items: flex-start; gap: 4px; }
.tierlist--d4 .top-item__name a:hover, .d4-builds .top-item__name a:hover { color: var(--c); }
.tierlist--d4 .top-item__class { color: var(--c); font-size: 13px; }
.tierlist--d4 .top-item__note, .d4-builds .top-item__note { color: #c9bfb2; }
.tierlist--d4 .top-item__guide, .d4-builds .top-item__guide { border-radius: 3px; }
@media (max-width: 600px) {
	.tierlist--d4 .tier { grid-template-columns: 1fr; }
	.tierlist--d4 .tier__label { padding: 6px 0; border-right: 0; border-bottom: 1px solid color-mix(in srgb, var(--t) 45%, transparent); }
	.tierlist--d4 .tier__label span { font-size: 2rem; }
	.tierlist--d4 .tier__items { padding: 8px; gap: 6px; }
	.tierlist--d4 .d4-card { padding: 10px 12px; }
	.tierlist--d4 .d4-card__icon { width: 44px; height: 44px; }
	.tierlist--d4 .top-item__note { margin-top: 4px; }
}

/* ---------- Билды Diablo 4 по классам (inc/d4-builds.php) ---------- */
.d4-class-builds { margin: 20px 0 24px; }
.d4-builds { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 16px 0; --d4-card: #191110; --d4-line: #3b2722; --d4-bronze: #7a5a3a; }
.d4-builds .top-item__name { flex-direction: row; }
.d4-card__stages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.d4-stage {
	display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px;
	font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #d8cbb8;
	border: 1px solid var(--d4-line); border-radius: 3px; background: rgba(0, 0, 0, .25);
}
.d4-stage__tier { font: 400 15px/1 var(--font-head); color: var(--t, #d8cbb8); }
.d4-stage__tier--s { --t: #d57bff; }
.d4-stage__tier--a { --t: #f07c2a; }
.d4-stage__tier--b { --t: #f2d64b; }
.d4-stage__tier--c { --t: #7a8cff; }
.d4-stage__tier--d { --t: #b8b2a7; }
.d4-builds__others { font-size: 15px; color: var(--text-2); }
.d4-builds__more { margin: 8px 0 0; font-weight: 600; }
.d4-related { margin: 36px 0 8px; }
.d4-related__title { margin: 0 0 4px; }
@media (max-width: 600px) {
	.d4-builds { gap: 6px; }
	.d4-builds .d4-card { padding: 10px 12px; }
	.d4-builds .d4-card__icon { width: 44px; height: 44px; }
}

/* ---------- Главная раздела Diablo 4 (template-parts/game-hub-d4.php) ---------- */
.section--d4 { --gold: #e2554a; --gold-2: #f08a7f; --gold-dim: rgba(200, 55, 45, .14); }
.section--d4 .start-item__link:hover { box-shadow: 0 8px 24px rgba(200, 55, 45, .14); }
.d4-class-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.d4-class-tile {
	display: grid; grid-template-columns: 56px 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
	padding: 14px 16px; height: 100%;
	background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, #191110), #120c0b);
	border: 1px solid #3b2722; border-top: 2px solid color-mix(in srgb, var(--c) 70%, transparent);
	border-radius: 3px; color: var(--text);
	transition: border-color .15s, transform .15s;
}
.d4-class-tile:hover { color: var(--text); transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, #3b2722); }
.d4-class-tile__icon {
	grid-row: span 2; width: 56px; height: 56px; border-radius: 3px;
	border: 1px solid #7a5a3a; box-shadow: 0 0 0 1px #000, 0 0 12px color-mix(in srgb, var(--c) 30%, transparent);
}
.d4-class-tile__name { font: 400 1.3rem/1.15 var(--font-head); color: var(--c); align-self: end; }
.d4-class-tile__meta { font-size: 13px; color: var(--muted); align-self: start; }
.d4-more-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Подвал записи, автор ---------- */
.entry-footer { margin: 36px 0 12px; display: grid; gap: 18px; }
.entry-terms { font-size: 15px; color: var(--muted); }
.entry-terms span { color: var(--text-2); font-weight: 600; margin-right: 4px; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box__avatar { border-radius: 50%; flex-shrink: 0; }
.author-box__name { font-weight: 700; }
.author-box__bio { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
.page-links { margin: 24px 0; }
.related { border-top: 1px solid var(--border); margin-top: 24px; }

/* ---------- Комментарии ---------- */
.comments { padding: 32px 0 48px; border-top: 1px solid var(--border); }
.comments__title, .comment-reply-title { margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: clamp(12px, 4vw, 40px); }
.comment-body { padding: 16px 18px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 13px; margin: 2px 0 8px 50px; }
.comment-metadata a { color: var(--muted); }
.comment-content { font-size: 16px; }
.reply a { font-size: 14px; font-weight: 600; }
.comment-form label { display: block; font-size: 14px; color: var(--text-2); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px;
	background: var(--surface); color: var(--text); font: inherit;
	border: 1px solid var(--border-2); border-radius: var(--radius-sm);
}
.comment-form textarea { min-height: 140px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 80px 0; }
.error-404__code { font: 400 clamp(5rem, 20vw, 9rem)/1 var(--font-head); color: var(--gold); margin: 0; text-shadow: 0 0 60px rgba(201, 162, 74, .3); }
.error-404__title { margin-top: 10px; }
.error-404__search .search-form { margin: 24px auto; }
.error-404 .btn { margin: 4px; }

/* ---------- Подвал сайта ---------- */
.site-footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--bg-2); font-size: 15px; color: var(--muted); }
.site-footer__widgets { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 40px 0 0; }
.widget__title { font-size: 1.2rem; margin: 0 0 12px; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 4px 0; }
.site-footer__main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding: 40px 0 28px; }
.site-footer__about { max-width: 420px; }
.site-footer__name { font: 400 1.5rem/1 var(--font-head); color: var(--gold-2); letter-spacing: .06em; text-transform: uppercase; }
.site-footer__about p { margin: 10px 0 14px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; color: var(--text-2); font-size: 14px; }
.socials a:hover { border-color: var(--gold); color: var(--gold-2); }
.footer-menu { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(140px, auto)); gap: 6px 32px; }
.footer-menu a { color: var(--text-2); }
.footer-menu a:hover { color: var(--gold-2); }
.site-footer__bottom { border-top: 1px solid var(--border); padding: 18px 0 28px; font-size: 13px; }
.site-footer__bottom p { margin: 0 0 6px; }
.site-footer__legal { opacity: .75; }
.site-footer__counter { margin-top: 10px; line-height: 0; }
.site-footer__counter img { opacity: .85; }
.site-footer__privacy { margin-left: 12px; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__privacy:hover { color: var(--gold-2); }

/* Плашка о cookie. */
.cookie-notice {
	position: fixed; z-index: 60; left: 50%; bottom: 16px; transform: translateX(-50%);
	display: flex; align-items: center; gap: 16px;
	width: min(720px, calc(100% - 32px)); padding: 14px 16px 14px 20px;
	background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius);
	box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
	font-size: 14px; color: var(--text-2);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; flex: 1; }
.cookie-notice a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice .btn { flex-shrink: 0; padding: 8px 18px; }
@media (max-width: 560px) {
	.cookie-notice { flex-direction: column; align-items: stretch; gap: 12px; text-align: left; }
	.cookie-notice .btn { justify-content: center; }
}

.to-top {
	position: fixed; right: 16px; bottom: 16px; z-index: 50;
	width: 44px; height: 44px; display: grid; place-items: center;
	background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 50%;
	color: var(--gold-2); box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; border-color: var(--gold); }

/* Каталог аддонов: на узком экране читаем описание и выпуск последовательно. */
@media (max-width: 700px) {
	.entry-content table.addon-catalogue,
	.entry-content .addon-catalogue tbody { display: block; width: 100%; overflow: visible; }
	.entry-content .addon-catalogue colgroup { display: none; }
	.entry-content .addon-catalogue thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.entry-content .addon-catalogue tr { display: block; margin-bottom: 14px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
	.entry-content .addon-catalogue td { display: block; width: auto; padding: 0; border: 0; overflow-wrap: anywhere; }
	.entry-content .addon-catalogue td + td { margin-top: 12px; }
	.entry-content .addon-catalogue td::before { content: attr(data-label); display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px; }
	.entry-content .addon-catalogue td:first-child { font-weight: 600; }
}

/* ---------- Печать ---------- */
@media print {
	.site-header, .site-footer, .to-top, .cookie-notice, .entry-aside, .related, .comments, .breadcrumbs { display: none !important; }
	body { background: #fff; color: #000; }
}

/* Выбор класса на странице «Классы» */
.class-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0 0 22px; }
.class-picker__item { min-width: 0; }
.class-picker__item span { min-width: 0; overflow-wrap: anywhere; }
.class-picker__item {
	--c: var(--gold);
	display: flex; align-items: center; gap: 10px; padding: 8px 12px;
	border: 1px solid var(--border-2); border-left: 3px solid var(--c); border-radius: 10px;
	background: var(--surface); font-weight: 600; color: color-mix(in srgb, var(--c) 55%, #f3ead6);
}
.class-picker__item img { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--c); }
.class-picker__item:hover { border-color: var(--c); color: #fff; background: color-mix(in srgb, var(--c) 12%, var(--surface)); }
@media (max-width: 420px) { .class-picker { grid-template-columns: repeat(2, 1fr); } .class-picker__item { padding: 8px; gap: 8px; font-size: 14px; } }

/* Сводный тир-лист классов на /tops/ (template-parts/tops-hub.php). */
.section--tops-hub { padding-bottom: 0; }
.tops-hub { max-width: 980px; }
.tier-table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.tier-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tier-table th, .tier-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.tier-table tbody tr:last-child > * { border-bottom: 0; }
.tier-table thead th { background: var(--surface-2); color: var(--gold-2); font-weight: 600; font-size: 14px; }
.tier-table thead th a { color: inherit; }
.tier-table thead th a:hover { color: var(--text); }
.tier-table__role--dps { box-shadow: inset 0 -2px 0 var(--dps); }
.tier-table__role--heal { box-shadow: inset 0 -2px 0 var(--heal); }
.tier-table__role--tank { box-shadow: inset 0 -2px 0 var(--tank); }
.tier-table__class { width: 26%; border-left: 3px solid var(--c, var(--gold)); }
.tier-table__class a { display: flex; align-items: center; gap: 10px; font-weight: 600; color: color-mix(in srgb, var(--c) 55%, #f3ead6); }
.tier-table__class a:hover { color: var(--c); }
.tier-table__class img { width: 32px; height: 32px; border-radius: 6px; flex: none; }
.tier-table__specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tier-table__specs li { display: flex; align-items: center; gap: 8px; line-height: 1.3; }
.tier-table__specs a { color: var(--text); }
.tier-table__specs a:hover { color: var(--gold-2); }
.tier-table__none { color: var(--muted); }
.tier-table__flag { color: var(--gold); }
.tier-chip--sm { width: 24px; height: 24px; border-radius: 5px; font-size: 14px; flex: none; }
.tops-hub__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.tops-hub__legend span { display: inline-flex; align-items: center; gap: 6px; }
.tops-hub__note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.tops-hub__body { max-width: 820px; margin-top: 28px; }
@media (max-width: 700px) {
	.tier-table, .tier-table tbody, .tier-table tr, .tier-table th, .tier-table td { display: block; width: auto; }
	.tier-table thead { display: none; }
	.tier-table tr { border-left: 3px solid var(--c, var(--gold)); border-bottom: 1px solid var(--border); padding: 4px 0 8px; }
	.tier-table tbody tr:last-child { border-bottom: 0; }
	.tier-table th, .tier-table td { border: 0; padding: 6px 14px; }
	.tier-table__class { border-left: 0; }
	.tier-table__cell { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
	.tier-table__cell::before { content: attr(data-role); color: var(--muted); font-size: 13px; padding-top: 3px; }
	.tier-table__cell.is-empty { display: none; }
}
.tier-table__role--level { box-shadow: inset 0 -2px 0 var(--gold); }
.tier-table__role--level, .tier-table__cell--level { border-left: 1px dashed var(--border-2); }
@media (max-width: 700px) { .tier-table__cell--level { border-left: 0; border-top: 1px dashed var(--border-2) !important; margin: 4px 14px 0; padding: 8px 0 0 !important; } }

/* Таблица готовых билдов на странице калькулятора ([talent_builds_table]). */
.entry-content .tb-table__class th { border-left: 3px solid var(--c, var(--gold)); background: var(--surface); }
.entry-content .tb-table__class th a:first-child { color: color-mix(in srgb, var(--c) 55%, #f3ead6); }
.entry-content .tb-table__calc { margin-left: 10px; font-weight: 400; font-size: 13px; color: var(--muted); }
@media (max-width: 700px) {
	.entry-content table.tb-table { display: table; font-size: 14px; }
	.entry-content .tb-table th, .entry-content .tb-table td { padding: 8px 10px; }
}

/* Text of the tier hub must keep the side gutter on phones (.section resets container padding). */
.container.section--tops-hub { padding-left: var(--gutter); padding-right: var(--gutter); }

/* Аддоны (inc/addons.php): заголовки колонок — ссылки на категории, «Ещё N аддонов», каталог /addons/. */
.site-nav .mega-addons > .sub-menu > li > a { letter-spacing: .1em; }
.site-nav .mega-addons > .sub-menu > li > a::after { content: "\00a0\2192"; letter-spacing: 0; } /* неразрывный пробел: стрелка не уходит на свою строку */
.site-nav .nav-more .nav-title { color: var(--gold-2); }
@media (min-width: 1100px) {
	.site-nav .menu > li.mega-addons > .sub-menu { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 16px; }
}
.addons-cat + .addons-cat { margin-top: 48px; }
