/* =========================================================
   АстроПалата — журнал (сборка вариантов D + G).
   Журнал — рамка всей страницы; «Путь по зодиаку» — главная тема номера.
   ========================================================= */

:root {
  --paper: #f3ede4;
  --paper-2: #fbf7f0;
  --paper-3: #ebe2d4;
  --ink: #1a1013;
  --ink-2: #3d2f35;
  --muted: #6b5a60;
  --plum: #5e1650;
  --plum-hover: #7a1f69;
  --plum-dark: #2b0f2f;
  --fuchsia: #a3165e;
  --gold: #d9b46a;
  --gold-btn: linear-gradient(135deg, #f6e2b3 0%, #ddb574 55%, #c4914f 100%);
  --night: #120d1a;
  --rule: rgba(26, 16, 19, .15);
  --display: "Yeseva One", Georgia, serif;
  --italic: "Playfair Display", Georgia, serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 64px;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .26 0 0 0 0 .2 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--noise), var(--paper); font: 400 17px/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -.005em; text-wrap: balance; }
p { text-wrap: pretty; }
section[id] { scroll-margin-top: var(--head-h); }
.m-wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
/* Текст для поисковиков и экранного диктора, который не нужно показывать глазами */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
::selection { color: var(--paper-2); background: var(--plum); }
:focus-visible { outline: 2px solid var(--fuchsia); outline-offset: 3px; border-radius: 4px; }

@keyframes rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Появление при прокрутке (двигаем translate, чтобы не мешать hover-эффектам) */
[data-reveal] { opacity: 0; }
[data-reveal].is-in { animation: rise 1s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
/* Без скрипта (или если он не загрузился — см. страховку в <head>) всё видно сразу, без анимаций */
.no-js [data-reveal], .no-js .m-mag, .no-js .c-lines li, .no-js .m-contents > * { opacity: 1; }
.no-js .c-mast { clip-path: none; }
.no-js .c-sticker { scale: 1; }
.no-js .m-stamp { opacity: .9; }
.no-js .m-head.is-cover .m-logo-text, .no-js .m-head.is-cover .m-head-issue { opacity: 1; visibility: visible; }
.no-js .m-logo-academy { display: none; }
/* Старые браузеры без <dialog> не должны показывать окна прямо на странице */
dialog:not([open]) { display: none; }

/* ---------- Общие элементы ---------- */
.m-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--fuchsia); font: 800 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; }
.m-kicker::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.m-head-block { max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.m-head-block h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.m-lead { max-width: 40em; margin: 18px 0 0; color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.18rem); }
.m-lead a { color: var(--fuchsia); }
.m-center { margin-inline: auto; text-align: center; }
.m-center .m-kicker::before { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.m-center .m-lead { margin-inline: auto; }

/* Главные кнопки: сливовые на светлом фоне, золотые (.m-btn-gold) — на тёмных разделах */
.m-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
  padding: 16px 28px; border: 1px solid var(--plum); border-radius: 2px;
  color: var(--paper-2); background: var(--plum); font: 700 15px/1.2 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 12px 26px -16px rgba(94, 22, 80, .8);
  transition: background .3s, color .3s, border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.m-btn > span { font: 400 20px/1.1 var(--display); }
.m-btn > small { font: 600 12.5px/1.3 var(--body); opacity: .75; }
.m-btn:hover { border-color: var(--plum-hover); background: var(--plum-hover); box-shadow: 0 16px 30px -16px rgba(94, 22, 80, .85); transform: translateY(-2px); }
.m-btn-sm { padding: 10px 18px; font-size: 14px; }
.m-btn-outline { color: var(--plum); background: transparent; box-shadow: none; }
.m-btn-outline:hover { border-color: var(--plum); color: var(--paper-2); background: var(--plum); }
.m-btn-gold { border-color: transparent; color: #1b1233; background: var(--gold-btn); box-shadow: 0 14px 34px -12px rgba(231, 206, 150, .6); }
.m-btn-gold:hover { border-color: transparent; color: #1b1233; background: #fff1cf; }

/* ---------- Полоса прогресса и шапка ---------- */
.m-progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 2px; pointer-events: none; }
.m-progress span { display: block; width: 100%; height: 100%; background: var(--fuchsia); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.m-head { position: fixed; inset: 0 0 auto; z-index: 60; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px) saturate(1.2); -webkit-backdrop-filter: blur(12px) saturate(1.2); }
.m-head-row { display: flex; align-items: center; gap: 22px; height: var(--head-h); }
.m-logo { display: inline-grid; align-items: center; color: var(--plum); font: 400 24px/1 var(--display); letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.m-logo > * { grid-area: 1 / 1; transition: opacity .35s, visibility .35s; }
/* Знак и название академии — на телефоне стоят в шапке, пока видна обложка (concept/logo-mark.png — контур логотипа без белого фона) */
.m-logo-academy { display: none; align-items: center; gap: 10px; letter-spacing: 0; text-transform: none; }
.m-logo-academy img { width: 34px; height: 40px; }
.m-logo-academy > span { display: grid; gap: 4px; font: 400 17px/1 var(--display); white-space: nowrap; }
.m-logo-academy small { color: var(--fuchsia); font: 800 9.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.m-head-issue { padding-left: 16px; border-left: 1px solid var(--rule); color: var(--muted); font: 800 11px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: opacity .35s, visibility .35s; }
.m-nav { display: flex; gap: 22px; margin-left: auto; }
.m-nav a { position: relative; color: var(--ink-2); font: 600 14px/1 var(--body); text-decoration: none; }
.m-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.m-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Обложка ---------- */
.m-cover { display: grid; align-items: center; min-height: 100vh; min-height: 100svh; padding: calc(var(--head-h) + 44px) 0 72px; }
.m-cover-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.m-cover-wrap { perspective: 1600px; }
.m-mag {
  --ch: clamp(480px, calc(100svh - 190px), 760px);
  position: relative; overflow: hidden; container-type: inline-size;
  width: calc(var(--ch) * .75); height: var(--ch);
  border-radius: 3px; background: #fbf7f0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s var(--ease);
  box-shadow: 10px 12px 0 -3px #e6ddcf, 10px 12px 0 -2px rgba(0, 0, 0, .05), 20px 24px 0 -6px #dbd0bf, 20px 24px 0 -5px rgba(0, 0, 0, .05), 0 50px 90px -40px rgba(50, 20, 30, .6);
  opacity: 0;
}
.m-cover.is-on .m-mag { animation: magIn 1.2s var(--ease) both; }
@keyframes magIn { from { opacity: 0; translate: 0 50px; rotate: -3deg; } to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.c-photo { position: absolute; top: 15%; left: 21%; right: 0; bottom: 0; }
.c-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 12%; }
.c-issue { position: absolute; top: 2.6%; left: 5%; right: 5%; z-index: 2; display: flex; justify-content: space-between; gap: 2cqw; margin: 0; padding-bottom: 1.2cqw; border-bottom: 1px solid rgba(23, 17, 15, .35); color: #3a2a30; font: 800 max(1.85cqw, 7.5px)/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.c-mast { position: absolute; top: 6.2%; left: 4.5%; z-index: 2; width: 91%; height: auto; overflow: visible; clip-path: inset(-20% 100% -20% 0); }
.m-cover.is-on .c-mast { animation: mastIn 1.4s .35s var(--ease) forwards; }
@keyframes mastIn { to { clip-path: inset(-20% -2% -20% -2%); } }
.c-mast text { font-family: var(--display); font-size: 140px; fill: var(--plum); }
.c-lines { position: absolute; top: 30%; left: 5%; z-index: 2; display: grid; gap: 3.4cqw; width: 43%; margin: 0; padding: 0; list-style: none; }
.c-lines li { color: #1a1013; font: 400 4.3cqw/1.08 var(--display); text-shadow: 0 0 2.4cqw rgba(255, 255, 255, .9), 0 0 .6cqw rgba(255, 255, 255, .9); opacity: 0; }
.m-cover.is-on .c-lines li { animation: lineIn .8s var(--ease) both; animation-delay: calc(.9s + var(--i) * .15s); }
@keyframes lineIn { from { opacity: 0; translate: -18px 0; } to { opacity: 1; translate: 0 0; } }
.c-lines small { display: block; margin-bottom: .8cqw; color: var(--fuchsia); font: 800 max(1.9cqw, 8px)/1 var(--body); letter-spacing: .16em; text-transform: uppercase; text-shadow: none; }
.c-byline { position: absolute; left: 5%; bottom: 16%; z-index: 2; width: 40%; margin: 0; color: #1a1013; font: 400 2.9cqw/1.15 var(--display); text-shadow: 0 0 2.4cqw rgba(255, 255, 255, .95); }
.c-byline b { display: block; font-size: 1.6em; font-weight: 400; }
.c-sticker { position: absolute; right: 6%; bottom: 24%; z-index: 3; display: grid; place-content: center; width: 21cqw; aspect-ratio: 1; border-radius: 50%; color: #fff; background: var(--fuchsia); text-align: center; box-shadow: 0 1.6cqw 4cqw -1.4cqw rgba(120, 10, 60, .7); transform: rotate(-12deg); scale: 0; }
.m-cover.is-on .c-sticker { animation: stickerIn .8s 1.5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes stickerIn { from { scale: 0; rotate: -120deg; } to { scale: 1; rotate: 0deg; } }
.c-sticker b { font: 400 6.4cqw/1 var(--display); }
.c-sticker > span { font: 800 max(1.8cqw, 7.5px)/1.15 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.c-barcode { position: absolute; left: 5%; bottom: 3.6%; z-index: 2; display: grid; gap: .6cqw; padding: 1.2cqw 1.6cqw 1cqw; background: #fff; }
.c-barcode i, .m-barcode i { display: block; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 3px, #111 3px 4px, transparent 4px 6px, #111 6px 9px, transparent 9px 10px, #111 10px 11px, transparent 11px 14px); }
.c-barcode i { width: 20cqw; height: 6.4cqw; }
.c-barcode span { color: #111; font: 700 max(1.6cqw, 7px)/1 var(--body); letter-spacing: .08em; }
.c-glare { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .45), transparent 45%); mix-blend-mode: soft-light; transition: opacity .4s; }
.m-mag:hover .c-glare { opacity: 1; }

.m-contents { display: grid; gap: 24px; align-content: center; }
.m-contents > * { opacity: 0; }
.m-cover.is-on .m-contents > * { animation: rise .9s var(--ease) both; }
.m-cover.is-on .m-contents > :nth-child(2) { animation-delay: .1s; }
.m-cover.is-on .m-contents > :nth-child(3) { animation-delay: .2s; }
.m-cover.is-on .m-contents > :nth-child(4) { animation-delay: .3s; }
.m-cover.is-on .m-contents > :nth-child(5) { animation-delay: .4s; }
.m-contents .m-kicker { margin: 0; }
.m-intro { margin: 0; color: var(--ink-2); font: italic 400 clamp(1.2rem, 1.9vw, 1.45rem)/1.4 var(--italic); }
.m-toc { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.m-toc a { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .35s var(--ease); }
.m-toc .n { color: var(--plum); font: 400 26px/1 var(--display); }
.m-toc .t { font: 600 16.5px/1.35 var(--body); }
.m-toc .t b { display: block; margin-bottom: 3px; color: var(--fuchsia); font: 800 11px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.m-toc .arr { font: 400 20px/1 var(--display); opacity: 0; translate: -8px 0; transition: opacity .3s, translate .35s var(--ease); }
.m-toc a:hover { padding-left: 8px; }
.m-toc a:hover .arr { opacity: 1; translate: 0 0; }
.m-contents .m-btn { justify-self: start; }
.m-fine { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Бегущая строка ---------- */
.m-ticker { overflow: hidden; padding: 14px 0; color: var(--paper-2); background: var(--ink); }
.m-ticker-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.m-ticker span { font: 400 19px/1 var(--display); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.m-ticker span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 22px; border-radius: 50%; background: var(--gold); vertical-align: .18em; }
.m-ticker span:first-child, .m-ticker span:nth-child(17) { color: var(--gold); }

/* ---------- Главная тема: путь по зодиаку ---------- */
.g-track { position: relative; height: 460vh; }
/* Главы стоят по центру между шапкой и зодиакальным кругом. --arc — где начинается рисунок круга,
   сама окружность ниже на 20/1000 его ширины, то есть на max(26px, 3.2vw); --gap — зазор до неё */
.g-stage {
  --arc: 62svh; --gap: 24px;
  position: sticky; top: 0; display: grid; place-items: center; height: 100vh; height: 100svh;
  padding: var(--head-h) 0 calc(100svh - var(--arc) - max(26px, 3.2vw) + var(--gap));
  overflow: hidden; color: #24142c; transition: color .5s;
}
.g-stage.is-dark { color: #faf4fc; }
.g-bg { position: absolute; inset: 0; background: linear-gradient(180deg, var(--g1, #f3ede4), var(--g2, #f2c9b8)); }
.g-stars, .g-stars::after { position: absolute; inset: 0; opacity: var(--gs, 0); }
.g-stars, .g-stars::after, .m-back::before {
  background-image:
    radial-gradient(1.6px 1.6px at 8% 12%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 22% 32%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 35% 8%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 48% 26%, #fff 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 62% 14%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 74% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.9px 1.9px at 86% 9%, #fff 50%, transparent 52%), radial-gradient(1.1px 1.1px at 93% 38%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 15% 46%, #fff 50%, transparent 52%), radial-gradient(1.4px 1.4px at 55% 44%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 80% 52%, #fff 50%, transparent 52%), radial-gradient(1.2px 1.2px at 30% 58%, #fff 50%, transparent 52%);
}
.g-stars::after { content: ""; opacity: .7; background-size: 37% 41%; }
.g-orb {
  position: absolute; left: 0; top: 0; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%;
  translate: calc(var(--ox, 20vw) - 50%) calc(var(--oy, 60svh) - 50%);
  background: radial-gradient(circle at 38% 36%, #fff 0%, var(--oc, #ffd27a) 42%, color-mix(in srgb, var(--oc, #ffd27a) 40%, transparent) 62%, transparent 72%);
  box-shadow: 0 0 90px 30px color-mix(in srgb, var(--oc, #ffd27a) 40%, transparent);
}
.g-arc { position: absolute; left: 50%; top: var(--arc); width: max(1300px, 160vw); height: auto; overflow: visible; color: var(--gw, #7a2a5c); translate: -50% 0; }
.g-rot { transform: rotate(var(--gr, 0deg)); transform-origin: 0 0; }
.g-copy { position: relative; z-index: 2; width: min(100% - 32px, 1080px); text-align: center; }
.g-kicker { justify-content: center; color: inherit; }
.g-kicker::before { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.g-steps { display: grid; }
.g-step { grid-area: 1 / 1; opacity: 0; translate: 0 26px; pointer-events: none; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.g-step.is-active { opacity: 1; translate: 0 0; pointer-events: auto; }
.g-step small { display: inline-block; padding: 7px 13px; border: 1px solid currentColor; border-radius: 999px; font: 700 12.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.g-step h3 { margin: 20px 0 14px; font-size: clamp(2.3rem, min(6vw, 8.5svh), 5rem); line-height: 1.02; }
.g-step p { max-width: 40em; margin: 0 auto; font-size: clamp(1rem, 1.5vw, 1.2rem); opacity: .85; }
.g-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.g-chips span { padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, currentColor 11%, transparent); font-size: 14px; font-weight: 600; }
/* Ночью светлый текст может пройти над светлой луной — тёмный ореол сохраняет читаемость */
:is(.g-kicker, .g-step small, .g-step h3, .g-step p, .g-chips span) { transition: text-shadow .5s; }
.g-stage.is-dark :is(.g-kicker, .g-step small, .g-step h3, .g-step p, .g-chips span) { text-shadow: 0 0 3px rgba(18, 10, 28, .5), 0 0 18px rgba(18, 10, 28, .65); }
.g-step .m-btn { align-items: center; margin-top: 28px; }
.g-dots { position: absolute; right: clamp(14px, 3vw, 32px); top: 50%; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; translate: 0 -50%; }
.g-dots li { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .3; transition: opacity .3s, scale .3s; }
.g-dots li.is-active { opacity: 1; scale: 1.5; }
.g-hint { position: absolute; left: 50%; bottom: 32px; margin: 0; translate: -50% 0; font: 800 12px/1 var(--body); letter-spacing: .18em; text-transform: uppercase; opacity: calc(.8 - var(--p, 0) * 12); }

/* ---------- Архив ---------- */
.m-archive { padding: clamp(80px, 11vw, 140px) 0; color: var(--paper-2); background: radial-gradient(60% 50% at 80% 0%, rgba(113, 28, 91, .35), transparent 70%), linear-gradient(180deg, #1b1240 0%, var(--night) 22%); }
.m-archive .m-kicker { color: var(--gold); }
.m-archive h2 { color: #fff; }
.m-archive .m-lead { color: #c9bfd2; }
.m-archive .m-head-block { margin-bottom: clamp(8px, 2vw, 20px); }
/* Сверху запас под поднятый выбранный корешок и ярлык «Свежий» над ним — иначе их срезает край прокрутки */
.m-shelf-scroll { margin: 0 -16px; padding: 68px 16px 4px; overflow-x: auto; scrollbar-width: none; }
.m-shelf-scroll::-webkit-scrollbar { display: none; }
.m-shelf { --sw: 34px; --hs: 1; position: relative; display: grid; grid-template-columns: repeat(var(--n, 25), var(--sw)); column-gap: 5px; align-items: end; width: max-content; margin-inline: auto; padding: 0 12px; }
.m-spine {
  position: relative; grid-row: 1; height: calc(var(--h) * var(--hs)); display: flex; justify-content: center; padding: 14px 0; border: 0; border-radius: 3px 3px 0 0;
  color: var(--t); background: var(--c); cursor: pointer; font: inherit;
  box-shadow: inset -3px 0 0 rgba(0, 0, 0, .18), inset 2px 0 0 rgba(255, 255, 255, .15);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.m-spine::before, .m-spine::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: rgba(231, 206, 150, .85); }
.m-spine::before { top: 8px; }
.m-spine::after { bottom: 8px; }
.m-spine > span { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 10.5px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.m-spine:hover { transform: translateY(-8px); }
.m-spine[aria-selected="true"] { transform: translateY(-22px); box-shadow: inset -3px 0 0 rgba(0, 0, 0, .18), 0 0 0 2px var(--gold), 0 18px 30px -10px rgba(0, 0, 0, .7); }
.m-spine.is-fresh { color: #2b1a10; background: linear-gradient(180deg, #f6e2b3, #c4914f); }
.m-fresh { position: absolute; left: 50%; bottom: calc(100% + 8px); padding: 3px 7px; border-radius: 3px; color: #1b1233; background: var(--gold); font: 800 9.5px/1 var(--body); font-style: normal; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; translate: -50% 0; }
.m-plank { grid-row: 2; grid-column: 1 / -1; height: 12px; margin: 0 -12px; border-radius: 2px; background: linear-gradient(#7a5240, #4e3326); box-shadow: 0 12px 22px -8px rgba(0, 0, 0, .7); }
.m-year { grid-row: 3; padding-top: 12px; color: #a99fb6; font: 700 11px/1.25 var(--body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.m-issues { margin-top: 44px; }
.m-issue[hidden] { display: none; }
.m-issue { position: relative; padding: clamp(24px, 3vw, 40px); border-radius: 3px; color: var(--ink); background: var(--noise), var(--paper-2); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); }
/* «Перелистывание» анимирует содержимое, а не саму панель — иначе оно перебивает появление
   при прокрутке, и панель остаётся прозрачной */
.m-issue.is-flip > * { animation: flip .55s var(--ease); }
@keyframes flip { from { opacity: .2; transform: perspective(1200px) rotateX(10deg) translateY(10px); } }
.m-issue-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 6px; padding-bottom: 16px; border-bottom: 2px solid var(--ink); }
.m-issue-meta { order: 2; margin: 0; color: var(--fuchsia); font: 800 12px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.m-issue-title { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.m-issue-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 48px; counter-reset: t; }
.m-issue-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 12px 0; break-inside: avoid; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.45; counter-increment: t; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 25ms); }
.m-issue-list li::before { content: counter(t, decimal-leading-zero); color: var(--plum); font: 400 18px/1.25 var(--display); }

/* ---------- Рубрики ---------- */
.m-rubrics { padding: clamp(80px, 11vw, 140px) 0; }
.m-rubric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-block: 2px solid var(--ink); }
.m-rubric { padding: 28px 26px 32px; background: var(--noise), var(--paper); }
.m-num { display: block; margin-bottom: 18px; color: var(--fuchsia); font: 400 44px/1 var(--display); transition: transform .4s var(--ease); }
.m-rubric:hover .m-num { transform: translateX(6px); }
.m-rubric h3 { margin-bottom: 10px; font-size: 26px; }
.m-rubric p { margin: 0; color: var(--muted); }
.m-howto { margin-top: 48px; padding: 28px clamp(20px, 3vw, 36px) 30px; border-radius: 2px; color: var(--paper-2); background: var(--ink); }
.m-howto .m-kicker { color: var(--gold); }
.m-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: f; }
.m-flow li { padding: 6px 24px 6px 0; counter-increment: f; }
.m-flow li + li { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .15); }
.m-flow b { display: block; margin-bottom: 6px; font: 400 24px/1.1 var(--display); }
.m-flow b::before { content: counter(f, decimal-leading-zero) "  "; color: var(--gold); font-size: .7em; }
.m-flow span { color: #c9bfd2; font-size: 15px; }

/* ---------- Колонка автора ---------- */
.m-author { padding: clamp(80px, 11vw, 140px) 0; background: var(--noise), var(--paper-3); }
.m-author-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.m-portrait { position: sticky; top: calc(var(--head-h) + 32px); margin: 0; }
.m-portrait-img { overflow: hidden; aspect-ratio: 3 / 4; border-radius: 2px; box-shadow: 0 40px 80px -40px rgba(50, 20, 30, .6); }
.m-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 30%; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.m-portrait.is-in img { transform: scale(1); }
.m-author-text h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.m-dek { margin: 10px 0 28px; color: var(--ink-2); font: italic 400 clamp(1.2rem, 2vw, 1.5rem)/1.35 var(--italic); }
.m-pull { margin: 0 0 30px; padding: 22px 0; border-block: 2px solid var(--ink); color: var(--plum); font: italic 400 clamp(1.35rem, 2.3vw, 1.8rem)/1.35 var(--italic); }
.m-dossier { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 28px; background: var(--rule); border-block: 1px solid var(--rule); }
/* Содержимое колонок по центру и с одинаковыми отступами — короткие и длинные подписи выглядят ровно */
.m-dossier div { padding: 18px 8px 16px; background: var(--noise), var(--paper-3); text-align: center; }
.m-dossier dt { color: var(--plum); font: 400 clamp(1.7rem, 3vw, 2.4rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.m-dossier dd { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.35; text-wrap: balance; }
.m-facts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.m-facts li { position: relative; padding-left: 24px; }
.m-facts li::before { content: "✦"; position: absolute; left: 0; top: .25em; color: var(--fuchsia); font-size: 12px; }

/* ---------- Письма читателей ---------- */
.m-letters { padding: clamp(80px, 11vw, 140px) 0 clamp(50px, 7vw, 90px); }
.m-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.m-arrows { display: flex; flex: none; gap: 10px; }
.m-arrow { width: 52px; height: 52px; border: 1px solid var(--plum); border-radius: 50%; color: var(--plum); background: transparent; font: 400 22px/1 var(--display); cursor: pointer; transition: background .3s, color .3s; }
.m-arrow:hover { color: var(--paper-2); background: var(--plum); }
.m-letters-strip { display: flex; gap: 30px; padding: 30px max(16px, calc((100% - 1180px) / 2)) 44px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1180px) / 2)); scrollbar-width: none; }
.m-letters-strip::-webkit-scrollbar { display: none; }
.m-letter {
  position: relative; flex: none; width: clamp(200px, 22vw, 250px); aspect-ratio: 447 / 794; padding: 0; border: 0; background: #fff; cursor: zoom-in;
  scroll-snap-align: start; rotate: var(--r, 0deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 22px 40px -24px rgba(50, 20, 30, .55);
  transition: rotate .4s var(--ease), translate .4s var(--ease);
}
.m-letter img { width: 100%; height: 100%; object-fit: cover; }
.m-letter::before { content: ""; position: absolute; top: -12px; left: 50%; z-index: 1; width: 84px; height: 26px; translate: -50% 0; rotate: -3deg; background: rgba(233, 214, 180, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.m-letter:hover { rotate: 0deg; translate: 0 -6px; }

/* ---------- Подписка ---------- */
.m-subscribe { padding: clamp(80px, 11vw, 140px) 0; color: var(--paper-2); background: radial-gradient(50% 60% at 50% 0%, rgba(163, 22, 94, .35), transparent 70%), linear-gradient(180deg, #2b0f2f, #1a0b1e); }
.m-subscribe .m-kicker { color: var(--gold); }
.m-subscribe .m-lead { color: #d8c9dc; }
.m-coupons { display: grid; grid-template-columns: repeat(2, minmax(0, 480px)); justify-content: center; gap: 28px; align-items: stretch; }
.m-coupon-wrap { display: flex; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.m-coupon {
  position: relative; display: flex; flex: 1; flex-direction: column; padding: 38px 34px 32px; border-radius: 6px;
  color: var(--ink); background: var(--noise), var(--paper-2);
  -webkit-mask: radial-gradient(circle 15px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 15px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.m-coupon::before { content: ""; position: absolute; inset: 12px; border: 2px dashed rgba(26, 16, 19, .22); border-radius: 4px; pointer-events: none; }
.m-coupon::after { content: "✂"; position: absolute; top: 2px; left: 30px; padding: 0 6px; color: rgba(26, 16, 19, .55); background: var(--paper-2); font-size: 18px; line-height: 20px; }
.m-coupon-kicker { margin: 0 0 8px; color: var(--fuchsia); font: 800 11.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.m-coupon h3 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); }
.m-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 18px 0 4px; }
.m-price b { font: 400 clamp(2.6rem, 4.6vw, 3.4rem)/1 var(--display); }
.m-price s { color: var(--muted); font-size: 20px; }
.m-price-note { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 700; }
.m-price-note.m-save { color: #1d7a4b; font-weight: 800; }
.m-coupon ul { display: grid; flex: 1; align-content: start; gap: 10px; margin: 22px 0 26px; padding: 0; list-style: none; }
.m-coupon li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.5; }
.m-coupon li::before { content: "✓"; position: absolute; left: 0; color: var(--plum); font-weight: 800; }
.m-coupon .m-btn { align-items: center; width: 100%; }
.m-stamp {
  position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 104px; height: 104px; border: 3px double #b3124f; border-radius: 50%;
  color: #b3124f; font: 800 12px/1.15 var(--body); letter-spacing: .1em; text-align: center; text-transform: uppercase;
  rotate: 14deg; opacity: 0; mix-blend-mode: multiply;
}
.m-coupon-best.is-in .m-stamp { animation: stamp .5s 1s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes stamp { from { opacity: 0; scale: 1.8; } to { opacity: .9; scale: 1; } }
.m-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin: 40px 0 0; padding: 0; list-style: none; color: #d8c9dc; font-size: 15px; }
.m-trust li { display: inline-flex; align-items: center; gap: 9px; }
.m-trust svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Вопросы редакции ---------- */
.m-faq { padding: clamp(80px, 11vw, 140px) 0; }
.m-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 84px); align-items: start; }
.m-faq-list { border-top: 2px solid var(--ink); }
.m-faq-list details { border-bottom: 1px solid var(--rule); }
.m-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 0; cursor: pointer; list-style: none; font: 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.25 var(--display); }
.m-faq-list summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid var(--plum); border-radius: 50%; color: var(--plum); transition: background .3s, color .3s, transform .45s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: currentColor; transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .45s var(--ease); }
details[open] .pm { color: var(--paper-2); background: var(--plum); transform: rotate(180deg); }
details[open] .pm::after { transform: translate(-50%, -50%) rotate(0); }
details.closing .pm { color: inherit; background: transparent; transform: none; }
details.closing .pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 56px 22px 0; color: var(--muted); }

/* ---------- Задняя обложка ---------- */
.m-back { position: relative; overflow: hidden; isolation: isolate; padding: clamp(110px, 15vw, 190px) 0 clamp(90px, 12vw, 150px); color: var(--paper-2); text-align: center; background: radial-gradient(60% 60% at 50% 115%, rgba(113, 28, 91, .65), transparent 70%), linear-gradient(180deg, #120d1a, #1b1240); }
.m-back::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .8; background-size: 41% 47%; }
.m-back-arc { position: absolute; left: 50%; bottom: -88%; z-index: -1; width: max(1100px, 130vw); height: auto; overflow: visible; color: rgba(231, 206, 150, .4); translate: -50% 0; }
.m-back-arc .g-rot { animation: spin 240s linear infinite; }
.m-back .m-kicker { justify-content: center; color: var(--gold); }
.m-back .m-kicker::before { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.m-back h2 { max-width: 14ch; margin-inline: auto; font-size: clamp(2.4rem, 6.4vw, 5rem); }
.m-back p { max-width: 560px; margin: 22px auto 34px; color: #d8cfe6; font-size: 1.15rem; }
.m-back .m-btn { align-items: center; }
.m-barcode { display: grid; gap: 6px; width: max-content; margin: 46px auto 0; padding: 10px 12px 8px; color: #111; background: #fff; }
.m-barcode i { width: 150px; height: 44px; }
.m-barcode span { font: 700 10px/1 var(--body); letter-spacing: .1em; }
.m-barcode b { font-weight: 700; }

/* ---------- Выходные данные ---------- */
.m-imprint { padding: 48px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 2px solid var(--ink); }
.m-imprint-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 24px 40px; align-items: center; }
.m-imprint p { margin: 0 0 6px; color: var(--muted); font-size: 13.5px; }
.m-imprint .m-kicker { margin-bottom: 12px; }
.m-docs { margin-top: 10px !important; }
.m-docs a { color: var(--plum); font-weight: 700; }
.m-socials { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Уведомление о cookie ---------- */
.m-cookie {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 75;
  display: flex; align-items: center; gap: 16px; max-width: 540px; padding: 16px 16px 16px 20px;
  border: 1px solid var(--rule); border-radius: 4px; color: var(--ink); background: var(--noise), var(--paper-2);
  box-shadow: 0 24px 50px -20px rgba(26, 16, 19, .45);
  animation: cookieIn .5s .8s var(--ease) backwards;
  transition: opacity .3s, translate .3s;
}
.m-cookie[hidden] { display: none; }
.m-cookie.is-hiding { opacity: 0; translate: 0 12px; }
@keyframes cookieIn { from { opacity: 0; translate: 0 16px; } }
.m-cookie p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
.m-cookie a { color: var(--plum); }
.m-cookie .m-btn { flex: none; align-items: center; }
/* Соцсети в тон кнопке «Служба заботы»: сливовый знак в лёгкой обводке, при наведении — сливовая заливка */
.m-socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(94, 22, 80, .3); border-radius: 50%; color: var(--plum); text-decoration: none; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.m-socials a:hover { border-color: var(--plum); color: var(--paper-2); background: var(--plum); transform: translateY(-3px); }
.m-socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Липкая кнопка (телефон) ---------- */
.m-sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 4px; color: var(--paper-2); background: var(--plum-dark); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); transform: translateY(150%); transition: transform .5s var(--ease); }
.m-sticky.is-visible { transform: none; }
.m-sticky b { display: block; font: 400 16px/1.15 var(--display); font-weight: 400; }
.m-sticky span { font-size: 12.5px; opacity: .75; }

/* ---------- Окна ---------- */
.m-modal { max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; color: var(--ink); background: transparent; }
.m-modal::backdrop { background: rgba(18, 13, 26, .74); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.m-modal[open] { animation: modalIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.m-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; color: var(--ink); background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.m-pay { width: 440px; padding: 40px 30px 28px; border-radius: 4px; background: var(--noise), var(--paper-2); text-align: center; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.m-pay .m-kicker { justify-content: center; }
.m-pay .m-kicker::before { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .3; }
.m-pay h3 { font-size: 2rem; }
.m-pay-sub { margin: 8px 0 22px; color: var(--muted); font-size: 15px; }
.m-pay-main { display: grid; justify-items: center; gap: 6px; padding: 18px; border: 2px solid var(--plum); border-radius: 4px; text-decoration: none; transition: transform .3s var(--ease); }
.m-pay-main:hover { transform: translateY(-2px); }
.m-pay-main b { width: 100%; margin-top: 4px; padding: 14px; color: var(--paper-2); background: var(--plum); font: 400 19px/1.1 var(--display); transition: background .3s; }
.m-pay-main:hover b { background: var(--plum-hover); }
.m-pay-main small { color: var(--muted); font-size: 13px; }
.m-pay-badge { padding: 4px 10px; border-radius: 3px; color: var(--plum); background: rgba(94, 22, 80, .1); font-size: 12px; font-weight: 800; }
.m-pay-alt { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.m-pay-alt a { color: var(--plum); }
.m-lightbox { width: min(460px, calc(100vw - 32px)); overflow: visible; }
.m-lightbox img { width: 100%; max-height: calc(100vh - 90px); max-height: calc(100dvh - 90px); object-fit: contain; background: #fff; }
.m-lightbox .m-close { top: -8px; right: -8px; color: #111; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.m-lb-nav { position: absolute; top: 50%; width: 46px; height: 46px; margin-top: -23px; border: 0; border-radius: 50%; color: #111; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.m-lb-prev { left: -64px; }
.m-lb-next { right: -64px; }
.m-lb-count { margin: 12px 0 0; color: #fff; font-size: 14px; text-align: center; }

/* ---------- Адаптив ---------- */
@media (max-width: 1080px) {
  .m-nav { display: none; }
  .m-head .m-btn { margin-left: auto; }
}
@media (max-width: 900px) {
  /* Обложка во всю ширину и так начинается с крупного названия: пока она видна, в шапке вместо него — знак академии */
  .m-logo-academy { display: flex; }
  .m-head.is-cover .m-logo-text, .m-head.is-cover .m-head-issue, .m-head:not(.is-cover) .m-logo-academy { opacity: 0; visibility: hidden; }
  .m-cover { min-height: auto; }
  .m-cover-grid { grid-template-columns: minmax(0, 1fr); }
  .m-mag { width: 100%; max-width: 520px; height: auto; aspect-ratio: 3 / 4; margin-inline: auto; }
  .m-contents { width: 100%; max-width: 520px; margin-inline: auto; }
  .m-rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-author-grid, .m-faq-grid { grid-template-columns: minmax(0, 1fr); }
  .m-portrait { position: static; max-width: 420px; }
  .m-dossier { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-imprint-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .m-coupons { grid-template-columns: minmax(0, 520px); }
  .m-coupon-best { order: -1; }
  .m-sticky { display: flex; }
}
/* Кнопки и логотип на телефонах и планшетах — не меньше 44px по высоте, чтобы попадать пальцем */
@media (max-width: 820px), (pointer: coarse) {
  .m-btn-sm { min-height: 44px; }
  .m-logo { padding-block: 12px; }
  .m-socials a { width: 44px; height: 44px; }
}
@media (max-width: 760px) {
  .m-shelf { --sw: 26px; --hs: .8; column-gap: 4px; }
  .m-spine > span { font-size: 9px; }
  .m-issue-list { columns: 1; }
  .m-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .m-flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .g-stage { --arc: 70svh; --gap: 12px; }
  .g-dots { right: 10px; }
}
/* Невысокие окна ноутбуков (1366×657, 1280×720, 1440×789): круг чуть ниже, главы компактнее */
@media (min-width: 761px) and (max-height: 820px) {
  .g-stage { --arc: 64svh; --gap: 16px; }
  .g-step h3 { margin: 16px 0 10px; font-size: clamp(2.3rem, min(6vw, 8svh), 5rem); }
  .g-step p { font-size: 1.05rem; }
  .g-chips { margin-top: 16px; }
  .g-step .m-btn { margin-top: 20px; padding-block: 12px; }
}
/* Короткие экраны телефонов (iPhone SE, небольшие Android): главы компактнее */
@media (max-width: 760px) and (max-height: 760px) {
  .g-step small { padding: 6px 11px; font-size: 11.5px; }
  .g-step h3 { margin: 14px 0 10px; font-size: 2rem; }
  .g-step p { font-size: 15px; line-height: 1.5; }
  .g-chips { gap: 6px; margin-top: 14px; }
  .g-chips span { padding: 6px 11px; font-size: 13px; }
  .g-step .m-btn { margin-top: 18px; padding-block: 13px; }
  .g-hint { bottom: 18px; }
}
/* Телефон, повёрнутый горизонтально: оставляем от круга только краешек */
@media (max-height: 520px) and (orientation: landscape) {
  .g-stage { --arc: 88svh; --gap: 0px; }
  .g-step h3 { margin: 10px 0 8px; font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .g-step p { font-size: 14px; line-height: 1.45; }
  .g-chips, .g-hint { display: none; }
  .g-step .m-btn { margin-top: 14px; padding-block: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .m-cookie { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; gap: 12px; padding: 14px; }
  .m-head-issue { display: none; }
  .m-head-row { gap: 12px; }
  .m-logo { font-size: 20px; }
  .m-contents .m-btn { justify-self: stretch; align-items: center; }
  .m-rubric-grid { grid-template-columns: minmax(0, 1fr); }
  .m-head-split { flex-direction: column; align-items: flex-start; }
  .m-arrows { display: none; }
  .m-coupon { padding: 36px 24px 26px; }
  .m-stamp { width: 84px; height: 84px; font-size: 10px; }
  .faq-a p { padding-right: 0; }
  .m-lb-prev { left: 6px; }
  .m-lb-next { right: 6px; }
}
@media (max-width: 460px) {
  .m-flow { grid-template-columns: minmax(0, 1fr); }
  .m-flow li + li { padding: 14px 0 6px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .15); }
}

/* Уважение к настройке «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
