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

.btw .r-wrap :is(h1, h2) { text-wrap: balance; }
.btw-top { padding-top: 12px; }
.btw bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.btw-arr { flex: none; color: var(--r-faint); }
[dir="rtl"] .btw-arr { transform: scaleX(-1); }

/* ══ Первый экран: паспорт сети ═══════════════════════════════════════════ */
.btw-hero { grid-template-columns: 1.2fr 0.8fr; }
.btw-chips { padding-top: 4px; }
.btw-hero-art { min-width: 0; }
.btw-pass {
  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: 14px;
}
.btw-pass-top { display: flex; align-items: center; gap: 12px; }
/* .r-hero-art img (r26.css) растягивает картинки первого экрана до 260 px — значку задаём размер явно. */
.btw-hero-art .btw-pass-coin { width: 44px; height: 44px; border-radius: 99px; flex: none; }
.btw-pass-tt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.btw-pass-tt b { font-size: 17px; font-weight: 800; }
.btw-pass-tt > span { font-size: 12px; color: var(--r-muted); }
.btw-pass-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.btw-pass-c {
  display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px;
  background: var(--r-fill-2); border: 1px solid var(--r-line-2); min-width: 0;
}
.btw-pass-c > span { font-size: 11px; font-weight: 800; color: var(--r-faint); letter-spacing: 0.03em; }
.btw-pass-c b { font-size: 14px; font-weight: 800; color: var(--r-text); }
.btw-pass-sw {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 14px;
  background: var(--r-green-tint); color: var(--r-text); font-size: 14px; font-weight: 800;
}
.btw-pass-sw svg { color: var(--r-green); }
.btw-pass-sw em { font-style: normal; color: var(--r-green); margin-inline-start: 6px; }

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

/* ══ Паспорт сети ═════════════════════════════════════════════════════════ */
.btw-spec {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 24px; overflow: hidden;
  border: 1px solid var(--r-line); background: var(--r-surface); box-shadow: var(--r-block-shadow);
}
.btw-spec-r { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; border-bottom: 1px solid var(--r-line); min-width: 0; }
.btw-spec-r:nth-child(odd) { border-inline-end: 1px solid var(--r-line); }
.btw-spec-r:nth-last-child(-n+2) { border-bottom: 0; }
.btw-spec-k { font-size: 12.5px; font-weight: 800; color: var(--r-accent); letter-spacing: 0.04em; }
.btw-spec-v { font-size: 15.5px; color: var(--r-text); line-height: 1.5; font-weight: 600; }

/* ══ Путь к покупке ═══════════════════════════════════════════════════════ */
.btw-route { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 900px; margin-inline: auto; }
.btw-node { width: 100%; max-width: 420px; box-sizing: border-box; padding: 18px 20px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btw-node b { font-size: 17px; font-weight: 800; color: var(--r-text); }
.btw-node > span:last-child { font-size: 13.5px; color: var(--r-muted); flex-basis: 100%; padding-inline-start: 56px; margin-top: -6px; }
.btw-node-coin { width: 44px; height: 44px; border-radius: 99px; flex: none; }
.btw-node--usd { border-color: var(--r-brand-2); }
.btw-node-pair { display: inline-flex; flex: none; width: 44px; }
.btw-node-pair img { width: 28px; height: 28px; border-radius: 99px; border: 2px solid var(--r-surface); }
.btw-node-pair img + img { margin-inline-start: -12px; margin-top: 12px; }
.btw-link { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--r-muted); font-size: 13.5px; font-weight: 700; }
.btw-link-ic { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; background: var(--r-fill-2); color: var(--r-accent); flex: none; }
.btw-dest { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.btw-dest-i { padding: 20px; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; min-width: 0; }
.btw-dest-i:hover { border-color: var(--r-brand-2); background: var(--r-hover); }
.btw-dest-i:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.btw-dest-i b { font-size: 16px; font-weight: 800; color: var(--r-text); }
.btw-dest-i > span:last-child { font-size: 13.5px; color: var(--r-muted); line-height: 1.5; }
.btw-dest-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.btw-ex { margin-top: 20px; padding: 24px 28px; display: flex; flex-direction: column; gap: 8px; }
.btw-ex-p { margin: 0; font-size: 15.5px; color: var(--r-text-2); line-height: 1.65; }

/* ══ Продать или занять ═══════════════════════════════════════════════════ */
.btw-sb { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.btw-sb-col { padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.btw-sb-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--r-brand-tint); color: var(--r-link); }
.btw-sb-h { margin: 0; font-size: 21px; font-weight: 800; color: var(--r-text); }
.btw-sb-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.btw-sb-col li { position: relative; padding-inline-start: 18px; font-size: 14.5px; color: var(--r-muted); line-height: 1.6; }
.btw-sb-col li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 99px; background: var(--r-accent); }
.btw-sb-a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; color: var(--r-link); text-decoration: none; }
.btw-sb-a:hover { color: var(--r-link-hover); }
.btw-sb-a .btw-arr { color: currentColor; }
.btw-foot { margin: 14px 0 0; font-size: 13.5px; color: var(--r-faint); line-height: 1.55; max-width: 900px; }

/* ══ Пополнение и вывод ═══════════════════════════════════════════════════ */
.btw-io { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.btw-io-b { padding: 28px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.btw-io-h { margin: 0; font-size: 20px; font-weight: 800; color: var(--r-text); }
.btw-io-l { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.btw-io-l li { display: flex; gap: 12px; align-items: flex-start; }
.btw-io-n {
  flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #FFFFFF; background: var(--r-brand);
}
.btw-io-l p { margin: 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.btw-io-l b { font-size: 15.5px; font-weight: 800; color: var(--r-text); }
.btw-io-l p span { font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Чего нет ═════════════════════════════════════════════════════════════ */
.btw-nope { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.btw-nope-i { padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.btw-nope-ic { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--r-fill-2); color: var(--r-muted); }
.btw-nope-t { margin: 0; font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.3; }
.btw-nope-d { margin: 0; font-size: 14px; color: var(--r-muted); line-height: 1.55; }

/* ══ Риски ════════════════════════════════════════════════════════════════ */
.btw-risk { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-width: 920px; }
.btw-risk-i {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: 18px;
  background: var(--r-surface); border: 1px solid var(--r-red-line);
}
.btw-risk-ic { flex: none; color: var(--r-red); margin-top: 2px; }
.btw-risk-i p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }
.btw-risk-i b { color: var(--r-text); }

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

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

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

/* ══ Телефон ══════════════════════════════════════════════════════════════ */
@media (max-width: 1099px) {
  .btw-nope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .btw-hero { grid-template-columns: 1fr; }
  .btw-hero-art { justify-content: flex-start; }
  .btw-dest, .btw-sb, .btw-io { grid-template-columns: 1fr; }
  .btw-final { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}
@media (max-width: 719px) {
  .btw-ans { padding: 22px 20px; }
  .btw-ans-p { font-size: 15.5px; }
  .btw-spec { grid-template-columns: 1fr; }
  .btw-spec-r:nth-child(odd) { border-inline-end: 0; }
  .btw-spec-r:nth-last-child(2) { border-bottom: 1px solid var(--r-line); }
  .btw-spec-r { padding: 14px 18px; }
  .btw-nope, .btw-links { grid-template-columns: 1fr; }
  .btw-sb-col, .btw-io-b { padding: 22px 20px; }
  .btw-ex { padding: 20px; }
  .btw-qa-i summary { padding: 16px 18px; font-size: 15px; }
  .btw-qa-i p { padding: 0 18px 18px; font-size: 14.5px; }
  .btw-final { padding: 28px 20px; }
}
@media (max-width: 359px) {
  .btw .r-btns .r-btn { max-width: 100%; height: auto; min-height: 52px; white-space: normal; text-align: center; }
  .btw-pass { padding: 16px; }
  .btw-pass-grid { grid-template-columns: 1fr; }
  .btw-node > span:last-child { padding-inline-start: 0; margin-top: 0; }
}
