/* Calypso landing. Одна тема (ночь), один акцент (малиновая луна).
   Радиусы: кнопки и плашки = pill, панели = 28px, карты Таро = 14px.
   Слои: атмосфера -1, контент 0, навигация и док 50, зерно 100, skip-link 200. */

:root {
  --bg: #0f0609;
  --surface: #1c0c14;
  --surface-2: #26101b;
  --line: rgba(255, 226, 232, .11);
  --line-strong: rgba(255, 226, 232, .24);
  --text: #f8eeec;
  --muted: #cbb6bb;
  --dim: #9c838b;
  --accent: #ff5078;
  --accent-ink: #22040c;
  --ember: #ff9b63;
  --duo-lo: #7a0c35;
  --duo-hi: #ffe4dd;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-panel: 28px;
  --r-card: 14px;
  --gut: clamp(20px, 5vw, 48px);
  --sec: clamp(76px, 11vw, 150px);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --sine: cubic-bezier(.45, .05, .55, .95);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Атмосфера: два тёплых отсвета, зафиксированы и не перерисовываются при скролле */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(62vmax 52vmax at 88% -12%, rgba(196, 24, 82, .30), transparent 62%),
    radial-gradient(48vmax 42vmax at -12% 62%, rgba(122, 12, 53, .26), transparent 62%);
}

/* Плёночное зерно */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--accent); color: var(--accent-ink); }

img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.wrap {
  width: min(100% - 2 * var(--gut), 1200px);
  margin-inline: auto;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ---------- Типографика ---------- */

.h2 {
  font: 500 clamp(2rem, 1.1rem + 4.6vw, 4rem)/1.04 var(--serif);
  letter-spacing: -.015em;
  text-wrap: balance;
  max-width: 19ch;
}

.h3 {
  font: 500 clamp(1.75rem, 1.45rem + 1.3vw, 2.25rem)/1.08 var(--serif);
  letter-spacing: -.01em;
  margin-bottom: .45em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  color: var(--muted);
  max-width: 36rem;
  text-wrap: balance;
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  transition: text-decoration-color .3s var(--ease);
}
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Кнопка ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 10px 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1.0625rem/1 var(--sans);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 18px 44px -14px rgba(255, 80, 120, .7);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .38),
    0 24px 54px -14px rgba(255, 80, 120, .85);
}
.btn:active { transform: scale(.98); }

.btn__icon {
  flex: none;
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.btn--sm {
  height: 42px;
  padding: 0 6px 0 18px;
  gap: 12px;
  font-size: .9375rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn--sm .btn__icon { width: 30px; height: 30px; }

/* ---------- Навигация: плавающая плашка ---------- */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 56px;
  padding: 0 24px 0 8px;
  border-radius: 999px;
  background: rgba(28, 12, 20, .62);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 226, 232, .08), 0 20px 40px -22px rgba(0, 0, 0, .7);
  transform: translateX(-50%);
  animation: nav-in .9s var(--ease) both;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: italic 600 1.625rem/1 var(--serif);
  letter-spacing: .01em;
  text-decoration: none;
}
.nav__word { padding-bottom: 3px; white-space: nowrap; }
.nav__logo,
.chat__avatar {
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 80, 120, .5), 0 6px 16px -6px rgba(255, 80, 120, .55);
}
.nav__logo { width: 40px; height: 40px; }

.nav__cta { display: none; }

/* На телефоне плашка уезжает вместе со страницей: постоянный призыв держит нижний док */
@media (max-width: 767px) {
  .nav { position: absolute; }
}

@media (min-width: 768px) {
  .nav { padding: 0 7px 0 8px; }
  .nav__cta { display: inline-flex; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Карта Таро: дуотон поверх серого скана ---------- */

.tarot {
  position: relative;
  display: block;
  aspect-ratio: 11 / 18.4;
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 226, 232, .18),
    0 30px 60px -22px rgba(176, 14, 68, .75),
    0 10px 20px -10px rgba(0, 0, 0, .65);
}
.tarot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}
.tarot::before, .tarot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tarot::before { z-index: 1; background: var(--duo-lo); mix-blend-mode: screen; }
.tarot::after { z-index: 2; background: var(--duo-hi); mix-blend-mode: multiply; }

/* ---------- 1. Первый экран ---------- */

.hero {
  display: grid;
  align-items: center;
  min-height: 100dvh;
  padding-block: 96px 56px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.hero__copy > * { animation: rise 1s var(--ease) both; }
.hero__copy > :nth-child(1) { animation-delay: .10s; }
.hero__copy > :nth-child(2) { animation-delay: .18s; }
.hero__copy > :nth-child(3) { animation-delay: .28s; }
.hero__copy > :nth-child(5) { animation-delay: .38s; }

.pill {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 80, 120, .42);
  background: rgba(255, 80, 120, .12);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero__title {
  margin: 22px 0 22px;
  padding-bottom: .06em;
  font: 500 clamp(2.5rem, .9rem + 8.6vw, 5.125rem)/1 var(--serif);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
/* В две колонки заголовок растёт вместе с колонкой, а не с окном: иначе на
   небольших ноутбуках и планшетах в альбоме он уходит в три строки. */
@media (min-width: 901px) {
  .hero__title { font-size: clamp(3.5rem, 5.6vw, 5.125rem); }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .h2 { font-size: clamp(2.5rem, 4.4vw, 3.25rem); }
}

.hero__sub {
  max-width: 31rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 32px;
}

.hero__art {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1.02;
  margin-inline: auto;
  animation: art-in 1.4s var(--ease) .15s both;
}

.moon {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 94%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-43%, -56%);
  background: radial-gradient(circle at 34% 30%, #ffb78c 0%, #ff6d86 34%, #cf1c57 66%, #690e32 100%);
  box-shadow: 0 0 90px 10px rgba(255, 80, 120, .34), 0 0 220px 60px rgba(255, 80, 120, .16);
}

.fan { position: absolute; inset: 0; }
.fan__slot { position: absolute; top: 50%; left: 50%; width: 41%; }
.fan__slot--c { z-index: 3; width: 46%; transform: translate(-50%, -50%); }
.fan__slot--l { z-index: 1; transform: translate(-122%, -46%) rotate(-11deg); }
.fan__slot--r { z-index: 2; transform: translate(22%, -44%) rotate(10deg); }

.fan__slot .tarot { animation: drift 9s var(--sine) infinite alternate; }
.fan__slot--l .tarot { animation-delay: -3s; }
.fan__slot--r .tarot { animation-delay: -6s; }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: 104px 12px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__art { max-width: 460px; }
}

/* ---------- 2. Сеанс с тарологом ---------- */

.session { padding-block: var(--sec) 0; }

.session__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}

.session__copy .lead { margin-top: 20px; }

.points {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.points li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.points li:last-child { padding-bottom: 0; }
.points b { color: var(--text); font-weight: 500; }

.demo {
  padding: 6px;
  border-radius: calc(var(--r-panel) + 6px);
  background: rgba(255, 226, 232, .035);
  border: 1px solid var(--line);
}
.demo__core {
  padding: clamp(18px, 3vw, 34px);
  border-radius: var(--r-panel);
  background:
    radial-gradient(110% 70% at 100% 0%, rgba(255, 80, 120, .26), transparent 60%),
    linear-gradient(180deg, #2c0f1d, #1a0a12);
  box-shadow: inset 0 1px 0 rgba(255, 226, 232, .08);
}

.chat { display: grid; gap: 10px; }
.chat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.chat__avatar { width: 48px; height: 48px; }
.chat__who { display: grid; gap: 3px; }
.chat__who b { font: italic 600 1.375rem/1 var(--serif); }
.chat__who span { font-size: .875rem; line-height: 1.2; color: var(--dim); }
.chat__msg {
  max-width: 88%;
  padding: 13px 18px;
  font-size: 1rem;
  line-height: 1.5;
}
.chat__msg--me {
  justify-self: end;
  border-radius: 22px 22px 6px 22px;
  background: rgba(255, 226, 232, .10);
}
.chat__msg--her {
  justify-self: start;
  border-radius: 22px 22px 22px 6px;
  background: rgba(255, 80, 120, .16);
  box-shadow: inset 0 0 0 1px rgba(255, 80, 120, .3);
}

/* Расклад в примере сеанса: три карты с позициями */
.spread {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 16px);
  max-width: 26rem;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}
.spread li { display: grid; gap: 2px; align-content: start; }
.spread .tarot { margin-bottom: 8px; }
.spread__pos { font-size: .8125rem; line-height: 1.3; color: var(--dim); }
.spread__name { font: italic 500 1.1875rem/1.15 var(--serif); }

@media (max-width: 900px) {
  .session__grid { grid-template-columns: 1fr; }
  .chat__msg { max-width: 94%; }
}

/* ---------- 3. Ритуал ---------- */

.ritual {
  padding-block: clamp(56px, 8vw, 104px) var(--sec);
  text-align: center;
  overflow-x: clip;
}

.ritual__head {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.deck {
  --cw: clamp(98px, 30vw, 196px);
  position: relative;
  height: calc(var(--cw) * 1.673 * 1.2 + 48px);
  margin-top: clamp(20px, 4vw, 44px);
}

.draw {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--cw);
  height: calc(var(--cw) * 1.673);
  margin: calc(var(--cw) * -.8365) 0 0 calc(var(--cw) * -.5);
  padding: 0;
  border: 0;
  border-radius: var(--r-card);
  background: none;
  color: inherit;
  cursor: pointer;
  perspective: 1100px;
  -webkit-tap-highlight-color: transparent;
  transform:
    translate(calc(var(--i) * 90%), calc(var(--i) * var(--i) * 14px + var(--lift, 0px)))
    rotate(calc(var(--i) * 8deg));
  transition: transform .9s var(--spring), opacity .7s var(--ease);
}
.draw:focus-visible { outline-offset: 8px; }

.deck[data-state="idle"] .draw:hover,
.deck[data-state="idle"] .draw:focus-visible { --lift: -16px; }

.draw__inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--spring);
}
.deck[data-state="idle"] .draw__inner {
  animation: bob 4.6s var(--sine) infinite alternate;
  animation-delay: calc((var(--i) + 1) * -1.4s);
}

.draw__back, .draw__face {
  position: absolute;
  inset: 0;
  border-radius: var(--r-card);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.draw__back {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 80, 120, .34), transparent 62%),
    radial-gradient(rgba(255, 226, 232, .22) 1px, transparent 1.6px) 0 0 / 11px 11px,
    linear-gradient(160deg, #4d1029, #1d0711);
  box-shadow:
    0 0 0 1px rgba(255, 226, 232, .22),
    0 26px 50px -20px rgba(176, 14, 68, .75),
    0 10px 20px -10px rgba(0, 0, 0, .65);
}
.draw__back::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 226, 232, .36);
  border-radius: 9px;
}
/* Полумесяц: прозрачный круг со сдвинутой тенью */
.draw__back::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-64%, -50%) rotate(-24deg);
  box-shadow: calc(var(--cw) * .07) 0 0 0 var(--duo-hi);
}

.draw__face {
  aspect-ratio: auto;
  transform: rotateY(180deg);
}

.deck[data-state="picked"] .draw { cursor: default; }
.draw.is-picked { z-index: 3; transform: scale(1.18); }
.draw.is-picked .draw__inner { transform: rotateY(180deg); }
.draw.is-out {
  opacity: .3;
  transform: translate(calc(var(--i) * 126%), 22px) rotate(calc(var(--i) * 13deg)) scale(.86);
}

.omen {
  display: grid;
  justify-items: center;
  max-width: 34rem;
  margin: clamp(8px, 2vw, 20px) auto 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.omen.is-in { opacity: 1; transform: none; }

.omen__label {
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
}
.omen__name {
  margin: .25em 0 .35em;
  font: italic 500 clamp(2.5rem, 8vw, 3.5rem)/1.1 var(--serif);
}
.omen__text { font-size: 1.125rem; text-wrap: balance; }
.omen__next { margin: .9em 0 1.7em; color: var(--muted); text-wrap: balance; }
.omen .btn { scroll-margin-bottom: 32px; }

.ritual__noscript { margin: 16px auto 0; }

/* ---------- 4. Расклады: бенто на 3 ячейки ---------- */

.features { padding-block: 0 var(--sec); }

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 5vw, 64px);
}

.cell {
  padding: 6px;
  border-radius: calc(var(--r-panel) + 6px);
  background: rgba(255, 226, 232, .035);
  border: 1px solid var(--line);
}
.cell--his { grid-column: span 7; }
.cell--day { grid-column: span 5; }
.cell--yesno { grid-column: span 12; }

.cell__core {
  position: relative;
  height: 100%;
  min-height: 330px;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-panel);
  overflow: hidden;
  overflow: clip;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 226, 232, .08);
}
.cell__text { position: relative; z-index: 1; }
.cell__text p { color: var(--muted); max-width: 30rem; }

.cell__card { position: absolute; }

/* Его мысли о тебе */
.cell--his .cell__core {
  background:
    radial-gradient(110% 90% at 100% 100%, rgba(255, 80, 120, .24), transparent 60%),
    var(--surface);
}
.cell--his .cell__text { padding-right: 40%; }
.cell__card--his { right: 5%; bottom: -78px; width: min(34%, 200px); transform: rotate(-8deg); }

/* Карта дня */
.cell--day .cell__core {
  background:
    radial-gradient(90% 70% at 50% 112%, rgba(255, 155, 99, .40), rgba(255, 80, 120, .16) 46%, transparent 72%),
    var(--surface);
}
.cell__card--day { bottom: 0; left: 50%; width: min(46%, 208px); transform: translate(-50%, 62%) rotate(-4deg); }

/* Да или Нет: широкая строка, справа три возможных ответа */
.cell--yesno .cell__core {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 48px;
  min-height: 0;
  background: var(--surface-2);
}
.cell--yesno .cell__text { max-width: 24rem; }
.verdict {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 .55em;
  font: italic 500 clamp(2.6rem, 4.6vw, 4.25rem)/1.1 var(--serif);
  letter-spacing: -.01em;
}
.verdict span:nth-child(1) { color: var(--accent); }
.verdict span:nth-child(2) { opacity: .6; }
.verdict span:nth-child(3) { opacity: .28; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .cell--his, .cell--day, .cell--yesno { grid-column: auto; }
  .cell__core { min-height: 0; }

  .cell--his .cell__core { min-height: 270px; }
  .cell--his .cell__text { padding-right: 42%; }
  .cell__card--his { right: -6px; width: min(40%, 186px); }

  .cell--day .cell__core { padding-bottom: 150px; }

  .verdict { display: grid; gap: 0; }
}

/* ---------- 5. Тарифы: строки ---------- */

.pricing { padding-block: 0 var(--sec); }

.plans {
  margin-top: clamp(32px, 5vw, 64px);
  padding: 6px;
  border-radius: calc(var(--r-panel) + 6px);
  background: rgba(255, 226, 232, .035);
  border: 1px solid var(--line);
}
.plans__core {
  border-radius: var(--r-panel);
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 226, 232, .08);
}

.plan {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(13rem, 1.3fr) 3fr;
  align-items: baseline;
  gap: 6px 32px;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.4vw, 42px);
}
.plan + .plan { border-top: 1px solid var(--line); }
.plan--gift { background: linear-gradient(90deg, rgba(255, 80, 120, .22), rgba(255, 80, 120, .04)); }

.plan__name { font: 500 1.0625rem/1.3 var(--sans); }
.plan__price {
  font: 500 clamp(2.5rem, 5vw, 3.5rem)/1 var(--serif);
  font-variant-numeric: lining-nums;
  white-space: nowrap;
}
.plan--gift .plan__price,
.plan--deal .plan__price { color: var(--accent); }
.rub { font: 500 .62em/1 var(--sans); }
.plan__per { font: 400 .9375rem/1 var(--sans); color: var(--dim); }
.plan__desc { color: var(--muted); }

.pricing__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 28px;
  padding-inline: clamp(6px, 2vw, 28px);
}
.pricing__note { flex: 1 1 20rem; max-width: 33rem; color: var(--muted); }

@media (max-width: 720px) {
  .plan { grid-template-columns: minmax(0, 1fr) auto; }
  .plan__desc { grid-column: 1 / -1; }
  .plan__price { justify-self: end; text-align: right; }
  .pricing__foot .btn { flex: 1 1 100%; }
}
/* На узком экране подпись к цене («в месяц») уходит под число, иначе строка шире карточки */
@media (max-width: 520px) {
  .plan { column-gap: 16px; }
  .plan__per { display: block; margin-top: 8px; }
}

/* ---------- 6. Вопросы ---------- */

.faq { padding-block: 0 var(--sec); }

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(24px, 5vw, 88px);
}
.faq__title { position: sticky; top: 108px; max-width: 12ch; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem);
  font-weight: 500;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }

.faq__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform .6s var(--spring), background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.faq__icon svg { width: 18px; height: 18px; }
.faq details[open] .faq__icon {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
}
.faq details p {
  max-width: 38rem;
  padding: 0 56px 26px 0;
  color: var(--muted);
}
.faq details[open] p { animation: rise .6s var(--ease) both; }

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__title { position: static; max-width: 19ch; }
  .faq details p { padding-right: 0; }
}

/* ---------- 7. Финал: восход луны ---------- */

.final {
  --moon: min(128vw, 860px);
  position: relative;
  /* flow-root удерживает отрицательный нижний отступ луны внутри блока: обрезка
     через clip сама по себе этого не делает, и луна вылезала бы под подвал. */
  display: flow-root;
  overflow: hidden;
  overflow: clip;
  padding-top: clamp(40px, 6vw, 80px);
  text-align: center;
}
.final__inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 22px;
}
.final__title { max-width: 21ch; }
.final__inner .btn { margin-top: 12px; }

.final__moon {
  width: var(--moon);
  aspect-ratio: 1;
  margin: clamp(56px, 9vw, 110px) auto calc(var(--moon) * -.7);
  margin-left: calc(50% - var(--moon) / 2);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 14%, #ffb78c 0%, #ff6d86 26%, #cf1c57 56%, #690e32 100%);
  box-shadow: 0 0 110px 16px rgba(255, 80, 120, .36), 0 0 280px 80px rgba(255, 80, 120, .16);
}

/* ---------- Подвал ---------- */

.foot {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 40px 44px;
}
.foot__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px 40px;
}
.foot__brand { font: italic 600 1.5rem/1 var(--serif); white-space: nowrap; }
.foot__note { max-width: 44rem; font-size: .875rem; color: var(--dim); }
.foot__copy { font-size: .875rem; color: var(--dim); white-space: nowrap; }

@media (max-width: 767px) {
  .foot { padding-bottom: 104px; }
  .foot__inner { grid-template-columns: 1fr; }
}

/* ---------- Док: нижняя кнопка на телефоне ---------- */

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 28px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(15, 6, 9, .97) 58%, rgba(15, 6, 9, 0));
  transform: translateY(110%);
  transition: transform .7s var(--spring);
}
.dock.is-on { transform: none; }
.dock .btn { width: 100%; }

@media (min-width: 768px) {
  .dock { display: none; }
}

/* ---------- Появление при скролле ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
}
@keyframes nav-in {
  from { opacity: 0; transform: translate(-50%, -18px); }
}
@keyframes art-in {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
}
@keyframes drift {
  from { translate: 0 -7px; rotate: -.7deg; }
  to { translate: 0 8px; rotate: .7deg; }
}
@keyframes bob {
  to { translate: 0 -8px; }
}

/* ---------- Движение при скролле ----------
   Привязано к прокрутке средствами CSS (scroll-driven animations): без скриптов и
   без обработчиков scroll, двигаются только translate / rotate / scale / opacity.
   Где браузер этого не умеет, страница остаётся неподвижной и выглядит как раньше.
   Свойства translate / rotate / scale не спорят с transform, которым элементы
   расставлены и которым работает появление блоков. */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Фон: отсветы медленно плывут вверх, пока листается страница */
    body::before {
      inset: -14% -8%;
      animation: glow-drift 1ms linear both;
      animation-timeline: scroll(root block);
    }

    /* Первый экран: луна дальше, карты ближе, веер раскрывается */
    .hero__art { view-timeline: --hero-art block; }
    .moon, .fan, .fan__slot--l, .fan__slot--r {
      animation: 1ms linear both;
      animation-timeline: --hero-art;
      animation-range: cover;
    }
    .moon { animation-name: par-moon; }
    .fan { animation-name: par-fan; }
    .fan__slot--l { animation-name: par-fan-left; }
    .fan__slot--r { animation-name: par-fan-right; }

    /* Пример сеанса: карты расклада ложатся на стол одна за другой */
    .spread li {
      animation: deal 1ms linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 28%;
    }
    .spread li:nth-child(1) { --lag: 22px; --tilt: -3deg; }
    .spread li:nth-child(2) { --lag: 50px; --tilt: 2deg; }
    .spread li:nth-child(3) { --lag: 78px; --tilt: 4deg; }

    /* Ритуал: колода раскладывается веером, когда блок входит в экран */
    .deck[data-state="idle"] .draw {
      animation: fan-out 1ms linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 30%;
    }

    /* Расклады: карта внутри ячейки движется медленнее самой ячейки, солнце встаёт */
    .cell__card .tarot {
      animation: par-card 1ms linear both;
      animation-timeline: view(block);
      animation-range: cover;
    }
    .cell__card--day .tarot { animation-name: par-sun; }

    .verdict span {
      animation: slide-in 1ms linear both;
      animation-timeline: view(block);
      animation-range: entry 0% cover 32%;
    }
    .verdict span:nth-child(1) { --dx: 20px; }
    .verdict span:nth-child(2) { --dx: 44px; }
    .verdict span:nth-child(3) { --dx: 72px; }

    /* Крупные панели подходят ближе, пока входят в экран */
    .cell, .plans {
      animation: come-closer 1ms linear both;
      animation-timeline: view(block);
      animation-range: entry 0px entry 340px;
    }

    /* Финал: луна восходит. Отсчёт от самой луны и в пикселях: страница кончается
       вскоре после неё, и диапазон «на весь проход» не успел бы доиграть. */
    .final__moon {
      animation: moonrise 1ms linear both;
      animation-timeline: view(block);
      animation-range: entry 0px entry 280px;
    }

    /* В одну колонку панель с примером сеанса тоже «подходит»… */
    @media (max-width: 900px) {
      .demo {
        animation: come-closer 1ms linear both;
        animation-timeline: view(block);
        animation-range: entry 0px entry 340px;
      }
    }
    /* …а в две колонки текст и пример едут с разной скоростью */
    @media (min-width: 901px) {
      .session__grid { view-timeline: --session block; }
      .session__copy, .demo {
        animation: 1ms linear both;
        animation-timeline: --session;
        animation-range: cover;
      }
      .session__copy { animation-name: par-slow; }
      .demo { animation-name: par-fast; }
    }

    @keyframes glow-drift { to { translate: 0 -9%; rotate: 7deg; } }
    @keyframes par-moon { from { translate: 0 -30px; } to { translate: 0 56px; } }
    @keyframes par-fan { from { translate: 0 26px; } to { translate: 0 -46px; } }
    @keyframes par-fan-left { from { translate: 12px 0; rotate: 3deg; } to { translate: -16px 0; rotate: -4deg; } }
    @keyframes par-fan-right { from { translate: -12px 0; rotate: -3deg; } to { translate: 16px 0; rotate: 4deg; } }
    @keyframes deal { from { opacity: 0; translate: 0 var(--lag); rotate: var(--tilt); } }
    @keyframes fan-out { from { translate: calc(var(--i) * -90%) 0; rotate: calc(var(--i) * -8deg); } }
    @keyframes par-card { from { translate: 0 30px; } to { translate: 0 -30px; } }
    @keyframes par-sun { from { translate: 0 46px; } to { translate: 0 -24px; } }
    @keyframes slide-in { from { translate: var(--dx) 0; } }
    @keyframes come-closer { from { scale: .955; } }
    @keyframes moonrise { from { translate: 0 24%; scale: .9; } }
    @keyframes par-slow { from { translate: 0 -20px; } to { translate: 0 20px; } }
    @keyframes par-fast { from { translate: 0 30px; } to { translate: 0 -30px; } }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
