/*
 * /ethereum-wallet/ — кошелёк Ethereum: ETH, токены ERC-20, один 0x-адрес (seo-1108, зона coins-2).
 * Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"].
 * Приставка eth-. Телефон: 899 / 719 / 359 px, без боковой прокрутки на 320. RTL — логические свойства.
 */

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

/* ══ Первый экран: карточка адреса с тремя сетями ═════════════════════════ */
.eth-hero { grid-template-columns: 1.15fr 0.85fr; }
.eth-chips { padding-top: 4px; }
.eth-hero-art { min-width: 0; }
.eth-addr {
  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: 10px;
}
.eth-addr-top { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--r-line-3); }
.eth-addr-ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.eth-addr-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-bottom: 6px; }
.eth-addr-tt b { font-size: 15px; font-weight: 800; color: var(--r-text); }
.eth-addr-tt > span { font-size: 13px; color: var(--r-muted); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.eth-addr-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line);
}
.eth-addr-row--warn { border-color: var(--r-red-line); }
.eth-addr-dot { flex: none; width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; }
.eth-addr-dot--ok { background: var(--r-green-tint); color: var(--r-green); }
.eth-addr-dot--warn { background: var(--r-red-line); color: var(--r-red); }
.eth-addr-n { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.eth-addr-n b { font-size: 14px; font-weight: 800; color: var(--r-text); }
.eth-addr-n span { font-size: 12.5px; color: var(--r-muted); }

/* ══ Короткий ответ ═══════════════════════════════════════════════════════ */
.eth-short-sec { padding-top: 32px; }
.eth-short {
  display: flex; flex-direction: column; gap: 10px; max-width: 900px; padding: 24px 28px; border-radius: 24px;
  background: var(--r-brand-tint); border: 1px solid var(--r-line-2); border-inline-start: 4px solid var(--r-brand-2);
}
.eth-short-p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--r-text); }

/* ══ Таблицы ══════════════════════════════════════════════════════════════ */
.eth-tbl-wrap {
  /* position: relative — иначе скрытые подписи .eth-sr (absolute) в ячейках выпадают из прокрутки и раздвигают страницу */
  position: relative; 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;
}
.eth-tbl-wrap:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.eth-tbl { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.eth-tbl :is(th, td) { padding: 14px 18px; text-align: start; vertical-align: middle; border-bottom: 1px solid var(--r-line); }
.eth-tbl tbody tr:last-child :is(th, td) { border-bottom: 0; }
.eth-tbl thead th { font-size: 13px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-1); white-space: nowrap; }
.eth-tbl tbody th { font-weight: 800; color: var(--r-text); }
.eth-tbl td { color: var(--r-text-2); }
.eth-tbl--mx { min-width: 680px; }
.eth-tbl--mx tbody th { display: table-cell; }
.eth-tbl--mx tbody th b { display: block; font-size: 15px; }
.eth-tbl--mx tbody th span { display: block; font-size: 12.5px; font-weight: 600; color: var(--r-muted); }
.eth-tbl--mx :is(.eth-yes, .eth-no, .eth-bad) { text-align: center; }
.eth-tbl--mx thead th:not(:first-child):not(:last-child) { text-align: center; }
.eth-mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; vertical-align: middle; }
.eth-mk--y { background: var(--r-green-tint); color: var(--r-green); }
.eth-mk--x { background: var(--r-red-line); color: var(--r-red); }
.eth-bad { background: var(--r-red-line); }
.eth-cell-t { display: block; margin-top: 4px; font-size: 12px; font-weight: 800; color: var(--r-red); }
.eth-dash { display: inline-block; width: 14px; height: 2px; border-radius: 2px; background: var(--r-line-3); vertical-align: middle; }
.eth-min { font-size: 14px; white-space: nowrap; }
.eth-foot { margin: 12px 0 0; font-size: 13px; color: var(--r-faint); line-height: 1.5; }

/* ══ Предупреждение об Arbitrum ═══════════════════════════════════════════ */
.eth-arb { display: flex; gap: 20px; align-items: flex-start; padding: 32px; border-color: var(--r-red-line); }
.eth-arb-ic {
  flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--r-red-line); color: var(--r-red);
}
.eth-arb-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 820px; }
.eth-h2s { font-size: clamp(24px, 1.6vw + 14px, 34px); }
.eth-p { margin: 0; font-size: 15.5px; color: var(--r-text-2); line-height: 1.65; }

/* ══ Цифры и пример ═══════════════════════════════════════════════════════ */
.eth-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.eth-stat { padding: 22px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; min-width: 0; }
.eth-stat dt { font-size: 14px; color: var(--r-muted); line-height: 1.45; overflow-wrap: break-word; hyphens: auto; } /* qa 08.11: «Netzwerkbestätigungen» на 390 */
.eth-stat dd { margin: 0; font-size: clamp(24px, 1.4vw + 14px, 32px); font-weight: 800; color: var(--r-text); letter-spacing: -0.01em; }
.eth-ex {
  margin-top: 12px; max-width: 520px; padding: 20px 22px; border-radius: 20px;
  background: var(--r-surface); border: 1px solid var(--r-line); display: flex; flex-direction: column; gap: 10px;
}
.eth-ex-t { margin: 0; font-size: 13px; font-weight: 800; color: var(--r-accent); }
.eth-ex-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--r-muted); }
.eth-ex-row b { color: var(--r-text); font-weight: 800; }
.eth-ex-row--tot { padding-top: 10px; border-top: 1px dashed var(--r-line-3); color: var(--r-text); }
.eth-ex-row--tot b { color: var(--r-green); font-size: 18px; }

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

/* ══ Сценарии ═════════════════════════════════════════════════════════════ */
.eth-uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eth-use { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.eth-ico {
  flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--r-brand-tint); color: var(--r-link);
}
.eth-use-t { margin: 0; font-size: 19px; font-weight: 800; color: var(--r-text); }
.eth-use-d { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; flex: 1 1 auto; }
.eth-use-a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--r-link); text-decoration: none; }
.eth-use-a:hover { color: var(--r-link-hover); }
.eth-note { margin-top: 12px; }
[dir="rtl"] .eth-arr { transform: scaleX(-1); }

/* ══ Стейблкоины по сетям ═════════════════════════════════════════════════ */
.eth-net { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.eth-net-txt { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

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

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

/* ══ Блог ═════════════════════════════════════════════════════════════════ */
.eth-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.eth-link {
  position: relative; padding: 22px; padding-inline-end: 52px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; color: var(--r-text); min-width: 0; transition: border-color .16s ease;
}
.eth-link:hover { border-color: var(--r-brand-2); }
.eth-link b { font-size: 16px; font-weight: 800; line-height: 1.35; }
.eth-link span { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.eth-link .eth-arr { position: absolute; inset-inline-end: 22px; top: 24px; color: var(--r-link); }

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

/* ══ Планшет и телефон ════════════════════════════════════════════════════ */
@media (max-width: 1199px) {
  .eth-steps, .eth-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .eth-hero { grid-template-columns: 1fr; }
  .eth-hero-art { justify-content: flex-start; }
  .eth-net { grid-template-columns: 1fr; }
  .eth-lim, .eth-links { grid-template-columns: 1fr; }
  .eth-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .eth-addr { max-width: none; }
  .eth-addr.r-float { animation: none; }
  .eth-uses, .eth-steps { grid-template-columns: 1fr; }
  .eth-step, .eth-use, .eth-stat { padding: 20px; }
  .eth-short { padding: 20px; }
  .eth-short-p { font-size: 16px; }
  .eth-arb { flex-direction: column; padding: 24px 20px; gap: 14px; }
  .eth-tbl :is(th, td) { padding: 12px 14px; font-size: 14px; }
  .eth-final { padding: 28px 20px; }
  .eth-final .r-btns, .eth-final .r-btn { align-self: stretch; width: 100%; }
  .eth .r-hero-txt .r-btns .r-btn { flex: 1 1 100%; }
  .eth-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .eth-qa-i p { padding: 0 18px 18px; }
  .eth-lim-i { padding: 18px; }
}
@media (max-width: 359px) {
  .eth-stats { grid-template-columns: 1fr; }
  .eth-addr { padding: 16px; }
  .eth .r-chip { white-space: normal; height: auto; min-height: 34px; padding: 6px 12px; }
}
@media (max-width: 379px) {
  .eth main .r-btn, .eth .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
