/* ==========================================================================
   MLinfo — основная таблица стилей
   Палитра «Чёрный жемчуг»: полночь + аметист + золото + бирюза
   ========================================================================== */

:root {
	--ml-primary: #1F7A3E;
	--ml-primary-rgb: 31, 122, 62;
	--ml-accent: #D4A635;
	--ml-accent-rgb: 212, 166, 53;
	--ml-teal: #2FA35A;
	--ml-hero: #0B140E;

	/* Палитра My Lands */
	--ml-emerald-900: #0A2A18;
	--ml-emerald-800: #0F3D24;
	--ml-emerald-600: #1F7A3E;
	--ml-emerald-400: #2FA35A;
	--ml-glow: #8BD94A;
	--ml-gold-700: #8A6410;
	--ml-gold-500: #D4A635;
	--ml-gold-300: #F5D06B;
	--ml-gold-100: #FBEFC4;
	--ml-gem: #16191B;
	--ml-gold-grad: linear-gradient(180deg, color-mix(in srgb, var(--ml-accent) 25%, #FFF8DC) 0%, color-mix(in srgb, var(--ml-accent) 55%, #FFE9A0) 22%, var(--ml-accent) 52%, color-mix(in srgb, var(--ml-accent) 72%, #3A2600) 78%, color-mix(in srgb, var(--ml-accent) 80%, #FFF0B0) 100%);
	--ml-gold-text: linear-gradient(180deg, #FFF6D2 0%, #F5D06B 35%, #D4A635 60%, #9C7213 85%, #E1B84C 100%);
	--ml-emerald-grad: linear-gradient(180deg, color-mix(in srgb, var(--ml-primary) 72%, #7FE0A0) 0%, var(--ml-primary) 48%, color-mix(in srgb, var(--ml-primary) 75%, #000) 52%, color-mix(in srgb, var(--ml-primary) 50%, #000) 100%);

	--ml-font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ml-font-display: "Cormorant SC", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--ml-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--bg: #F7F2E4;
	--surface: #FFFCF3;
	--surface-2: #F0E7CF;
	--text: #1F1B12;
	--muted: #5C523E;
	--border: #E0D2AC;
	--frame: rgba(176, 134, 32, .45);
	--link: #17683A;
	--heading-accent: #8A6410;
	--shadow-sm: 0 1px 2px rgba(60, 44, 10, .08), 0 1px 3px rgba(60, 44, 10, .06);
	--shadow: 0 12px 30px -14px rgba(60, 44, 10, .30), 0 2px 6px rgba(60, 44, 10, .06);
	--shadow-lg: 0 24px 60px -20px rgba(20, 30, 15, .45);
	--header-bg: rgba(9, 18, 12, .94);

	--radius-sm: 8px;
	--radius: 12px;
	--radius-lg: 16px;
	--container: 1240px;
	--gap: clamp(16px, 2.4vw, 28px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}

[data-scheme="dark"] {
	--bg: #08110B;
	--surface: #0F1D14;
	--surface-2: #16291C;
	--text: #EFE8D4;
	--muted: #B5AD95;
	--border: #26402D;
	--frame: rgba(212, 166, 53, .38);
	--link: #F0C95E;
	--heading-accent: #F5D06B;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
	--shadow: 0 14px 34px -14px rgba(0, 0, 0, .8);
	--shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .85);
	--header-bg: rgba(6, 13, 8, .94);
	color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	font-family: var(--ml-font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, video { max-width: 100%; height: auto; }
svg.icon { flex-shrink: 0; vertical-align: middle; }
a { color: var(--link); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ml-accent); }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(var(--ml-accent-rgb), .7); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--ml-font-display); font-weight: 600; line-height: 1.22; letter-spacing: -.01em; margin: 1.6em 0 .6em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
hr { border: 0; height: 1px; background: var(--border); margin: 2.5em 0; }
code, kbd, pre { font-family: var(--ml-mono); font-size: .9em; }
code { background: var(--surface-2); padding: .15em .45em; border-radius: 6px; }
pre { background: var(--ml-hero); color: #E8EAF7; padding: 1.2em 1.4em; border-radius: var(--radius); overflow: auto; }
pre code { background: none; padding: 0; }
blockquote { margin: 1.8em 0; padding: 1.1em 1.4em; border-left: 4px solid var(--ml-accent); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.05em; }
blockquote p:last-child { margin: 0; }
::selection { background: rgba(var(--ml-primary-rgb), .25); }

.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 12px; top: 12px; z-index: 1000; padding: 12px 18px; background: var(--surface); color: var(--text); border-radius: var(--radius-sm); box-shadow: var(--shadow); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.container-narrow { max-width: 900px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .78em 1.35em; border-radius: 999px; border: 1px solid transparent;
	font: 700 .95rem/1.2 var(--ml-font); cursor: pointer; text-decoration: none !important;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
	white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .55em 1em; font-size: .88rem; }
.btn-lg { padding: .95em 1.6em; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary, :where(.comment-form, .post-password-form, .widget) :is(input[type="submit"], button[type="submit"]:not(.btn)) { background: var(--ml-primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(var(--ml-primary-rgb), .7); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px -10px rgba(var(--ml-primary-rgb), .9); }
.btn-accent { background: var(--ml-accent); color: #2A1E05; box-shadow: 0 10px 24px -10px rgba(var(--ml-accent-rgb), .9); }
.btn-accent:hover { color: #2A1E05; background: color-mix(in srgb, var(--ml-accent) 88%, #fff); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: rgba(var(--ml-primary-rgb), .5); }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
	transition: background-color .2s, border-color .2s, color .2s;
}
.icon-btn:hover { border-color: rgba(var(--ml-primary-rgb), .5); color: var(--ml-primary); }
[data-scheme="dark"] .icon-btn:hover { color: var(--ml-accent); }

.badge {
	display: inline-flex; align-items: center; gap: .35em; padding: .3em .75em; border-radius: 999px;
	font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-decoration: none !important;
	background: rgba(var(--ml-primary-rgb), .12); color: var(--link);
}
.badge:hover { background: rgba(var(--ml-primary-rgb), .2); color: var(--link); }
.badge-gold { background: rgba(var(--ml-accent-rgb), .2); color: #7A5810; }
[data-scheme="dark"] .badge-gold { color: var(--ml-accent); }

/* ---------- Шапка ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ml-primary), var(--ml-accent)); }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--header-bg); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--border);
	transition: box-shadow .25s var(--ease);
}
.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.is-scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; }
.logo-mark {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; flex-shrink: 0;
	background: conic-gradient(from 210deg, var(--ml-primary), var(--ml-teal), var(--ml-accent), var(--ml-primary));
	color: #fff; box-shadow: 0 8px 18px -8px rgba(var(--ml-primary-rgb), .9);
}
.logo-mark:hover { color: #fff; }
.custom-logo { display: block; max-height: 48px; width: auto; }
.site-title { margin: 0; font: 700 1.2rem/1.1 var(--ml-font-display); letter-spacing: .02em; }
.site-title a { color: var(--text); }
.site-title a:hover { color: var(--ml-primary); }
.site-description { margin: 2px 0 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.scheme-toggle .only-dark { display: none; }
[data-scheme="dark"] .scheme-toggle .only-dark { display: block; }
[data-scheme="dark"] .scheme-toggle .only-light { display: none; }
.menu-toggle { display: none; }
.menu-toggle .when-open { display: none; }
.menu-toggle[aria-expanded="true"] .when-open { display: block; }
.menu-toggle[aria-expanded="true"] .when-closed { display: none; }

/* Навигация (десктоп) */
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation .menu { display: flex; align-items: center; gap: 2px; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: flex; align-items: center; gap: 6px; padding: .55em .85em; border-radius: 10px;
	color: var(--text); font-weight: 600; font-size: .95rem; white-space: nowrap;
}
.main-navigation a:hover, .main-navigation li:focus-within > a { background: var(--surface-2); color: var(--text); }
.main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a, .main-navigation .current_page_item > a { color: var(--link); background: rgba(var(--ml-primary-rgb), .1); }
.main-navigation .menu-item-has-children > a::after, .main-navigation .page_item_has_children > a::after {
	content: ""; width: 7px; height: 7px; margin-left: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg); opacity: .6;
}
.main-navigation .sub-menu, .main-navigation .children {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
	z-index: 50;
}
.main-navigation .sub-menu::before, .main-navigation .children::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu,
.main-navigation li:hover > .children, .main-navigation li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.main-navigation .sub-menu a, .main-navigation .children a { white-space: normal; font-weight: 500; font-size: .92rem; padding: .6em .8em; }
.main-navigation .sub-menu .sub-menu, .main-navigation .children .children { top: -8px; left: calc(100% + 6px); }
.main-navigation .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); margin-left: auto; }
.submenu-toggle { display: none; }

.header-search { border-top: 1px solid var(--border); padding: 16px 0; background: var(--surface); }
.header-search[hidden] { display: none; }

/* Поиск */
.search-form { position: relative; display: flex; gap: 8px; align-items: center; width: 100%; }
.search-form .search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: flex; }
.search-field {
	flex: 1; min-width: 0; padding: .8em 1em .8em 2.9em; font: 500 1rem var(--ml-font); color: var(--text);
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; transition: border-color .2s, box-shadow .2s;
}
.search-field:focus { outline: none; border-color: var(--ml-primary); box-shadow: 0 0 0 4px rgba(var(--ml-primary-rgb), .18); }
.search-form .search-submit { flex-shrink: 0; }

/* ---------- Главный экран ---------- */
.hero { position: relative; overflow: hidden; background: var(--ml-hero); color: #E8EAF7; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(600px 380px at 85% 10%, rgba(var(--ml-primary-rgb), .55), transparent 70%),
		radial-gradient(520px 340px at 10% 100%, rgba(92, 140, 40, .28), transparent 70%),
		radial-gradient(420px 260px at 55% 120%, rgba(var(--ml-accent-rgb), .25), transparent 70%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; font-weight: 700; color: #F5D06B; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ml-accent); box-shadow: 0 0 0 4px rgba(var(--ml-accent-rgb), .25); }
.hero-title { margin: 0 0 20px; color: #fff; font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; max-width: 14ch;
	background: linear-gradient(100deg, #fff 30%, #F5D06B 60%, var(--ml-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem); color: #CFD8C6; max-width: 56ch; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card {
	background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
	border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg); padding: 22px;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.hero-card-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ml-accent); }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.hero-card li:first-child { border-top: 0; }
.hero-card a { display: block; color: #fff; font-weight: 700; line-height: 1.35; }
.hero-card a:hover { color: var(--ml-accent); }
.hero-card time { font-size: .82rem; color: #9FB09A; }

/* ---------- Секции ---------- */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head .section-title { margin: 0; }
.section-title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin: 0 0 22px; display: flex; align-items: center; gap: 12px; }
.section-title::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: linear-gradient(var(--ml-primary), var(--ml-accent)); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Плитки */
.tiles-section { margin-top: -1px; }
.tiles { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.tile {
	position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: var(--radius-lg);
	background: var(--surface); border: 1px solid var(--border); color: var(--text); box-shadow: var(--shadow-sm);
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; overflow: hidden;
}
.tile::after { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(rgba(var(--tile-rgb), .22), transparent 70%); transition: transform .4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--tile-rgb), .5); color: var(--text); }
.tile:hover::after { transform: scale(1.4); }
.tile-1 { --tile-rgb: var(--ml-primary-rgb); }
.tile-2 { --tile-rgb: 92, 140, 40; }
.tile-3 { --tile-rgb: var(--ml-accent-rgb); }
.tile-4 { --tile-rgb: 168, 52, 46; }
.tile-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; margin-bottom: 10px; background: rgba(var(--tile-rgb), .14); color: rgb(var(--tile-rgb)); }
.tile-3 .tile-icon { color: #8A6410; }
[data-scheme="dark"] .tile-3 .tile-icon { color: var(--ml-accent); }
.tile-title { font: 600 1.12rem/1.25 var(--ml-font-display); }
.tile-text { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.tile-arrow { position: absolute; right: 20px; bottom: 20px; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.tile:hover .tile-arrow { transform: translateX(4px); color: rgb(var(--tile-rgb)); }

/* ---------- Раскладка ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.page-header + .layout, .page-header + .container { padding-bottom: clamp(40px, 6vw, 72px); }
.site-main { min-width: 0; }

.page-header { padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px); }
.page-title { margin: .2em 0 .3em; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); }
.page-title .hl { color: var(--link); }
.archive-description { color: var(--muted); max-width: 70ch; }
.archive-description p:last-child { margin: 0; }
.page-search { max-width: 640px; margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--link); }
.breadcrumbs .sep { opacity: .5; }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: clamp(20px, 3vw, 32px); }
.welcome-card { margin-bottom: 36px; background: linear-gradient(135deg, rgba(var(--ml-primary-rgb), .08), rgba(var(--ml-accent-rgb), .08)), var(--surface); }
.welcome-card .entry-content > *:first-child { margin-top: 0; }
.welcome-card .entry-content > *:last-child { margin-bottom: 0; }

.post-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(var(--ml-primary-rgb), .35); }
.card-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.post-card:hover .card-thumb img { transform: scale(1.05); }
.thumb-placeholder {
	display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.85);
	background:
		radial-gradient(circle at 25% 20%, hsla(calc(95 + var(--ph-hue, 0) / 8), 70%, 45%, .9), transparent 55%),
		radial-gradient(circle at 80% 90%, hsla(calc(40 + var(--ph-hue, 0) / 20), 75%, 50%, .75), transparent 60%),
		linear-gradient(135deg, #123322, #0A1A10);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.card-title { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.32; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--link); }
.card-excerpt { color: var(--muted); font-size: .94rem; line-height: 1.6; }
.card-excerpt p { margin: 0 0 14px; }
.card-meta { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .86rem; color: var(--muted); }
.meta-item { display: inline-flex; align-items: center; gap: 6px; }
.meta-item a { color: inherit; font-weight: 600; }
.meta-item a:hover { color: var(--link); }
.meta-avatar { border-radius: 50%; width: 24px; height: 24px; }

/* Пагинация */
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; }
.page-numbers:hover { border-color: var(--ml-primary); color: var(--link); }
.page-numbers.current { background: var(--ml-primary); border-color: var(--ml-primary); color: #fff; }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Запись ---------- */
.entry-hero .entry-meta { margin-top: 14px; }
.entry { overflow: hidden; }
.entry-thumb { margin: 0; }
.entry-thumb img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.entry-content { padding: clamp(22px, 4vw, 44px); overflow-wrap: break-word; }
.welcome-card .entry-content { padding: 0; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin: .3em 0; }
.entry-content li::marker { color: var(--ml-primary); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .86rem; color: var(--muted); text-align: center; margin-top: .6em; }
.entry-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 0 clamp(22px, 4vw, 44px) clamp(22px, 4vw, 32px); }
.tag-list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); }
.tag-list a { padding: .3em .8em; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .85rem; font-weight: 600; }
.tag-list a:hover { background: rgba(var(--ml-primary-rgb), .14); color: var(--link); }
.edit-link a { font-size: .85rem; font-weight: 700; }
.page-links { margin-top: 2em; display: flex; gap: 8px; align-items: center; font-weight: 700; }

/* Таблицы (базы данных)
   Современные таблицы (без HTML-атрибутов оформления) получают стиль темы.
   Старые таблицы с атрибутами border/bgcolor/width сохраняют своё оформление,
   но прокручиваются по горизонтали и остаются читаемыми в тёмной схеме. */
.table-scroll, .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.6em 0; max-width: 100%; }
.table-scroll { scrollbar-width: thin; }
.wp-block-table .table-scroll { margin: 0; }
.entry-content table { border-collapse: collapse; font-size: .93rem; }
.entry-content table:not([width]) { width: 100%; }
.entry-content table[width] { max-width: none; }
.entry-content table:not([border]):not([bgcolor]):not([cellpadding]) { min-width: 520px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.entry-content table:not([border]):not([bgcolor]):not([cellpadding]) :is(th, td) { padding: .75em 1em; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.entry-content table:not([border]):not([bgcolor]):not([cellpadding]) thead th { background: var(--surface-2); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.entry-content table:not([border]):not([bgcolor]):not([cellpadding]) tbody tr:nth-child(even) { background: rgba(var(--ml-primary-rgb), .035); }
.entry-content table:not([border]):not([bgcolor]):not([cellpadding]) tbody tr:hover { background: rgba(var(--ml-accent-rgb), .1); }
.entry-content table:not([border]):not([bgcolor]):not([cellpadding]) tbody tr:last-child td { border-bottom: 0; }
/* Старые таблицы: только наведение строки и мелкие картинки-иконки без скругления */
.entry-content table[border] tr:hover > td { box-shadow: inset 0 0 0 9999px rgba(var(--ml-primary-rgb), .07); }
.entry-content table img { border-radius: 0; display: inline-block; vertical-align: middle; }
.table-scroll-hint { display: block; margin: 0 0 .5em; font-size: .8rem; font-weight: 700; color: var(--muted); text-align: center; letter-spacing: .02em; }
.table-scroll.is-scrollable { box-shadow: inset -12px 0 12px -12px rgba(17, 20, 45, .35); }

/* Тёмная схема и контент со «своими» светлыми фонами (старые таблицы, блоки калькулятора) */
[data-scheme="dark"] .entry-content :is([bgcolor], [style*="background:#f"], [style*="background: #f"], [style*="background-color:#f"], [style*="background-color: #f"], [style*="background:#e"], [style*="background: #e"], [style*="background:#F"], [style*="background: #F"], [style*="background:white"], [style*="background: white"], [style*="background-color: white"], [style*="background:#d"], [style*="background: #d"], [style*="background:#9"], [style*="background: #9"]),
[data-scheme="dark"] .entry-content :is([bgcolor], [style*="background:#f"], [style*="background: #f"], [style*="background-color:#f"], [style*="background-color: #f"], [style*="background:#e"], [style*="background: #e"], [style*="background:#F"], [style*="background: #F"], [style*="background:white"], [style*="background: white"], [style*="background-color: white"], [style*="background:#d"], [style*="background: #d"], [style*="background:#9"], [style*="background: #9"]) :not(a) { color: #151831; }
[data-scheme="dark"] .entry-content :is([bgcolor], [style*="background"]) a:not([style*="color"]) { color: #17683A; }
[data-scheme="dark"] .entry-content table[bgcolor="#ffffff"], [data-scheme="dark"] .entry-content table:not([bgcolor])[border] { background: #fff; color: #151831; }

/* Пользовательский HTML/JS (калькуляторы): не навязываем стили формам и кнопкам */
.entry-content :is(input, select, textarea, button) { font: inherit; max-width: 100%; }
.entry-content canvas, .entry-content iframe { max-width: 100%; }
.site-main--full .entry-content, .no-sidebar .entry .entry-content { padding-left: clamp(16px, 3vw, 40px); padding-right: clamp(16px, 3vw, 40px); }

/* Блоки Gutenberg */
.alignwide { margin-left: 0; margin-right: 0; }
.alignleft { float: left; margin: .4em 1.6em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.6em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-button__link { border-radius: 999px; background: var(--ml-primary); color: #fff; font-weight: 700; padding: .8em 1.4em; text-decoration: none !important; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--link); border: 2px solid currentColor; }
.wp-block-separator { border: 0; height: 1px; background: var(--border); }
.wp-block-pullquote { border-color: var(--ml-accent); }
.has-primary-color { color: var(--ml-primary) !important; } .has-primary-background-color { background-color: var(--ml-primary) !important; }
.has-gold-color { color: var(--ml-accent) !important; } .has-gold-background-color { background-color: var(--ml-accent) !important; }
.has-teal-color { color: var(--ml-teal) !important; } .has-teal-background-color { background-color: var(--ml-teal) !important; }
.has-midnight-color { color: #0B140E !important; } .has-midnight-background-color { background-color: #0B140E !important; }
.has-gem-color { color: #16191B !important; } .has-gem-background-color { background-color: #16191B !important; }
.has-gold-light-color { color: #F5D06B !important; } .has-gold-light-background-color { background-color: #F5D06B !important; }
.has-pearl-color { color: #F7F2E4 !important; } .has-pearl-background-color { background-color: #F7F2E4 !important; }
.sticky .card-title a::before { content: "★ "; color: var(--ml-accent); }
.bypostauthor > .comment-body .comment-author::after { content: " · автор"; color: var(--ml-accent); font-weight: 600; font-size: .85em; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery-item { margin: 0; }

/* Навигация записей */
.post-navigation { margin-top: 28px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr; gap: 14px; }
.post-navigation a { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); height: 100%; transition: border-color .2s, transform .2s var(--ease); }
.post-navigation a:hover { border-color: var(--ml-primary); transform: translateY(-2px); color: var(--text); }
.post-navigation .nav-next a { text-align: right; }
.nav-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.nav-title { font-weight: 700; line-height: 1.35; }
.related { margin-top: 44px; }
.related .post-grid--3 .card-excerpt { display: none; }

/* ---------- Комментарии ---------- */
.comments-area { margin-top: 36px; }
.comments-title, .comment-reply-title { margin-top: 0; font-size: 1.3rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 48px); }
.comment-body { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment-avatar img { border-radius: 50%; display: block; }
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.comment-author a { color: var(--text); }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-content p { margin-bottom: .6em; }
.comment-awaiting { font-size: .85rem; color: #8A6410; }
.comment-actions { display: flex; gap: 14px; font-size: .85rem; font-weight: 700; }
.comment-respond { margin-top: 28px; }
.comment-form { display: grid; gap: 14px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
:where(.comment-form, .post-password-form, .widget, .page-search) :is(input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="number"], textarea, select) {
	width: 100%; padding: .75em 1em; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
	font: 500 1rem var(--ml-font); transition: border-color .2s, box-shadow .2s;
}
:where(.comment-form, .post-password-form, .widget) :is(input, textarea, select):focus { outline: none; border-color: var(--ml-primary); box-shadow: 0 0 0 4px rgba(var(--ml-primary-rgb), .18); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 500; margin: 0; }
:where(.comment-form, .post-password-form, .widget) input[type="submit"] { width: auto; border: 0; padding: .8em 1.6em; border-radius: 999px; font: 700 .95rem var(--ml-font); cursor: pointer; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); font-size: .95rem; }
.widget-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 1rem; font-weight: 600; }
.widget-title .icon { color: var(--ml-primary); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget > ul > li, .widget .menu > li, .widget_recent_comments li, .widget_categories li, .widget_archive li, .widget_pages li, .widget_meta li { padding: 9px 0; border-bottom: 1px dashed var(--border); }
.widget > ul > li:last-child, .widget .menu > li:last-child { border-bottom: 0; }
.widget a { color: var(--text); font-weight: 600; }
.widget a:hover { color: var(--link); }
.widget .search-form .search-submit { padding: .78em 1.1em; }
.wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.wp-block-search__button { border-radius: 999px; border: 0; background: var(--ml-primary); color: #fff; padding: 0 1.1em; font-weight: 700; cursor: pointer; }
.wp-block-search__label { font-weight: 700; display: block; margin-bottom: 8px; }
.wp-block-latest-comments { padding: 0; }
.wp-block-latest-comments__comment { margin-bottom: 12px; line-height: 1.45; }

.mini-posts li { display: flex; gap: 12px; align-items: center; padding: 9px 0; }
.mini-thumb { flex-shrink: 0; width: 60px; height: 60px; border-radius: 12px; overflow: hidden; display: block; }
.mini-thumb img, .mini-thumb .thumb-placeholder { width: 100%; height: 100%; object-fit: cover; }
.mini-title { display: block; line-height: 1.35; font-size: .93rem; }
.mini-date { font-size: .8rem; color: var(--muted); }
.random-post .card-thumb { border-radius: var(--radius); margin-bottom: 12px; }
.random-title { display: block; line-height: 1.35; margin-bottom: 4px; }

.widget-accent { background: linear-gradient(150deg, rgba(var(--ml-accent-rgb), .16), rgba(var(--ml-primary-rgb), .08)), var(--surface); border-color: rgba(var(--ml-accent-rgb), .45); }
.widget-accent .widget-title .icon { color: #B8322A; }
.donate-text { color: var(--muted); }
.donate-list li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.donate-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--muted); }
.donate-value { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.donate-value code { background: none; padding: 0; font-size: .95rem; font-weight: 700; color: var(--text); word-break: break-all; }
.copy-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; flex-shrink: 0; }
.copy-btn:hover, .copy-btn.is-copied { color: var(--ml-teal); border-color: var(--ml-teal); }
.widget-accent .btn { margin-top: 14px; }

.widget-banner { position: relative; overflow: hidden; background: var(--ml-hero); color: #CFD8C6; border-color: transparent; isolation: isolate; }
.banner-glow { position: absolute; inset: 0; z-index: -1; background: radial-gradient(260px 200px at 100% 0%, rgba(var(--ml-primary-rgb), .7), transparent 70%), radial-gradient(220px 180px at 0% 100%, rgba(var(--ml-accent-rgb), .35), transparent 70%); }
.widget-banner .widget-title { color: #fff; font-size: 1.15rem; }
.banner-icon { color: var(--ml-accent); margin-bottom: 10px; }
.widget-banner .btn { color: #2A1E05; }

/* ---------- Блок «Поддержите проект» ---------- */
.cta { position: relative; overflow: hidden; display: grid; gap: 22px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--ml-hero); color: #CFD8C6; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 260px at 100% 0%, rgba(var(--ml-primary-rgb), .6), transparent 70%), radial-gradient(400px 240px at 0% 100%, rgba(var(--ml-accent-rgb), .3), transparent 70%); }
.cta h2 { margin: 0 0 8px; color: #fff; }
.cta p { margin: 0; max-width: 60ch; }
.cta-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(var(--ml-accent-rgb), .18); color: var(--ml-accent); }

/* ---------- 404 ---------- */
.error-404 { padding: clamp(48px, 10vw, 120px) 0; }
.error-box { text-align: center; }
.error-code { margin: 0; font: 700 clamp(5rem, 3rem + 10vw, 10rem)/1 var(--ml-font-display); background: linear-gradient(120deg, var(--ml-primary), var(--ml-accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-box .search-form { max-width: 520px; margin: 24px auto; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--ml-hero); color: #A9B5A0; padding: clamp(44px, 6vw, 72px) 0 28px; margin-top: 0; }
.site-footer a { color: #EDE4C8; }
.site-footer a:hover { color: var(--ml-accent); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font: 700 1.2rem var(--ml-font-display); color: #fff !important; margin-bottom: 14px; }
.footer-about p { max-width: 44ch; font-size: .94rem; }
.site-footer .widget { background: none; border: 0; padding: 0; box-shadow: none; }
.site-footer .widget-title { color: #fff; font-size: .95rem; }
.site-footer .widget li { border-color: rgba(255,255,255,.08); }
.site-footer .widget a { color: #E3DBC1; font-weight: 500; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .87rem; }
.footer-bottom p { margin: 0; }
.footer-menu, .social-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.social-menu { margin-top: 12px; }
.social-menu a { display: inline-block; padding: .35em .9em; border-radius: 999px; background: rgba(255,255,255,.07); font-size: .85rem; font-weight: 600; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--ml-primary); color: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Появление при прокрутке */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (min-width: 600px) {
	.tiles { grid-template-columns: repeat(2, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.post-navigation .nav-links { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: repeat(2, 1fr); }
	.cta { grid-template-columns: auto 1fr auto; }
}
@media (min-width: 960px) {
	.hero-inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: 56px; }
	.tiles { grid-template-columns: repeat(4, 1fr); }
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 340px; }
	.has-sidebar .sidebar { position: sticky; top: 96px; }
	.no-sidebar .post-grid, .post-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
@media (min-width: 960px) and (max-width: 1120px) {
	.has-sidebar .layout { grid-template-columns: minmax(0, 1fr) 300px; }
}
@media (min-width: 1200px) {
	.has-sidebar .related .post-grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) and (max-width: 1199px) {
	.has-sidebar .related .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) and (max-width: 1480px) { .site-description { display: none; } }

/* Мобильное меню */
@media (max-width: 1099px) {
	.site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
	.menu-toggle { display: inline-grid; }
	.header-account span { display: none; }
	.header-account { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
	.main-navigation {
		position: fixed; inset: 72px 0 0 0; z-index: 99; background: var(--bg); overflow-y: auto; padding: 16px clamp(16px, 4vw, 32px) 40px;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
	}
	.admin-bar .main-navigation { top: 118px; }
	.main-navigation.is-open { opacity: 1; visibility: visible; transform: none; }
	.main-navigation .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.main-navigation li { border-bottom: 1px solid var(--border); }
	.main-navigation a { padding: 14px 6px; font-size: 1.05rem; border-radius: 0; white-space: normal; }
	.main-navigation a:hover { background: none; }
	.main-navigation .menu-item-has-children > a::after, .main-navigation .page_item_has_children > a::after { display: none; }
	.main-navigation .menu-item-has-children, .main-navigation .page_item_has_children { display: grid; grid-template-columns: 1fr auto; }
	.submenu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; align-self: center; border: 0; background: var(--surface-2); color: var(--text); border-radius: 12px; cursor: pointer; }
	.submenu-toggle .icon { transition: transform .25s var(--ease); }
	.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
	.main-navigation .sub-menu, .main-navigation .children {
		grid-column: 1 / -1; position: static; min-width: 0; padding: 0 0 8px 14px; margin: 0; border: 0; box-shadow: none; background: none;
		opacity: 1; visibility: visible; transform: none; display: none; border-left: 2px solid rgba(var(--ml-primary-rgb), .3);
	}
	.main-navigation .sub-menu.is-open, .main-navigation .children.is-open { display: block; }
	.main-navigation .sub-menu li, .main-navigation .children li { border: 0; }
	.main-navigation .sub-menu a, .main-navigation .children a { padding: 10px 6px; font-size: .97rem; }
	.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu { transform: none; }
	body.menu-open { overflow: hidden; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.header-inner { min-height: 64px; gap: 10px; }
	.main-navigation { inset: 64px 0 0 0; }
	.site-description { display: none; }
	.header-actions { gap: 4px; }
	.site-branding { gap: 8px; }
	.site-branding .logo-mark { width: 36px; height: 36px; border-radius: 11px; }
	.branding-text { min-width: 0; }
	.site-title { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.page-title--icon .tile-icon { width: 44px; height: 44px; }
	.no-sidebar .entry .entry-content, .site-main--full .entry-content { padding: 16px 12px; }
	.icon-btn, .header-account { width: 38px; height: 38px; }
	.search-form .search-submit { padding: .8em 1em; }
	.hero-actions .btn { width: 100%; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media print {
	.site-header, .sidebar, .site-footer, .to-top, .read-progress, .comments-area, .post-navigation, .related { display: none !important; }
	body { background: #fff; color: #000; }
	.card { border: 0; box-shadow: none; }
}
.entry-hero .card-top { margin: 14px 0 4px; }

/* ==========================================================================
   v1.1 — каталог разделов, пустые состояния, быстрый доступ
   ========================================================================== */
.hero-card--links ul { display: grid; gap: 2px; }
.hero-card--links li { padding: 0; border: 0; }
.hero-card--links a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; font-weight: 700; transition: background-color .2s; }
.hero-card--links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.ql-icon { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(var(--ml-accent-rgb), .14); color: var(--ml-accent); flex-shrink: 0; }
.hero-card--links .ql-arrow { margin-left: auto; opacity: .45; transition: transform .2s var(--ease), opacity .2s; }
.hero-card--links a:hover .ql-arrow { opacity: 1; transform: translateX(3px); }

.catalog-block + .catalog-block { margin-top: 44px; }
.catalog-after-posts { margin-top: 56px; }
.cat-grid { display: grid; grid-template-columns: 1fr; gap: var(--gap); }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .25s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.cat-card::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(rgba(var(--tile-rgb), .2), transparent 70%); pointer-events: none; }
.cat-card:hover { border-color: rgba(var(--tile-rgb), .5); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card-head { display: flex; align-items: center; gap: 14px; color: var(--text); }
.cat-card-head:hover { color: var(--text); }
.cat-card-head .tile-icon { margin: 0; width: 48px; height: 48px; flex-shrink: 0; }
.cat-card-title { font: 600 1.1rem/1.25 var(--ml-font-display); }
.cat-card-head .tile-arrow { position: static; margin-left: auto; }
.cat-card:hover .tile-arrow { color: rgb(var(--tile-rgb)); transform: translateX(4px); }
.cat-card-desc { color: var(--muted); font-size: .92rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; position: relative; z-index: 1; }
.chip { display: inline-block; padding: .4em .85em; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: .86rem; font-weight: 600; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { background: rgba(var(--tile-rgb), .12); border-color: rgba(var(--tile-rgb), .45); color: var(--text); }

.tile-sm { flex-direction: row; align-items: center; gap: 14px; padding: 18px 20px; }
.tile-sm .tile-icon { margin: 0; width: 44px; height: 44px; flex-shrink: 0; }
.tile-sm .tile-title { font-size: 1rem; padding-right: 26px; }
.tile-sm .tile-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
.tile-sm:hover .tile-arrow { transform: translate(4px, -50%); }
.tile-5 { --tile-rgb: var(--ml-primary-rgb); }

.page-title--icon { display: flex; align-items: center; gap: 16px; }
.page-title--icon .tile-icon { --tile-rgb: var(--ml-primary-rgb); margin: 0; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(var(--ml-primary-rgb), .14); color: var(--link); flex-shrink: 0; }

.empty-state { text-align: center; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px); margin-bottom: 44px; }
.empty-state h2 { margin: 12px 0 8px; }
.empty-state p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.empty-state .search-form { max-width: 520px; margin: 0 auto; }
.empty-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, rgba(var(--ml-primary-rgb), .16), rgba(var(--ml-accent-rgb), .2)); color: var(--link); }

@media (min-width: 600px) {
	.cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
	.no-sidebar .cat-grid { grid-template-columns: repeat(3, 1fr); }
	.tiles--pages { grid-template-columns: repeat(2, 1fr); }
	.no-sidebar .tiles--pages { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
	.has-sidebar .tiles--pages { grid-template-columns: repeat(2, 1fr); }
}
.entry-content table p { margin: 0; }
.table-scroll > table[width] { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   v1.2 — оформление в стиле My Lands
   Изумруд, золото с фаской, тёмный лес, пергамент, Чёрный камень
   ========================================================================== */
:root {
	--ml-corner-tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='%23C29A33' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M1.5 24V9.5Q1.5 1.5 9.5 1.5H24'/%3E%3Cpath d='M6 17q0-11 11-11' opacity='.7'/%3E%3Ccircle cx='6' cy='6' r='1.6' fill='%23C29A33' stroke='none'/%3E%3C/svg%3E");
	--ml-corner-tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='%23C29A33' stroke-width='1.3' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 1 26 0)'%3E%3Cpath d='M1.5 24V9.5Q1.5 1.5 9.5 1.5H24'/%3E%3Cpath d='M6 17q0-11 11-11' opacity='.7'/%3E%3Ccircle cx='6' cy='6' r='1.6' fill='%23C29A33' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
	--ml-corner-bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='%23C29A33' stroke-width='1.3' stroke-linecap='round'%3E%3Cg transform='matrix(1 0 0 -1 0 26)'%3E%3Cpath d='M1.5 24V9.5Q1.5 1.5 9.5 1.5H24'/%3E%3Cpath d='M6 17q0-11 11-11' opacity='.7'/%3E%3Ccircle cx='6' cy='6' r='1.6' fill='%23C29A33' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
	--ml-corner-br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26' fill='none' stroke='%23C29A33' stroke-width='1.3' stroke-linecap='round'%3E%3Cg transform='matrix(-1 0 0 -1 26 26)'%3E%3Cpath d='M1.5 24V9.5Q1.5 1.5 9.5 1.5H24'/%3E%3Cpath d='M6 17q0-11 11-11' opacity='.7'/%3E%3Ccircle cx='6' cy='6' r='1.6' fill='%23C29A33' stroke='none'/%3E%3C/g%3E%3C/svg%3E");
	--ml-corners: var(--ml-corner-tl) top 5px left 5px / 26px no-repeat, var(--ml-corner-tr) top 5px right 5px / 26px no-repeat, var(--ml-corner-bl) bottom 5px left 5px / 26px no-repeat, var(--ml-corner-br) bottom 5px right 5px / 26px no-repeat;
}

body {
	background:
		radial-gradient(1100px 520px at 50% -120px, rgba(212, 166, 53, .12), transparent 70%),
		var(--bg);
}
[data-scheme="dark"] body {
	background:
		radial-gradient(1100px 600px at 50% -160px, rgba(47, 163, 90, .14), transparent 70%),
		var(--bg);
}
:focus-visible { outline-color: rgba(212, 166, 53, .85); }
::selection { background: rgba(212, 166, 53, .35); }

/* Заголовки — Cormorant SC */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: .015em; line-height: 1.15; color: #16301F; }
[data-scheme="dark"] :is(h1, h2, h3, h4, h5, h6) { color: #F2E7C6; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.2vw, 2.15rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.25rem; }

/* Золотой текст с фаской */
.gold-text, .site-title a, .footer-brand .gold-text {
	background: var(--ml-gold-text);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: var(--ml-gold-500);
	filter: drop-shadow(0 1px 0 rgba(92, 60, 4, .9)) drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
}
.site-title { font: 700 1.55rem/1 var(--ml-font-display); letter-spacing: .06em; }
.site-title a:hover { color: var(--ml-gold-300); filter: drop-shadow(0 1px 0 rgba(92, 60, 4, .9)) drop-shadow(0 0 10px rgba(245, 208, 107, .45)); }

/* ---------- Шапка: тёмный лес с золотой каймой ---------- */
.site-header { background: var(--header-bg); border-bottom: 0; color: #EDE4C8; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: linear-gradient(90deg, transparent, #8A6410 12%, #F5D06B 50%, #8A6410 88%, transparent); }
.header-inner { min-height: 78px; }
.custom-logo { max-height: 58px; width: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.custom-logo-link { display: block; flex-shrink: 0; transition: transform .25s var(--ease); }
.custom-logo-link:hover { transform: scale(1.05) rotate(-2deg); }
.site-description { color: #A9B5A0; }
.main-navigation a { color: #EDE4C8; font-weight: 600; }
.main-navigation a:hover, .main-navigation li:focus-within > a { background: rgba(212, 166, 53, .1); color: var(--ml-gold-300); }
.main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a, .main-navigation .current_page_item > a { color: var(--ml-gold-300); background: rgba(47, 163, 90, .16); box-shadow: inset 0 -2px 0 var(--ml-gold-500); }
.main-navigation .sub-menu, .main-navigation .children { background: #0F1D14; border: 1px solid rgba(212, 166, 53, .4); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .8); }
.main-navigation .sub-menu a, .main-navigation .children a { color: #E3DBC1; }
.icon-btn { background: rgba(255, 255, 255, .04); border-color: rgba(212, 166, 53, .35); color: var(--ml-gold-300); }
.icon-btn:hover, [data-scheme="dark"] .icon-btn:hover { background: rgba(212, 166, 53, .12); border-color: var(--ml-gold-500); color: #FFF3C4; }
.header-search { background: #0F1D14; border-top: 1px solid rgba(212, 166, 53, .25); }
.header-search .search-field { background: rgba(255, 255, 255, .06); border-color: rgba(212, 166, 53, .3); color: #EFE8D4; }
.header-search .search-field::placeholder { color: #9FB09A; }

/* ---------- Кнопки ---------- */
.btn { border-radius: 10px; font-family: var(--ml-font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: .03em; }
.btn-sm { font-size: .98rem; }
.btn-lg { font-size: 1.2rem; padding: .78em 1.5em; }
.btn-primary, :where(.comment-form, .post-password-form, .widget) :is(input[type="submit"], button[type="submit"]:not(.btn)), .wp-block-button__link, .wp-block-search__button {
	background: var(--ml-emerald-grad); color: #FFF8E1; border: 1px solid #B8902C;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 6px 16px -6px rgba(10, 42, 24, .8);
	text-shadow: 0 1px 1px rgba(0, 0, 0, .45);
}
.btn-primary:hover, .wp-block-button__link:hover { color: #fff; filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 0 0 3px rgba(212, 166, 53, .25), 0 10px 22px -8px rgba(10, 42, 24, .9); }
.btn-accent, .widget-banner .btn {
	background: var(--ml-gold-grad); color: #2A1E05; border: 1px solid #8A6410;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(110, 76, 8, .45), 0 8px 20px -8px rgba(166, 120, 20, .9);
	text-shadow: 0 1px 0 rgba(255, 244, 200, .7);
}
.btn-accent:hover { color: #1C1403; background: var(--ml-gold-grad); filter: brightness(1.08) saturate(1.1); }
.btn-glass { background: rgba(10, 30, 18, .45); color: #F5E7BD; border-color: rgba(212, 166, 53, .55); }
.btn-glass:hover { background: rgba(31, 122, 62, .35); color: #FFF3C4; border-color: var(--ml-gold-300); }
.btn-ghost { background: var(--surface-2); border-color: var(--frame); }
.header-account.btn-primary { padding: .5em 1em; }

/* ---------- Главный экран ---------- */
.hero { background: var(--ml-hero); color: #CFD8C6; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, #8A6410 12%, #F5D06B 50%, #8A6410 88%, transparent); }
.hero-bg {
	background:
		radial-gradient(520px 420px at 78% 38%, rgba(139, 217, 74, .22), transparent 70%),
		radial-gradient(900px 520px at 70% 30%, rgba(31, 122, 62, .55), transparent 70%),
		radial-gradient(700px 400px at 0% 100%, rgba(15, 61, 36, .9), transparent 70%),
		radial-gradient(500px 300px at 40% 0%, rgba(212, 166, 53, .14), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--ml-hero) 85%, #1F7A3E), var(--ml-hero) 70%);
}
.hero-bg::after { background: radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0, 0, 0, .55)); mask-image: none; -webkit-mask-image: none; background-size: auto; }
.hero-castle { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 62%; fill: rgba(47, 163, 90, .13); }
.hero-castle-windows { fill: rgba(245, 208, 107, .28); }
.sparkle {
	position: absolute; left: var(--x); top: var(--y); width: calc(18px * var(--s)); height: calc(18px * var(--s)); pointer-events: none;
	background:
		radial-gradient(circle, #fff 0 1.4px, rgba(255, 255, 255, .5) 2px, transparent 3.5px),
		linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, .85) 50%, transparent 54%),
		linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, .85) 50%, transparent 54%);
	mask-image: radial-gradient(circle, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 70%);
	opacity: .75; animation: ml-twinkle 3.8s ease-in-out var(--d) infinite;
}
@keyframes ml-twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
@media (prefers-reduced-motion: reduce) { .sparkle { animation: none; opacity: .6; } }
.eyebrow { background: rgba(10, 30, 18, .6); border-color: rgba(212, 166, 53, .45); color: var(--ml-gold-300); font-family: var(--ml-font-display); font-size: 1rem; letter-spacing: .05em; }
.eyebrow .dot { width: 10px; height: 10px; border-radius: 2px; transform: rotate(45deg); background: linear-gradient(135deg, #5A6265, #16191B 60%); border: 1px solid var(--ml-gold-300); box-shadow: 0 0 8px rgba(139, 217, 74, .7); }
.hero-title { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); line-height: 1.02; max-width: 15ch; letter-spacing: .01em; color: var(--ml-gold-500); }
.hero-title.gold-text { filter: drop-shadow(0 2px 0 rgba(92, 60, 4, .95)) drop-shadow(0 6px 18px rgba(0, 0, 0, .6)); }
.hero-lead { color: #D3DCC9; }
.hero-card {
	background: var(--ml-corners), linear-gradient(160deg, rgba(31, 122, 62, .28), rgba(8, 20, 12, .7));
	border: 1px solid rgba(212, 166, 53, .5); border-radius: 14px;
	box-shadow: inset 0 0 0 4px rgba(8, 18, 11, .55), inset 0 0 0 5px rgba(212, 166, 53, .22), 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.hero-card-title { color: var(--ml-gold-300); font-family: var(--ml-font-display); font-size: 1.05rem; letter-spacing: .08em; }
.hero-card li { border-color: rgba(212, 166, 53, .16); }
.hero-card a { color: #F2EAD3; }
.hero-card a:hover, .hero-card--links a:hover { color: var(--ml-gold-300); background: rgba(212, 166, 53, .08); }
.hero-card time { color: #9FB09A; }

/* ---------- Медальоны-иконки ---------- */
.tile-icon, .tile .tile-icon, .tile-3 .tile-icon, [data-scheme="dark"] .tile-3 .tile-icon, .page-title--icon .tile-icon, .empty-icon, .cta-icon {
	border-radius: 50%; color: var(--ml-gold-300);
	background: radial-gradient(circle at 35% 28%, #3DB06A, #1F7A3E 45%, #0F3D24 80%);
	border: 2px solid #C29A33;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .28), inset 0 2px 4px rgba(255, 255, 255, .25), 0 5px 12px -5px rgba(10, 42, 24, .8);
}
.ql-icon { border-radius: 50%; color: var(--ml-gold-300); background: radial-gradient(circle at 35% 28%, #2FA35A, #0F3D24 80%); border: 1.5px solid rgba(212, 166, 53, .7); }

/* ---------- Карточки в золотой рамке ---------- */
.card, .tile, .cat-card, .widget:not(.widget-banner), .post-navigation a, .comments-area {
	background: var(--ml-corners), var(--surface);
	border: 1px solid var(--frame);
}
.welcome-card { background: var(--ml-corners), linear-gradient(135deg, rgba(31, 122, 62, .08), rgba(212, 166, 53, .12)), var(--surface); }
.widget-accent { background: var(--ml-corners), linear-gradient(150deg, rgba(212, 166, 53, .18), rgba(31, 122, 62, .08)), var(--surface); border-color: rgba(212, 166, 53, .6); }
.tile, .cat-card, .card, .widget { border-radius: 14px; }
.tile:hover, .cat-card:hover, .post-card:hover { border-color: var(--ml-gold-500); box-shadow: 0 0 0 1px rgba(212, 166, 53, .35), var(--shadow); }
.tile-1 { --tile-rgb: 31, 122, 62; }
.tile-2 { --tile-rgb: 212, 166, 53; }
.tile-3 { --tile-rgb: 92, 140, 40; }
.tile-4 { --tile-rgb: 168, 52, 46; }
.tile-title, .cat-card-title { font-size: 1.42rem; line-height: 1.1; color: var(--text); }
[data-scheme="dark"] .tile-title, [data-scheme="dark"] .cat-card-title { color: #F2E7C6; }
.tile-sm .tile-title { font-size: 1.22rem; }
.card-title { font-size: 1.38rem; line-height: 1.15; }
.card-meta { border-top-color: var(--frame); }
.chip { background: var(--surface-2); border-color: var(--frame); }
.chip:hover { background: rgba(31, 122, 62, .12); border-color: var(--ml-emerald-400); color: var(--link); }
.badge { background: rgba(31, 122, 62, .12); color: var(--link); }
[data-scheme="dark"] .badge { background: rgba(212, 166, 53, .14); }
.thumb-placeholder { color: var(--ml-gold-300); background: radial-gradient(circle at 50% 40%, rgba(139, 217, 74, .35), transparent 55%), radial-gradient(circle at 25% 20%, hsla(calc(95 + var(--ph-hue, 0) / 8), 60%, 35%, .9), transparent 60%), linear-gradient(135deg, #123322, #0A1A10); }

/* Заголовки секций с Чёрным камнем */
.section-title { color: #16301F; }
[data-scheme="dark"] .section-title { color: #F2E7C6; }
.section-title::before {
	width: 13px; height: 13px; border-radius: 2px; flex-shrink: 0; transform: rotate(45deg);
	background: linear-gradient(135deg, #6A7376 0%, #2A2F31 35%, #16191B 70%);
	border: 1.5px solid var(--ml-gold-500); box-shadow: 0 0 10px rgba(139, 217, 74, .55);
}
.page-title { color: #16301F; }
[data-scheme="dark"] .page-title { background: var(--ml-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 rgba(92, 60, 4, .9)); }
[data-scheme="dark"] .page-title--icon { -webkit-text-fill-color: initial; background: none; filter: none; color: #F2E7C6; }
.widget-title { font-size: 1.32rem; padding-bottom: 10px; border-bottom: 1px solid var(--frame); }
.widget-title .icon { color: var(--ml-gold-500); }
.link-arrow { font-family: var(--ml-font-display); font-size: 1.1rem; }

/* Орнаментальный разделитель */
.ml-divider { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: clamp(8px, 2vw, 20px) auto; }
.ml-divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #B8902C); }
.ml-divider-line:last-child { background: linear-gradient(270deg, transparent, #B8902C); }
.ml-divider-orn { flex-shrink: 0; overflow: visible; }
.ml-divider .orn-gold { stroke: #B8902C; }
.ml-divider .orn-gem { fill: #16191B; stroke: #D4A635; stroke-width: 1.4; filter: drop-shadow(0 0 4px rgba(139, 217, 74, .7)); }
.ml-divider .orn-gem-shine { fill: rgba(255, 255, 255, .35); }
.section + .container .ml-divider { margin-top: 0; }

/* Блок поддержки и баннер */
.cta, .widget-banner {
	background: radial-gradient(500px 260px at 100% 0%, rgba(31, 122, 62, .65), transparent 70%), radial-gradient(400px 240px at 0% 100%, rgba(212, 166, 53, .22), transparent 70%), var(--ml-hero);
	border: 1px solid rgba(212, 166, 53, .55);
	box-shadow: inset 0 0 0 5px var(--ml-hero), inset 0 0 0 6px rgba(212, 166, 53, .3), var(--shadow);
}
.cta::before, .banner-glow { display: none; }
.cta h2, .widget-banner .widget-title { background: var(--ml-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 1px 0 rgba(92, 60, 4, .9)); border: 0; }
.cta h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.cta-icon { width: 68px; height: 68px; }
.widget-banner { color: #CFD8C6; }
.banner-icon { color: var(--ml-gold-300); }

/* Подвал */
.site-footer { background: radial-gradient(800px 300px at 50% 0%, rgba(31, 122, 62, .25), transparent 70%), var(--ml-hero); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #8A6410 12%, #F5D06B 50%, #8A6410 88%, transparent); }
.footer-brand { font-family: var(--ml-font-display); font-size: 1.6rem; letter-spacing: .05em; }
.footer-logo { width: auto; height: 64px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)); }
.site-footer .widget-title { color: var(--ml-gold-300); border-bottom-color: rgba(212, 166, 53, .25); }
.site-footer a:hover { color: var(--ml-gold-300); }
.footer-bottom { border-top-color: rgba(212, 166, 53, .2); }

/* Прочее */
.read-progress span { background: var(--ml-gold-grad); }
.to-top { background: var(--ml-emerald-grad); border: 1px solid #C29A33; color: var(--ml-gold-300); }
.page-numbers { border-color: var(--frame); }
.page-numbers.current { background: var(--ml-emerald-grad); border-color: #C29A33; color: #FFF8E1; }
blockquote { border-left-color: var(--ml-gold-500); background: var(--surface-2); font-family: var(--ml-font-display); font-size: 1.3rem; }
.entry-content li::marker { color: var(--ml-gold-500); }
.search-field:focus { border-color: var(--ml-gold-500); box-shadow: 0 0 0 4px rgba(212, 166, 53, .2); }
.copy-btn:hover, .copy-btn.is-copied { color: var(--ml-emerald-400); border-color: var(--ml-emerald-400); }
.donate-value code { color: var(--text); }
.error-code { background: var(--ml-gold-text); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 rgba(92, 60, 4, .8)); }

@media (max-width: 1099px) {
	.main-navigation { background: #0B140E; inset: 78px 0 0 0; }
	.main-navigation li { border-bottom-color: rgba(212, 166, 53, .15); }
	.main-navigation .sub-menu, .main-navigation .children { background: none; border: 0; border-left: 2px solid rgba(212, 166, 53, .4); box-shadow: none; }
	.submenu-toggle { background: rgba(255, 255, 255, .06); color: var(--ml-gold-300); }
	.site-header { background: #09120C; }
}
@media (max-width: 600px) {
	.header-inner { min-height: 66px; }
	.custom-logo { max-height: 46px; }
	.site-title { font-size: 1.2rem; }
	.main-navigation { inset: 66px 0 0 0; }
	.hero-title { font-size: clamp(2.3rem, 1.6rem + 4vw, 3rem); }
}

/* v1.2 — доводка */
.site-footer .widget:not(.widget-banner) { background: none; border: 0; box-shadow: none; padding: 0; }
.tiles-section { padding-bottom: clamp(16px, 2vw, 24px); }
.container:has(> .ml-divider) + .section { padding-top: clamp(20px, 3vw, 32px); }
.section:has(+ .container > .ml-divider) { padding-bottom: clamp(16px, 2vw, 24px); }
.tile::after, .cat-card::after { opacity: .55; }
.hero-castle { fill: rgba(47, 163, 90, .085); height: 55%; }
.hero-castle-windows { fill: rgba(245, 208, 107, .22); }
.sparkle { width: calc(24px * var(--s)); height: calc(24px * var(--s)); }
@media (max-width: 1099px) {
	.header-account.btn-primary { padding: 0; }
}
@media (max-width: 600px) {
	.eyebrow { font-size: .88rem; border-radius: 12px; padding: 6px 12px; }
}
@media (min-width: 1100px) and (max-width: 1340px) {
	.header-inner { gap: 12px; }
	.main-navigation a { padding: .5em .55em; font-size: .9rem; }
	.site-title { font-size: 1.25rem; letter-spacing: .03em; }
	.custom-logo { max-height: 50px; }
	.header-account span { display: none; }
	.header-account.btn-primary { width: 42px; height: 42px; padding: 0; }
}
