/*
 * /invoices/countries/ — оплата инвойса во всех странах (SEO-волна 25.11.2026, tools/invoice-countries-page.mjs).
 * Поверх assets/r26-invoices.css (inv-*): здесь только своё, приставка ivc-.
 * Только токены r26 (тёмная тема — без атрибута, светлая — html[data-theme="light"]), логические свойства для RTL.
 * Телефон: 899 / 719 / 359 px; на 320 без боковой прокрутки — таблицы стран складываются в карточки.
 */

/* ══ Первый экран: карточка со счётом стран ═══════════════════════════════ */
.ivc-art .inv-rc-row b { font-variant-numeric: tabular-nums; }

/* ══ Цифры, одинаковые везде ══════════════════════════════════════════════ */
.ivc-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ivc-fact { padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ivc-fact b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--r-text); line-height: 1.15; }
.ivc-fact span { font-size: 14px; line-height: 1.5; color: var(--r-muted); }

/* ══ Как читать таблицы ═══════════════════════════════════════════════════ */
.ivc-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ivc-kind { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ivc-kind-n { align-self: flex-start; font-size: 13px; font-weight: 800; color: var(--r-link); background: var(--r-brand-tint); border-radius: 999px; padding: 4px 10px; font-variant-numeric: tabular-nums; }
.ivc-kind-t { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--r-text); }
.ivc-kind-d { margin: 0; font-size: 14px; line-height: 1.6; color: var(--r-text-2); }
.ivc-note-ic { color: var(--r-link); background: var(--r-brand-tint); }

/* ══ Поиск и содержание ═══════════════════════════════════════════════════ */
.ivc-find { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.ivc-search { display: flex; flex-direction: column; gap: 8px; }
.ivc-search[hidden] { display: none; }
.ivc-s-l { font-size: 14px; font-weight: 800; color: var(--r-text); }
.ivc-s-box { position: relative; display: flex; align-items: center; }
.ivc-s-box > svg { position: absolute; inset-inline-start: 14px; color: var(--r-muted); pointer-events: none; }
.ivc-s-in { width: 100%; padding-inline-start: 42px; padding-inline-end: 96px; }
.ivc-s-in::-webkit-search-cancel-button { display: none; }
.ivc-s-x { position: absolute; inset-inline-end: 8px; border: 0; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 700;
  color: var(--r-text); background: var(--r-fill-2); cursor: pointer; }
.ivc-s-x:hover { background: var(--r-fill-3); }
.ivc-s-x:focus-visible { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.ivc-s-st { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--r-muted); }
.ivc-s-none { margin: 0; font-size: 15px; color: var(--r-text-2); }

.ivc-toc { display: flex; flex-direction: column; gap: 10px; }
.ivc-toc-h { margin: 0; font-size: 20px; font-weight: 800; color: var(--r-text); }
.ivc-toc-r { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ivc-toc-r a { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px;
  background: var(--r-fill-1); border: 1px solid var(--r-line); color: var(--r-text); text-decoration: none; font-weight: 700; font-size: 15px; min-width: 0; }
.ivc-toc-r a span { min-width: 0; overflow-wrap: anywhere; }
.ivc-toc-r a bdi { flex: none; font-size: 13px; color: var(--r-muted); font-variant-numeric: tabular-nums; }
.ivc-toc-r a:hover { border-color: var(--r-brand-2); }
.ivc-toc-p { margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--r-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ivc-toc-c { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ivc-toc-c .r-chip { text-decoration: none; }

/* ══ Регион: развёрнутые страны ═══════════════════════════════════════════ */
.ivc-reg { scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.ivc-dets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ivc-d { padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.ivc-d:target, .ivc-tbl tr:target { outline: 2px solid var(--r-accent); outline-offset: 2px; }
.ivc-d-t { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; letter-spacing: -0.01em; color: var(--r-text); }
.ivc-d-p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--r-text-2); }
.ivc-d-f { margin: 6px 0 0; padding: 14px 0 0; border-top: 1px solid var(--r-line); display: flex; flex-direction: column; gap: 10px; }
.ivc-d-f > div { display: grid; grid-template-columns: 34% minmax(0, 1fr); gap: 12px; }
.ivc-d-f dt { font-size: 13px; font-weight: 800; color: var(--r-muted); }
.ivc-d-f dd { margin: 0; font-size: 14px; color: var(--r-text-2); min-width: 0; }
.ivc-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--r-link); text-decoration: none; }
.ivc-more:hover { color: var(--r-link-hover); }
.ivc-more .inv-arr { position: static; flex: none; }
[dir="rtl"] .ivc-more .inv-arr { transform: scaleX(-1); }

/* ══ Регион: таблица остальных стран ══════════════════════════════════════ */
.ivc-tbl thead th { font-size: 13px; color: var(--r-muted); background: var(--r-fill-1); }
.ivc-tbl tbody th { width: 24%; scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.ivc-tbl tbody tr { scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.ivc-tbl td:nth-child(2) { width: 28%; }
.ivc-cn { color: var(--r-muted); font-size: 13px; }
.ivc-ml { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ivc-ml li { min-width: 0; overflow-wrap: anywhere; }
.ivc-ml b { color: var(--r-text); font-weight: 700; }
.ivc-f { color: var(--r-text-2); }
.ivc-f::before { content: "— "; color: var(--r-muted); }
.ivc-b { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  line-height: 1.5; vertical-align: 1px; color: var(--r-text-2); background: var(--r-fill-2); white-space: nowrap; }
.ivc-b--fast { color: var(--r-green); background: var(--r-green-tint); }
.ivc-b--req { color: var(--r-link); background: var(--r-brand-tint); }
.ivc-hide { display: none !important; }

@media (max-width: 1199px) {
  .ivc-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .ivc-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ivc-dets { grid-template-columns: minmax(0, 1fr); }
  .ivc-toc-r { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
  .ivc-find, .ivc-d, .ivc-kind { padding: 20px; }
  .ivc-kinds { grid-template-columns: minmax(0, 1fr); }
  .ivc-fact { padding: 16px 18px; }
  .ivc-fact b { font-size: 22px; }
  .ivc-toc-r { grid-template-columns: minmax(0, 1fr); }
  .ivc-d-f > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ivc-tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ivc-tbl, .ivc-tbl tbody, .ivc-tbl tr, .ivc-tbl th, .ivc-tbl td { display: block; width: auto; }
  .ivc-tbl tbody th, .ivc-tbl td:nth-child(2) { width: auto; }
  .ivc-tbl tr { padding: 14px 16px; border-bottom: 1px solid var(--r-line); }
  .ivc-tbl tbody tr:last-child { border-bottom: 0; }
  .ivc-tbl :is(th, td) { padding: 0; border-bottom: 0; }
  .ivc-tbl tbody th { font-size: 16px; padding-bottom: 6px; }
  .ivc-tbl td { font-size: 14px; padding-top: 6px; }
  .ivc-tbl td::before { content: attr(data-l); display: block; font-size: 12px; font-weight: 800; color: var(--r-muted); margin-bottom: 2px; }
  .ivc-b { white-space: normal; }
}
@media (max-width: 359px) {
  .ivc-facts { grid-template-columns: minmax(0, 1fr); }
  .ivc-s-in { padding-inline-end: 14px; }
  .ivc-s-x { display: none; }
}

/* countries-payouts-1126: логотип банка как в приложении (img/r26/pm/<id>.webp) и якорь #iv-<id> у каждого банка. */
.ivc-logo { width: 24px; height: 24px; flex: none; border-radius: 7px; object-fit: cover; vertical-align: middle; margin-inline-end: 8px; background: #FFFFFF; }
.ivc-logo--ic { display: inline-flex; align-items: center; justify-content: center; background: var(--r-brand-tint); color: var(--r-link); }
.ivc-ml li { scroll-margin-top: 12px; }
.ivc-ml li:target { background: var(--r-brand-tint); border-radius: 8px; }
.ivc-logo--ic { display: inline-block; vertical-align: middle; position: relative; }
.ivc-logo--ic::before {
  content: ''; position: absolute; inset: 5px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18M12 3l9 5H3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10h18M5 10v8M9.5 10v8M14.5 10v8M19 10v8M3 20h18M12 3l9 5H3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ══ directory-1126: справочники /payouts/all-methods/ и /pay-tuition/universities/ (tools/directory-pages.mjs) ══
   Поверх inv-/ivc-: страна — <details class="dir-c"> (якорь #<cc>), способ / вуз — <li id>. Тёмная тема — без атрибута,
   светлая — те же токены r26. Логические свойства (RTL для ar). Телефон 320/390 без боковой прокрутки. */
.dir-legend-sec .r-lead { max-width: 80ch; }
.dir-reg { scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.dir-reg-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.dir-reg-n { font-size: 15px; font-weight: 800; color: var(--r-link); background: var(--r-brand-tint); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.dir-list { display: flex; flex-direction: column; gap: 8px; }
.dir-c { border-radius: 18px; background: var(--r-surface); border: 1px solid var(--r-line); min-width: 0; scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.dir-c > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-height: 56px; border-radius: 18px; }
.dir-c > summary::-webkit-details-marker { display: none; }
.dir-c > summary:focus-visible { outline: 2px solid var(--r-accent); outline-offset: -2px; }
.dir-c > summary:hover { background: var(--r-hover, var(--r-fill-1)); }
.dir-c:target, .dir-c[open] { border-color: var(--r-line-2); }
.dir-c:target > summary { outline: 2px solid var(--r-accent); outline-offset: -2px; }
.dir-flag { flex: none; width: 30px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px var(--r-line); }
.dir-flag--t { display: inline-grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--r-muted); background: var(--r-fill-2); }
.dir-flag--ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: var(--r-link); background: var(--r-brand-tint); box-shadow: none; }
.dir-flag--ic svg { width: 18px; height: 18px; }
.dir-cn { font-size: 16px; font-weight: 800; color: var(--r-text); min-width: 0; overflow-wrap: anywhere; }
.dir-cm { margin-inline-start: auto; font-size: 13px; color: var(--r-muted); text-align: end; font-variant-numeric: tabular-nums; }
.dir-chev { flex: none; color: var(--r-muted); transition: transform .2s ease; }
.dir-c[open] > summary .dir-chev, .dir-allc[open] > summary .dir-chev { transform: rotate(180deg); }
.dir-note { margin: 0; padding: 0 18px 8px; font-size: 14px; color: var(--r-text-2); }
.dir-ml, .dir-ul { list-style: none; margin: 0; padding: 0 10px 10px; }
.dir-ml li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--r-line); min-width: 0; scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.dir-ml li .ivc-logo { margin: 1px 0 0; }
.dir-mt { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.dir-mt b { font-size: 15px; font-weight: 800; color: var(--r-text); overflow-wrap: anywhere; unicode-bidi: isolate; }
.dir-k { font-size: 13px; color: var(--r-muted); }
.dir-mt .ivc-b { margin-inline-start: 0; }
.dir-f { flex-basis: 100%; font-size: 13.5px; line-height: 1.5; color: var(--r-text-2); overflow-wrap: anywhere; }
.dir-x { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.dir-x .ivc-b { margin: 0; }
.dir-ml li:target, .dir-ul li:target { background: var(--r-brand-tint); border-radius: 10px; }
.dir-cpage { margin: 0 18px 14px; padding-top: 0; }
.dir-ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding: 0 18px 12px; }
.dir-ul li { padding: 7px 0; border-top: 1px solid var(--r-line); font-size: 14.5px; line-height: 1.45; color: var(--r-text); min-width: 0; overflow-wrap: anywhere; scroll-margin-top: calc(var(--r-hdr-h, 64px) + 12px); }
.dir-ul li small { display: block; font-size: 12.5px; color: var(--r-muted); direction: ltr; text-align: start; unicode-bidi: isolate; }
.dir-ul li .ivc-b { margin-inline-start: 0; margin-top: 3px; }
[dir="rtl"] .dir-ul li { unicode-bidi: plaintext; }
.dir-allc { border-top: 1px solid var(--r-line); padding-top: 10px; }
.dir-allc > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 14px; font-weight: 800; color: var(--r-link); }
.dir-allc > summary::-webkit-details-marker { display: none; }
.dir-allc .ivc-toc-c { margin-top: 8px; }
.dir-allc .r-chip { min-height: 36px; }
.dir-none { margin-block: 12px; }
.dir-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dir-steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dir-step { padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dir-step-n { align-self: flex-start; width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--r-link); background: var(--r-brand-tint); }
.dir-step h3 { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--r-text); }
.dir-step p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--r-text-2); }
.dir-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.dir-links-h { flex-basis: 100%; font-size: 13px; font-weight: 800; color: var(--r-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dir-links .r-chip { text-decoration: none; min-height: 40px; }
.dir .ivc-hide { display: none !important; }
@media (max-width: 1023px) {
  .dir-steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  .dir-steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .dir-ul { grid-template-columns: minmax(0, 1fr); padding: 0 14px 10px; }
  .dir-c > summary { padding: 12px 14px; gap: 10px; flex-wrap: wrap; }
  .dir-cm { flex-basis: 100%; order: 3; margin-inline-start: 40px; text-align: start; }
  .dir-chev { order: 2; margin-inline-start: auto; }
  .dir-ml { padding: 0 6px 8px; }
  .dir-ml li { flex-wrap: wrap; }
  .dir-x { flex-direction: row; flex-wrap: wrap; align-items: center; flex-basis: 100%; padding-inline-start: 34px; }
  .dir-steps--4 { grid-template-columns: minmax(0, 1fr); }
  .dir-step { padding: 18px; }
  .dir-cpage { margin: 0 14px 12px; }
}
.dir-links .r-chip { white-space: normal; max-width: 100%; height: auto; padding-block: 8px; line-height: 1.35; }
.dir-allc .r-chip { white-space: normal; max-width: 100%; height: auto; }
.dir .inv-chips .r-chip { white-space: normal; max-width: 100%; height: auto; min-height: 32px; padding-block: 6px; line-height: 1.35; }
.dir .r-btns .r-btn { max-width: 100%; white-space: normal; height: auto; text-align: center; }
.dir .r-btns .r-btn { min-height: 54px; padding-block: 8px; line-height: 1.25; }
.dir .r-btns .r-btn--lg { min-height: 56px; }
.dir-toc[hidden] { display: none; }
