/*
 * Разделы «вывод USDT на кошелёк» в Америке — зона wallets-americas (SEO-волна 25.11.2026):
 * /usdt-to-mercado-pago/, /usdt-to-nequi/, /usdt-to-yape/, /usdt-to-zelle/, /usdt-to-interac/.
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"] (токены сами
 * переключаются). Приставка wam-. Телефон: 899 / 719 / 379 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.wam .r-wrap :is(h1, h2) { text-wrap: balance; }
.wam-top { padding-top: 12px; }
.wam bdi { unicode-bidi: isolate; direction: ltr; }
.wam .r-btn svg { flex: none; }

/* ══ Первый экран: макет окна выплаты ═════════════════════════════════════ */
.wam-hero { grid-template-columns: 1.15fr 0.85fr; }
.wam-answer { max-width: 62ch; }
.wam-hero-art { min-width: 0; }
.wam-app {
  width: 100%; max-width: 350px; 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: 10px;
}
.wam-app-h { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }
.wam-app-logo { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.wam-app-name { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.wam-app-name b { font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.25; }
.wam-app-name small { font-size: 12.5px; color: var(--r-muted); }
.wam-app-eta {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 800; color: var(--r-green); background: var(--r-green-tint);
}
.wam-app-f {
  display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; border-radius: 14px; min-width: 0;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2);
}
.wam-app-f small { font-size: 11.5px; font-weight: 800; color: var(--r-faint); letter-spacing: .02em; }
.wam-app-f span { font-size: 15px; font-weight: 700; color: var(--r-text); overflow-wrap: anywhere; }
.wam-app-sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 2px;
  padding-top: 12px; border-top: 1px dashed var(--r-line-3); font-size: 13.5px; color: var(--r-muted);
}
.wam-app-sum b { font-size: 17px; font-weight: 800; color: var(--r-green); white-space: nowrap; }

/* ══ Заголовки блоков и сноски ════════════════════════════════════════════ */
.wam-foot { margin: 14px 0 0; max-width: 900px; font-size: 13.5px; color: var(--r-faint); line-height: 1.55; }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.wam-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;
}
.wam-tbl-wrap + .wam-tbl-wrap { margin-top: 12px; }
.wam-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.wam-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.wam-tbl :is(th, td) { padding: 15px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.wam-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.wam-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.wam-tbl tbody th { font-weight: 800; color: var(--r-text); }
.wam-tbl td { color: var(--r-text-2); }
.wam-tbl--kv tbody th { width: 34%; background: var(--r-fill-1); }
.wam-tbl--kv.wam-tbl--cards tbody th { width: 26%; }
.wam-td-l { display: none; }
.wam-tbl--ex { font-variant-numeric: tabular-nums; }
.wam-tbl--ex tbody :is(th, td) { white-space: nowrap; }
.wam-tbl--ex td:last-child { color: var(--r-green); font-weight: 800; }

/* ══ Шаги ═════════════════════════════════════════════════════════════════ */
.wam-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.wam-step { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wam-step-n {
  width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: #FFFFFF; background: var(--r-brand);
}
.wam-step-t { margin: 0; font-size: 18px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.wam-step-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Калькулятор ══════════════════════════════════════════════════════════ */
.wam-calc { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.wam-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wam-f { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.wam-f-l { padding: 0; font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.wam-seg { display: flex; gap: 6px; padding: 4px; border-radius: 16px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); }
.wam-seg label { flex: 1 1 0; position: relative; min-width: 0; }
.wam-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wam-seg span {
  display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 4px 10px; border-radius: 12px;
  font-size: 14px; font-weight: 800; color: var(--r-muted); cursor: pointer; text-align: center; line-height: 1.2;
}
.wam-seg input:checked + span { background: var(--r-brand); color: #FFFFFF; }
.wam-seg input:focus-visible + span { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.wam-in {
  width: 100%; box-sizing: border-box; height: 56px; 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: 20px; font-weight: 800; text-align: start;
}
.wam-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.wam-in[aria-invalid="true"] { border-color: var(--r-red); }
.wam-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.wam-q {
  height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--r-line-3); background: var(--r-fill-1);
  color: var(--r-text-2); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer;
}
.wam-q:hover { border-color: var(--r-brand-2); color: var(--r-text); }
.wam-q:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.wam-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);
}
.wam-out-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.wam-out-row b { color: var(--r-text); font-size: 17px; font-weight: 800; white-space: nowrap; }
.wam-out-total { padding-top: 14px; border-top: 1px solid var(--r-line-3); color: var(--r-text); font-weight: 700; }
.wam-out-total b { font-size: clamp(22px, 2vw + 10px, 30px); color: var(--r-green); }
.wam-msg { margin: 0; font-size: 13px; line-height: 1.5; color: var(--r-muted); min-height: 2.9em; }
.wam-msg.is-warn { color: var(--r-red); }
.wam-out-btn { align-self: flex-start; margin-top: 4px; }

/* ══ Свои блоки: карточки, список ═════════════════════════════════════════ */
.wam-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wam-cards--2, .wam-cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wam-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wam-card-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.wam-card-t { margin: 0; font-size: 18px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.wam-card-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }
.wam-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.wam-list-i {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px;
  background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0;
}
.wam-list-ic { flex: none; width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; color: var(--r-green); background: var(--r-green-tint); }
.wam-list-t, .wam-risk-t { margin: 0 0 4px; font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.35; }
.wam-list-i p, .wam-risk-i p { margin: 0; font-size: 15px; color: var(--r-muted); line-height: 1.6; }

/* ══ Ограничения ══════════════════════════════════════════════════════════ */
.wam-risk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.wam-risk-i {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 18px;
  background: var(--r-surface); border: 1px solid var(--r-red-line); min-width: 0;
}
.wam-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }

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

/* ══ Ссылки ═══════════════════════════════════════════════════════════════ */
.wam-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wam-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"] .wam-link { padding: 22px 22px 22px 52px; }
.wam-link:hover { border-color: var(--r-brand-2); }
.wam-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.wam-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.wam-link .wam-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }
[dir="rtl"] .wam-arr { transform: scaleX(-1); }

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

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .wam-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .wam-hero { grid-template-columns: 1fr; }
  .wam-hero-art { justify-content: flex-start; }
  .wam-calc { grid-template-columns: 1fr; }
  .wam-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .wam-cards, .wam-cards--2, .wam-cards--4 { grid-template-columns: 1fr; }
  .wam-links { grid-template-columns: 1fr; }
  .wam-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .wam-app { max-width: none; }
  .wam-app.r-float { animation: none; }
  .wam-steps { grid-template-columns: 1fr; }
  .wam-step { padding: 20px; }
  .wam-form, .wam-out { padding: 22px 20px; }
  .wam-out-btn, .wam-final .r-btns, .wam-final .r-btn { align-self: stretch; width: 100%; }
  .wam .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .wam-tbl :is(th, td) { padding: 13px 16px; font-size: 14px; }
  /* Таблица ключ-значение: подпись сверху, значение под ней. */
  .wam-tbl--kv:not(.wam-tbl--cards) tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--r-line); }
  .wam-tbl--kv:not(.wam-tbl--cards) tbody tr:last-child { border-bottom: 0; }
  .wam-tbl--kv:not(.wam-tbl--cards) :is(th, td) { display: block; width: auto; border: 0; padding: 2px 16px; background: none; }
  .wam-tbl--kv:not(.wam-tbl--cards) th { font-size: 12.5px; color: var(--r-faint); }
  /* Многоколоночные таблицы — карточками: первая ячейка заголовком, остальные строками с подписью колонки. */
  .wam-tbl--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wam-tbl--cards, .wam-tbl--cards tbody, .wam-tbl--cards tr, .wam-tbl--cards th, .wam-tbl--cards td { display: block; width: auto !important; }
  .wam-tbl--cards tr { padding: 14px 0; border-bottom: 1px solid var(--r-line); }
  .wam-tbl--cards tbody tr:last-child { border-bottom: 0; }
  .wam-tbl--cards :is(th, td) { border-bottom: 0; padding: 4px 16px; background: none !important; }
  .wam-tbl--cards th { padding-bottom: 8px; font-size: 15px; }
  .wam-tbl--cards td { padding-top: 5px; padding-bottom: 5px; }
  .wam-tbl--cards .wam-td-l { display: block; font-size: 12px; font-weight: 800; color: var(--r-faint); letter-spacing: .02em; }
  .wam-final { padding: 28px 20px; }
  .wam-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .wam-qa-i p { padding: 0 18px 18px; }
  .wam-risk-i, .wam-list-i { padding: 16px 18px; }
}
@media (max-width: 379px) {
  .wam .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) {
  .wam-app { padding: 16px; }
  .wam-form, .wam-out { padding: 18px 16px; }
  .wam-in { font-size: 18px; }
  .wam-out-row { flex-wrap: wrap; }
  .wam-tbl--ex :is(th, td) { padding: 12px 10px; font-size: 13px; }
}
