/* Раздел «Статьи» (/stati/): поверх legal.css — лид, карточки, FAQ, призыв в конце.
   Цвета и шрифты — токены gateway.css. */

.st-crumbs { margin: 0 0 18px; font-size: .8125rem; color: var(--muted); }
.st-crumbs a { color: var(--muted); text-decoration: none; }
.st-crumbs a:hover { color: var(--gold-light); }
.st-title { max-width: 22ch; }
.st-lead { margin: 18px 0 0; max-width: 40rem; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; color: var(--text); }

.st-table td { white-space: normal; }

.st-faq { display: grid; gap: 10px; margin: 4px 0 16px; }
.st-faq > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); }
.st-faq dt { margin: 0 0 6px; font-weight: 700; color: var(--text); line-height: 1.4; }
.st-faq dd { margin: 0; font-size: .9375rem; line-height: 1.6; color: rgba(242, 239, 232, .82); }
.st-faq a { color: var(--gold-light); }

.st-cta { margin: clamp(36px, 4vw, 56px) 0 0; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: linear-gradient(160deg, rgba(212, 175, 55, .1), rgba(212, 175, 55, .02) 60%); }
.st-cta__h { margin: 0 0 8px; font: 700 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.25 var(--font-display); letter-spacing: -.01em; }
.st-cta__p { margin: 0 0 18px; line-height: 1.6; color: rgba(242, 239, 232, .82); }
.st-cta__row { display: flex; flex-wrap: wrap; gap: 10px; }
.st-cta__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; text-decoration: none; color: #0b0904; background: linear-gradient(165deg, #ffe566, #d4af37 55%, #b8860b); transition: transform .2s var(--ease), box-shadow .2s; }
.lg-doc .st-cta__btn { color: #0b0904; text-decoration: none; }
.st-cta__btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px var(--gold-glow); }
.lg-doc .st-cta__btn--ghost, .st-cta__btn--ghost { color: var(--gold-light); background: transparent; border: 1px solid var(--line-strong); }
.st-cta__btn:focus-visible, .st-card a:focus-visible, .st-rel a:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.st-rel { margin-top: 40px; }
.st-rel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.st-rel a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--text); font-weight: 600; line-height: 1.4; transition: border-color .2s, background .2s; }
.st-rel a:hover { border-color: var(--line-strong); background: rgba(212, 175, 55, .05); }
.st-tag { font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }

.st-group { padding: clamp(28px, 4vw, 48px) 0 0; }
.st-group:last-of-type { padding-bottom: clamp(48px, 7vw, 96px); }
.st-group__sub { margin: -6px 0 18px; }
.st-cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.st-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--bg-card); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s var(--ease); }
.st-card a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.st-card__h { font: 700 1.125rem/1.3 var(--font-display); letter-spacing: -.01em; }
.st-card__p { font-size: .9375rem; line-height: 1.55; color: rgba(242, 239, 232, .78); }
.st-card__m { margin-top: auto; font-size: .8125rem; color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .st-cta__btn, .st-card a { transition: none; }
  .st-cta__btn:hover, .st-card a:hover { transform: none; }
}
@media (max-width: 560px) {
  .st-cta__btn { width: 100%; justify-content: center; }
}

/* Заголовок без автопереносов; таблица на телефоне — карточками */
.st-title { hyphens: manual; }
@media (max-width: 560px) {
  .lg-table.st-table { border: 0; }
  .st-table table, .st-table tbody, .st-table tr, .st-table th, .st-table td { display: block; width: 100%; }
  .st-table thead { display: none; }
  .st-table tbody { display: grid; gap: 10px; }
  .st-table tr { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-card); }
  .st-table tbody th, .st-table td { padding: 0; border: 0; }
  .st-table tbody th { margin-bottom: 6px; font-size: .9375rem; color: var(--gold-light); }
  .st-table td { font-size: .9375rem; color: rgba(242, 239, 232, .85); }
  .st-table td + td { margin-top: 6px; }
  .st-table td::before { content: attr(data-label) " — "; color: var(--muted); }
  .st-table td:nth-child(2) { font-weight: 700; color: var(--text); }
}
/* Переключатель RU/UZ в шапке статей (2026-10-29) */
.st-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; transition: color .25s var(--ease), background .25s var(--ease); }
.st-lang a:hover { color: var(--text); }
.st-lang a[aria-current="true"] { background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #0a0a0a; }
@media (max-width: 760px) { .st-lang a { min-width: 40px; padding: 0 10px; } }
