/* =====================================================================
   «Вестник чародея» — школьный журнал Хогвартса (1.112.0, оформление 1.113.0, иллюстрации 1.114.0)
   Оформление по образцу администрации: сливовая кожа с золотым орнаментом,
   волшебная редакция и Косой переулок в шапке, рваный пергамент,
   золотые рамки и завитки. Сайт не растягивается шире 1240px.
   Заголовки — Cormorant, текст — PT Serif.
   ===================================================================== */
:root {
	--mz-night: #24102f;
	--mz-night-2: #2e1440;
	--mz-plum: #3a1650;
	--mz-ink: #2a1a2c;
	--mz-ink-2: #5e4a52;
	--mz-paper: #fffdf8;
	--mz-paper-2: #f1e3c2;
	--mz-card: rgba(255, 249, 234, .74);
	--mz-line: #e3dacb;
	--mz-line-g: rgba(150, 104, 40, .42);
	--mz-gold: #e0ad4f;
	--mz-gold-hi: #f3d999;
	--mz-cream: #f6ecd6;
	--mz-acc: #c2185b;
	--mz-display: "Cormorant Garamond", Georgia, serif;
	--mz-caps: "Cormorant SC", "Cormorant Garamond", Georgia, serif;
	--mz-text: "PT Serif", Georgia, serif;
	--mz-ui: "PT Serif", Georgia, serif;
}
* { box-sizing: border-box; }
.mz [hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.mz { margin: 0; min-height: 100vh; color: var(--mz-ink); font: 17px/1.6 var(--mz-text);
	background: #1a0b24 url("images/magazine/mz-leather.webp") center top / 420px; }
.mz-shell { position: relative; max-width: 1240px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column;
	background: #efdcb4 url("images/magazine/mz-parchment.webp") center top / 520px;
	box-shadow: 0 0 0 1px rgba(224, 173, 79, .35), 0 0 60px rgba(0, 0, 0, .7); }
.mz a { color: inherit; }
.mz img { max-width: 100%; }
.mz-skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: #fff; color: #000; }
.mz-skip:focus { left: 8px; }
.mz :focus-visible { outline: 3px solid var(--mz-gold); outline-offset: 2px; }

/* золотая рамка (образец: «Набор винтажных золотых рамок») — кладётся псевдоэлементом */
.mz-top::after, .mz-foot::after, .mz-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	border: 30px solid transparent; border-image: url("images/magazine/mz-frame.webp") 115 / 30px stretch; }
.mz-panel::after { border-width: 58px; border-image-width: 58px; }

/* ---------- шапка ---------- */
.mz-top { position: relative; z-index: 3; display: flex; align-items: center; gap: 10px 30px; flex-wrap: wrap; padding: 16px 40px;
	background: #2a1238 url("images/magazine/mz-orn.webp") center / 330px; color: var(--mz-cream); }
.mz-brand { display: grid; grid-template-columns: auto auto; column-gap: 12px; align-items: center; text-decoration: none; }
.mz-brand-star { display: inline-block; width: 28px; height: 28px; background: url("images/magazine/mz-star.webp") center / contain no-repeat; }
.mz-brand .mz-brand-star { grid-row: 1 / 3; }
.mz-brand-name { font: 700 30px/1 var(--mz-caps); letter-spacing: .03em; color: var(--mz-gold-hi); text-shadow: 0 1px 0 rgba(0, 0, 0, .5); }
.mz-brand-sub { font: italic 14px/1.2 var(--mz-text); color: #e3d4ee; }
.mz-nav { display: flex; gap: 6px 26px; flex-wrap: wrap; margin-left: auto; font: 17px var(--mz-text); }
.mz-nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; color: #f3ebf7; }
.mz-nav a:hover { border-bottom-color: rgba(224, 173, 79, .6); }
.mz-nav a[aria-current="page"] { border-bottom-color: var(--mz-gold); color: #fff; }
.mz-nav .mz-nav-desk { color: var(--mz-gold); }
.mz-home { font: 16px var(--mz-text); text-decoration: none; padding: 5px 16px; border: 1px solid rgba(224, 173, 79, .7); border-radius: 999px; color: var(--mz-cream); background: rgba(20, 6, 28, .35); }
.mz-home:hover { background: rgba(224, 173, 79, .18); }
.mz-band { position: relative; z-index: 3; margin: 0; padding: 9px 20px; text-align: center; font: 15.5px/1.4 var(--mz-text); color: #fbecc8;
	background: #5a3a12 url("images/magazine/mz-band.webp") center / 100% 100%; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.mz-main { flex: 1; width: 100%; }
.mz-wrap { width: min(100% - 32px, 1080px); margin: 0 auto; }
.mz-foot { position: relative; padding: 30px 48px 34px; background: #2a1238 url("images/magazine/mz-orn.webp") center / 330px; color: #ddcfe6; font-size: 15px; text-align: center; }
.mz-foot p { margin: 4px 0; }
.mz-foot-name { display: flex; justify-content: center; align-items: center; gap: 10px; font: 700 24px var(--mz-caps); color: var(--mz-gold-hi); letter-spacing: .04em; }
.mz-foot-name .mz-brand-star { width: 22px; height: 22px; }
.mz-foot a { color: var(--mz-gold-hi); }

/* ---------- кнопки, плашки ---------- */
.mz-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border: 0; border-radius: 999px; background: #3a1650 url("images/magazine/mz-btn-plum.webp") center / 100% 100%; color: var(--mz-cream); font: 700 16px var(--mz-text); text-decoration: none; cursor: pointer; }
.mz-btn:hover { filter: brightness(1.08); }
.mz a.mz-btn { color: var(--mz-cream); }
.mz-btn-gold, .mz a.mz-btn-gold { color: #3b2208; background: #d9a441 url("images/magazine/mz-btn-gold.webp") center / 100% 100%; text-shadow: 0 1px 0 rgba(255, 236, 190, .5); }
.mz-btn-plum, .mz a.mz-btn-plum { color: var(--mz-cream); background: #3a1650 url("images/magazine/mz-btn-plum.webp") center / 100% 100%; }
.mz-btn-ghost, .mz a.mz-btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.mz-btn-small { min-height: 34px; padding: 6px 14px; font-size: 14px; }
.mz-btn[disabled] { opacity: .55; cursor: wait; }
.mz-chip { display: inline-block; padding: 3px 10px 4px; border-radius: 4px; background: var(--rc, var(--mz-acc)); color: #fff; font: 700 13px/1.2 var(--mz-text); letter-spacing: .01em; }
.mz-alert { margin: 16px auto; padding: 12px 16px; border-left: 4px solid #2e7d4f; background: #eaf5ee; color: #1d4d31; width: min(100% - 32px, 1080px); }
.mz-alert.is-err { border-color: #b3262e; background: #fbecec; color: #6e1a1f; }

/* ---------- обложка номера ---------- */
.mz-cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 210 / 297; overflow: hidden; container-type: inline-size; color: var(--mz-cream); text-decoration: none; border-radius: 1.4cqw;
	background: #2a1640 url("images/magazine/mz-cover-art.webp") center 45% / cover no-repeat;
	box-shadow: inset 0 0 0 1px rgba(243, 217, 153, .35), 0 18px 40px rgba(20, 8, 30, .45); }
.mz-cover-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mz-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, color-mix(in srgb, var(--cv) 40%, rgba(22, 10, 36, .78)) 0%, rgba(22, 10, 36, 0) 25%, rgba(22, 10, 36, 0) 52%, color-mix(in srgb, var(--cv) 35%, rgba(14, 6, 24, .94)) 100%);
	box-shadow: inset 0 0 6cqw rgba(10, 4, 18, .55); }
.mz-cover > *:not(.mz-cover-art) { position: relative; z-index: 1; }
.mz-cover-stars { position: absolute !important; inset: 0; pointer-events: none; }
.mz-cover-stars i { position: absolute; display: block; background: url("images/magazine/mz-star-8.webp") center / contain no-repeat; }
.mz-cover-stars i:nth-child(even) { background-image: url("images/magazine/mz-star-4.webp"); }
.mz-cover-stars i:nth-child(1) { left: 1%; top: 1%; width: 12cqw; height: 12cqw; }
.mz-cover-stars i:nth-child(2) { right: 3%; top: 2.5%; width: 8cqw; height: 8cqw; }
.mz-cover-stars i:nth-child(3) { right: 1%; top: 19%; width: 10cqw; height: 10cqw; }
.mz-cover-stars i:nth-child(4) { left: 4%; top: 21%; width: 6cqw; height: 6cqw; }
.mz-cover-mast { padding: 4.5cqw 8cqw 0; text-align: center; }
.mz-cover-mast b.mz-cover-logo { width: 100%; height: 31cqw; font-size: 0; background: url("images/magazine/mz-title.webp") center / contain no-repeat; filter: drop-shadow(0 .5cqw .6cqw rgba(30, 10, 0, .7)); }
.mz-cover-mast b { display: block; font: 700 15cqw/.86 var(--mz-caps); letter-spacing: .01em; color: #f7e6bd; text-shadow: 0 .6cqw 0 rgba(60, 30, 10, .55), 0 0 5cqw rgba(0, 0, 0, .45); }
.mz-cover-meta { display: flex; justify-content: space-between; gap: 2cqw; margin-bottom: 3cqw; padding-bottom: 1.6cqw; border-bottom: 1px solid rgba(243, 217, 153, .6); font: italic 600 4.2cqw/1.2 var(--mz-display); color: #f3e7d0; text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.mz-cover-body { margin-top: auto; padding: 0 8cqw 7cqw; }
.mz-cover-title { margin: 0 0 3cqw; font: italic 600 7.6cqw/1.05 var(--mz-display); color: #fff6df; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.mz-cover-teasers { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.6cqw; }
.mz-cover-teasers li { padding-left: 3cqw; border-left: 1cqw solid var(--mz-gold); font: 5cqw/1.15 var(--mz-text); color: #fff8e8; text-shadow: 0 1px 8px rgba(0, 0, 0, .65); }
.mz-cover, .mz-cover *, a.mz-hero-cover, .mz-shelf a, .mz-page .mz-cover { text-decoration: none; }

/* ---------- главная: редакция у окна + Косой переулок ---------- */
.mz-hero { position: relative; padding: 40px 84px 26px 72px; color: var(--mz-cream);
	background: #22102c url("images/magazine/mz-library.webp") center -40px / 100% auto no-repeat; }
.mz-street { position: absolute; left: 30%; right: 0; bottom: 24px; height: 46%; pointer-events: none;
	background: url("images/magazine/mz-street.webp") 40% 62% / cover no-repeat;
	-webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26%); mask-image: linear-gradient(180deg, transparent 0, #000 26%); }
.mz-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 44px; pointer-events: none;
	background: url("images/magazine/mz-parchment.webp") center top / 520px;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 11 L10 17 L19 15 L32 6 L47 6 L61 6 L70 13 L90 7 L101 16 L122 15 L136 23 L144 20 L156 8 L166 11 L185 8 L202 17 L215 15 L224 6 L235 17 L249 11 L265 13 L277 19 L295 9 L311 14 L331 18 L343 23 L353 13 L371 8 L386 6 L404 19 L420 21 L432 18 L448 15 L463 20 L484 14 L501 6 L519 17 L541 20 L553 12 L570 5 L585 8 L594 6 L613 7 L625 12 L645 6 L659 15 L679 20 L700 10 L713 11 L734 22 L744 8 L755 9 L770 16 L782 5 L795 12 L811 22 L829 14 L846 17 L854 21 L873 21 L893 12 L906 7 L923 6 L932 9 L942 11 L951 5 L961 7 L974 5 L994 16 L1004 10 L1017 12 L1027 20 L1049 13 L1064 7 L1073 11 L1085 20 L1095 5 L1116 15 L1126 15 L1135 15 L1157 21 L1174 10 L1187 8 L1200 14 L1200 40 Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40 L0 11 L10 17 L19 15 L32 6 L47 6 L61 6 L70 13 L90 7 L101 16 L122 15 L136 23 L144 20 L156 8 L166 11 L185 8 L202 17 L215 15 L224 6 L235 17 L249 11 L265 13 L277 19 L295 9 L311 14 L331 18 L343 23 L353 13 L371 8 L386 6 L404 19 L420 21 L432 18 L448 15 L463 20 L484 14 L501 6 L519 17 L541 20 L553 12 L570 5 L585 8 L594 6 L613 7 L625 12 L645 6 L659 15 L679 20 L700 10 L713 11 L734 22 L744 8 L755 9 L770 16 L782 5 L795 12 L811 22 L829 14 L846 17 L854 21 L873 21 L893 12 L906 7 L923 6 L932 9 L942 11 L951 5 L961 7 L974 5 L994 16 L1004 10 L1017 12 L1027 20 L1049 13 L1064 7 L1073 11 L1085 20 L1095 5 L1116 15 L1126 15 L1135 15 L1157 21 L1174 10 L1187 8 L1200 14 L1200 40 Z'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.mz-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start; }
.mz-hero-cover { display: block; position: relative; z-index: 3; filter: drop-shadow(0 16px 26px rgba(10, 4, 18, .55)); }
a.mz-hero-cover { transition: transform .3s; }
a.mz-hero-cover:hover { transform: translateY(-4px); }
.mz-soon-cover { display: block; width: 100%; height: auto; }
.mz-panel { position: relative; margin-top: 104px; padding: 36px 48px 32px; border-radius: 10px;
	background: linear-gradient(rgba(38, 12, 52, .9), rgba(38, 12, 52, .9)), #2e1040 url("images/magazine/mz-leather.webp") center / 420px;
	box-shadow: 0 18px 40px rgba(8, 2, 14, .55); }
.mz-panel > * { position: relative; z-index: 1; }
.mz-kicker { margin: 0 0 4px; font: italic 18px var(--mz-text); color: #e8d9c0; }
.mz-panel h1 { margin: 0 0 14px; font: 700 clamp(32px, 4vw, 44px)/1.08 var(--mz-display); color: #fff6e6; }
.mz-panel p { margin: 0 0 12px; font-size: 18px; line-height: 1.55; color: #f1e6f4; }
.mz-panel p:last-child { margin-bottom: 0; }
.mz-panel a:not(.mz-btn) { color: var(--mz-gold-hi); text-underline-offset: 3px; }
.mz-hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.mz-hero-acts .mz-btn-ghost { color: var(--mz-cream); box-shadow: inset 0 0 0 1.5px rgba(224, 173, 79, .8); }

/* ---------- пергамент с завитками ---------- */
.mz-parch { position: relative; padding: 70px 92px 64px;
	background: url("images/magazine/mz-fl-tl.webp") left 14px top 12px / 150px no-repeat, url("images/magazine/mz-fl-tr.webp") right 14px top 12px / 150px no-repeat,
		url("images/magazine/mz-fl-bl.webp") left 14px bottom 14px / 150px no-repeat, url("images/magazine/mz-fl-br.webp") right 14px bottom 14px / 150px no-repeat; }
.mz-parch-short { padding: 0; height: 150px; background: url("images/magazine/mz-fl-bl.webp") left 14px bottom 14px / 150px no-repeat, url("images/magazine/mz-fl-br.webp") right 14px bottom 14px / 150px no-repeat; }
.mz-sec { margin: 0 0 44px; }
.mz-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 14px; padding-bottom: 30px;
	background: url("images/magazine/mz-divider.webp") center bottom / auto 28px no-repeat; }
.mz-sec-h h2 { margin: 0 0 6px; font: 700 32px var(--mz-display); color: var(--mz-plum); }
.mz-sec-h a { font: 16px var(--mz-text); color: #7a4a12; }
.mz-toc-l { margin: 0; padding: 0; list-style: none; }
.mz-toc-l li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--mz-line-g); }
.mz-toc-l li > a { text-decoration: none; }
.mz-toc-l li b { display: block; font: 700 22px/1.2 var(--mz-display); margin-top: 6px; color: var(--mz-ink); }
.mz-toc-l li > a:hover b { color: var(--rc, var(--mz-acc)); }
.mz-toc-l li p { margin: 2px 0 0; color: var(--mz-ink-2); font-size: 15.5px; }
.mz-toc-l li small { align-self: end; color: var(--mz-ink-2); font: italic 16px var(--mz-display); white-space: nowrap; }
.mz-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 26px; }
.mz-shelf a { text-decoration: none; }
.mz-shelf figcaption { margin-top: 10px; font: 600 18px/1.2 var(--mz-display); color: var(--mz-ink); }
.mz-shelf figcaption small { display: block; color: var(--mz-ink-2); font: 14px var(--mz-text); }
.mz-shelf figure { margin: 0; }

/* подписка: кожа, золотая рама, сова на книгах */
.mz-sub { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 250px auto; gap: 20px; align-items: center; min-height: 112px; padding: 22px 44px 22px 42px; margin-top: 70px;
	color: var(--mz-cream); border-radius: 14px; background: linear-gradient(rgba(44, 14, 58, .55), rgba(44, 14, 58, .55)), #34124a url("images/magazine/mz-leather.webp") center / 360px;
	box-shadow: 0 12px 28px rgba(60, 30, 6, .35); }
.mz-sub::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 18px solid transparent; border-image: url("images/magazine/mz-frame2.webp") 36 / 18px stretch; }
.mz-sub h2 { margin: 0 0 4px; font: 600 27px/1.15 var(--mz-display); color: #fff2d8; }
.mz-sub p { margin: 0; color: #eadff0; font-size: 15.5px; }
.mz-sub-owl { position: relative; z-index: 2; align-self: end; height: 160px; margin: -70px 0 -12px; background: url("images/magazine/mz-owl.webp") center bottom / contain no-repeat; }
.mz-sub form { margin: 0; }
.mz-sub .mz-btn { position: relative; z-index: 1; min-width: 160px; min-height: 50px; font-size: 17px; }
/* ---------- читалка ---------- */
.mz-reader { flex: 1; background: linear-gradient(rgba(26, 10, 36, .86), rgba(22, 8, 30, .95)), #1e0c2a url("images/magazine/mz-library.webp") center top / cover; color: #f6eedd; padding-bottom: 32px; }
.mz-rbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 10px clamp(16px, 3vw, 32px); background: rgba(36, 14, 50, .95) url("images/magazine/mz-leather.webp") center / 360px; border-bottom: 1px solid rgba(224, 173, 79, .55); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.mz-rbar-t { margin: 0 auto 0 0; font: 700 21px/1.1 var(--mz-display); color: #fff2d8; }
.mz-rbar-t a { text-decoration: none; }
.mz-rbar-t small { display: block; font: 14px var(--mz-ui); color: #cbbfdc; }
.mz-toggle { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.mz-toggle button { min-height: 36px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; color: #e9e0f2; font: 700 15px var(--mz-ui); cursor: pointer; }
.mz-toggle button[aria-pressed="true"] { background: var(--mz-gold); color: #2a1d08; }
.mz-rbar select { min-height: 36px; max-width: 240px; padding: 4px 10px; border-radius: 8px; border: 1px solid rgba(224, 173, 79, .45); background: #2e1440; color: #f6eedd; font: 15px var(--mz-ui); }
.mz-rbar .mz-btn { min-height: 36px; padding: 6px 14px; font-size: 15px; }
.mz-preview-note { margin: 0; padding: 10px 16px; background: #5a3a12 url("images/magazine/mz-band.webp") center / 100% 100%; color: #fbecc8; text-align: center; font: 15px var(--mz-ui); }

/* развороты */
.mz-stage { position: relative; display: flex; justify-content: center; align-items: center; padding: 28px 12px 10px; min-height: 60vh; }
.mz-book { position: relative; display: flex; perspective: 2600px; transform-origin: top center; }
.mz-slot { position: relative; width: 560px; height: 792px; }
.mz-slot:empty { visibility: hidden; }
.mz-book .mz-slot-l .mz-page { box-shadow: inset -28px 0 40px -30px rgba(0, 0, 0, .45), -6px 10px 30px rgba(0, 0, 0, .45); }
.mz-book .mz-slot-r .mz-page { box-shadow: inset 28px 0 40px -30px rgba(0, 0, 0, .45), 6px 10px 30px rgba(0, 0, 0, .45); }
.mz-book.is-single .mz-slot-l { display: none; }
.mz-leaf { position: absolute; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: left center; transform-style: preserve-3d; transition: transform .75s cubic-bezier(.45, .05, .3, 1); z-index: 5; }
.mz-leaf.is-back { left: 0; transform-origin: right center; }
.mz-leaf > div { position: absolute; inset: 0; backface-visibility: hidden; }
.mz-leaf > .mz-leaf-b { transform: rotateY(180deg); }
.mz-nav-btn { position: absolute; top: 50%; z-index: 10; width: 52px; height: 52px; margin-top: -26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; cursor: pointer; }
.mz-nav-btn:hover { background: rgba(224, 173, 79, .85); color: #2a1d08; }
.mz-nav-btn[disabled] { opacity: .2; cursor: default; }
.mz-prev { left: 10px; }
.mz-next { right: 10px; }
.mz-pagebar { display: flex; justify-content: center; align-items: center; gap: 14px; font: 15px var(--mz-ui); color: #cbbfdc; }
.mz-pagebar input[type="range"] { width: min(60vw, 480px); accent-color: var(--mz-gold); }
.mz-loading { padding: 80px 0; text-align: center; font: italic 22px var(--mz-display); color: #cbbfdc; }

/* страница журнала (фиксированный размер 560×792, масштаб — transform у .mz-book) */
.mz-page { position: absolute; inset: 0; overflow: hidden; background: var(--mz-paper) url("images/magazine/mz-sheet.webp") center / cover; color: var(--mz-ink); font: 13.4px/1.55 var(--mz-text); }
.mz-page-in { position: absolute; left: 44px; right: 44px; top: 50px; bottom: 50px; overflow: hidden; }
.mz-page-run { position: absolute; left: 44px; right: 44px; top: 20px; display: flex; justify-content: space-between; font: 600 11.5px var(--mz-display); color: var(--mz-ink-2); border-bottom: 1px solid var(--mz-line); padding-bottom: 4px; }
.mz-page-run b { color: var(--rc, var(--mz-acc)); font-family: var(--mz-ui); }
.mz-page-no { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font: 600 12px var(--mz-display); color: var(--mz-ink-2); }
.mz-page.is-cover { background: var(--mz-night); }
.mz-page.is-cover .mz-cover { position: absolute; inset: 0; aspect-ratio: auto; box-shadow: none; }
.mz-page.is-toc .mz-page-in h2 { margin: 6px 0 14px; font: 700 34px/1 var(--mz-display); color: var(--mz-ink); }
.mz-ptoc { margin: 0; padding: 0; list-style: none; }
.mz-ptoc li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 9px 0; border-bottom: 1px dotted #cfc4b2; cursor: pointer; }
.mz-ptoc b { font: 700 17px/1.2 var(--mz-display); }
.mz-ptoc span { grid-column: 1; font-size: 12px; color: var(--mz-ink-2); }
.mz-ptoc em { grid-row: 1 / 3; grid-column: 2; align-self: center; font: italic 700 20px var(--mz-display); color: var(--mz-acc); }
.mz-ptoc .mz-chip { font-size: 10.5px; padding: 1px 6px 2px; margin-bottom: 3px; color: #fff; background: var(--rc, var(--mz-acc)); }
.mz-page.is-back { color: #f6eedd; background:
	url("images/magazine/mz-star-8.webp") 9% 8% / 92px no-repeat, url("images/magazine/mz-star-4.webp") 84% 12% / 44px no-repeat,
	url("images/magazine/mz-star-8b.webp") 88% 74% / 80px no-repeat, url("images/magazine/mz-star-4.webp") 14% 84% / 52px no-repeat,
	url("images/magazine/mz-star-4.webp") 66% 30% / 30px no-repeat, url("images/magazine/mz-star-4.webp") 30% 64% / 26px no-repeat,
	radial-gradient(ellipse at 50% 46%, #4a2068 0%, #2e1440 46%, #170a22 100%); }
.mz-back-logo { width: 400px; height: 164px; margin: 0 auto 18px; background: url("images/magazine/mz-title.webp") center / contain no-repeat; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6)); }
.mz-page.is-back .mz-page-in { display: flex; flex-direction: column; justify-content: center; text-align: center; }
.mz-back-name { font: 700 46px/1 var(--mz-caps); }
.mz-back-star { font-size: 40px; color: var(--mz-gold); }

/* ---------- статья (общие стили для страниц журнала и ленты) ---------- */
.mz-a-head .mz-chip { margin-bottom: 8px; }
.mz-a-title { margin: 0 0 8px; font: 700 2.15em/1.05 var(--mz-display); color: var(--mz-ink); }
.mz-a-lead { margin: 0 0 10px; font: italic 600 1.22em/1.3 var(--mz-display); color: var(--mz-ink-2); }
.mz-a-by { margin: 0 0 14px; font: 700 .86em var(--mz-ui); color: var(--rc, var(--mz-acc)); }
.mz-a-cover { margin: 0 0 14px; }
.mz-a-cover img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.mz-body > * { margin: 0 0 .75em; }
.mz-body h2 { margin: 1.1em 0 .4em; font: 700 1.55em/1.1 var(--mz-display); }
.mz-body h3 { margin: 1em 0 .3em; font: 700 1.25em/1.15 var(--mz-display); color: var(--rc, var(--mz-acc)); }
.mz-body p { text-align: left; hyphens: auto; }
.mz-body p.drop::first-letter { float: left; margin: .06em .08em 0 0; font: 700 3.6em/.8 var(--mz-display); color: var(--rc, var(--mz-acc)); }
.mz-dl { float: left; margin: .06em .08em 0 0; font: 700 3.6em/.8 var(--mz-display); color: var(--rc, var(--mz-acc)); }
.mz-body p.q { font-weight: 700; color: var(--rc, var(--mz-acc)); }
.mz-body p.q::before { content: "— "; }
.mz-body p.a { padding-left: 1em; border-left: 2px solid var(--mz-line); }
.mz-body p.sign { text-align: right; font-style: italic; }
.mz-body p.center { text-align: center; }
.mz-body blockquote.pull { margin: 1em 0; padding: .5em 0; border-top: 3px solid var(--rc, var(--mz-acc)); border-bottom: 1px solid var(--rc, var(--mz-acc)); font: italic 700 1.45em/1.2 var(--mz-display); color: var(--mz-ink); }
.mz-body aside.box { padding: .9em 1em; background: color-mix(in srgb, var(--rc, var(--mz-acc)) 10%, #fff); border-left: 4px solid var(--rc, var(--mz-acc)); }
.mz-body aside.ad { padding: .9em 1em; border: 2px dashed var(--rc, var(--mz-acc)); text-align: center; }
.mz-body aside.box > :last-child, .mz-body aside.ad > :last-child { margin-bottom: 0; }
.mz-body hr { border: 0; text-align: center; margin: 1em 0; }
.mz-body hr::after { content: "✶ ✶ ✶"; color: var(--rc, var(--mz-acc)); letter-spacing: .4em; }
.mz-body hr.page { height: 0; margin: 0; }
.mz-body hr.page::after { content: none; }
.mz-body figure { margin: 1em 0; }
.mz-body figure img { display: block; width: 100%; height: auto; }
.mz-body figure.left { float: left; width: 46%; margin: .2em 1em .6em 0; }
.mz-body figure.right { float: right; width: 46%; margin: .2em 0 .6em 1em; }
.mz-body figcaption { margin-top: .35em; font: italic .86em/1.35 var(--mz-text); color: var(--mz-ink-2); }
.mz-body div.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(30%, 1fr)); gap: 6px; }
.mz-body div.gallery figure { margin: 0; }
.mz-body div.gallery img { aspect-ratio: 1; object-fit: cover; }
.mz-body ul, .mz-body ol { padding-left: 1.3em; }
.mz-page .mz-body figure img { max-height: 360px; object-fit: cover; }
.mz-page .mz-body figure.wide img { max-height: 520px; }
.mz-page .mz-body div.gallery img { max-height: 160px; }
.mz-page .mz-a-title { font-size: 34px; }

/* лента */
.mz-lenta { width: min(100% - 32px, 760px); margin: 24px auto 0; }
.mz-lenta-cover { width: min(100%, 360px); margin: 0 auto 28px; }
.mz-lenta article { margin: 0 0 28px; padding: clamp(22px, 5vw, 48px); background: var(--mz-paper); color: var(--mz-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); font-size: 18px; line-height: 1.7; }
.mz-lenta .mz-a-title { font-size: clamp(32px, 6vw, 46px); }
.mz-lenta .mz-a-cover img { max-height: 460px; }
.mz-lenta .mz-body figure.wide { margin-left: calc(-1 * clamp(22px, 5vw, 48px)); margin-right: calc(-1 * clamp(22px, 5vw, 48px)); }
.mz-lenta-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 0 0 30px; }
.mz-lenta-end a { color: #f3dfb4; }
.mz-art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 32px; }
.mz-art-nav a { display: block; padding: 14px 18px; background: rgba(255, 255, 255, .07); border-radius: 6px; text-decoration: none; }
.mz-art-nav small { display: block; color: #cbbfdc; font: 13px var(--mz-ui); }
.mz-art-nav b { font: 700 19px/1.2 var(--mz-display); }
.mz-art-nav .is-next { text-align: right; }

/* ---------- архив, редакция ---------- */
.mz-page-head { padding: 52px 0 46px; margin-bottom: 18px; background: url("images/magazine/mz-divider.webp") left bottom / auto 28px no-repeat; }
.mz-page-head h1 { margin: 0; font: 700 clamp(36px, 5vw, 52px)/1.05 var(--mz-display); color: var(--mz-plum); }
.mz-page-head p { margin: 8px 0 0; color: var(--mz-ink-2); max-width: 70ch; }
.mz-year { margin: 22px 0 36px; }
.mz-year h2 { margin: 0 0 16px; font: italic 600 26px var(--mz-display); color: #7a4a12; }
.mz-empty { padding: 40px 0 60px; font: italic 22px var(--mz-display); color: var(--mz-ink-2); }
.mz-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 0 0 36px; }
.mz-person { padding: 20px 22px; background: var(--mz-card); border: 1px solid var(--mz-line-g); border-top: 4px solid var(--mz-plum); border-radius: 6px; box-shadow: 0 6px 18px rgba(70, 40, 10, .1); }
.mz-person.is-ed { border-top-color: var(--mz-gold); }
.mz-person b { display: block; font: 700 23px/1.15 var(--mz-display); }
.mz-person span { display: block; margin: 2px 0 10px; color: var(--mz-ink-2); font: 15px var(--mz-ui); }
.mz-person a { font: 15px var(--mz-ui); color: #7a4a12; }
.mz-person b a { font: inherit; color: var(--mz-plum); }
.mz-about { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; padding-bottom: 40px; }
.mz-about h2 { margin: 0 0 10px; font: 700 28px var(--mz-display); color: var(--mz-plum); }
.mz-about a, .mz-page-head a, .mz-desk .mz-lead a { color: #7a4a12; }
.mz-rubrics { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- редакция: стол, редактор, номер ---------- */
.mz-desk { padding: 36px 0 56px; }
.mz-desk h1 { margin: 10px 0 6px; font: 700 42px/1.05 var(--mz-display); color: var(--mz-plum); }
.mz-desk h2 { margin: 34px 0 12px; padding-bottom: 6px; font: 700 27px var(--mz-display); color: var(--mz-plum); border-bottom: 1px solid var(--mz-line-g); }
.mz-desk .mz-lead { color: var(--mz-ink-2); max-width: 75ch; margin: 0 0 16px; }
.mz-list { margin: 0; padding: 0; list-style: none; background: var(--mz-card); border: 1px solid var(--mz-line-g); border-radius: 6px; box-shadow: 0 6px 18px rgba(70, 40, 10, .08); }
.mz-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--mz-line-g); }
.mz-list li:last-child { border-bottom: 0; }
.mz-list b { font: 700 19px/1.2 var(--mz-display); }
.mz-list small { display: block; color: var(--mz-ink-2); font: 14px var(--mz-ui); }
.mz-list .mz-note { grid-column: 1 / -1; margin: 4px 0 0; padding: 6px 10px; background: #fff3dc; border-left: 3px solid #c7651a; font-size: 14px; }
.mz-status { display: inline-block; padding: 2px 8px; border-radius: 4px; background: #ece5d8; font: 700 12px var(--mz-ui); color: var(--mz-ink-2); }
.mz-status.s-sent { background: #e1ecfb; color: #1f4f8a; }
.mz-status.s-back { background: #fdebd6; color: #8a4510; }
.mz-status.s-ready { background: #def3e5; color: #1e6b3e; }
.mz-status.s-published { background: #efe1f5; color: #5d2a78; }
.mz-empty-row { padding: 14px 16px; color: var(--mz-ink-2); font-style: italic; }
.mz-form { display: grid; gap: 14px; }
.mz-form label > span, .mz-flabel { display: block; margin-bottom: 4px; font: 700 15px var(--mz-ui); }
.mz-form input[type="text"], .mz-form input[type="datetime-local"], .mz-form select, .mz-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbbfae; border-radius: 6px; background: #fff; color: var(--mz-ink); font: 17px var(--mz-text); }
.mz-form textarea { min-height: 80px; resize: vertical; }
.mz-form input[name="title"] { font: 700 26px var(--mz-display); }
.mz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mz-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mz-acts .mz-sp { flex: 1; }
.mz-hint { margin: 2px 0 0; font-size: 14px; color: var(--mz-ink-2); }
.mz-cover-pick { display: flex; gap: 14px; align-items: center; }
.mz-cover-pick img { width: 120px; height: 80px; object-fit: cover; border-radius: 4px; background: #ddd; }
.mz-cover-pick img[src=""] { display: none; }

/* редактор текста */
.mz-ed { border: 1px solid #cbbfae; border-radius: 8px; background: #fff; }
.mz-tools { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid #e2d8c8; background: #f8f3ea; border-radius: 8px 8px 0 0; }
.mz-tools button, .mz-tools select { min-height: 34px; padding: 4px 10px; border: 1px solid #d6cab7; border-radius: 6px; background: #fff; color: var(--mz-ink); font: 14px var(--mz-ui); cursor: pointer; }
.mz-tools button:hover { background: #f1e7d6; }
.mz-form .mz-tools select { width: auto; padding: 4px 8px; font: 14px var(--mz-ui); }
.mz-tools .mz-tsep { width: 1px; background: #d6cab7; margin: 2px 4px; }
.mz-area { min-height: 420px; padding: 20px 26px; outline: none; font-size: 18px; line-height: 1.7; --rc: var(--mz-acc); }
.mz-area:empty::before { content: attr(data-ph); color: #9b9183; font-style: italic; }
.mz-area figure { position: relative; }
.mz-area figure:hover { outline: 2px dashed #c9b796; }
.mz-area hr.page { border-top: 2px dashed #c9b796; height: 0; margin: 1em 0; }
.mz-area hr.page::after { content: "разрыв страницы (в журнале материал продолжится со следующей страницы)"; display: block; text-align: center; font: 12px var(--mz-ui); color: #9b9183; letter-spacing: 0; }
.mz-up-progress { padding: 6px 10px; font: 14px var(--mz-ui); color: #1f4f8a; }
.mz-edgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.mz-edside { position: sticky; top: 12px; display: grid; gap: 14px; padding: 18px; background: var(--mz-card); border: 1px solid var(--mz-line-g); border-radius: 6px; box-shadow: 0 6px 18px rgba(70, 40, 10, .1); }
.mz-edside h3 { margin: 0; font: 700 21px var(--mz-display); color: var(--mz-plum); }
.mz-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.mz-swatches label { position: relative; }
.mz-swatches input { position: absolute; opacity: 0; }
.mz-swatches span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px #fff; border: 2px solid transparent; cursor: pointer; }
.mz-swatches input:checked + span { border-color: var(--mz-ink); }
.mz-swatches input:focus-visible + span { outline: 3px solid var(--mz-gold); }
.mz-order li { grid-template-columns: auto 1fr auto; }
.mz-order .mz-move { display: flex; gap: 4px; }
.mz-order .mz-move button { width: 34px; height: 34px; border: 1px solid #d6cab7; border-radius: 6px; background: #fff; cursor: pointer; font-size: 16px; }
.mz-issue-cover { width: 220px; }

/* ---------- 1.113.0: «Волшебно!», лучшая статья, викторина ---------- */
.mz-pen { display: inline-block; width: 1.35em; height: 1.35em; margin-right: .35em; vertical-align: -.3em; background: url("images/magazine/mz-pen-medal.webp") center / contain no-repeat; }
.mz-a-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; margin-top: 1.4em; padding-top: 14px; border-top: 1px solid var(--mz-line); }
.mz-like { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; margin-left: auto; padding: 6px 18px; border: 1.5px solid #c9a05a; border-radius: 999px; background: #fff8ea; color: #5a3410; font: 700 16px var(--mz-text); text-decoration: none; cursor: pointer; }
.mz-like span { color: #c9902e; }
.mz-like b { min-width: 1ch; padding-left: 8px; border-left: 1px solid rgba(150, 104, 40, .35); }
.mz-like:hover { background: #fdeccb; }
.mz-like[aria-pressed="true"] { color: #3b2208; border-color: #b8862e; background: #d9a441 url("images/magazine/mz-btn-gold.webp") center / 100% 100%; }
.mz-like[aria-pressed="true"] span { color: #fff6d8; text-shadow: 0 0 6px rgba(255, 230, 160, .9); }
.mz-best-mark { font: italic 700 17px var(--mz-display); color: #8a5a12; }
.mz-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 26px; width: min(100% - 32px, 1080px); margin: 34px auto 0; align-items: start; }
.mz-xcard { position: relative; padding: 30px 34px 28px; border-radius: 10px; color: var(--mz-ink); background: #efdcb4 url("images/magazine/mz-parchment.webp") center / 420px; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.mz-xcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 40px solid transparent; border-image: url("images/magazine/mz-frame.webp") 115 / 40px stretch; }
.mz-xcard > * { position: relative; z-index: 1; }
.mz-xcard h2 { margin: 0 0 6px; font: 700 30px/1.1 var(--mz-display); color: var(--mz-plum); }
.mz-xcard h3 { margin: 22px 0 4px; font: 700 22px var(--mz-display); color: var(--mz-plum); }
.mz-xlead { margin: 0 0 14px; font-size: 15.5px; color: var(--mz-ink-2); }
.mz-xnote { margin: 0; font: italic 15px var(--mz-text); color: var(--mz-ink-2); }
.mz-xcard a:not(.mz-btn) { color: #7a4a12; }
.mz-vote ul { margin: 0 0 16px; padding: 0; list-style: none; }
.mz-vote li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--mz-line-g); }
.mz-vote li > label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; }
.mz-vote li > label input { width: 20px; height: 20px; accent-color: #7a4a12; flex: none; }
.mz-vote li > label > span, .mz-vote li > span { flex: 1; }
.mz-vote li b { display: block; margin-top: 4px; font: 700 19px/1.2 var(--mz-display); }
.mz-vote li small { display: block; font: 14px var(--mz-text); color: var(--mz-ink-2); }
.mz-vote li .mz-chip { font-size: 11.5px; padding: 2px 8px 3px; }
.mz-vote li em { font: italic 15px var(--mz-display); color: #7a4a12; white-space: nowrap; }
.mz-vote li.is-mine { background: rgba(255, 246, 220, .7); }
.mz-vote li.is-win { background: rgba(255, 236, 180, .75); box-shadow: inset 3px 0 0 #c9902e; }
.mz-vote .mz-win { font-weight: 700; }
.mz-vote .mz-acts .mz-xnote { margin-left: 6px; }
.mz-quiz ol { margin: 0 0 16px; padding: 0; list-style: none; }
.mz-quiz legend span { color: #7a4a12; }
.mz-quiz li { margin: 0 0 14px; }
.mz-quiz fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.mz-quiz legend { padding: 0; margin-bottom: 6px; font: 700 18px/1.3 var(--mz-display); }
.mz-quiz label { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; cursor: pointer; font-size: 16px; }
.mz-quiz label input { accent-color: #7a4a12; }
.mz-qopt { display: block; padding: 3px 0 3px 12px; border-left: 3px solid transparent; font-size: 16px; color: var(--mz-ink-2); }
.mz-qopt.is-pick { border-left-color: #b9a27a; color: var(--mz-ink); }
.mz-qopt.is-right { border-left-color: #2e7d4f; color: #1d4d31; }
.mz-qopt b, .mz-qopt i { font: italic 14px var(--mz-text); }
.mz-knowers { margin: 6px 0 0; padding-left: 1.6em; columns: 2 180px; font-size: 16px; }
.mz-knowers li { margin-bottom: 4px; }
.mz-page.is-quiz .mz-page-in h2 { margin: 6px 0 6px; font: 700 32px/1 var(--mz-display); color: var(--mz-ink); }
.mz-pq-lead { margin: 0 0 12px; font-style: italic; color: var(--mz-ink-2); }
.mz-pq { margin: 0; padding-left: 1.4em; }
.mz-pq li { margin: 0 0 11px; }
.mz-pq b { display: block; font: 700 16px/1.25 var(--mz-display); }
.mz-pq span { display: block; font-size: 12.6px; line-height: 1.5; }
.mz-pq i { font-weight: 700; font-style: normal; color: var(--mz-acc); }

@media (max-width: 1000px) {
	.mz-hero { padding: 36px 40px 60px; background-size: auto 620px; }
	.mz-hero-grid { grid-template-columns: 270px minmax(0, 1fr); gap: 26px; }
	.mz-panel { margin-top: 90px; padding: 34px 38px 30px; }
	.mz-parch { padding: 80px 48px 56px; }
}
@media (max-width: 900px) {
	.mz-hero-grid, .mz-about, .mz-edgrid { grid-template-columns: 1fr; }
	.mz-hero { padding: 28px 20px 56px; background-position: center top; }
	.mz-hero-cover { width: min(300px, 80%); margin: 0 auto; }
	.mz-panel { margin-top: 26px; }
	.mz-street { left: 0; height: 30%; }
	.mz-edside { position: static; }
	.mz-row { grid-template-columns: 1fr; }
	.mz-sub { grid-template-columns: minmax(0, 1fr) auto; }
	.mz-sub-owl { display: none; }
}
@media (max-width: 640px) {
	.mz-top { gap: 8px 14px; padding: 14px 22px; }
	.mz-top::after, .mz-foot::after { border-width: 20px; border-image-width: 20px; }
	.mz-panel::after { border-width: 36px; border-image-width: 36px; }
	.mz-brand-name { font-size: 24px; }
	.mz-brand-sub { display: none; }
	.mz-nav { order: 3; width: 100%; margin: 0; gap: 4px 16px; font-size: 15.5px; }
	.mz-home { margin-left: auto; }
	.mz-panel { padding: 28px 24px 24px; }
	.mz-panel p { font-size: 17px; }
	.mz-parch { padding: 60px 18px 48px; background-size: 90px, 90px, 90px, 90px, auto; }
	.mz-toc-l li { grid-template-columns: 1fr; }
	.mz-sub { grid-template-columns: 1fr; padding: 26px 28px; }
	.mz-art-nav { grid-template-columns: 1fr; }
	.mz-rbar-t { width: 100%; }
	.mz-rbar { position: static; }
	.mz-area { padding: 14px; font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.mz-leaf { transition: none; }
	a.mz-hero-cover { transition: none; }
}
