/* ============================================================
   Внутренние страницы — общий «хром» + шаблон «Энергия»
   Слой pages. Используется на energy-1…22 и (частично)
   на всех внутренних страницах: крошки, eyebrow, CTA-блок.
   ============================================================ */

@layer pages {

  /* ---------- Базовая внутренняя секция ---------- */
  .section--alt { background: var(--bg-1); }
  .section--alt .lp-card { background: var(--bg); }

  /* ---------- Хлебные крошки ---------- */
  .crumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-3);
  }
  .crumbs a {
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }
  .crumbs a:hover { color: var(--gold-lo); border-bottom-color: currentColor; }
  .crumbs .sep { opacity: .4; color: var(--ink-4); }
  .crumbs .here { color: var(--gold-lo); font-weight: 500; }
  :root[data-theme="night"] .crumbs .here,
  :root[data-theme="night"] .crumbs a:hover { color: var(--gold); }

  /* ---------- Eyebrow «восковая печать» ---------- */
  .eyebrow--gold {
    color: var(--gold-lo);
    font-weight: 600;
    padding: 5px 10px 5px 14px;
    border-radius: var(--r-pill);
    background: rgba(185, 138, 62, .07);
    border: 1px solid var(--line-gold);
  }
  .eyebrow--gold::before { display: none; }
  .eyebrow__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(185, 138, 62, .18);
  }
  :root[data-theme="night"] .eyebrow--gold { color: var(--gold-hi); }

  /* ============================================================
     ARC-HERO — обложка страницы аркана
  ============================================================ */
  .arc-hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
  .arc-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 65% 70% at 85% 22%, rgba(185, 138, 62, .20), transparent 56%),
      radial-gradient(ellipse 42% 55% at 6% 88%, rgba(45, 42, 82, .10), transparent 62%);
  }
  :root[data-theme="night"] .arc-hero::before {
    background:
      radial-gradient(ellipse 65% 70% at 85% 22%, rgba(210, 166, 90, .24), transparent 56%),
      radial-gradient(ellipse 42% 55% at 6% 88%, rgba(176, 174, 224, .12), transparent 62%);
  }
  .arc-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: clamp(160px, 20vw, 280px);
    height: 1px;
    opacity: .6;
    background: linear-gradient(to right, transparent, var(--line-gold) 50%, transparent);
  }
  .arc-hero .container { position: relative; z-index: 2; }
  .arc-hero .crumbs { margin-bottom: 24px; }

  .arc-hero__grid {
    display: grid;
    grid-template-columns: 1fr minmax(0, 400px);
    gap: clamp(40px, 5vw, 64px);
    align-items: start;
  }
  .arc-hero__copy { display: grid; gap: 22px; }
  .arc-hero__title {
    font-family: var(--font-display);
    font-size: clamp(50px, 6.4vw, 96px);
    line-height: .96;
    letter-spacing: -.04em;
    font-weight: 360;
    margin: 0;
    color: var(--ink);
    text-wrap: balance;
    font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
  }
  .arc-hero__title em {
    font-family: var(--font-serif);
    font-style: normal;
    color: var(--gold-lo);
    font-weight: 500;
  }
  :root[data-theme="night"] .arc-hero__title em { color: var(--gold); }
  .arc-hero__lead {
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 580px;
    margin: 0;
  }
  .arc-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
  .arc-hero__seal { display: flex; justify-content: center; }

  /* ---------- Карточка-печать ---------- */
  .seal-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 4;
    padding: 32px 28px;
    background: radial-gradient(circle at 50% 30%, rgba(185, 138, 62, .06), transparent 60%), var(--bg-1);
    border: 1px solid var(--line-gold);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-3);
    color: var(--gold-lo);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  }
  .seal-card:hover { transform: translateY(-3px); box-shadow: 0 32px 64px -22px rgba(27, 26, 40, .18); }
  .seal-card::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid var(--line-gold);
    border-radius: 8px;
    pointer-events: none;
  }
  .seal-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(185, 138, 62, .22);
    border-radius: 6px;
    pointer-events: none;
  }
  :root[data-theme="night"] .seal-card {
    background: radial-gradient(circle at 50% 30%, rgba(210, 166, 90, .06), transparent 60%), var(--bg-1);
    border-color: rgba(210, 166, 90, .25);
    color: var(--gold);
  }
  .seal-card__top,
  .seal-card__bot {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    letter-spacing: .14em;
    color: var(--gold-lo);
    text-align: center;
    position: relative;
    z-index: 1;
  }
  :root[data-theme="night"] .seal-card__top,
  :root[data-theme="night"] .seal-card__bot { color: var(--gold); }
  .seal-card__divider {
    width: 60%;
    height: 1px;
    margin: 14px 0;
    background: linear-gradient(to right, transparent, var(--line-gold), transparent);
    position: relative;
    z-index: 1;
  }
  .seal-card__emblem {
    flex: 1;
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1;
    z-index: 1;
  }
  .seal-card__digit {
    position: relative;
    z-index: 2;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(56px, 9vw, 100px);
    line-height: 1;
    color: var(--ink);
    letter-spacing: -.02em;
    font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  }
  :root[data-theme="night"] .seal-card__digit { color: var(--bg); }
  .seal-card__ornament {
    position: absolute;
    inset: 4%;
    width: 92%;
    height: 92%;
    color: var(--gold);
    opacity: .55;
    pointer-events: none;
  }
  :root[data-theme="night"] .seal-card__ornament { color: var(--gold-hi); opacity: .65; }
  .seal-card__name {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.01em;
    text-align: center;
    margin-bottom: 4px;
  }
  .seal-card__tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--ink-3);
    text-align: center;
    text-transform: uppercase;
    font-style: normal;
  }

  /* ============================================================
     ARC-BODY — сайдбар 22 арканов + статья
  ============================================================ */
  .arc-body { 
    padding: 64px 0 88px; 
    background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg) 60%);
  }
  .arc-body__layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }

  .arc-side {
    position: relative;
    align-self: stretch;
  }
  .arc-side__sticky {
    position: sticky;
    top: 88px;
    padding-right: 20px;
    border-right: 1px solid var(--line);
  }
  .arc-side__label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-lo);
    margin-bottom: 14px;
  }
  :root[data-theme="night"] .arc-side__label { color: var(--gold); }

  .arcana-nav__list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 6px;
  }
  .arcana-nav__item {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 8px 10px;
    font-size: 14px;
    color: var(--ink-2);
    border-radius: var(--r-sm);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  .arcana-nav__item:hover { background: var(--bg-2); color: var(--ink); }
  .arcana-nav__item-roman {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 13px;
    color: var(--gold-lo);
    flex-shrink: 0;
    min-width: 36px;
    letter-spacing: .04em;
  }
  :root[data-theme="night"] .arcana-nav__item-roman { color: var(--gold); }
  .arcana-nav__item-name { line-height: 1.3; }
  .arcana-nav__item.is-current {
    background: rgba(185, 138, 62, .08);
    color: var(--ink);
    box-shadow: inset 2px 0 0 var(--gold);
  }
  .arcana-nav__item.is-current .arcana-nav__item-roman { color: var(--ink); }

  /* ---------- Статья ---------- */
  .arc-article { max-width: 760px; }
  .arc-article__lead {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.8vw, 24px);
    line-height: 1.5;
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 32px;
    padding-left: 18px;
    border-left: 2px solid var(--gold);
    font-variation-settings: "opsz" 144, "SOFT" 0, "WONK" 0;
    text-wrap: pretty;
  }
  .arc-article__lead .accent {
    color: var(--gold-lo);
    font-style: italic;
    font-weight: 500;
    font-variation-settings: "opsz" 144, "SOFT" 100;
  }
  :root[data-theme="night"] .arc-article__lead .accent { color: var(--gold); }

  .arc-article__content { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
  .arc-article__content h2 {
    font-family: var(--font-display);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.15;
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -.018em;
    margin: 56px 0 18px;
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
  }
  .arc-article__content h2:first-child { margin-top: 16px; }
  .arc-article__content .art-num { display: none; }
  .arc-article__content p { margin: 0 0 18px; }
  .arc-article__content p:last-child { margin-bottom: 0; }

  /* ---------- Цитата — тёплая, янтарная, в стиле сайта ---------- */
  .pull-quote {
    border: none;
    border-left: 3px solid var(--gold-hi);
    padding: 24px 32px 24px 28px;
    margin: 40px 0;
    font-family: var(--font-display);
    font-style: normal;
    font-size: clamp(19px, 1.8vw, 24px);
    line-height: 1.55;
    color: var(--ink);
    font-variation-settings: "opsz" 144, "SOFT" 40, "WONK" 0;
    background: linear-gradient(135deg,
      rgba(185, 138, 62, .10) 0%,
      rgba(185, 138, 62, .04) 60%,
      transparent 100%),
      var(--bg-4);
    border-radius: var(--r-md);
    box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow-1);
    position: relative;
    overflow: hidden;
  }
  .pull-quote::after {
    content: "«»";
    position: absolute;
    right: 18px;
    bottom: -18px;
    font-family: var(--font-serif);
    font-size: 88px;
    line-height: 1;
    color: var(--gold);
    opacity: .10;
    letter-spacing: -6px;
    pointer-events: none;
  }
  :root[data-theme="night"] .pull-quote {
    background: linear-gradient(135deg,
      rgba(210, 166, 90, .12) 0%,
      rgba(210, 166, 90, .04) 60%,
      transparent 100%),
      var(--bg-2);
    color: var(--ink);
    border-left-color: var(--gold);
  }

  /* ---------- Плюс / минус ---------- */
  .arcana-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 40px 0;
  }
  .arcana-split__side {
    background: var(--bg-4);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 24px 26px;
    position: relative;
    overflow: hidden;
  }
  .arcana-split__side::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--r-md) var(--r-md) 0 0;
  }
  .arcana-split__side:first-child { border-top-color: #4D7A3C; }
  .arcana-split__side:first-child::before { background: linear-gradient(to right, #4D7A3C, #7CB85A); }
  .arcana-split__side:last-child  { border-top-color: var(--rose); }
  .arcana-split__side:last-child::before  { background: var(--rose); }
  .arcana-split__head {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
  .arcana-split__head--plus { color: #4D7A3C; }
  .arcana-split__head--minus { color: var(--rose); }
  :root[data-theme="night"] .arcana-split__head--plus { color: #93C77E; }
  :root[data-theme="night"] .arcana-split__head--minus { color: #E89C97; }
  .arcana-split__side p { margin: 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }

  /* ---------- Карточка-факт ---------- */
  .arcana-fc {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 26px 28px;
    margin: 36px 0;
    background: var(--bg-1);
    border: 1px solid var(--line-gold);
    border-left: 3px solid var(--gold);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    position: relative;
    overflow: hidden;
  }
  .arcana-fc::after {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,138,62,.10), transparent 70%);
    pointer-events: none;
  }
  .arcana-fc__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 32px;
    color: var(--gold);
    line-height: 1;
    flex-shrink: 0;
  }
  .arcana-fc__text { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
  .arcana-fc__text strong {
    display: block;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 19px;
    color: var(--ink);
    margin-bottom: 4px;
    font-variation-settings: "opsz" 144, "SOFT" 100;
  }

  /* ---------- Оглавление ---------- */
  .toc-chips { margin: 32px 0; }
  .toc-chip {
    display: grid;
    grid-template-columns: 36px 1fr 18px;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    line-height: 1.4;
    color: var(--ink);
    position: relative;
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  }
  .toc-chip::after {
    content: "→";
    color: var(--ink-3);
    font-size: 14px;
    transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  }
  .toc-chip:hover { color: var(--gold-lo); border-color: var(--line-gold); }
  .toc-chip:hover::after { transform: translateX(4px); color: var(--gold-lo); }
  :root[data-theme="night"] .toc-chip:hover,
  :root[data-theme="night"] .toc-chip:hover::after { color: var(--gold); }
  .toc-chip__num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 18px;
    color: var(--gold-lo);
    letter-spacing: -.02em;
    font-weight: 400;
    font-variation-settings: "opsz" 144, "SOFT" 100;
  }
  :root[data-theme="night"] .toc-chip__num { color: var(--gold); }

  /* ============================================================
     PREV / NEXT — две карточки навигации по арканам
     (раньше grid не задавался — исправлено: честный 2-кол. grid)
  ============================================================ */
  .prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .prev-next__link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 26px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    color: var(--ink);
    transition: transform .25s var(--ease), background .25s var(--ease),
                border-color .25s var(--ease), box-shadow .25s var(--ease);
  }
  .prev-next__link:hover {
    background: var(--bg-4);
    border-color: var(--line-gold);
    transform: translateY(-3px);
    box-shadow: 0 22px 48px -22px rgba(27, 26, 40, .18);
  }
  .prev-next__link--next { justify-content: flex-end; text-align: right; }
  .prev-next__link--next > div { order: 1; }
  .prev-next__link--next .prev-next__roman { order: 2; }
  .prev-next__roman {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 36px;
    color: var(--gold-lo);
    line-height: 1;
    letter-spacing: .02em;
    flex-shrink: 0;
  }
  :root[data-theme="night"] .prev-next__roman { color: var(--gold); }
  .prev-next__lbl {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 6px;
  }
  .prev-next__name {
    font-family: var(--font-display);
    font-size: 22px;
    letter-spacing: -.01em;
    color: var(--ink);
  }

  /* ============================================================
     SECTION--INK — финальный CTA-блок (центрированная колонка)
  ============================================================ */
  .section--ink {
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 60%, var(--bg-1) 100%);
    border-top: 1px solid var(--line-gold);
    border-bottom: 1px solid var(--line);
    padding: clamp(64px, 8vw, 96px) 0;
    position: relative;
    overflow: hidden;
  }
  .section--ink::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse 70% 60% at 50% 0%, rgba(185, 138, 62, .14), transparent 58%),
      radial-gradient(ellipse 40% 60% at 12% 50%, rgba(45, 42, 82, .05), transparent 60%),
      radial-gradient(ellipse 35% 40% at 90% 85%, rgba(185, 138, 62, .07), transparent 55%);
  }
  :root[data-theme="night"] .section--ink::before {
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(210, 166, 90, .16), transparent 58%);
  }
  .section--ink .container.center { position: relative; z-index: 1; }

  .section--ink .container.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
  }

  .section--ink .ink-rule {
    display: flex;
    align-items: center;
    gap: 0;
    width: min(100%, 600px);
    margin: 28px auto;
    height: auto;
    background: none;
    border: none;
    position: static;
  }
  .section--ink .ink-rule::before,
  .section--ink .ink-rule::after {
    content: "";
    flex: 1;
    height: 1px;
  }
  .section--ink .ink-rule::before {
    background: linear-gradient(to right, transparent, rgba(185, 138, 62, .55));
  }
  .section--ink .ink-rule::after {
    background: linear-gradient(to left, transparent, rgba(185, 138, 62, .55));
  }
  .section--ink .ink-rule:last-child { margin: 28px auto 0; }
  :root[data-theme="night"] .section--ink .ink-rule::before {
    background: linear-gradient(to right, transparent, rgba(210, 166, 90, .5));
  }
  :root[data-theme="night"] .section--ink .ink-rule::after {
    background: linear-gradient(to left, transparent, rgba(210, 166, 90, .5));
  }
  .section--ink .ink-rule__star {
    flex-shrink: 0;
    position: static;
    transform: none;
    left: auto;
    top: auto;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-1);
    border: 1px solid var(--line-gold);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    line-height: 1;
    color: var(--gold-lo);
  }
  :root[data-theme="night"] .section--ink .ink-rule__star {
    background: var(--bg-2);
    color: var(--gold);
    border-color: rgba(210, 166, 90, .4);
  }

  .section--ink .eyebrow {
    background: none;
    border: none;
    padding: 0;
    margin: 0 0 22px;
    color: var(--gold-lo);
    letter-spacing: .2em;
  }
  .section--ink .eyebrow::before { display: none; }
  :root[data-theme="night"] .section--ink .eyebrow { color: var(--gold-hi); }

  .section--ink .ink-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 4.8vw, 64px);
    line-height: 1.04;
    letter-spacing: -.028em;
    font-weight: 380;
    color: var(--ink);
    margin: 0 0 22px;
    max-width: 26ch;
    text-wrap: balance;
  }
  .section--ink .ink-title em {
    font-family: var(--font-serif);
    font-style: normal;
    color: var(--gold-lo);
    font-weight: 500;
  }
  :root[data-theme="night"] .section--ink .ink-title em { color: var(--gold-hi); }
  .section--ink .ink-sub {
    color: var(--ink-2);
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.55;
    max-width: 720px;
    margin: 0 auto 36px;
  }
  .section--ink .btn {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
    padding: 18px 32px;
    font-weight: 600;
    box-shadow: 0 14px 32px -12px rgba(20, 15, 5, .4);
  }
  .section--ink .btn:hover {
    background: var(--gold);
    color: #1B1A28;
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
  }

  /* ============================================================
     Адаптив внутренних страниц
  ============================================================ */
  @media (max-width: 1100px) {
    .arc-hero__grid,
    .arc-body__layout { grid-template-columns: 1fr; gap: 32px; }
    .arc-hero__seal { order: -1; max-width: 320px; margin: 0 auto; }
    .arc-side { order: -1; }
    .arc-side__sticky { position: static; padding-right: 0; border-right: none; }
    .arcana-nav__list {
      flex-direction: row;
      flex-wrap: wrap;
      max-height: none;
      overflow: visible;
    }
    .arcana-nav__item { flex: 1 1 auto; min-width: 120px; }
  }

  @media (max-width: 720px) {
    .arcana-split { grid-template-columns: 1fr; }
  }

  @media (max-width: 640px) {
    .prev-next { grid-template-columns: 1fr; }
  }

  /* ============================================================
     TG-CARD — карточка Telegram-бота (telegram-bot.html)
  ============================================================ */
  .tg-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(48px, 6vw, 80px);
    align-items: center;
    padding: clamp(40px, 5vw, 60px) clamp(32px, 4vw, 56px);
    background: var(--bg-4);
    border: 1px solid var(--line-gold);
    border-radius: var(--r-lg);
  }
  .tg-card__left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 24px);
  }
  .tg-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 10px;
    background: var(--bg);
    border: 1px solid var(--line-gold);
    border-radius: 999px;
  }
  .tg-card__badge svg { color: var(--gold-lo); flex-shrink: 0; }
  :root[data-theme="night"] .tg-card__badge svg { color: var(--gold); }
  .tg-card__handle {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: .06em;
    color: var(--gold-lo);
    margin: 0;
  }
  :root[data-theme="night"] .tg-card__handle { color: var(--gold-hi); }
  .tg-card__status {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 400;
    letter-spacing: -.018em;
    line-height: 1.15;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
  }
  .tg-card__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
  .tg-card__hint {
    font-size: 13px;
    color: var(--ink-3);
    margin: 0;
    line-height: 1.5;
  }
  .tg-card__note {
    font-size: 15.5px;
    color: var(--ink-2);
    line-height: 1.72;
    margin: 0;
    text-wrap: pretty;
  }
  .tg-card__note strong { color: var(--ink); }
  .tg-card__note a {
    color: var(--gold-lo);
    border-bottom: 1px solid var(--line-gold);
  }
  :root[data-theme="night"] .tg-card__note a { color: var(--gold); }
  @media (max-width: 720px) {
    .tg-card { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  }

  /* ============================================================
     CMD-TABLE — таблица команд бота (telegram-bot.html)
  ============================================================ */
  .cmd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15.5px;
    line-height: 1.55;
  }
  .cmd-table thead { background: var(--bg-2); }
  :root[data-theme="night"] .cmd-table thead { background: var(--bg-1); }
  .cmd-table th {
    padding: 11px 16px;
    text-align: left;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-3);
    border-bottom: 2px solid var(--line-gold);
  }
  .cmd-table td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-2);
    vertical-align: middle;
  }
  .cmd-table tr:last-child td { border-bottom: none; }
  .cmd-table td:first-child {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--gold-lo);
    white-space: nowrap;
    width: 1%;
  }
  :root[data-theme="night"] .cmd-table td:first-child { color: var(--gold-hi); }
  @media (max-width: 540px) {
    .cmd-table { font-size: 14px; }
    .cmd-table th, .cmd-table td { padding: 9px 12px; }
  }


}