/* Каталог банков — надстройка над binov-guide.css, переменные берём оттуда. */
.catalog-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px; margin: 28px 0; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 18%, transparent);
}
.catalog-facts div { padding: 12px 16px; }
.catalog-facts span { display: block; font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.catalog-facts strong { font-size: 17px; font-weight: 600; }

.table-wrap { overflow-x: auto; margin: 24px 0; }
.catalog-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.catalog-table th {
  text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  opacity: .6; padding: 8px 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 25%, transparent);
  white-space: nowrap;
}
.catalog-table td { padding: 7px 12px; border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent); }
.catalog-table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums; }

.pager { display: flex; align-items: center; gap: 18px; margin: 20px 0 32px; font-size: 14px; }
.pager span { opacity: .6; }

/* Свой контейнер: .related-grid из гайдов — сетка карточек с min-height,
   в ней список эмитентов разъезжается на огромные плитки. */
.catalog-section { margin: 34px 0 0; }
.catalog-section h2 { font-size: 19px; margin: 0 0 6px; }

.bank-list, .country-list {
  list-style: none; padding: 0; margin: 10px 0 0;
  display: grid; grid-template-columns: 1fr; gap: 0;
}
.bank-list--wide, .country-list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 32px;
}
.bank-list li, .country-list li {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 7px 0; min-height: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 10%, transparent);
}
.bank-list li a, .country-list li a {
  display: inline; min-height: 0; padding: 0; border: 0; background: none;
  border-radius: 0; flex-direction: row; font-size: 14px;
}
.bank-list span, .country-list span {
  font-size: 12px; opacity: .5; white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* Переход на главную — основная цель каталога. */
.catalog-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; margin: 26px 0; padding: 16px 20px;
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.catalog-cta strong { display: block; font-size: 15px; margin-bottom: 4px; }
.catalog-cta p { margin: 0; font-size: 13px; opacity: .72; max-width: 62ch; }
.catalog-cta .cta-button {
  flex: none; padding: 10px 20px; font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  border: 1px solid currentColor;
}
.catalog-cta .cta-button:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.catalog-cta--narrow { padding: 13px 20px; }
.catalog-cta--narrow p { display: none; }
.catalog-cta--narrow strong { margin-bottom: 0; }
.bin-link { text-decoration: none; border-bottom: 1px dotted; }

/* ── визуальные метки ─────────────────────────────────────────────── */
.flag {
  display: inline-block; vertical-align: -2px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35); margin-right: 4px;
}

/* Монограмма вместо логотипа: чужие товарные знаки не используем,
   покрытие при этом полное — 5 103 банка. */
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none; margin-right: 9px;
  border-radius: 5px; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: hsl(var(--h) 70% 88%);
  background: hsl(var(--h) 42% 26%);
  box-shadow: inset 0 0 0 1px hsl(var(--h) 45% 38% / .8);
}
h1.with-mark, h1.with-flag { display: flex; align-items: center; gap: 2px; }
h1.with-mark .monogram { width: 42px; height: 42px; font-size: 16px; border-radius: 9px; margin-right: 14px; }
h1.with-flag .flag { width: 34px; height: 24px; margin-right: 14px; }
.bank-list li a { display: inline-flex; align-items: center; }

/* Состав портфеля эмитента — не украшение, а данные из той же таблицы. */
.mix-block {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px 34px; margin: 22px 0 30px;
}
.mix-title {
  display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  opacity: .55; margin-bottom: 9px;
}
.mix { display: flex; height: 8px; overflow: hidden; border-radius: 2px;
  background: color-mix(in srgb, currentColor 10%, transparent); }
.mix-part { display: block; height: 100%; }
.mix-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 9px; font-size: 12px; }
.mix-key { opacity: .78; }
.mix-key b { font-weight: 600; font-variant-numeric: tabular-nums; }
.mix-key::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  margin-right: 6px; vertical-align: 0;
}
.mix-part.mix-1 { background: #4f7fd0; }
.mix-key.mix-1::before { background: #4f7fd0; }
.mix-part.mix-2 { background: #d09a4f; }
.mix-key.mix-2::before { background: #d09a4f; }
.mix-part.mix-3 { background: #59a06e; }
.mix-key.mix-3::before { background: #59a06e; }
.mix-part.mix-4 { background: #a06fa8; }
.mix-key.mix-4::before { background: #a06fa8; }
.mix-part.mix-5 { background: #b8654f; }
.mix-key.mix-5::before { background: #b8654f; }
.mix-part.mix-6 { background: #6c7480; }
.mix-key.mix-6::before { background: #6c7480; }
