/* /wallet-connect/ — стили раздела (seo-1107, зона page-wallet-connect).
   Только токены r26 (assets/r26.css): тёмная тема — без атрибута, светлая — html[data-theme="light"]
   (токены сами переключаются). Приставка wc-. Телефон: 899 / 719 / 359. RTL — логические свойства. */

.wc-top { padding-top: 12px; }
.wc-hero { grid-template-columns: 1.25fr 0.75fr; }
.wc-h1 { font-size: clamp(32px, 3.6vw + 6px, 52px); }
.wc-chips { margin-top: 4px; }
.r-btn .wc-arr, .r-btn svg { flex: none; }
.r-btns .r-btn { gap: 10px; }

/* ── Макет окна подтверждения (первый экран) ─────────────────────────── */
.wc-art { flex-direction: column; align-items: center; gap: 0; }
.wc-sheet {
  position: relative; width: 100%; max-width: 340px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px;
  background: var(--r-surface-3); border: 1px solid var(--r-line-3); border-radius: 24px;
  box-shadow: var(--r-pop-shadow);
}
.wc-sheet-k { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--r-accent); }
.wc-sheet-q { font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--r-text); }
.wc-sheet-rows { margin: 0; display: flex; flex-direction: column; border-top: 1px solid var(--r-line-2); }
.wc-sheet-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--r-line-2); font-size: 13px; }
.wc-sheet-rows dt { color: var(--r-muted); font-weight: 600; }
.wc-sheet-rows dd { margin: 0; color: var(--r-text); font-weight: 700; text-align: end; }
.wc-sheet-btn {
  display: flex; align-items: center; justify-content: center; height: 46px; margin-top: 4px; border-radius: 14px;
  background: var(--r-brand); color: #FFFFFF; font-size: 14px; font-weight: 800;
}
.wc-sheet-note { align-self: center; font-size: 12px; font-weight: 700; color: var(--r-green); }
.wc-toast {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: -14px;
  margin-inline-start: 120px; padding: 10px 14px; border-radius: 16px;
  background: var(--r-raise); border: 1px solid var(--r-line-3); box-shadow: var(--r-pop-shadow);
}
.wc-toast-i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; background: var(--r-green-tint); color: var(--r-green); }
.wc-toast-t { display: flex; flex-direction: column; font-size: 12px; color: var(--r-muted); }
.wc-toast-t b { font-size: 14px; color: var(--r-text); }

/* ── Что это ─────────────────────────────────────────────────────────── */
.wc-intro { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.wc-prose { max-width: 720px; }
.wc-prose p:last-child { margin-bottom: 0; }
.wc-prose h3 { margin-top: 8px; }
.wc-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.wc-facts li { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; }
.wc-facts b { font-size: 20px; font-weight: 800; color: var(--r-text); letter-spacing: -0.01em; }
.wc-facts span { font-size: 14px; color: var(--r-muted); line-height: 1.45; }

/* ── Шаги ────────────────────────────────────────────────────────────── */
.wc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.wc-step { display: flex; flex-direction: column; gap: 10px; padding: 22px; }
.wc-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.wc-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--r-brand-tint); color: var(--r-link); }
.wc-step-n { font-size: 13px; font-weight: 800; color: var(--r-accent); letter-spacing: 0.08em; }
.wc-step-t { font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.25; }
.wc-step-d { font-size: 14px; color: var(--r-muted); line-height: 1.5; }

/* ── Что подписываете ────────────────────────────────────────────────── */
.wc-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wc-duo-b { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.wc-k-ok { color: var(--r-green); }
.wc-k-no { color: var(--r-red); }
.wc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.wc-list li, .wc-risk { display: flex; gap: 14px; align-items: flex-start; }
.wc-mark { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; margin-top: 1px; }
.wc-mark--ok { background: var(--r-green-tint); color: var(--r-green); }
.wc-mark--no { background: var(--r-red-line); color: var(--r-red); }
.wc-li { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wc-li b { font-size: 16px; font-weight: 800; color: var(--r-text); }
.wc-li span { font-size: 14.5px; color: var(--r-muted); line-height: 1.5; }

/* ── Таблицы (сети, сравнение) ───────────────────────────────────────── */
.wc-tbl-wrap { border: 1px solid var(--r-line); border-radius: 24px; overflow: hidden; background: var(--r-surface); }
.wc-tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.wc-tbl th, .wc-tbl td { padding: 16px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--r-line); }
.wc-tbl tbody tr:last-child > * { border-bottom: 0; }
.wc-tbl thead th { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r-faint); background: var(--r-fill-2); }
.wc-tbl tbody th { font-weight: 500; }
.wc-tbl tbody th b { display: block; font-size: 16px; font-weight: 800; color: var(--r-text); }
.wc-tbl tbody th span { display: block; margin-top: 2px; font-size: 13px; color: var(--r-muted); }
.wc-tbl td { color: var(--r-text-2); line-height: 1.5; }
.wc-cmp td:last-child { color: var(--r-text); }
.wc-cmp tbody td:last-child { background: var(--r-brand-tint); }
.wc-small { margin: 0; max-width: 760px; font-size: 14px; color: var(--r-muted); line-height: 1.6; }

/* ── Условия ─────────────────────────────────────────────────────────── */
.wc-terms { margin: 0; padding: 6px 28px; }
.wc-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--r-line); }
.wc-row:last-child { border-bottom: 0; }
.wc-row dt { font-weight: 700; color: var(--r-muted); font-size: 15px; }
.wc-row dd { margin: 0; color: var(--r-text); font-size: 15.5px; line-height: 1.5; font-weight: 600; }

/* ── Сценарии ────────────────────────────────────────────────────────── */
.wc-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wc-case { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.wc-case b { font-size: 17px; font-weight: 800; color: var(--r-text); line-height: 1.25; }
.wc-case p { margin: 0; font-size: 14.5px; color: var(--r-muted); line-height: 1.55; }

/* ── Риски ───────────────────────────────────────────────────────────── */
.wc-risks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wc-risk { padding: 22px; border-radius: 24px; background: var(--r-surface); border: 1px solid var(--r-red-line); }
.wc-risk-i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--r-red-line); color: var(--r-red); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.wc-qa { max-width: 880px; }

/* ── Ссылки «что дальше» и блог ──────────────────────────────────────── */
.wc-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.wc-links--blog { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.wc-link { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; text-decoration: none; color: inherit; transition: border-color 0.2s, background-color 0.2s; }
.wc-link:hover { border-color: var(--r-brand-2); background: var(--r-fill-2); }
.wc-link:focus-visible { outline: 2px solid var(--r-brand-2); outline-offset: 2px; }
.wc-link-t { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 800; color: var(--r-text); }
.wc-link-t .wc-arr { flex: none; color: var(--r-link); }
.wc-link-d { font-size: 14px; color: var(--r-muted); line-height: 1.5; }
.wc-sub { margin-top: 8px; }
.wc-h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--r-text); }
[dir="rtl"] .wc-arr { transform: scaleX(-1); }

/* ── Финальный призыв ────────────────────────────────────────────────── */
.wc-end-sec { padding-bottom: 8px; }
.wc-end { padding: 44px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wc-end-txt { position: relative; display: flex; flex-direction: column; gap: 12px; max-width: 680px; }
.wc-end .r-btns { position: relative; flex: none; }

/* ── Планшет ─────────────────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .wc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wc-cases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  .wc-hero { grid-template-columns: 1fr; }
  .wc-intro { grid-template-columns: 1fr; gap: 24px; }
  .wc-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wc-duo, .wc-risks { grid-template-columns: 1fr; }
  .wc-steps { grid-template-columns: 1fr 1fr; }
  .wc-row { grid-template-columns: 200px minmax(0, 1fr); }
  .wc-end { flex-direction: column; align-items: flex-start; padding: 32px 28px; }
}

/* ── Телефон: таблицы — карточками, подписи колонок из data-t-label ──── */
@media (max-width: 719px) {
  .wc-toast { margin-inline-start: 60px; }
  .wc-facts { grid-template-columns: 1fr; }
  .wc-facts li { padding: 16px 18px; }
  .wc-steps, .wc-cases { grid-template-columns: 1fr; }
  .wc-step, .wc-case { padding: 20px; }
  .wc-duo-b { padding: 22px 20px; }
  .wc-risk { padding: 18px; }

  .wc-tbl-wrap { border: 0; border-radius: 0; background: none; overflow: visible; }
  .wc-tbl, .wc-tbl tbody, .wc-tbl tr, .wc-tbl th, .wc-tbl td { display: block; }
  .wc-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wc-tbl tbody { display: flex; flex-direction: column; gap: 12px; }
  .wc-tbl tr { background: var(--r-surface); border: 1px solid var(--r-line); border-radius: 20px; overflow: hidden; }
  .wc-tbl th, .wc-tbl td { padding: 12px 18px; }
  .wc-tbl tbody th { background: var(--r-fill-2); }
  .wc-tbl tbody tr > * { border-bottom: 1px solid var(--r-line); }
  .wc-tbl tbody tr > *:last-child { border-bottom: 0; }
  .wc-tbl td::before {
    content: attr(data-t-label); display: block; margin-bottom: 4px;
    font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--r-faint);
  }

  .wc-terms { padding: 4px 18px; }
  .wc-row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .wc-row dt { font-size: 13px; }
  .wc-end { padding: 26px 20px; }
  .wc-end .r-btns, .wc-end .r-btn { width: 100%; }
  .wc-end .r-btn { justify-content: center; box-sizing: border-box; }
}
@media (max-width: 359px) {
  .wc-sheet { padding: 18px 16px 14px; }
  .wc-sheet-q { font-size: 18px; }
  .wc-sheet-rows > div { flex-direction: column; gap: 2px; }
  .wc-sheet-rows dd { text-align: start; }
  .wc-toast { margin-inline-start: 24px; }
  .wc-end { padding: 22px 16px; }
}

/* Арабский, хинди, китайский: без разрядки, как в общем слое. */
:is([lang="ar"], [lang="hi"], [lang="zh"]) :is(.wc-sheet-k, .wc-tbl thead th, .wc-step-n) { letter-spacing: 0; }
:is([lang="ar"], [lang="hi"], [lang="zh"]) .wc-tbl td::before { letter-spacing: 0; }

/* qa seo-1107: на узком телефоне (320–375) длинная подпись кнопки (de/pt/fr) переносится, а не вылезает за кнопку. */
@media (max-width: 379px) {
  main .r-btn { white-space: normal; height: auto; min-height: 52px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
}
