/* ============================================================
   SoulKards · тёмная мистика и золото
   Общая дизайн-система сайта. Подключается на всех страницах.
   Правки цветов / шрифтов / отступов делайте в :root ниже.
   ============================================================ */

:root {
  /* Цвета */
  --bg: #0E0B1A;            /* полночь: глубокий индиго */
  --bg-deep: #0A0813;       /* ещё темнее: футер, вина */
  --surface: #151027;       /* поверхность карточек */
  --surface-2: #1B1533;     /* приподнятая поверхность */
  --ink: #F5EFE0;           /* кремовый текст */
  --muted: #A79FB8;         /* приглушённый лавандово-серый */
  --border: rgba(245, 239, 224, 0.14);
  --border-strong: rgba(245, 239, 224, 0.30);
  --gold: #C9A227;          /* латунное золото */
  --gold-bright: #E3C766;
  --gold-soft: rgba(201, 162, 39, 0.13);

  /* Шрифты */
  --font-display: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;

  /* Ритм */
  --maxw: 1140px;
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Ночное небо: неподвижное поле звёзд + две туманности ---- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(1.2px 1.2px at 8% 18%, rgba(245,239,224,.55) 45%, transparent 55%),
    radial-gradient(1px 1px at 22% 64%, rgba(245,239,224,.38) 45%, transparent 55%),
    radial-gradient(1.4px 1.4px at 31% 9%, rgba(227,199,102,.5) 45%, transparent 55%),
    radial-gradient(1px 1px at 44% 38%, rgba(245,239,224,.3) 45%, transparent 55%),
    radial-gradient(1.2px 1.2px at 57% 78%, rgba(245,239,224,.42) 45%, transparent 55%),
    radial-gradient(1px 1px at 66% 22%, rgba(227,199,102,.4) 45%, transparent 55%),
    radial-gradient(1.5px 1.5px at 74% 52%, rgba(245,239,224,.5) 45%, transparent 55%),
    radial-gradient(1px 1px at 83% 12%, rgba(245,239,224,.35) 45%, transparent 55%),
    radial-gradient(1.2px 1.2px at 91% 68%, rgba(227,199,102,.45) 45%, transparent 55%),
    radial-gradient(1px 1px at 12% 86%, rgba(245,239,224,.3) 45%, transparent 55%),
    radial-gradient(1px 1px at 38% 92%, rgba(245,239,224,.28) 45%, transparent 55%),
    radial-gradient(1.3px 1.3px at 62% 44%, rgba(245,239,224,.4) 45%, transparent 55%),
    radial-gradient(900px 620px at 85% -10%, rgba(201,162,39,.07), transparent 70%),
    radial-gradient(1100px 700px at -15% 110%, rgba(80,60,140,.12), transparent 70%);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ============ Навигация ============ */
.nav {
  position: sticky;
  top: 14px;
  z-index: 60;
  max-width: 1040px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(14, 11, 26, 0.78);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { color: var(--gold); flex: none; }
.brand em { font-style: italic; color: var(--muted); font-size: 15px; letter-spacing: 0.02em; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a[aria-current="page"] { color: var(--gold-bright); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.02em;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: #171227;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 180ms ease, transform 180ms ease;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-bright); }
.nav-cta:active { transform: scale(0.97); }

.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav-burger svg { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 76px 14px auto 14px;
  z-index: 55;
  background: rgba(21, 16, 39, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.mobile-menu.is-open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--border); }
.mobile-menu a {
  display: block;
  padding: 13px 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}
.mobile-menu a:hover { color: var(--gold-bright); }
.mobile-menu .nav-cta { margin-top: 12px; justify-content: center; width: 100%; }

/* ============ Типографика ============ */
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

.display {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
}
.display em { font-style: italic; color: var(--gold-bright); }
.h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
.h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; margin: 0; }

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
  margin: 22px 0 0;
}
p { margin: 0 0 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

.kicker {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.gold { color: var(--gold-bright); }
.muted { color: var(--muted); }

a { color: var(--gold-bright); }
a:hover { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============ Кнопки ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 15px/1 var(--font-body);
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(0.2,0,0,1), background 180ms ease, border-color 180ms ease, color 180ms ease;
  border: 1px solid transparent;
  min-height: 48px;
}
.btn-gold { background: var(--gold); color: #171227; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); color: #171227; }
.btn-gold:active { transform: scale(0.97); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-outline:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn-link {
  background: none;
  border: none;
  padding: 14px 2px;
  font: 600 15px/1 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.btn-link::after { content: "→"; margin-left: 8px; color: var(--gold-bright); transition: margin 180ms ease; }
.btn-link:hover::after { margin-left: 12px; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============ Секции и ритм ============ */
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--airy { padding: 120px 0; }
.section + .section { padding-top: 0; }
.hairline-top { border-top: 1px solid var(--border); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 16.5px; margin-top: 16px; }

.trust-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.trust-proof > div { padding: 24px 28px; background: var(--surface); }
.trust-proof > div + div { border-left: 1px solid var(--border); }
.trust-proof strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
}
.trust-proof span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============ Герой ============ */
.hero { padding-top: 92px; padding-bottom: 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ============ Карта Таро (миниатюра) ============ */
.tarot-card {
  position: relative;
  aspect-ratio: 5 / 8.4;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201,162,39,0.10), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18px 14px;
  overflow: hidden;
}
.tarot-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) - 5px);
  pointer-events: none;
}
.tarot-card .numeral {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--gold-bright);
}
.tarot-card .glyph { color: var(--gold); opacity: 0.9; }
.tarot-card .card-name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
}

/* Карта дня: флип */
.flip-scene { perspective: 1200px; max-width: 240px; margin: 0 auto; }
.flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 700ms cubic-bezier(0.2, 0, 0, 1);
  aspect-ratio: 5 / 8.4;
}
.flip-inner.is-flipped { transform: rotateY(180deg); }
.flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-face--back { transform: rotateY(180deg); }
.card-back {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(201,162,39,0.16), transparent 55%),
    linear-gradient(180deg, #1D1738, #141024);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-back::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--gold-soft);
  border-radius: calc(var(--radius-lg) - 5px);
}
.card-back svg { color: var(--gold); opacity: 0.85; }
.card-of-day-result .tarot-card { height: 100%; }
.card-of-day-meaning { margin-top: 20px; text-align: center; }
.card-of-day-meaning .card-name-big {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 6px;
}
.card-of-day-meaning p { color: var(--muted); font-size: 14.5px; max-width: 40ch; margin: 0 auto; }

/* ============ Bento-сетка (неравные ячейки) ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}
.bento > .cell {
  background: var(--surface);
  padding: 30px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: background 200ms ease;
}
.bento > .cell:hover { background: var(--surface-2); }
.cell--wide { grid-column: span 4; }
.cell--narrow { grid-column: span 2; }
.cell--tall { grid-row: span 2; }
.bento a.cell { text-decoration: none; color: inherit; }
.cell .num { font-size: 11px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.cell h3 { font-size: 24px; margin: 0; }
.cell p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 46ch; }
.cell .cell-go {
  margin-top: auto;
  padding-top: 14px;
  color: var(--gold-bright);
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ============ Списки-шаги (таймлайн) ============ */
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps li {
  position: relative;
  padding: 0 0 34px 64px;
  border-left: 1px solid var(--border);
  margin-left: 19px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.steps .step-num {
  position: absolute;
  left: -19px;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  background: var(--bg);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { font-size: 20px; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; max-width: 58ch; }

/* ============ Карточки-плитки контента ============ */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 200ms ease, transform 200ms cubic-bezier(0.2,0,0,1);
}
.tile:hover { background: var(--surface-2); transform: translateY(-3px); }
.tile h3 { font-size: 21px; }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tile .meta { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); font-weight: 600; }
.tile .go { margin-top: auto; padding-top: 10px; color: var(--gold-bright); font-size: 14px; font-weight: 600; }

/* ============ Расклады: схема позиций ============ */
.spread-figure {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 26px;
  display: grid;
  gap: 10px;
  justify-content: center;
  align-content: center;
}
.spread-slot {
  width: 52px;
  height: 80px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spread-slot--void { border: 1px dashed var(--border); background: transparent; color: transparent; }
.spread-positions { list-style: none; margin: 18px 0 0; padding: 0; }
.spread-positions li {
  display: flex;
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.spread-positions li:first-child { border-top: none; }
.spread-positions .n {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: var(--font-display);
}

/* ============ Энциклопедия: арканы ============ */
.arcana {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.arcana .top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.arcana .top .numeral {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 15px;
  letter-spacing: 0.14em;
}
.arcana h3 { font-size: 21px; margin: 0; }
.arcana .latin { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.arcana p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }
.key-row { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--border); }
.key-row .k { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.key-row .v { font-size: 13.5px; line-height: 1.5; }
.key-row .v.rev { color: var(--muted); }

/* Поиск и фильтры */
.finder {
  position: sticky;
  top: 88px;
  z-index: 40;
  margin-top: 32px;
}
.finder-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(14, 11, 26, 0.92);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  box-shadow: 0 16px 44px rgba(0,0,0,.28);
}
.card-search {
  width: 100%;
  min-height: 46px;
  padding: 11px 16px 11px 44px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 500 15px/1.2 var(--font-body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23A79FB8' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 15px center;
}
.card-search::placeholder { color: var(--muted); }
.card-search:focus { border-color: var(--gold); outline: 2px solid rgba(227,199,102,.2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; align-items: center; }
.filter-chip {
  font: 600 13px/1 var(--font-body);
  letter-spacing: 0.04em;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: all 180ms ease;
  min-height: 44px;
}
.search-status { grid-column: 1 / -1; min-height: 18px; color: var(--muted); font-size: 13px; padding-left: 4px; }
.search-empty {
  display: none;
  margin: 36px 0 0;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--muted);
}
.search-empty.is-visible { display: block; }
.is-searching .encyclopedia-intro { display: none; }
.finder + .encyclopedia-intro { transition: opacity 180ms ease; }
[data-suit] { scroll-margin-top: 190px; }
.filter-chip:hover { border-color: var(--gold); color: var(--gold-bright); }
.filter-chip[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #171227;
}

/* Младшие арканы */
.suit-block { margin-top: 72px; }
.suit-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-bottom: 34px; }
.minor-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.minor-table caption {
  text-align: left;
  font-family: var(--font-display);
  font-size: 24px;
  padding-bottom: 14px;
  color: var(--ink);
}
.minor-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--border-strong);
  font-weight: 700;
}
.minor-table td {
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}
.minor-table td:first-child { font-weight: 600; white-space: nowrap; }
.minor-table td.rev { color: var(--muted); }

/* ============ Статьи ============ */
.article-head { max-width: 780px; padding: 84px 0 0; }
.article-head .kicker { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.article-head .h1 { margin-top: 0; }
.article-meta { color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.prose {
  max-width: 68ch;
  padding: 44px 0 24px;
  font-size: 17px;
  line-height: 1.68;
}
.prose h2 {
  font-size: 30px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 56px 0 18px;
}
.prose h3 { font-size: 22px; margin: 40px 0 12px; }
.prose p { margin: 0 0 18px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { font-weight: 600; color: var(--gold-bright); }
.prose blockquote {
  margin: 48px 0;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 24ch;
}
.pullquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 26ch;
  margin: 64px 0;
  padding: 0;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 26px 0; }
.compare-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--border-strong);
}
.compare-table td {
  padding: 13px 16px 13px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
.compare-table td.no { color: var(--muted); }
.compare-table td.yes { color: var(--ink); }

.callout {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--gold-soft);
  padding: 22px 26px;
  margin: 30px 0;
  font-size: 15.5px;
  line-height: 1.6;
}
.callout .t { font-weight: 700; color: var(--gold-bright); display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ============ FAQ (details) ============ */
.faq-list { max-width: 820px; }
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
  transition: color 180ms ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-bright); }
.faq-list summary .ind {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-size: 18px;
  transition: transform 220ms ease, border-color 180ms ease;
}
.faq-list details[open] summary .ind { transform: rotate(45deg); border-color: var(--gold); }
.faq-list .answer { padding: 0 4px 26px; color: var(--muted); max-width: 62ch; line-height: 1.65; }

/* ============ CTA-блоки ============ */
.cta-band {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 130% at 85% 0%, rgba(201,162,39,0.12), transparent 55%),
    linear-gradient(180deg, #1C1636, var(--surface));
  padding: 56px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.015em; line-height: 1.12; }
.cta-band p { color: var(--muted); margin-top: 12px; max-width: 48ch; }
.cta-band .cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .cta-note { font-size: 12.5px; color: var(--muted); text-align: center; }

.cta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding: 30px 0 0;
}
.cta-strip p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ============ Контраст-блок (что делаю / чего не делаю) ============ */
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--border); margin-top: 30px; }
.pair-grid > div { padding: 24px 0; border-bottom: 1px solid var(--border); }
.pair-grid > div:nth-child(odd) { padding-right: 28px; }
.pair-grid > div:nth-child(even) { border-left: 1px solid var(--border); padding-left: 28px; }
.pair-grid .label { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; display: block; }
.pair-grid p { margin: 0; font-size: 15px; line-height: 1.55; }
.pair-grid .no { color: var(--muted); }

/* ============ Хлебные крошки ============ */
.crumbs { padding: 30px 0 0; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs .sep { margin: 0 8px; color: var(--border-strong); }

/* ============ Подвал ============ */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-grid .brand { font-size: 26px; }
.footer-tagline { color: var(--muted); font-size: 14.5px; max-width: 40ch; margin-top: 14px; }
.footer-col .kicker { display: block; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-meta {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.footer-meta a { color: var(--muted); }

/* ============ Появление при прокрутке ============ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 620ms cubic-bezier(0.16,1,0.3,1), transform 620ms cubic-bezier(0.16,1,0.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flip-inner { transition: none; }
  * { animation: none !important; }
}

/* ============ Адаптив ============ */
@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cell--wide, .cell--narrow { grid-column: span 2; }
  .cell--tall { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .hero { padding-top: 64px; padding-bottom: 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero .flip-scene { max-width: 220px; margin: 0 auto; }
  .section, .section--airy { padding: 76px 0; }
  .section--tight { padding: 60px 0; }
  .suit-intro { grid-template-columns: 1fr; gap: 18px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .pair-grid { grid-template-columns: 1fr; }
  .pair-grid > div:nth-child(even) { border-left: none; padding-left: 0; }
  .pair-grid > div:nth-child(odd) { padding-right: 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .cell--wide, .cell--narrow { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .trust-proof { grid-template-columns: 1fr; }
  .trust-proof > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .finder { top: 76px; margin-top: 24px; }
  .finder-panel { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex: none; }
  .search-status { grid-column: auto; }
  .minor-table, .minor-table tbody, .minor-table tr, .minor-table td { display: block; width: 100%; }
  .minor-table thead { display: none; }
  .minor-table { white-space: normal; }
  .minor-table caption { padding-bottom: 18px; }
  .minor-table tr {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
  }
  .minor-table td { border: 0; padding: 5px 0; }
  .minor-table td:first-child { padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
  .minor-table td:nth-child(2)::before,
  .minor-table td:nth-child(3)::before {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .minor-table td:nth-child(2)::before { content: "Прямое значение"; }
  .minor-table td:nth-child(3)::before { content: "Перевёрнутое"; }
  .faq-list summary { font-size: 18.5px; }
  .prose { font-size: 16px; }
  .hero .actions .btn { width: 100%; }
  .steps li { padding-left: 56px; }
}

/* ============ Иллюстрации колоды Райдера–Уэйта (public domain) ============ */
.arcana--card { flex-direction: row; align-items: flex-start; gap: 16px; }
.arcana--card .arcana-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.arcana-img {
  width: 92px;
  aspect-ratio: 5 / 8.5;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  flex: none;
}
.cod-img {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  border-radius: 8px;
}
.card-cell { display: flex; align-items: center; gap: 10px; }
.card-cell img {
  width: 42px;
  aspect-ratio: 5 / 8.5;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  flex: none;
}
.minor-table td.card-cell { white-space: normal; }
.glyph-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.attribution { font-size: 12.5px; color: var(--muted); margin-top: 44px; }

@media (max-width: 640px) {
  .arcana-img { width: 76px; }
  .card-cell img { width: 36px; }
}

/* ============ SoulKards · витрина личных раскладов ============ */
.service-site { padding-bottom: 92px; }
.service-site section[id] { scroll-margin-top: 110px; }
.service-hero { min-height: calc(100vh - 86px); display: flex; align-items: center; }
.service-title { font-size: clamp(42px, 5.5vw, 70px); }
.service-h2 { margin-top: 16px; }

.seo-intro {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 72px;
  align-items: end;
  padding-top: 42px;
  padding-bottom: 42px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.seo-intro p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }

.question-preview {
  position: relative;
  min-height: 500px;
  padding: 58px 38px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 72% 22%, rgba(227,199,102,.16), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(92,66,160,.2), transparent 32%),
    linear-gradient(155deg, var(--surface-2), rgba(14,11,26,.6));
}
.question-preview::before,
.question-preview::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(227,199,102,.18);
  border-radius: 50%;
}
.question-preview::before { width: 330px; height: 330px; right: -120px; top: -120px; }
.question-preview::after { width: 210px; height: 210px; left: -100px; bottom: -90px; }
.question-preview-label {
  display: block;
  max-width: 25ch;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}
.question-bubble {
  position: absolute;
  max-width: 82%;
  padding: 15px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 18px 18px 18px 4px;
  background: rgba(10,8,19,.76);
  color: var(--ink);
  font-size: 15px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.question-bubble--one { top: 168px; left: 34px; }
.question-bubble--two { top: 254px; right: 30px; border-radius: 18px 18px 4px 18px; }
.question-bubble--three { top: 342px; left: 68px; }
.question-preview-mark { position: absolute; right: 42px; bottom: 32px; color: var(--gold); font-size: 32px; }

.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.question-card {
  min-height: 178px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.question-card:hover { transform: translateY(-3px); border-color: rgba(227,199,102,.38); background: var(--surface-2); }
.question-card span { color: var(--gold-bright); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.question-card h3 { margin: 34px 0 0; font-size: 25px; line-height: 1.18; }
.question-card--wide { grid-column: 1 / -1; min-height: auto; display: flex; align-items: center; gap: 28px; }
.question-card--wide h3 { margin: 0; }

.service-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.service-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 30px; background: var(--surface); }
.service-steps li:nth-child(even) { border-left: 1px solid var(--border); }
.service-steps li:nth-child(n+3) { border-top: 1px solid var(--border); }
.service-steps li > span { color: var(--gold-bright); font-family: var(--font-display); font-size: 32px; line-height: 1; }
.service-steps h3 { margin: 0 0 8px; font-size: 24px; }
.service-steps p { margin: 0; color: var(--muted); line-height: 1.6; }

.approach-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding: 54px; border: 1px solid var(--border); border-radius: 30px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); }
.approach-points { display: grid; align-content: center; }
.approach-points p { padding: 18px 0; margin: 0; color: var(--muted); border-bottom: 1px solid var(--border); line-height: 1.55; }
.approach-points p:last-child { border-bottom: 0; }
.approach-points strong { color: var(--ink); }

.footer-simple { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-simple > a { color: var(--ink); text-decoration: none; }
.footer-simple > a:hover { color: var(--gold-bright); }

.sticky-contact {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 14px;
  width: min(calc(100% - 28px), 1040px);
  transform: translateX(-50%);
}
.sticky-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 28px;
  border: 1px solid var(--gold-bright);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  color: #171227;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 16px 44px rgba(0,0,0,.5), 0 0 0 5px rgba(14,11,26,.86);
  transition: transform 180ms ease, filter 180ms ease;
}
.sticky-contact a:hover { color: #171227; filter: brightness(1.06); transform: translateY(-2px); }
.sticky-contact small { padding-left: 12px; border-left: 1px solid rgba(23,18,39,.25); font-size: 12px; font-weight: 600; }

@media (max-width: 880px) {
  .service-hero { min-height: auto; }
  .seo-intro { grid-template-columns: 1fr; gap: 22px; }
  .question-preview { min-height: 410px; max-width: 560px; width: 100%; margin: 0 auto; }
  .question-grid { grid-template-columns: repeat(2, 1fr); }
  .question-card--wide { grid-column: 1 / -1; }
  .approach-panel { grid-template-columns: 1fr; gap: 30px; padding: 40px 30px; }
}

@media (max-width: 640px) {
  .service-site { padding-bottom: 82px; }
  .service-title { font-size: clamp(38px, 12vw, 52px); }
  .question-preview { min-height: 360px; padding: 38px 24px; border-radius: 24px; }
  .question-preview-label { font-size: 20px; }
  .question-bubble { max-width: calc(100% - 48px); }
  .question-bubble--one { top: 130px; left: 22px; }
  .question-bubble--two { top: 205px; right: 22px; }
  .question-bubble--three { top: 280px; left: 42px; }
  .question-grid { grid-template-columns: 1fr; }
  .question-card, .question-card--wide { grid-column: auto; min-height: auto; }
  .question-card { padding: 22px; }
  .question-card h3 { margin-top: 22px; font-size: 23px; }
  .question-card--wide { display: block; }
  .service-steps { grid-template-columns: 1fr; }
  .service-steps li:nth-child(even) { border-left: 0; }
  .service-steps li + li { border-top: 1px solid var(--border); }
  .service-steps li { padding: 24px 20px; }
  .approach-panel { padding: 32px 22px; }
  .footer-simple { flex-direction: column; }
  .sticky-contact { width: calc(100% - 20px); bottom: 10px; }
  .sticky-contact a { min-height: 58px; padding: 12px 18px; }
  .sticky-contact small { display: none; }
}
