/* Сайт для поиска mayamatrix.online в виде «Витраж» (выбор владельца 20.10.2026): солнечная стена, витражное окно-роза,
   светлая колода Майи, как в роликах и соцсетях (сиреневая, рубашка рисунка приложения в тех же цветах), розы и лилии
   из «Книги сказок» в арке над приглашением и на ветке полосы. Светлая тёплая бумага полем, тёмно-синие текст и кнопки,
   золото только линиями, числами и рамками; Cormorant Garamond и Maya Sans (PT Sans).
   Первый экран главной и 404 — ниша с окном (build.py hero_room, hero.js, rose.js), остальные страницы начинаются полосой
   той же стены (.band). Сначала телефон 320-430 px; на телефоне текст первого экрана и полосы по центру. */
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-600.woff?v=a4fc3574') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Cormorant Garamond'; src: url('fonts/cormorant-italic-500.woff?v=a78145db') format('woff'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Maya Sans'; src: url('fonts/mayasans-400.woff?v=fe55e4d4') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Maya Sans'; src: url('fonts/mayasans-700.woff?v=013a8e5b') format('woff'); font-weight: 700; font-style: normal; font-display: swap; }

/* ширина картины первого экрана — настоящая длина, чтобы на телефоне после даты сцена плавно приближалась */
@property --iw { syntax: '<length>'; inherits: true; initial-value: 0px; }

:root {
  --wall: #f3e2c6;
  --wall-2: #ecd6b0;
  --paper: #faf3e6;
  --paper-2: #fffaf1;
  --ink: #1e2347;
  --ink-2: #454964;
  --muted: #5d5f72;                                /* 5,9:1 к бумаге */
  --gold: #c09246;                                 /* только линии и рамки */
  --gold-hi: #ecd395;
  --gold-lo: #9a7130;                              /* текстом только от 24 px */
  --gold-ink: #7a581c;                             /* золото для текста любого размера, 5,9:1 */
  --line: rgba(154, 113, 48, .42);
  --line-2: rgba(154, 113, 48, .26);
  --line-3: rgba(154, 113, 48, .14);
  --err: #9b2c1e;
  --serif: 'Cormorant Garamond', Cormorant, 'PT Serif', Georgia, serif;
  --sans: 'Maya Sans', 'PT Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: 16px;
  --pad: max(var(--gutter), env(safe-area-inset-left));
  --pad-r: max(var(--gutter), env(safe-area-inset-right));
  --top-h: 52px;
  --radius: 16px;
  --ease: cubic-bezier(.22, .7, .2, 1);
  --measure: 40rem;
  --vh: var(--appvh, 100vh);
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 28px; } }
@media (min-width: 900px) { :root { --top-h: 84px; } }
@media (min-width: 1000px) { :root { --gutter: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  font-variant-numeric: lining-nums;               /* у Cormorant по умолчанию старинные цифры: «1o» вместо «10» */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 24px;
  overflow-x: hidden;                              /* картина первого экрана и арки шире колонки, страница вбок не едет */
  overflow-x: clip;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  font-variant-numeric: lining-nums;               /* шорткат font сбрасывает цифры, у каждого font с Cormorant они заданы снова */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
::selection { background: rgba(192, 146, 70, .3); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(192, 146, 70, .75); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--gold-ink); text-decoration-color: var(--gold-ink); }
:focus-visible { outline: 2.5px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 40; padding: 10px 16px; background: var(--ink); color: var(--paper-2); border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--paper-2); }

/* ---------- кнопки: главное действие — плоская сиреневая таблетка в цвет светлой колоды, второстепенное — светлая
   с контуром. Тёмно-синие кнопки с переливом и длинной тенью владелец 20.10 назвал «очень тяжёлыми»: цвет светлее,
   без перелива и без тени под кнопкой, кнопка ниже. Светлый текст к фону 4,7:1, при наведении 5,5:1 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 11px 24px; border: 0; border-radius: 999px;
  font: 700 16px/1.2 var(--sans); letter-spacing: .01em; text-decoration: none; text-align: center; text-wrap: balance;
  cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none;
  transition: background-color .2s, box-shadow .2s, color .2s, transform .2s var(--ease);
}
.btn--ink { background: #646ab3; color: #fffaf0; box-shadow: none; }
.btn--ink:hover { background: #565ca5; color: #fffaf0; }
.btn--ink:active { transform: translateY(1px); }
.btn--line { min-height: 44px; padding: 8px 18px; background: rgba(255, 250, 241, .78); color: var(--ink); font-size: 15px; box-shadow: inset 0 0 0 1.5px rgba(30, 35, 71, .3); }
.btn--line:hover { background: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- шапка: поверх первого экрана и полосы стены. Телефон и планшет: знак, «Перейти в приложение» и меню;
   от 1200 px разделы строкой в светлой капсуле посередине ---------- */
.top { position: absolute; z-index: 20; top: 0; left: 0; right: 0; }
.top__in { display: flex; align-items: center; gap: 10px; height: var(--top-h); max-width: 1320px; margin: 0 auto; padding: 4px var(--pad-r) 0 var(--pad); }
.brand { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.mark { width: 28px; height: 28px; color: var(--gold-lo); flex: none; }
.brand__name { font: 600 25px/1 var(--serif); font-variant-numeric: lining-nums; letter-spacing: .01em; }
.nav { display: none; }
.top__app { flex: none; min-height: 40px; padding: 6px 14px; font-size: 14px; }
@media (max-width: 379.98px) { .top__app { display: none; } }   /* на 320-375 px кнопка в меню и в первом экране */
.menu { position: relative; flex: none; }
.menu__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; list-style: none;
  background: rgba(255, 250, 241, .84); box-shadow: inset 0 0 0 1.5px rgba(30, 35, 71, .22), 0 6px 14px -10px rgba(92, 58, 18, .5);
  -webkit-tap-highlight-color: transparent;
}
.menu__btn::-webkit-details-marker { display: none; }
.menu__btn::marker { content: ''; }
.menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.menu__bars { position: relative; }
.menu__bars::before, .menu__bars::after { content: ''; position: absolute; left: 0; }
.menu__bars::before { top: -6px; }
.menu__bars::after { top: 6px; }
.menu[open] .menu__bars { background: transparent; }
.menu[open] .menu__bars::before { transform: translateY(6px) rotate(45deg); }
.menu[open] .menu__bars::after { transform: translateY(-6px) rotate(-45deg); }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(320px, calc(100vw - 2 * var(--gutter))); padding: 10px;
  border-radius: 20px; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(154, 113, 48, .22), 0 24px 48px -20px rgba(70, 46, 14, .45);
  animation: rise .25s var(--ease) both;
  max-height: calc(100vh - var(--top-h) - 12px); max-height: calc(100dvh - var(--top-h) - 12px); overflow-y: auto; overscroll-behavior: contain;
}
.menu__list { margin: 0; padding: 0; list-style: none; }
.menu__list li { margin: 0; max-width: none; }
.menu__list a { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; border-radius: 12px; color: var(--ink); font-size: 17px; text-decoration: none; }
.menu__list a:hover { background: rgba(192, 146, 70, .12); color: var(--ink); }
.menu__list a[aria-current="page"] { font-weight: 700; }
.menu__list a[aria-current="page"]::before { content: ''; flex: none; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--gold); }
.menu__app { display: flex; width: 100%; min-height: 50px; margin-top: 8px; font-size: 15.5px; }
@media (min-width: 900px) {
  .top__in { padding: 14px var(--gutter) 0 calc(var(--gutter) - 6px); }   /* у знака внутреннее поле 16 %: знак по краю текста */
  .brand { gap: 11px; }
  .mark { width: 38px; height: 38px; }
  .brand__name { font-size: 35px; }
  .top__app { min-height: 44px; padding: 8px 18px; font-size: 15px; }
}
@media (min-width: 1200px) {
  .menu { display: none; }
  .brand { margin-right: 0; }
  .nav { display: block; margin: 0 auto; }
  .nav ul {
    display: flex; gap: 2px; margin: 0; padding: 4px; list-style: none; border-radius: 999px;
    background: rgba(255, 250, 241, .82); box-shadow: inset 0 0 0 1px rgba(154, 113, 48, .2), 0 8px 20px -14px rgba(92, 58, 18, .45);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  }
  .nav li { margin: 0; max-width: none; }
  .nav a { display: block; padding: 8px 13px; border-radius: 999px; color: var(--ink-2); font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap; }
  .nav a:hover { background: rgba(192, 146, 70, .14); color: var(--ink); }
  .nav a[aria-current="page"] { background: #e3e3f4; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(87, 93, 166, .32); }   /* текущий раздел светлой сиренью, не тёмной плашкой */
}

/* ---------- полоса солнечной стены вверху страниц: путь, заголовок, строка. На телефоне по центру ---------- */
.band {
  position: relative; overflow: hidden; overflow: clip; padding: calc(var(--top-h) + 10px) 0 40px;
  background: var(--wall) url('hero/wall.webp?v=7e94c933') 14% top / cover no-repeat;   /* телефон: тени листьев, ветка шиповника за краем */
}
.band::after {                                     /* низ стены тает в бумагу страницы */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 243, 230, 0), var(--paper));
}
.band__in { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 calc(var(--pad-r) + 10px) 0 calc(var(--pad) + 10px); text-align: center; }
.band__in::before {                                /* ровное светлое пятно под текстом: тени листьев и ветка не спорят с буквами */
  content: ''; position: absolute; z-index: -1; inset: -10% -6% -16%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(251, 243, 228, .78), rgba(251, 243, 228, .4) 62%, rgba(251, 243, 228, 0));
}
.crumbs ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.5; color: var(--muted); }
.crumbs li { margin: 0; max-width: none; }
.crumbs li + li::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 10px 3px; border-radius: 50%; background: var(--gold-lo); }
.crumbs a { display: inline-block; margin: -11px 0; padding: 11px 0; color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.head h1 { margin: 12px 0 0; font: 600 clamp(34px, 6.2vw + 11px, 64px)/1.04 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
.meta { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.lead { margin: 14px auto 0; max-width: 34em; font: italic 500 clamp(20px, 1.2vw + 15px, 24px)/1.36 var(--serif); font-variant-numeric: lining-nums; color: var(--ink-2); text-wrap: pretty; }
.draftnote { position: relative; z-index: 30; margin: 0; padding: 8px var(--gutter); background: #f3d5cf; color: #6b1d12; font-size: 14px; text-align: center; }
@media (min-width: 600px) and (max-width: 899.98px) { .band .head { max-width: 34rem; margin-left: auto; margin-right: auto; } }
@media (min-width: 900px) {
  .band { padding: calc(var(--top-h) + 30px) 0 64px; background-position: right top; }   /* ветка шиповника справа от текста */
  .crumbs ol, .meta { color: var(--ink-2); }     /* светлого пятна под текстом здесь нет: 14 px на тенях листьев темнее */
  .band__in { padding: 0 var(--pad-r) 0 var(--pad); text-align: left; }
  .band__in::before { display: none; }
  .band .head { max-width: 46rem; }
  .crumbs ol { justify-content: flex-start; }
  .lead { margin-left: 0; }
}

/* карта страницы в полосе стены (build.py band_card): на широком компьютере справа от заголовка парит карта светлой колоды,
   как карты в свете окна на главной, — иначе за текстом пустая стена. Полоса разбита той же сеткой, что статья под ней:
   карта посередине колонки содержания. Позади тёплый свет, на стене тень: карта качается, тень остаётся на месте и чуть
   бледнеет. Внизу карты номер и имя (на спокойной сиреневой полосе колоды, с ореолом её цвета, где рисунок заходит ниже).
   У аркана та же картинка, что большая карта в тексте, та здесь скрыта */
.band__card { display: none; }
@media (min-width: 1100px) {
  .band--card .band__in { display: grid; grid-template-columns: minmax(0, 46rem) 16rem; column-gap: clamp(48px, 6vw, 110px);
    justify-content: start; align-items: center; }
  .band--card .band__text { min-width: 0; }
  .band__card { --tilt: 4deg; --bw: clamp(160px, 12.5vw, 204px);
    display: block; position: relative; justify-self: center; width: var(--bw); aspect-ratio: 7 / 12; margin: 0; }
  .band__card--l { --tilt: -3.5deg; }
  .band__card::before { content: ''; position: absolute; z-index: -1; inset: -26% -62%; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(255, 247, 226, .9), rgba(255, 241, 208, .45) 55%, rgba(255, 241, 208, 0)); }
  .band__shade { position: absolute; inset: 2% 3%; border-radius: 6% / 3.5%; background: rgba(92, 58, 18, .26); filter: blur(12px);
    transform: translate(16px, 22px) rotate(calc(var(--tilt) + 1deg)); }
  .band__float { position: absolute; inset: 0; display: block; transform: rotate(var(--tilt)); }
  .band__float img { display: block; width: 100%; height: 100%; max-width: none; border-radius: 5% / 2.92%;
    box-shadow: 0 18px 24px -16px rgba(52, 32, 8, .45); }
  .page--bandcard .bigcard { display: none; }
}

/* ---------- текст страниц ---------- */
main h2 { margin: 2.2em 0 .55em; font: 600 clamp(30px, 2.2vw + 20px, 42px)/1.08 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); text-wrap: balance; }
main h3 { margin: 1.8em 0 .4em; font: 600 clamp(22px, .8vw + 18px, 26px)/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
main p, main li { max-width: var(--measure); }
main p { margin: 0 0 1em; }
main ul, main ol { margin: 0 0 1.2em; padding-left: 1.25em; }
main li { margin: .35em 0; }
main li::marker { color: var(--gold-lo); }
main strong { color: var(--ink); font-weight: 700; }
blockquote { margin: 1.4em 0; padding: 0 0 0 1.1em; border-left: 2px solid var(--gold); font: italic 500 22px/1.4 var(--serif); font-variant-numeric: lining-nums; color: var(--ink-2); }
blockquote p { margin: 0; }
.fine { font-size: 14px; color: var(--muted); }
.nw { white-space: nowrap; }                       /* хвост «15-20-5» одной строкой */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad-r) 0 var(--pad); }

/* ---------- расчёт в статьях: светлая карточка, поле и тёмная кнопка как на первом экране ---------- */
.calc { position: relative; margin: 28px 0 0; }
.calc__form { display: grid; gap: 10px; max-width: 30rem; }
.calc__field label { display: block; margin: 0 0 6px; font: 700 15px/1.3 var(--sans); color: var(--ink); }
.calc__field input {
  display: block; width: 100%; min-height: 56px; padding: 12px 18px; border-radius: var(--radius); border: 1.5px solid rgba(122, 90, 42, .42);
  background: rgba(255, 252, 245, .97); color: var(--ink); font: 700 20px/1.2 var(--sans); letter-spacing: .07em;
  font-variant-numeric: lining-nums tabular-nums; text-align: center; -webkit-appearance: none; appearance: none;
  box-shadow: inset 0 2px 4px rgba(70, 50, 20, .06); transition: border-color .2s, box-shadow .2s;
}
.calc__field input::placeholder { color: #6f7184; opacity: 1; font-weight: 400; letter-spacing: .02em; }   /* светлее и тоньше введённой даты, 4,7:1 к полю */
.calc__field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(192, 146, 70, .38); }
.calc__field input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 4px rgba(155, 44, 30, .14); }
.calc__go { width: 100%; }
.calc__err { margin: 0; font: 700 15px/1.4 var(--sans); color: var(--err); text-wrap: pretty; }
.calc__note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: pretty; }
.calc__nojs { margin: 12px 0 0; color: var(--ink-2); }
.calc__scheme { position: relative; margin: 26px auto 0; max-width: 440px; }
.mx { width: 100%; height: auto; overflow: visible; }
.mx text { font-family: var(--serif); font-weight: 600; font-variant-numeric: lining-nums; }
.calc--pair .calc__form { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .calc--pair .calc__form { grid-template-columns: 1fr 1fr; max-width: 40rem; }
  .calc--pair .calc__go, .calc--pair .calc__err, .calc--pair .calc__note { grid-column: 1 / -1; }
}
/* на телефоне подписи и примечание по центру, как поле и кнопка */
@media (max-width: 599.98px) {
  .art .calc__field label, .art .calc__err, .art .calc__note { text-align: center; }
}
/* где карточка расчёта шире 640 px, поле и кнопка в одну строку (у пары оба поля и кнопка), кнопка вровень с полем;
   ошибка и примечание под ними. Иначе узкая форма висит слева в широкой карточке, как заготовка */
@media (min-width: 760px) {
  .art .calc:not(.calc--pair) .calc__form { grid-template-columns: minmax(12rem, 1fr) auto; align-items: end; max-width: 40rem; }
  .art .calc:not(.calc--pair) .calc__err, .art .calc:not(.calc--pair) .calc__note { grid-column: 1 / -1; }
  .art .calc .calc__go { width: auto; min-height: 56px; padding-left: 28px; padding-right: 28px; }
}
@media (min-width: 1000px) {
  .calc--pair .calc__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; max-width: none; }
  .calc--pair .calc__go { grid-column: auto; }
}
.art .calc { margin: 28px 0 8px; padding: 24px 20px 26px; border-radius: 24px; background: var(--paper-2); box-shadow: 0 0 0 1px rgba(154, 113, 48, .22), 0 22px 40px -30px rgba(92, 58, 18, .45); }
/* карточка по ширине строки текста: форма внутри занимает её целиком, справа не остаётся пустого места */
@media (min-width: 600px) { .art .calc { max-width: calc(var(--measure) + 64px); padding: 30px 32px 32px; } }
.art .calc .calc__out { margin-top: 20px; }

/* ---------- результат расчёта ---------- */
.calc__out:empty { display: none; }
.calc__out { margin-top: 26px; }
.calc__out.is-in { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.res__wait { color: var(--muted); font-style: italic; }
.res__date { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin: 0 0 6px; color: var(--ink-2); }
.res__date b { font: 600 24px/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
.res__edit, .hsum__edit {
  min-height: 44px; padding: 8px 2px; border: 0; background: none; cursor: pointer; color: var(--ink); font: 700 15.5px/1.2 var(--sans);
  text-decoration: underline; text-decoration-color: rgba(192, 146, 70, .8); text-decoration-thickness: 1.5px; text-underline-offset: .22em;
  text-decoration-skip-ink: none; -webkit-appearance: none; appearance: none;
}
.res__edit:hover, .hsum__edit:hover { color: var(--gold-ink); }
.res__h { margin: 1.4em 0 .7em; }
.reads { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.read { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-content: start; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.read__card { width: 76px; height: auto; border-radius: 5% / 2.92%; box-shadow: 0 14px 22px -14px rgba(52, 32, 8, .6); }
.read__h, .line__h { margin: 0; font: 600 25px/1.15 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); text-wrap: balance; }
.line__h { font-size: 23px; }
.read__h-pt, .line__h-pt { color: var(--gold-ink); }
.read__h-n, .line__h-n { color: var(--ink); text-decoration: none; }
a.read__h-n:hover, a.line__h-n:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
.read__sub, .line__sub { margin: 2px 0 0; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.read__lead { margin: 10px 0 8px; font: italic 500 23px/1.3 var(--serif); font-variant-numeric: lining-nums; color: var(--gold-ink); text-wrap: pretty; }
.read__text { margin: 0 0 .7em; color: var(--ink); text-wrap: pretty; }
.read__hook { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 1000px) {
  .reads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 0; }
  .read { grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line-2); border-bottom: 0; padding-top: 26px; }
  .read__card { width: 120px; }
}
.lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); max-width: none; }
.line { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; align-items: start; max-width: none; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.line::marker { content: none; }
/* число в светлой линзе с золотым ободом, как точки первого экрана */
.ring {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font: 600 21px/1 var(--serif); color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums; background: radial-gradient(circle at 40% 35%, #fffaf0 0%, #fbefcf 60%, #f3dfae 100%);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 3px rgba(255, 250, 238, .9), 0 0 12px rgba(236, 211, 149, .7);
}
.line__lead { margin: 4px 0 0; font: italic 500 21px/1.3 var(--serif); font-variant-numeric: lining-nums; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 1000px) {
  .lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; border-top: 0; }
  .line { border-top: 1px solid var(--line-2); border-bottom: 0; }
}
.res__more { margin: 24px 0 14px; color: var(--ink-2); text-wrap: pretty; }
.res__go { width: 100%; max-width: 30rem; }
.res__fine { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: balance; }
.res__web { display: flex; width: fit-content; margin: 16px 0 0; }      /* «Попробовать в браузере»: контуром, под строкой о разборе */

/* пара, карта года, хвост, аркан */
.pair { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.pair__card { width: 112px; height: auto; border-radius: 5% / 2.92%; box-shadow: 0 18px 26px -16px rgba(52, 32, 8, .6); }
.pair__who { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 419.98px) { .pair { grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: center; text-align: center; } .pair__card { width: 132px; } }
@media (min-width: 600px) { .pair { grid-template-columns: 160px minmax(0, 1fr); gap: 28px; } .pair__card { width: 160px; } }
.tail__num { margin: 4px 0 12px; font: 600 clamp(52px, 8vw + 20px, 88px)/1 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); letter-spacing: .02em; }
.tail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; max-width: 40rem; }
.tail__item { margin: 0; max-width: none; }
.tail__item::marker { content: none; }
.tail__card { width: 100%; max-width: 96px; height: auto; margin-bottom: 10px; border-radius: 5% / 2.92%; box-shadow: 0 12px 18px -12px rgba(52, 32, 8, .55); }
.tail__item .line__h { font-size: 20px; }
@media (max-width: 639.98px) {                   /* в три колонки по 75-150 px имена карт рвутся посреди слова: хвост строками */
  .tail { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .tail__item { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; }
  .tail__card { grid-row: 1 / 3; max-width: none; margin: 0; }
  .tail__item .line__h, .tail__item .line__sub { grid-column: 2; }
}
.hits { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.hits li { margin: 0; padding: 7px 14px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 15px; }
.hits li::marker { content: none; }

/* схема: числа встают в порядке счёта, рубашки переворачиваются в карты колоды (раз за расчёт) */
.mx-card .mx-back { opacity: 0; }
.mx.is-anim .mx-card .mx-back, .mx.is-anim .mx-card .mx-face { transform-box: fill-box; transform-origin: center; }
.mx.is-anim .mx-card .mx-back { opacity: 1; animation: mxBack .22s ease-in both; animation-delay: var(--d); }
.mx.is-anim .mx-card .mx-face { animation: mxFace .3s var(--ease) both; animation-delay: calc(var(--d) + .22s); }
.mx.is-anim .mx-dot { transform-box: fill-box; transform-origin: center; animation: mxDot .42s var(--ease) both; animation-delay: calc(var(--d) + .1s); }
.mx.is-anim .mx-rays { animation: mxRays 1.6s var(--ease) both; }
@keyframes mxBack { to { transform: scaleX(0); opacity: 1; } }
@keyframes mxFace { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mxDot { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes mxRays { from { stroke-opacity: .8; } to { stroke-opacity: .42; } }

/* ---------- колода: оглавление арканов. Номер и название на самих картах, как в приложении (подписи под картами владелец
   21.10 не принял), поэтому карты не мельче 125 px: так читается название на плашке. После расчёта ваши карты в мягком
   золотом свечении, остальные чуть тише, а какая карта в какой точке, говорит одна строка над колодой (calc.js).
   Своей светлой каймы у карт нет: рамка нарисована на самой карте ---------- */
.deck {
  display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 14px;
  margin: 6px calc(var(--gutter) * -1) 0; padding: 22px var(--gutter) 22px;   /* свечение ваших карт не срезано краем ленты */
  list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter) 0 42px;   /* слева видно 28 px прошлой карты, а не щель в 2 px */
  scrollbar-width: thin; scrollbar-color: rgba(154, 113, 48, .45) transparent; max-width: none;
}
.deck::-webkit-scrollbar { height: 6px; }
.deck::-webkit-scrollbar-thumb { background: rgba(154, 113, 48, .4); border-radius: 3px; }
.deck__card { margin: 0; max-width: none; scroll-snap-align: start; }
.deck__card::marker { content: none; }
.deck__card a, .deck__plain { display: grid; color: inherit; text-decoration: none; }
.deck__card a:hover { color: inherit; }
.deck__card img {
  width: 100%; height: auto; aspect-ratio: 7 / 12; border-radius: 5% / 2.92%;
  box-shadow: 0 14px 22px -14px rgba(52, 32, 8, .5);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), filter .5s, opacity .5s;
}
.deck__card a:hover img, .deck__card a:focus-visible img { transform: translateY(-5px); box-shadow: 0 22px 26px -14px rgba(52, 32, 8, .55); }
.deck__mine { margin: 16px 0 0; color: var(--ink-2); }
.deck__mine b { font-weight: 700; color: var(--ink); }
.deck__card.is-mine img { box-shadow: 0 0 16px 3px rgba(236, 200, 120, .8), 0 20px 26px -14px rgba(52, 32, 8, .5); transition-delay: var(--d, 0ms); }   /* только свечение: ряд карт не сдвигается */
.deck:has(.is-mine) .deck__card:not(.is-mine) img { filter: saturate(.9); opacity: .8; }
/* на компьютере колода раскладкой рядами: 22 не делится поровну, неполный последний ряд стоит по центру */
@media (min-width: 1000px) {
  .deck { --per: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 18px; margin: 24px 0 0; padding: 8px 0 0; overflow: visible; }
  .deck__card { flex: 0 0 calc((100% - (var(--per) - 1) * 18px) / var(--per)); }
  .art .deck { --per: 5; max-width: 46rem; }
}
@media (min-width: 1200px) { .deck { --per: 8; } }

/* ---------- бесплатно, снимки, цены ---------- */
.free { margin: 0 0 8px; padding: 0; list-style: none; }
.free li { position: relative; margin: 0; padding: 10px 0 10px 24px; border-bottom: 1px solid var(--line-3); }
.free li::before { content: ''; position: absolute; left: 4px; top: 1.2em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 18px; margin: 26px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter) 22px;
  overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(154, 113, 48, .45) transparent;
}
.shot { margin: 0; scroll-snap-align: start; }
.shot img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 0 0 1px rgba(154, 113, 48, .25), 0 24px 40px -24px rgba(70, 46, 14, .55); }
.shot figcaption { margin-top: 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 30px 0 0; padding: 0; overflow: visible; max-width: 1100px; } }
.prices { margin: 8px 0 14px; padding: 0; list-style: none; border-top: 1px solid var(--line-2); max-width: 52rem; }
.price { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: baseline; max-width: none; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.price__what b { display: block; font: 600 23px/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
.price__what span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.price__cost { font: 700 17px/1.2 var(--sans); color: var(--gold-ink); white-space: nowrap; font-variant-numeric: tabular-nums lining-nums; }

/* шаги «как это работает» */
.page--home ol:not([class]) { counter-reset: step; list-style: none; padding: 0; max-width: 52rem; }
.page--home ol:not([class]) > li { counter-increment: step; position: relative; padding: 4px 0 18px 56px; margin: 0; max-width: none; }
.page--home ol:not([class]) > li::before { content: counter(step); position: absolute; left: 0; top: -4px; font: 600 44px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--gold-lo); }
@media (min-width: 1000px) {
  .page--home ol:not([class]) { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; max-width: none; }
  .page--home ol:not([class]) > li { padding: 58px 0 0; }
  .page--home ol:not([class]) > li::before { top: 0; }
}

/* ссылки на другие расчёты */
.more__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); max-width: 52rem; }
.more__list li { margin: 0; max-width: none; }
.more__list a { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink-2); }
.more__list b { font: 600 25px/1.15 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
.more__list a:hover b { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .18em; }
@media (min-width: 1000px) { .more__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; max-width: none; } .more__list a { border-top: 1px solid var(--line-2); border-bottom: 0; } }

/* на компьютере длинные списки главной в две колонки: иначе справа от узкой колонки текста пустая половина экрана */
@media (min-width: 1100px) {
  .page--home .wrap > ul:not([class]) { columns: 2; column-gap: 56px; max-width: none; }
  .page--home .wrap > ul:not([class]) li { break-inside: avoid; }
  .page--home .free { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; max-width: none; }
  .page--home .prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; max-width: none; border-top: 0; }
  .page--home .price { border-top: 1px solid var(--line-2); border-bottom: 0; }
  .page--home .shots { max-width: none; column-gap: 56px; }  /* снимки приложения до правого края списков */
}

/* ---------- вопросы ---------- */
.faq__list { border-top: 1px solid var(--line-2); max-width: 46rem; }
.qa { padding: 20px 0 8px; border-bottom: 1px solid var(--line-2); }
.qa__q { margin: 0 0 8px; font: 600 24px/1.2 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
.qa__a p { color: var(--ink); }
@media (min-width: 1100px) {
  .page--home .faq__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; max-width: none; border-top: 0; }
  .page--home .qa { border-top: 1px solid var(--line-2); border-bottom: 0; }
}

/* ---------- приглашение в приложение под аркой из роз и лилий («Книга сказок»). Везде видна только верхушка арки,
   ножки тают, текст под ней на чистой бумаге: арка целиком вокруг текста читалась как траурный венок (проверка 20.10) ---------- */
.cta, .res__cta { position: relative; max-width: 640px; margin: 56px auto 0; text-align: center; }
.cta__garland, .res__garland {
  display: block; width: 108%; max-width: none; height: auto; margin: 0 -4% -34%; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 52%); mask-image: linear-gradient(180deg, #000 30%, transparent 52%);
}
.cta__in { position: relative; max-width: 26rem; margin: 0 auto; }
.cta__title { margin: 0 auto 10px; font: 600 clamp(32px, 2vw + 24px, 44px)/1.05 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); text-wrap: balance; }
.cta__text { margin: 0 auto 20px; color: var(--ink-2); text-wrap: pretty; }
.cta__btn { width: 100%; max-width: 24rem; }
.cta__fine { margin: 12px auto 0; font-size: 14px; line-height: 1.45; color: var(--muted); text-wrap: balance; }
.cta__web { display: flex; width: fit-content; margin: 16px auto 0; }    /* «Попробовать в браузере»: без Telegram, тише главной кнопки */
.res__cta-in { position: relative; max-width: 330px; margin: 0 auto; }
@media (min-width: 900px) {
  .cta, .res__cta { width: 700px; max-width: 100%; margin-top: 72px; }
  .cta__garland, .res__garland { width: 100%; margin: 0 0 -34%; }
  .cta__in, .res__cta-in { max-width: 380px; padding-bottom: 36px; }
}

/* ---------- статьи: колонка текста и содержание сбоку ---------- */
.wrap--art { display: block; }
.art { padding-bottom: 8px; }
.toc { display: none; }
@media (min-width: 1100px) {
  .wrap--art { display: grid; grid-template-columns: minmax(0, 46rem) 16rem; grid-template-areas: "art toc"; column-gap: clamp(48px, 6vw, 110px); justify-content: start; }
  .wrap--art > .art { grid-area: art; }
  .toc { display: block; grid-area: toc; align-self: start; position: sticky; top: 24px; margin-top: 34px; padding: 18px 0 0; border-top: 1px solid var(--line-2); }
  .toc__h { margin: 0 0 10px; font: 700 15px/1.2 var(--sans); color: var(--ink); }
  .toc ol { margin: 0; padding: 0; list-style: none; }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.35; color: var(--ink-2); text-decoration: none; }
  .toc a:hover { color: var(--ink); text-decoration: underline; }
}
.art > p:first-child { margin-top: 26px; }
.art h2 { margin-top: 1.9em; }

/* таблицы: прокрутка только внутри таблицы, страница вбок не едет */
.tbl { margin: 18px 0 22px; overflow-x: auto; max-width: 100%; scrollbar-width: thin; scrollbar-color: rgba(154, 113, 48, .45) transparent; }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: lining-nums tabular-nums; }
th, td { padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
thead th { font: 700 14px/1.3 var(--sans); color: var(--ink); border-bottom-color: var(--line); }
tbody th { font-weight: 400; color: var(--ink); }
td.num { white-space: nowrap; color: var(--ink-2); }
@media (max-width: 599.98px) { td.num { white-space: normal; } }
td b { font: 600 20px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); }
.pt { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(192, 146, 70, .14); font: 700 12.5px/1.4 var(--sans); color: var(--gold-ink); }
table.steps { min-width: 560px; }
@media (max-width: 599.98px) {
  table.steps { min-width: 0; }
  table.steps thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  table.steps tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
  table.steps th, table.steps td { padding: 0; border: 0; }
  table.steps tbody th { grid-column: 1; grid-row: 1; }
  table.steps td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 14px; color: var(--ink-2); }
  table.steps td.num { grid-column: 1; grid-row: 3; white-space: normal; font-size: 14px; }
  table.steps td:last-child { grid-column: 2; grid-row: 1 / span 3; align-self: center; text-align: right; }
}
.example { margin: 22px 0 6px; }
.example__scheme { max-width: 380px; margin: 0 auto; }
.example figcaption { margin-top: 8px; text-align: center; font: italic 500 18px/1.3 var(--serif); font-variant-numeric: lining-nums; color: var(--ink-2); }

/* большая карта аркана светлой колоды чуть парит над страницей, как карты первого экрана: под ней мягкая тень, цветов нет */
.bigcard { margin: 30px auto 14px; max-width: 250px; }
.bigcard__stand { position: relative; display: block; padding-bottom: 9%; }
.bigcard__stand::before {
  content: ''; position: absolute; z-index: 0; left: 6%; right: 6%; bottom: 0; height: 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(84, 52, 16, .26), rgba(84, 52, 16, .1) 58%, rgba(84, 52, 16, 0));
}
.bigcard__img { position: relative; z-index: 1; width: 100%; height: auto; border-radius: 5% / 2.92%;
  box-shadow: 0 22px 26px -18px rgba(52, 32, 8, .5); }
@media (min-width: 760px) {
  .bigcard { float: right; width: 260px; margin: 10px 4px 44px 48px; }
  .bigcard ~ h2 ~ h2 { clear: right; }            /* второй раздел начинается под картой: заголовок не жмётся к ней («Где» отдельной строкой) */
}

/* ---------- подвал: тёплая полоса стены ---------- */
.foot { margin-top: 88px; padding: 0 0 40px; background: linear-gradient(180deg, var(--wall) 0%, var(--wall-2) 100%); box-shadow: inset 0 1px 0 var(--line-2); }
.foot__in { max-width: 1320px; margin: 0 auto; padding: 44px var(--pad-r) 0 var(--pad); display: grid; gap: 34px; }
.foot .brand { margin-right: 0; }
.foot__motto { margin: 16px 0 10px; max-width: 26rem; font: italic 500 22px/1.35 var(--serif); font-variant-numeric: lining-nums; color: var(--ink-2); }
.foot__about { margin: 0 0 18px; max-width: 30rem; font-size: 15px; color: var(--ink-2); }
.foot__about + .foot__channel { margin-top: -8px; }
.foot__h { margin: 0 0 10px; font: 700 15px/1.2 var(--sans); color: var(--ink); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot li { margin: 0; }
.foot li a { display: inline-block; padding: 11px 0; margin: -5px 0; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot__arc { columns: 2; column-gap: 24px; }
.foot__fine { max-width: 1320px; margin: 34px auto 0; padding: 0 var(--pad-r) 0 var(--pad); font-size: 13.5px; color: var(--muted); }
@media (min-width: 1000px) { .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.25fr); } }   /* 22 аркана в два столбца по 160+ px */

.page--home .wrap > h2:first-child { margin-top: 1.5em; }

/* ---------- 404: после первого экрана строка со ссылками ---------- */
.page--404 .wrap { padding-top: 36px; text-align: center; }
.page--404 .wrap p { margin-left: auto; margin-right: auto; }

/* ====================================================================================================================
   Первый экран «Витраж» (главная и 404): нарисованная ниша в солнечной стене (hero/niche_*.webp), в ней окно-роза —
   матрица, в его свете над подоконником парят три карты светлой колоды Майи. Окно, карты и пылинки стоят по точкам
   картины: все размеры сцены в долях её ширины --iw, поэтому ниша, окно и подоконник держатся вместе на любом экране.
   Подоконник на картинах: телефон — линия стены .927, передний край 1.02; компьютер — .445 и .500 (посередине ниши).
   Телефон: ниша по центру, под подоконником заголовок, текст и форма по центру. Компьютер: текст слева, ниша справа.
   Точки картин измерены на исходниках (телефон 1536 px шириной, компьютер 2304 px).
   ==================================================================================================================== */
.calc--hero { margin: 0; }
/* телефон: верх окна в 6 px под шапкой (58 px от верха); ширина картины такая, чтобы под подоконником поместились
   заголовок, текст, строка примера и кнопка (шапка + 6 + 371 текст и форма + 8 запас), но не уже 110vw и не шире 140vw. Так же стоит
   первый экран на высоких экранах шире 900 px (планшет стоя, монитор боком): ниша по центру, текст под ней */
.room {
  --ax: .51107; --ay: .46484; --ar: .26953; --base: .92708; --sb: 1.10677; --nw: .5697; --cw: .104; --sl: .0573;
  --iw: clamp(min(110vw, 420px), calc((var(--vh) - var(--top-h) - 385px) / .91146), 140vw);
  --pt: calc(var(--top-h) + 6px - var(--iw) * .19531);
  --pl: calc(50% - var(--iw) * var(--ax));
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  min-height: 100vh; min-height: var(--vh);
  background: linear-gradient(180deg, var(--wall-2) 0%, var(--wall) 40%, #f6ead6 88%, var(--paper) 100%);
}
/* телефон после даты: окно ближе — картина не уже 590 px (окно 323 px, 130 px на единицу звезды), на самых узких
   экранах окно во всю ширину без 4 px (картина = окно × 1,8254). Так самые мелкие числа не меньше 11 px */
@media (max-width: 899.98px) {
  .room { transition: --iw .9s var(--ease); }
  .calc--hero.is-calc .room { --iw: max(min(590px, calc((100vw - 4px) * 1.8254)), clamp(min(110vw, 420px), calc((var(--vh) - var(--top-h) - 359px) / .91146), 140vw)); }
}
.paint { position: absolute; z-index: 0; left: var(--pl); top: var(--pt); width: var(--iw); pointer-events: none; }
.paint__img {
  display: block; width: 100%; max-width: none; height: auto;
  /* края картины растворяются в стене: снизу сразу под тенью подоконника, по бокам для планшетов, где картина уже экрана */
  -webkit-mask-image: linear-gradient(180deg, #000 92.6%, transparent 97.5%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 92.6%, transparent 97.5%), linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}
/* под логотипом на телефоне ветка с цветами: мягкое светлое пятно под знаком и словом, чтобы «Майя» читалась целиком */
.page--home .top .brand::before, .page--404 .top .brand::before {
  content: ''; position: absolute; left: -38px; top: -26px; width: 200px; height: 108px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(251, 243, 228, .97) 0%, rgba(251, 243, 228, .94) 50%, rgba(251, 243, 228, .55) 76%, rgba(251, 243, 228, 0) 100%);
}

/* сцена: окно-роза, пылинки, карты. Рамка — задняя стена ниши от верха окна до подоконника */
.hero { padding: calc(var(--pt) + var(--iw) * var(--sb)) var(--pad-r) 28px var(--pad); }
.scene {
  position: absolute; z-index: 3;
  left: calc(var(--pl) + var(--iw) * (var(--ax) - var(--nw) / 2));
  top: calc(var(--pt) + var(--iw) * (var(--ay) - var(--ar)));
  width: calc(var(--iw) * var(--nw));
  height: calc(var(--iw) * (var(--base) - var(--ay) + var(--ar)));
}
/* окно: холст витража шире рамки на 1,6 % (рамка кончается на 1,22 из 1,24 единицы) */
.window { position: absolute; left: 50%; top: calc(var(--iw) * var(--ar)); width: calc(var(--iw) * var(--ar) * 2.0325); aspect-ratio: 1 / 1; transform: translate(-50%, -50%); }
.window::before { /* окно сидит в толще стены: тень под рамкой и тёплое свечение вокруг */
  content: ''; position: absolute; inset: .8%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 calc(var(--iw) * .006) calc(var(--iw) * .02) calc(var(--iw) * -.004) rgba(92, 58, 18, .42), 0 0 calc(var(--iw) * .05) calc(var(--iw) * .004) rgba(255, 238, 200, .75);
}
.window__glass { position: absolute; inset: 0; }

/* окно-роза и числа поверх него (rose.js). Размер задаёт родитель; --u — пикселей на единицу звезды (ставит rose.js) */
.rose { position: relative; aspect-ratio: 1 / 1; --u: 130; -webkit-tap-highlight-color: transparent; }
.rose__gl, .rose__still { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; }
.rose__still { transition: opacity .5s ease; }
.rose.is-live .rose__still { opacity: 0; }
.rose--flat .rose__gl { display: none; }
.rose__nums { position: absolute; inset: 0; pointer-events: none; }
.rose__n {
  position: absolute; transform: translate(-50%, -52%) scale(.55); opacity: 0; filter: blur(3px);
  font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums; color: var(--ink); white-space: nowrap;
  text-shadow: 0 0 .18em rgba(255, 249, 232, .95), 0 0 .5em rgba(255, 244, 214, .7);
  transition: opacity .3s ease, transform .5s cubic-bezier(.2, .9, .25, 1.25), filter .45s ease;
}
.rose__n.is-on { opacity: 1; transform: translate(-50%, -52%) scale(1); filter: none; }
/* числа до даты (rose.js showAt, hideAt): каждое само по себе проступает из лёгкой дымки и так же тает, почти без сжатия */
.rose.is-slow .rose__n { transition: opacity .5s ease-in-out, transform .55s ease-in-out, filter .5s ease-in-out; }
.rose.is-slow .rose__n:not(.is-on) { transform: translate(-50%, -52%) scale(.86); }
.rose.is-slow .rose__n.is-on { transition: opacity .4s ease-out, transform .45s ease-out, filter .4s ease-out; }
.rose__n--main { font-size: calc(var(--u) * .14px); }
.rose__n--e { font-size: calc(var(--u) * .2px); }
/* малые числа не мельче 11 px: на телефоне после даты по расчёту, на низких экранах компьютера по нижней границе */
.rose__n--in { font-size: max(11px, calc(var(--u) * .09px)); letter-spacing: -.03em; }
.rose__n--r { font-size: max(11px, calc(var(--u) * .087px)); letter-spacing: -.03em; }
/* без WebGL: под загоревшимся числом ровный светлый круг размером с чистую середину линзы */
.rose--flat .rose__n::before {
  content: ''; position: absolute; left: 50%; top: 54%; width: 1.3em; height: 1.3em; transform: translate(-50%, -50%); z-index: -1;
  border-radius: 50%; background: radial-gradient(closest-side, #fffaf0 0%, #fbf0d8 82%, rgba(251, 240, 216, 0) 100%);
}
.rose--flat .rose__n--main::before, .rose--flat .rose__n--e::before { width: 1.55em; height: 1.55em; }

/* пылинки в свете между окном и картами */
.motes { position: absolute; left: 50%; top: calc(var(--iw) * var(--ar) * 1.82); width: calc(var(--iw) * var(--ar) * 1.5); height: calc(100% - var(--iw) * var(--ar) * 1.82 - var(--iw) * var(--cw) * .6); transform: translateX(-50%); pointer-events: none; z-index: 2; }
.motes i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fffaf0; box-shadow: 0 0 6px 2px rgba(255, 240, 200, .8); opacity: 0; animation: mote 11s linear infinite; }
.motes i:nth-child(1) { left: 8%; top: 70%; animation-delay: -1s; }
.motes i:nth-child(2) { left: 20%; top: 30%; animation-delay: -4s; animation-duration: 13s; }
.motes i:nth-child(3) { left: 31%; top: 88%; animation-delay: -7s; }
.motes i:nth-child(4) { left: 6%; top: 18%; animation-delay: -2.5s; animation-duration: 15s; }
.motes i:nth-child(5) { left: 92%; top: 60%; animation-delay: -9s; }
.motes i:nth-child(6) { left: 84%; top: 25%; animation-delay: -5.5s; animation-duration: 12s; }
.motes i:nth-child(7) { left: 70%; top: 84%; animation-delay: -3s; }
.motes i:nth-child(8) { left: 96%; top: 8%; animation-delay: -8s; animation-duration: 14s; }
.motes i:nth-child(9) { left: 60%; top: 48%; animation-delay: -6s; }
.motes i:nth-child(10) { left: 42%; top: 12%; animation-delay: -10s; animation-duration: 16s; }
.motes i:nth-child(3n) { width: 2px; height: 2px; }
@keyframes mote {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: .9; }
  50% { opacity: .5; transform: translate(8px, -14px); }
  80% { opacity: .8; }
  100% { opacity: 0; transform: translate(-5px, -26px); }
}

/* карты парят в свете окна над передней частью подоконника: три карты светлой колоды Майи (как в роликах и соцсетях).
   Каждая под своим наклоном и на своей высоте, средняя ниже крайних («галочкой»), между ними просвет. Свет розы на
   подоконнике и тени карт нарисованы на самих картинах niche_tall и niche_wide (relight_niche.py из архива доработки):
   под каждой картой (--sl ниже линии стены, не доходя до переднего края) камень темнее и без цветного света, ведь карта
   его заслоняет. Поэтому числа ниже (--cw, --sl, --x, --up, --r, --w, --gx, сдвиг тройки) записаны и в том скрипте:
   сдвинули карту — перерисуйте картины. Бурые пятна на переднем ребре владелец 21.10 счёл неестественными.
   Карты висят спокойно: покачивание владелец 21.10 не принял.
   Номер и название нарисованы на самих картах, как в приложении. Тёмные карты стоймя на камне с цветами у ног владелец 20.10 назвал надгробием, рубашку рядом
   с открытыми картами — непонятной: поэтому карты в воздухе, светлые, без цветов и всегда лицом. Слева A (личность),
   посередине E (центр), справа C (денежный код): в разметке карты примера (_site.json calc.example), до даты каждая
   меняется вместе с числом в линзе своей точки, после даты свои.
   --x — середина карты от середины ниши, --up — высота над точкой на камне под ней (в ширинах карты --c), --r — наклон;
   --gx сжимает раскладку там, где ниша уже */
.hdeck {
  --c: calc(var(--iw) * var(--cw));
  position: absolute; left: 50%; bottom: calc(var(--iw) * var(--sl) * -1); width: 0; height: 0; z-index: 3;
}
/* тёплый свет окна за картами: карты парят в нём, а не стоят у стены */
.hdeck::before {
  content: ''; position: absolute; z-index: -2; pointer-events: none;
  left: calc(var(--c) * -2.6); width: calc(var(--c) * 5.2); bottom: calc(var(--c) * .1); height: calc(var(--c) * 2.6);
  background: radial-gradient(closest-side, rgba(255, 246, 222, .62), rgba(255, 240, 208, .28) 55%, rgba(255, 240, 208, 0));
}
.hcard[data-k="A"] { --x: -1.45; --up: .3; --r: 5deg; }
.hcard[data-k="E"] { --x: .02; --up: .2; --r: -3deg; --w: calc(var(--c) * 1.06); }
.hcard[data-k="C"] { --x: 1.5; --up: .26; --r: 7deg; }
.hcard {
  position: absolute; bottom: calc(var(--c) * var(--up)); left: calc(var(--c) * var(--x) * var(--gx, 1) - var(--w, var(--c)) / 2);
  width: var(--w, var(--c)); aspect-ratio: 7 / 12; transform: rotate(var(--r)); transition: bottom .9s var(--ease);
}
.hcard[data-k="E"] { z-index: 2; }
/* карта отделена от стены лёгкой рассеянной тенью, без тёмного края */
.hcard__in { position: relative; display: block; width: 100%; height: 100%; border-radius: 5% / 2.92%;
  box-shadow: 0 .3em .9em -.2em rgba(70, 48, 24, .2); font-size: calc(var(--c) * .1); }
.hcard__in img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: inherit; }
/* до даты (hero.js): новая карта проступает поверх прежней вместе с числом в линзе своей точки; прозрачность ведёт
   hero.js, без перехода CSS, чтобы карта на время смены не уходила в отдельный слой и не теряла резкость */
.hcard__in .hcard__next { position: absolute; inset: 0; opacity: 0; }
.hcard__in::after {                                /* верхний край ловит свет окна */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 240, 200, .3) 0%, rgba(255, 240, 200, .08) 22%, rgba(255, 240, 200, 0) 40%);
  mix-blend-mode: screen;
}
/* голубая бабочка из «Книги сказок» сидит на верхнем крае правой карты и изредка складывает крылья */
.moth { position: absolute; z-index: 3; left: 47%; top: -12%; width: 50%; transform: rotate(-16deg); pointer-events: none; }
.moth img { display: block; width: 100%; height: auto; transform-origin: 50% 50%; animation: moth 7s ease-in-out infinite;
  filter: drop-shadow(0 calc(var(--c) * .02) calc(var(--c) * .03) rgba(60, 40, 20, .3)); }
@keyframes moth { 0%, 84%, 100% { transform: scaleX(1); } 88% { transform: scaleX(.34); } 92% { transform: scaleX(.92); } 95% { transform: scaleX(.46); } 98% { transform: scaleX(1); } }

/* текст и форма: на телефоне по центру */
.copy { position: relative; z-index: 5; max-width: 560px; margin: 0 auto; text-align: center; }
.calc--hero .head h1 { margin: 0; font: 600 clamp(29px, 7.6vw, 34px)/1.04 var(--serif); font-variant-numeric: lining-nums; letter-spacing: -.005em; color: var(--ink); text-wrap: balance; }
.calc--hero .lead { margin: 8px 0 0; max-width: none; font: 400 15.5px/1.45 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.calc--hero .calc__form { display: block; max-width: none; margin: 14px 0 0; }
.calc--hero .calc__field input { min-height: 52px; }
.calc--hero .calc__go { display: flex; width: 100%; margin-top: 10px; padding: 11px 22px; }
.calc--hero .calc__err { margin: 8px 0 0; }
.calc--hero .calc__note { margin: 8px 0 0; color: var(--ink-2); }
.calc--hero .calc__web { display: flex; width: 100%; margin-top: 10px; }   /* «Попробовать в браузере» под главной, тише неё */
.calc--hero .calc__nojs { font-size: 15px; }

/* итог: подпись и три главные точки — подписи к трём открытым картам над подоконником, в том же порядке: слева личность (A),
   посередине центр (E), справа денежный код (C). Число в линзе, как в окне, под ним что это за точка и аркан */
.hsum { margin-top: 2px; animation: rise .5s var(--ease) both; }
.hsum__h { margin: 0; font: 600 23px/1.15 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); outline: none; text-wrap: balance; }
/* три точки в общей сетке: строки число, подпись, имя общие для трёх столбцов (subgrid), поэтому подпись в две строки
   («Денежный код» на узком экране) не сдвигает имена соседей */
.hpoints { list-style: none; margin: 16px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto; gap: 0 10px; max-width: 440px; }
.hpt { display: grid; grid-template-rows: subgrid; grid-row: span 3; justify-items: center; align-content: start; margin: 0; max-width: none;
  text-align: center; animation: rise .5s var(--ease) both; }
.hpt:nth-child(2) { animation-delay: .08s; }
.hpt:nth-child(3) { animation-delay: .16s; }
.hpt__t { display: block; font: 400 14px/1.25 var(--sans); color: var(--ink-2); }
.hpt__a { display: block; margin-top: 2px; font: 600 20px/1.08 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); text-wrap: balance; }
.hpt__n {
  order: -1; display: grid; place-items: center; width: 44px; height: 44px; margin: 4px 0 10px; border-radius: 50%;
  font: 600 23px/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; color: var(--ink);
  background: radial-gradient(circle at 40% 35%, #fffaf0 0%, #fbefcf 60%, #f3dfae 100%);
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 3.5px rgba(255, 250, 238, .9), 0 0 14px rgba(236, 211, 149, .8);
}
.hpt--e .hpt__n { width: 52px; height: 52px; margin: 0 0 6px; font-size: 27px; background: radial-gradient(circle at 40% 35%, #fff6dc 0%, #fbe3a6 62%, #f0cd7c 100%); }
/* под тремя точками: тёмная кнопка к расшифровке (она ниже сцены, стрелка вниз) и ссылка «Изменить дату» */
.hsum__acts { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 16px; }
.hsum__go { width: min(100%, 340px); min-height: 48px; gap: 12px; white-space: nowrap; }
.hsum__edit { white-space: nowrap; }
.hsum__go::after { content: ''; flex: none; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.calc--hero.is-calc .lead, .calc--hero.is-calc .calc__form, .calc--hero.is-calc noscript { display: none; }
/* после даты заголовком становится подпись с датой; общий заголовок остаётся для чтения с экрана */
.calc--hero.is-calc .head h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* расшифровка под сценой (пишет calc.js): три главные точки картами колоды, другие точки, приглашение под аркой.
   Телефон: всё по центру, карта над текстом. Компьютер: карта слева, текст справа */
.calc--hero .calc__out { position: relative; z-index: 1; margin: 0; overflow: hidden; overflow: clip; padding: 40px var(--pad-r) 56px var(--pad); text-align: center; background: linear-gradient(180deg, var(--paper) 0%, #f8eedf 45%, var(--paper) 100%); }
.calc--hero .res__date { display: none; }
.calc--hero .res__wait { margin: 0; }
.calc--hero .res__h { margin: 0 auto; max-width: 16em; font-size: 32px; line-height: 1.08; outline: none; scroll-margin-top: 16px; }
.calc--hero .lines + .res__h, .calc--hero .reads + .res__h { margin-top: 48px; font-size: 28px; }
.calc--hero .reads { max-width: 560px; margin: 22px auto 0; border-top: 0; }
.calc--hero .read { display: block; padding: 30px 0 32px; border-top: 1px solid rgba(154, 113, 48, .3); border-bottom: 0; }
.calc--hero .read:first-child { padding-top: 8px; border-top: 0; }
.calc--hero .read__card { display: block; width: 132px; margin: 0 auto 18px; box-shadow: 0 20px 30px -18px rgba(52, 32, 8, .55), 0 4px 10px -4px rgba(52, 32, 8, .26); }
.calc--hero .read__h { font-size: 26px; }
.calc--hero .read__h-pt { color: var(--gold-lo); }
.calc--hero .read__sub { margin-top: 4px; }
.calc--hero .read__lead { margin: 14px auto 10px; max-width: 22em; text-wrap: balance; }
.calc--hero .read__text { margin: 0 auto; max-width: 34em; font-size: 16.5px; }
.calc--hero .read__hook { margin: 12px auto 0; max-width: 34em; }
.calc--hero .lines { max-width: 560px; margin: 20px auto 0; text-align: left; }
.calc--hero .res__more { margin: 0; font-size: 16.5px; line-height: 1.5; color: var(--ink); text-wrap: balance; }
.calc--hero .res__go { display: flex; width: 100%; margin: 16px 0 0; padding: 12px 20px; font-size: 16px; }
.calc--hero .res__web { margin: 14px auto 0; }

/* невысокий экран 900-1199 px (ноутбук, планшет боком): окно-роза поднимается к шапке и кнопка «Перейти в приложение»
   ложится на её край. Там кнопка остаётся в меню и в первом экране, а в шапке её нет */
@media (min-width: 900px) and (max-width: 1199.98px) and (min-aspect-ratio: 1/1) and (max-height: 780px) {
  .page--home .top__app, .page--404 .top__app { display: none; }
}
/* ---------- первый экран на компьютере: ниша справа во весь экран, текст слева на светлой стене ----------
   ширина картины: окно 92 % от min(40vw, 56 % высоты, 580 px), но не меньше экрана в ширину и высоту и не больше, чем
   позволяет подоконник (низ его лицевой грани на 8 px выше низа экрана); ниша на 72 % ширины. Только на экранах не уже
   квадрата: на высоких текст лёг бы на нишу, там первый экран как на телефоне (тот же порог у <source> картины в build.py) */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  /* левый край текста первого экрана — как у разделов ниже и у полосы на других страницах (контейнер 1320 px): шапка
     с логотипом и кнопкой стоит на всех страницах на одном месте и не прыгает при переходе */
  :root { --cl: max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))); }
  .page--home .top .brand::before, .page--404 .top .brand::before { display: none; }
  .room {
    --ax: .73351; --ay: .18663; --ar: .13021; --base: .45356; --nw: .2691; --cw: .058; --sl: .0282; --gx: .92;
    --D: calc(min(40vw, var(--vh) * .56, 580px) * .92);
    --iw: max(100vw, calc(var(--vh) * 1.6623), min(calc(var(--D) * 3.84), calc((var(--vh) - 8px) * 1.858)));
    --pt: 0px;
    --pl: max(calc(100vw - var(--iw)), min(0px, calc(72vw - var(--iw) * var(--ax))));   /* в vw: по ней же считается ширина текста */
    /* комната не ниже картины (2304 × 1386): подоконник и шиповник не обрезаны краем экрана, картина сама тает в бумагу */
    min-height: max(var(--vh), calc(var(--iw) * .6016));
    background: linear-gradient(180deg, #f1d9b2 0%, #f1d9b2 calc(100% - 90px), var(--paper) 100%);
  }
  /* карты чуть левее середины ниши: правая не заходит на шиповник у края подоконника */
  .hdeck { left: calc(50% - var(--c) * .3); }
  .paint__img { -webkit-mask-image: linear-gradient(180deg, #000 94%, transparent 100%); mask-image: linear-gradient(180deg, #000 94%, transparent 100%); }
  .hero { display: grid; align-items: center; min-height: var(--vh); padding: var(--top-h) 0 28px var(--cl); }
  /* текст кончается за 32 px до ветки шиповника (её левый край на картине .455 ширины); заголовок по этой ширине */
  .copy { --cpw: min(540px, 38vw, calc(var(--pl) + var(--iw) * .455 - var(--cl) - 32px));
    margin: 0; max-width: var(--cpw); text-align: left; padding-bottom: 3vh; }
  /* за текстом светлое пятно, стена там и так светлая: пятно лишь ровняет тени листьев */
  .copy::before { content: ''; position: absolute; inset: -14% -18% -10% -22%; z-index: -1; pointer-events: none;
    background: radial-gradient(closest-side, rgba(250, 236, 210, .7), rgba(250, 236, 210, .35) 60%, rgba(250, 236, 210, 0)); }
  .calc--hero .head h1 { font-size: clamp(34px, min(4.4vw, calc(var(--cpw) / 7.3)), 66px); line-height: 1.02; }
  .calc--hero .lead { margin-top: 18px; max-width: 30em; font-size: clamp(16.5px, 1.3vw, 18.5px); line-height: 1.5; }
  .calc--hero .calc__form { margin-top: 24px; max-width: 440px; }
  .calc--hero .calc__note { font-size: 14.5px; }
  .hsum__h { font-size: clamp(28px, min(3vw, calc(var(--cpw) / 10)), 46px); line-height: 1.08; }
  .hpoints { margin: 24px 0 0; max-width: 500px; gap: 0 20px; }
  .hpt { justify-items: start; text-align: left; }
  .hpt__t { font-size: 15px; }
  .hpt__a { font-size: 24px; }
  .hpt__n { width: 50px; height: 50px; margin: 4px 0 12px; font-size: 26px; }
  .hpt--e .hpt__n { width: 58px; height: 58px; margin: 0 0 8px; font-size: 30px; }
  .hsum__acts { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; margin-top: 28px; }
  .hsum__go { width: auto; }

  .calc--hero .calc__out { padding: 76px 6.5vw 72px; }
  .calc--hero .res__h { font-size: clamp(40px, 3.3vw, 54px); }
  .calc--hero .lines + .res__h, .calc--hero .reads + .res__h { margin-top: 64px; font-size: clamp(32px, 2.6vw, 42px); }
  .calc--hero .reads { max-width: 980px; margin-top: 44px; text-align: left; grid-template-columns: minmax(0, 1fr); }
  .calc--hero .read { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 0 52px; align-items: start; padding: 40px 0; }
  .calc--hero .read:first-child { padding-top: 12px; border-top: 0; }
  .calc--hero .read__card { width: 184px; margin: 0; }
  .calc--hero .read__h { font-size: 31px; }
  .calc--hero .read__sub { font-size: 15px; }
  .calc--hero .read__lead { margin: 16px 0 12px; max-width: 24em; font-size: 27px; text-wrap: pretty; }
  .calc--hero .read__text, .calc--hero .read__hook { margin-left: 0; max-width: 38em; font-size: 17.5px; }
  .calc--hero .read__hook { font-size: 16px; }
  .calc--hero .lines { max-width: 980px; margin-top: 32px; }
  .calc--hero .res__more { font-size: 17.5px; }
}
/* экраны уже 16:10 (4:3, 5:4, планшет лёжа): ниша правее, на 80 % ширины, но не ближе 24 px к правому краю — иначе
   текст лёг бы на ветку шиповника слева от ниши */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) and (max-aspect-ratio: 33/20) {
  .room { --pl: max(calc(100vw - var(--iw)), min(0px, calc(80vw - var(--iw) * var(--ax)), calc(100vw - var(--iw) * .868 - 24px))); }
}
/* большие экраны: текст крупнее, чтобы левая половина не казалась пустой */
@media (min-width: 1500px) and (min-height: 820px) and (min-aspect-ratio: 1/1) {
  .copy { --cpw: min(620px, 36vw, calc(var(--pl) + var(--iw) * .455 - var(--cl) - 32px)); }
  .calc--hero .head h1 { font-size: clamp(44px, min(4vw, calc(var(--cpw) / 7.3)), 76px); }
  .calc--hero .lead { font-size: clamp(18.5px, 1.1vw, 20.5px); }
  .calc--hero .calc__form { max-width: 480px; }
  .calc--hero .calc__field label { font-size: 16px; }
  .calc--hero .calc__field input { min-height: 56px; font-size: 21px; }
  .calc--hero .calc__go { min-height: 54px; font-size: 17px; }
  .calc--hero .calc__note { font-size: 15px; }
  .hsum__h { font-size: clamp(36px, min(2.9vw, calc(var(--cpw) / 10)), 56px); }
  .hpoints { max-width: 580px; gap: 0 26px; }
  .hpt__t { font-size: 16.5px; }
  .hpt__a { font-size: 28px; }
  .hpt__n { width: 56px; height: 56px; margin: 5px 0 14px; font-size: 29px; }
  .hpt--e .hpt__n { width: 66px; height: 66px; margin: 0 0 9px; font-size: 34px; }
  .hsum__edit { font-size: 17px; }
}
@media (min-width: 900px) and (max-height: 640px) and (min-aspect-ratio: 1/1) {
  .calc--hero .head h1 { font-size: clamp(34px, min(4vw, calc(var(--cpw) / 7.3)), 52px); }
  .calc--hero .lead { margin-top: 12px; font-size: 16px; }
  .calc--hero .calc__form { margin-top: 18px; }
}

/* ---------- без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .motes i, .moth img { animation: none !important; }   /* пылинки стоят, бабочка не машет */
  .motes i { opacity: .6; }
}
