/*
 * Зона wallets-cis-global (SEO-волна 25.11.2026): /usdt-to-kaspi/, /usdt-to-payme/, /usdt-to-monobank/,
 * /usdt-to-wise/. Разметка — tools/r26/pages/_wcg-kit.mjs, приставка wcg-.
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"]
 * (токены меняются сами). Телефон: 1199 / 899 / 719 / 379 / 359 px, без боковой прокрутки на 320.
 * RTL — логические свойства.
 */

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

/* ══ Первый экран: макет формы способа ════════════════════════════════════ */
.wcg-hero { grid-template-columns: 1.15fr 0.85fr; }
.wcg-answer { max-width: 62ch; }
.wcg-chips { padding-top: 4px; }
.wcg-hero-art { min-width: 0; }
.wcg-mock {
  width: 100%; max-width: 360px; box-sizing: border-box; padding: 20px; 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: 12px;
}
.wcg-mock-top { display: flex; align-items: center; gap: 12px; }
.wcg-mock-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.wcg-mock-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.wcg-mock-tt b { font-size: 16px; font-weight: 800; }
.wcg-mock-tt > span { font-size: 12px; color: var(--r-muted); }
.wcg-mock-eta {
  flex: none; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 800; color: var(--r-green); background: var(--r-green-tint);
}
.wcg-mock-f {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2);
}
.wcg-mock-f span { font-size: 11.5px; font-weight: 700; color: var(--r-faint); }
.wcg-mock-f b { font-size: 15px; font-weight: 800; color: var(--r-text); overflow-wrap: anywhere; }
.wcg-mock-f b bdi { white-space: normal; }
.wcg-mock-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--r-muted); }
.wcg-mock-row b { color: var(--r-text); font-weight: 800; }
.wcg-mock-total { padding-top: 12px; border-top: 1px dashed var(--r-line-3); color: var(--r-text); font-weight: 700; }
.wcg-mock-total b { font-size: 18px; color: var(--r-green); }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.wcg-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;
}
.wcg-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.wcg-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.wcg-tbl :is(th, td) { padding: 15px 22px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.wcg-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.wcg-tbl th { font-weight: 800; color: var(--r-text); }
.wcg-tbl td { color: var(--r-text-2); }
.wcg-tbl--kv th { width: 30%; font-size: 14px; color: var(--r-muted); }
.wcg-tbl--kv td { color: var(--r-text); font-weight: 600; }
.wcg-tbl--ex thead th, .wcg-tbl--cmp thead th { font-size: 13.5px; color: var(--r-muted); background: var(--r-fill-1); }
.wcg-tbl--ex td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.wcg-tbl--ex td.wcg-net { color: var(--r-green); font-weight: 800; }
.wcg-tbl--cmp tbody th { width: 22%; font-size: 14px; color: var(--r-muted); }
.wcg-tbl--cmp thead .wcg-on { color: var(--r-link); background: var(--r-brand-tint); }
.wcg-tbl--cmp td.wcg-on { color: var(--r-text); font-weight: 700; background: var(--r-brand-tint); }
.wcg-foot { margin: -8px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.55; max-width: 900px; }

/* ══ Шаги ═════════════════════════════════════════════════════════════════ */
.wcg-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wcg-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;
}
.wcg-step-n { position: absolute; inset-inline-end: 18px; top: 16px; font-size: 13px; font-weight: 800; color: var(--r-accent); letter-spacing: 0.08em; }
.wcg-step-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.wcg-step-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-inline-end: 18px; }
.wcg-step-t { font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.wcg-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Проверка реквизитов и расчёт ═════════════════════════════════════════ */
.wcg-check { display: grid; grid-template-columns: 1.1fr 0.9fr; }
.wcg-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wcg-grp { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wcg-grp[hidden] { display: none; }
.wcg-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.wcg-f-l { font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.wcg-in {
  width: 100%; box-sizing: border-box; height: 54px; padding: 0 16px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text);
  font: inherit; font-size: 17px; font-weight: 700; text-align: start;
}
.wcg-in--amt { font-size: 18px; font-weight: 800; }
.wcg-in::placeholder { color: var(--r-faint); font-size: 15px; font-weight: 600; }
.wcg-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.wcg-in[aria-invalid="true"] { border-color: var(--r-red); }
.wcg-in.is-ok { border-color: var(--r-green); }
.wcg-hint { font-size: 13px; line-height: 1.45; color: var(--r-muted); min-height: 1.45em; overflow-wrap: anywhere; }
.wcg-hint.is-warn { color: var(--r-red); }
.wcg-hint.is-soft { color: var(--r-accent); }
.wcg-hint.is-ok { color: var(--r-green); }
.wcg-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.wcg-seg-i { position: relative; flex: 1 1 140px; min-width: 0; }
.wcg-seg-i input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.wcg-seg-i span {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 14px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); font-size: 15px; font-weight: 800; color: var(--r-text-2);
  text-align: center; line-height: 1.25;
}
.wcg-seg-i input:checked + span { background: var(--r-brand-tint); border-color: var(--r-brand-2); color: var(--r-link); }
.wcg-seg-i input:focus-visible + span { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.wcg-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.wcg-q {
  height: 38px; min-width: 64px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: var(--r-fill-2); border: 1px solid var(--r-line-3); color: var(--r-text-2); font: inherit; font-size: 14px; font-weight: 800;
}
.wcg-q[aria-pressed="true"] { background: var(--r-brand-tint); border-color: var(--r-brand-2); color: var(--r-link); }
.wcg-q:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.wcg-out {
  padding: 32px; display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0;
  background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2);
}
.wcg-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.wcg-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; }
.wcg-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.wcg-out-total b { font-size: clamp(22px, 2vw + 10px, 30px); color: var(--r-green); }
.wcg-out-meta {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--r-surface); border: 1px solid var(--r-line-2); font-size: 14px; color: var(--r-muted);
}
.wcg-out-meta b { color: var(--r-text); font-weight: 800; text-align: end; }
.wcg-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.wcg-msg.is-warn { color: var(--r-red); }
.wcg-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Частые ошибки ════════════════════════════════════════════════════════ */
.wcg-errs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wcg-err { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.wcg-err-ico {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-red-line); color: var(--r-red);
}
.wcg-err-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.wcg-err-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.wcg-risk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.wcg-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;
}
.wcg-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.wcg-risk-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.wcg-risk-i b { color: var(--r-text); }

/* ══ Вопросы ══════════════════════════════════════════════════════════════ */
.wcg-qa { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.wcg-qa-i { border-radius: 20px; background: var(--r-surface); border: 1px solid var(--r-line); }
.wcg-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;
}
.wcg-qa-i summary::-webkit-details-marker { display: none; }
.wcg-qa-i summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; border-radius: 20px; }
.wcg-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;
}
.wcg-qa-i[open] .wcg-qa-ic { transform: rotate(45deg); }
.wcg-qa-i p { margin: 0; padding: 0 22px 20px; font-size: 15px; color: var(--r-text-2); line-height: 1.65; max-width: 75ch; }

/* ══ Блог и связанные разделы ═════════════════════════════════════════════ */
.wcg-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wcg-link {
  position: relative; padding: 22px 52px 22px 22px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease;
}
[dir="rtl"] .wcg-link { padding: 22px 22px 22px 52px; }
.wcg-link:hover { border-color: var(--r-brand-2); }
.wcg-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.wcg-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.wcg-link .wcg-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
[dir="rtl"] .wcg-arr { transform: scaleX(-1); }
.sx-next.wcg-rel { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

/* ══ Финальный призыв ═════════════════════════════════════════════════════ */
.wcg-final { padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wcg-final-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 640px; min-width: 0; }
.wcg-final .r-btns { position: relative; flex: none; }

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .wcg-errs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wcg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .wcg-hero { grid-template-columns: 1fr; }
  .wcg-hero-art { justify-content: flex-start; }
  .wcg-check { grid-template-columns: 1fr; }
  .wcg-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .wcg-risk { grid-template-columns: 1fr; }
  .wcg-links { grid-template-columns: 1fr; }
  .wcg-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .wcg-mock { max-width: none; }
  .wcg-mock.r-float { animation: none; }
  .wcg-steps, .wcg-errs { grid-template-columns: 1fr; }
  .wcg-step, .wcg-err { padding: 20px; }
  .wcg-form, .wcg-out { padding: 22px 20px; }
  .wcg-out-btn, .wcg-final .r-btns, .wcg-final .r-btn { align-self: stretch; width: 100%; }
  .wcg .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .wcg-tbl :is(th, td) { padding: 13px 16px; font-size: 14px; }
  .wcg-tbl--kv, .wcg-tbl--kv tbody, .wcg-tbl--kv tr, .wcg-tbl--kv th, .wcg-tbl--kv td { display: block; width: auto; }
  .wcg-tbl--kv th { padding-bottom: 2px; border-bottom: 0; font-size: 13px; }
  .wcg-tbl--kv td { padding-top: 0; }
  /* Пример расчёта: строка — карточка (первая ячейка — заголовок, три суммы ниже). */
  .wcg-tbl--ex thead { display: none; }
  .wcg-tbl--ex, .wcg-tbl--ex tbody { display: block; }
  .wcg-tbl--ex tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--r-line); }
  .wcg-tbl--ex tbody tr:last-child { border-bottom: 0; }
  .wcg-tbl--ex tr th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 4px; }
  .wcg-tbl--ex tr :is(th, td) { border-bottom: 0; }
  .wcg-tbl--ex td { padding-top: 0; font-size: 13px; white-space: normal; display: flex; flex-direction: column; gap: 2px; }
  .wcg-tbl--ex td::before { content: attr(data-t-l); font-size: 11.5px; font-weight: 700; color: var(--r-faint); }
  .wcg-tbl--ex td bdi { white-space: normal; }
  .wcg-final { padding: 28px 20px; }
  .wcg-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .wcg-qa-i p { padding: 0 18px 18px; }
  .wcg-risk-i { padding: 18px; }
}
@media (max-width: 379px) {
  .wcg .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
@media (max-width: 359px) {
  .wcg-mock { padding: 16px; }
  .wcg-mock-row { font-size: 13px; }
  .wcg-form, .wcg-out { padding: 18px 16px; }
  .wcg-in { font-size: 16px; }
  .wcg .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}
