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

.tnw .r-wrap :is(h1, h2) { text-wrap: balance; }
.tnw-top { padding-top: 12px; }
.tnw bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.tnw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tnw-p { margin: 0; font-size: 15.5px; color: var(--r-text-2); line-height: 1.65; max-width: 900px; }

/* ══ Первый экран: экран пополнения с комментарием ═══════════════════════ */
.tnw-hero { grid-template-columns: 1.2fr 0.8fr; }
.tnw-chips { padding-top: 4px; }
.tnw-hero-art { min-width: 0; }
.tnw-scr {
  width: 100%; max-width: 340px; 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;
}
.tnw-scr-top { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; }
/* .r-hero-art img (r26.css) растягивает картинки первого экрана до 260 px — значку задаём размер явно. */
.tnw-hero-art .tnw-scr-coin { width: 40px; height: 40px; border-radius: 99px; flex: none; }
.tnw-scr-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tnw-scr-tt b { font-size: 16px; font-weight: 800; }
.tnw-scr-tt > span { font-size: 12px; color: var(--r-muted); }
.tnw-fld { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--r-fill-2); border: 1px solid var(--r-line-2); }
.tnw-fld-l { font-size: 11.5px; font-weight: 800; color: var(--r-faint); letter-spacing: 0.04em; }
.tnw-fld-v { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 800; color: var(--r-text); }
.tnw-fld-v svg { color: var(--r-link); flex: none; }
.tnw-fld--memo { border-color: var(--r-brand-2); background: var(--r-brand-tint); }
.tnw-fld--memo .tnw-fld-v { font-size: 20px; letter-spacing: 0.06em; }
.tnw-scr-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--r-muted); }
.tnw-scr-row b { color: var(--r-text); }
.tnw-scr-warn {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px;
  font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--r-red); background: var(--r-red-line);
}
.tnw-scr-warn svg { flex: none; margin-top: 1px; }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.tnw-ans { padding: 28px 32px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.tnw-ans-h { margin: 0; font-size: clamp(22px, 1.2vw + 14px, 28px); font-weight: 800; color: var(--r-text); line-height: 1.2; }
.tnw-ans-p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--r-text-2); }

/* ══ Адрес + комментарий = зачисление ════════════════════════════════════ */
.tnw-eq { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 20px; }
.tnw-eq-i { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tnw-eq-i b { font-size: 17px; font-weight: 800; color: var(--r-text); }
.tnw-eq-i > span:last-child { font-size: 14px; color: var(--r-muted); line-height: 1.55; }
.tnw-eq-i--hl { border-color: var(--r-brand-2); background: var(--r-brand-tint); }
.tnw-eq-ic {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-fill-2); color: var(--r-link);
}
.tnw-eq-op { display: grid; place-items: center; color: var(--r-accent); }

/* ══ Шаги ═════════════════════════════════════════════════════════════════ */
.tnw-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.tnw-step {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 20px;
  background: var(--r-surface); border: 1px solid var(--r-line);
}
.tnw-step--hl { border-color: var(--r-brand-2); box-shadow: 0 0 0 3px var(--r-brand-tint); }
.tnw-step-n {
  flex: none; width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #FFFFFF; background: var(--r-brand);
}
.tnw-step-tx { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tnw-step-tx b { font-size: 16.5px; font-weight: 800; color: var(--r-text); }
.tnw-step-tx span { font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }

/* ══ Таблица двух монет ═══════════════════════════════════════════════════ */
.tnw-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;
}
.tnw-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.tnw-tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.tnw-tbl :is(th, td) { padding: 14px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.tnw-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.tnw-tbl thead th { background: var(--r-fill-1); font-size: 14px; font-weight: 800; color: var(--r-text); }
.tnw-tbl tbody th { width: 30%; font-size: 14px; font-weight: 700; color: var(--r-muted); }
.tnw-tbl td { color: var(--r-text-2); }
.tnw-th { display: inline-flex; align-items: center; gap: 10px; }
.tnw-th-ic { width: 26px; height: 26px; border-radius: 99px; }
.tnw-foot { margin: 14px 0 0; font-size: 13.5px; color: var(--r-faint); line-height: 1.55; max-width: 900px; }

/* ══ Без комментария / вывод ══════════════════════════════════════════════ */
.tnw-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tnw-duo-b { padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tnw-duo-b--warn { border-color: var(--r-red-line); }
.tnw-h2s { font-size: clamp(24px, 1.5vw + 14px, 32px); }
.tnw-lost { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.tnw-lost li { display: flex; gap: 12px; align-items: flex-start; }
.tnw-lost-n {
  flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: var(--r-red); background: var(--r-red-line);
}
.tnw-lost p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.tnw-lost b { color: var(--r-text); }
.tnw-rc {
  margin-top: 4px; padding: 16px 18px; border-radius: 18px; background: var(--r-fill-1); border: 1px solid var(--r-line-2);
  display: flex; flex-direction: column; gap: 10px;
}
.tnw-rc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--r-muted); }
.tnw-rc-row b { color: var(--r-text); font-weight: 800; }
.tnw-rc-total { padding-top: 10px; border-top: 1px dashed var(--r-line-3); color: var(--r-text); font-weight: 700; }
.tnw-rc-total b { color: var(--r-green); font-size: 17px; }

/* ══ Можно / нельзя ═══════════════════════════════════════════════════════ */
.tnw-can { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tnw-can-col { padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tnw-can-h { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--r-text); }
.tnw-can-h > span { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; }
.tnw-can-h--ok > span { color: var(--r-green); background: var(--r-green-tint); }
.tnw-can-h--no > span { color: var(--r-red); background: var(--r-red-line); }
.tnw-can-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tnw-can-col li > span, .tnw-can-col li > a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0;
  font-size: 14.5px; line-height: 1.55; color: var(--r-text-2); border-bottom: 1px solid var(--r-line);
}
.tnw-can-col li:last-child > :is(span, a) { border-bottom: 0; }
.tnw-can-col li > a { text-decoration: none; }
.tnw-can-col li > a:hover { color: var(--r-link); }
.tnw-can-col li > a:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; border-radius: 6px; }
.tnw-arr { flex: none; color: var(--r-faint); }
[dir="rtl"] .tnw-arr { transform: scaleX(-1); }

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

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

/* ══ Блог ═════════════════════════════════════════════════════════════════ */
.tnw-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tnw-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"] .tnw-link { padding: 22px 22px 22px 48px; }
.tnw-link b { font-size: 16px; font-weight: 800; color: var(--r-text); line-height: 1.35; }
.tnw-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.tnw-link .tnw-arr { position: absolute; inset-inline-end: 20px; top: 24px; }
.tnw-link:hover { border-color: var(--r-brand-2); }

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

/* ══ Телефон ══════════════════════════════════════════════════════════════ */
@media (max-width: 899px) {
  .tnw-hero { grid-template-columns: 1fr; }
  .tnw-hero-art { justify-content: flex-start; }
  .tnw-ans { grid-template-columns: 1fr; gap: 10px; }
  .tnw-eq { grid-template-columns: 1fr; }
  .tnw-eq-op { padding: 0; }
  .tnw-duo, .tnw-can { grid-template-columns: 1fr; }
  .tnw-links { grid-template-columns: 1fr; }
  .tnw-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .tnw-ans { padding: 22px 20px; }
  .tnw-ans-p { font-size: 15.5px; }
  .tnw-duo-b, .tnw-can-col { padding: 22px 20px; }
  .tnw-risk { grid-template-columns: 1fr; }
  .tnw-step { padding: 16px; gap: 12px; }
  .tnw-tbl :is(th, td) { padding: 12px 14px; }
  .tnw-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .tnw-qa-i p { padding: 0 18px 18px; font-size: 14.5px; }
  .tnw-final { padding: 28px 20px; }
}
@media (max-width: 359px) {
  .tnw-scr { padding: 16px; }
  .tnw-fld--memo .tnw-fld-v { font-size: 18px; }
}
