/* Покупка и чтение внутри приложения, вкладка «Моё»: продолжение app.css и today.css (те же переменные и шрифты).
   Значения взяты из макета _design/shop_mock.html. Грузится после первого экрана (как модули вкладок): shop.js ждёт
   этот файл, прежде чем что-то показать. Наклон телефона приходит в --tx и --ty (shell.js пишет их на .sheet и
   #screen-mine). Слои: лист покупки 30, чтение 40, малый лист (разделы, подсказка про звёзды) 50. */

.star { fill: currentColor; flex: none; width: 19px; height: 19px; }
#cta .cta__price { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: lining-nums; }

/* ---------- лист покупки ---------- */
.shop {
  position: fixed;
  inset: 0;
  z-index: 30;
  --w: calc(min(86px, 22.05vw) * var(--fit, 1));     /* ширина карты веера: 86 px на экране 390 px, на узких меньше; --fit ставит
                                                      shop.js fitSheet, когда низкому экрану не хватает места (06.10.2026) */
  --flip: 1100ms;
}
.shop[hidden] { display: none; }
.shop__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 241, .72), rgba(255, 250, 241, .94));
  opacity: 0;
  transition: opacity .35s var(--ease);
  touch-action: none;
}
.shop.is-open .shop__scrim { opacity: 1; }
/* экран под листом приглушён и чуть размыт (ночной фон со звёздами остаётся резким, как в макете) */
.app { transition: opacity .35s var(--ease), filter .35s var(--ease); }
html.is-sheet .app { opacity: .5; filter: blur(1.5px) saturate(.8); pointer-events: none; }
html.is-lite.is-sheet .app { filter: none; }
html.is-held, html.is-held body { overflow: hidden; }      /* под листом покупки и под чтением страница не прокручивается */

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 440px;
  margin: 0 auto;
  min-height: min(636px, calc(var(--t-vh) - var(--top-pad) - 8px));
  max-height: calc(var(--t-vh) - var(--top-pad) - 8px);
  display: flex;
  flex-direction: column;
  padding: 10px 20px calc(var(--bottom) + 14px);
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #fffaf1 0%, #fffaf1 34%, #fffaf1 100%);
  box-shadow: 0 1px 0 rgba(192, 146, 70, .187) inset, 0 0 0 1px rgba(192, 146, 70, .066) inset, 0 -28px 70px rgba(92, 58, 18, .252);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transform: translateY(calc(100% + 40px));
  transition: transform .35s var(--ease);
  outline: none;
}
.sheet::-webkit-scrollbar { display: none; }
.shop.is-open .sheet { transform: translateY(var(--drag, 0px)); }
.shop.is-dragging .sheet { transition: none; }
.sheet::before {                                     /* свет за веером: пятно 420×300 из макета, обрезанное по ширине листа */
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 84px;
  height: 300px;
  pointer-events: none;
  background: radial-gradient(210px 150px at 50% 50%, rgba(192, 146, 70, .18), rgba(192, 146, 70, .02));
  transition: top .5s var(--ease);
}
.sheet > * { position: relative; flex: none; }
.sheet__grab { width: 38px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: rgba(192, 146, 70, .168); touch-action: none; }
.sheet__grab::before { content: ''; position: absolute; left: -110px; right: -110px; top: -10px; height: 44px; }      /* зона жеста «вниз» */
.sheet__x, .pop__x {
  position: absolute !important;
  right: 14px;
  top: 14px;
  z-index: 4;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(192, 146, 70, .276);
  background: rgba(255, 250, 241, .57);
  color: var(--t-ivory-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity .25s ease, transform .15s var(--ease);
}
.sheet__x::before, .pop__x::before { content: ''; position: absolute; inset: -6px; }          /* зона нажатия 48 px */
.sheet__x:active, .pop__x:active { transform: scale(.94); }
.sheet__x svg, .pop__x svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.sheet__title { margin: 0; padding: 0 40px; font: 600 33px/1.02 var(--serif); color: var(--ink); text-align: center; text-wrap: balance; }
.sheet__sub { margin: 7px 0 0; font: 400 14.5px/1.3 var(--sans); color: var(--t-ivory-2); text-align: center; text-wrap: balance; }
.sheet__sub[hidden] { display: none; }

/* веер из пяти карт: три открыты, две закрыты. Положения из макета, все размеры от ширины карты --w */
.fan {
  height: calc(var(--w) * 2.2093);
  margin: 20px 0 0;
  perspective: 900px;                                /* глубина для переворота карт после оплаты */
  transform: perspective(900px) rotateY(calc(var(--tx, 0) * 4deg)) rotateX(calc(var(--ty, 0) * -3deg));      /* наклон телефона качает веер: не больше 4° */
  /* сам веер плоский: у каждой карты своё 3D, а между собой карты лежат обычными слоями. Так порядок карт и нажатия
     на них не зависят от сортировки по глубине (карты в одной плоскости она путает) */
  transition: height .5s var(--ease), margin .5s var(--ease);
}
.fan__card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--w);
  height: calc(var(--w) * 12 / 7);
  margin: 0 0 0 calc(var(--w) / -2);
  transform: translate(var(--x), var(--y)) rotate(var(--r));
  transform-origin: 50% 120%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fan__card:nth-child(1) { --x: calc(var(--w) * -1.3023); --y: calc(var(--w) * .2791); --r: -13deg; z-index: 1; }
.fan__card:nth-child(2) { --x: calc(var(--w) * -.6628); --y: calc(var(--w) * .0814); --r: -6.5deg; z-index: 2; }
.fan__card:nth-child(3) { z-index: 3; }
.fan__card:nth-child(4) { --x: calc(var(--w) * .6628); --y: calc(var(--w) * .0814); --r: 6.5deg; z-index: 2; }
.fan__card:nth-child(5) { --x: calc(var(--w) * 1.3023); --y: calc(var(--w) * .2791); --r: 13deg; z-index: 1; }
.fan__lift, .fan__flip { position: absolute; inset: 0; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.fan__side {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fffaf1 center / cover no-repeat;
  box-shadow: 0 1px 0 rgba(192, 146, 70, .275) inset, 0 0 0 1px rgba(192, 146, 70, .165) inset, 0 14px 22px rgba(92, 58, 18, .21);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.fan__side img, .fan__side svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fan__side img { opacity: 0; transition: opacity .2s ease; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.fan__side img.is-in { opacity: 1; }
.fan__side::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(192, 146, 70, .096) 50%, rgba(255, 255, 255, 0) 62%);
}
.fan__side--face { transform: rotateY(180deg); opacity: 0; }
.fan__card.is-open .fan__flip { transform: rotateY(180deg); }
.fan__card.is-open .fan__side--face { opacity: 1; }
.fan__card.is-open .fan__side--back { opacity: 0; }
.fan__fb {                                           /* картинка карты не загрузилась: номер и название */
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  text-align: center;
  font: 600 13px/1.1 var(--serif);
  color: var(--ink);
}
.fan__fb[hidden] { display: none; }
.fan__card.is-shut { cursor: pointer; }
.fan__card.is-nudge .fan__lift { animation: shop-nudge .42s ease-in-out both; }
@keyframes shop-nudge {
  0%, 100% { transform: none; }
  25% { transform: rotate(-2.4deg) translateY(-3px); }
  60% { transform: rotate(1.8deg) translateY(-1px); }
}
/* переворот закрытой карты после оплаты: тот же, что у карты дня (кадры day-flip, day-lift, day-blade лежат в ritual.css) */
.fan__card.is-flipping { z-index: 6; }
.fan__card.is-flipping .fan__lift { animation: day-lift var(--flip) cubic-bezier(.3, .55, .2, 1) both; }
.fan__card.is-flipping .fan__flip { animation: day-flip var(--flip) both; }
.fan__card.is-flipping .fan__side--face { animation: day-side-on 1ms linear var(--t90) both; }
.fan__card.is-flipping .fan__side--back { animation: day-side-off 1ms linear var(--t90) both; }
.fan__fx { display: none; position: absolute; inset: 0; pointer-events: none; transform: translateZ(70px); }      /* свет на ребре: выше карты, которая в перевороте приподнята */
.fan__card.is-flipping .fan__fx { display: block; }
.fan__blade {
  position: absolute;
  left: 50%;
  top: -8%;
  bottom: -8%;
  width: 30px;
  margin-left: -15px;
  background: radial-gradient(closest-side, #ffffff 0%, rgba(192, 146, 70, .576) 20%, rgba(192, 146, 70, .3) 50%, rgba(192, 146, 70, 0) 100%);
  opacity: 0;
}
.fan__card.is-flipping .fan__blade { animation: day-blade .52s ease-out var(--t90) both; }

.fan__labels { position: relative; height: 12px; margin-top: 0; --lab: 9.5px; }
.fan__labels span {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(calc(-50% + var(--x)));
  white-space: nowrap;
  font: 700 var(--lab)/1 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-ink);                             /* все пять подписей одного цвета (владелец, 01.10) */
}
.fan__labels span:nth-child(1) { --x: calc(var(--w) * -1.4419); }
.fan__labels span:nth-child(2) { --x: calc(var(--w) * -.7209); }
.fan__labels span:nth-child(3) { --x: 0px; }
.fan__labels span:nth-child(4) { --x: calc(var(--w) * .7209); }
.fan__labels span:nth-child(5) { --x: calc(var(--w) * 1.4419); }
.sheet__tease { margin: 15px 6px 0; font: 500 italic 18px/1.24 var(--serif); font-variant-numeric: lining-nums; color: var(--cream); text-align: center; text-wrap: balance; }
/* строка разделов и под ней подсказка про телефон (06.10.2026): мелкий текст листа, как строка под оплатой; разделы чуть
   светлее подсказки. Не длиннее двух строк на 360 px (строки texts/fixes/pages_1006_edit.md) */
.sheet__parts, .sheet__phone { margin: 10px 6px 0; font: 400 12.5px/1.42 var(--sans); color: var(--muted); text-align: center; text-wrap: balance; }
.sheet__parts { color: var(--t-ivory-2); }
.sheet__parts:not([hidden]) + .sheet__phone { margin-top: 2px; }
.sheet__parts[hidden], .sheet__phone[hidden] { display: none; }
/* лист только что открыт: картинка листа сразу уменьшена (shop.js fitSheet), без перехода; сам лист выезжает как обычно */
.shop.is-fit0 .sheet * { transition: none !important; }

/* выбор товара (если служба прислала больше одного) */
.sheet__opts { display: grid; gap: 8px; margin-top: 12px; }      /* 18 px до 06.10.2026: над выбором теперь строка разделов и подсказка */
.sheet__opts:not([hidden]) + .sheet__field { padding-top: 14px; }    /* поле имени под выбором (22 px до 06.10.2026) */
.sheet__opts[hidden] { display: none; }
.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(192, 146, 70, .308);
  border-radius: 14px;
  background: rgba(255, 250, 241, .57);
  color: var(--ivory);
  font: 400 15.5px/1.25 var(--sans);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, background-color .2s;
}
.opt::before { content: ''; flex: none; width: 9px; height: 9px; border: 1px solid var(--gold); transform: rotate(45deg); transition: background-color .2s, box-shadow .2s; }
.opt:active { background: rgba(192, 146, 70, .06); }
.opt[aria-checked="true"] { border-color: rgba(100, 106, 179, .4); background: rgba(227, 227, 244, .6); }
.opt[aria-checked="true"]::before { background: var(--lilac); box-shadow: none; border-color: var(--lilac); }
.opt__title { flex: 1; min-width: 0; }
.opt__price { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-variant-numeric: lining-nums; color: var(--ink); white-space: nowrap; }
.opt__price s { font-weight: 400; color: var(--muted); }
.opt__price .star { width: 15px; height: 15px; }

/* имя, оплата, мелкий текст */
.sheet__buy { margin-top: auto; transition: opacity .25s ease; }
.sheet__buy[hidden] { display: none; }
.sheet__field { padding-top: 22px; }
.sheet__field input {
  display: block;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(192, 146, 70, .436);
  background: rgba(255, 250, 241, .77);
  color: var(--ivory);
  font: 400 17px/1.2 var(--sans);
  outline: 0;
  caret-color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.sheet__field input::placeholder { color: #454964; }
.sheet__field input:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 146, 70, .088); }
.sheet__msg { margin: 12px 2px 0; font: 400 14px/1.4 var(--sans); color: var(--rose); text-align: center; text-wrap: balance; }
.sheet__msg[hidden] { display: none; }
.sheet__pay { margin-top: 12px; font-variant-numeric: lining-nums; }
.sheet__pay[disabled] { opacity: .7; cursor: default; }
.sheet__pay.is-busy .star { animation: shop-pulse 1s ease-in-out infinite; }
@keyframes shop-pulse { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: .35; transform: scale(.8); } }
.sheet__fine { margin: 11px 2px 0; font: 400 12.5px/1.42 var(--sans); color: var(--muted); text-align: center; }
.sheet__link, .sheet__tlink, .mine__forget button {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--t-ivory-2);
  text-decoration: underline;
  text-decoration-color: rgba(30, 35, 71, .338);
  text-underline-offset: 3px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.sheet__link, .sheet__tlink { position: relative; }
.sheet__link::before, .sheet__tlink::before { content: ''; position: absolute; inset: -12px -8px; }          /* зона нажатия */
.sheet__tlink { color: var(--gold-ink); text-decoration-color: rgba(192, 146, 70, .5); }      /* «Указать время» в листе карты */

/* строка вместо оплаты (продажи закрыты, нужно открыть заново) и исходы сборки (дольше обычного, сбой) */
.sheet__note { margin-top: auto; padding: 22px 6px 8px; text-align: center; }
.sheet__note[hidden] { display: none; }
.sheet__note p { margin: 0 auto; max-width: 34ch; font: 400 15.5px/1.45 var(--sans); color: var(--ivory); text-wrap: balance; }
.sheet__note .btn { margin-top: 16px; }
.sheet__note .btn[hidden] { display: none; }

/* ---------- сборка после оплаты: лист той же высоты, веер сходится к центру и становится крупнее ---------- */
.shop.is-fading .sheet__title, .shop.is-fading .sheet__sub, .shop.is-fading .fan__labels, .shop.is-fading .sheet__tease,
.shop.is-fading .sheet__parts, .shop.is-fading .sheet__phone,
.shop.is-fading .sheet__buy, .shop.is-fading .sheet__x { opacity: 0; pointer-events: none; }
.sheet__title, .sheet__sub, .fan__labels, .sheet__tease, .sheet__parts, .sheet__phone { transition: opacity .25s ease; }
.shop.is-build { --w: min(104px, 26.67vw); }
.shop.is-build .sheet { justify-content: center; overflow: hidden; }
.shop.is-build .sheet__title, .shop.is-build .sheet__sub, .shop.is-build .fan__labels, .shop.is-build .sheet__tease,
.shop.is-build .sheet__parts, .shop.is-build .sheet__phone, .shop.is-build .sheet__buy { display: none; }
.shop.is-build .sheet__x { display: none; }
.shop.is-build.is-stuck .sheet__x { display: grid; opacity: 1; pointer-events: auto; }      /* сборка затянулась или сорвалась: лист можно закрыть */
.shop.is-build .sheet__grab { position: absolute; left: 50%; top: 10px; margin-left: -19px; }
.shop.is-build .sheet::before { top: 120px; }
.shop.is-build .fan { margin-top: 0; height: calc(var(--w) * 2.0577); }
.shop.is-build .fan__card:nth-child(1) { --x: calc(var(--w) * -.8077); --y: calc(var(--w) * .1731); --r: -9deg; }
.shop.is-build .fan__card:nth-child(2) { --x: calc(var(--w) * -.4038); --y: calc(var(--w) * .0481); --r: -4.5deg; }
.shop.is-build .fan__card:nth-child(4) { --x: calc(var(--w) * .4038); --y: calc(var(--w) * .0481); --r: 4.5deg; }
.shop.is-build .fan__card:nth-child(5) { --x: calc(var(--w) * .8077); --y: calc(var(--w) * .1731); --r: 9deg; }
/* служба ответила «готово»: пять карт складываются в стопку */
.shop.is-stack .fan__card { transition-duration: .45s; }
.shop.is-stack .fan__card:nth-child(1) { --x: -4px; --y: 4px; --r: -2deg; }
.shop.is-stack .fan__card:nth-child(2) { --x: -2px; --y: 2px; --r: -1deg; }
.shop.is-stack .fan__card:nth-child(4) { --x: 2px; --y: 2px; --r: 1deg; }
.shop.is-stack .fan__card:nth-child(5) { --x: 4px; --y: 4px; --r: 2deg; }
.sheet__wait { display: none; margin-top: 34px; padding-bottom: 30px; text-align: center; }
.shop.is-build .sheet__wait { display: block; animation: shop-in .5s ease .25s both; }
.shop.is-build.is-stack .sheet__wait { animation: none; opacity: 0; transition: opacity .25s ease; }      /* надпись гаснет, пока карты складываются */
.shop.is-build.is-stuck .sheet__wait { display: none; }
.shop.is-build .sheet__note { margin-top: 26px; animation: shop-in .4s ease both; }
@keyframes shop-in { from { opacity: 0; } to { opacity: 1; } }
.sheet__wait b { display: block; font: 600 31px/1.05 var(--serif); color: var(--ink); text-wrap: balance; }
.sheet__wait i { display: block; margin-top: 8px; font: 500 italic 19px/1.25 var(--serif); font-variant-numeric: lining-nums; color: var(--cream); }
.sheet__dots { display: flex; gap: 12px; justify-content: center; margin-top: 26px; }
.sheet__dots span { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--gold); animation: shop-dot 1.5s ease-in-out infinite; }
.sheet__dots span:nth-child(2) { animation-delay: -1s; }       /* отстаёт от первого на полсекунды и дышит с первого кадра */
.sheet__dots span:nth-child(3) { animation-delay: -.5s; }
@keyframes shop-dot {                                /* три ромба дышат по очереди */
  0%, 60%, 100% { background: rgba(192, 146, 70, .02); box-shadow: 0 0 0 rgba(192, 146, 70, 0); }
  30% { background: var(--gold); box-shadow: 0 0 12px rgba(192, 146, 70, .385); }
}

/* стопка превращается в первую страницу: лист с двумя сторонами летит от стопки к месту страницы в чтении */
.morph { position: fixed; z-index: 45; perspective: 1400px; pointer-events: none; }
.morph__in { position: absolute; inset: 0; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; transform-origin: 50% 50%; will-change: transform; }
.morph__side {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf1 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(192, 146, 70, .088), 0 26px 60px rgba(92, 58, 18, .26);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.morph__side img { display: block; width: 100%; height: 100%; object-fit: cover; }
.morph__side--page { transform: rotateY(180deg); }

/* ---------- чтение: страницы как сторис ---------- */
.rd {
  position: fixed;
  inset: 0;
  z-index: 40;
  --rd-top: max(var(--top), 10px);
  /* страница 9:16 вписана по высоте между делениями и нижней строкой (17 px сверху, 48 + 2 + 5 px снизу) и по ширине */
  --ph: min(calc(var(--t-vh) - var(--rd-top) - var(--bottom) - 72px), calc((100vw - 24px) * 16 / 9));
  --pw: calc(var(--ph) * 9 / 16);
  background: radial-gradient(90% 60% at 50% 42%, #fffaf1 0%, #fffaf1 72%);
  opacity: 0;
  transition: opacity .25s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  outline: none;
}
.rd[hidden] { display: none; }
.rd.is-open { opacity: 1; }
.rd.is-veil { transition-duration: .45s; }           /* после оплаты фон чтения проявляется, пока стопка летит и становится страницей */
.rd__segs { position: absolute; z-index: 2; left: 50%; top: calc(var(--rd-top) + 2px); width: var(--pw); margin-left: calc(var(--pw) / -2); display: flex; gap: 3px; transition: opacity .2s ease; pointer-events: none; }
.rd__segs i { flex: 1; min-width: 0; height: 2.5px; border-radius: 2px; background: rgba(192, 146, 70, .132); }
.rd__segs i.is-on { background: var(--gold-2); }
.rd__stage { position: absolute; inset: 0; touch-action: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rd__page {
  position: absolute;
  left: 50%;
  top: calc(var(--rd-top) + 17px + (var(--t-vh) - var(--rd-top) - var(--bottom) - 72px - var(--ph)) / 2);
  width: var(--pw);
  height: var(--ph);
  margin-left: calc(var(--pw) / -2);
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf1;
  box-shadow: 0 0 0 1px rgba(192, 146, 70, .088), 0 26px 60px rgba(92, 58, 18, .26);
  transform: translateX(var(--dx, 0px));
}
.rd__page[hidden] { display: none; }
.rd__page img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.rd__page img[hidden] { display: none; }
.rd__page.is-in { animation: rd-in .2s ease-out both; }
.rd__page.is-out { animation: rd-out .2s ease-out both; }
.rd__page.is-slide { transition: transform .22s var(--ease); }
@keyframes rd-in { from { opacity: 0; transform: translateX(var(--from, 12px)); } to { opacity: 1; transform: none; } }
@keyframes rd-out { from { opacity: 1; } to { opacity: 0; } }
/* страница ещё не пришла: тот же прямоугольник с рубашкой карты и мерцанием */
.rd__wait { position: absolute; inset: 0; }
.rd__wait[hidden] { display: none; }
.rd__wait svg, .book__back svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd__wait::after, .book__back.is-busy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(192, 146, 70, .096) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 1.6s ease-in-out infinite;
}
.rd__fail {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 250, 241, .94);
  font: 400 15.5px/1.45 var(--sans);
  color: var(--ivory);
  text-align: center;
  text-wrap: balance;
}
.rd__fail[hidden] { display: none; }
.rd__bar {
  position: absolute;
  z-index: 2;
  left: 12px;
  right: 12px;
  bottom: calc(var(--bottom) + 2px);
  max-width: 416px;
  margin: 0 auto;
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: opacity .2s ease;
}
.rd__bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ivory);
  font: 700 14px/1 var(--sans);
  letter-spacing: .02em;
  cursor: pointer;
  touch-action: manipulation;
  justify-self: start;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity .2s ease, transform .15s var(--ease);
}
.rd__bar button:active { transform: scale(.97); }
.rd__bar button[hidden] { display: none; }
.rd__bar button.is-busy { opacity: .55; }
.rd__bar button.is-no { animation: shake .4s ease-in-out; }
.rd__bar button svg, .book .btn--line svg { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.rd__n { grid-column: 2; font: 400 13.5px/1 var(--sans); font-variant-numeric: lining-nums; color: var(--t-ivory-2); letter-spacing: .04em; }
.rd__bar .rd__toc { grid-column: 3; justify-self: end; }
.rd.is-hold .rd__segs, .rd.is-hold .rd__bar { opacity: 0; }       /* долгое нажатие: остаётся одна страница */
.rd__hint {                                          /* первое открытие: как листать */
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: min(calc(var(--pw) - 40px), 280px);
  padding: 16px 18px 17px;
  border-radius: 16px;
  background: #fffaf1;
  box-shadow: 0 0 0 1px rgba(192, 146, 70, .165) inset, 0 18px 40px rgba(92, 58, 18, .21);
  font: 500 italic 19px/1.25 var(--serif);
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s ease;
}
.rd__hint.is-on { opacity: 1; }
.rd__hint[hidden] { display: none; }
.rd :focus-visible, .pop :focus-visible, .sheet__link:focus-visible, .sheet__tlink:focus-visible, .opt:focus-visible, .sheet__x:focus-visible, .mine__forget button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ---------- малый лист: разделы разбора, подсказка «Как купить звёзды» ---------- */
.pop { position: fixed; inset: 0; z-index: 50; }
.pop[hidden] { display: none; }
.pop__scrim { position: absolute; inset: 0; background: rgba(255, 250, 241, .82); opacity: 0; transition: opacity .3s var(--ease); touch-action: none; }
.pop.is-open .pop__scrim { opacity: 1; }
.pop__box {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 440px;
  margin: 0 auto;
  max-height: calc(var(--t-vh) - var(--top-pad) - 24px);
  display: flex;
  flex-direction: column;
  padding: 22px 20px var(--bottom);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #fffaf1 0%, #fffaf1 40%, #fffaf1 100%);
  box-shadow: 0 1px 0 rgba(192, 146, 70, .187) inset, 0 0 0 1px rgba(192, 146, 70, .066) inset, 0 -24px 60px rgba(92, 58, 18, .252);
  transform: translateY(calc(100% + 40px));
  transition: transform .3s var(--ease);
  outline: none;
}
.pop.is-open .pop__box { transform: none; }
.pop .pop__box:focus-visible { outline: none; }      /* фокус уходит на сам лист, чтобы читалка назвала заголовок: кольцо ему не нужно */
.pop__title { flex: none; margin: 0 44px 4px 0; font: 600 26px/1.05 var(--serif); color: var(--ink); }
.pop__body {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0 -6px;
  padding: 8px 6px 18px;
  /* список длиннее листа (низкий экран): строки у верхнего и нижнего края тают, так видно, что он прокручивается */
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 8px, #000 calc(100% - 18px), transparent);
}
.pop__body::-webkit-scrollbar { display: none; }
.pop__list { list-style: none; margin: 0; padding: 0; }
.pop__list li, .pop__list .pop__li { position: relative; margin: 0; padding: 0 0 12px 20px; font: 400 15.5px/1.5 var(--sans); color: var(--ivory); text-wrap: pretty; }
.pop__list li::before, .pop__list .pop__li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.toc { list-style: none; margin: 0; padding: 0; }
.toc button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 2px;
  border: 0;
  border-top: 1px solid var(--line-2);
  background: none;
  color: var(--ivory);
  font: 600 21px/1.15 var(--serif);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-appearance: none;
  appearance: none;
}
.toc li:first-child button { border-top: 0; }
.toc button span { flex: 1; min-width: 0; }
.toc button b { font: 400 13.5px/1 var(--sans); font-variant-numeric: lining-nums; color: var(--t-ivory-2); letter-spacing: .04em; }
.toc button[aria-current="true"] { color: var(--ink); }
.toc button[aria-current="true"] b { color: var(--gold-ink); }

/* ---------- вкладка «Моё» ---------- */
.screen--mine { display: block; padding: calc(var(--top-pad) + 6px) 4px calc(var(--dock-room) + 24px); }
.mine__title { margin: 0; font: 600 40px/1 var(--serif); color: var(--ink); }
.mine__title:focus { outline: none; }
.mine__body { min-height: 120px; }
.order { perspective: 800px; }
.order + .order { margin-top: 26px; }
.book { display: grid; grid-template-columns: 138px 1fr; gap: 20px; align-items: center; margin-top: 22px; }
.book__cover, .book__back {
  position: relative;
  display: block;
  width: 138px;
  height: 245px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #fffaf1;
  /* обложка лежит как предмет: чуть повёрнута, наклоняется вместе с телефоном, блик идёт за наклоном */
  transform: rotate(-2.5deg) rotateY(calc(var(--tx, 0) * 7deg)) rotateX(calc(var(--ty, 0) * -5deg));
  box-shadow: 0 1px 0 rgba(192, 146, 70, .275) inset, 0 0 0 1px rgba(192, 146, 70, .165) inset, 18px 22px 36px rgba(92, 58, 18, .231);
  -webkit-appearance: none;
  appearance: none;
}
button.book__cover { cursor: pointer; touch-action: manipulation; }
.book__cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.book__cover img.is-in { opacity: 1; }
.book__cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) calc(30% + var(--tx, 0) * 16%), rgba(192, 146, 70, .12) calc(46% + var(--tx, 0) * 16%), rgba(255, 255, 255, 0) calc(60% + var(--tx, 0) * 16%));
  pointer-events: none;
}
.book__back--card { height: 237px; }                 /* рубашка карты 7:12 (пусто, вне Telegram) */
/* «Моё» живое (07.10.2026, шаг 2б): рубашка поверх обложки, пока книга переворачивается и ложится на полку; блик по обложке;
   обложка поднимается под пальцем; веер колоды «Скоро» раскрывается под пальцем */
.book__land, .book__shine { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.book__land { background: #fffaf1; }
.book__land svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.book__shine { mix-blend-mode: screen; }
.book__shine i { position: absolute; top: 0; bottom: 0; left: -60%; width: 220%; transform: translateX(-60%);
  background: linear-gradient(104deg, transparent 38%, rgba(192, 146, 70, 0) 42%, rgba(192, 146, 70, .39) 50%, rgba(192, 146, 70, 0) 58%, transparent 62%); }
.book__cover.is-lift { transform: translateY(-6px) scale(1.05) rotate(0deg); transition: transform .3s cubic-bezier(.16, 1, .3, 1); }
.book__cover.is-drop { transition: transform .42s cubic-bezier(.16, 1, .3, 1); }
.wish__mini.is-fan img, .wish__mini.is-fold img { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.wish__mini.is-fold img { transition-duration: .42s; }
.wish__mini.is-fan img:nth-child(1) { transform: translate(-29px, -4px) rotate(-19deg); }
.wish__mini.is-fan img:nth-child(2) { transform: translateY(-8px); }
.wish__mini.is-fan img:nth-child(3) { transform: translate(29px, -4px) rotate(19deg); }
.book h3, .wish h3 { margin: 0; font: 600 25px/1.05 var(--serif); font-variant-numeric: lining-nums; color: var(--ivory); }
.book p { margin: 6px 0 14px; font: 400 14px/1.35 var(--sans); font-variant-numeric: lining-nums; color: var(--t-ivory-2); }
.book p.book__lead { margin: 0 0 14px; font-size: 15.5px; line-height: 1.42; color: var(--ivory); text-wrap: pretty; }
.book p:last-child { margin-bottom: 0; }
.book .btn { text-wrap: balance; }                   /* длинная подпись на самом узком экране делится на две ровные строки */
.book .btn--gold { min-height: 48px; padding: 0 14px; font-size: 16px; }
.book .btn--line { margin-top: 9px; min-height: 44px; padding: 0 10px; gap: 9px; font-size: 15.5px; }
.book .btn--line svg { width: 19px; height: 19px; stroke: currentColor; }
.book .btn.is-busy { opacity: .6; }
.book .btn.is-no { animation: shake .4s ease-in-out; }
.mine__keep, .mine__note { margin: 18px 0 0; font: 400 13px/1.4 var(--sans); font-variant-numeric: lining-nums; color: var(--muted); }
.mine__note { color: var(--ivory); font-size: 14.5px; line-height: 1.45; }
.mine__note[hidden] { display: none; }
.mine__rule { display: flex; align-items: center; gap: 12px; margin: 20px 0 16px; }
.mine__rule::before, .mine__rule::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.mine__rule i { width: 7px; height: 7px; transform: rotate(45deg); border: 1px solid var(--gold); }
.mine__rule[hidden], .wish[hidden] { display: none; }
.wish { display: grid; grid-template-columns: 1fr 118px; gap: 10px; align-items: center; }
.wish h3 { font-size: 23px; }
.wish p { margin: 6px 0 12px; font: 400 14px/1.38 var(--sans); color: var(--t-ivory-2); text-wrap: pretty; }
.wish p.wish__ok { margin-bottom: 0; color: var(--ink); }
#screen-mine .wish h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }      /* «Колода Майи» и «Скоро» в строку */
#screen-mine .wish h3 + .btn { margin-top: 14px; }
#screen-mine .wish h3 + .wish__ok { margin-top: 10px; }
.wish .btn--line { width: auto; min-height: 44px; padding: 0 18px; font-size: 15.5px; }
.wish .btn.is-busy { opacity: .6; }
.wish__mini { position: relative; height: 128px; }
.wish__mini img {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 52px;
  height: 89px;
  margin-left: -30px;
  border-radius: 6px;
  object-fit: cover;
  background: #fffaf1;
  box-shadow: 0 0 0 1px rgba(192, 146, 70, .165), 0 10px 18px rgba(92, 58, 18, .21);
  transform-origin: 50% 130%;
}
.wish__mini img:nth-child(1) { transform: translateX(-21px) rotate(calc(-11deg + var(--tx, 0) * 2deg)); }
.wish__mini img:nth-child(2) { z-index: 1; transform: rotate(calc(var(--tx, 0) * 2deg)); }
.wish__mini img:nth-child(3) { transform: translateX(21px) rotate(calc(11deg + var(--tx, 0) * 2deg)); }
.mine__links { margin: 30px auto 0; max-width: none; text-align: center; }
.mine__forget { margin: 2px 0 0; font: 400 12.5px/1.42 var(--sans); color: var(--muted); text-align: center; }
.mine__forget button { padding: 10px 6px; color: var(--muted); text-decoration-color: rgba(93, 95, 114, .45); }
.mine__forget button[disabled] { opacity: .6; cursor: default; }
.mine__forget span { display: block; padding: 10px 6px; color: var(--t-ivory-2); text-wrap: balance; }

/* ---------- узкие и низкие экраны ---------- */
@media (max-width: 380px) {                          /* 360 и 375 px: обложка чуть меньше, чтобы подписи кнопок рядом с ней стояли в одну строку */
  .book { grid-template-columns: 124px 1fr; gap: 16px; }
  .book__cover, .book__back { width: 124px; height: 220px; }
  .book__back--card { height: 213px; }
  .book .btn--gold { padding: 0 10px; font-size: 15.5px; }
  .book .btn--line { padding: 0 8px; gap: 8px; font-size: 15px; }
  .book .btn--line svg { width: 18px; height: 18px; }
}
@media (max-width: 350px) {
  .mine__links span:nth-of-type(2) { display: none; }       /* три ссылки в строку не помещаются: третья встаёт ниже, без точки перед ней */
  .mine__links a:last-child { display: table; margin: 0 auto; }
  .sheet { padding-left: 16px; padding-right: 16px; }
  .sheet__title { font-size: 30px; }
  .sheet__tease { font-size: 17px; margin-left: 0; margin-right: 0; }
  .sheet__parts, .sheet__phone { margin-left: 0; margin-right: 0; }
  .sheet__wait b { font-size: 28px; }
  .sheet__wait i { font-size: 17.5px; }
  .book { grid-template-columns: 112px 1fr; gap: 14px; }
  .book__cover, .book__back { width: 112px; height: 199px; }
  .book__back--card { height: 192px; }
  .book h3 { font-size: 22px; }
  .book .btn--gold { padding: 0 8px; font-size: 14.5px; }
  .book .btn--line { font-size: 14px; gap: 7px; }
  .book .btn--line svg { width: 17px; height: 17px; }
  .wish { grid-template-columns: 1fr 104px; }
  .rd__bar button { padding: 0 6px; font-size: 13.5px; }
}
@media (max-height: 620px) {
  .fan { margin-top: 14px; }
  .sheet__tease { margin-top: 11px; }
  .sheet__parts, .sheet__parts[hidden] + .sheet__phone { margin-top: 8px; }
  .sheet__field { padding-top: 16px; }
}

/* ---------- без движения ---------- */
@media (prefers-reduced-motion: reduce) {
  .fan { transform: none; }
  .app { transition: none; }
  .fan__card .fan__lift, .fan__card .fan__flip, .fan__blade { animation: none !important; }
  .fan__fx { display: none !important; }
  .fan__card .fan__flip, .fan__card.is-open .fan__flip { transform: none; }
  .fan__side--face { transform: none; }
  .fan__card.is-open .fan__side--back { opacity: 1; }
  .book__cover, .book__back { transform: rotate(-2.5deg); }
  .rd__wait::after, .book__back.is-busy::after { animation: none; }
  .sheet__dots span { animation: none !important; }
  .sheet__dots span:nth-child(2) { background: var(--gold); box-shadow: 0 0 12px rgba(192, 146, 70, .385); }
}

/* «Скоро» под оплатой: прогноз ещё не продаётся (владелец 02.10.2026, вариант Б), блок как «Колода Майи» во вкладке «Моё» */
.soon { margin-top: 26px; }
.soon[hidden] { display: none; }
.soon .mine__rule { margin-top: 0; }
.soon__box { grid-template-columns: 1fr 104px; }
.soon__box h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.soon__tag { padding: 6px 9px 5px; border: 1px solid rgba(192, 146, 70, .436); border-radius: 999px; font: 700 11px/1 var(--sans);
  letter-spacing: .01em; color: var(--gold-ink); white-space: nowrap; }
.soon__cover { display: block; width: 104px; aspect-ratio: 9 / 16; border-radius: 6px; transform: rotate(4deg);
  box-shadow: 0 10px 26px rgba(92, 58, 18, .231), 0 0 0 1px rgba(192, 146, 70, .121); }
.soon__cover[hidden] { display: none; }

/* ---------- лист «Время и город рождения» (birth.js): тот же лист, что у покупки, по высоте содержимого ---------- */
.bsheet .sheet { min-height: 0; }
.bsheet .sheet__title { margin-top: 30px; padding: 0 2px; font-size: clamp(25px, 7.5vw, 31px); line-height: 1.05; }      /* под крестиком во всю ширину: строка помещается целиком */
.bsheet .sheet__sub { margin-top: 8px; }
.bsheet .sheet__field { padding-top: 18px; }
.bsheet .sheet__field[hidden], .bsheet__hint[hidden], .bsheet__sug[hidden] { display: none; }
.bsheet .sheet__field input[disabled] { opacity: .45; }
.bsheet .sheet__field input[aria-invalid="true"] { border-color: var(--rose); }
.bsheet .btn { margin-top: 16px; }
.bsheet .sheet__fine { margin: 11px 2px 0; }
.bsheet__chk { position: relative; display: flex; align-items: center; gap: 10px; width: max-content; min-height: 40px; margin: 6px 0 0 4px;
  font: 500 14.5px/1 var(--sans); color: var(--t-ivory-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bsheet__chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bsheet__chk i { flex: none; width: 20px; height: 20px; border: 1px solid rgba(192, 146, 70, .58); border-radius: 6px; transition: background-color .2s; }
.bsheet__chk input:checked + i { background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.4l3.2 3.1L15 6.6' fill='none' stroke='%23fffaf0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; border-color: var(--lilac); }
.bsheet__chk input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.bsheet__hint { margin: 2px 4px 0; font: 400 13.5px/1.45 var(--sans); color: var(--muted); }
.bsheet__sug { list-style: none; margin: 8px 0 0; padding: 4px; border: 1px solid rgba(192, 146, 70, .308); border-radius: 14px; background: rgba(255, 250, 241, .82); }
.bsheet__sug li { padding: 12px; border-radius: 10px; font: 400 15.5px/1.25 var(--sans); color: var(--ivory); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.bsheet__sug li + li { border-top: 1px solid rgba(192, 146, 70, .196); }
.bsheet__sug li.is-on, .bsheet__sug li:active { background: rgba(192, 146, 70, .06); }
.bsheet__sug b { font-weight: 600; color: var(--ink); }
/* пока ищем город, поле стоит наверху листа: подсказки остаются над клавиатурой */
.bsheet.is-search .sheet { min-height: calc(var(--t-vh) - var(--top-pad) - 8px); }
.bsheet.is-search .sheet__title, .bsheet.is-search .sheet__sub, .bsheet.is-search .bsheet__date, .bsheet.is-search .bsheet__time,
.bsheet.is-search .bsheet__chk, .bsheet.is-search .bsheet__hint, .bsheet.is-search .bsheet__go, .bsheet.is-search .sheet__fine { display: none; }
.bsheet.is-search .bsheet__city { padding-top: 26px; }

/* ---------- вкладка «Звёзды»: «Сейчас / В час рождения» (вариант Б натальной карты, макет webapp/_design/natal/b_birth.png) */
.stars__seg { display: flex; width: max-content; max-width: 100%; margin: 0 auto 16px; padding: 4px; border: 1px solid rgba(192, 146, 70, .34);
  border-radius: 999px; background: rgba(255, 250, 241, .57); }
.stars__seg[hidden] { display: none; }
.stars__seg button { min-height: 40px; padding: 0 17px; border: 0; border-radius: 999px; background: none; font: 600 14.5px/1 var(--sans);
  color: var(--t-ivory-2); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.stars__seg button[aria-pressed="true"] { background: var(--lilac-pale); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(100, 106, 179, .32); }
.stars__seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.stars__edit, .stars__add { position: relative; display: inline; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 15px/1.3 var(--sans); font-style: normal; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 4px;
  text-decoration-color: rgba(192, 146, 70, .5); -webkit-tap-highlight-color: transparent; }
.stars__edit::before, .stars__add::before { content: ''; position: absolute; inset: -12px -8px; }      /* зона нажатия */
.stars__edit { margin-left: 4px; vertical-align: 1px; }
.stars__add { align-self: center; }
.stars__edit:focus-visible, .stars__add:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.stars__note { margin: 14px auto 0; max-width: 36ch; font: 400 14px/1.5 var(--sans); color: var(--t-ivory-2); text-wrap: balance; }
.stars__note[hidden] { display: none; }
.stars__foot:empty { display: none; }
.stars__foot { margin: 22px 0 14px; }
.stars__cta { font-variant-numeric: lining-nums; }
.stars__cta-note { margin: 12px auto 0; max-width: 34ch; font: 400 14px/1.5 var(--sans); color: var(--muted); text-wrap: balance; }

/* ---------- лист покупки натальной карты: вместо веера круг звёзд в минуту рождения (макет _design/natal/m2_sheet.png) ---------- */
.shop.is-natal .fan, .shop.is-natal .fan__labels { display: none; }
.sheet__wheel { width: calc(min(284px, 76vw) * var(--fit, 1)); margin: 16px auto 0; filter: drop-shadow(0 18px 34px rgba(92, 58, 18, .189));
  transition: transform .5s cubic-bezier(.22, .7, .2, 1); }
.sheet__wheel[hidden] { display: none; }
.sheet__wheel svg { display: block; width: 100%; height: auto; }
.shop.is-natal .sheet__tease { margin-top: 18px; }
.sheet__nonote { margin: 10px 8px 0; font: 400 14px/1.45 var(--sans); color: var(--t-ivory-2); text-align: center; text-wrap: balance; }
.sheet__nonote[hidden] { display: none; }
.shop.is-fading .sheet__nonote { opacity: 0; pointer-events: none; }
.shop.is-build .sheet__nonote { display: none; }
.shop.is-natal.is-build .sheet__wheel { transform: scale(1.08); }


/* ---------- лист покупки «Деньги и дело» (04.10.2026, вариант Б «Монеты», макет _design/money_sheet): карта денежного кода
   на большой монете, как на обложке PDF; слева монеты денег с номерами карт, справа закрытые монеты дела со знаком Майи ---------- */
.shop.is-money .fan, .shop.is-money .fan__labels { display: none; }
.mc { --cw: min(98px, 25.2vw); --ch: calc(var(--cw) * 12 / 7); --cn: min(40px, 10.3vw); --gap: min(12px, 2.8vw);
  position: relative; height: calc(var(--ch) + var(--cw) * .22); margin: 16px 0 0; }
.mc__rim { position: absolute; left: 50%; top: 50%; width: calc(var(--ch) + var(--cw) * .2); aspect-ratio: 1; transform: translate(-50%, -50%);
  pointer-events: none; transition: opacity .45s var(--ease); }
.mc__rim svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mc__rim .rt { opacity: .55; transition: opacity .6s var(--ease), stroke .6s var(--ease); }
.mc__card { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--ch); margin: 0; transform: translate(-50%, -50%); border-radius: 8px; }
.mc__col { position: absolute; top: 50%; width: calc(50% - var(--cw) / 2 - var(--gap)); height: var(--ch);
  transform: translateY(-50%); display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .45s var(--ease), opacity .4s var(--ease); }
.mc__col--l { left: 0; }
.mc__col--r { right: 0; }
.mc__it { position: relative; height: var(--cn); }
.mc__coin { position: absolute; top: 0; width: var(--cn); height: var(--cn); perspective: 400px; }
.mc__col--l .mc__coin { right: 0; }
.mc__col--r .mc__coin { left: 0; }
.mc__lift, .mc__flip { position: absolute; inset: 0; -webkit-transform-style: preserve-3d; transform-style: preserve-3d; }
.mc__side { position: absolute; inset: 0; border-radius: 50%; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 6px 12px rgba(92, 58, 18, .21); }
.mc__side svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc__coin.is-shut .mc__side--face { transform: rotateY(180deg); }
.mc__coin.is-open .mc__flip { transform: rotateY(180deg); }
.mc__coin.is-open .mc__side--face { transform: rotateY(180deg); }
.mc__coin.is-open .mc__side--back { opacity: 0; }
.mc__disc { fill: url(#mc-disc); }
.mc__ring { fill: none; stroke: #9a7130; }
.mc__num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding-top: 1px;
  font: 600 calc(var(--cn) * .47)/1 var(--serif); font-variant-numeric: lining-nums; color: var(--ink); transition: color .6s var(--ease); }
.mc__coin::before { content: ''; position: absolute; inset: -38%; border-radius: 50%; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(closest-side, rgba(192, 146, 70, .3), rgba(192, 146, 70, .084) 55%, rgba(192, 146, 70, 0)); }
/* после оплаты монеты горят золотом, как точки зоны денег на «Матрице» после покупки */
.mc.is-lit .mc__disc { fill: url(#mx-lit); }
.mc.is-lit .mc__ring { stroke: #c09246; }
.mc.is-lit .mc__num { color: #1e2347; }
.mc.is-lit .mc__coin::before { opacity: 1; }
.mc.is-lit .mc__rim .rt { opacity: 1; stroke: #c09246; }
.mc__t { position: absolute; top: 50%; transform: translateY(-50%); width: calc(100% - var(--cn) - 8px); display: flex; flex-direction: column; gap: 2px; }
.mc__col--l .mc__t { right: calc(var(--cn) + 8px); align-items: flex-end; text-align: right; }
.mc__col--r .mc__t { left: calc(var(--cn) + 8px); align-items: flex-start; text-align: left; }
.mc__t b { display: block; font: 700 11.5px/1.2 var(--sans); letter-spacing: .01em; color: var(--gold-ink); text-wrap: balance; }
.mc__t i { display: block; max-width: 100%; overflow: hidden; font: 500 italic 14px/1.05 var(--serif); color: var(--cream); white-space: nowrap; }
.mc__t i:empty { display: none; }
.mc__t i[data-fit="m"] { font-size: 12.5px; }
.mc__t i[data-fit="s"] { font-size: 11px; }
.mc__t i[data-fit="xs"] { font-size: 10px; }
.mc__t i[data-fit="two"] { font-size: 12.5px; line-height: 1.02; white-space: normal; }     /* Верховная Жрица, Колесо Фортуны */
/* переворот закрытой монеты: тот же ход, что у карты (кадры day-flip, day-side-on/off, day-blade в ritual.css), свет на ребре */
@keyframes mc-lift { 0% { transform: translate3d(0, 0, 0); } 34% { transform: translate3d(0, -6px, 22px); } 100% { transform: translate3d(0, 0, 0); } }
.mc__coin.is-flipping { z-index: 3; }
.mc__coin.is-flipping .mc__lift { animation: mc-lift var(--flip) cubic-bezier(.3, .55, .2, 1) both; }
.mc__coin.is-flipping .mc__flip { animation: day-flip var(--flip) both; }
.mc__coin.is-flipping .mc__side--face { transform: rotateY(180deg); animation: day-side-on 1ms linear var(--t90) both; }
.mc__coin.is-flipping .mc__side--back { animation: day-side-off 1ms linear var(--t90) both; }
.mc__fx { display: none; position: absolute; inset: -30% -10%; pointer-events: none; }
.mc__coin.is-flipping .mc__fx { display: block; }
.mc__blade { position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; margin-left: -11px; opacity: 0;
  background: radial-gradient(closest-side, #ffffff 0%, rgba(192, 146, 70, .576) 20%, rgba(192, 146, 70, .3) 50%, rgba(192, 146, 70, 0) 100%); }
.mc__coin.is-flipping .mc__blade { animation: day-blade .52s ease-out var(--t90) both; }
/* сборка: композиция чуть выше; перед чтением монеты уходят под карту, карта кода летит в первую страницу */
.shop.is-money.is-build .mc { margin-top: 0; transform: translateY(-6px); }      /* боковые поля те же, что до оплаты: имена карт не перескакивают */
.shop.is-money.is-stack .mc__col--l { transform: translate(calc(var(--cw) * .7), -50%) scale(.6); opacity: 0; }
.shop.is-money.is-stack .mc__col--r { transform: translate(calc(var(--cw) * -.7), -50%) scale(.6); opacity: 0; }
.shop.is-money.is-stack .mc__rim { opacity: 0; }
@media (max-width: 370px) { .mc { --cw: min(98px, 23vw); --cn: min(40px, 9.6vw); --gap: 6px; } }   /* 360 px: «Справедливость» целиком */
@media (max-width: 340px) {                    /* 320 px: «Финансовая утечка» не у самого края, длинные имена карт кеглем от 10 px */
  .mc__t b { font-size: 10.5px; } .mc__t i { font-size: 13px; }
  .mc__t { width: calc(100% - var(--cn) - 6px); }
  .mc__col--l .mc__t { right: calc(var(--cn) + 6px); } .mc__col--r .mc__t { left: calc(var(--cn) + 6px); }
  .mc { height: calc(var(--ch) * 1.14 + var(--cw) * .22); }
  .mc__col { height: calc(var(--ch) * 1.14); }     /* подпись в две строки и имя в две строки у соседних монет не сходятся */
  .mc__t i[data-fit="two"] { font-size: 11.5px; line-height: 1; }
}
@media (prefers-reduced-motion: reduce) { .mc__col, .mc__rim, .mc__num, .mc__coin::before { transition: none; } }

/* ---------- лист покупки «Совместимость пары» (05.10.2026, вариант А «Две карты», макет _design/pair_sheet): шаг 1 — ваша
   карта личности открыта, карта близкого рубашкой, поле его даты; шаг 2 — карты расходятся, между ними карта сути пары,
   имена и оплата; сборка — под тремя картами девять карт разделов переворачиваются волной по одной (06.10.2026, до того
   пять). Карты те же, что в веере;
   правила карт начинаются с .shop .pr: общие .fan__card:nth-child(…) (веер, сборка, стопка) иначе сдвинули бы и их ---------- */
.shop.is-pair .fan, .shop.is-pair .fan__labels, .shop.is-pair .sheet__field { display: none; }
.pr[hidden], .pr-step[hidden], .pr-names[hidden], .pr-date[hidden] { display: none; }
.shop.is-pair .sheet__title { font-size: clamp(26px, 7.5vw, 31px); }
.shop.is-pair .sheet__tease { margin-top: 14px; }
.pr { perspective: 900px; transform: perspective(900px) rotateY(calc(var(--tx, 0) * 3deg)) rotateX(calc(var(--ty, 0) * -2deg)); }
.pa { --cw: calc(min(100px, 25.6vw) * var(--fit, 1)); --ch: calc(var(--cw) * 12 / 7); position: relative; height: calc(var(--ch) + 66px); margin: 18px 0 0;
  transition: height .5s var(--ease); }
.shop .pr .pa .fan__card { --y: 0px; --r: 0deg; top: 6px; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); transform-origin: 50% 60%;
  transition: transform .5s var(--ease), width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), top .5s var(--ease), opacity .45s ease; }
.shop .pr .pa .fan__card.is-you { --x: calc(var(--cw) * -.66 - 14px); --r: -5deg; z-index: 2; }
.shop .pr .pa .fan__card.is-them { --x: calc(var(--cw) * .66 + 14px); --r: 5deg; z-index: 2; }
.shop .pr .pa .fan__card.is-core { --x: 0px; --y: 22px; z-index: 3; opacity: 0; pointer-events: none; }      /* до второго шага карты сути нет */
.pa .fan__card.is-shut { cursor: pointer; -webkit-tap-highlight-color: transparent; }      /* карта рубашкой: нажатие ведёт к полю даты */
.pa__plus { position: absolute; left: 50%; top: calc(var(--ch) / 2 - 12px); width: 28px; margin-left: -14px; text-align: center;
  font: 600 34px/1 var(--serif); color: var(--gold-ink); pointer-events: none; transition: opacity .3s ease; }
.pr-cap { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; transition: opacity .3s ease; }
.pr-cap b { font: 700 10px/1.15 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.pr-cap i { font: 500 italic 15.5px/1.1 var(--serif); font-variant-numeric: lining-nums; color: var(--cream); white-space: nowrap; }
.pr-cap i.is-q { color: var(--muted); }
.pr-cap i:empty { display: none; }
.pr-cap.is-wrap i { white-space: normal; text-wrap: balance; line-height: 1.02; }      /* длинное имя карты на самом узком экране */
.pa .pr-cap { top: calc(var(--ch) + 24px); width: 46%; }
.pa .pr-cap.is-you { left: 0; }
.pa .pr-cap.is-them { right: 0; }
.pa .pr-cap.is-core { left: 27%; width: 46%; opacity: 0; }
/* своей даты в телефоне нет: обе карты рубашкой и чуть меньше, чтобы два поля даты встали в экран */
.pa.is-two { --cw: calc(min(86px, 22vw) * var(--fit, 1)); }
/* шаг 2: между двумя картами поднимается карта сути пары; боковые меньше и за ней */
.pa.is-pair { --cw: calc(min(110px, 28.2vw) * var(--fit, 1)); height: calc(var(--ch) + 56px); }      /* 64 px до 06.10.2026: под тизером теперь
   строка разделов и подсказка, подписи карт (до --ch + 49 px) стоят по-прежнему */
.shop .pr .pa.is-pair .fan__card.is-you, .shop .pr .pa.is-pair .fan__card.is-them { width: calc(var(--cw) * .8); height: calc(var(--ch) * .8); margin-left: calc(var(--cw) * -.4);
  top: calc(var(--ch) * .14); }
.shop .pr .pa.is-pair .fan__card.is-you { --x: calc(var(--cw) * -.86); --r: -9deg; z-index: 1; }
.shop .pr .pa.is-pair .fan__card.is-them { --x: calc(var(--cw) * .86); --r: 9deg; z-index: 1; }
.shop .pr .pa.is-pair .fan__card.is-core { --y: 0px; opacity: 1; top: 0; }
.pa.is-pair .fan__card.is-core.is-open .fan__side--face { box-shadow: 0 1px 0 rgba(192, 146, 70, .275) inset, 0 0 0 1px rgba(192, 146, 70, .303) inset,
  0 0 0 2px rgba(192, 146, 70, .303), 0 0 0 5px rgba(192, 146, 70, .077), 0 0 34px rgba(192, 146, 70, .193), 0 16px 26px rgba(92, 58, 18, .231); }
.pa.is-pair .pa__plus { opacity: 0; }
.pa.is-pair .pr-cap { top: calc(var(--ch) + 14px); width: 33%; }
.pa.is-pair .pr-cap.is-core { left: 33.5%; opacity: 1; }
.pa.is-pair .pr-cap.is-core i { font-size: 18px; color: var(--ink); }
.pa.is-going .pr-cap, .pa.is-going .pr-cap.is-core { opacity: 0; }      /* пока карты расходятся и открываются, подписи ждут */
/* поля шага 1: подпись, ДД.ММ.ГГГГ, пример или ошибка (как на «Числах»), «Сложить наши карты» */
.pr-step { margin-top: auto; padding-top: 16px; }
.pr-date + .pr-date { margin-top: 12px; }
.pr-date label { display: block; margin: 0 2px 8px; font: 700 12px/1.2 var(--sans); letter-spacing: .01em;
  color: var(--gold-ink); text-align: center; text-wrap: balance; }
.pr-date input, .pr-names input { display: block; width: 100%; min-width: 0; margin: 0; border-radius: 14px; border: 1px solid rgba(192, 146, 70, .436);
  background: rgba(255, 250, 241, .77); color: var(--ivory); outline: 0; caret-color: var(--ink); -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s; }
.pr-date input { height: 52px; padding: 0 16px; font: 400 19px/1.2 var(--sans); letter-spacing: .06em; text-align: center; font-variant-numeric: tabular-nums; }
.pr-date input::placeholder { color: #454964; letter-spacing: .08em; }
.pr-date input:focus, .pr-names input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 146, 70, .088); }
.pr-date input[aria-invalid="true"] { border-color: var(--rose); }
.pr-date input.is-shake { animation: shake .4s ease-in-out; }
.pr-msg { min-height: 18px; margin: 8px 2px 0; font: 400 13.5px/1.35 var(--sans); color: var(--muted); text-align: center; text-wrap: balance; }
.pr-msg.is-error { color: var(--rose); }
.pr-go { margin-top: 14px; }
.pr-keep { margin: 11px 2px 0; font: 400 12.5px/1.42 var(--sans); color: var(--muted); text-align: center; }
/* совместимость по ссылке (16.10.2026): строка под шагом 1 «Не знаете дату близкого? Сверить пару по ссылке», занятая кнопка,
   «Посчитать свою матрицу» позванному под оплатой */
.pr-duo { margin: 14px 2px 0; font: 400 13.5px/1.42 var(--sans); color: var(--muted); text-align: center; text-wrap: balance; }
.pr-duo[hidden], .sheet__mx[hidden] { display: none; }
.pr-go.is-busy { opacity: .6; }
.sheet__mx { margin-top: 10px; }
/* шаг 2: две даты в подзаголовке, «изменить» ведёт к полю даты близкого */
.pr-change { position: relative; display: inline; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: var(--gold-ink);
  text-decoration: underline; text-decoration-color: rgba(192, 146, 70, .5); text-underline-offset: 3px; cursor: pointer; touch-action: manipulation;
  -webkit-appearance: none; appearance: none; }
.pr-change::before { content: ''; position: absolute; inset: -12px -8px; }          /* зона нажатия */
.pr-change:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.pr-names { display: grid; grid-template-columns: 1fr; gap: 10px; padding-top: 14px; }      /* своё имя как поле главного листа, под ним имя близкого;
   отступ сверху 18 px до 06.10.2026 */
.pr-names input { height: 52px; padding: 0 16px; font: 400 17px/1.2 var(--sans); }
.pr-names input::placeholder { color: #454964; }
.pr-names__hint { grid-column: 1 / -1; margin: -2px 2px 0; font: 400 12.5px/1.42 var(--sans); color: var(--muted); text-align: center; text-wrap: balance; }
.shop.pr-anim .sheet__tease, .shop.pr-anim .sheet__parts, .shop.pr-anim .sheet__phone { animation: shop-in .45s ease .5s both; }
.shop.pr-anim .sheet__buy { animation: shop-in .45s ease .62s both; }
/* сборка: три карты чуть выше, под ними девять карт разделов в порядке PDF переворачиваются волной по одной (06.10.2026, до
   того пять в один ряд): пять в первом ряду, четыре во втором, в просветах первого; подпись под каждой картой. --w9 ширина
   карты (на низком экране её уменьшает shop.js pairFit9, чтобы «Собираю…» осталось в листе), --p9 шаг в ряду: не уже
   подписей (--pmin: «испытание» и «миритесь» рядом, между ними не меньше 6 px), --i место от середины ряда в шагах, --row
   ряд. Ряды близко (подпись ближе к своей карте, чем к следующему ряду), от трёх карт отступ больше */
.pa9 { --w9: min(46px, 12vw); --gx: 14px; --pmin: 57px; --p9: max(calc(var(--w9) + var(--gx)), var(--pmin)); --h9: calc(var(--w9) * 12 / 7);
  --ry: calc(var(--h9) + 27px); position: relative; height: 0; opacity: 0; visibility: hidden; perspective: 700px; transition: opacity .3s ease; }
.shop.is-build .pa9 { height: calc(var(--ry) + var(--h9) + 17px); opacity: 1; visibility: visible; margin-top: 18px; }      /* до оплаты карт разделов
   нет и для экранной читалки */
.shop .pr .pa9 .fan__card { --x: calc(var(--i) * var(--p9)); --y: calc(var(--row) * var(--ry)); --r: 0deg; width: var(--w9); height: var(--h9);
  margin-left: calc(var(--w9) / -2); transform-origin: 50% 50%; transition: none; }      /* размер встаёт сразу: переворот и стопка двигают их сами */
.pa9 .fan__side { border-radius: 5px; }
.pa9 .fan__blade { width: 18px; margin-left: -9px; }
/* переворот тот же, что у карты дня, только подъём по размеру карты: у карты дня 14 px вверх и 48 px к глазу, у маленькой
   5 и 18, иначе карта второго ряда на миг закрывала бы подписи первого */
.pa9 .fan__card.is-flipping .fan__lift { animation-name: pa9-lift; }
@keyframes pa9-lift { 0% { transform: translate3d(0, 0, 0); } 34% { transform: translate3d(0, -5px, 18px); } 100% { transform: translate3d(0, 0, 0); } }
.pr-cap--9 { left: calc(50% + var(--i) * var(--p9)); top: calc(var(--row) * var(--ry) + var(--h9) + 7px); width: max-content;
  transform: translateX(-50%); font: 700 8.5px/1.15 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.shop.is-pair.is-build .pa { margin-top: 0; }
.shop.is-pair.is-build .sheet__wait { margin-top: 26px; }
/* низкий экран (shop.js pairFit9, класс pr-tight): сначала отступы теснее и без запаса под «Собираю…», потом карты мельче */
.shop.is-pair.is-build.pr-tight .pa9 { margin-top: 12px; }
.shop.is-pair.is-build.pr-tight .sheet__wait { margin-top: 16px; padding-bottom: 4px; }
.shop.is-pair.is-build.pr-tight .sheet__dots { margin-top: 18px; }
.shop.is-pair.is-build.pr-tight .sheet__note { margin-top: 14px; padding-top: 8px; }
/* сборка сорвалась или затянулась: строка с кнопкой длиннее «Собираю…». Лист по-прежнему по центру (поля auto), а если
   не влезает, начинается с карт и прокручивается до кнопки (shop.js stuck сам прокручивает к ней; при обычном центрировании
   верх и кнопка уходили за край) */
.shop.is-pair.is-build.is-stuck .sheet { justify-content: flex-start; overflow-y: auto; }
.shop.is-pair.is-build.is-stuck .sheet__fan { margin-top: auto; }
.shop.is-pair.is-build.is-stuck .sheet__note { margin-bottom: auto; }
/* служба ответила «готово»: боковые карты и карты разделов уходят под карту сути (второй ряд дальше, приходят вместе), она летит
   в первую страницу */
.shop.is-pair.is-stack .pr .pa .fan__card.is-you, .shop.is-pair.is-stack .pr .pa .fan__card.is-them { --x: 0px; --r: 0deg; opacity: 0; transition-duration: .45s; }
.shop.is-pair.is-stack .pr .pa9 .fan__card { --x: 0px; --y: calc(var(--w9) * -2.6); opacity: 0; transition: transform .45s var(--ease), opacity .4s ease; }
.shop.is-pair.is-stack .pr-cap { opacity: 0; }
@media (max-width: 350px) { .pa9 { --gx: 16px; --pmin: 54px; } .pr-cap--9 { letter-spacing: .04em; } }      /* 320: подписи плотнее, шаг шире */
@media (prefers-reduced-motion: reduce) {        /* без движения: карты разделов сразу открыты, без переворотов и стопки */
  .pr { transform: none; }
  .pa, .pa .fan__card, .pr-cap, .pa__plus, .pa9 .fan__card { transition: none !important; }
  .shop.pr-anim .sheet__tease, .shop.pr-anim .sheet__parts, .shop.pr-anim .sheet__phone, .shop.pr-anim .sheet__buy { animation: none; }
}

/* ---------- полка товаров на каждой вкладке (владелец 03.10.2026, вид А «Полка»; shop.js renderShelf) ---------- */
.shelf { margin: 32px 0 6px; text-align: left; }
.shelf[hidden] { display: none; }
.shelf__head { margin: 0 0 14px; text-align: center; font: 600 24px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.shelf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shelf__item { display: flex; flex-direction: column; gap: 9px; min-width: 0; margin: 0; padding: 10px 10px 12px; border: 0; border-radius: 16px;
  background: #fffaf1; box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .121), 0 10px 22px -12px rgba(92, 58, 18, .252);
  text-align: left; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform .15s var(--ease); }
.shelf__item:active { transform: scale(.98); }
.shelf__item:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shelf__item.is-busy { opacity: .7; pointer-events: none; }
.shelf__cover { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: #fffaf1; }
.shelf__cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.shelf__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.shelf__t { font: 600 18px/1.15 var(--serif); color: var(--ink); text-wrap: balance; }
.shelf__s { margin-bottom: 4px; font: 400 12.5px/1.35 var(--sans); color: var(--muted); text-wrap: pretty; }
.shelf__ok { color: var(--t-ivory-2); }
.shelf__price { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding: 7px 11px; border-radius: 999px;
  font: 700 15px/1 var(--sans); font-variant-numeric: lining-nums; color: var(--gold-ink); background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .46); }
.shelf__price .star { width: 13px; height: 13px; fill: currentColor; }
.shelf__price.is-soon { color: var(--ink); background: none; box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .248); font-weight: 600; }
/* одна карточка в ряду (единственная или первая из трёх): во всю ширину, обложка слева */
.shelf__item.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; gap: 14px; }
.shelf__item.is-wide .shelf__cover { flex: 0 0 44%; }
.shelf__item.is-wide .shelf__body { padding: 4px 0 2px; }
.shelf__item.is-wide .shelf__t { font-size: 21px; }
.shelf__item.is-wide .shelf__s { font-size: 13.5px; }

/* ---------- живая консультация (владелец 03.10.2026: вариант А «Лист из полки»; shop.js cs*) ---------- */
.cs .sheet { min-height: 0; }
.cs-steps { display: flex; justify-content: center; gap: 6px; margin: 2px 0 12px; }
.cs-steps[hidden] { display: none; }
.cs-steps i { width: 22px; height: 3px; border-radius: 2px; background: rgba(192, 146, 70, .132); }
.cs-steps i.is-on { background: var(--gold-2); }
.cs-who { margin: 10px 4px 0; font: 400 14px/1.45 var(--sans); color: var(--t-ivory-2); text-align: center; text-wrap: balance; }
.cs-fmt { display: grid; gap: 10px; margin-top: 18px; }
.cs-fmt .opt { align-items: flex-start; min-height: 0; padding: 12px 14px; }
.cs-fmt .opt::before { margin-top: 6px; }
.cs-fmt .opt__title b { display: block; font: 600 16px/1.25 var(--sans); color: var(--ivory); }
.cs-fmt .opt__title span { display: block; margin-top: 3px; font: 400 13.5px/1.38 var(--sans); color: var(--t-ivory-2); }
.cs-fmt .opt.is-full { opacity: .55; cursor: default; }
.cs-next { margin-top: 18px; }
.cs-chosen { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 11px 14px; border-radius: 14px;
  border: 1px solid rgba(192, 146, 70, .308); background: rgba(255, 250, 241, .57); font: 400 14.5px/1.3 var(--sans); color: var(--ivory); }
.cs-chosen b { flex: 1; min-width: 0; font-weight: 600; }
.cs-chosen__price { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); font-variant-numeric: lining-nums; }
.cs-chosen__price .star { width: 14px; height: 14px; fill: currentColor; }
.cs-label { margin: 16px 2px 7px; font: 700 12px/1 var(--sans); letter-spacing: .01em; color: var(--gold-ink); }
.cs-q { display: block; width: 100%; height: 118px; margin: 0; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(192, 146, 70, .436);
  background: rgba(255, 250, 241, .77); color: var(--ivory); font: 400 16px/1.4 var(--sans); resize: none; outline: 0; -webkit-appearance: none; appearance: none; }
.cs-q::placeholder { color: #454964; }
.cs-q:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 146, 70, .088); }
.cs .sheet__field { padding-top: 10px; }
.cs-birth { margin: 10px 2px 0; font: 400 14px/1.4 var(--sans); color: var(--t-ivory-2); }
.cs-bd { display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(192, 146, 70, .436);
  background: rgba(255, 250, 241, .77); color: var(--ivory); font: 400 16px/1.2 var(--sans); outline: 0; -webkit-appearance: none; appearance: none; }
.cs-bd::placeholder { color: #454964; }
.cs-ok { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 14px 2px 0; font: 400 13.5px/1.4 var(--sans);
  color: var(--t-ivory-2); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cs-ok input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; }
.cs-ok i { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; border: 1px solid var(--gold); background: rgba(255, 250, 241, .62); }
.cs-ok input:checked + i { background: var(--lilac) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8' fill='none' stroke='%23fffaf0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--lilac); }
.cs-ok input:focus-visible + i { outline: 2px solid var(--ink); outline-offset: 2px; }
.cs-msg { margin: 12px 2px 0; text-align: center; }
.cs-msg p { margin: 0; font: 400 14px/1.4 var(--sans); color: var(--rose); text-wrap: balance; }
.cs-msg .btn { margin-top: 10px; min-height: 44px; font-size: 15.5px; }
.cs .sheet__buy { margin-top: 16px; }
.cs-done { display: grid; justify-items: center; text-align: center; padding: 14px 6px 4px; }
.cs-seal { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #f6e3ac, #c09246 70%); box-shadow: 0 0 40px rgba(192, 146, 70, .248); }
.cs-seal svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cs-done .sheet__title { margin-top: 18px; padding: 0; font-size: 30px; }
.cs-done__text { margin: 10px 0 0; font: 400 15.5px/1.45 var(--sans); color: var(--ivory); text-wrap: balance; }
.cs-done__oid { margin: 10px 0 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
/* «Моё»: консультации под купленным */
.cs-mine { margin-top: 26px; }
.cs-mine[hidden] { display: none; }
.cs-mine__title { margin: 0 0 8px; font: 600 25px/1.05 var(--serif); color: var(--ivory); }
.cs-mine__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(192, 146, 70, .212);
  font: 400 15px/1.35 var(--sans); color: var(--ivory); }
.cs-mine__row:first-of-type { border-top: 0; }
.cs-mine__st { flex: none; padding: 4px 9px; border-radius: 999px; font: 600 12px/1 var(--sans); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .193); }
.cs-mine__st.is-done { color: var(--ink); background: var(--lilac-pale); box-shadow: inset 0 0 0 1px rgba(100, 106, 179, .32); }

/* ---------- «Подарить близкому» (05.10.2026, вариант Б, макет _design/gift_button/gift_mock.py; shop.js pz*): кнопка под оплатой,
   строка под полкой, свой лист в два шага (.pz), сборка и «Подарок готов», «Подарки близким» в «Моём», открытка во весь экран
   у близкого (.pz-reveal). Шкатулка та же, что у подарка за колоду (картинки img/gift): её устройство, стили и живость в
   giftbox.js (07.10.2026, одна на всё приложение), здесь только размеры и место ---------- */
.pz-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sheet__gift { margin-top: 10px; }
.sheet__gift[hidden] { display: none; }
.sheet__gift .pz-ico { width: 21px; height: 21px; }

/* строка «Сделайте подарок» под полкой */
.pz-shelf { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center; width: 100%; margin: 12px 0 0; padding: 10px 14px 10px 6px;
  border: 0; border-radius: 16px; background: linear-gradient(160deg, rgba(255, 250, 241, .9), rgba(255, 250, 241, .92)); color: inherit; text-align: left; font: inherit;
  box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .303), inset 0 0 0 4px rgba(92, 58, 18, .378), inset 0 0 0 5px rgba(192, 146, 70, .132);
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .15s var(--ease); }
.pz-shelf:active { transform: scale(.98); }
.pz-shelf:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pz-shelf .gift__box { width: 76px; height: 76px; margin: -10px 0 -8px; }
.pz-shelf__b { display: block; min-width: 0; }
.pz-shelf__b b { display: block; font: 600 20px/1.1 var(--serif); color: var(--ink); text-wrap: balance; }
.pz-shelf__b span { display: block; margin-top: 4px; font: 400 13px/1.35 var(--sans); color: var(--t-ivory-2); text-wrap: pretty; }
.pz-shelf__go { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* лист подарка: тот же лист, что у покупки и консультации, по высоте содержимого */
.pz .sheet { min-height: 0; }
.pz .sheet__title { margin-top: 2px; padding: 0 34px; font-size: clamp(28px, 8.6vw, 33px); }
.pz .cs-steps { margin: 10px 0 0; }
.pz.is-step1 { --w: min(80px, 20.5vw); }
.pz-prod { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 16px 0 0; }
.pz-prod button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 54px; padding: 6px 8px; line-height: 1.1; }
.pz-prod__p { display: inline-flex; align-items: center; gap: 4px; font: 700 13px/1 var(--sans); color: var(--ink); font-variant-numeric: lining-nums; }
.pz-prod button[aria-pressed="false"] .pz-prod__p { color: var(--muted); }
.pz-prod .star { width: 12px; height: 12px; }
.pz-fields { display: grid; grid-template-columns: 1.05fr 1fr; gap: 10px; margin-top: 14px; }
.pz-in { display: block; width: 100%; min-width: 0; height: 50px; margin: 0; padding: 0 14px; border-radius: 14px; border: 1px solid rgba(192, 146, 70, .436);
  background: rgba(255, 250, 241, .77); color: var(--ivory); font: 400 16.5px/1.2 var(--sans); font-variant-numeric: lining-nums; outline: 0; caret-color: var(--ink);
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s; }
.pz-in--date { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.pz-in::placeholder { color: #454964; }
.pz-in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 146, 70, .088); }
.pz-in[aria-invalid="true"] { border-color: var(--rose); }
.pz-in.is-shake { animation: shake .4s ease-in-out; }
.pz-sub { min-height: 18px; margin: 9px 2px 0; font: 400 14px/1.35 var(--sans); color: var(--t-ivory-2); text-align: center; text-wrap: balance; font-variant-numeric: lining-nums; }
.pz-sub.is-error { color: var(--rose); }
.pz-stage .fan { margin-top: 16px; }
.pz-stage .mc { margin-top: 16px; }
.pz .sheet__tease { margin-top: 14px; }
.pz-next { margin-top: 18px; }
/* шаг 2: выбранное и «Изменить», открытка, подсказка, оплата */
.pz-chosen b { display: block; }
.pz-chosen small { display: block; margin-top: 2px; font: 400 13px/1.25 var(--sans); color: var(--t-ivory-2); font-variant-numeric: lining-nums; }
.pz-card { position: relative; margin: 34px 4px 0; padding: 30px 22px 15px; border-radius: 6px; background: #f5efe3; color: #1e2347; text-align: center;
  box-shadow: 0 2px 0 1px rgba(92, 58, 18, .092), 0 22px 44px -10px rgba(92, 58, 18, .252); }
.pz-card__fr { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pz-seal { position: absolute; left: 50%; top: -25px; width: 50px; height: 50px; margin-left: -25px; filter: drop-shadow(0 3px 4px rgba(92, 58, 18, .147)); }
.pz-card__w { position: relative; display: block; width: 100%; min-height: 93px; margin: 0; padding: 0 2px; border: 0; border-radius: 0; background: transparent; color: #1e2347;
  font: 500 italic 21px/31px var(--serif); text-align: center; resize: none; outline: 0; overflow: hidden; caret-color: #7a581c; -webkit-appearance: none; appearance: none;
  background-image: repeating-linear-gradient(180deg, transparent 0 30px, rgba(192, 146, 70, .292) 30px 31px); background-attachment: local; }
.pz-card__w::placeholder { color: rgba(30, 35, 71, .62); }
div.pz-card__w { min-height: 0; background: none; white-space: pre-line; text-wrap: balance; overflow-wrap: anywhere; }
.pz-card__cnt { position: relative; margin-top: 4px; text-align: right; font: 400 11.5px/1 var(--sans); color: #74644b; font-variant-numeric: lining-nums; }
.pz-card__ft { position: relative; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.pz-card__day { font: 400 9.5px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: #74644b; white-space: nowrap; font-variant-numeric: lining-nums; }
.pz-card__sign { min-width: 0; width: 46%; margin: 0; padding: 0 0 2px; border: 0; border-radius: 0; border-bottom: 1px dashed rgba(192, 146, 70, .46); background: transparent;
  font: 500 italic 21px/1.1 var(--serif); color: #7a581c; text-align: right; outline: 0; caret-color: #7a581c; -webkit-appearance: none; appearance: none; }
.pz-card__sign::placeholder { color: rgba(122, 88, 28, .55); }
span.pz-card__sign { width: auto; border-bottom: 0; overflow-wrap: anywhere; }
.pz-card__w:focus, .pz-card__sign:focus { outline: none; background-color: rgba(192, 146, 70, .076); }     /* фокус видно по каретке и лёгкой подсветке строк */
.pz-card__sign:focus { border-bottom-color: rgba(192, 146, 70, .74); }
.pz-err { margin-top: 14px; }
.pz-hint { margin: 14px 6px 0; font: 400 13.5px/1.42 var(--sans); color: var(--t-ivory-2); text-align: center; text-wrap: balance; }
.pz .sheet__buy { margin-top: 18px; }
.pz .sheet__buy .sheet__pay { margin-top: 0; }

/* шкатулка (устройство в giftbox.js, здесь размер и место) */
.pz-box { position: relative; }
.pz-box .gift__box { position: relative; display: block; flex: none; width: 210px; height: 210px; margin: -6px auto -8px; perspective: 720px; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
.pz-rays { position: absolute; left: 50%; top: 50%; z-index: 0; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; pointer-events: none;
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 92%); mask: radial-gradient(closest-side, #000 18%, transparent 92%); }
.pz-rays line { stroke: #9a7130; stroke-width: .8; opacity: .22; }

/* сборка: открытка ложится в открытую шкатулку, крышка закрывается */
.pz.is-make .sheet { min-height: min(560px, calc(var(--t-vh) - var(--top-pad) - 8px)); }
.pz-make { display: grid; justify-items: center; padding-top: 18px; text-align: center; }
.pz-mini { position: relative; z-index: 3; width: 92px; height: 60px; margin: 0 auto -54px; border-radius: 4px; background: #f5efe3;
  box-shadow: 0 0 0 1px rgba(192, 146, 70, .275) inset, 0 10px 18px rgba(92, 58, 18, .189); animation: pz-into 1s cubic-bezier(.45, .05, .55, .95) .15s both; }
.pz-mini .pz-seal { top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; }
@keyframes pz-into { 0% { opacity: 1; transform: translateY(-18px) scale(1.15) rotate(-3deg); } 60% { opacity: 1; transform: translateY(70px) scale(.7) rotate(0deg); }
  100% { opacity: 0; transform: translateY(104px) scale(.45); } }
.pz-make .pz-box .gift__box { width: 230px; height: 230px; }
.pz-wait { margin-top: 14px; padding-bottom: 18px; }
.pz-wait b { display: block; font: 600 31px/1.05 var(--serif); color: var(--ink); text-wrap: balance; }
.pz-wait i { display: block; margin-top: 8px; font: 500 italic 19px/1.25 var(--serif); color: var(--cream); }
.pz.is-stuck .pz-wait { display: none; }
.pz .sheet__note { margin-top: 10px; padding-top: 10px; }

/* «Подарок готов» */
.pz-ready { display: grid; justify-items: center; text-align: center; padding-top: 6px; }
.pz-ready .sheet__title { padding: 0 36px; }
.pz-ready__line { margin: 10px 8px 0; font: 500 italic 18px/1.28 var(--serif); color: var(--cream); text-wrap: balance; }
.pz-share { display: grid; gap: 10px; width: 100%; margin-top: 18px; }
.pz-share .btn.is-busy { opacity: .6; }
.pz-linkfield { width: 100%; height: 44px; margin: 12px 0 0; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(192, 146, 70, .436); background: rgba(255, 250, 241, .77);
  color: var(--ivory); font: 400 14px/1 var(--sans); text-align: center; outline: 0; -webkit-user-select: text; user-select: text; }
.pz-linkfield[hidden] { display: none; }
.pz-save { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 6px 4px; border: 0; background: none; font: 700 15px/1.2 var(--sans);
  color: var(--ink); cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
.pz-save svg { width: 19px; height: 19px; fill: none; stroke: var(--gold-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pz-save.is-busy { opacity: .6; }
.pz-save.is-no { animation: shake .4s ease-in-out; }
.pz-save:focus-visible, .pz-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.pz-note { margin: 6px 10px 0; font: 400 12.5px/1.42 var(--sans); color: var(--muted); text-align: center; text-wrap: balance; }
.pz-note[hidden] { display: none; }
.pz-cmsg { color: var(--t-ivory-2); }

/* «Моё»: подарки, которые человек подарил */
.pz-mine { margin-top: 26px; }
.pz-mine[hidden] { display: none; }
.pz-mine__title { margin: 0 0 4px; font: 600 25px/1.05 var(--serif); color: var(--ivory); }
.pz-mine__msg { margin: 6px 0 4px; font: 400 14px/1.4 var(--sans); color: var(--ink); text-wrap: balance; }
.pz-mine__note { margin: 8px 0 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
.pz-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid rgba(192, 146, 70, .212); }
.pz-mine__title + .pz-row, .pz-mine__msg + .pz-row { border-top: 0; }
.pz-row__pic { position: relative; display: block; width: 64px; height: 64px; margin: 0; padding: 0; border: 0; background: none; }
button.pz-row__pic { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pz-row__pic .gift__box { position: absolute; left: -6px; top: -6px; width: 76px; height: 76px; }
.pz-row__b { min-width: 0; padding-top: 4px; }
.pz-row__t { font: 600 16px/1.25 var(--sans); color: var(--ivory); font-variant-numeric: lining-nums; overflow-wrap: anywhere; }
.pz-row__s { margin: 2px 0 0; font: 400 13.5px/1.35 var(--sans); color: var(--t-ivory-2); font-variant-numeric: lining-nums; text-wrap: pretty; }
.pz-row__a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 8px; }
.pz-row__acts { margin-top: 6px; }
.pz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 5px; border-radius: 999px; font: 600 12.5px/1 var(--sans);
  color: var(--ink); box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .231); white-space: nowrap; font-variant-numeric: lining-nums; }
.pz-chip::before { content: ''; width: 6px; height: 6px; border: 1px solid currentColor; transform: rotate(45deg); }
.pz-chip.is-open { color: var(--ink); background: var(--lilac-pale); box-shadow: inset 0 0 0 1px rgba(100, 106, 179, .32); }
.pz-chip.is-open::before { background: currentColor; }
.pz-row__saved { font: 400 12.5px/1.2 var(--sans); color: var(--muted); }
.pz-link { position: relative; margin: 0; padding: 4px 0; border: 0; background: none; font: 700 14px/1.2 var(--sans); color: var(--ink); text-decoration: underline;
  text-decoration-color: rgba(192, 146, 70, .46); text-underline-offset: 3px; cursor: pointer; touch-action: manipulation; -webkit-appearance: none; appearance: none; }
.pz-link::before { content: ''; position: absolute; inset: -8px -6px; }          /* зона нажатия */
.pz-link.is-busy { opacity: .55; }

/* близкий открыл ссылку: открытка во весь экран, шкатулка открывается, открытка выходит из неё */
.pz-reveal { position: fixed; inset: 0; z-index: 45; overflow: hidden auto; overscroll-behavior: contain; outline: none;
  background: radial-gradient(80% 50% at 50% 34%, #fffaf1 0%, #fffaf1 48%, #fffaf1 100%); opacity: 0; transition: opacity .35s ease; }
.pz-reveal[hidden] { display: none; }
.pz-reveal.is-open { opacity: 1; }
.pz-reveal::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .85;
  background-image: radial-gradient(1.3px 1.3px at 9% 14%, #f3dfa6, transparent 100%), radial-gradient(1px 1px at 22% 63%, #ffffff, transparent 100%),
    radial-gradient(1.6px 1.6px at 86% 9%, #f3dfa6, transparent 100%), radial-gradient(1px 1px at 71% 41%, #ffffff, transparent 100%),
    radial-gradient(1.2px 1.2px at 92% 72%, #f3dfa6, transparent 100%), radial-gradient(1px 1px at 6% 86%, #ffffff, transparent 100%),
    radial-gradient(1.4px 1.4px at 41% 93%, #f3dfa6, transparent 100%), radial-gradient(1px 1px at 58% 22%, #ffffff, transparent 100%),
    radial-gradient(1.1px 1.1px at 33% 30%, #f3dfa6, transparent 100%), radial-gradient(1px 1px at 79% 88%, #ffffff, transparent 100%); }
.pz-reveal__x { top: calc(var(--top-pad) + 6px) !important; }        /* под кнопками Telegram */
.pz-reveal__in { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 100%; overflow: hidden;      /* лучи не растягивают прокрутку */
  padding: calc(var(--top-pad) + 50px) 20px calc(var(--bottom) + 18px); text-align: center; }
.pz-reveal__in > * { max-width: 400px; }
.pz-reveal__in > :first-child { margin-top: auto; }                 /* по центру экрана, а длинное не обрезается сверху */
.pz-reveal__in > :last-child { margin-bottom: auto; }
.pz-reveal__hi { position: relative; z-index: 2; margin: 4px 0 0; font: 600 34px/1.04 var(--serif); color: var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.pz-from { position: relative; z-index: 2; margin: 6px 0 0; font: 500 italic 22px/1.3 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.pz-reveal .pz-box { z-index: 1; margin: 0 auto; }
.pz-reveal .pz-box .gift__box { width: 240px; height: 240px; margin: -2px auto 0; }
.pz-reveal.is-shut .pz-box .gift__box { width: 290px; height: 290px; margin-top: 6px; }
.pz-reveal .pz-card { z-index: 2; width: calc(100% - 16px); max-width: 352px; margin: -70px auto 0; transform: rotate(-1.2deg); }
.pz-reveal .pz-card.is-out { animation: pz-out .9s cubic-bezier(.2, .8, .2, 1) .25s both; }
@keyframes pz-out { from { opacity: 0; transform: translateY(90px) scale(.6) rotate(0deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
.pz-reveal .pz-card__w { font-size: 20px; line-height: 1.3; }
.pz-reveal span.pz-card__sign { font-size: 20px; }
.pz-reveal .btn { position: relative; z-index: 2; max-width: 360px; margin-top: 18px; }
.pz-reveal .btn--line { margin-top: 12px; }
.pz-reveal .btn.is-busy { opacity: .6; }
.pz-inside { position: relative; z-index: 2; margin: 14px 8px 0; font: 400 14px/1.4 var(--sans); color: var(--t-ivory-2); text-wrap: balance; font-variant-numeric: lining-nums; }
.pz-reveal .pz-card + .pz-inside { margin-top: 16px; }
.pz-reveal .pz-note { position: relative; z-index: 2; margin-top: 10px; }
.pz-reveal__msg { position: relative; z-index: 2; max-width: 34ch; margin: 18px auto 0; font: 500 italic 21px/1.3 var(--serif); color: var(--cream); text-wrap: balance; }

/* ---------- натальная карта и прогноз в подарок (06.10.2026, макет _design/gift_more, вставки gift_more_css.py) ----------
   выбор из трёх товаров в ряд и из четырёх 2×2; круг близкого (рисунок stars.js) и три знака, Асцендент под печатью Майи;
   «Колесо года» у прогноза; «ждёт времени и города» у дарителя; просьба вписать время и город, сборка с осями и «Моё»
   близкого. Лист «Дата, время и город рождения» в режиме подарка встаёт поверх открытки */
.pz-prod.pz-prod--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pz-prod.pz-prod--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-radius: 25px; }
.pz-prod.pz-prod--3 button, .pz-prod.pz-prod--4 button { min-width: 0; }
.pz-prod.pz-prod--3 button { min-height: 62px; padding: 7px 5px; }
.pz-prod.pz-prod--4 button { min-height: 46px; border-radius: 21px; }
.pz-prod__t { display: block; max-width: 100%; text-wrap: balance; }
.pz-prod.pz-prod--3 .pz-prod__t { font-size: 13.5px; line-height: 1.12; }
.pz-prod.pz-prod--4 .pz-prod__t { font-size: 14px; white-space: nowrap; }
.pz-wheel { position: relative; width: min(240px, 64vw); margin: 8px auto 0; filter: drop-shadow(0 18px 34px rgba(92, 58, 18, .189)); }
.pz-wheel svg { display: block; width: 100%; height: auto; }
.pz-big3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0; text-align: center; }
.pz-big3 > div { display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; }
.pz-big3 b { font: 700 9.5px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); white-space: nowrap; }
.pz-big3 i { font: 500 italic 17px/1.12 var(--serif); color: var(--cream); font-variant-numeric: lining-nums; text-wrap: balance; }
.pz-big3__seal { display: block; width: 26px; height: 26px; margin-top: -2px; }
.pz-big3 > div.is-flipping { animation: pz-flip var(--flip, .52s) cubic-bezier(.3, .7, .3, 1); }
@keyframes pz-flip { 0% { transform: perspective(300px) rotateY(0); } 45% { transform: perspective(300px) rotateY(90deg); } 55% { transform: perspective(300px) rotateY(-90deg); } 100% { transform: perspective(300px) rotateY(0); } }
.pz-year { position: relative; width: min(246px, 64vw); margin: 8px auto 0; filter: drop-shadow(0 18px 34px rgba(92, 58, 18, .189)); }
.pz-year svg { display: block; width: 100%; height: auto; overflow: visible; }
.pz-year__cap { margin: 6px 0 0; text-align: center; font: 700 9.5px/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.pz.is-tall .pz-stage + .sheet__tease { margin-top: 10px; }
.pz.is-tall .pz-next { margin-top: 14px; }
.pz-row__note { margin: 6px 0 0; font: 400 13.5px/1.38 var(--sans); color: var(--t-ivory-2); text-wrap: pretty; }
.pz-reveal .pz-ask { position: relative; z-index: 2; max-width: 30ch; margin: 18px auto 0; font: 500 italic 20px/1.28 var(--serif); color: var(--cream); text-wrap: balance; }
.pz-reveal .pz-ask + .btn { margin-top: 16px; }
.shop.bsheet.is-gift { z-index: 50; }
.pz-build { position: relative; z-index: 2; display: grid; justify-items: center; width: 100%; }
.pz-build .pz-wheel { width: min(286px, 76vw); margin-top: 0; }
.pz-build .pz-big3 { width: 100%; max-width: 340px; margin-top: 14px; }
.pz-build .pz-wait { margin-top: 20px; padding-bottom: 0; }
.pz-build .sheet__note { position: relative; z-index: 2; margin-top: 18px; }
.pz-glow { position: absolute; left: 50%; top: 143px; width: 360px; height: 360px; margin: -180px 0 0 -180px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(192, 146, 70, .276), rgba(192, 146, 70, .1) 60%, transparent 78%); }
.book.pz-book { grid-template-columns: 112px 1fr; gap: 16px; }
.pz-book__box { position: relative; display: block; width: 112px; height: 112px; margin: 0; align-self: start; }
.pz-book__box .gift__box { position: absolute; left: -10px; top: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
.book p.pz-book__wait { margin-top: -6px; color: var(--ivory); }
.book p.pz-book__err { color: var(--rose); }

@media (max-width: 380px) {                          /* 360 px: поля и открытка теснее, шкатулки меньше */
  .pz-fields { gap: 8px; }
  .pz-in { padding: 0 12px; font-size: 16px; }
  .pz-card { padding: 28px 18px 14px; }
  .pz-card__w { font-size: 20px; }
  .pz-ready .pz-box .gift__box, .pz-make .pz-box .gift__box { width: 190px; height: 190px; }
  .pz-reveal__hi { font-size: 31px; }
  .pz-reveal.is-shut .pz-box .gift__box { width: 260px; height: 260px; }
  .pz-reveal .pz-box .gift__box { width: 220px; height: 220px; }
  .pz-prod.pz-prod--3 button { min-height: 58px; }
  .pz-wheel, .pz-year { width: min(226px, 62vw); }
  .pz-build .pz-wheel { width: min(272px, 75vw); }
  .pz-prod.pz-prod--3 .pz-prod__t { font-size: 13px; }
  .pz-prod.pz-prod--4 .pz-prod__t { font-size: 13.5px; }
  .pz-big3 i { font-size: 16px; }
  .book.pz-book { grid-template-columns: 100px 1fr; gap: 14px; }
  .pz-book__box { width: 100px; height: 100px; }
}
@media (max-width: 340px) {
  .pz-fields { grid-template-columns: 1fr; }
  .pz-card__sign { width: 54%; }
  .pz-shelf { grid-template-columns: 60px 1fr auto; }
  .pz-shelf .gift__box { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .pz-big3 > div.is-flipping { animation: none; }
  .pz-mini { display: none; }
  .pz-reveal, .pz-reveal .pz-card.is-out { transition: none; animation: none; }
}

/* ---------- созвон с астрологом (06.10.2026, макет _design/consult_call, путь Б «Три варианта») ----------
   Шаги: формат → «Когда вам удобно» (неделя одним взглядом, три часа в день, до трёх отметок) → «О чём поговорить»
   (выбранное время нижней половиной карточки формата) → «Заявка ждёт подтверждения». Приёмы листа: ночной фон, золотая
   рамка, ромб как отметка шага, золотая кнопка внизу. */
.cs-steps i { transition: background-color .25s var(--ease); }
.cs-chosen.has-sum { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ct-sum { margin: -1px 0 0; padding: 10px 14px 12px; border: 1px solid rgba(192, 146, 70, .308); border-top-color: rgba(192, 146, 70, .212);
  border-radius: 0 0 14px 14px; background: rgba(255, 250, 241, .44); }
.ct-sum__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font: 400 13px/1.3 var(--sans); color: var(--t-ivory-2); }
.ct-sum__one { margin: 4px 0 0; font: italic 500 20px/1.2 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.ct-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.ct-tiles li { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 8px; border-radius: 10px; background: rgba(192, 146, 70, .06);
  box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .231); font-variant-numeric: lining-nums tabular-nums; }
.ct-tiles span { font: 400 12.5px/1 var(--sans); color: var(--t-ivory-2); white-space: nowrap; }
.ct-tiles b { font: 700 16px/1 var(--sans); color: var(--ink); }
.ct-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 2px 8px; }
.ct-now { font: 400 13px/1.3 var(--sans); color: var(--t-ivory-2); font-variant-numeric: lining-nums; white-space: nowrap; }
.ct-head .sheet__link { font-size: 13px; color: var(--gold-ink); text-decoration-color: rgba(192, 146, 70, .5); white-space: nowrap; }
.ct-week { display: grid; grid-template-columns: max-content repeat(3, minmax(0, 1fr)); gap: 5px 8px; align-items: center; }
.ct-wd { padding-right: 4px; font: 400 14px/1.15 var(--sans); color: var(--t-ivory-2); white-space: nowrap; font-variant-numeric: lining-nums; }
.ct-wd b { font-weight: 700; color: var(--ivory); }
.ct-wd.is-off { opacity: .45; }
.ct-c { height: 40px; margin: 0; padding: 0; border-radius: 12px; border: 1px solid rgba(192, 146, 70, .308); background: rgba(255, 250, 241, .57);
  font: 600 15.5px/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; color: var(--ivory);
  cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s, transform .15s var(--ease); }
.ct-c:active { transform: scale(.97); }
/* отмеченное время = то, что уйдёт в заявку: золотая заливка, как цена на полке */
.ct-c[aria-pressed="true"] { border-color: var(--lilac); background: var(--lilac); color: #fffaf0; font-weight: 700;
  box-shadow: 0 6px 14px -8px rgba(77, 83, 156, .55); }
.ct-c:disabled { opacity: .34; border-style: dashed; background: transparent; cursor: default; }
.ct-c:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ct-c.is-shake { animation: ct-shake .32s var(--ease); }
@keyframes ct-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.ct-hint { margin: 12px 4px 0; min-height: 20px; text-align: center; font: 400 14px/1.4 var(--sans); color: var(--t-ivory-2); text-wrap: balance; }
.ct-hint.is-full { color: var(--ink); }
/* «Заявка ждёт подтверждения» */
.cw { display: grid; justify-items: center; text-align: center; padding: 6px 2px 0; }
.cw__seal { position: relative; width: 86px; height: 86px; }
.cw__seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cw__seal .cw__orbit { transform-origin: 43px 43px; animation: cw-orbit 24s linear infinite; }
.cw__seal .cw__core { animation: cw-breathe 2.6s ease-in-out infinite; }
@keyframes cw-orbit { to { transform: rotate(360deg); } }
@keyframes cw-breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.cw .sheet__title { margin-top: 16px; padding: 0 10px; font-size: 30px; }
.cw__text { margin: 9px 0 0; font: 400 15.5px/1.45 var(--sans); color: var(--ivory); text-wrap: balance; }
.cw__steps { width: 100%; margin: 20px 0 0; padding: 0 4px; list-style: none; text-align: left; }
.cw__step { position: relative; padding: 0 0 15px 30px; }
.cw__step::before { content: ''; position: absolute; left: 4px; top: 4px; width: 10px; height: 10px; transform: rotate(45deg);
  border: 1px solid var(--gold); background: rgba(255, 250, 241, .82); }
.cw__step::after { content: ''; position: absolute; left: 9px; top: 21px; bottom: 3px; width: 1px; background: rgba(192, 146, 70, .26); }
.cw__step:last-child { padding-bottom: 0; }
.cw__step:last-child::after { display: none; }
.cw__step.is-done::before { background: var(--gold); }
.cw__step.is-now::before { border-color: var(--gold); background: rgba(192, 146, 70, .12); box-shadow: 0 0 12px rgba(192, 146, 70, .385); }
.cw__step.is-next::before { border-color: rgba(192, 146, 70, .54); }
.cw__step b { display: block; font: 700 15.5px/1.3 var(--sans); color: var(--ivory); }
.cw__step.is-next b { color: var(--t-ivory-2); }
.cw__step > span { display: block; margin-top: 2px; font: 400 14px/1.4 var(--sans); color: var(--t-ivory-2); font-variant-numeric: lining-nums; }
.cw__opts { display: grid; gap: 3px; margin: 5px 0 0; padding: 0; list-style: none; }
.cw__opts li { font: italic 500 18px/1.25 var(--serif); color: var(--ivory); font-variant-numeric: lining-nums; }
.cw__step > .cw__when { display: block; margin-top: 3px; font: italic 500 19px/1.25 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; }
.cw__steps + .cw__oid { margin-top: 18px; }      /* строки «звёзды вернутся» на экране ожидания нет (06.10) */
.cw__oid { margin: 8px 0 0; font: 400 13px/1.4 var(--sans); color: var(--muted); }
/* «Моё»: созвоны рядом с ответами; номер заказа второй строкой, чтобы «№» не отрывался на 360 */
.cm__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 3px; align-items: center; padding: 12px 0;
  border-top: 1px solid rgba(192, 146, 70, .212); }
.cs-mine__title + .cm__row { border-top: 0; }
.cm__what { font: 400 15px/1.35 var(--sans); color: var(--ivory); }
.cm__when { grid-column: 1 / -1; font: 400 13.5px/1.4 var(--sans); color: var(--t-ivory-2); font-variant-numeric: lining-nums; }
.cm__when b { font-weight: 700; color: var(--ivory); }
.cm__st { justify-self: end; padding: 4px 9px; border-radius: 999px; font: 600 12px/1 var(--sans); white-space: nowrap; color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .193); }
.cm__st.is-pending { box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .303); background: rgba(192, 146, 70, .036); }
.cm__st.is-confirmed, .cm__st.is-done { color: var(--ink); background: var(--lilac-pale); box-shadow: inset 0 0 0 1px rgba(100, 106, 179, .32); }
.cm__st.is-refund { color: var(--t-ivory-2); box-shadow: inset 0 0 0 1px rgba(192, 146, 70, .165); }
.cm__go { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; margin-top: 7px;
  padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink);
  font: 700 14.5px/1 var(--sans); letter-spacing: .01em; cursor: pointer; -webkit-appearance: none; appearance: none; }
.cm__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cm__go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .cw__seal .cw__orbit, .cw__seal .cw__core, .ct-c.is-shake { animation: none; }
}
