/*
  КоТАРО. Направление: ночной ритуал в старом доме — уголь, латунь, тёплая бумага.
  Крупная антиква, тонкие линии, звёздная пыль. Один акцент: золото.
*/

:root {
  --bg: #0b0909;
  --surface: #141011;
  --surface-2: #1c1618;
  --line: #342b2d;
  --line-soft: #241d1f;
  --text: #f3ece2;
  --muted: #a99c8f;
  --accent: #d9a24a;
  --accent-soft: #f0c97f;
  --danger: #d0736a;
  --success: #84b58f;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --sp1: 4px; --sp2: 8px; --sp3: 12px; --sp4: 16px; --sp5: 24px;
  --sp6: 32px; --sp7: 48px; --sp8: 64px; --sp9: 96px;

  --fs-xs: 12px; --fs-sm: 14px; --fs-md: 16px; --fs-lg: 20px;
  --fs-xl: 25px; --fs-2xl: 31px; --fs-3xl: 39px; --fs-display: 64px;

  --r: 4px;
  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 72% -8%, rgba(217, 162, 74, .09), transparent 62%),
    radial-gradient(900px 600px at 8% 12%, rgba(217, 162, 74, .045), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

[hidden] { display: none !important; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }

h1, h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 8vw, var(--fs-display)); }
h2 { font-size: clamp(30px, 5.2vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-lg); font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }

a { color: inherit; }

code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: .92em;
  color: var(--accent-soft);
  background: rgba(217, 162, 74, .08);
  padding: 1px 5px;
  border-radius: 3px;
}

strong { font-weight: 600; }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--sp5);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #17100a;
  padding: var(--sp2) var(--sp4);
  z-index: 100;
}
.skip:focus { left: var(--sp3); top: var(--sp3); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- общие элементы ---------- */

.eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp4);
}

.lead {
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

.note {
  font-size: var(--fs-sm);
  color: var(--muted);
  max-width: 52ch;
}
.note--center { margin: var(--sp6) auto 0; text-align: center; }

.hint {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-top: var(--sp2);
}
.hint--center { text-align: center; }

.section-head {
  max-width: 720px;
  margin-bottom: var(--sp7);
}
.section-head h2 { margin-bottom: var(--sp4); }
.section-lead {
  color: var(--muted);
  font-size: var(--fs-md);
  max-width: 62ch;
}
.section-head--left { margin-bottom: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp2);
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font: inherit;
  font-size: var(--fs-md);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--primary {
  background: var(--accent);
  color: #17100a;
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn--wide { width: 100%; }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: var(--fs-lg); }

/* ---------- шапка ---------- */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 9, 9, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.head__inner {
  display: flex;
  align-items: center;
  gap: var(--sp6);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--accent);
  font-size: 17px;
  line-height: 1;
}
.brand__text {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .04em;
}

.nav { display: flex; gap: var(--sp5); }
.nav a {
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: var(--sp9) 0 var(--sp8); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--sp8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--sp5); }
.hero .lead { margin-bottom: var(--sp6); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp3);
  margin-bottom: var(--sp5);
}

.hero__art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp5);
}
.fan {
  position: relative;
  width: min(100%, 460px);
  height: 430px;
}
.fan__card {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 202px;
  transform-origin: 50% 92%;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}
.fan__card .tarot { width: 100%; }
.fan__card .tarot--art .tarot__name { font-size: 11px; }
/* боковые карты в веере перекрыты центральной — подписи там всё равно не прочитать */
.fan__card--l .tarot__name,
.fan__card--r .tarot__name { display: none; }
.fan__card--c { transform: translateX(-50%) rotate(-1deg); z-index: 3; }
.fan__card--l { transform: translateX(-50%) translateX(-140px) rotate(-12deg); z-index: 2; }
.fan__card--r { transform: translateX(-50%) translateX(140px) rotate(12deg); z-index: 1; }
.fan:hover .fan__card--l { transform: translateX(-50%) translateX(-156px) rotate(-15deg); }
.fan:hover .fan__card--r { transform: translateX(-50%) translateX(156px) rotate(15deg); }
.fan:hover .fan__card--c { transform: translateX(-50%) rotate(0) translateY(-6px); }

.fan__caption {
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- карта ---------- */

.tarot {
  --card-bg-1: #1a1618;
  --card-bg-2: #0f0c0d;
  --card-glow: rgba(217, 162, 74, .14);
  --card-line: rgba(217, 162, 74, .3);
  --card-line-soft: rgba(217, 162, 74, .14);
  --card-ink: #f3ece2;
  --card-accent: #d9a24a;
  --card-key: #b3a291;

  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: 2 / 3;
  padding: var(--sp4);
  border-radius: 6px;
  border: 1px solid var(--card-line);
  background:
    radial-gradient(120% 70% at 50% 0%, var(--card-glow), transparent 62%),
    linear-gradient(165deg, var(--card-bg-1), var(--card-bg-2));
  color: var(--card-ink);
  overflow: hidden;
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .95);
}
.tarot::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--card-line-soft);
  border-radius: 3px;
  pointer-events: none;
}
.tarot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle at 18% 22%, var(--card-line) 0 1px, transparent 1.6px),
    radial-gradient(circle at 78% 14%, var(--card-line) 0 1px, transparent 1.6px),
    radial-gradient(circle at 88% 46%, var(--card-line-soft) 0 1px, transparent 1.6px),
    radial-gradient(circle at 12% 62%, var(--card-line-soft) 0 1px, transparent 1.6px),
    radial-gradient(circle at 64% 84%, var(--card-line) 0 1px, transparent 1.6px),
    radial-gradient(circle at 34% 90%, var(--card-line-soft) 0 1px, transparent 1.6px);
}
.tarot > * { position: relative; z-index: 1; }

[data-palette="moon"] {
  --card-bg-1: #121b2d;
  --card-bg-2: #090e19;
  --card-glow: rgba(150, 180, 230, .18);
  --card-line: rgba(170, 195, 235, .32);
  --card-line-soft: rgba(170, 195, 235, .15);
  --card-ink: #e9effb;
  --card-accent: #bccbe8;
  --card-key: #9aabc8;
}
[data-palette="yard"] {
  --card-bg-1: #2b1e12;
  --card-bg-2: #150f08;
  --card-glow: rgba(230, 160, 80, .2);
  --card-line: rgba(226, 168, 104, .34);
  --card-line-soft: rgba(226, 168, 104, .16);
  --card-ink: #f7e8d3;
  --card-accent: #e2a868;
  --card-key: #c6a582;
}
[data-palette="alchemy"] {
  --card-bg-1: #102621;
  --card-bg-2: #07110f;
  --card-glow: rgba(120, 200, 170, .17);
  --card-line: rgba(140, 210, 180, .3);
  --card-line-soft: rgba(140, 210, 180, .14);
  --card-ink: #e5f3eb;
  --card-accent: #8fd0b4;
  --card-key: #97b7a9;
}
[data-palette="emperor"] {
  --card-bg-1: #2b1119;
  --card-bg-2: #15080d;
  --card-glow: rgba(230, 180, 100, .18);
  --card-line: rgba(226, 176, 110, .32);
  --card-line-soft: rgba(226, 176, 110, .15);
  --card-ink: #f7e8de;
  --card-accent: #e6b464;
  --card-key: #c6a18e;
}

.tarot__corner {
  font-size: var(--fs-xs);
  letter-spacing: .2em;
  color: var(--card-key);
}
.tarot__glyph {
  flex: 1;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1;
  color: var(--card-accent);
  font-variant-emoji: text;
  text-shadow: 0 0 30px var(--card-glow);
}
.tarot__name {
  font-family: var(--serif);
  font-size: var(--fs-sm);
  line-height: 1.3;
  color: var(--card-ink);
}
.tarot__keys {
  margin-top: var(--sp1);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--card-key);
}

/* карта с иллюстрацией: изображение на всю площадь, номер и имя поверх */

.tarot--art { padding: 0; }
.tarot--art .tarot__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tarot--art::before {
  z-index: 2;
  border-color: rgba(255, 255, 255, .22);
}
.tarot--art::after {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .8) 100%);
}
.tarot--art .tarot__corner {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 9px;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(10, 8, 8, .5);
  backdrop-filter: blur(2px);
  color: #f6efe6;
  font-size: 10px;
  line-height: 1.4;
}
.tarot--art .tarot__name {
  position: absolute;
  z-index: 3;
  left: 9px;
  right: 9px;
  bottom: 9px;
  color: #f8f2ea;
  font-size: 12px;
  line-height: 1.25;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .95);
}
.drawn .tarot--art .tarot__name { font-size: 10px; }
.deck__art .tarot--art .tarot__name { font-size: 13px; }

/* ---------- полоса с числами ---------- */

.proof {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: var(--sp6) 0;
}
.proof__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 1.6fr;
  gap: var(--sp5);
  align-items: center;
}
.proof__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.proof__item strong {
  font-family: var(--serif);
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--accent-soft);
  font-variant-numeric: tabular-nums;
}
.proof__item span { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proof__note {
  font-size: var(--fs-xs);
  color: var(--muted);
  line-height: 1.5;
  border-left: 1px solid var(--line);
  padding-left: var(--sp5);
}

/* ---------- проблема ---------- */

.problem { padding: var(--sp9) 0; }
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp8);
  align-items: start;
}
.problem__text p {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: var(--sp4);
}
.problem__text p:last-child { margin-bottom: 0; }

/* ---------- расклад ---------- */

.reading { padding: var(--sp8) 0 var(--sp9); scroll-margin-top: 88px; }

.reader {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: var(--sp7);
  align-items: start;
}

.reader__form {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: var(--sp5);
  padding: var(--sp5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(20, 16, 17, .7);
}

.field { border: 0; padding: 0; margin: 0; }
.label {
  display: flex;
  align-items: baseline;
  gap: var(--sp2);
  padding: 0;
  margin-bottom: var(--sp3);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.label__hint { letter-spacing: 0; text-transform: none; font-size: var(--fs-xs); color: var(--muted); opacity: .8; }

.chips { display: grid; grid-template-columns: 1fr; gap: var(--sp2); }
.chip {
  display: flex;
  align-items: center;
  gap: var(--sp3);
  min-height: 44px;
  padding: 10px var(--sp3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-checked="true"] {
  border-color: var(--accent);
  background: rgba(217, 162, 74, .1);
}
.chip__glyph { color: var(--accent); font-size: var(--fs-md); width: 18px; text-align: center; }
.chip__name { flex: 1; }
.chip__lock { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }

.spreads { display: grid; gap: var(--sp2); }
.spread {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: var(--sp2) var(--sp3);
  align-items: center;
  width: 100%;
  padding: 10px var(--sp3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.spread:hover { border-color: var(--accent); }
.spread[aria-checked="true"] { border-color: var(--accent); background: rgba(217, 162, 74, .08); }
.spread__dot {
  width: 14px; height: 14px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  margin-left: 4px;
}
.spread[aria-checked="true"] .spread__dot { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.spread__title { font-size: var(--fs-sm); }
.spread__meta { grid-column: 2; font-size: var(--fs-xs); color: var(--muted); line-height: 1.35; }

.input {
  width: 100%;
  min-height: 44px;
  padding: 10px var(--sp3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
  resize: vertical;
}
.input::placeholder { color: #91857a; }
.input:hover { border-color: #4a3d3f; }

.reader__result { min-height: 420px; scroll-margin-top: 88px; }

.empty {
  display: grid;
  place-items: center;
  gap: var(--sp4);
  min-height: 420px;
  padding: var(--sp7);
  border: 1px dashed var(--line);
  border-radius: var(--r);
  text-align: center;
  color: var(--muted);
}
.empty__glyph { font-size: 40px; color: var(--line); }
.empty p { max-width: 36ch; font-size: var(--fs-sm); }

.reading-loading {
  display: grid;
  place-items: center;
  min-height: 420px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.reading-loading span {
  display: inline-block;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

/* выпавшие карты */

.drawn-wrap { animation: rise .32s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

.reading__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--sp2) var(--sp4);
  margin-bottom: var(--sp5);
}
.reading__title { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 400; }
.reading__deck { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.reading__question {
  margin: calc(-1 * var(--sp2)) 0 var(--sp5);
  padding-left: var(--sp3);
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-sm);
  max-width: 60ch;
}

.reading__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 130px));
  gap: var(--sp3);
  margin-bottom: var(--sp6);
}
.drawn { display: flex; flex-direction: column; gap: var(--sp2); }
.drawn .tarot { padding: 10px; }
.drawn .tarot__name { font-size: var(--fs-xs); }
.drawn .tarot__keys { display: none; }
.drawn .tarot__glyph { font-size: clamp(30px, 4vw, 44px); }
.drawn__pos { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawn__rev { display: block; margin-top: 2px; font-size: 10px; letter-spacing: .06em; text-transform: none; color: var(--accent); }

.texts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp5); }
.texts li {
  padding-top: var(--sp4);
  border-top: 1px solid var(--line-soft);
}
.texts h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp1);
}
.texts h3 span { color: var(--accent); font-family: var(--sans); font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; margin-right: var(--sp2); }
.texts .keys { font-size: var(--fs-xs); letter-spacing: .06em; color: var(--muted); margin-bottom: var(--sp2); }
.texts p { max-width: 70ch; color: #d8cfc4; font-size: var(--fs-sm); }
.texts .advice { margin-top: var(--sp2); color: var(--accent-soft); font-size: var(--fs-sm); }
.texts .advice b { color: var(--accent); font-weight: 500; }

.reading__again { display: flex; gap: var(--sp3); margin-top: var(--sp6); }

/* ---------- колоды ---------- */

.decks { padding: var(--sp8) 0 var(--sp9); scroll-margin-top: 88px; }
.decks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp5);
}

.deck {
  display: flex;
  flex-direction: column;
  gap: var(--sp5);
  padding: var(--sp5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(28, 22, 24, .75), rgba(20, 16, 17, .6));
  transition: border-color .2s ease, transform .2s ease;
}
.deck:hover { border-color: #4a3b3a; }
.deck--free {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  align-items: center;
  gap: var(--sp7);
  border-color: rgba(217, 162, 74, .38);
  background: linear-gradient(100deg, rgba(217, 162, 74, .07), rgba(20, 16, 17, .5) 55%);
}
.deck__art { display: flex; justify-content: center; }
.deck--free .deck__art { justify-content: flex-start; }
.deck__art .tarot { width: 100%; max-width: 190px; }
.deck--free .deck__art .tarot { max-width: 220px; }

.deck__body { display: flex; flex-direction: column; gap: var(--sp2); }
.deck__price {
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}
.deck__title { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 400; }
.deck__sub { font-size: var(--fs-sm); color: var(--muted); }
.deck__tag {
  font-size: var(--fs-sm);
  color: #d8cfc4;
  max-width: 46ch;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deck__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp2) var(--sp4);
  margin-top: var(--sp1);
  font-size: var(--fs-xs);
  color: var(--muted);
}
.deck__actions { margin-top: var(--sp3); display: flex; gap: var(--sp2); flex-wrap: wrap; }
.deck__actions .btn { flex: none; }
.deck--free .deck__actions { margin-top: 0; }
.deck--free .deck__actions .btn { width: 100%; }

.deck--locked .deck__art .tarot { opacity: .82; }

/* ---------- как это работает ---------- */

.how { padding: var(--sp9) 0; border-top: 1px solid var(--line-soft); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp6);
}
.step { border-top: 1px solid var(--accent); padding-top: var(--sp4); }
.step__num {
  display: block;
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: var(--sp4);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: var(--sp2); }
.step p { color: var(--muted); font-size: var(--fs-sm); max-width: 38ch; }

/* ---------- вопросы ---------- */

.objections { padding: var(--sp9) 0; border-top: 1px solid var(--line-soft); }
.objections__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: var(--sp8);
  align-items: start;
}
.faq { display: grid; gap: var(--sp5); margin: 0; }
.faq__item { padding-bottom: var(--sp5); border-bottom: 1px solid var(--line-soft); }
.faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq dt {
  font-family: var(--serif);
  font-size: var(--fs-lg);
  margin-bottom: var(--sp2);
}
.faq dd { margin: 0; color: var(--muted); font-size: var(--fs-sm); max-width: 60ch; }

/* ---------- цены ---------- */

.pricing { padding: var(--sp9) 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 88px; }
.pricing__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--sp6);
  align-items: start;
}

.price-list { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.price-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--sp4);
  align-items: center;
  padding: var(--sp4) var(--sp5);
  border-bottom: 1px solid var(--line-soft);
}
.price-row:last-child { border-bottom: 0; }
.price-row__name { font-family: var(--serif); font-size: var(--fs-lg); }
.price-row__sub { font-size: var(--fs-xs); color: var(--muted); }
.price-row__amount { font-variant-numeric: tabular-nums; color: var(--accent-soft); }
.price-row .btn { min-width: 116px; }

.price-bundle {
  position: relative;
  padding: var(--sp6);
  border: 1px solid var(--accent);
  border-radius: var(--r);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(217, 162, 74, .13), transparent 60%),
    var(--surface);
}
.price-bundle__badge {
  display: inline-block;
  margin-bottom: var(--sp4);
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--accent);
  color: #17100a;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.price-bundle h3 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 400; margin-bottom: var(--sp2); }
.price-bundle__price {
  display: flex;
  align-items: baseline;
  gap: var(--sp3);
  margin: var(--sp4) 0;
  font-variant-numeric: tabular-nums;
}
.price-bundle__price b { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 400; color: var(--accent-soft); }
.price-bundle__price s { color: var(--muted); font-size: var(--fs-sm); }
.price-bundle p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp4); }
.price-bundle ul { margin: 0 0 var(--sp5); padding: 0 0 0 18px; color: var(--muted); font-size: var(--fs-sm); }
.price-bundle li { margin-bottom: var(--sp1); }

/* ---------- финал ---------- */

.final {
  padding: var(--sp9) 0;
  border-top: 1px solid var(--line-soft);
  background: radial-gradient(700px 300px at 50% 110%, rgba(217, 162, 74, .1), transparent 70%);
}
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp4); }
.final__glyph { font-size: 40px; color: var(--accent); }
.final h2 { margin: 0; }
.final__lead { color: var(--muted); margin-bottom: var(--sp4); }

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

.foot { border-top: 1px solid var(--line-soft); padding: var(--sp7) 0; }
.foot__inner { display: grid; gap: var(--sp4); }
.foot__brand { display: flex; align-items: center; gap: var(--sp2); font-family: var(--serif); font-size: var(--fs-lg); }
.foot__note { font-size: var(--fs-xs); color: var(--muted); max-width: 72ch; line-height: 1.6; }
.foot__meta { font-size: var(--fs-xs); color: #91857a; }

/* ---------- оплата ---------- */

.pay {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
}
.pay::backdrop { background: rgba(5, 4, 4, .72); backdrop-filter: blur(3px); }
.pay__inner { padding: var(--sp6); position: relative; }
.pay__close {
  position: absolute;
  top: var(--sp3);
  right: var(--sp3);
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: var(--r);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.pay__close:hover { color: var(--text); border-color: var(--accent); }
.pay__eyebrow { font-size: var(--fs-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--sp2); }
.pay h3 { font-family: var(--serif); font-size: var(--fs-xl); font-weight: 400; margin-bottom: var(--sp2); }
.pay p { color: var(--muted); font-size: var(--fs-sm); }
.pay__price { font-family: var(--serif); font-size: var(--fs-2xl); color: var(--accent-soft); margin: var(--sp4) 0; }
.pay ul { margin: 0 0 var(--sp5); padding-left: 18px; color: var(--muted); font-size: var(--fs-sm); }
.pay .btn { width: 100%; margin-top: var(--sp2); }
.pay__status {
  display: flex;
  align-items: center;
  gap: var(--sp2);
  margin: var(--sp4) 0;
  padding: var(--sp3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.pay__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.pay__demo {
  margin-top: var(--sp4);
  font-size: var(--fs-xs);
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: var(--sp3);
}
.pay__error { color: var(--danger); font-size: var(--fs-sm); margin-top: var(--sp3); }
.pay__ok { color: var(--success); }

/* ---------- тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-sm);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 60;
}
.toast--show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- адаптив ---------- */

@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp7); }
  .hero__art { order: -1; }
  .fan { height: 360px; }
  .fan__card { width: 170px; }
  .fan__card--l { transform: translateX(-50%) translateX(-96px) rotate(-11deg); }
  .fan__card--r { transform: translateX(-50%) translateX(96px) rotate(11deg); }
  .proof__grid { grid-template-columns: repeat(4, 1fr); }
  .proof__note { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line-soft); padding: var(--sp4) 0 0; }
  .problem__grid { grid-template-columns: 1fr; gap: var(--sp5); }
  .reader { grid-template-columns: 1fr; }
  .reader__form { position: static; }
  .decks__grid { grid-template-columns: 1fr 1fr; }
  .deck--free { grid-column: span 2; grid-template-columns: 180px 1fr; gap: var(--sp5); }
  .deck--free .deck__actions { grid-column: 2; }
  .objections__grid { grid-template-columns: 1fr; gap: var(--sp6); }
  .pricing__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
}

@media (max-width: 720px) {
  :root { --sp9: 64px; --sp8: 48px; }
  .shell { padding: 0 var(--sp4); }
  .head__inner { min-height: 64px; }
  .hero { padding: var(--sp7) 0 var(--sp6); }
  .hero .lead { font-size: var(--fs-md); }
  .fan { height: 300px; }
  .fan__card { width: 140px; top: 34px; }
  .fan__card--l { transform: translateX(-50%) translateX(-78px) rotate(-12deg); }
  .fan__card--r { transform: translateX(-50%) translateX(78px) rotate(12deg); }
  .fan__card .tarot { padding: 10px; }
  .fan__card .tarot__name { font-size: 10px; }
  .fan__card .tarot__keys { display: none; }
  .proof__grid { grid-template-columns: 1fr 1fr; gap: var(--sp4); }
  .proof__note { grid-column: 1 / -1; }
  .decks__grid { grid-template-columns: 1fr; }
  .deck--free { grid-column: span 1; grid-template-columns: 1fr; gap: var(--sp4); }
  .deck--free .deck__art { justify-content: center; }
  .deck--free .deck__art .tarot { max-width: 180px; }
  .deck--free .deck__actions { grid-column: 1; }
  .steps { grid-template-columns: 1fr; gap: var(--sp5); }
  .price-row { grid-template-columns: 1fr auto; }
  .price-row .btn { grid-column: 1 / -1; width: 100%; }
  .reading__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp3); }
  .drawn .tarot { padding: 8px; }
  .drawn .tarot__name { font-size: 11px; }
  .drawn__pos { font-size: 10px; }
  .pay__inner { padding: var(--sp5); }
  .btn--sm { display: none; }
}

@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .chips { grid-template-columns: 1fr; }
}

/* демо-страница оплаты */

.demo-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--sp5);
}
.demo-card {
  width: min(440px, 100%);
  padding: var(--sp6);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.demo-card h1 { font-family: var(--serif); font-size: var(--fs-2xl); font-weight: 400; margin-bottom: var(--sp3); }
.demo-card p { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--sp3); }
.demo-card .btn { width: 100%; margin-top: var(--sp3); }
.demo-card__ok { color: var(--success); }

/* ---------- серверные страницы: колода, донат, документы ---------- */

.page { padding: var(--sp7) 0 var(--sp9); }
.page__inner { display: grid; gap: var(--sp7); }
.page__narrow { max-width: 760px; margin: 0 auto; display: grid; gap: var(--sp5); }
.page__section { display: grid; gap: var(--sp4); }
.page__lead { color: var(--muted); font-size: var(--fs-lg); max-width: 62ch; }
.page__text { color: var(--muted); max-width: 68ch; margin-top: var(--sp3); }

.crumbs { font-size: var(--fs-xs); color: var(--muted); display: flex; gap: var(--sp2); flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.foot__links { display: flex; flex-wrap: wrap; gap: var(--sp2) var(--sp5); font-size: var(--fs-xs); }
.foot__links a { color: var(--muted); }
.foot__links a:hover { color: var(--accent); }

.deck-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--sp7);
  align-items: center;
  padding-bottom: var(--sp7);
  border-bottom: 1px solid var(--line-soft);
}
.deck-hero__art img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .95);
}
.deck-hero h1 { margin-bottom: var(--sp2); }
.deck-hero__sub { color: var(--accent); font-size: var(--fs-md); margin-bottom: var(--sp3); }
.deck-hero__tag { font-family: var(--serif); font-size: var(--fs-xl); line-height: 1.3; margin-bottom: var(--sp3); }
.deck-hero__actions { display: flex; gap: var(--sp3); flex-wrap: wrap; margin: var(--sp5) 0 var(--sp3); }

.mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--sp4);
}
.mini { margin: 0; display: flex; flex-direction: column; gap: var(--sp2); }
.mini img {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.mini figcaption { display: grid; gap: 2px; font-size: var(--fs-xs); line-height: 1.35; }
.mini figcaption b { font-weight: 500; color: var(--text); }
.mini figcaption span { color: var(--muted); }

.legal { display: grid; gap: var(--sp4); }
.legal h1 { margin-bottom: var(--sp2); }
.legal h2 { font-size: var(--fs-lg); margin-top: var(--sp5); }
.legal p, .legal li { color: var(--muted); font-size: var(--fs-sm); max-width: 70ch; }
.legal ul, .legal ol { margin: 0; padding-left: 20px; display: grid; gap: var(--sp2); }
.legal__lead { font-size: var(--fs-md) !important; color: var(--text) !important; }
.legal__muted { font-size: var(--fs-xs) !important; opacity: .75; }
.legal__facts {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: var(--sp2) var(--sp4);
  padding: var(--sp4) var(--sp5);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  margin: var(--sp3) 0;
}
.legal__facts dt { color: var(--muted); font-size: var(--fs-xs); }
.legal__facts dd { margin: 0; font-size: var(--fs-sm); }
.legal__nav { display: flex; flex-wrap: wrap; gap: var(--sp3) var(--sp5); padding-top: var(--sp5); border-top: 1px solid var(--line-soft); }
.legal__nav a { font-size: var(--fs-sm); color: var(--muted); }
.legal__nav a:hover { color: var(--accent); }

.donate { display: grid; gap: var(--sp3); padding: var(--sp5); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.donate__presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp2); }
.donate__preset {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-md);
  cursor: pointer;
}
.donate__preset:hover { border-color: var(--accent); }
.donate__preset[aria-checked="true"] { border-color: var(--accent); background: rgba(217, 162, 74, .1); }
.donate__stats { font-size: var(--fs-sm); color: var(--muted); }
.donate__stats b { color: var(--accent-soft); font-variant-numeric: tabular-nums; }
.donate__thanks { color: var(--success); }

.reading__disclaimer { margin-top: var(--sp5); padding-top: var(--sp3); border-top: 1px solid var(--line-soft); font-size: var(--fs-xs); color: var(--muted); max-width: 60ch; }
.pay__legal { margin-top: var(--sp3); font-size: var(--fs-xs); color: var(--muted); line-height: 1.5; }
.pay__legal a { color: var(--accent-soft); }

@media (max-width: 720px) {
  .deck-hero { grid-template-columns: 1fr; gap: var(--sp5); }
  .deck-hero__art { max-width: 240px; }
  .mini-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--sp3); }
  .legal__facts { grid-template-columns: 1fr; gap: 2px; }
  .legal__facts dd { margin-bottom: var(--sp2); }
}

/* перелинковка колод */
.deck__title a { color: inherit; text-decoration: none; }
.deck__title a:hover { color: var(--accent-soft); }
.deck-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp4); }
.deck-link { display: grid; gap: var(--sp2); text-decoration: none; }
.deck-link img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); }
.deck-link__title { font-family: var(--serif); font-size: var(--fs-md); color: var(--text); }
.deck-link__price { font-size: var(--fs-xs); color: var(--muted); }
.deck-link:hover .deck-link__title { color: var(--accent-soft); }

.noscript { padding: var(--sp7) 0; border-top: 1px solid var(--line-soft); }
.noscript h2 { font-size: var(--fs-2xl); margin-bottom: var(--sp3); }
.noscript p { color: var(--muted); max-width: 70ch; margin-bottom: var(--sp4); }
.noscript__links { list-style: none; padding: 0; margin: 0 0 var(--sp4); display: grid; gap: var(--sp2); }
.noscript__links a { color: var(--accent-soft); }
