/* ============================================================
   LP-шаблоны — индексные/лендинговые страницы
   lp-hero · lp-flat · post-grid/post-card · lp-hero-art ·
   prose--narrow · features-grid · utility
   Слой pages. Используется на blog.html, energies.html,
   topics.html, compatibility*.html и других pages/*.html
   ============================================================ */

@layer pages {

  /* ============================================================
     LP-HERO — двухколоночный герой лендинга
  ============================================================ */

  /* copy = flex column; s-head растягивается на высоту арт-колонки (аna stretch) */
  .section--tight:has(.lp-hero__grid) .lp-hero__copy {
    display: flex;
    flex-direction: column;
  }
  .section--tight:has(.lp-hero__grid) .lp-hero__copy .s-head {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Базовый двухколоночный grid */
  .lp-hero__grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 400px);
    gap: clamp(40px, 5vw, 64px);
    align-items: start;
  }

  /* ============================================================
     LP-HERO — все секции с .lp-hero__grid на всю высоту экрана
     Крамбс вверху, grid-контент заполняет остаток высоты
  ============================================================ */
  .section--tight:has(.lp-hero__grid) {
    min-height: calc(100svh - var(--header-h));
    display: flex;
    flex-direction: column;
    padding-top: 56px;
    padding-bottom: clamp(48px, 7vh, 88px);
    position: relative;
    background: var(--bg);
  }
  /* Радиальный градиент на LP-героях */
  .section--tight:has(.lp-hero__grid)::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 60% 65% at 80% 25%, rgba(185, 138, 62, .16), transparent 58%),
      radial-gradient(ellipse 40% 50% at 8% 85%, rgba(45, 42, 82, .07), transparent 62%);
    z-index: 0;
  }
  :root[data-theme="night"] .section--tight:has(.lp-hero__grid)::before {
    background:
      radial-gradient(ellipse 60% 65% at 80% 25%, rgba(210, 166, 90, .20), transparent 58%),
      radial-gradient(ellipse 40% 50% at 8% 85%, rgba(176, 174, 224, .10), transparent 62%);
  }
  .section--tight:has(.lp-hero__grid) > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
  }
  /* Крамбс пинит сверху, не растягивается */
  .section--tight:has(.lp-hero__grid) > .container > .crumbs {
    flex-shrink: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
  .section--tight:has(.lp-hero__grid) .lp-hero__grid {
    flex: 1;
    align-items: stretch;
    margin-top: 32px;
  }
  @media (max-width: 980px) {
    .section--tight:has(.lp-hero__grid) {
      min-height: 0;
      padding-bottom: clamp(32px, 5vh, 56px);
    }
  }

  /* lp-hero__art--calc — форма калькулятора в hero */
  .hero-full .lp-hero__art--calc { max-width: 460px; }
  .hero-full .lp-hero__grid:has(.lp-hero__art--calc) {
    grid-template-columns: 1fr minmax(0, 460px);
    align-items: center;
  }

  /* Особые оверрайды для .hero-full (колесо энергий) */
  .hero-full { border-bottom: 1px solid var(--line); }
  .hero-full .lp-hero__grid {
    grid-template-columns: 1fr minmax(0, 520px);
    gap: clamp(48px, 6vw, 88px);
  }
  /* Крупнее заголовок и колесо — заполняем высоту, убираем «воздух» */
  .hero-full .lp-hero__copy .s-head__title { font-size: clamp(48px, 6vw, 92px); }
  .hero-full .lp-hero__copy .s-head__sub { font-size: clamp(18px, 1.5vw, 21px); max-width: 600px; }
  .hero-full .lp-hero__art { max-width: 560px; }
  .hero-full .lp-hero-art__frame {
    max-width: 480px;
    padding: clamp(28px, 3.5vw, 40px);
  }
  .hero-full .lp-hero-art__svg { width: 100%; }

  /* Скролл-индикатор у нижнего края */
  .hero-full__scroll {
    position: absolute;
    left: 50%;
    bottom: clamp(20px, 3vh, 36px);
    transform: translateX(-50%);
    width: 1px;
    height: clamp(32px, 5vh, 56px);
    overflow: hidden;
    opacity: .5;
  }
  .hero-full__scroll-line {
    display: block;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold-lo) 60%);
    animation: heroScroll 2.2s var(--ease) infinite;
  }
  :root[data-theme="night"] .hero-full__scroll-line { background: linear-gradient(to bottom, transparent, var(--gold) 60%); }
  @keyframes heroScroll {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
  }
  @media (max-width: 980px) {
    .hero-full .lp-hero__grid { grid-template-columns: 1fr; }
    .hero-full .lp-hero__art { max-width: 320px; margin: 0 auto; order: -1; }
    /* Для calc-форм: не ставити cart перед заголовком */
    .hero-full .lp-hero__art--calc { order: 1; max-width: 100%; }
    .hero-full .lp-hero-art__frame { max-width: 300px; }
    .hero-full__scroll { display: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-full__scroll-line { animation: none; }
  }

  .lp-hero__copy {
    display: grid;
    gap: 22px;
  }
  .lp-hero__copy .s-head {
    display: grid;
    gap: 22px;
    margin: 0;
  }
  .lp-hero__copy .eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-lo);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
  .lp-hero__copy .eyebrow::before { display: none; }
  :root[data-theme="night"] .lp-hero__copy .eyebrow { color: var(--gold); }
  .lp-hero__copy .s-head__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 5.2vw, 80px);
    line-height: .98;
    letter-spacing: -.032em;
    font-weight: 380;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
  }
  .lp-hero__copy .s-head__title em {
    font-family: var(--font-serif);
    font-style: normal;
    color: var(--gold-lo);
    font-weight: 500;
  }
  :root[data-theme="night"] .lp-hero__copy .s-head__title em { color: var(--gold-hi); }
  .lp-hero__copy .s-head__sub {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 560px;
    margin: 0;
  }

  /* — Арт справа: SVG-фрейм (blog/energies) — */
  .lp-hero__art {
    justify-self: center;
    width: 100%;
    max-width: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
  }
  .lp-hero-art__frame {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: clamp(20px, 3vw, 28px);
    background: var(--bg-1);
    border: 1px solid var(--line-gold);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-gold);
    color: var(--gold-lo);
  }
  .lp-hero-art__frame::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(185, 138, 62, .18);
    border-radius: 8px;
    pointer-events: none;
  }
  .lp-hero-art__frame::after {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,138,62,.10), transparent 70%);
    pointer-events: none;
  }
  :root[data-theme="night"] .lp-hero-art__frame { color: var(--gold); }
  .lp-hero-art__svg {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
  }
  .lp-hero-art__caption {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
  }
  .lp-hero-art__caption-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 28px;
    line-height: 1;
    color: var(--gold-lo);
    letter-spacing: -.02em;
    flex-shrink: 0;
  }
  :root[data-theme="night"] .lp-hero-art__caption-num { color: var(--gold); }
  .lp-hero-art__caption-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-3);
  }

  /* — Арт справа: затемнённая плашка с печатью (energies, topics) — */
  .lp-hero__seal {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--r-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #2a2032 0%, #4a3858 50%, #6e5680 100%);
    isolation: isolate;
  }
  .lp-hero__seal::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 18% 24%, rgba(255, 255, 255, .05) 0, transparent 1.4px),
      radial-gradient(circle at 76% 62%, rgba(0, 0, 0, .12) 0, transparent 1.6px);
    background-size: 200px 200px, 260px 260px;
    mix-blend-mode: overlay;
    opacity: .7;
    pointer-events: none;
    z-index: 1;
  }
  .lp-hero__seal::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .55) 100%);
    pointer-events: none;
    z-index: 1;
  }
  /* Тональные варианты */
  [data-tone="rod"]     .lp-hero__seal { background: linear-gradient(160deg, #3a1f44 0%, #6b3a4f 50%, #a8585a 100%); }
  [data-tone="love"]    .lp-hero__seal { background: linear-gradient(160deg, #3a1820 0%, #6a2a3a 50%, #a8485a 100%); }
  [data-tone="money"]   .lp-hero__seal { background: linear-gradient(160deg, #2a1810 0%, #5a3a1a 50%, #a87838 100%); }
  [data-tone="energy"]  .lp-hero__seal { background: linear-gradient(160deg, #221a2e 0%, #3a2a52 50%, #5e4a82 100%); }
  [data-tone="career"]  .lp-hero__seal { background: linear-gradient(160deg, #1a2c44 0%, #2c4a6a 50%, #3a6a8a 100%); }
  [data-tone="health"]  .lp-hero__seal { background: linear-gradient(160deg, #1a3a30 0%, #2c5a48 50%, #3a7a62 100%); }
  .lp-hero__seal .seal-card {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    color: rgba(232, 188, 114, .95);
    width: 70%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .lp-hero__seal .seal-card__top {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    letter-spacing: .06em;
    color: rgba(232, 188, 114, .85);
    text-align: center;
  }
  .lp-hero__seal .seal-card__divider { display: none; }
  .lp-hero__seal .seal-card__emblem {
    position: relative;
    width: 220px;
    height: 220px;
    display: grid;
    place-items: center;
    margin: 8px 0;
  }
  .lp-hero__seal .seal-card__digit {
    font-family: var(--font-display);
    font-size: 128px;
    font-weight: 380;
    line-height: 1;
    letter-spacing: -.04em;
    color: #F4EFE6;
    font-style: normal;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .6));
    position: relative;
    z-index: 2;
  }
  .lp-hero__seal .seal-card__ornament {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    color: rgba(232, 188, 114, .55);
    opacity: 1;
  }
  .lp-hero__seal .seal-card__bot { text-align: center; position: relative; z-index: 2; }
  .lp-hero__seal .seal-card__name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 420;
    color: #F4EFE6;
    letter-spacing: -.015em;
  }
  .lp-hero__seal .seal-card__tag {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(244, 239, 230, .55);
    margin-top: 6px;
  }

  /* ============================================================
     LP-FLAT — редакционный текстовый блок
  ============================================================ */
  .lp-flat {
    position: relative;
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--ink-2);
    max-width: none;
    margin: 0 auto;
  }
  .lp-flat h2:first-child { margin-top: 0; }
  .lp-flat p { margin: 0 0 18px; }
  .lp-flat p:last-child { margin-bottom: 0; }
  .lp-flat strong { color: var(--ink); font-weight: 600; }
  .lp-flat a {
    color: var(--gold-lo);
    text-decoration: underline;
    text-decoration-color: var(--line-gold);
    text-underline-offset: 3px;
  }
  /* Секция с lp-flat — редакционный манифест (блог, SEO) */
  .section:has(> .container > article.lp-flat) {
    background: var(--bg-2);
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--line);
    padding: clamp(32px, 4vw, 48px) 0;
  }
  :root[data-theme="night"] .section:has(> .container > article.lp-flat) { background: var(--bg-1); }

  /* h2 в lp-flat — курсивный editorial заголовок */
  .lp-flat h2 {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -.022em;
    color: var(--ink);
    margin: 0 0 clamp(18px, 2vw, 28px);
    padding-bottom: clamp(14px, 1.6vw, 22px);
    border-bottom: 1px solid var(--line);
  }
  .lp-flat h2:first-child { margin-top: 0; }

  /* Разделитель: первая .section после hero (.section--tight) */
  .section--tight + .section,
  .section--tight + .section.section--alt {
    border-top: 1px solid var(--line);
  }

  /* ============================================================
     POST-GRID / POST-CARD — архив статей блога
  ============================================================ */
  .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 22px;
  }
  .post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    color: inherit;
    transition: transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
  }
  .post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-3);
    border-color: var(--gold);
  }
  .post-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #1a1825;
    display: flex;
    align-items: flex-start;
    padding: 14px;
    background-size: cover;
    background-position: center;
    isolation: isolate;
  }
  /* Fallback gradients for cards without featured image */
  .post-card:nth-child(7n+1) .post-card__cover  { background-image: linear-gradient(180deg, rgba(45,42,82,.4) 0%, rgba(20,15,5,.78) 100%); }
  .post-card:nth-child(7n+2) .post-card__cover  { background-image: linear-gradient(180deg, rgba(74,70,130,.35) 0%, rgba(20,15,5,.72) 100%); }
  .post-card:nth-child(7n+3) .post-card__cover  { background-image: linear-gradient(180deg, rgba(20,15,5,.25) 0%, rgba(20,15,5,.78) 100%); }
  .post-card:nth-child(7n+4) .post-card__cover  { background-image: linear-gradient(180deg, rgba(45,42,82,.3) 0%, rgba(14,13,22,.78) 100%); }
  .post-card:nth-child(7n+5) .post-card__cover  { background-image: linear-gradient(180deg, rgba(74,70,130,.3) 0%, rgba(20,15,5,.75) 100%); }
  .post-card:nth-child(7n+6) .post-card__cover  { background-image: linear-gradient(180deg, rgba(27,26,40,.3) 0%, rgba(14,13,22,.78) 100%); }
  .post-card:nth-child(7n)   .post-card__cover  { background-image: linear-gradient(180deg, rgba(45,42,82,.35) 0%, rgba(20,15,5,.78) 100%); }
  .post-card__cover::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 18px;
    height: 18px;
    z-index: 2;
    border: 1px solid rgba(210, 166, 90, .6);
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-hi) 0 25%, transparent 28%);
    pointer-events: none;
  }
  .post-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 30%, transparent 35%, rgba(0, 0, 0, .5) 100%);
    pointer-events: none;
  }
  .post-card__cat {
    position: relative;
    z-index: 2;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gold-hi);
    background: rgba(20, 15, 5, .55);
    border: 1px solid rgba(210, 166, 90, .45);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    backdrop-filter: blur(6px);
  }
  :root[data-theme="night"] .post-card__cat { color: var(--gold); }
  .post-card__seal {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 2;
    width: 48px;
    height: 48px;
    color: rgba(232, 188, 114, .7);
  }
  .post-card__seal svg { width: 100%; height: 100%; }
  .post-card__body {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    flex: 1;
  }
  .post-card__title {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -.012em;
    color: var(--ink);
    font-weight: 400;
    margin-bottom: 10px;
    text-wrap: balance;
  }
  .post-card__excerpt {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-3);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .post-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    font-weight: 500;
  }
  :root[data-theme="night"] .post-card__more { color: var(--gold); }

  /* ============================================================
     PROSE--NARROW — широкий текстовый блок
  ============================================================ */
  .prose { max-width: none; font-size: 17px; line-height: 1.7; color: var(--ink-2); }
  .prose p + p { margin-top: 1em; }
  .prose h2 { font-size: clamp(28px, 3vw, 40px); margin: 2em 0 .6em; }
  .prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 14px;
    height: 1px;
    background: var(--gold);
  }
  .prose a { color: var(--gold-lo); border-bottom: 1px solid var(--line-gold); transition: all var(--t-fast) var(--ease); }
  .prose a:hover { color: var(--ink); border-color: var(--ink); }
  :root[data-theme="night"] .prose a { color: var(--gold); }

  .prose--narrow { max-width: 760px; margin: 0 auto; }
  /* Лендинги в .section--tight (energies и пр.): prose на всю ширину контейнера — единые края с hero/seals */
  .section--tight .prose--narrow { max-width: none; margin: 0; }
  .prose--narrow p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 16px; }
  .prose--narrow h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 2.8vw, 36px);
    line-height: 1.1;
    letter-spacing: -.022em;
    font-weight: 400;
    margin: 36px 0 18px;
    color: var(--ink);
    text-wrap: balance;
    position: relative;
    padding-left: 0;
  }
  .prose--narrow h2::before {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 18px;
    opacity: .7;
  }
  .prose--narrow a { color: var(--gold-lo); border-bottom: 1px solid currentColor; }
  :root[data-theme="night"] .prose--narrow a { color: var(--gold); }

  /* ============================================================
     FEATURES-GRID — объяснялка как работает (calc, compat)
  ============================================================ */
  .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
  }
  .feature {
    padding: 28px 26px;
    background: var(--bg-4);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  }
  .feature:hover {
    border-color: var(--line-gold);
    background: linear-gradient(180deg, rgba(185, 138, 62, .04), transparent 70%);
  }
  .feature__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--gold-lo);
    background: rgba(185, 138, 62, .08);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    font-variation-settings: "opsz" 144, "SOFT" 100;
  }
  :root[data-theme="night"] .feature__num { color: var(--gold); }
  .feature__title {
    font-family: var(--font-display);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 400;
    color: var(--ink);
    margin: 0;
  }
  .feature__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

  /* ============================================================
     ZONES-LIST — глоссарий зон матрицы (calculator.html)
  ============================================================ */
  .zones-list {
    display: flex;
    flex-direction: column;
    border-top: 2px solid var(--gold);
  }
  .zone-item {
    display: grid;
    grid-template-columns: clamp(40px, 5vw, 64px) 1fr;
    gap: 0 clamp(20px, 3vw, 40px);
    align-items: start;
    padding: clamp(18px, 2.2vw, 26px) 0;
    border-bottom: 1px solid var(--line);
  }
  .zone-item__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1;
    color: var(--gold-lo);
    font-variation-settings: "opsz" 144, "SOFT" 100;
    padding-top: 2px;
  }
  :root[data-theme="night"] .zone-item__num { color: var(--gold-hi); }
  .zone-item__content { display: flex; flex-direction: column; gap: 6px; }
  .zone-item__title {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.6vw, 20px);
    font-weight: 400;
    letter-spacing: -.012em;
    color: var(--ink);
    margin: 0;
  }
  .zone-item__text {
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0;
    text-wrap: pretty;
  }
  @media (max-width: 540px) {
    .zone-item { grid-template-columns: 36px 1fr; gap: 0 14px; }
  }

  /* ============================================================
     LP-BLOCK — нумерованный смысловой блок (тема/линия)
     Сетка: крупная цифра слева (2 ряда), заголовок+текст справа
  ============================================================ */
  .lp-block {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 48px);
    row-gap: 24px;
    align-items: start;
    width: 100%;
    padding: clamp(40px, 5vw, 64px) 0;
  }
  .lp-block__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(64px, 8vw, 128px);
    line-height: .9;
    letter-spacing: -.04em;
    color: var(--gold-lo);
    opacity: .8;
  }
  :root[data-theme="night"] .lp-block__num { color: var(--gold); }
  .lp-block__title {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.06;
    letter-spacing: -.022em;
    font-weight: 400;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
  }
  .lp-block__title em {
    font-style: normal;
    font-family: var(--font-serif);
    color: var(--gold-lo);
  }
  :root[data-theme="night"] .lp-block__title em { color: var(--gold); }
  .lp-block__body {
    grid-column: 2;
    grid-row: 2;
    font-size: 17px;
    line-height: 1.68;
    color: var(--ink-2);
  }
  .lp-block__body p { margin: 0 0 14px; }
  .lp-block__body p:last-child { margin-bottom: 0; }
  .lp-block__body p:first-child { font-size: 19px; line-height: 1.6; color: var(--ink); }
  .lp-block__body strong { color: var(--ink); font-weight: 600; }
  .lp-block__body a { color: var(--gold-lo); border-bottom: 1px solid var(--line-gold); }
  :root[data-theme="night"] .lp-block__body a { color: var(--gold); }

  .lp-block + .lp-block { border-top: 1px solid var(--line); }

  @media (max-width: 640px) {
    .lp-block { grid-template-columns: 1fr; row-gap: 14px; padding: 40px 0; }
    .lp-block__num { grid-column: 1; grid-row: auto; font-size: 64px; }
    .lp-block__title, .lp-block__body { grid-column: 1; grid-row: auto; }
  }

  /* ============================================================
     ART-LIST — простой список с золотой звёздочкой
  ============================================================ */
  .art-list { list-style: none; padding: 0; margin: 1rem 0; }
  .art-list li {
    position: relative;
    padding: 8px 0 8px 28px;
    border-bottom: 1px solid var(--line-soft);
    line-height: 1.55;
    color: var(--ink-2);
  }
  .art-list li:last-child { border-bottom: 0; }
  .art-list li::before {
    content: "✦";
    position: absolute;
    left: 4px;
    top: 8px;
    color: var(--gold-lo);
    font-style: italic;
    font-family: var(--font-display);
  }
  :root[data-theme="night"] .art-list li::before { color: var(--gold); }

  /* ============================================================
     TOPIC-ROW — строка-ссылка раздела «Темы»
  ============================================================ */
  .topic-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 60px;
    column-gap: clamp(24px, 3vw, 48px);
    align-items: center;
    padding: clamp(32px, 4vw, 52px) clamp(8px, 2vw, 24px);
    border-bottom: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: background .26s var(--ease), padding-left .26s var(--ease);
  }
  .topic-row:hover { background: linear-gradient(to right, rgba(185, 138, 62, .04), transparent 70%); }
  .topic-row:hover .topic-row__title { color: var(--gold-lo); }
  .topic-row:hover .topic-row__arrow { color: var(--gold-lo); transform: translateX(8px); }
  :root[data-theme="night"] .topic-row:hover .topic-row__title,
  :root[data-theme="night"] .topic-row:hover .topic-row__arrow { color: var(--gold); }
  .topic-row__roman {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 30px;
    line-height: .95;
    letter-spacing: -.04em;
    color: var(--gold-hi);
    background: linear-gradient(160deg, #2a2032, #4a3858);
    background-size: cover;
    overflow: hidden;
  }
  .topic-row__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 8px; }
  .topic-row__title {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 30px);
    line-height: 1.15;
    font-weight: 430;
    color: var(--ink);
    letter-spacing: -.018em;
    margin: 0;
    text-wrap: balance;
    transition: color .2s var(--ease);
  }
  .topic-row__tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--gold-lo);
    background: rgba(185, 138, 62, .08);
    border: 1px solid var(--line-gold);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    line-height: 1;
  }
  :root[data-theme="night"] .topic-row__tag { color: var(--gold-hi); }
  .topic-row__desc { font-size: 15.5px; line-height: 1.6; color: var(--ink-3); margin: 0; }
  .topic-row__arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: var(--font-text);
    font-size: 24px;
    color: var(--ink-3);
    transition: transform .26s var(--ease), color .26s var(--ease);
  }
  @media (max-width: 640px) {
    .topic-row { grid-template-columns: 60px minmax(0, 1fr); column-gap: 16px; padding: 24px 0; }
    .topic-row__roman { width: 56px; height: 56px; font-size: 24px; }
    .topic-row__arrow { display: none; }
  }

  /* ============================================================
     BENEFIT-TILES — «что даёт анализ» (иконка + текст)
  ============================================================ */
  .benefit-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
  }
  .benefit-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 32px 28px;
    background: var(--bg-4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  }
  .section--alt .benefit-tile { background: var(--bg); }
  .benefit-tile:hover {
    transform: translateY(-3px);
    border-color: var(--line-gold);
    box-shadow: 0 24px 56px -22px rgba(27, 26, 40, .18);
  }
  .benefit-tile::after {
    content: "";
    position: absolute;
    top: 14px;
    right: 14px;
    width: 14px;
    height: 14px;
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 0 25%, transparent 28%);
    opacity: .5;
  }
  .benefit-tile__icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: rgba(185, 138, 62, .08);
    border: 1px solid var(--line-gold);
    border-radius: 50%;
    color: var(--gold-lo);
    margin-bottom: 4px;
    transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
  }
  :root[data-theme="night"] .benefit-tile__icon { color: var(--gold-hi); }
  .benefit-tile:hover .benefit-tile__icon { background: var(--gold); color: var(--ink); border-color: var(--gold); }
  .benefit-tile__icon::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(185, 138, 62, .2);
    pointer-events: none;
  }
  .benefit-tile__icon svg { width: 26px; height: 26px; position: relative; z-index: 1; }
  .benefit-tile__title {
    font-family: var(--font-display);
    font-size: clamp(19px, 1.6vw, 22px);
    line-height: 1.18;
    letter-spacing: -.012em;
    font-weight: 430;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
  }
  .benefit-tile__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }

  /* ============================================================
     STEPS-ROW — «как это устроено», 4 шага
  ============================================================ */
  .steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(20px, 2.4vw, 32px);
  }
  .step-tile { display: flex; flex-direction: column; gap: 12px; }
  .step-tile__top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
  .step-tile__num {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(34px, 4vw, 46px);
    line-height: 1;
    letter-spacing: .02em;
    color: var(--gold-lo);
    flex-shrink: 0;
  }
  :root[data-theme="night"] .step-tile__num { color: var(--gold-hi); }
  .step-tile__line { flex: 1; height: 1px; background: linear-gradient(to right, var(--gold), transparent); opacity: .6; }
  .step-tile:last-child .step-tile__line { display: none; }
  .step-tile__title {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.014em;
    margin: 0;
  }
  .step-tile__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-3); margin: 0; }

  /* ============================================================
     SPHERES-EDITORIAL — «сферы анализа», крупные римские строки
  ============================================================ */
  .spheres-editorial {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    width: 100%;
    margin: 0;
  }
  .sphere-row {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: clamp(24px, 3vw, 48px);
    padding: clamp(20px, 2.5vw, 32px) 0;
    border-bottom: 1px solid var(--line);
    align-items: stretch;
    position: relative;
  }
  .sphere-row__roman {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(64px, 7.5vw, 104px);
    line-height: 1;
    color: var(--gold-lo);
    letter-spacing: -.04em;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    height: 100%;
  }
  :root[data-theme="night"] .sphere-row__roman { color: var(--gold-hi); }
  .sphere-row__title {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.08;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.022em;
    margin: 0 0 14px;
    text-wrap: balance;
  }
  .sphere-row__title em { font-style: normal; font-family: var(--font-serif); color: var(--gold-lo); }
  :root[data-theme="night"] .sphere-row__title em { color: var(--gold-hi); }
  .sphere-row__text { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 70ch; }
  .sphere-row__text + .sphere-row__text { margin-top: 16px; }

  /* ============================================================
     ADVICE-ROMAN — «что делать с отчётом», 2×2 с галочками
  ============================================================ */
  .advice-roman {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    margin: 0;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: clamp(28px, 4vw, 48px);
    position: relative;
  }
  .advice-roman::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(185, 138, 62, .2);
    border-radius: 8px;
    pointer-events: none;
  }
  .advice-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    padding: 18px 24px;
    align-items: start;
    position: relative;
    z-index: 1;
  }
  .advice-row:nth-child(n+3) { border-top: 1px solid var(--line); }
  .advice-row__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    background: var(--gold);
    border-radius: 50%;
    font-size: 0;
    position: relative;
    margin-top: 4px;
  }
  .advice-row__num::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    transform: rotate(-45deg) translate(1px, -2px);
  }
  .advice-row__title {
    grid-column: 2;
    grid-row: 1;
    font-family: var(--font-display);
    font-size: clamp(18px, 1.8vw, 21px);
    line-height: 1.2;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.012em;
    margin: 0;
  }
  .advice-row__text {
    grid-column: 2;
    grid-row: 2;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-3);
    margin: 6px 0 0;
    max-width: 38ch;
  }

  @media (max-width: 900px) {
    .steps-row { grid-template-columns: 1fr 1fr; }
    .advice-roman { grid-template-columns: 1fr; padding: 24px; }
    .advice-row:nth-child(2) { border-top: 1px solid var(--line); }
  }
  @media (max-width: 760px) {
    .sphere-row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
    .sphere-row__roman { font-size: 56px; height: auto; }
  }
  @media (max-width: 560px) {
    .steps-row { grid-template-columns: 1fr; }
  }

  /* ============================================================
     Utility-классы (из v6-pages)
  ============================================================ */
  .u-mt-2  { margin-top: 2rem; }
  .u-mt-14 { margin-top: 1.4rem; }
  .u-mb-2  { margin-bottom: 2rem; }
  .u-pt-2  { padding-top: 2rem; }
  .art-section--center { text-align: center; }
  .art-section--center-padded { text-align: center; padding: 32px 0 16px; }
  .art-disclaimer { margin-top: .6rem; color: var(--ink-3); font-size: 14px; }
  .art-note { opacity: .85; font-size: .95em; border-left: 3px solid var(--gold); padding-left: 1em; margin-top: 1em; }
  .cta-wrap { margin-top: 24px; }

  /* ============================================================
     Адаптив LP
  ============================================================ */
  @media (max-width: 980px) {
    .lp-hero__grid { grid-template-columns: 1fr; gap: 32px; }
    .lp-hero__art, .lp-hero__seal { order: -1; max-width: 280px; margin: 0 auto; }
    .lp-hero-art__frame { max-width: 320px; }
  }

  /* ============================================================
     ARC-CHIPS — теги арканов на страницах архетипов
  ============================================================ */
  .arc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
  }
  .arc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 8px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    font-size: 14px;
    font-family: var(--font-text);
    color: var(--ink);
    text-decoration: none;
    background: var(--bg-4);
    transition: border-color var(--t-fast) var(--ease),
                background var(--t-fast) var(--ease),
                transform var(--t-fast) var(--ease);
  }
  .arc-chip:hover {
    border-color: var(--line-gold);
    background: rgba(185, 138, 62, .06);
    transform: translateY(-1px);
  }
  .arc-chip__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 16px;
    line-height: 1;
    font-variation-settings: "opsz" 144, "SOFT" 100;
    flex-shrink: 0;
  }
  .arc-chip--primary {
    border-color: var(--line-gold);
    background: linear-gradient(to right, rgba(185,138,62,.06), transparent);
  }
  .arc-chip--primary .arc-chip__num {
    background: var(--gold);
    color: #1B1A28;
  }
  .arc-chip--supporting .arc-chip__num {
    background: var(--bg-2);
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .arc-chip--weak { opacity: .65; }
  .arc-chip--weak .arc-chip__num {
    background: var(--bg-2);
    color: var(--ink-3);
  }
  :root[data-theme="night"] .arc-chip--primary .arc-chip__num { background: var(--gold-hi); color: #1B1A28; }

  /* ============================================================
     ARCANA-LINE-GRID — 11-кол сетка арканов на line-страницах
     Визуально как seals-index на главной/energies.html
  ============================================================ */
  .arcana-line-grid {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(24px, 3vw, 36px);
  }
  .arcana-line-grid > a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 12px 6px 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--bg-4);
    text-align: center;
    color: var(--ink);
    text-decoration: none;
    min-height: clamp(90px, 11vw, 170px);
    overflow: hidden;
    transition: transform var(--t) var(--ease),
                border-color var(--t) var(--ease),
                box-shadow var(--t) var(--ease),
                background var(--t) var(--ease);
  }
  .arcana-line-grid > a::before,
  .arcana-line-grid > a::after { content: none; display: none; }
  .arcana-line-grid > a:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 12px 28px -10px rgba(185, 138, 62, .30);
    background: linear-gradient(180deg, rgba(185, 138, 62, .04), var(--bg-4));
    z-index: 2;
  }
  .arcana-line-grid > a .lp-card__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 3vw, 46px);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.025em;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
    flex: 1;
    display: flex;
    align-items: center;
  }
  .arcana-line-grid > a:hover .lp-card__num { color: var(--gold-lo); }
  :root[data-theme="night"] .arcana-line-grid > a:hover .lp-card__num { color: var(--gold-hi); }
  .arcana-line-grid > a .lp-card__title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(9px, .82vw, 11.5px);
    line-height: 1.2;
    color: var(--ink-3);
    text-align: center;
    max-width: 95%;
    font-weight: 500;
    margin: 0;
    padding: 0;
  }
  .arcana-line-grid > a .lp-card__text { display: none; }
  @media (max-width: 1100px) {
    .arcana-line-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  }
  @media (max-width: 600px) {
    .arcana-line-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }

}

  @keyframes m26spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .m26-rotor { transform-origin: 160px 160px; animation: m26spin 120s linear infinite; }


/* WordPress blog covers */
.post-card__cover {
  position: relative;
  overflow: hidden;
}
.post-card__cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.post-card__cover > *:not(.post-card__cover-image) {
  position: relative;
  z-index: 2;
}
.post-card__date {
  display: block;
  margin-top: .4rem;
  color: var(--muted);
  font-size: .9rem;
}
