/* ==========================================================================
   «Новая Жизнь» — основная стилизация (дизайн-макет 2)
   Белый, воздушный, пастель + умеренное золото.
   ========================================================================== */

:root {
	--nz-gold: #c9a45c;
	--nz-gold-deep: #b08c3f;
	--nz-gold-grad: linear-gradient(100deg, #e0c084, #c39a4a);
	--nz-violet: #9b86d2;
	--nz-violet-deep: #6f5fb0;
	--nz-lav: #f2eefb;
	--nz-lav-2: #e9e2f7;
	--nz-ink: #55556b;
	--nz-ink-soft: #8a8a9e;
	--nz-heading: #6d6d92;
	--nz-line: #edeaf4;
	--nz-bg: #fcfbfe;
	--nz-card: #ffffff;
	--nz-radius: 16px;
	--nz-shadow: 0 10px 30px rgba(140, 120, 200, .10);
	--nz-font-head: 'Cormorant', Georgia, 'Times New Roman', serif;
	--nz-font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--nz-font-script: 'Caveat', cursive;
	--nz-font-script-fancy: 'Marck Script', 'Caveat', cursive;
}

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

html { -webkit-text-size-adjust: 100%; }

body.nz-body {
	margin: 0;
	background: var(--nz-bg);
	color: var(--nz-ink);
	font-family: var(--nz-font-body);
	font-size: 15px;
	line-height: 1.75;
	font-weight: 400;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}

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

a { color: var(--nz-violet-deep); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--nz-violet); }

h1, h2, h3, h4 { font-family: var(--nz-font-head); color: var(--nz-heading); font-weight: 600; line-height: 1.2; margin: 0; }

.nz-container { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ шапка */
.nz-topbar {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15);
	border-bottom: 1px solid rgba(237, 234, 244, .9);
	transition: background-color .35s ease, box-shadow .35s ease;
}
/* после прокрутки — матовое полупрозрачное стекло */
.nz-topbar.is-scrolled { background: rgba(255, 255, 255, .74); box-shadow: 0 6px 24px rgba(140, 120, 200, .08); }
.nz-topbar__in { display: flex; align-items: center; gap: 26px; min-height: 68px; transition: min-height .3s ease; }
/* внутренние страницы: та же шапка, чуть компактнее */
body:not(.home) .nz-topbar__in { min-height: 60px; }

.nz-brand { display: flex; align-items: center; gap: 12px; }
.nz-brand__logo, .nz-brand__logo-fallback svg { height: calc(var(--nz-logo-h, 38px) - 3px); width: auto; max-width: 96px; object-fit: contain; display: block; }
body:not(.home) .nz-brand__logo, body:not(.home) .nz-brand__logo-fallback svg { height: calc(var(--nz-logo-h, 38px) - 3px); }
.nz-logo--blend { mix-blend-mode: multiply; }
.nz-brand__logo-fallback { display: block; }
.nz-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.nz-brand__name { font-family: var(--nz-font-head); font-size: 20px; font-weight: 600; color: var(--nz-gold-deep); letter-spacing: .01em; }
.nz-brand__tag { font-size: 10.5px; color: var(--nz-ink-soft); letter-spacing: .08em; }

.nz-nav { margin-left: auto; }
.nz-nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nz-nav__list > li { position: relative; }
.nz-nav__list a {
	display: block; padding: 8px 0; font-size: 13.5px; font-weight: 500; letter-spacing: .005em; position: relative;
	/* champagne: мягче обычного золота, без «перебора» */
	color: #a99572; transition: color .3s ease;
}
.nz-nav__list a:hover { color: #8a744c; }
.nz-nav__list .current-menu-item > a,
.nz-nav__list .current-menu-ancestor > a,
.nz-nav__list .current_page_item > a,
.nz-nav__list .is-current > a { color: #8a744c; }
/* подчёркивание цветом самих букв: при наведении «вырастает» слева, у выбранного раздела остаётся */
.nz-nav__list > li > a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; border-radius: 2px;
	background: linear-gradient(90deg, #cbb887, rgba(203, 184, 135, .15)); opacity: .75; transform: scaleX(0); transform-origin: left center;
	transition: transform .38s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.nz-nav__list > li > a:hover::after,
.nz-nav__list > li > a:focus-visible::after { transform: scaleX(1); }
.nz-nav__list > .current-menu-item > a::after,
.nz-nav__list > .current-menu-ancestor > a::after,
.nz-nav__list > .current_page_item > a::after,
.nz-nav__list > .is-current > a::after { transform: scaleX(1); opacity: 1; }
.nz-nav .sub-menu {
	position: absolute; top: 100%; left: 0; z-index: 60;
	min-width: 200px; padding: 8px; display: none;
	background: #fff; border: 1px solid var(--nz-line); border-radius: 12px;
	box-shadow: var(--nz-shadow); list-style: none; margin: 0;
}
.nz-nav li:hover > .sub-menu { display: block; }
.nz-nav .sub-menu a { padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.nz-nav .sub-menu a:hover { background: var(--nz-lav); }

.nz-topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: 12px; }

.nz-icon-btn {
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--nz-line); background: #fff; color: #7a7a92;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; transition: all .25s ease;
}
.nz-icon-btn:hover { border-color: var(--nz-violet); color: var(--nz-violet-deep); }

.nz-burger { display: none; flex-direction: column; gap: 4px; }
.nz-burger span { width: 18px; height: 2px; border-radius: 2px; background: #7a7a92; transition: all .3s ease; }
.nz-burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nz-burger.is-open span:nth-child(2) { opacity: 0; }
.nz-burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.admin-bar .nz-topbar { top: 32px; }
.admin-bar .nz-mobile-menu { top: 100px; }
body:not(.home) .nz-mobile-menu { top: 60px; }
body.admin-bar:not(.home) .nz-mobile-menu { top: 92px; }
@media (max-width: 782px) {
	.admin-bar .nz-topbar { top: 46px; }
	.admin-bar .nz-mobile-menu { top: 114px; }
	body.admin-bar:not(.home) .nz-mobile-menu { top: 106px; }
}
@media (max-width: 600px) {
	/* на узких экранах админ-панель не «липкая» — прокручивается вместе со страницей */
	.admin-bar .nz-topbar { top: 0; }
}

/* ----------------------------------------------------------------- кнопки */
.nz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 999px; padding: 11px 24px;
	font-family: var(--nz-font-body); font-size: 13px; font-weight: 600; letter-spacing: .02em;
	border: 1px solid transparent; cursor: pointer; transition: all .3s ease;
}
.nz-btn__arrow { transition: transform .3s ease; }
.nz-btn:hover .nz-btn__arrow { transform: translateX(2px); }
.nz-btn { transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease, filter .3s ease; }
.nz-btn--lavender { background: var(--nz-lav); color: #8f7ac9; border-color: #e5dbf6; }
.nz-btn--lavender:hover { background: #ebe4f8; border-color: #d3c7ee; color: var(--nz-violet-deep); box-shadow: 0 3px 12px rgba(150, 130, 200, .14); }
.nz-btn--outline { background: transparent; color: var(--nz-violet); border-color: #e3d9f4; padding: 8px 22px; }
.nz-btn--outline:hover { background: var(--nz-lav); color: var(--nz-violet-deep); }
.nz-btn--gold { background: var(--nz-gold-grad); color: #fff; box-shadow: 0 6px 16px rgba(190, 150, 70, .30); }
.nz-btn--gold:hover { filter: brightness(1.05); color: #fff; transform: translateY(-1px); }
.nz-btn--rose { background: linear-gradient(100deg, #c98fa5 0%, #d8a7c4 100%); color: #fff; box-shadow: 0 8px 20px rgba(196, 140, 170, .32); }
.nz-btn--rose:hover { filter: brightness(1.05); color: #fff; transform: translateY(-1px); }
.nz-btn--gold {
	background: linear-gradient(100deg, #e3c47f 0%, #cf9f52 100%); color: #fff;
	box-shadow: 0 8px 20px rgba(196, 154, 80, .3);
}
.nz-btn--gold:hover { filter: brightness(1.05); color: #fff; transform: translateY(-1px); }
.nz-btn--small { padding: 8px 18px; font-size: 12px; }
.nz-btn--block { width: 100%; }

/* ------------------------------------------------------- мобильное меню */
.nz-mobile-menu {
	position: fixed; top: 68px; left: 0; right: 0; z-index: 99;
	background: #fff; border-bottom: 1px solid var(--nz-line);
	max-height: 0; overflow: hidden; transition: max-height .4s ease;
	box-shadow: 0 18px 40px rgba(140, 120, 200, .12);
}
.nz-mobile-menu.is-open { max-height: 72vh; overflow-y: auto; }
.nz-mobile-menu ul { list-style: none; margin: 0; padding: 10px 20px 18px; }
.nz-mobile-menu li { border-bottom: 1px solid var(--nz-line); }
.nz-mobile-menu li:last-child { border-bottom: 0; }
.nz-mobile-menu a { display: block; padding: 12px 4px; font-size: 15px; color: #5f5f7a; }
.nz-mobile-menu .sub-menu { padding-left: 16px; }
.nz-mobile-menu .sub-menu a { font-size: 13.5px; color: var(--nz-ink-soft); padding: 8px 4px; }

/* ----------------------------------------------------------------- поиск */
.nz-search-overlay {
	position: fixed; inset: 0; z-index: 120;
	background: rgba(252, 251, 254, .96);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	display: flex; justify-content: center; align-items: flex-start;
	padding-top: 20vh;
	opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s;
}
.nz-search-overlay.is-open { opacity: 1; visibility: visible; }
.nz-search-overlay .container, .nz-search-overlay > .nz-container { position: relative; width: min(560px, 92%); padding: 0; }
.nz-search-overlay__close {
	position: absolute; top: -52px; right: 0; font-size: 22px; line-height: 1;
}
.nz-searchform { display: flex; align-items: center; gap: 8px; }
.nz-searchform__input {
	flex: 1; border: 1px solid var(--nz-line); border-radius: 999px;
	padding: 13px 22px; font-size: 14px; font-family: var(--nz-font-body);
	background: #fff; color: var(--nz-ink); outline: none;
	transition: border-color .25s, box-shadow .25s;
}
.nz-searchform__input:focus { border-color: var(--nz-violet); box-shadow: 0 0 0 4px rgba(155, 134, 210, .12); }
.nz-searchform__btn {
	flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--nz-gold-grad); color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 16px rgba(190, 150, 70, .30);
}

/* ----------------------------------------------------------------- баннер */
.nz-hero {
	position: relative; overflow: hidden; background: var(--nz-bg);
	height: clamp(250px, 27.5vw, 440px);
}
/* размытое продолжение картинки по бокам (на очень широких экранах) */
.nz-hero__fill {
	position: absolute; inset: -30px; z-index: 0;
	background: var(--nz-hero-img) center / cover no-repeat;
	filter: blur(26px) saturate(1.05);
}
/* встроенный баннер: по бокам не размытое лицо, а спокойные тона краёв картинки */
.nz-hero--edges .nz-hero__fill {
	inset: 0; filter: none;
	background:
		linear-gradient(180deg, #dcd0f5, #f2e5ec, #ecd0f4) left top / 50.5% 100% no-repeat,
		linear-gradient(180deg, #c4d4f7, #faeff4, #eedef3) right top / 50.5% 100% no-repeat;
}
/* сама картинка: всегда целиком по высоте, по бокам мягко растворяется */
.nz-hero__pic {
	position: absolute; top: 0; bottom: 0; left: 50%; z-index: 1;
	transform: translateX(-50%); aspect-ratio: 1019 / 280;
	background: var(--nz-hero-img) center / contain no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.nz-hero::before {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background: linear-gradient(180deg, rgba(252, 251, 254, 0) 93%, var(--nz-bg) 100%);
}
.nz-hero__in { position: absolute; inset: 0; z-index: 3; }
.nz-hero__text {
	position: absolute; left: 39%; width: 52%; top: 50%; transform: translateY(-46%);
	text-align: center;
}
.nz-hero__title {
	margin: 0; font-family: var(--nz-font-head); font-weight: 600;
	font-size: clamp(40px, 6.4vw, 96px); line-height: 1.02; letter-spacing: .005em;
	background: linear-gradient(180deg, #efd48c 0%, #cfa044 52%, #a97a2a 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: #c99b3f;
	filter: drop-shadow(0 2px 12px rgba(255, 255, 255, .95));
}
.nz-hero__title a { color: inherit; -webkit-text-fill-color: inherit; }
.nz-hero__tag {
	margin: 6px 0 0; font-family: var(--nz-font-head); font-weight: 500;
	font-size: clamp(17px, 3.1vw, 44px); line-height: 1.15; color: #c39a4c;
	text-shadow: 0 1px 14px rgba(255, 255, 255, .95);
}
.nz-hero__small {
	margin: clamp(10px, 1.6vw, 24px) auto 0; max-width: 24em; text-wrap: balance;
	font-size: clamp(12px, 1.35vw, 17px); line-height: 1.65; color: #6f6b8f;
	text-shadow: 0 1px 12px rgba(255, 255, 255, .95);
}

/* Надписи нарисованы в самой картинке: живой текст нужен только на телефонах */
@media (min-width: 641px) {
	.nz-hero--baked .nz-hero__text {
		position: absolute; left: auto; top: auto; transform: none; width: 1px; height: 1px; margin: -1px; padding: 0;
		overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
	}
}

/* Внутренние страницы: тот же баннер, но ниже и компактнее */
/* тот же баннер, что на главной, только ниже на ~12%: лишнее срезается сверху и снизу, лицо и надписи остаются */
.nz-hero--short { --h: clamp(250px, 27.5vw, 440px); height: calc(var(--h) * .88); }
.nz-hero--short .nz-hero__pic { top: calc(var(--h) * -.024); bottom: auto; height: var(--h); }
.nz-hero--short .nz-hero__text { transform: translateY(-50%); }
.nz-hero--short .nz-hero__title { font-size: clamp(30px, 4.1vw, 58px); }
.nz-hero--short .nz-hero__tag { font-size: clamp(14px, 1.95vw, 27px); margin-top: 2px; }
.nz-hero--short .nz-hero__small { margin-top: 8px; font-size: clamp(11px, 1vw, 13.5px); }

/* -------------------------------------------------------------- раскладка */
.nz-layout { display: flex; gap: 44px; align-items: flex-start; padding: 52px 0 72px; }
.nz-main { flex: 1 1 auto; min-width: 0; position: relative; }
.nz-layout--full .nz-main { max-width: 840px; margin: 0 auto; }
.nz-sidebar { flex: 0 0 300px; width: 300px; display: flex; flex-direction: column; gap: 24px; }

/* ----------------------------------------------------------- приветствие */
.nz-eyebrow {
	display: flex; align-items: center; gap: 10px; margin: 0;
	font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
	color: var(--nz-violet);
}
.nz-eyebrow svg { flex: none; opacity: .95; }
.nz-eyebrow__line { width: 56px; height: 1px; background: linear-gradient(90deg, #d8cdef, rgba(216, 205, 239, 0)); }

.nz-welcome {
	display: grid; grid-template-columns: 1fr 1fr; gap: 38px;
	align-items: stretch; margin-bottom: 56px;
}
.nz-welcome__title { font-size: clamp(29px, 3.3vw, 39px); font-weight: 500; line-height: 1.12; letter-spacing: -.003em; margin: 16px 0 16px; max-width: 15em; }
.nz-welcome__body p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.92; color: #5b5b73; }
.nz-welcome__body { margin-bottom: 18px; }
.nz-welcome__quote {
	background: linear-gradient(135deg, #fdf0f6 0%, #f1ecfb 55%, #eaf2fc 100%);
	border-radius: 20px; padding: 36px 34px;
	display: flex; flex-direction: column; justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6);
}
.nz-welcome__quote .nz-rotator__text {
	font-family: var(--nz-font-head); font-style: italic; font-size: 17.5px;
	line-height: 1.62; color: #8b7fb8; margin: 0;
}
.nz-welcome__quote-caption {
	margin: 0; text-align: center;
	font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: #a99ad6;
}

/* -------------------------------------------------------------- ротатор */
.nz-rotator__slide { display: none; margin: 0; }
.nz-rotator__slide.is-active { display: block; animation: nzFade .9s ease; }
@keyframes nzFade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.nz-rotator__author {
	display: block; margin-top: 12px; font-style: normal;
	font-size: 12px; font-weight: 600; color: var(--nz-gold-deep);
}
.nz-rotator__author a { color: inherit; }
.nz-rotator__author a:hover { color: var(--nz-gold); }
.nz-rotator__dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.nz-rotator__dot {
	width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
	background: #d9d2ea; cursor: pointer; transition: all .3s ease;
}
.nz-rotator__dot.is-active { background: var(--nz-violet); transform: scale(1.3); }

/* ----------------------------------------------------------------- секции */
.nz-dove { display: inline-block; vertical-align: middle; flex: none; filter: drop-shadow(0 2px 5px rgba(201, 164, 92, .35)); }

/* золотой разделитель */
.nz-gdiv { display: flex; align-items: center; gap: 12px; margin: 18px auto; max-width: 240px; }
.nz-gdiv--wide { max-width: 100%; margin: 22px 0 16px; }
.nz-gdiv i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 164, 92, 0), #d9b76a); }
.nz-gdiv i:last-child { background: linear-gradient(270deg, rgba(201, 164, 92, 0), #d9b76a); }
.nz-gdiv svg { flex: none; filter: drop-shadow(0 0 4px rgba(226, 190, 110, .55)); }
.nz-section { margin: 0 0 56px; }
.nz-section__head {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin-bottom: 26px; padding-bottom: 14px;
}
.nz-section__head::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: linear-gradient(90deg, #d9b76a 0%, rgba(217, 183, 106, .35) 38%, rgba(217, 183, 106, 0) 100%);
}
.nz-section__title { display: flex; align-items: center; gap: 11px; font-size: clamp(24px, 2.6vw, 31px); }
.nz-section__title svg { flex: none; }
.nz-section__all { font-size: 12.5px; color: var(--nz-violet); white-space: nowrap; }
.nz-section__all:hover { color: var(--nz-violet-deep); }

/* Одно крупное объявление после приветствия */
.nz-announcement { margin-bottom: 42px; }

/* Та же карточка в боковой колонке */
.nz-side-card--announcement .nz-side-card__title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.nz-side-card--announcement .nz-side-card__title .nz-dove { width: 25px; height: auto; }
.nz-announcement-widget__rule { height: 1px; margin: 0 0 15px; background: linear-gradient(90deg, #d9b76a, rgba(217, 183, 106, .12)); }

@media (orientation: landscape) and (max-height: 520px) and (max-width: 1024px) {
	.nz-hero { height: clamp(170px, 24vw, 205px); }
	.nz-layout { gap: 24px; padding: 26px 0 38px; }
	.nz-section { margin-bottom: 38px; }
	.nz-section__head { margin-bottom: 17px; padding-bottom: 10px; }
}

.nz-grid { display: grid; gap: 22px; }
.nz-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nz-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.nz-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------------------------------------------------- карточки */
.nz-card {
	display: flex; flex-direction: column;
	background: var(--nz-card); border: 1px solid #f0edf6; border-radius: 14px;
	overflow: hidden; box-shadow: 0 4px 16px rgba(150, 130, 200, .06);
	transition: transform .35s ease, box-shadow .35s ease;
}
.nz-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(150, 130, 200, .14); }
.nz-card__media { display: block; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #f6f3fb; }
.nz-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.nz-card:hover .nz-card__media img { transform: scale(1.05); }
.nz-card__ph {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #f6f1fc, #eef4fb);
}
.nz-card__ph svg { opacity: .45; }
.nz-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 16px 18px; flex: 1; }

/* Курсы: заголовок всегда 2 строки высотой (карточки в ряду выравниваются), цена и кнопка прижаты книзу */
.nz-card--courses .nz-card__body { gap: 4px; }
.nz-card--courses .nz-card__title {
	font-size: 17.5px; line-height: 1.3; font-weight: 700;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	min-height: calc(17.5px * 1.3 * 3);
}
.nz-card--courses .nz-card__title a { color: color-mix(in srgb, var(--nz-accent, #6b5aa8) 78%, #211d3c); }
.nz-card--courses .nz-card__title a:hover { filter: brightness(.85); text-decoration: underline; text-decoration-color: rgba(0,0,0,.15); text-underline-offset: 3px; }
.nz-card__type { font-size: 11.5px; color: #9a9aad; }
.nz-card--courses .nz-card__excerpt { margin-top: 2px; }
.nz-card__price {
	margin-top: 8px; font-family: var(--nz-font-head); font-size: 18px; font-weight: 600;
	color: color-mix(in srgb, var(--nz-accent, #6b5aa8) 82%, #1f1b3a);
}
.nz-card__more { margin-top: auto; }
.nz-card--courses .nz-card__body > .nz-card__more { margin-top: 14px; }

.nz-card--articles .nz-card__cat {
	font-size: 11px; font-weight: 700; letter-spacing: .05em;
	color: var(--nz-accent, var(--nz-violet));
}
.nz-card--articles .nz-card__title { font-family: var(--nz-font-body); font-size: 14.5px; font-weight: 700; line-height: 1.45; color: #4c4c66; }
.nz-card--articles .nz-card__title a { color: inherit; }
.nz-card--articles .nz-card__title a:hover { color: var(--nz-accent, var(--nz-violet-deep)); text-decoration: underline; text-decoration-color: rgba(0,0,0,.12); text-underline-offset: 3px; }
.nz-card__excerpt {
	margin: 0; font-size: 12.5px; line-height: 1.62; color: #8a8a9e;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.nz-card__foot {
	margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between;
	padding-top: 10px; border-top: 1px solid #f4f2f8;
}
.nz-card__date { font-size: 11px; color: #a5a5b5; }
.nz-card__arrow { color: var(--nz-violet); transition: transform .3s ease; }
.nz-card:hover .nz-card__arrow { transform: translateX(4px); }

/* ------------------------------------------------------- полоса-цитата */
.nz-banner {
	background: linear-gradient(90deg, #f5eefb, #efe9fb 50%, #f2eef9);
	border-radius: 18px; padding: 28px 36px; text-align: center;
}
.nz-banner p {
	margin: 0 0 8px; font-family: var(--nz-font-head); font-style: italic;
	font-size: 17.5px; line-height: 1.6; color: #8b7fb8;
}
.nz-banner .nz-gdiv { max-width: 220px; margin: 6px auto 0; }

/* ---------------------------------------------------------------- сайдбар */
.nz-side-card {
	background: var(--nz-card); border: 1px solid #efeaf6; border-radius: var(--nz-radius);
	padding: 24px 22px; box-shadow: var(--nz-shadow);
}
.nz-side-card__title { font-size: 20px; margin: 0 0 10px; }
.nz-side-card ul { list-style: none; margin: 0; padding: 0; }
.nz-side-card ul li { padding: 7px 0; border-bottom: 1px dashed #f0edf6; font-size: 13.5px; }
.nz-side-card ul li:last-child { border-bottom: 0; }
.nz-side-card ul li a { color: #5d5d7a; transition: color .2s ease; }
.nz-side-card ul li a:hover { color: #4b3f96; text-decoration: underline; text-decoration-color: rgba(111, 95, 176, .4); text-underline-offset: 3px; }
.nz-side-card .children { margin-left: 12px; }
.nz-side-card select { max-width: 100%; padding: 8px 10px; border: 1px solid var(--nz-line); border-radius: 10px; background: #fff; color: var(--nz-ink); }
.nz-side-card .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.nz-side-card .tagcloud a {
	padding: 5px 12px !important; border-radius: 999px; background: var(--nz-lav);
	color: #8f7ac9 !important; font-size: 11.5px !important;
}

/* «Золотое место» */
.nz-side-card--golden {
	border-color: rgba(201, 164, 92, .38);
	box-shadow: 0 10px 30px rgba(190, 150, 70, .10);
	text-align: center;
}
.nz-golden__icon { display: flex; justify-content: center; margin-bottom: 4px; }
.nz-angel { display: block; filter: drop-shadow(0 2px 4px rgba(201, 164, 92, .25)); }
.nz-side-card--golden .nz-side-card__title { margin: 4px 0 4px; }
.nz-golden__subtitle { margin: 0 0 14px; font-size: 12px; line-height: 1.55; color: #9a9aad; }
.nz-golden__media { margin: 0 0 8px; }
.nz-golden__media img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 12px; display: block; }

/* «Одна мысль на визит» (Метатрон и «Послание для вас»): все элементы в одной ячейке — высота блока постоянна */
.nz-pick { display: grid; opacity: 0; animation: nz-pick-fallback .01s 1.6s forwards; }
.nz-pick.is-ready { opacity: 1; animation: none; transition: opacity .6s ease; }
@keyframes nz-pick-fallback { to { opacity: 1; } }
.nz-pick__item { grid-area: 1 / 1; align-self: center; margin: 0; visibility: hidden; opacity: 0; transition: opacity .5s ease; }
.nz-pick__item.is-active { visibility: visible; opacity: 1; }
.nz-pick--message .nz-pick__item { text-align: center; }
.nz-pick--message .nz-rotator__text { margin: 0; font-family: var(--nz-font-head); font-style: italic; color: #75759a; }
.nz-pick__link {
	color: inherit; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 10; overflow: hidden;
	transition: color .3s ease;
}
.nz-pick__link:hover { color: #8b78c4; }
.nz-pick--message .nz-pick__item--s .nz-rotator__text { font-size: 20px; line-height: 1.6; }
.nz-pick--message .nz-pick__item--m .nz-rotator__text { font-size: 18.5px; line-height: 1.58; }
.nz-pick--message .nz-pick__item--l .nz-rotator__text { font-size: 16.5px; line-height: 1.56; }
.nz-pick--message .nz-pick__item--xl .nz-rotator__text { font-size: 15px; line-height: 1.54; }
.nz-pick--message .nz-rotator__author { margin-top: 12px; }
.nz-pick--message .nz-rotator__text { text-decoration: none; }

/* Подписка */
.nz-side-card--subscribe {
	position: relative; overflow: hidden; border: 0; text-align: center; padding: 30px 24px 22px;
	background:
		radial-gradient(90% 60% at 100% 0%, rgba(255, 238, 200, .75) 0, rgba(255, 238, 200, 0) 62%),
		radial-gradient(80% 60% at 0% 100%, rgba(255, 216, 234, .70) 0, rgba(255, 216, 234, 0) 66%),
		linear-gradient(165deg, #f8eefb 0%, #efe6fb 48%, #e9e6fb 100%);
	box-shadow: 0 14px 34px rgba(160, 130, 210, .16), inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.nz-subscribe { position: relative; }
.nz-subscribe__spark { position: absolute; top: -12px; right: -4px; opacity: .9; }
.nz-subscribe__title {
	margin: 0 0 8px; font-family: var(--nz-font-script-fancy); font-weight: 400;
	font-size: 29px; line-height: 1.15; letter-spacing: .01em;
	background: linear-gradient(100deg, #8f6fc4, #b078b4 70%, #c98fa5);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #8f6fc4;
}
.nz-subscribe__text { margin: 0 0 18px; font-size: 12.5px; line-height: 1.6; color: #77749a; }
.nz-subscribe__form { display: flex; flex-direction: column; gap: 12px; position: relative; }
.nz-subscribe__input {
	width: 100%; border: 1px solid rgba(212, 198, 236, .9); border-radius: 999px; background: rgba(255, 255, 255, .92);
	padding: 12px 20px; font-size: 13px; font-family: var(--nz-font-body); color: var(--nz-ink);
	outline: none; transition: border-color .25s, box-shadow .25s;
}
.nz-subscribe__input::placeholder { color: #a9a6c2; }
.nz-subscribe__input:focus { border-color: #b59be0; box-shadow: 0 0 0 4px rgba(155, 134, 210, .16); }
.nz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.nz-subscribe__ok { margin: 10px 0 0; font-size: 12.5px; color: #5f957a; }
.nz-subscribe__note { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: #9a97b5; }
.nz-subscribe__envelope { display: block; margin: 16px auto 0; opacity: .85; }

/* Соцсети */
.nz-side-card--social { text-align: center; box-shadow: none; padding: 22px 20px 20px; }
.nz-social-block__label { margin: 0 0 14px; font-size: 14px; letter-spacing: .04em; color: #7a7a96; }
.nz-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 224px; margin: 0 auto; }
.nz-socials__item {
	width: 46px; height: 46px; border-radius: 50%;
	background: linear-gradient(145deg, #f3eefb, #e9e2f7); color: #8a78c2;
	box-shadow: 0 4px 12px rgba(150, 130, 200, .14), inset 0 0 0 1px rgba(255, 255, 255, .8);
	display: inline-flex; align-items: center; justify-content: center;
	transition: all .3s ease;
}
.nz-socials__item:hover { background: var(--nz-gold-grad); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 18px rgba(190, 150, 70, .32); }
.nz-subscribe__love { margin: 18px 0 0; font-family: var(--nz-font-script-fancy); font-size: 22px; line-height: 1.2; color: #9a82cc; }
.nz-subscribe__heart { color: #d88bb0; font-family: var(--nz-font-body); font-size: 15px; }

/* Книги автора */
.nz-books .nz-side-card__title { margin-bottom: 16px; }
.nz-book { display: flex; gap: 16px; align-items: flex-start; }
.nz-book + .nz-book { margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0edf6; }
.nz-book__cover { flex: 0 0 auto; line-height: 0; }
.nz-book__cover a { display: block; }
.nz-book__cover img {
	display: block; width: 100%; height: auto; border-radius: 2px 5px 5px 2px;
	box-shadow: 0 10px 22px rgba(70, 70, 120, .2), 0 1px 3px rgba(70, 70, 120, .18);
	transition: transform .4s ease, box-shadow .4s ease;
}
.nz-book__cover a:hover img { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(70, 70, 120, .24), 0 1px 3px rgba(70, 70, 120, .18); }
.nz-book--main .nz-book__cover { width: 108px; }
.nz-book--second .nz-book__cover { width: 72px; }
.nz-book__body { min-width: 0; }
.nz-book__title { font-size: 26px; font-weight: 500; line-height: 1.08; color: #5e5e86; margin: 2px 0 0; }
.nz-book--second .nz-book__title { font-size: 20px; }
.nz-book__tag { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: #8f7ac9; }
.nz-book__text { margin: 8px 0 0; font-size: 12.5px; line-height: 1.6; color: #8a8a9e; }
.nz-book--second .nz-book__text { font-size: 12px; }
.nz-book__link { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--nz-violet-deep); }
.nz-book__link span { display: inline-block; transition: transform .3s ease; }
.nz-book__link:hover span { transform: translateX(3px); }

/* Свежие записи с картинками */
.nz-recent__list { list-style: none; margin: 0; padding: 0; }
.nz-side-card .nz-recent__list li { padding: 0; border: 0; margin: 0 0 14px; font-size: inherit; }
.nz-recent__item { display: flex; gap: 14px; align-items: center; color: inherit; }
.nz-recent__thumb {
	flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
	background: linear-gradient(135deg, #f6f1fc, #eef4fb);
	display: flex; align-items: center; justify-content: center;
}
.nz-recent__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nz-recent__thumb svg { opacity: .5; }
.nz-recent__item:hover .nz-recent__thumb img { transform: scale(1.06); }
.nz-recent__meta { min-width: 0; }
.nz-recent__title { display: block; font-size: 13.5px; font-weight: 500; line-height: 1.4; color: #4c4c66; transition: color .25s ease; }
.nz-recent__item:hover .nz-recent__title { color: var(--nz-violet-deep); }
.nz-recent__date { display: block; margin-top: 3px; font-size: 11.5px; color: #a5a5b8; }
.nz-recent__all { display: block; margin-top: 4px; text-align: right; font-size: 12.5px; color: var(--nz-violet); }
.nz-recent__all:hover { color: var(--nz-violet-deep); }

/* Тёплая фраза */
.nz-side-card--lavender {
	background: linear-gradient(160deg, #f6f0fb, #efe8fa);
	border-color: transparent; text-align: center;
}
.nz-quotecard p {
	margin: 0 0 6px; font-family: var(--nz-font-head); font-style: italic;
	font-size: 16px; line-height: 1.6; color: #8b7fb8;
}
.nz-quotecard .nz-gdiv { margin: 4px auto 0; max-width: 150px; }

/* ------------------------------------------------------- внутренняя стр. */
.nz-page-head { margin: 0 0 28px; }
.nz-page-title { font-size: clamp(26px, 3.4vw, 34px); }
.nz-page-desc { margin-top: 10px; font-size: 14px; color: var(--nz-ink-soft); }

.nz-post { max-width: 780px; margin: 0 auto; }
.nz-post__cats { margin: 0 0 6px; }
.nz-post__cats a {
	font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--nz-accent, var(--nz-violet)); margin-right: 12px;
}
.nz-post__title { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 6px 0 10px; }
.nz-post__meta { margin: 0; font-size: 12px; color: #a5a5b5; }
.nz-post__meta a { color: inherit; }
.nz-post__meta a:hover { color: var(--nz-violet-deep); }
.nz-post__meta-sep { margin: 0 6px; }
.nz-post__cover { margin: 24px auto 28px; max-width: 680px; }
.nz-post__cover img { width: 100%; height: auto; border-radius: 16px; display: block; box-shadow: 0 14px 34px rgba(140, 120, 200, .14); }

.nz-post__content {
	font-family: var(--nz-article-font, var(--nz-font-body));
	font-size: var(--nz-article-size, 16.5px); line-height: var(--nz-article-lh, 1.85);
	color: #3b3b52; overflow-wrap: break-word; text-wrap: pretty;
}
.nz-post__content strong, .nz-post__content b { font-weight: 600; color: #2f2b4a; }
.nz-post__content::after { content: ""; display: table; clear: both; }
.nz-post__content p { margin: 0 0 1.2em; }
.nz-post__content h2, .nz-post__content h3, .nz-post__content h4 { margin: 28px 0 12px; }
.nz-post__content h2 { font-size: 27px; }
.nz-post__content h3 { font-size: 23px; }
.nz-post__content h4 { font-size: 19px; }
.nz-post__content img { max-width: 100%; height: auto; border-radius: 12px; display: block; margin: 0 auto 18px; }
.nz-post__content img.alignleft { float: left; margin: 4px 22px 14px 0; }
.nz-post__content img.alignright { float: right; margin: 4px 0 14px 22px; }
.nz-post__content .wp-caption.alignleft { float: left; margin: 4px 22px 14px 0; }
.nz-post__content .wp-caption.alignright { float: right; margin: 4px 0 14px 22px; }
.nz-post__content::after { content: ""; display: block; clear: both; }
.nz-post__content figure, .nz-post__content .wp-caption { max-width: 100%; }
.nz-post__content iframe, .nz-post__content video { max-width: 100%; }
.nz-post__content ul, .nz-post__content ol { margin: 0 0 16px; padding-left: 24px; }
.nz-post__content li { margin-bottom: 6px; }
.nz-post__content blockquote {
	margin: 22px 0; padding: 16px 24px;
	border-left: 3px solid var(--nz-gold); border-radius: 0 12px 12px 0;
	background: #fbf8f1; font-family: var(--nz-font-head); font-style: italic;
	font-size: 17px; line-height: 1.65; color: #7a6f52;
}
.nz-post__content a { text-decoration: underline; text-decoration-color: rgba(111, 95, 176, .35); text-underline-offset: 3px; }
.nz-post__content table { max-width: 100%; border-collapse: collapse; }
.nz-page-links { margin: 20px 0; font-size: 13px; color: var(--nz-ink-soft); }

.nz-post__tags { margin: 28px 0 0; }
.nz-post__tags a {
	display: inline-block; margin: 0 6px 6px 0; padding: 6px 14px;
	border-radius: 999px; background: var(--nz-lav); color: #8f7ac9; font-size: 11.5px;
}
.nz-post__tags a:hover { background: var(--nz-lav-2); color: var(--nz-violet-deep); }

.nz-post__nav {
	display: flex; justify-content: space-between; gap: 18px;
	margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--nz-line);
	font-size: 13px;
}
.nz-post__nav-item { color: #7a7a92; flex: 1; }
.nz-post__nav-item:hover { color: var(--nz-violet-deep); }
.nz-post__nav-item--next { text-align: right; }
.nz-post__nav-dir { color: var(--nz-violet); }

.nz-related { margin: 48px 0 0; }
.nz-related .nz-section__title { margin-bottom: 20px; }

/* ----------------------------------------------------------- комментарии */
.nz-comments { max-width: 780px; margin: 48px auto 0; }
.nz-comments__title { font-size: 25px; margin: 0 0 20px; }
.nz-comment-list { list-style: none; margin: 0; padding: 0; }
.nz-comment-list .children { list-style: none; margin: 14px 0 0 42px; padding: 0; }
.nz-comment-list li.comment {
	background: #fff; border: 1px solid #f0edf6; border-radius: 14px;
	padding: 16px 20px; margin-bottom: 14px;
}
.nz-comment-list .comment-body { display: block; }
.nz-comment-list .comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.nz-comment-list .fn { font-size: 14px; font-weight: 700; color: var(--nz-violet-deep); font-style: normal; }
.nz-comment-list .fn a { color: inherit; }
.nz-comment-list .comment-metadata { font-size: 11.5px; color: #a5a5b5; margin-top: 2px; }
.nz-comment-list .comment-metadata a { color: inherit; }
.nz-comment-list .comment-content { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--nz-ink); }
.nz-comment-list .comment-content p { margin: 0 0 8px; }
.nz-comment-list .reply { margin-top: 10px; }
.nz-comment-list .reply a { font-size: 12px; color: var(--nz-violet); }
.nz-comments__closed { font-size: 13px; color: #a5a5b5; }

.nz-comment-form { margin-top: 26px; }
.nz-comment-form .comment-reply-title { font-size: 22px; margin: 0 0 16px; font-family: var(--nz-font-head); color: var(--nz-heading); }
.nz-comment-form p { margin: 0 0 14px; }
.nz-comment-form label { display: block; font-size: 12.5px; color: #7a7a92; margin-bottom: 6px; }
.nz-comment-form input[type="text"],
.nz-comment-form input[type="email"],
.nz-comment-form input[type="url"],
.nz-comment-form textarea {
	width: 100%; border: 1px solid #e7e2f2; border-radius: 10px; background: #fff;
	padding: 10px 14px; font-size: 14px; font-family: var(--nz-font-body); color: var(--nz-ink);
	outline: none; transition: border-color .25s, box-shadow .25s;
}
.nz-comment-form input:focus, .nz-comment-form textarea:focus {
	border-color: var(--nz-violet); box-shadow: 0 0 0 4px rgba(155, 134, 210, .10);
}
.nz-comment-form .comment-form-cookies label { display: inline; margin-left: 6px; }
.nz-comment-form .form-submit { margin: 0; }

/* ---------------------------------------------------------- пагинация */
.pagination, .comments-navigation, .posts-navigation { margin: 38px 0 0; }
.pagination .nav-links, .comments-navigation .nav-links, .posts-navigation .nav-links {
	display: flex; flex-flow: row wrap; justify-content: center; align-items: center; gap: 8px;
}
.pagination .page-numbers, .comments-navigation .nav-links a, .posts-navigation .nav-links a {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 12px; border-radius: 999px;
	border: 1px solid var(--nz-line); background: #fff; color: #7a7a92;
	font-size: 13px; line-height: 1; transition: all .25s ease;
}
.pagination a.page-numbers:hover { border-color: var(--nz-violet); color: var(--nz-violet-deep); background: var(--nz-lav); }
.pagination .page-numbers.current { background: var(--nz-gold-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(190, 150, 70, .28); }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; min-width: 0; padding: 0 2px; }
.pagination .page-numbers.prev, .pagination .page-numbers.next { font-size: 16px; }

/* --------------------------------------------------------------- пустота */
.nz-empty { text-align: center; padding: 60px 20px; color: var(--nz-ink-soft); }
.nz-empty .nz-searchform { max-width: 420px; margin: 20px auto 0; }
.nz-empty--404 svg { opacity: .7; margin-bottom: 12px; }

/* ---------------------------------------------------------------- подвал */
.nz-footer {
	position: relative;
	padding: 52px 0 34px;
	background:
		radial-gradient(60% 90% at 12% 110%, rgba(255, 218, 236, .55) 0, rgba(255, 218, 236, 0) 70%),
		radial-gradient(55% 90% at 90% 110%, rgba(214, 224, 255, .55) 0, rgba(214, 224, 255, 0) 70%),
		linear-gradient(180deg, #fcfbfe 0%, #f6f2fc 100%);
}
.nz-footer__crest {
	position: absolute; top: -20px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 16px;
	padding: 0 20px; pointer-events: none;
}
.nz-footer__crest i { flex: 1; max-width: 340px; height: 1px; background: linear-gradient(90deg, rgba(217, 183, 106, 0), #d9b76a); }
.nz-footer__crest i:last-child { background: linear-gradient(270deg, rgba(217, 183, 106, 0), #d9b76a); }
.nz-footer__crest .nz-dove { background: none; }
.nz-footer__widgets {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 22px; padding-bottom: 26px; margin-bottom: 8px; border-bottom: 1px solid var(--nz-line);
}
.nz-footer__in { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.nz-footer__brand { display: flex; align-items: center; gap: 10px; }
.nz-footer__logo { height: calc(var(--nz-logo-h, 38px) - 4px); width: auto; max-width: 80px; object-fit: contain; }
.nz-footer__names { display: flex; flex-direction: column; line-height: 1.2; }
.nz-footer__name { font-family: var(--nz-font-head); font-size: 18px; font-weight: 600; color: var(--nz-gold-deep); }
.nz-footer__tag { font-size: 10.5px; color: #a5a5b5; }
.nz-footer__nav ul { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nz-footer__nav a { font-size: 12px; color: #8a8a9e; }
.nz-footer__nav a:hover { color: var(--nz-violet-deep); }
.nz-footer__copy { font-size: 11.5px; color: #a5a5b5; }

/* ------------------------------------------------------------- появление */
.nz-fade { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.nz-fade--in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.nz-fade { opacity: 1; transform: none; }
}

/* ============================================================= адаптив */
@media (max-width: 1024px) {
	.nz-layout { flex-direction: column; align-items: stretch; gap: 40px; }
	.nz-sidebar {
		width: 100%; flex: auto;
		display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
		gap: 22px; align-items: start;
	}
	.nz-nav { display: none; }
	.nz-burger { display: inline-flex; }
	.nz-topbar__actions { margin-left: auto; }
	.nz-grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
	.nz-hero__text { left: 42%; width: 55%; }
}

@media (max-width: 820px) {
	.nz-grid--cols-4, .nz-grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
	.nz-welcome { grid-template-columns: 1fr; gap: 28px; }
	.nz-metatron { aspect-ratio: auto; min-height: 0; max-height: none; height: clamp(320px, 46vw, 420px); }
	.nz-post__nav { flex-direction: column; gap: 10px; }
	.nz-post__nav-item--next { text-align: left; }
}

@media (max-width: 640px) {
	.nz-container { padding: 0 16px; }
	.nz-topbar__in { min-height: 58px; gap: 12px; }
	.nz-mobile-menu { top: 58px; }
	.nz-brand__name { font-size: 19px; }
	.nz-brand__tag { display: block; font-size: 9px; letter-spacing: .06em; white-space: nowrap; }
	.nz-brand__logo, body:not(.home) .nz-brand__logo { height: calc(var(--nz-logo-hm, 32px) - 2px); max-width: 64px; }
	.nz-brand { gap: 9px; }
	.nz-footer__logo { height: calc(var(--nz-logo-hm, 32px) - 2px); max-width: 60px; }
	.nz-topbar__actions .nz-btn--outline { display: none; }
	.nz-hero { height: auto; min-height: 380px; }
	.nz-hero__fill { display: none; }
	.nz-hero__pic { inset: 0; left: 0; transform: none; width: 100%; aspect-ratio: auto; background: var(--nz-hero-img-m) center 12% / cover no-repeat; -webkit-mask-image: none; mask-image: none; }
	.nz-hero::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .86) 74%, var(--nz-bg) 100%); }
	.nz-hero__in { position: relative; inset: auto; min-height: 380px; display: flex; align-items: flex-end; }
	.nz-hero__text { position: static; transform: none; left: auto; width: 100%; padding: 0 8px 24px; }
	.nz-hero__title { font-size: 46px; }
	.nz-hero__tag { font-size: 19px; }
	.nz-hero__small { max-width: 270px; font-size: 12.5px; }
	.nz-hero--short { height: auto; min-height: 0; }
	.nz-hero--short .nz-hero__pic { top: 0; bottom: 0; height: auto; }
	.nz-hero--short .nz-hero__in { min-height: 210px; }
	.nz-hero--short .nz-hero__text { transform: none; padding-bottom: 18px; }
	.nz-hero--short .nz-hero__title { font-size: 34px; }
	.nz-hero--short .nz-hero__tag { font-size: 16px; }
	.nz-hero--short .nz-hero__small { display: none; }
	.nz-layout { padding: 34px 0 52px; }
	.nz-grid, .nz-grid--cols-4, .nz-grid--cols-3, .nz-grid--cols-2 { grid-template-columns: 1fr; }
	.nz-sidebar { grid-template-columns: 1fr; }
	.nz-welcome__quote { padding: 28px 22px; }
	.nz-section { margin-bottom: 42px; }
	.nz-footer__in { flex-direction: column; align-items: flex-start; gap: 16px; }
	.nz-comment-list .children { margin-left: 16px; }
	.nz-banner { padding: 22px 20px; }
}


/* ------------------------------------------------------------------ слайдер */
.nz-slider { position: relative; }
.nz-grid--slider {
	display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
	scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain;
	padding: 8px 2px 20px; margin: -8px -2px -20px;
}
.nz-grid--slider::-webkit-scrollbar { display: none; }
.nz-grid--slider > .nz-card {
	--c: var(--nz-cols, 4);
	flex: 0 0 calc((100% - (var(--c) - 1) * 22px) / var(--c));
	scroll-snap-align: start;
}
.nz-slider__btn {
	position: absolute; top: 34%; z-index: 3; width: 40px; height: 40px; padding: 0;
	display: none; align-items: center; justify-content: center;
	border: 1px solid #e7e0f3; border-radius: 50%; background: rgba(255, 255, 255, .95); color: #7a68b8;
	box-shadow: 0 6px 16px rgba(140, 120, 200, .16); cursor: pointer;
	transition: opacity .3s ease, color .3s ease, border-color .3s ease;
}
.nz-slider__btn--prev { left: -14px; }
.nz-slider__btn--next { right: -14px; }
.nz-slider.is-scrollable .nz-slider__btn { display: inline-flex; }
.nz-slider__btn:hover { color: var(--nz-violet-deep); border-color: #cfc2ec; }
.nz-slider__btn:disabled { opacity: .35; cursor: default; }

@media (max-width: 1024px) { .nz-grid--slider > .nz-card { --c: min(var(--nz-cols, 4), 3); } }
@media (max-width: 900px) { .nz-grid--slider > .nz-card { --c: min(var(--nz-cols, 4), 2); } }
@media (max-width: 640px) {
	.nz-grid--slider > .nz-card { --c: 1.12; }
	.nz-slider__btn--prev { left: 4px; }
	.nz-slider__btn--next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.nz-grid--slider { scroll-behavior: auto; }
	.nz-pick.is-ready, .nz-pick__item { transition: none; }
}

.nz-grid--slider { cursor: grab; }
.nz-grid--slider.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.nz-grid--slider.is-dragging a { pointer-events: none; }


/* Свежие комментарии */
.nz-rc__list { list-style: none; margin: 0; padding: 0; }
.nz-side-card .nz-rc__list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; margin: 0; font-size: inherit; border-top: 1px solid #f0edf6; border-bottom: 0; }
.nz-side-card .nz-rc__list li:first-child { padding-top: 2px; border-top: 0; }
.nz-side-card .nz-rc__list li:last-child { padding-bottom: 0; }
.nz-rc__avatar {
	flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(145deg, #f1eafb, #e4dcf5); color: #8a76c4;
	font-family: var(--nz-font-head); font-size: 18px; font-weight: 600; line-height: 1;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.nz-rc__body { min-width: 0; }
.nz-rc__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; }
.nz-rc__name { font-size: 13.5px; font-weight: 600; color: #4c4c66; }
.nz-rc__date { font-size: 11px; color: #aaaabd; white-space: nowrap; }
.nz-rc__text { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: #7b7b92; transition: color .25s ease; }
.nz-rc__text:hover { color: var(--nz-violet-deep); }
.nz-rc__post { display: block; margin-top: 5px; font-size: 12px; line-height: 1.4; color: var(--nz-violet); transition: color .25s ease; }
.nz-rc__post::before { content: "\2192\00a0"; color: #c9bde8; }
.nz-rc__post:hover { color: var(--nz-violet-deep); }
.nz-side-card .nz-rc__post { color: var(--nz-violet); }
.nz-side-card .nz-rc__post:hover { color: var(--nz-violet-deep); }
.nz-side-card .nz-rc__text { color: #7b7b92; }
.nz-side-card .nz-rc__text:hover { color: var(--nz-violet-deep); }


/* ============================================================ этап 3: сцены и свет */
.nz-gdiv--narrow { max-width: 170px; margin: 18px auto; }

/* Заголовки блоков главной и «Похожих записей» — авторским письмом, спокойнее по размеру */
.nz-section .nz-section__title span, .nz-related .nz-section__title span {
	font-family: var(--nz-font-script-fancy); font-weight: 400;
	font-size: clamp(23px, 2.35vw, 28px); line-height: 1.35; letter-spacing: 0; padding: 0 2px 3px;
	background: linear-gradient(100deg, #7d62b8, #a774ae 70%, #b98aa6);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #8a6fc0;
}

/* Мелкие золотистые искры (как в шапке): ядро + мягкий ореол */
.nz-sp {
	position: absolute; left: var(--x); top: var(--y); width: var(--s, 3px); height: var(--s, 3px);
	transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; opacity: .8;
	background: radial-gradient(circle, #fffdf0 0, #f4dc95 40%, rgba(240, 205, 120, .5) 65%, rgba(240, 205, 120, 0) 100%);
	box-shadow: 0 0 calc(var(--s, 3px) * 2.2) rgba(240, 205, 120, .5);
}
.nz-sp--g {
	border-radius: 0; box-shadow: none; filter: drop-shadow(0 0 3px rgba(240, 205, 120, .75));
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23edc96b' d='M12 0c.8 7.5 4.5 11.2 12 12-7.5.8-11.2 4.5-12 12-.8-7.5-4.5-11.2-12-12C7.5 11.2 11.2 7.5 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nz-sp--t { animation: nz-fade var(--du, 8s) ease-in-out var(--dl, 0s) infinite; }
@keyframes nz-fade { 0%, 100% { opacity: .22; } 50% { opacity: .95; } }
.nz-tw { animation: nz-fade 8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .nz-sp--t, .nz-tw { animation: none; opacity: .6; } }

.nz-section { position: relative; }
.nz-dust { position: absolute; left: 0; right: 0; top: -58px; height: 130px; pointer-events: none; z-index: 2; }
.nz-trail { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.nz-main > *:not(.nz-trail) { position: relative; z-index: 1; }
.nz-welcome { position: relative; align-items: stretch; }
.nz-welcome__text { align-self: center; }

/* ---------- МЕТАТРОН: готовая световая композиция (картинка + текст поверх) ---------- */
.nz-metatron {
	position: relative; isolation: isolate; overflow: hidden;
	display: flex; align-items: center; justify-content: center; text-align: center;
	aspect-ratio: 4 / 5; min-height: 380px; max-height: 560px; align-self: start; border-radius: 16px;
	background: var(--nz-met-img) center / cover no-repeat, #f8f4ee;
	box-shadow: 0 30px 56px -42px rgba(120, 96, 60, .28);
}
.nz-metatron__in { position: relative; z-index: 2; width: 100%; padding: clamp(30px, 4.2vw, 46px) clamp(26px, 4vw, 44px); }
.nz-metatron__text {
	font-family: var(--nz-font-head); font-style: italic; font-weight: 500;
	font-size: clamp(17px, 1.7vw, 20px); line-height: 1.66; color: #4d4470;
}
.nz-metatron__text p { margin: 0 0 .8em; }
.nz-metatron__text p:last-child { margin: 0; }
.nz-metatron__name {
	display: flex; align-items: center; justify-content: center; gap: 14px; margin: 26px 0 0;
	font-size: 11px; font-weight: 600; letter-spacing: .4em; text-transform: uppercase; color: #a98436;
}
.nz-metatron__name::before, .nz-metatron__name::after { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, rgba(207, 174, 102, 0), #cfae66); }
.nz-metatron__name::after { background: linear-gradient(270deg, rgba(207, 174, 102, 0), #cfae66); }
.nz-metatron__name span { text-indent: .4em; }
a.nz-metatron__name--link { text-decoration: none; cursor: pointer; transition: color .3s ease, gap .3s ease; }
a.nz-metatron__name--link:hover { color: #8c6a28; gap: 18px; }
a.nz-metatron__name--link:hover::before, a.nz-metatron__name--link:hover::after { background: linear-gradient(90deg, rgba(207, 174, 102, 0), #8c6a28); }
.nz-metatron__btn {
	display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 26px;
	border: 1px solid rgba(207, 174, 102, .65); border-radius: 999px; background: rgba(255, 255, 255, .55);
	font-family: var(--nz-font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: #8c6a28;
	text-decoration: none; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}
.nz-metatron__btn:hover { background: rgba(255, 255, 255, .85); border-color: #cfae66; color: #6d5320; transform: translateY(-1px); }
.nz-metatron__btn .nz-btn__arrow { display: inline-block; transition: transform .3s ease; }
.nz-metatron__btn:hover .nz-btn__arrow { transform: translateX(2px); }

/* ---------- Картинка записи: небольшая, слева у текста ---------- */
.nz-post__cover--side { float: left; width: min(300px, 44%); margin: 6px 26px 14px 0; }
.nz-post__cover--side img { display: block; width: 100%; height: auto; border-radius: 14px; }

/* Слайдер, который крутится сам: точки внизу */
.nz-slider__dots { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 30px; }
.nz-slider__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #dcd3ee; cursor: pointer; transition: width .4s ease, background .4s ease; }
.nz-slider__dot:hover { background: #c4b7e4; }
.nz-slider__dot.is-active { width: 28px; background: linear-gradient(90deg, #cfae66, #e6d095); }

@media (max-width: 1024px) { .nz-metatron { min-height: 320px; max-height: none; } }
@media (max-width: 640px) {
	.nz-metatron { border-radius: 14px; height: clamp(280px, 74vw, 360px); }
	.nz-post__cover--side { float: none; width: 100%; margin: 0 0 18px; }
	.nz-trail .nz-sp:nth-child(n+7) { display: none; }
}

/* «Информация» — список разделов сайта */
.nz-rubrics__list { list-style: none; margin: 4px 0 0; padding: 0; }
.nz-rubrics__list li { border-top: 1px solid #f0edf6; }
.nz-rubrics__list li:first-child { border-top: 0; }
.nz-rubrics__list a {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 4px; font-size: 13.5px; font-weight: 500; color: #4c4c66;
	transition: color .25s ease, padding-left .25s ease;
}
.nz-rubrics__list a span { transition: color .25s ease; }
.nz-rubrics__list a i {
	flex: none; font-style: normal; color: #cbbb85; opacity: 0; transform: translateX(-4px);
	transition: opacity .25s ease, transform .25s ease, color .25s ease;
}
.nz-rubrics__list a:hover { color: var(--nz-violet-deep); padding-left: 8px; }
.nz-rubrics__list a:hover i { opacity: 1; transform: translateX(0); color: #cfae66; }

/* =================================================================
 * Новая Жизнь 5.0 — приветствие и завершающий блок-цитата.
 * Все прежние наслоения (4.1–4.2.4) заменены одним чистым набором правил.
 * Сайдбар, Метатрон, динамические блоки, шапка и подвал не затронуты.
 * ================================================================= */

/* ---------- Приветствие: замок растворяется в фоне сайта ---------- */
.nz-welcome--card { display: block; position: relative; margin: 18px 0 42px; }
.nz-welcomecard {
	position: relative; isolation: isolate; overflow: visible;
	padding: 30px 0 34px; border-radius: 0; background: none; box-shadow: none;
}
/* картинка выходит за границы блока, а маска растушёвывает все четыре края */
.nz-welcomecard__art {
	display: block; position: absolute; z-index: 0; pointer-events: none;
	inset: -46px -22px -40px -34px;
	background: url('../images/welcome-castle-soft.webp') 62% 34% / cover no-repeat;
	filter: saturate(1.22) contrast(1.06);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 90%, rgba(0, 0, 0, .5) 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 19%, #000 71%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 90%, rgba(0, 0, 0, .5) 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 19%, #000 71%, transparent 100%);
	-webkit-mask-composite: source-in; mask-composite: intersect;
}
/* светлая вуаль слева — текст всегда читается */
.nz-welcomecard__art::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(252, 251, 254, .97) 0%, rgba(252, 251, 254, .8) 30%, rgba(252, 251, 254, .28) 58%, rgba(252, 251, 254, 0) 80%);
}
.nz-welcomecard__in { position: relative; z-index: 2; max-width: 560px; }

.nz-welcomecard .nz-eyebrow { gap: 10px; width: auto; color: var(--nz-violet); }
.nz-welcomecard .nz-eyebrow svg { width: 34px; height: 24px; }  /* тот же размер, что у голубя в блоках «Курсы» и т.д. */
.nz-welcomecard .nz-eyebrow__line {
	flex: none; max-width: none;
	/* золотая линия заканчивается примерно на мягком знаке слова «находитесь» */
	width: clamp(44px, calc(24.1vw - 206px), 98px);
	background: linear-gradient(90deg, #d2ad5d, rgba(210, 173, 93, .16));
}
.nz-welcomecard .nz-welcome__title { margin-top: 21px; color: #5f6091; font-size: clamp(36px, 4.2vw, 53px); }
.nz-welcomecard .nz-welcome__body p { color: #6e6b9b; }
.nz-welcomecard .nz-btn--lavender { background: rgba(243, 238, 251, .78); }

@media (max-width: 1024px) {
	.nz-welcomecard__art { inset: -40px -16px -34px -22px; }
}
@media (max-width: 900px) {
	.nz-welcome--card { margin: 12px 0 34px; }
	.nz-welcomecard { padding: 24px 0 30px; }
	.nz-welcomecard__in { max-width: 100%; }
	.nz-welcomecard .nz-eyebrow__line { width: 72px; }
	.nz-welcomecard__art { background-position: 68% 40%; }
	.nz-welcomecard__art::after { background: linear-gradient(180deg, rgba(252, 251, 254, .9) 0%, rgba(252, 251, 254, .74) 60%, rgba(252, 251, 254, .5) 100%); }
}
@media (max-width: 640px) {
	.nz-welcomecard .nz-eyebrow__line { width: 56px; }
	.nz-welcomecard__art { inset: -26px -16px -30px -16px; }
}

/* ---------- Завершающий блок-цитата: Портал света ---------- */
.nz-epilogue {
	--nz-epi-size: 24;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: clamp(240px, 32vw, 300px);
	margin: 48px 0 12px;
	padding: 32px clamp(24px, 7vw, 90px);
	background: var(--nz-epi-img) center / cover no-repeat;
	border-radius: 0;
}
.nz-epilogue::before { display: none; }
.nz-epilogue::after { display: none; }
.nz-epilogue__in { position: relative; z-index: 1; max-width: 100%; }
.nz-epilogue__text {
	margin: 0 auto;
	max-width: 34em;
	text-wrap: balance;
	font-family: var(--nz-font-head);
	font-style: italic;
	font-weight: 600;
	font-size: calc(var(--nz-epi-size) * 1px);
	line-height: 1.48;
	color: #6B6498;
	text-shadow: 0 1px 3px rgba(255, 255, 255, .95), 0 0 10px rgba(255, 255, 255, .6);
}
@media (max-width: 900px) {
	.nz-epilogue__text { font-size: calc(var(--nz-epi-size) * .86px); }
}
@media (max-width: 640px) {
	.nz-epilogue { min-height: 190px; margin: 30px 0 0; padding: 44px 18px; background-image: var(--nz-epi-img-m, var(--nz-epi-img)); background-size: 100% 100%; }
	.nz-epilogue__text { font-size: max(16px, calc(var(--nz-epi-size) * .72px)); }
}


/* ---------- Сайдбар «Послание для вас» (без изменений относительно 4.2.4) ---------- */
.nz-sidebar > .widget:first-child { margin-top: -18px; }
.nz-golden__media { margin: 0 0 12px; }
.nz-golden__media img { max-height: 170px; }
.nz-golden .nz-pick__item { align-self: start; }
/* Показано одно послание — карточка подстраивается под его высоту (без пустого места у коротких) */
.nz-golden .nz-pick__item:not(.is-active) { display: none; }
.nz-golden .nz-pick--message .nz-pick__item--xs .nz-rotator__text { font-size: 22px; line-height: 1.55; }
.nz-golden .nz-pick { margin-top: 0; }
@media (max-width: 1024px) {
	.nz-sidebar > .widget:first-child { margin-top: 0; }
}


/* =================================================================
 * Виджет «По темам»: вращающееся 3D-облако (assets/js/topics-cloud.js)
 * Без JS / при «уменьшить анимацию» — аккуратный список-«пилюли».
 * Режим «Обычный список» использует стандартный вид списка сайдбара.
 * ================================================================= */
.nz-tcloud { position: relative; }

/* базовый вид облака: пилюли (как «Метки») */
.nz-tcloud--cloud .nz-tcloud__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nz-side-card .nz-tcloud--cloud .nz-tcloud__item { padding: 0; border: 0; font-size: inherit; }
.nz-side-card .nz-tcloud--cloud .nz-tcloud__link {
	display: inline-block; padding: 6px 13px; border-radius: 999px;
	background: var(--nz-lav); color: #6d5fb3; font-size: 12.5px; line-height: 1.25;
	text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
.nz-side-card .nz-tcloud--cloud .nz-tcloud__link:hover { background: var(--nz-lav-2); color: #4b3f96; text-decoration: none; }
.nz-tcloud--cloud .nz-tcloud__link:focus-visible { outline: 2px solid var(--nz-violet); outline-offset: 2px; }
.nz-tcloud__hint { display: none; }

/* 3D-режим включает скрипт: добавляет класс .is-3d */
.nz-tcloud--cloud.is-3d .nz-tcloud__stage {
	position: relative; isolation: isolate; height: var(--nz-tcloud-h, 345px);
	touch-action: pan-y; cursor: grab; -webkit-user-select: none; user-select: none;
	-webkit-tap-highlight-color: transparent;
	opacity: 0; transition: opacity .6s ease;
}
.nz-tcloud--cloud.is-3d.is-ready .nz-tcloud__stage { opacity: 1; }
.nz-tcloud--cloud.is-3d.is-drag .nz-tcloud__stage { cursor: grabbing; }
/* рисунок теперь лежит на всей панели виджета (.nz-tcloud-panel), см. ниже */
@keyframes nz-tcloud-breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
.nz-tcloud--cloud.is-3d .nz-tcloud__list { position: absolute; inset: 0; display: block; margin: 0; padding: 0; }
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__item {
	position: absolute; left: 50%; top: 50%; width: max-content; max-width: 118px;
	margin: 0; padding: 0; border: 0;
}
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__link {
	display: block; padding: 2px 7px; border-radius: 14px; background: transparent;
	font-family: var(--nz-font-body); font-size: 14px; font-weight: 500; letter-spacing: .01em; line-height: 1.2; text-align: center;
	color: #352f72; cursor: pointer; -webkit-font-smoothing: antialiased;
	/* читаемость — белым ореолом вокруг букв, а не затемнением фона */
	text-shadow: 0 0 2px #fff, 0 0 5px rgba(255, 255, 255, .95), 0 0 11px rgba(255, 255, 255, .75);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
/* наведение: тема «всплывает» — увеличивается, светлеет, получает тонкое золотое сияние */
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__item.is-hover .nz-tcloud__link,
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__link:hover {
	transform: scale(1.18); background: rgba(255, 255, 255, .78); color: #463b8f; text-decoration: none; text-shadow: none;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 0 0 1px rgba(201, 164, 92, .3), 0 10px 28px rgba(160, 135, 215, .2), 0 0 26px rgba(255, 233, 180, .75);
}
.nz-tcloud--cloud.is-3d .nz-tcloud__hint {
	display: block; margin: 4px 0 0; text-align: center; font-size: 11px; color: #a39cc4;
	transition: opacity .5s ease;
}
.nz-tcloud--cloud.is-3d.is-touched .nz-tcloud__hint { opacity: 0; }

@media (max-width: 1024px) {
	.nz-tcloud--cloud.is-3d .nz-tcloud__stage { height: calc(var(--nz-tcloud-h, 345px) + 10px); }
}


/* =================================================================
 * Виджет «Метки компактные»: тонкая двухколоночная сетка без рамок.
 * Тонкий лавандовый текст, при наведении — золотой + тонкая линия.
 * ================================================================= */
.nz-side-card ul.nz-ctags { margin: 0; padding: 0; list-style: none; column-gap: 20px; -webkit-column-gap: 20px; }
.nz-ctags--cols-2 { column-count: 2; -webkit-column-count: 2; }
.nz-ctags--cols-1 { column-count: 1; -webkit-column-count: 1; }
.nz-side-card .nz-ctags li { padding: 0; border: 0; font-size: inherit; break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid; }
.nz-side-card .nz-ctags .nz-ctags__link {
	position: relative; display: inline-block; max-width: 100%; padding: 2px 0;
	font-size: 13px; font-weight: 300; line-height: 1.3; letter-spacing: .01em;
	color: #6f63ad; text-decoration: none;
	background: linear-gradient(90deg, rgba(201, 164, 92, .75), rgba(201, 164, 92, 0)) 0 calc(100% - 1px) / 0 1px no-repeat;
	transition: color .25s ease, background-size .45s cubic-bezier(.2, .8, .2, 1);
}
/* маленький золотой «ромбик» появляется слева, не сдвигая текст */
.nz-ctags__link::before {
	content: ""; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px;
	background: #d2ad5d; transform: translateY(-50%) rotate(45deg) scale(0); opacity: 0;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.nz-side-card .nz-ctags .nz-ctags__link:hover,
.nz-side-card .nz-ctags .nz-ctags__link:focus-visible { color: #b0832a; background-size: 100% 1px; text-decoration: none; }
.nz-ctags__link:hover::before,
.nz-ctags__link:focus-visible::before { transform: translateY(-50%) rotate(45deg) scale(1); opacity: 1; }
.nz-ctags__link:focus-visible { outline: none; }
.nz-ctags__link sup { margin-left: 3px; font-size: 9px; font-weight: 400; color: #b6afd6; vertical-align: top; position: relative; top: 1px; }
@media (min-width: 480px) and (max-width: 1024px) {
	.nz-ctags--cols-2 { column-count: 3; -webkit-column-count: 3; }
}

/* Метки: «облачный фон» — пастельный градиент лаванда / небо / персик и золотые искры (как карточка подписки) */
.nz-side-card .nz-ctags-panel--aurora {
	position: relative; margin: -24px -22px; padding: 24px 22px 22px; border-radius: inherit; overflow: hidden;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9b45f' d='M12 0c.7 6.4 5.6 11.3 12 12-6.4.7-11.3 5.6-12 12-.7-6.4-5.6-11.3-12-12C6.4 11.3 11.3 6.4 12 0z'/%3E%3C/svg%3E") no-repeat right 18px top 16px / 16px 16px,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e8cd86' d='M12 0c.7 6.4 5.6 11.3 12 12-6.4.7-11.3 5.6-12 12-.7-6.4-5.6-11.3-12-12C6.4 11.3 11.3 6.4 12 0z'/%3E%3C/svg%3E") no-repeat right 44px top 40px / 8px 8px,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9b45f' d='M12 0c.7 6.4 5.6 11.3 12 12-6.4.7-11.3 5.6-12 12-.7-6.4-5.6-11.3-12-12C6.4 11.3 11.3 6.4 12 0z'/%3E%3C/svg%3E") no-repeat left 16px bottom 14px / 9px 9px,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e8cd86' d='M12 0c.7 6.4 5.6 11.3 12 12-6.4.7-11.3 5.6-12 12-.7-6.4-5.6-11.3-12-12C6.4 11.3 11.3 6.4 12 0z'/%3E%3C/svg%3E") no-repeat right 26px bottom 22px / 7px 7px,
		radial-gradient(90% 70% at 100% 0%, rgba(255, 232, 192, .8), rgba(255, 232, 192, 0) 62%),
		radial-gradient(85% 65% at 0% 100%, rgba(205, 222, 255, .75), rgba(205, 222, 255, 0) 64%),
		radial-gradient(80% 60% at 0% 0%, rgba(232, 214, 250, .9), rgba(232, 214, 250, 0) 62%),
		linear-gradient(180deg, #fdfbff, #f6f1fd);
}
.nz-ctags-panel--aurora .nz-ctags__link { color: #5b50a2; }
.nz-ctags-panel--aurora .nz-ctags__link sup { color: #a69fd0; }


/* =================================================================
 * «Облако тем»: рисунок на всю карточку виджета (как у «Метки»)
 * ================================================================= */
.nz-side-card .nz-tcloud-panel {
	position: relative; isolation: isolate; margin: -24px -22px; padding: 24px 22px 18px;
	border-radius: inherit; overflow: hidden;
	background:
		radial-gradient(90% 60% at 100% 0%, rgba(255, 232, 192, .85), rgba(255, 232, 192, 0) 62%),
		radial-gradient(90% 60% at 0% 100%, rgba(205, 222, 255, .8), rgba(205, 222, 255, 0) 64%),
		linear-gradient(180deg, #fbf8ff, #f4eefc);
}
.nz-tcloud-panel::before {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: url('../images/topics-cloud-bg.webp') center 46% / auto 100% no-repeat;
	animation: nz-tcloud-breathe 18s ease-in-out infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .nz-tcloud-panel::before { animation: none; } }
.nz-tcloud-panel .nz-side-card__title { color: #4a4486; text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 16px rgba(255, 255, 255, .7); }

/* наведение: светлая «капсула» с тонкой золотой обводкой и стрелкой › */
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__link { position: relative; }
.nz-tcloud--cloud.is-3d .nz-tcloud__link::after {
	content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px;
	border-top: 1.6px solid #8b78c9; border-right: 1.6px solid #8b78c9;
	transform: translateY(-50%) rotate(45deg) scale(0); opacity: 0;
	transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__item.is-hover { max-width: 156px; }
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__item.is-hover .nz-tcloud__link,
.nz-side-card .nz-tcloud--cloud.is-3d .nz-tcloud__link:hover {
	padding: 5px 24px 5px 13px; border-radius: 16px; background: rgba(255, 255, 255, .9);
	box-shadow: 0 0 0 1px rgba(201, 164, 92, .55), 0 10px 26px rgba(150, 125, 210, .26), 0 0 22px rgba(255, 233, 180, .7);
}
.nz-tcloud--cloud.is-3d .nz-tcloud__item.is-hover .nz-tcloud__link::after,
.nz-tcloud--cloud.is-3d .nz-tcloud__link:hover::after { opacity: 1; transform: translateY(-50%) rotate(45deg) scale(1); }
.nz-tcloud-panel .nz-tcloud__hint { color: #8d84bd; text-shadow: 0 0 6px rgba(255, 255, 255, .9); }


/* Нижняя цитата на «ярком» фоне: текст глубже, читаемость — мягким белым ореолом (фон не затемняем) */
.nz-epilogue--vivid .nz-epilogue__text {
	color: #4a4486;
	text-shadow: 0 0 3px rgba(255, 255, 255, .95), 0 0 10px rgba(255, 255, 255, .85), 0 0 22px rgba(255, 255, 255, .6);
}


/* =================================================================
 * МОБИЛЬНАЯ И ПЛАНШЕТНАЯ ВЕРСИЯ (6.4)
 * Баннер целиком, видимый замок в приветствии, компактные карточки записей.
 * Компьютер (шире 1024px) не затрагивается.
 * ================================================================= */

/* ничего не должно вылезать за экран по горизонтали.
   ВАЖНО: нельзя ставить overflow на html/body — это ломает липкую шапку (position: sticky).
   Поэтому обрезаем только внутри колонки контента. */
.nz-main { min-width: 0; }
@media (max-width: 1024px) { .nz-layout { overflow-x: clip; } }

/* ---------- Планшет (641–900px): замок справа, как на компьютере ---------- */
@media (min-width: 641px) and (max-width: 900px) {
	.nz-welcomecard__in { max-width: 60%; }
	.nz-welcomecard__art { background-position: 62% 34%; }
	.nz-welcomecard__art::after {
		background: linear-gradient(90deg, rgba(252, 251, 254, .97) 0%, rgba(252, 251, 254, .8) 30%, rgba(252, 251, 254, .28) 58%, rgba(252, 251, 254, 0) 80%);
	}
}

/* ---------- Карточки статей — компактные горизонтальные (до 820px) ---------- */
@media (max-width: 820px) {
	.nz-grid:not(.nz-grid--slider) { gap: 12px 14px; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles { flex-direction: row; align-items: stretch; border-radius: 16px; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__media {
		flex: 0 0 var(--nz-thumb, 128px); width: var(--nz-thumb, 128px); aspect-ratio: auto; min-height: 120px;
	}
	/* фото заполняет рамку и не растягивает карточку (даже если оно высокое) */
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__body { padding: 12px 14px; gap: 4px; min-width: 0; justify-content: flex-start; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__title {
		font-size: 15px; line-height: 1.32;
		display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	}
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__excerpt { -webkit-line-clamp: 2; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__foot { border-top: 0; padding-top: 2px; }
	.nz-card:hover { transform: none; }
}
@media (min-width: 561px) and (max-width: 820px) {
	.nz-grid:not(.nz-grid--slider) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.nz-grid:not(.nz-grid--slider) { grid-template-columns: 1fr; --nz-thumb: 108px; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__media { min-height: 112px; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__excerpt { display: none; }
}

/* ---------- Слайдер курсов: ниже картинка, плотнее текст ---------- */
@media (max-width: 640px) {
	.nz-grid--slider { gap: 12px; }
	.nz-grid--slider > .nz-card { --c: 1.4; flex-basis: calc((100% - (var(--c) - 1) * 12px) / var(--c)); border-radius: 16px; }
	.nz-grid--slider .nz-card__media { aspect-ratio: 2 / 1; }
	.nz-grid--slider .nz-card__body { padding: 11px 13px 13px; gap: 5px; }
	.nz-grid--slider .nz-card__title { font-size: 16px; line-height: 1.25; }
	.nz-grid--slider .nz-card__excerpt { display: none; }
	.nz-grid--slider .nz-card--courses .nz-card__price { font-size: 17px; }
	.nz-grid--slider .nz-card--courses .nz-card__body > .nz-card__more { margin-top: 8px; padding: 7px 16px; font-size: 12.5px; }
}

/* ---------- Телефон (до 640px) ---------- */
@media (max-width: 640px) {
	/* Приветствие: замок — видимая «сцена» над текстом, без вуали */
	.nz-welcome--card { margin: -16px 0 26px; }
	.nz-welcomecard { padding: 0 0 4px; }
	.nz-welcomecard__art {
		position: relative; inset: auto; display: block; height: clamp(190px, 54vw, 250px);
		margin: 0 -16px; background-size: 170% auto; background-position: 93% 27%;
		-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 76%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%), linear-gradient(180deg, transparent 0, #000 12%, #000 76%, transparent 100%);
		-webkit-mask-composite: source-in; mask-composite: intersect;
	}
	.nz-welcomecard__art::after { display: none; }
	.nz-welcomecard__in { position: relative; z-index: 2; margin-top: -30px; max-width: 100%; }
	.nz-welcomecard .nz-welcome__title { font-size: 34px; margin-top: 16px; }

	/* Баннер: весь целиком полосой (композиция с замком, голубями и названием) */
	.nz-hero--m-strip { height: auto; min-height: 0; }
	.nz-hero--m-strip .nz-hero__fill { display: none; }
	.nz-hero--m-strip .nz-hero__pic {
		position: relative; inset: auto; display: block; width: 100%; aspect-ratio: 2038 / 560; transform: none;
		background: var(--nz-hero-img) center / contain no-repeat; background-color: var(--nz-bg); -webkit-mask-image: none; mask-image: none;
	}
	.nz-hero--m-strip::before { display: none; }
	.nz-hero--m-strip .nz-hero__in { position: static; min-height: 0; display: block; }
	.nz-hero--m-strip .nz-hero__text { position: static; transform: none; width: 100%; padding: 10px 20px 4px; text-align: center; }
	.nz-hero--m-strip.nz-hero--baked .nz-hero__title,
	.nz-hero--m-strip.nz-hero--baked .nz-hero__tag { display: none; }       /* надписи уже нарисованы в самой картинке */
	.nz-hero--m-strip.nz-hero--baked .nz-hero__text { display: none; }      /* и подпись тоже — так между баннером и замком нет пустоты */
	.nz-hero--m-strip .nz-hero__small { display: block; max-width: 320px; margin: 0 auto; font-size: 13.5px; line-height: 1.5; }
	.nz-hero--m-strip.nz-hero--short .nz-hero__text { display: none; }
	.nz-hero--m-portrait { min-height: clamp(300px, 88vw, 380px); }
	.nz-hero--m-portrait .nz-hero__in { min-height: clamp(300px, 88vw, 380px); }
}


/* Ангельские крылышки слева от заголовка «Послание для вас» (размер самого заголовка не менялся) */
.nz-golden .nz-side-card__title .nz-wings { display: inline-block; width: 38px; height: 24px; margin: -6px 10px 0 0; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(201, 164, 92, .35)); }
.nz-golden .nz-side-card__title .nz-emblem { display: inline-block; margin: -5px 10px 0 0; vertical-align: middle; filter: drop-shadow(0 1px 2px rgba(201, 164, 92, .38)); }


/* =================================================================
 * МОБИЛЬНЫЙ САЙДБАР (до 768px): кнопка + выезжающая панель.
 * Включается скриптом (класс html.nz-msb-on). Без JS — обычный блок под контентом.
 * ================================================================= */
.nz-msb-fab, .nz-msb-overlay, .nz-msb-head { display: none; }

@media (max-width: 768px) {
	/* --- плавающая кнопка --- */
	.nz-msb-on .nz-msb-fab {
		display: inline-flex; align-items: center; position: fixed; z-index: 9990;
		right: max(14px, env(safe-area-inset-right)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px));
		height: 46px; min-width: 46px; padding: 0 13px; border: 0; border-radius: 23px; cursor: pointer; color: #fff;
		background: linear-gradient(145deg, #a48fe6 0%, #d99ccb 62%, #efc68c 100%);
		box-shadow: 0 8px 22px rgba(140, 110, 200, .4), 0 0 0 2px rgba(255, 255, 255, .88), 0 0 0 3px rgba(201, 164, 92, .5);
		-webkit-tap-highlight-color: transparent;
		transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease;
	}
	.nz-msb-on .nz-msb-fab:active { transform: scale(.94); }
	.nz-msb-fab__icon svg { width: 19px; height: 19px; }
.nz-msb-fab__icon { position: relative; display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; margin: 0 auto; }
	.nz-msb-fab__spark { position: absolute; top: -5px; right: -7px; width: 6px; height: 6px; background: #fff; border-radius: 1px; transform: rotate(45deg); opacity: .9; }
	.nz-msb-fab__label {
		max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 600; letter-spacing: .02em;
		transition: max-width .45s ease, opacity .3s ease, margin .45s ease;
	}
	.nz-msb-fab.is-expanded .nz-msb-fab__label { max-width: 80px; opacity: 1; margin-left: 8px; }
	.nz-msb-open .nz-msb-fab { opacity: 0; pointer-events: none; transform: scale(.8); }

	/* --- «молочный туман» вместо чёрной подложки --- */
	.nz-msb-on .nz-msb-overlay {
		display: block; position: fixed; inset: 0; z-index: 9992;
		background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
		opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
	}
	.nz-msb-open .nz-msb-overlay { opacity: 1; visibility: visible; transition-delay: 0s; }
	html.nz-msb-open, html.nz-msb-open body { overflow: hidden; }

	/* --- сама панель: стеклянная, выезжает справа --- */
	.nz-msb-on .nz-sidebar {
		position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 9995; display: block;
		width: min(88vw, 380px); max-width: 100%; padding: 0 14px calc(28px + env(safe-area-inset-bottom));
		overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		background: rgba(246, 242, 255, .84); -webkit-backdrop-filter: blur(20px) saturate(1.25); backdrop-filter: blur(20px) saturate(1.25);
		border-left: 1px solid rgba(255, 255, 255, .8); box-shadow: -24px 0 70px rgba(120, 100, 180, .22);
		transform: translateX(105%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s;
	}
	.admin-bar.nz-msb-on .nz-sidebar, .nz-msb-on.admin-bar .nz-sidebar { top: 46px; }
	.nz-msb-open .nz-sidebar { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
	.nz-msb-on .nz-sidebar > .nz-side-card { margin: 0 0 14px; width: auto; }

	.nz-msb-on .nz-msb-head {
		display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 5;
		margin: 0 -14px 8px; padding: 16px 16px 12px;
		background: linear-gradient(180deg, rgba(246, 242, 255, .98) 0%, rgba(246, 242, 255, .8) 70%, rgba(246, 242, 255, 0) 100%);
	}
	.nz-msb-head__title { font-family: var(--nz-font-head); font-size: 24px; font-weight: 500; color: #4a4486; letter-spacing: .01em; }
	.nz-msb-head__title::before { content: "✦"; color: #d2ad5d; font-size: 15px; margin-right: 8px; vertical-align: 3px; }
	.nz-msb-close {
		display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
		color: #7a6cc0; background: rgba(255, 255, 255, .85); border: 1px solid #ebe5f7; box-shadow: 0 4px 14px rgba(140, 120, 200, .18);
	}

	/* «Послание для вас» остаётся на странице, в конце контента */
	.nz-msb-pinned { margin: 6px 0 26px; width: auto; }

	/* --- аккордеон «Информация» --- */
	.nz-acc { display: grid; grid-template-rows: 1fr; }
	.nz-acc__inner { min-height: 0; overflow: hidden; }
	.nz-msb-on .is-acc .nz-acc { grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
	.nz-msb-on .is-acc.is-open .nz-acc { grid-template-rows: 1fr; }
	.nz-msb-on .is-acc .nz-side-card__title { position: relative; cursor: pointer; padding-right: 30px; -webkit-user-select: none; user-select: none; }
	.nz-msb-on .is-acc:not(.is-open) .nz-side-card__title { margin-bottom: 0; }
	.nz-msb-on .is-acc .nz-side-card__title::after {
		content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px;
		border-right: 2px solid #9a8bd0; border-bottom: 2px solid #9a8bd0; transform: translateY(-70%) rotate(45deg); transition: transform .3s ease;
	}
	.nz-msb-on .is-acc.is-open .nz-side-card__title::after { transform: translateY(-25%) rotate(-135deg); }
	.nz-msb-on .is-acc .nz-side-card__title:focus-visible { outline: 2px solid #9a8bd0; outline-offset: 4px; border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) {
	.nz-msb-on .nz-sidebar, .nz-msb-overlay, .nz-msb-fab, .nz-acc, .nz-msb-fab__label { transition: none !important; }
}


/* Метки: «спокойное» оформление — карточка почти белая, лишь лёгкое лавандовое свечение у заголовка и одна искра */
.nz-side-card .nz-ctags-panel--soft {
	position: relative; margin: -24px -22px; padding: 24px 22px 22px; border-radius: inherit;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d9b45f' d='M12 0c.7 6.4 5.6 11.3 12 12-6.4.7-11.3 5.6-12 12-.7-6.4-5.6-11.3-12-12C6.4 11.3 11.3 6.4 12 0z'/%3E%3C/svg%3E") no-repeat right 20px top 24px / 11px 11px,
		radial-gradient(110% 48% at 0% 0%, rgba(238, 229, 253, .85), rgba(238, 229, 253, 0) 68%),
		#fff;
}
.nz-ctags-panel--soft .nz-ctags__link { color: #6a5fa8; }

/* Курсы на планшете: картинка ниже, карточка компактнее */
@media (min-width: 641px) and (max-width: 820px) {
	.nz-grid--slider .nz-card__media { aspect-ratio: 2 / 1; }
	.nz-grid--slider .nz-card--courses .nz-card__body { padding: 14px 16px 16px; }
}

/* =====================================================================
   6.8.6 — аккуратная адаптивная доводка.
   Не переопределяем золотые разделители .nz-section__head::after,
   заголовки с голубем и базовую пастельную палитру.
   ===================================================================== */

/* Замок: сохраняем исходный файл и исходные цвета, уменьшаем белую вуаль. */
.nz-hero__pic { filter: saturate(1.02) brightness(1.01) contrast(1.01); }
.nz-welcomecard__art {
  filter: saturate(1.14) contrast(1.035) brightness(1.015);
}
.nz-welcomecard__art::after {
  background: linear-gradient(90deg,
    rgba(252,251,254,.88) 0%,
    rgba(252,251,254,.66) 30%,
    rgba(252,251,254,.18) 58%,
    rgba(252,251,254,0) 82%);
}
.nz-welcomecard .nz-welcome__title {
  color: #6f6895;
  text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.nz-welcomecard .nz-welcome__body p {
  color: #625e82;
  overflow-wrap: break-word;
}

/* Планшеты: более спокойные интервалы, две компактные карточки вместо огромных. */
@media (min-width: 641px) and (max-width: 900px) {
  .nz-layout { gap: 24px; padding-top: 30px; padding-bottom: 42px; }
  .nz-welcomecard__in { max-width: 62%; }
  .nz-welcomecard__art::after {
    background: linear-gradient(90deg,
      rgba(252,251,254,.88) 0%, rgba(252,251,254,.64) 34%,
      rgba(252,251,254,.16) 62%, rgba(252,251,254,0) 84%);
  }
  .nz-grid:not(.nz-grid--slider) { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
  .nz-grid--slider { gap: 14px; }
  .nz-grid--slider > .nz-card { --c: 2.25; flex-basis: calc((100% - (var(--c) - 1) * 14px) / var(--c)); }
  .nz-grid--slider .nz-card__media { aspect-ratio: 2.05 / 1; }
}

/* Телефон в портретной ориентации. Замок — отдельная видимая сцена,
   но его цвета больше не выбеливаются поверх сплошной белой вуалью. */
@media (max-width: 640px) and (orientation: portrait) {
  .nz-welcome--card { margin: -8px 0 25px; }
  .nz-welcomecard { padding: 0 0 8px; }
  .nz-welcomecard__art {
    position: relative;
    inset: auto;
    display: block;
    z-index: 0;
    height: clamp(155px, 45vw, 198px);
    margin: 0 -20px;
    background-size: 150% auto;
    background-position: 93% 31%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 96%, transparent 100%);
    -webkit-mask-composite: source-over;
    mask-composite: add;
    filter: saturate(1.14) contrast(1.035) brightness(1.015);
  }
  .nz-welcomecard__art::after { display: none; }
  .nz-welcomecard__in {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin-top: -12px;
    padding: 0 20px;
  }
  .nz-welcomecard .nz-eyebrow { gap: 8px; }
  .nz-welcomecard .nz-eyebrow__line { width: 48px; }
  .nz-welcomecard .nz-welcome__title {
    margin-top: 14px;
    margin-bottom: 12px;
    font-size: clamp(27px, 7.1vw, 32px);
    line-height: 1.17;
    text-wrap: balance;
  }
  .nz-welcomecard .nz-welcome__body p { font-size: 14px; line-height: 1.62; margin-bottom: 10px; }
  .nz-welcomecard .nz-btn { min-height: 38px; padding: 9px 15px; font-size: 13px; }

  .nz-announcement { margin: 0 0 30px; }
  .nz-announcement .nz-section__head { margin-bottom: 12px; padding-bottom: 10px; }
  .nz-announcement .nz-section__title { gap: 8px; font-size: clamp(22px, 5.8vw, 27px); line-height: 1.2; }
  .nz-announcement .nz-section__title .nz-dove { width: 27px; height: auto; }

  .nz-grid--slider { gap: 12px; }
  .nz-grid--slider > .nz-card { --c: 1.35; flex-basis: calc((100% - (var(--c) - 1) * 12px) / var(--c)); border-radius: 14px; }
  .nz-grid--slider .nz-card__media { aspect-ratio: 2.05 / 1; }
  .nz-grid--slider .nz-card__body { padding: 11px 12px 13px; gap: 5px; }
  .nz-grid--slider .nz-card__title { font-size: 15px; line-height: 1.25; }
  .nz-grid--slider .nz-card__excerpt { display: none; }
  .nz-grid--slider .nz-card--courses .nz-card__title { min-height: 0; -webkit-line-clamp: 2; }
  .nz-grid--slider .nz-card--courses .nz-card__price { font-size: 16px; }
  .nz-grid--slider .nz-card--courses .nz-card__body > .nz-card__more { margin-top: 6px; padding: 7px 13px; font-size: 12px; }
}

/* Телефон боком: используем высоту экрана разумно, не заставляем карточки
   занимать весь экран. Это правило покрывает распространённые viewport 800–950px. */
@media (orientation: landscape) and (max-width: 1024px) and (max-height: 650px) {
  .nz-topbar__in { min-height: 50px; gap: 14px; }
  .nz-brand__logo, .nz-brand__logo-fallback svg { max-height: 32px; }
  .nz-brand__name { font-size: 18px; }
  .nz-brand__tag { font-size: 9.5px; }
  .nz-topbar__actions { gap: 7px; }
  .nz-icon-btn { width: 34px; height: 34px; }
  .nz-container { padding-left: 16px; padding-right: 16px; }
  .nz-hero, .nz-hero--short { height: auto; min-height: 0; }
  .nz-hero--m-strip .nz-hero__fill { display: none; }
  .nz-hero--m-strip .nz-hero__pic {
    position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 2038 / 560; transform: none;
    background: var(--nz-hero-img) center / contain no-repeat; background-color: var(--nz-bg); -webkit-mask-image: none; mask-image: none;
  }
  .nz-hero--m-strip::before { display: none; }
  .nz-hero--m-strip .nz-hero__in { position: static; min-height: 0; display: block; }
  .nz-hero--m-strip .nz-hero__text { position: static; transform: none; width: 100%; padding: 6px 20px 2px; text-align: center; }
  .nz-hero--m-strip.nz-hero--baked .nz-hero__text { display: none; }
  .nz-hero--m-strip .nz-hero__small { display: block; max-width: 320px; margin: 0 auto; font-size: 12px; line-height: 1.45; }
  .nz-hero--short.nz-hero--m-strip .nz-hero__text { display: none; }
  .nz-layout { gap: 18px; padding-top: 19px; padding-bottom: 26px; }
  .nz-section { margin-bottom: 24px; }
  .nz-section__head { margin-bottom: 12px; padding-bottom: 9px; }
  .nz-section__title { font-size: clamp(20px, 2.5vw, 26px); }
  .nz-welcome--card { margin: 2px 0 18px; }
  .nz-welcomecard { padding: 8px 0 14px; }
  .nz-welcomecard .nz-eyebrow__line { width: 48px; }
  .nz-welcomecard .nz-welcome__title { font-size: clamp(23px, 3.1vw, 30px); line-height: 1.16; margin-top: 10px; margin-bottom: 8px; }
  .nz-welcomecard .nz-welcome__body p { font-size: 12.5px; line-height: 1.48; margin-bottom: 7px; }
  .nz-welcomecard .nz-btn { min-height: 32px; padding: 7px 12px; font-size: 11.5px; }

  .nz-grid { gap: 12px; }
  .nz-grid--slider { gap: 12px; padding-bottom: 14px; margin-bottom: -14px; }
  .nz-grid--slider > .nz-card { --c: 2.15; flex-basis: calc((100% - (var(--c) - 1) * 12px) / var(--c)); }
  .nz-grid--slider .nz-card__media { aspect-ratio: 2.3 / 1; }
  .nz-grid--slider .nz-card__body { padding: 9px 11px 11px; gap: 4px; }
  .nz-grid--slider .nz-card__title { font-size: 14px; line-height: 1.22; }
  .nz-grid--slider .nz-card__excerpt { display: none; }
  .nz-grid--slider .nz-card--courses .nz-card__title { min-height: 0; -webkit-line-clamp: 2; }
  .nz-grid--slider .nz-card--courses .nz-card__price { font-size: 15px; }
  .nz-grid--slider .nz-card--courses .nz-card__body > .nz-card__more { margin-top: 5px; padding: 6px 10px; font-size: 11px; }
  .nz-grid:not(.nz-grid--slider) { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .nz-card__media { aspect-ratio: 2.2 / 1; }
  .nz-card__body { padding: 10px 12px 12px; gap: 5px; }
  .nz-card__title { font-size: 14px; line-height: 1.24; }
  .nz-card__excerpt { font-size: 11.5px; line-height: 1.42; }

  .nz-announcement { margin-bottom: 22px; }
  .nz-metatron { height: 210px; min-height: 0; }
}

@media (orientation: landscape) and (max-width: 900px) and (max-height: 520px) {
  .nz-topbar__in { min-height: 46px; }
  .nz-layout { gap: 15px; padding-top: 14px; padding-bottom: 20px; }
  .nz-hero, .nz-hero--short { height: auto; }
  .nz-grid--slider > .nz-card { --c: 2.2; flex-basis: calc((100% - (var(--c) - 1) * 12px) / var(--c)); }
  .nz-grid--slider .nz-card__media { aspect-ratio: 2.45 / 1; }
  .nz-section { margin-bottom: 20px; }
}

/* Внутренние страницы: на телефоне используем ту же полную широкую шапку,
   а не обрезанный портретный фрагмент. */
@media (max-width: 640px) {
  body:not(.home) .nz-hero--short.nz-hero--m-strip {
    height: auto;
    min-height: 0;
  }
  body:not(.home) .nz-hero--short.nz-hero--m-strip .nz-hero__pic {
    height: auto;
    aspect-ratio: 2038 / 560;
    background-image: var(--nz-hero-img) !important;
    background-position: center center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-color: var(--nz-bg);
  }
  body:not(.home) .nz-hero--short.nz-hero--m-strip .nz-hero__in { min-height: 0; }
}

/* Верх панели мобильного сайдбара не прилипает отдельной белой полосой при прокрутке. */
@media (max-width: 768px) {
  .nz-msb-on .nz-msb-head {
    position: relative;
    top: auto;
    background: rgba(246,242,255,.94);
    border-bottom: 1px solid rgba(201,164,92,.16);
  }
  html.nz-msb-on .nz-main { padding-bottom: 64px; }
}


/* =====================================================================
 * 6.9.0 — ЕДИНЫЙ БЛОК ДОРАБОТОК (мобильная/планшетная версии, ангел, «Объявление»)
 * Старые разрозненные правила карточки «Объявление» удалены и заменены этим блоком.
 * ===================================================================== */

/* ---------- Шапка: не просвечивает текст при прокрутке ---------- */
.nz-topbar.is-scrolled { background: rgba(255, 255, 255, .9); }
@media (orientation: landscape) and (max-height: 520px) {
	.nz-topbar, .nz-topbar.is-scrolled { background: rgba(255, 255, 255, .96); }
	.nz-topbar { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* ---------- Мобильная панель «Разделы сайта» ---------- */
@media (max-width: 768px) {
	/* панель почти непрозрачная — шапка внутри неё сливается с фоном, без «белой полосы» */
	.nz-msb-on .nz-sidebar { background: rgba(246, 242, 255, .97); }
	/* шапка панели ВСЕГДА остаётся сверху, кнопка закрытия не уезжает при прокрутке */
	.nz-msb-on .nz-msb-head {
		position: sticky; top: 0; z-index: 5;
		margin: 0 -14px 6px; padding: 14px 16px 10px;
		background: rgb(246, 242, 255); border: 0; box-shadow: none;
	}
	.nz-msb-on .nz-msb-head::after {
		content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; pointer-events: none;
		background: linear-gradient(180deg, rgb(246, 242, 255), rgba(246, 242, 255, 0));
	}
	html.nz-msb-on .nz-main { padding-bottom: 64px; }
}
/* телефон боком: панель шире и ниже по высоте, учитываем «чёлку» */
@media (max-width: 768px) and (orientation: landscape) {
	.nz-msb-on .nz-sidebar { width: min(60vw, 440px); padding-left: 14px; padding-right: calc(14px + env(safe-area-inset-right)); }
	.nz-msb-on .nz-msb-head { padding-top: 8px; padding-bottom: 6px; margin-right: calc(-14px - env(safe-area-inset-right)); }
	.nz-msb-head__title { font-size: 20px; }
	.nz-msb-close { width: 34px; height: 34px; }
	.nz-msb-on .nz-sidebar > .nz-side-card { margin-bottom: 12px; }
}

/* ---------- Замок в приветствии на телефоне: отдельная обрезка, чёткая картинка ---------- */
@media (max-width: 640px) {
	.nz-welcome--card .nz-welcomecard__art {
		position: relative; inset: auto; display: block; z-index: 0;
		height: auto; aspect-ratio: 1240 / 760; max-height: 300px;
		margin: 0 -20px;
		background: url('../images/welcome-castle-m.webp') 62% 38% / cover no-repeat;
		filter: saturate(1.18) contrast(1.03);
		-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
		mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
		-webkit-mask-composite: source-in; mask-composite: intersect;
	}
	.nz-welcome--card .nz-welcomecard__art::after {
		content: ""; position: absolute; inset: 0; pointer-events: none;
		box-shadow: inset 0 0 46px 26px #fcfbfe, inset 0 -56px 46px -20px #fcfbfe;
	}
	.nz-welcome--card { margin-top: -26px; }
	.nz-welcome--card .nz-welcomecard__in { margin-top: -22px; padding: 0 2px; }
	.nz-welcome--card .nz-welcomecard .nz-eyebrow, .nz-welcome--card .nz-eyebrow { flex-wrap: nowrap; white-space: nowrap; }
}
/* телефон боком: замок справа, текст слева, без вуали поверх замка */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1024px) {
	.nz-welcomecard__art { background-position: 80% 40%; }
	.nz-welcomecard__art::after { background: linear-gradient(90deg, rgba(252,251,254,.9) 0%, rgba(252,251,254,.55) 34%, rgba(252,251,254,0) 62%); }
	.nz-welcomecard__in { max-width: 58%; }
}

/* ---------- «Послание для вас»: ангел в высоком качестве, целиком ---------- */
.nz-golden__media { margin: 0 0 12px; }
.nz-golden__media img {
	display: block; width: 100%; height: auto; max-height: none;
	aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 24%;
	border-radius: 12px; image-rendering: auto;
}
@media (max-width: 768px) { .nz-golden__media img { aspect-ratio: 4 / 3; object-position: 50% 22%; } }

/* =====================================================================
 * «Объявление»: карточка на главной и в сайдбаре
 * Варианты: standard · compact · overlay («Витрина») · banner («Лента») · poster («Афиша»)
 * ===================================================================== */
.nz-announcement__card {
	position: relative; display: grid; grid-template-columns: minmax(200px, .72fr) minmax(0, 1.28fr);
	min-width: 0; background: #fff; border: 1px solid #efeaf6; border-radius: 18px; overflow: hidden;
	box-shadow: 0 8px 28px rgba(140, 120, 200, .09);
}
.nz-announcement__card--no-image { grid-template-columns: 1fr; }
.nz-announcement__media {
	position: relative; min-width: 0; min-height: 230px; overflow: hidden;
	background: linear-gradient(135deg, #f6f1fc, #eef4fb);
}
.nz-announcement__media a { position: absolute; inset: 0; display: block; }
/* подложка для режима «показать целиком»: размытая копия той же картинки на весь фон рамки */
.nz-announcement__media { background: var(--nz-bg, linear-gradient(135deg, #f6f1fc, #eef4fb)) center / cover; }
.nz-announcement__card--contain .nz-announcement__media::before {
	content: ""; position: absolute; inset: 0; z-index: 0; background: var(--nz-bg) center / cover; filter: blur(22px) saturate(1.15) brightness(.97); transform: scale(1.15);
}
.nz-announcement__media img {
	position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%;
	object-fit: cover; object-position: var(--nz-pos, 50% 30%); transition: transform .55s ease;
}
.nz-announcement__card--contain .nz-announcement__media img { object-fit: contain; }
.nz-announcement__media:hover img { transform: scale(1.035); }
.nz-announcement__body {
	display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
	gap: 9px; min-width: 0; padding: 22px 28px; overflow-wrap: anywhere;
}
.nz-announcement__card--no-image .nz-announcement__body { padding: 24px 28px 24px 32px; border-left: 3px solid #e3c987; }
.nz-announcement__title { margin: 0; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.16; color: var(--nz-heading); }
.nz-announcement__title a { color: inherit; }
.nz-announcement__title a:hover { color: var(--nz-violet-deep); }
.nz-announcement__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: #a28548; font-size: 11.5px; line-height: 1.4; }
.nz-announcement__date { color: inherit; letter-spacing: .02em; }
.nz-announcement__categories a { color: var(--nz-violet); }
.nz-announcement__categories a:hover { color: var(--nz-violet-deep); text-decoration: underline; }
.nz-announcement__meta-label { color: #8f8ca2; }
.nz-announcement__text { color: var(--nz-ink); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.nz-announcement__text > :first-child { margin-top: 0; }
.nz-announcement__text > :last-child { margin-bottom: 0; }
.nz-announcement__card--auto .nz-announcement__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.nz-announcement__button { margin-top: 4px; align-self: flex-start; }
.nz-announcement__badge {
	display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.3;
	letter-spacing: .12em; text-transform: uppercase; color: #fff;
	background: linear-gradient(100deg, #e0c084, #c39a4a); box-shadow: 0 4px 12px rgba(190, 150, 70, .3);
}
.nz-announcement__media .nz-announcement__badge { position: absolute; z-index: 3; top: 12px; left: 12px; }

/* --- compact: ниже по высоте --- */
.nz-announcement__card--compact { grid-template-columns: minmax(140px, .4fr) minmax(0, 1fr); }
.nz-announcement__card--compact .nz-announcement__media { min-height: 150px; }
.nz-announcement__card--compact .nz-announcement__body { padding: 14px 20px; gap: 6px; }
.nz-announcement__card--compact .nz-announcement__title { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.22; }
.nz-announcement__card--compact .nz-announcement__text { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nz-announcement__card--compact .nz-announcement__button { margin-top: 0; padding: 7px 14px; font-size: 12px; }

/* --- overlay «Витрина»: картинка на всю карточку, текст на матовом стекле --- */
.nz-announcement__card--overlay { display: block; min-height: clamp(330px, 38vw, 420px); border: 0; box-shadow: 0 14px 38px rgba(140, 120, 200, .16); }
.nz-announcement__card--overlay::before {
	content: ""; position: absolute; z-index: 2; inset: 9px; border: 1px solid rgba(217, 183, 106, .65); border-radius: 12px; pointer-events: none;
}
.nz-announcement__card--overlay .nz-announcement__media { position: absolute; inset: 0; min-height: 0; }
.nz-announcement__card--overlay .nz-announcement__media img { object-position: 50% 6%; }
.nz-announcement__card--overlay .nz-announcement__title { font-size: clamp(21px, 2.1vw, 27px); }
.nz-announcement__card--overlay .nz-announcement__text { font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nz-announcement__card--overlay .nz-announcement__body {
	position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 22px; width: auto;
	padding: 16px 22px 18px; gap: 6px; border-radius: 14px;
	background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .95);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	box-shadow: 0 10px 30px rgba(110, 90, 170, .18);
}
@media (min-width: 641px) {
	/* на широком экране: текст слева, кнопка справа — стеклянная плашка низкая, лицо/центр картинки остаётся открытым */
	.nz-announcement__card--overlay:not(.nz-announcement__card--sidebar):not(.nz-announcement__card--no-image) .nz-announcement__body {
		display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 22px; align-items: center; justify-items: start;
	}
	.nz-announcement__card--overlay:not(.nz-announcement__card--sidebar):not(.nz-announcement__card--no-image) .nz-announcement__body > * { grid-column: 1; }
	.nz-announcement__card--overlay:not(.nz-announcement__card--sidebar):not(.nz-announcement__card--no-image) .nz-announcement__body > .nz-announcement__button { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
}
.nz-announcement__card--overlay.nz-announcement__card--no-image { min-height: 0; }
.nz-announcement__card--overlay.nz-announcement__card--no-image .nz-announcement__body { position: relative; left: auto; bottom: auto; width: auto; margin: 22px; }

/* --- banner «Лента»: тонкая строка с миниатюрой --- */
.nz-announcement__card--banner {
	grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 0 18px; padding: 12px;
	border-radius: 16px; background: linear-gradient(100deg, #fff 55%, #faf6ff);
}
.nz-announcement__card--banner .nz-announcement__media { width: 168px; min-height: 0; aspect-ratio: 4 / 3; border-radius: 12px; }
.nz-announcement__card--banner .nz-announcement__body { padding: 0 6px 0 0; gap: 5px; }
.nz-announcement__card--banner.nz-announcement__card--no-image { grid-template-columns: 1fr; }
.nz-announcement__card--banner.nz-announcement__card--no-image .nz-announcement__body { padding: 10px 14px 10px 18px; }
.nz-announcement__card--banner .nz-announcement__title { font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.nz-announcement__card--banner .nz-announcement__text { font-size: 13px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nz-announcement__card--banner .nz-announcement__button {
	margin-top: 0; padding: 0; min-height: 0; border: 0; background: none; box-shadow: none; font-size: 12.5px; color: var(--nz-violet-deep);
}
.nz-announcement__card--banner .nz-announcement__media .nz-announcement__badge { top: 6px; left: 6px; padding: 2px 8px; font-size: 8.5px; letter-spacing: .08em; }
.nz-announcement__card--banner .nz-announcement__button:hover { background: none; box-shadow: none; text-decoration: underline; }

/* --- poster «Афиша»: по центру, картинка-лента сверху --- */
.nz-announcement__card--poster { display: block; text-align: center; }
.nz-announcement__card--poster .nz-announcement__media { min-height: 0; aspect-ratio: 30 / 9; }
.nz-announcement__card--poster .nz-announcement__media::after {
	content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 38%; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}
.nz-announcement__card--poster .nz-announcement__body { align-items: center; padding: 6px 30px 28px; gap: 10px; position: relative; z-index: 2; }
.nz-announcement__card--poster .nz-announcement__body::before { content: ""; width: 54px; height: 2px; margin-bottom: 2px; background: linear-gradient(90deg, rgba(217,183,106,0), #d9b76a, rgba(217,183,106,0)); }
.nz-announcement__card--poster .nz-announcement__title { font-size: clamp(24px, 2.8vw, 34px); }
.nz-announcement__card--poster .nz-announcement__meta { justify-content: center; }
.nz-announcement__card--poster .nz-announcement__text { max-width: 58ch; }
.nz-announcement__card--poster .nz-announcement__button { align-self: center; }
.nz-announcement__card--poster.nz-announcement__card--no-image .nz-announcement__body { padding-top: 26px; border-left: 0; }

/* ---------- Планшет: две колонки, картинка не растягивается ---------- */
@media (min-width: 641px) and (max-width: 1024px) {
	.nz-announcement__card { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); }
	.nz-announcement__card--compact { grid-template-columns: minmax(150px, .42fr) minmax(0, 1fr); }
	.nz-announcement__card--banner { grid-template-columns: 150px minmax(0, 1fr); }
	.nz-announcement__card--banner .nz-announcement__media { width: 150px; }
	.nz-announcement__card--overlay, .nz-announcement__card--poster { display: block; }
	.nz-announcement__card--overlay { min-height: 340px; }
	.nz-announcement__card--poster .nz-announcement__media { aspect-ratio: 3.4 / 1; }
	.nz-announcement__body { padding: 20px 24px; }
}

/* ---------- Телефон (портрет): всё в одну колонку ---------- */
@media (max-width: 640px) {
	.nz-announcement__card, .nz-announcement__card--compact { grid-template-columns: 1fr; border-radius: 16px; }
	.nz-announcement__media, .nz-announcement__card--compact .nz-announcement__media { min-height: 0; aspect-ratio: 16 / 9; }
	.nz-announcement__card--compact .nz-announcement__media { aspect-ratio: 2.4 / 1; }
	.nz-announcement__body { padding: 16px 18px 18px; gap: 8px; }
	.nz-announcement__card--no-image .nz-announcement__body { padding: 18px 18px 18px 20px; }
	.nz-announcement__title { font-size: 22px; }
	.nz-announcement__text { font-size: 13.5px; line-height: 1.6; }
	.nz-announcement__button { padding: 9px 16px; font-size: 13px; }

	.nz-announcement__card--overlay { display: block; min-height: 0; }
	.nz-announcement__card--overlay .nz-announcement__media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
	.nz-announcement__card--overlay .nz-announcement__body {
		position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -54px 12px 12px; padding: 15px 16px 17px;
	}
	.nz-announcement__card--overlay::before { inset: 7px; }

	.nz-announcement__card--banner { grid-template-columns: 112px minmax(0, 1fr); gap: 0 13px; padding: 10px; }
	.nz-announcement__card--banner .nz-announcement__media { width: 112px; aspect-ratio: 4 / 3; border-radius: 10px; }
	.nz-announcement__card--banner .nz-announcement__title { font-size: 18px; }
	.nz-announcement__card--banner .nz-announcement__text { font-size: 12.5px; -webkit-line-clamp: 2; }
	.nz-announcement__card--banner .nz-announcement__button { padding: 0; font-size: 12.5px; }

	.nz-announcement__card--poster .nz-announcement__media { aspect-ratio: 16 / 7; }
	.nz-announcement__card--poster .nz-announcement__body { padding: 4px 18px 22px; }
	.nz-announcement__card--poster .nz-announcement__title { font-size: 24px; }
}

/* ---------- Телефон боком / низкий экран: компактные карточки ---------- */
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1024px) {
	.nz-announcement { margin-bottom: 22px; }
	.nz-announcement__card, .nz-announcement__card--compact { grid-template-columns: minmax(120px, .34fr) minmax(0, 1fr); }
	.nz-announcement__media, .nz-announcement__card--compact .nz-announcement__media { min-height: 0; aspect-ratio: auto; max-height: none; }
	.nz-announcement__card { min-height: 130px; }
	.nz-announcement__body { padding: 10px 16px; gap: 4px; }
	.nz-announcement__title { font-size: 18px; }
	.nz-announcement__text { font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
	.nz-announcement__button { padding: 6px 12px; min-height: 0; font-size: 11.5px; }
	.nz-announcement__card--overlay { display: block; min-height: 220px; }
	.nz-announcement__card--overlay .nz-announcement__media { position: absolute; inset: 0; aspect-ratio: auto; }
	.nz-announcement__card--overlay .nz-announcement__body { position: absolute; left: 14px; right: 14px; bottom: 14px; width: auto; margin: 0; padding: 10px 14px 12px; }
	.nz-announcement__card--banner { grid-template-columns: 96px minmax(0, 1fr); }
	.nz-announcement__card--banner .nz-announcement__media { width: 96px; aspect-ratio: 1 / 1; }
	.nz-announcement__card--poster { display: grid; text-align: left; grid-template-columns: minmax(120px, .34fr) minmax(0, 1fr); }
	.nz-announcement__card--poster .nz-announcement__media { aspect-ratio: auto; }
	.nz-announcement__card--poster .nz-announcement__media::after, .nz-announcement__card--poster .nz-announcement__body::before { display: none; }
	.nz-announcement__card--poster .nz-announcement__body { align-items: flex-start; padding: 10px 16px; }
	.nz-announcement__card--poster .nz-announcement__meta { justify-content: flex-start; }
	.nz-announcement__card--poster .nz-announcement__button { align-self: flex-start; }
}

/* --- arch «Арка»: картинка в сводчатой золотой рамке, текст рядом --- */
.nz-announcement__card--arch {
	grid-template-columns: minmax(190px, .62fr) minmax(0, 1.38fr); align-items: center; gap: 0 26px;
	padding: 20px 26px 20px 20px; background: linear-gradient(160deg, #fbf8ff 0%, #fff 55%);
}
.nz-announcement__card--arch .nz-announcement__media {
	position: relative; min-height: 0; aspect-ratio: 3 / 4; border-radius: 130px 130px 14px 14px;
	box-shadow: 0 0 0 1px rgba(217, 183, 106, .55), 0 0 0 7px #fff, 0 0 0 8px rgba(217, 183, 106, .35), 0 14px 30px rgba(140, 120, 200, .18);
}
.nz-announcement__card--arch .nz-announcement__body { padding: 0; }
.nz-announcement__card--arch .nz-announcement__title::before {
	content: ""; display: block; width: 46px; height: 2px; margin-bottom: 10px;
	background: linear-gradient(90deg, #d9b76a, rgba(217, 183, 106, .1));
}
.nz-announcement__card--arch.nz-announcement__card--no-image { display: block; padding: 24px 28px; }
.nz-announcement__card--arch.nz-announcement__card--no-image .nz-announcement__body { border-left: 3px solid #e3c987; padding-left: 18px; }
@media (min-width: 641px) and (max-width: 1024px) { .nz-announcement__card--arch { grid-template-columns: minmax(170px, .56fr) minmax(0, 1.44fr); gap: 0 20px; } }
@media (max-width: 640px) {
	.nz-announcement__card--arch { grid-template-columns: 1fr; padding: 22px 20px 20px; text-align: center; justify-items: center; }
	.nz-announcement__card--arch .nz-announcement__media { width: 62%; aspect-ratio: 3 / 4; margin-bottom: 16px; border-radius: 120px 120px 10px 10px; }
	.nz-announcement__card--arch .nz-announcement__title::before { margin-inline: auto; }
	.nz-announcement__card--arch .nz-announcement__meta, .nz-announcement__card--arch .nz-announcement__text { text-align: left; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1024px) {
	.nz-announcement__card--arch { grid-template-columns: minmax(100px, .3fr) minmax(0, 1fr); gap: 0 16px; padding: 10px 16px; }
	.nz-announcement__card--arch .nz-announcement__media { aspect-ratio: 3 / 4; border-radius: 60px 60px 8px 8px; box-shadow: 0 0 0 1px rgba(217,183,106,.5), 0 0 0 4px #fff, 0 0 0 5px rgba(217,183,106,.3); }
	.nz-announcement__card--arch .nz-announcement__title::before { display: none; }
}
.nz-announcement__card--sidebar.nz-announcement__card--arch { display: block; padding: 0; background: none; text-align: center; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__media { width: 66%; margin: 0 auto 14px; aspect-ratio: 3 / 4; border-radius: 110px 110px 10px 10px; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__body { align-items: center; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__title::before { margin-inline: auto; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__meta, .nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__text { text-align: left; }

/* =====================================================================
 * Та же карточка в боковой колонке (ширина ~300px)
 * ===================================================================== */
.nz-announcement__card.nz-announcement__card--sidebar {
	display: block; min-height: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: left;
}
.nz-announcement__card--sidebar::before { display: none; }
.nz-announcement__card--sidebar .nz-announcement__media {
	min-height: 0; max-height: none; aspect-ratio: 16 / 10; margin-bottom: 13px; border-radius: 12px; width: auto;
}
.nz-announcement__card--sidebar .nz-announcement__media::after { display: none; }
.nz-announcement__card--sidebar .nz-announcement__body, .nz-announcement__card--sidebar.nz-announcement__card--no-image .nz-announcement__body {
	padding: 0; gap: 9px; border-left: 0; align-items: flex-start; position: static; width: auto; margin: 0;
	background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0;
}
.nz-announcement__card--sidebar .nz-announcement__body::before { display: none; }
.nz-announcement__card--sidebar .nz-announcement__title { font-size: 22px; }
.nz-announcement__card--sidebar .nz-announcement__text { font-size: 13px; line-height: 1.7; }
.nz-announcement__card--sidebar .nz-announcement__meta { font-size: 11px; }
.nz-announcement__card--sidebar .nz-announcement__button { margin-top: 4px; padding: 8px 16px; font-size: 12.5px; }

/* sidebar · overlay */
.nz-announcement__card--sidebar.nz-announcement__card--overlay { position: relative; }
.nz-announcement__card--sidebar.nz-announcement__card--overlay .nz-announcement__media { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: 14px; }
.nz-announcement__card--sidebar.nz-announcement__card--overlay .nz-announcement__body {
	position: absolute; z-index: 3; left: 9px; right: 9px; bottom: 9px; padding: 12px 14px 14px; gap: 6px;
	background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .95); border-radius: 12px;
	-webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
	box-shadow: 0 8px 22px rgba(110, 90, 170, .18);
}
.nz-announcement__card--sidebar.nz-announcement__card--overlay .nz-announcement__title { font-size: 19px; line-height: 1.2; }
.nz-announcement__card--sidebar.nz-announcement__card--overlay .nz-announcement__text { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nz-announcement__card--sidebar.nz-announcement__card--overlay .nz-announcement__button { padding: 6px 13px; font-size: 12px; }
.nz-announcement__card--sidebar.nz-announcement__card--overlay.nz-announcement__card--no-image .nz-announcement__body { position: static; background: rgba(246, 241, 252, .6); padding: 14px; }

/* sidebar · banner */
.nz-announcement__card--sidebar.nz-announcement__card--banner { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 0 12px; align-items: start; padding: 0; background: none; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__media { width: 78px; aspect-ratio: 1 / 1; margin: 0; border-radius: 10px; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__title { font-size: 17px; line-height: 1.22; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__text { font-size: 12.5px; line-height: 1.5; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; grid-column: 1 / -1; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__body { display: contents; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__title,
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__meta { grid-column: 2; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__text,
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__button { grid-column: 1 / -1; margin-top: 8px; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__button { padding: 0; min-height: 0; border: 0; background: none; box-shadow: none; font-size: 12.5px; margin-top: 6px; }
.nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__button { justify-self: start; align-self: start; }
.nz-announcement__card--sidebar.nz-announcement__card--banner.nz-announcement__card--no-image { display: block; }

/* sidebar · poster */
.nz-announcement__card--sidebar.nz-announcement__card--poster { text-align: center; }
.nz-announcement__card--sidebar.nz-announcement__card--poster .nz-announcement__media { aspect-ratio: 16 / 9; }
.nz-announcement__card--sidebar.nz-announcement__card--poster .nz-announcement__body { align-items: center; }
.nz-announcement__card--sidebar.nz-announcement__card--poster .nz-announcement__meta { justify-content: center; }
.nz-announcement__card--sidebar.nz-announcement__card--poster .nz-announcement__title { font-size: 23px; }
.nz-announcement__card--sidebar.nz-announcement__card--poster .nz-announcement__button { align-self: center; }

/* панель мобильного сайдбара: карточка на всю ширину панели */
@media (max-width: 768px) {
	.nz-msb-on .nz-announcement__card--sidebar .nz-announcement__media { aspect-ratio: 16 / 10; }
	.nz-msb-on .nz-announcement__card--sidebar.nz-announcement__card--overlay .nz-announcement__media { aspect-ratio: 4 / 5; }
	.nz-msb-on .nz-announcement__card--sidebar.nz-announcement__card--banner .nz-announcement__media { aspect-ratio: 1 / 1; }
	.nz-msb-on .nz-announcement__card--sidebar.nz-announcement__card--poster .nz-announcement__media { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) { .nz-announcement__media img { transition: none; } }

/* ---------- 6.9.4: «Арка» — настоящее арочное окно (полукруглый верх), двойная золотая рамка ---------- */
.nz-announcement__card--arch {
	background: radial-gradient(circle at 17% 50%, #f1e9ff 0, rgba(241, 233, 255, 0) 52%), #fff;
}
.nz-announcement__card--arch .nz-announcement__media,
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__media {
	aspect-ratio: 4 / 5;
	border-radius: 12px;   /* прямоугольное окошко с чуть скруглёнными углами */
	box-shadow:
		0 0 0 3px #fff,
		0 0 0 4.5px #d9b76a,
		0 0 0 9px #fff,
		0 0 0 10px rgba(217, 183, 106, .5),
		0 20px 38px rgba(140, 120, 200, .24);
}
.nz-announcement__card--arch .nz-announcement__media::after {
	content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -46px 46px -34px rgba(255, 255, 255, .6);
}
/* метка не режется дугой — «ленточка» внизу окна по центру */
.nz-announcement__card--arch .nz-announcement__media .nz-announcement__badge {
	top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3; white-space: nowrap;
}
@media (max-width: 640px) {
	.nz-announcement__card--arch .nz-announcement__media { width: 66%; border-radius: 12px; margin-bottom: 18px; }
}
@media (orientation: landscape) and (max-height: 520px) and (max-width: 1024px) {
	.nz-announcement__card--arch .nz-announcement__media {
		border-radius: 12px;
		box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d9b76a, 0 0 0 6px #fff, 0 8px 18px rgba(140, 120, 200, .2);
	}
}
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__media { width: 70%; margin-bottom: 20px; }
.nz-announcement__card--arch:not(.nz-announcement__card--no-image) { padding-top: 26px; padding-bottom: 26px; }
.nz-announcement__card--sidebar.nz-announcement__card--arch { padding: 0; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__title,
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__text { text-align: center; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__meta { justify-content: center; text-align: center; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__button { align-self: center; }


/* =====================================================================
 * 6.9.6
 * ===================================================================== */

/* ---------- Шапка-баннер на компьютере: всегда на всю ширину, без «фиолетового тумана» по бокам ---------- */
@media (min-width: 641px) and (min-height: 651px), (min-width: 1101px) {
	.nz-hero:not(.nz-hero--short) { height: auto; aspect-ratio: 2038 / 560; max-height: 700px; }
	.nz-hero--short { height: auto; aspect-ratio: 2038 / 500; max-height: 600px; }
	.nz-hero .nz-hero__fill { display: none; }
	.nz-hero .nz-hero__pic {
		inset: 0; left: 0; top: 0; bottom: 0; transform: none; width: 100%; height: 100%; aspect-ratio: auto;
		background-size: cover; background-position: center 20%; -webkit-mask-image: none; mask-image: none;
	}
}

/* ---------- Телефон боком: аккуратная шапка с нормальным зазором до контента ---------- */
@media (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
	.nz-layout { padding-top: 24px; }
	.nz-welcome--card { margin-top: 0; }
	/* непрозрачная шапка без размытия фона: на телефонах именно «стекло» давало мерцающую белую полоску при прокрутке */
	.nz-topbar, .nz-topbar.is-scrolled {
		background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
		border-bottom: 0; box-shadow: 0 1px 0 #ece8f5; top: -1px; padding-top: 1px;
	}
}
@media (max-width: 768px) {
	.nz-topbar, .nz-topbar.is-scrolled {
		background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
		border-bottom: 0; box-shadow: 0 1px 0 #ece8f5; top: -1px; padding-top: 1px;
	}
}

/* ---------- «Окно» на главной: чуть ниже по высоте (подрезан низ картинки) ---------- */
.nz-announcement__card--arch .nz-announcement__media,
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__media { aspect-ratio: 10 / 9; }
.nz-announcement__card--arch .nz-announcement__media img { object-position: var(--nz-pos, 50% 10%); }
.nz-announcement__card--arch:not(.nz-announcement__card--no-image) { padding-top: 24px; padding-bottom: 24px; }

/* ---------- «Окно» в виджете: широкое невысокое окошко, компактный текст ---------- */
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__media {
	width: calc(100% - 22px); margin: 4px auto 16px; aspect-ratio: 4 / 3;
}
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__title { font-size: 20px; line-height: 1.2; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__title::before { margin-bottom: 8px; }
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__text {
	font-size: 12.5px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.nz-announcement__card--sidebar.nz-announcement__card--arch .nz-announcement__body { gap: 7px; }
@media (max-width: 640px) {
	.nz-announcement__card--arch .nz-announcement__media { width: 78%; aspect-ratio: 10 / 9; }
}

/* =====================================================================
 * 6.9.8 — телефон: замок (мягкие края «запечены» в картинку), компактные блоки в горизонтальной раскладке
 * ===================================================================== */

/* ---------- Замок, вертикальный телефон ---------- */
@media (max-width: 640px) and (orientation: portrait) {
	.nz-welcome--card .nz-welcomecard__art {
		position: relative; inset: auto; display: block; width: 100%; margin: 0 auto;
		height: clamp(210px, 66vw, 290px); aspect-ratio: auto; max-height: none;
		background: url('../images/welcome-castle-m2.webp') center / contain no-repeat;
		-webkit-mask-image: none; mask-image: none; filter: none;
	}
	.nz-welcome--card .nz-welcomecard__art::after { display: none; }
	.nz-welcome--card .nz-welcomecard__in { margin-top: -30px; padding: 0 2px; }
	.nz-welcome--card { margin-top: -10px; }
}

/* ---------- Горизонтальный телефон: всё компактнее, ничего не «во весь экран» ---------- */
@media (orientation: landscape) and (max-height: 650px) and (max-width: 1100px) {
	/* приветствие: текст слева, замок справа, без наезда на шапку */
	.nz-welcome--card { margin: 0 0 26px; }
	.nz-welcome--card .nz-welcomecard { display: flex; align-items: center; min-height: 230px; padding: 10px 0; }
	.nz-welcome--card .nz-welcomecard__art {
		position: absolute; inset: 0 0 0 auto; width: 46%; height: 100%; margin: 0; aspect-ratio: auto; max-height: none;
		background: url('../images/welcome-castle-m2.webp') 55% 50% / contain no-repeat;
		-webkit-mask-image: none; mask-image: none; filter: none;
	}
	.nz-welcome--card .nz-welcomecard__art::after { display: none; }
	.nz-welcome--card .nz-welcomecard__in { position: relative; z-index: 2; max-width: 58%; margin: 0; padding: 4px 2px; }
	.nz-welcomecard .nz-welcome__title { margin-top: 12px; font-size: clamp(22px, 3.3vw, 30px); }
	.nz-welcome__body, .nz-welcome__body p { font-size: 13px; line-height: 1.55; }

	/* секции и карточки */
	.nz-section { margin-bottom: 26px; }
	.nz-section__head { margin-bottom: 12px; padding-bottom: 8px; }
	.nz-section__title { font-size: clamp(21px, 3vw, 26px); }
	.nz-card .nz-card__media, .nz-grid--slider .nz-card__media { aspect-ratio: 2.5 / 1; max-height: 130px; overflow: hidden; }
	.nz-card .nz-card__media img { width: 100%; height: 100%; object-fit: cover; }
	.nz-card .nz-card__body { padding: 10px 12px 12px; gap: 5px; }
	.nz-card .nz-card__title { font-size: 15px; line-height: 1.25; }
	.nz-card .nz-card__excerpt { display: none; }
	.nz-card .nz-card__price { font-size: 13px; }
	.nz-card .nz-btn--small { padding: 6px 12px; font-size: 12px; min-height: 0; }
	.nz-grid--slider > .nz-card { --c: 3.1; flex-basis: calc((100% - (var(--c) - 1) * 12px) / var(--c)); }
	.nz-grid:not(.nz-grid--slider) { grid-template-columns: repeat(3, 1fr); }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles { flex-direction: column; }
	.nz-grid:not(.nz-grid--slider) .nz-card--articles .nz-card__media { aspect-ratio: 2.5 / 1; position: relative; }

	/* крупные декоративные блоки */
	.nz-metatron { height: auto; min-height: 0; max-height: none; aspect-ratio: auto; }
	.nz-metatron__in { padding: 18px 26px; }
	.nz-metatron__text { font-size: 15px; line-height: 1.5; }
	.nz-metatron__name { margin-top: 12px; }
	.nz-metatron__btn { margin-top: 12px; padding: 7px 18px; }
	.nz-epilogue { min-height: 0; margin-top: 22px; padding: 26px 22px; }
	.nz-epilogue__text { font-size: calc(var(--nz-epi-size, 24) * .58px); line-height: 1.4; }

	/* боковые блоки (стоят под контентом в 2 колонки) */
	.nz-sidebar { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nz-side-card { padding: 16px 18px; }
	.nz-golden__media img { aspect-ratio: 2.6 / 1; object-position: 50% 22%; }
	.nz-tcloud { --nz-tcloud-h: 230px; }
	.nz-book--main .nz-book__cover { width: 82px; }
	.nz-book__title { font-size: 21px; }
	.nz-layout { gap: 26px; }
}


/* ---------- Плашки на карточках: «Идёт набор» / «Набор закрыт» ---------- */
.nz-card { position: relative; }
.nz-card__status {
	position: absolute; z-index: 4; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 7px;
	padding: 6px 13px 6px 11px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.2;
	letter-spacing: .09em; text-transform: uppercase; color: #fff; pointer-events: none;
	box-shadow: 0 6px 16px rgba(80, 60, 120, .22);
}
.nz-card__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); flex: none; }
.nz-card__status--open { background: linear-gradient(100deg, #e7c47c, #c8963f); }
.nz-card__status--open::before { animation: nzStatusPulse 2.4s ease-in-out infinite; }
.nz-card__status--closed { background: linear-gradient(100deg, #9a97b8, #77759b); }
.nz-card__status--closed::before { background: rgba(255, 255, 255, .7); box-shadow: none; }
@keyframes nzStatusPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); } 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .nz-card__status--open::before { animation: none; } }
@media (max-width: 640px), (orientation: landscape) and (max-height: 650px) {
	.nz-card__status { top: 9px; left: 9px; padding: 5px 10px 5px 9px; font-size: 10px; }
}

/* =====================================================================
 * 6.9.9
 * ===================================================================== */

/* ---------- Замок, вертикальный телефон: широкая сцена, замок правее центра, края растворены ---------- */
@media (max-width: 640px) and (orientation: portrait) {
	.nz-welcome--card { margin-top: -36px; }
	.nz-welcome--card .nz-welcomecard__art {
		width: 100%; height: auto; aspect-ratio: 1350 / 870; max-height: none; margin: 0;
		background: url('../images/welcome-castle-wide.webp') center / 100% 100% no-repeat;
	}
	.nz-welcome--card .nz-welcomecard__in { margin-top: -64px; }
}

/* ---------- Баннер: без швов на дробных пикселях экрана (cover вместо contain) ---------- */
@media (max-width: 640px), (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
	.nz-hero--m-strip .nz-hero__pic { background-size: cover; background-position: center; background-color: transparent; }
}
@media (orientation: landscape) and (max-width: 1100px) and (max-height: 650px) {
	/* шапка сайта: без смещения на 1px — оно могло давать светлую полоску под шапкой */
	.nz-topbar, .nz-topbar.is-scrolled { top: 0; padding-top: 0; }
	/* нижний край баннера мягко переходит в страницу, а не обрезается жёсткой линией */
	.nz-hero--m-strip .nz-hero__pic {
		-webkit-mask-image: linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0, #000 90%, transparent 100%);
	}
}

/* ---------- Третья плашка («Самостоятельный курс») и перенос длинных надписей ---------- */
.nz-card__status { max-width: calc(100% - 24px); white-space: normal; line-height: 1.25; }
.nz-card__status--self { background: linear-gradient(100deg, #86bfcc, #5f9fb5); }

/* ---------- Режим диагностики: сайт?nzdebug=1 — обводит блоки и подписывает тапнутый элемент ---------- */
html.nz-debug * { outline: 1px solid rgba(255, 0, 80, .35) !important; outline-offset: -1px; }
.nz-debug-tip {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483647; padding: 8px 10px; pointer-events: none;
	background: rgba(20, 10, 40, .88); color: #fff; font: 12px/1.35 monospace; word-break: break-all;
}

/* =====================================================================
 * 6.9.10
 * ===================================================================== */

/* ---------- Плашки: компактнее и контрастнее ---------- */
.nz-card__status { padding: 5px 11px 5px 9px; font-size: 10.5px; letter-spacing: .06em; gap: 6px; }
.nz-card__status--self { background: linear-gradient(100deg, #4f9bb3, #34799a); }
/* стеклянный вариант: светлая плашка с цветной точкой — меньше «давит» на картинку */
.nz-card__status--s-glass {
	color: #4a4570; background: rgba(255, 255, 255, .82);
	-webkit-backdrop-filter: blur(8px) saturate(1.2); backdrop-filter: blur(8px) saturate(1.2);
	border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 4px 14px rgba(80, 60, 120, .16);
}
.nz-card__status--s-glass::before { background: #c8963f; box-shadow: none; animation: none; }
.nz-card__status--s-glass.nz-card__status--closed::before { background: #8e8ab0; }
.nz-card__status--s-glass.nz-card__status--self::before { background: #3f8fa8; }
/* строка над названием */
.nz-card__chip {
	display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 8px; padding: 4px 11px 4px 9px;
	border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.25; letter-spacing: .06em; text-transform: uppercase; color: #fff;
}
.nz-card__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; flex: none; }
.nz-card__chip--open { background: linear-gradient(100deg, #e7c47c, #c8963f); }
.nz-card__chip--closed { background: linear-gradient(100deg, #9a97b8, #77759b); }
.nz-card__chip--self { background: linear-gradient(100deg, #4f9bb3, #34799a); }

/* ---------- Горизонтальный телефон: меньше колонок в слайдере на узких экранах ---------- */
@media (orientation: landscape) and (max-height: 650px) and (max-width: 700px) {
	.nz-grid--slider > .nz-card { --c: 2.5; }
}

/* =====================================================================
 * 6.9.11 — плашки: вернули прежний вид; «Самостоятельный курс» — в сиреневой гамме сайта
 * ===================================================================== */
.nz-card__status { padding: 6px 13px 6px 11px; font-size: 11px; letter-spacing: .09em; gap: 7px; }
.nz-card__status--open { background: linear-gradient(100deg, #e7c47c, #c8963f); }
.nz-card__status--closed { background: linear-gradient(100deg, #9a97b8, #77759b); }
.nz-card__status--self {
	background: linear-gradient(100deg, #b7a2ea, #8a6fd2);
	font-size: 10.5px; letter-spacing: .05em; white-space: nowrap;
}
.nz-card__status--s-glass.nz-card__status--self::before { background: #8a6fd2; }
.nz-card__chip--self { background: linear-gradient(100deg, #b7a2ea, #8a6fd2); }
@media (max-width: 640px), (orientation: landscape) and (max-height: 650px) {
	.nz-card__status { padding: 5px 10px 5px 9px; font-size: 10px; letter-spacing: .07em; }
	.nz-card__status--self { font-size: 9.5px; letter-spacing: .04em; }
}

/* ---------- 6.9.11: вертикальный телефон — замок справа, приветствие слева (как на компьютере) ---------- */
@media (max-width: 640px) and (orientation: portrait) {
	.nz-welcome--card { margin-top: 0; padding-top: 4px; }
	.nz-welcome--card .nz-welcomecard { display: block; }
	.nz-welcome--card .nz-welcomecard::after { content: ""; display: block; clear: both; }
	.nz-welcome--card .nz-welcomecard__art {
		position: relative; inset: auto; float: right; width: 59%; height: auto; aspect-ratio: 800 / 570; max-height: none;
		margin: -6px -10px 4px 4px;
		background: url('../images/welcome-castle-side.webp') center / 100% 100% no-repeat;
		-webkit-mask-image: none; mask-image: none; filter: none;
	}
	.nz-welcome--card .nz-welcomecard__art::after { display: none; }
	.nz-welcome--card .nz-welcomecard__in { position: static; max-width: none; margin: 0; padding: 0 2px; }
	.nz-welcome--card .nz-eyebrow { font-size: 10px; letter-spacing: .14em; gap: 8px; flex-wrap: wrap; }
	.nz-welcome--card .nz-eyebrow svg { width: 28px; height: 20px; }
	.nz-welcome--card .nz-eyebrow__line { display: none; }
	.nz-welcome--card .nz-welcome__title { margin-top: 8px; font-size: clamp(22px, 6.3vw, 27px); line-height: 1.16; }
	.nz-welcome--card .nz-welcome__body { clear: both; margin-top: 4px; }
}

/* =====================================================================
 * 6.9.12 — плашки: спокойная палитра (золото / дымчатая слива / жемчуг), ничего не вылезает за край;
 *          вертикальный телефон: приветствие ближе к шапке, золотая черта вернулась, заголовок в 3 строки
 * ===================================================================== */
.nz-card__status { max-width: calc(100% - 24px); white-space: normal; line-height: 1.2; }
.nz-card__status--open { background: linear-gradient(100deg, #e7c47c, #c8963f); }
/* «Набор закрыт» — полупрозрачная дымчатая слива: спокойно ложится на любую картинку */
.nz-card__status--closed {
	background: rgba(88, 76, 122, .74);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	box-shadow: 0 6px 16px rgba(60, 45, 100, .22);
}
.nz-card__status--closed::before { background: rgba(255, 255, 255, .78); box-shadow: none; }
/* «Самостоятельный курс» — жемчужная плашка с сиреневым текстом: не кричит, читается на любой картинке */
.nz-card__status--self {
	background: rgba(255, 255, 255, .92); color: #6a57ad; border: 1px solid rgba(255, 255, 255, .96);
	font-size: 9.5px; letter-spacing: .035em; box-shadow: 0 5px 14px rgba(70, 55, 120, .2);
}
.nz-card__status--self::before { background: #9a82dc; box-shadow: none; }
.nz-card__status--s-glass.nz-card__status--closed { color: #4a4570; background: rgba(255, 255, 255, .82); }
.nz-card__status--s-glass.nz-card__status--closed::before { background: #8e8ab0; }
.nz-card__status--s-glass.nz-card__status--self::before { background: #9a82dc; }
.nz-card__chip--closed { background: rgba(104, 92, 140, .9); }
.nz-card__chip--self { background: #f1ecfb; color: #6a57ad; box-shadow: inset 0 0 0 1px #ddd2f5; }
.nz-card__chip--self::before { background: #9a82dc; }
@media (max-width: 640px), (orientation: landscape) and (max-height: 650px) {
	.nz-card__status--self { font-size: 9px; letter-spacing: .03em; }
}

@media (max-width: 640px) and (orientation: portrait) {
	.nz-layout { padding-top: 6px; }
	.nz-welcome--card { margin-top: 6px; }
	/* замок справа, начинается под строкой «Добро пожаловать»; текст его не перекрывает */
	.nz-welcome--card .nz-welcomecard__art {
		float: right; width: 58%; margin: 30px -14px 2px -4%;
	}
	/* строка «Добро пожаловать» + золотая черта — на всю ширину, как раньше */
	.nz-welcome--card .nz-eyebrow { flex-wrap: nowrap; white-space: nowrap; gap: 8px; }
	.nz-welcome--card .nz-eyebrow__line { display: block; flex: 1 1 24px; min-width: 24px; }
	/* заголовок — три строки */
	.nz-welcome--card .nz-welcome__title { margin-top: 10px; font-size: clamp(20px, 5.7vw, 25px); line-height: 1.17; }
}
