/* Hallmark · shape: Index-First · genre: modern-minimal · theme: Coral (by request, the home page's system: home.css tokens) · job: check which documents the base covers, the register right under the head · redesign: full
 * hero: Band (head left, totals right, on the home desk) · nav: edge-aligned (as home, shared partial) · footer: letter close (as home, shared partial) · imagery: none, the register is the page · signature: the two totals set large on the desk over the full register
 * axes: light/grotesk-sans/warm · posture: restrained · brand: OHS (project tokens: graphite ink, green signal, Golos Text, Source Serif 4) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R5 V3 · weakest: V, the page shares nav, desk, the index table and the footer with the home page on purpose (one site, one system); the totals band is its own */
/* Hallmark · waive 44c · the band ends near 420px and the totals sit apart from the head · index-first: the register itself starts on the first screen, the totals read as a column of their own */
/* Hallmark · waive 77 · hero band, the register and the site footer · a catalogue page: the visitor came for the list, not for sections */
/* Hallmark · dropped logo-mark.svg · the nav is the home page's own, its logo.svg carries the mark */
/* Hallmark · reworded "Документов: N · вопросов: M" to two labelled totals · 63 names the dot-joined meta string */

/* «База вопросов» стоит на системе главной (home.css): шапка, стол героя, таблица-указатель и подвал общие. Здесь только свои правила. */

/* Полоса стола: заголовок слева, два итога справа. Не на весь экран — главное ниже, в таблице. */
.catalog__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--space-2xl); align-items: end; padding-block: var(--space-2xl) var(--space-3xl); }
.catalog__text { display: grid; gap: var(--space-lg); justify-items: start; }
.catalog__text h1 { text-wrap: balance; }
.catalog__text .lead { max-width: 46ch; }

/* Итоги базы — крупные цифры, как цена на доске главной. */
/* Колонки по ширине числа и число в одну строку: «1 203» не должно ломаться на «1» и «203». */
.totals { display: grid; grid-template-columns: max-content max-content; justify-content: space-between; column-gap: var(--space-xl); margin: 0; }
.totals > div { display: grid; gap: var(--space-xs); padding-top: var(--space-md); border-top: 1px solid var(--color-rule-2); }
.totals dt { font-size: var(--text-sm); color: var(--color-muted); }
.totals dd { margin: 0; white-space: nowrap; font-size: clamp(3.5rem, 5vw + 1rem, 6.5rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.9; }

/* Указатель документов: таблица главной, но строки равны — первая не крупнее остальных. */
.register { margin-top: var(--space-2xl); }
.register__table { margin-top: 0; }
.register__table tbody tr:first-child td { font-size: var(--text-md); }
.register__table th.num { text-align: right; }
.register__table td:first-child { padding-right: var(--space-xl); }
.register__doc { display: block; font-weight: 500; line-height: 1.35; overflow-wrap: break-word; }
.register__act { display: block; margin-top: var(--space-2xs); font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); }
.register__empty { padding-block: var(--space-xl); color: var(--color-ink-2); }

@media (max-width: 60rem) {
  .catalog__in { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); padding-block: var(--space-xl) var(--space-2xl); }
  .totals { justify-content: start; column-gap: var(--space-2xl); }
}
@media (max-width: 40rem) {
  .catalog__text h1 { font-size: var(--text-display-s); }
  .totals { column-gap: var(--space-lg); }
  /* Строка документа на телефоне: название во всю ширину, под ним три подписанных числа в ряд. */
  .register__table tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-sm); padding-block: var(--space-md); }
  .register__table td:first-child { padding-right: 0; padding-bottom: var(--space-xs); }
  .register__table .num::before { content: attr(data-label); display: block; font-size: var(--text-xs); }
}
