/*
 * Страницы банков и брендов (bank-brands-1126, 26.11.2026): /usdt-to-hsbc/, /usdt-to-santander/ …
 * Разметка — tools/r26/pages/_bnk-kit.mjs, приставка bnk-.
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"] (токены меняются
 * сами). Телефон: 1199 / 899 / 719 / 379 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.bnk .r-wrap :is(h1, h2) { text-wrap: balance; }
.bnk-top { padding-top: 12px; }
.bnk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bnk bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.bnk .r-btn svg { flex: none; }

/* Логотипы — как в приложении: квадрат со скруглением, белая подложка под прозрачные края. */
.bnk-logo { display: block; flex: none; border-radius: 12px; background: #fff; object-fit: contain; box-shadow: 0 0 0 1px var(--r-line-2); }
/* methods-1128: логотипа нет в приложении — значок вида способа (как на страницах стран). */
.bnk-logo--ico { display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-brand-2); }

/* ══ Первый экран ═════════════════════════════════════════════════════════ */
.bnk-hero { grid-template-columns: 1.15fr 0.85fr; }
.bnk-id { display: flex; align-items: center; gap: 14px; }
.bnk-id .bnk-logo { width: 56px; height: 56px; border-radius: 16px; }
.bnk-answer { max-width: 64ch; }
.bnk-chips { padding-top: 4px; }
.bnk-hero-art { min-width: 0; }
/* .r-hero-art img (r26.css) растягивает картинку первого экрана до 260 px — у макета списка свои размеры. */
.bnk-hero-art img.bnk-flag { width: 24px; height: 18px; }
.bnk-hero-art img.bnk-logo { width: 40px; height: 40px; }
.bnk-mock {
  width: 100%; max-width: 380px; box-sizing: border-box; padding: 18px; border-radius: 24px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-2); box-shadow: var(--r-pop-shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.bnk-mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 4px; }
.bnk-mock-top > b { font-size: 17px; font-weight: 800; color: var(--r-text); white-space: nowrap; }
.bnk-mock-c { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); font-size: 12.5px; font-weight: 700; color: var(--r-text-2); min-width: 0; }
.bnk-mock-c span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnk-mock-search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 14px; background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-muted); font-size: 14px; font-weight: 700; }
.bnk-mock-search svg { flex: none; color: var(--r-faint); }
.bnk-mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--r-surface); border: 1px solid var(--r-line); }
.bnk-mock-row--on { border-color: var(--r-brand-2); background: var(--r-brand-tint); }
.bnk-mock-row .bnk-logo { width: 40px; height: 40px; }
.bnk-mock-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.bnk-mock-tt b { font-size: 14.5px; font-weight: 800; color: var(--r-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnk-mock-tt > span { font-size: 12px; color: var(--r-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnk-mock-eta { flex: none; height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.bnk-mock-eta--fast { color: var(--r-green); background: var(--r-green-tint); }
.bnk-mock-eta--days { color: var(--r-text-2); background: var(--r-fill-3); }

/* ══ Флаги ════════════════════════════════════════════════════════════════ */
.bnk-flag { display: inline-block; flex: none; width: 24px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--r-line-2); }
.bnk-flag--ww { display: inline-grid; place-items: center; width: 24px; height: 18px; color: var(--r-link); box-shadow: none; }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.bnk-tbl-wrap {
  overflow-x: auto; border-radius: 24px; border: 1px solid var(--r-line); background: var(--r-surface);
  box-shadow: var(--r-block-shadow); -webkit-overflow-scrolling: touch;
}
.bnk-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.bnk-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.bnk-tbl :is(th, td) { padding: 14px 18px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.bnk-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); white-space: nowrap; }
.bnk-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.bnk-tbl tbody th { font-weight: 800; color: var(--r-text); }
.bnk-tbl td { color: var(--r-text-2); }
.bnk-tbl tbody tr:target { background: var(--r-brand-tint); }
.bnk-cn { display: flex; align-items: center; gap: 10px; }
.bnk-go { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--r-link); text-decoration: none; }
.bnk-go:hover { color: var(--r-link-hover); text-decoration: underline; }
.bnk-go--none { color: var(--r-faint); }
[dir="rtl"] .bnk-go svg { transform: scaleX(-1); }
.bnk-line { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.bnk-line .bnk-logo { width: 32px; height: 32px; border-radius: 10px; }
.bnk-line-tt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bnk-line-tt b { color: var(--r-text); font-weight: 800; }
.bnk-line-tt span { font-size: 12.5px; color: var(--r-muted); }
.bnk-cur { font-weight: 800; color: var(--r-text); }
.bnk-flds { display: flex; flex-wrap: wrap; gap: 6px; min-width: 180px; }
.bnk-fld { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); font-size: 12.5px; font-weight: 700; color: var(--r-text-2); line-height: 1.3; }
.bnk-eta { display: inline-flex; align-items: center; min-height: 26px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.bnk-eta--fast { color: var(--r-green); background: var(--r-green-tint); }
.bnk-eta--days { color: var(--r-text-2); background: var(--r-fill-3); }
.bnk-min { font-weight: 800; color: var(--r-text); }
.bnk-tbl--ex td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bnk-tbl--ex td.bnk-net { color: var(--r-green); font-weight: 800; }
.bnk-tbl--cmp tbody th { width: 22%; font-size: 14px; color: var(--r-muted); }
.bnk-tbl--cmp thead .bnk-on { color: var(--r-link); background: var(--r-brand-tint); }
.bnk-tbl--cmp td.bnk-on { color: var(--r-text); font-weight: 700; background: var(--r-brand-tint); }
.bnk-foot { margin: -8px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.55; max-width: 900px; }
.bnk-foot + .bnk-foot { margin-top: -14px; }

/* ══ Заметки по странам ═══════════════════════════════════════════════════ */
.bnk-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12px; }
.bnk-note { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bnk-note-h { display: flex; align-items: center; gap: 10px; }
.bnk-h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.bnk-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Шаги ═════════════════════════════════════════════════════════════════ */
.bnk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.bnk-step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: 24px; background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0; }
.bnk-step-n { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); font-weight: 800; font-size: 15px; }
.bnk-step-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bnk-step-t { font-size: 16.5px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.bnk-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.bnk-risk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bnk-risk-i { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0; }
.bnk-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.bnk-risk-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.bnk-risk-i b { color: var(--r-text); }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.bnk-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.bnk-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.bnk-qa-i summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.4; }
.bnk-qa-i summary::-webkit-details-marker { display: none; }
.bnk-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.bnk-qa-ic { flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; background: var(--r-fill-3); color: var(--r-text-2); transition: transform .2s ease; }
.bnk-qa-i[open] .bnk-qa-ic { transform: rotate(45deg); }
.bnk-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Знак владельца бренда ════════════════════════════════════════════════ */
.bnk-tm { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 20px; background: var(--r-fill-1); border: 1px solid var(--r-line-2); max-width: 900px; }
.bnk-tm-ic { flex: none; color: var(--r-muted); margin-top: 2px; }
.bnk-tm b { display: block; font-size: 14px; color: var(--r-text-2); margin-bottom: 4px; }
.bnk-tm p { margin: 0; font-size: 13.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Связанные и финал ════════════════════════════════════════════════════ */
.sx-next.bnk-rel { grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.bnk-final { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bnk-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.bnk-final .r-btns { position: relative; flex: none; }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .bnk-hero { grid-template-columns: 1fr; }
  .bnk-hero-art { justify-content: flex-start; }
  .bnk-risk { grid-template-columns: 1fr; }
  .bnk-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .bnk-mock { max-width: none; }
  .bnk-mock.r-float { animation: none; }
  .bnk .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; min-width: 0; white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
  .bnk-final .r-btns, .bnk-final .r-btn { align-self: stretch; width: 100%; }
  .bnk-step, .bnk-note { padding: 18px; }
  /* Таблицы стран и расчёта: строка — карточка (первая ячейка — заголовок, остальные с подписью колонки). */
  .bnk-tbl thead { display: none; }
  .bnk-tbl, .bnk-tbl tbody { display: block; }
  .bnk-tbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--r-line); }
  .bnk-tbl tbody tr:last-child { border-bottom: 0; }
  .bnk-tbl tr > * { border-bottom: 0; padding: 6px 16px; font-size: 14px; }
  .bnk-tbl tr th { grid-column: 1 / -1; padding-top: 14px; }
  .bnk-tbl tr > :last-child { padding-bottom: 14px; }
  .bnk-tbl td { display: flex; flex-direction: column; gap: 4px; white-space: normal; min-width: 0; }
  .bnk-tbl td::before { content: attr(data-t-l); font-size: 11.5px; font-weight: 700; color: var(--r-faint); }
  .bnk-tbl td bdi { white-space: normal; }
  .bnk-tbl td:nth-child(2), .bnk-tbl td:nth-child(4) { grid-column: 1 / -1; }
  .bnk-line, .bnk-flds { min-width: 0; }
  .bnk-tbl--ex td:nth-child(2), .bnk-tbl--ex td:nth-child(4) { grid-column: auto; }
  .bnk-tbl--cmp tbody th { width: auto; }
  .bnk-tbl--cmp td { grid-column: 1 / -1 !important; }
  .bnk-final { padding: 28px 20px; }
  .bnk-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .bnk-qa-i p { padding: 0 18px 18px; }
  .bnk-risk-i, .bnk-tm { padding: 16px 18px; }
}
@media (max-width: 379px) {
  .bnk .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
  .bnk-mock-eta { display: none; }
}
@media (max-width: 359px) {
  .bnk-mock { padding: 14px; }
  .bnk .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}
