/*
 * /usdt-wallet/ — кошелёк USDT в шести сетях (seo-1108, зона coins-1).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка uw-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

.uw .r-wrap :is(h1, h2) { text-wrap: balance; }
.uw-top { padding-top: 12px; }
.uw bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }

/* ══ Значки сетей ═════════════════════════════════════════════════════════ */
.uw-ico { flex: none; width: 28px; height: 28px; border-radius: 99px; display: inline-grid; place-items: center; object-fit: cover; }
.uw-ico--arb {
  font-size: 9px; font-weight: 800; letter-spacing: 0.02em; color: var(--r-link);
  background: var(--r-brand-tint); border: 1px solid var(--r-line-3);
}

/* ══ Первый экран: выбор сети ═════════════════════════════════════════════ */
.uw-hero { grid-template-columns: 1.2fr 0.8fr; }
.uw-chips { padding-top: 4px; }
.uw-hero-art { min-width: 0; }
.uw-pick {
  width: 100%; max-width: 340px; 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: 6px;
}
.uw-pick-top { display: flex; align-items: center; gap: 12px; padding: 0 4px 10px; }
/* .r-hero-art img (r26.css) растягивает картинки первого экрана до 260 px — значкам задаём размер явно. */
.uw-hero-art .uw-pick-top img { width: 40px; height: 40px; border-radius: 99px; flex: none; }
.uw-hero-art .uw-pick .uw-ico { width: 28px; height: 28px; }
.uw-pick-tt { display: flex; flex-direction: column; gap: 2px; }
.uw-pick-tt b { font-size: 16px; font-weight: 800; }
.uw-pick-tt > span { font-size: 12px; color: var(--r-muted); }
.uw-pick-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px;
  border: 1px solid transparent;
}
.uw-pick-row--on { background: var(--r-brand-tint); border-color: var(--r-brand-2); }
.uw-pick-n { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.uw-pick-n b { font-size: 13.5px; font-weight: 800; color: var(--r-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-pick-n > span { font-size: 11.5px; color: var(--r-faint); }
.uw-pick-f { font-size: 11.5px; color: var(--r-muted); white-space: nowrap; }
.uw-pick-f b { color: var(--r-green); font-size: 12.5px; }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.uw-ans { padding: 28px 32px; border-inline-start: 4px solid var(--r-brand); display: flex; flex-direction: column; gap: 10px; }
.uw-ans-h { margin: 0; font-size: clamp(20px, 1vw + 14px, 24px); font-weight: 800; color: var(--r-text); line-height: 1.25; }
.uw-ans-p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--r-text-2); max-width: 900px; }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.uw-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;
}
.uw-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.uw-tbl { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.uw-tbl :is(th, td) { padding: 14px 18px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--r-line); }
.uw-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.uw-tbl thead th { font-size: 12.5px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); }
.uw-tbl td { color: var(--r-text-2); }
.uw-tbl td b { color: var(--r-text); }
.uw-tbl td:last-child { font-size: 14px; color: var(--r-muted); }
.uw-net { display: flex; align-items: center; gap: 10px; }
.uw-net > span { display: flex; flex-direction: column; }
.uw-net b { font-weight: 800; color: var(--r-text); white-space: nowrap; }
.uw-net > span > span { font-size: 12px; color: var(--r-faint); font-weight: 600; }
.uw-foot { margin: 14px 0 0; font-size: 13.5px; color: var(--r-faint); line-height: 1.55; max-width: 900px; }

/* ══ Калькулятор ══════════════════════════════════════════════════════════ */
.uw-calc { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.uw-form { padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.uw-f { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.uw-f-l { font-size: 13px; font-weight: 800; color: var(--r-text-2); line-height: 1.35; }
.uw-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: 22px; font-weight: 800; text-align: start;
}
.uw-in:focus { outline: 2px solid var(--r-accent); outline-offset: 1px; border-color: transparent; }
.uw-in[aria-invalid="true"] { border-color: var(--r-red); }
.uw-msg { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--r-muted); min-height: 3em; }
.uw-msg.is-warn { color: var(--r-red); }
.uw-calc-btn { align-self: flex-start; }
.uw-out { padding: 20px 24px; background: var(--r-fill-1); border-inline-start: 1px solid var(--r-line-2); min-width: 0; }
.uw-out-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.uw-out-tbl :is(th, td) { padding: 11px 8px; text-align: start; border-bottom: 1px solid var(--r-line); }
.uw-out-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.uw-out-tbl thead th { font-size: 12px; font-weight: 800; color: var(--r-faint); }
.uw-out-tbl tbody th { font-weight: 700; color: var(--r-text); }
.uw-out-tbl tbody th { display: flex; align-items: center; gap: 8px; }
.uw-out-tbl tbody th .uw-ico { width: 22px; height: 22px; font-size: 7px; }
.uw-out-tbl td { color: var(--r-muted); }
.uw-out-tbl td b { color: var(--r-text); font-weight: 800; }
.uw-best { background: var(--r-green-tint); }
.uw-best td b { color: var(--r-green); }

/* ══ Три вопроса ══════════════════════════════════════════════════════════ */
.uw-choose { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.uw-q { padding: 26px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.uw-q-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: #FFFFFF; background: var(--r-brand);
}
.uw-q-t { margin: 0; font-size: 19px; font-weight: 800; color: var(--r-text); line-height: 1.25; }
.uw-q-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }

/* ══ Шаги пополнения ══════════════════════════════════════════════════════ */
.uw-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--r-line); background: var(--r-surface); }
.uw-step { padding: 24px; display: flex; flex-direction: column; gap: 8px; min-width: 0; border-inline-end: 1px solid var(--r-line); }
.uw-step:last-child { border-inline-end: 0; }
.uw-step-n { font-size: 13px; font-weight: 800; color: var(--r-accent); letter-spacing: 0.08em; }
.uw-step-t { font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.25; }
.uw-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Что можно сделать ════════════════════════════════════════════════════ */
.uw-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uw-use {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-width: 0;
  color: inherit; text-decoration: none; transition: border-color .15s ease, background-color .15s ease;
}
.uw-use:hover { border-color: var(--r-brand-2); background: var(--r-hover); }
.uw-use:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.uw-use-ic {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.uw-use-tx { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 auto; }
.uw-use-tx b { font-size: 15.5px; font-weight: 800; color: var(--r-text); }
.uw-use-tx span { font-size: 13.5px; color: var(--r-muted); line-height: 1.5; }
.uw-arr { flex: none; color: var(--r-faint); }
[dir="rtl"] .uw-arr { transform: scaleX(-1); }

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

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

/* ══ Блог ═════════════════════════════════════════════════════════════════ */
.uw-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.uw-link { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 48px 22px 22px; color: inherit; text-decoration: none; min-width: 0; }
[dir="rtl"] .uw-link { padding: 22px 22px 22px 48px; }
.uw-link b { font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.35; }
.uw-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.uw-link .uw-arr { position: absolute; inset-inline-end: 20px; top: 24px; }
.uw-link:hover { border-color: var(--r-brand-2); }

/* ══ Последний призыв ═════════════════════════════════════════════════════ */
.uw-final { padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; overflow: hidden; }
.uw-final-txt { display: flex; flex-direction: column; gap: 12px; max-width: 680px; position: relative; }
.uw-final .r-btns { position: relative; flex: none; }

/* ══ Телефон ══════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .uw-hero { grid-template-columns: 1fr; }
  .uw-hero-art { justify-content: flex-start; }
  .uw-calc { grid-template-columns: 1fr; }
  .uw-out { border-inline-start: 0; border-top: 1px solid var(--r-line-2); }
  .uw-choose { grid-template-columns: 1fr; }
  .uw-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uw-step:nth-child(2) { border-inline-end: 0; }
  .uw-step:nth-child(-n+2) { border-bottom: 1px solid var(--r-line); }
  .uw-links { grid-template-columns: 1fr; }
  .uw-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .uw-ans { padding: 22px 20px; }
  .uw-ans-p { font-size: 15.5px; }
  .uw-uses, .uw-risk { grid-template-columns: 1fr; }
  .uw-risk-i:last-child:nth-child(odd) { grid-column: auto; }
  .uw-form { padding: 22px 20px; }
  .uw-out { padding: 14px 12px; }
  .uw-out-tbl { font-size: 13.5px; }
  .uw-out-tbl :is(th, td) { padding: 10px 5px; }
  .uw-steps { grid-template-columns: 1fr; }
  .uw-step { border-inline-end: 0; border-bottom: 1px solid var(--r-line); }
  .uw-step:last-child { border-bottom: 0; }
  .uw-q { padding: 22px 20px; }
  .uw-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .uw-qa-i p { padding: 0 18px 18px; font-size: 14.5px; }
  .uw-final { padding: 28px 20px; }
  .uw-calc-btn { align-self: stretch; justify-content: center; }
}
@media (max-width: 359px) {
  .uw-pick { padding: 14px; }
  .uw-pick-f > span { display: none; }
  .uw-out-tbl thead th:last-child, .uw-out-tbl td:last-child { display: none; }
  .uw-in { font-size: 19px; }
}
