/* Справочные страницы: банки, коды, форматы счетов.
   Наследуют шапку, подвал и палитру основного сайта; здесь только то,
   чего в нём ещё не было — хлебные крошки, таблицы данных, список вопросов. */

.ref-body main {
  padding-bottom: 72px;
}

/* ── хлебные крошки ── */
.breadcrumbs {
  padding-top: 22px;
  padding-bottom: 4px;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: #6b7280;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: #c3c9d4;
}
.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--brand, #f4623a);
  border-bottom-color: currentColor;
}
.breadcrumbs [aria-current="page"] {
  color: #0f1b33;
  font-weight: 600;
}

/* ── шапка страницы ── */
.ref-hero {
  padding-top: 10px;
  padding-bottom: 26px;
}
.ref-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(27px, 4.2vw, 40px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ref-hero .lede {
  font-size: 17.5px;
  line-height: 1.62;
  color: #46506a;
  margin: 0 0 22px;
}
/* Абзац с расчётами: он на каждой странице свой, поэтому набран
   спокойнее вводного — это справка, а не продолжение обещания. */
.ref-hero .context {
  margin: 0 0 22px;
  padding-left: 16px;
  border-left: 2px solid #e6eaf1;
  font-size: 16px;
  line-height: 1.65;
  color: #5b6579;
}
.ref-hero .context strong {
  color: #0f1b33;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.ref-hero .actions {
  margin: 0;
}

/* ── таблица данных ── */
.ref-table {
  padding-top: 14px;
}
.ref-table h2,
.ref-how h2,
.ref-faq h2,
.ref-trust h2,
.ref-related h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fff;
}
.table-wrap table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
  font-size: 15px;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: top;
}
.table-wrap thead th {
  background: #f6f8fb;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
  font-weight: 600;
  border-bottom: 1px solid #e3e7ee;
}
.table-wrap tbody tr:nth-child(even) {
  background: #fcfdff;
}
.table-wrap tbody tr:hover {
  background: #f6f8fb;
}
.table-wrap tr:last-child td {
  border-bottom: none;
}
.table-wrap .ifsc {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  font-weight: 600;
  color: #0f1b33;
  white-space: nowrap;
}
.table-wrap .addr {
  color: #5b6579;
  font-size: 14px;
}
.table-wrap .num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: #0f1b33;
  font-weight: 600;
}
.table-wrap a {
  color: #0f1b33;
  text-decoration: none;
  border-bottom: 1px solid #dfe4ec;
}
.table-wrap a:hover,
.table-wrap a:focus-visible {
  color: var(--brand, #f4623a);
  border-bottom-color: currentColor;
}
.table-note {
  margin: 12px 2px 0;
  font-size: 14.5px;
  color: #6b7280;
}
.table-note code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13.5px;
  background: #f1f4f9;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── шаги ── */
.ref-how {
  padding-top: 42px;
}
.steps-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 16px 18px 16px 58px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1.55;
}
.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand, #f4623a);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ── вопросы ── */
.ref-faq {
  padding-top: 42px;
}
.faq-item {
  border: 1px solid #e3e7ee;
  border-radius: 10px;
  background: #fff;
  margin-bottom: 10px;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  font-size: 16.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand, #f4623a);
  font-weight: 400;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: "−";
}
.faq-item p {
  margin: 0;
  padding: 0 18px 17px;
  color: #46506a;
  line-height: 1.6;
  font-size: 15.5px;
}

/* ── откуда данные ── */
.ref-source {
  padding-top: 42px;
}
.ref-source p {
  font-size: 15px;
  line-height: 1.62;
  color: #5b6579;
  padding: 16px 18px;
  border: 1px solid #e6eaf1;
  border-radius: 10px;
  background: #fff;
}
.ref-source a {
  color: var(--brand, #f4623a);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 98, 58, 0.35);
}
.ref-source a:hover,
.ref-source a:focus-visible {
  border-bottom-color: currentColor;
}

/* ── доверие ── */
.ref-trust {
  padding-top: 42px;
}
.ref-trust p {
  color: #46506a;
  font-size: 15.5px;
  line-height: 1.6;
  padding: 18px 20px;
  background: #f6f8fb;
  border-radius: 10px;
  border: 1px solid #e8ecf3;
}

/* ── связанные страницы ── */
.ref-related {
  padding-top: 42px;
}
.link-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px 20px;
}
.link-grid a {
  display: block;
  padding: 9px 0;
  font-size: 15.5px;
  color: #0f1b33;
  text-decoration: none;
  border-bottom: 1px solid #eef1f6;
}
.link-grid a:hover,
.link-grid a:focus-visible {
  color: var(--brand, #f4623a);
}

/* указатели: сотни ссылок — колонки уже, строки плотнее, счётчик справа */
.link-grid-tight {
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 2px 22px;
}
.link-grid-tight li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #eef1f6;
}
.link-grid-tight a {
  border-bottom: none;
  padding: 7px 0;
  font-size: 15px;
}
.link-grid-tight .count {
  font-size: 12.5px;
  color: #98a1b3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* указатель по буквам */
.ref-index {
  padding-top: 30px;
}
.alpha-group + .alpha-group {
  margin-top: 30px;
}
.alpha-group .alpha {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand, #f4623a);
  margin: 0 0 8px;
  padding-bottom: 7px;
  border-bottom: 2px solid #eef1f6;
}
.up-links {
  font-size: 15.5px;
  color: #6b7280;
}
.up-links a {
  color: var(--brand, #f4623a);
  text-decoration: none;
  font-weight: 600;
}
.up-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .ref-hero .lede { font-size: 16.5px; }
  .table-wrap th, .table-wrap td { padding: 10px 12px; }
  .steps-list li { padding: 14px 15px 14px 52px; }
}

/* ── поиск по коду IFSC ──
   Классы обязаны совпадать с js/ifsc-lookup.js: расхождение проверяет check.py,
   иначе результат поиска молча остаётся без оформления. */
.ifsc-lookup-block {
  margin-top: 34px;
}
.ifsc-lookup-block h2 {
  margin-bottom: 6px;
}
.ifsc-lookup-block .lookup-lede {
  margin: 0 0 16px;
  color: #4b5563;
}
.ifsc-lookup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.ifsc-lookup label {
  flex: 0 0 100%;
  font-size: 14px;
  color: #6b7280;
}
.ifsc-lookup-input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f1b33;
  background: #fff;
  border: 1px solid #d6dbe4;
  border-radius: 8px;
}
.ifsc-lookup-input:focus-visible {
  outline: 2px solid var(--brand, #f4623a);
  outline-offset: 1px;
  border-color: var(--brand, #f4623a);
}
.ifsc-lookup button {
  flex: 0 0 auto;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--brand, #f4623a);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.ifsc-lookup button:hover,
.ifsc-lookup button:focus-visible {
  filter: brightness(0.94);
}
.ifsc-lookup-result {
  margin-top: 14px;
  font-size: 15px;
}
.ifsc-lookup-result p {
  margin: 0;
  color: #4b5563;
}
.ifsc-lookup-result.is-format p,
.ifsc-lookup-result.is-missing p,
.ifsc-lookup-result.is-failed p {
  padding: 12px 14px;
  background: #fdf3ef;
  /* Рамка по всему контуру, а не цветная полоса слева: полоса-акцент на
     карточке — самый узнаваемый штамп шаблонной вёрстки, и состояние она
     сообщает не лучше, чем обводка. */
  border: 1px solid #f6d6ca;
  border-radius: 8px;
}
.ifsc-lookup-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 22px;
  margin: 0;
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid #e6e9ef;
  border-radius: 10px;
}
.ifsc-lookup-card > div {
  min-width: 0;
}
.ifsc-lookup-card dt {
  margin: 0 0 2px;
  font-size: 13px;
  color: #6b7280;
}
.ifsc-lookup-card dd {
  margin: 0;
  color: #0f1b33;
  overflow-wrap: anywhere;
}
.ifsc-lookup-card dd.ifsc {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.ifsc-lookup-card dd.addr {
  font-size: 14px;
  color: #4b5563;
}
@media (max-width: 640px) {
  .ifsc-lookup button {
    flex: 1 1 100%;
  }
}

/* Подпись таблицы для экранного диктора: он объявляет, что именно перед ним,
   ещё до чтения строк. Зрячему читателю заголовок раздела это уже сказал. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ── калькулятор стоимости на странице коридора ── */
.ref-calc{ margin: 40px auto; }
.calc-card{
  background: var(--cream, #f8f4f0);
  border: 1px solid rgba(15, 27, 51, .1);
  border-radius: 18px;
  padding: 26px 28px 22px;
  max-width: 560px;
}
.calc-field{ display: block; margin-bottom: 14px; }
.calc-field > span{
  display: block;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(15, 27, 51, .6);
  margin-bottom: 8px;
  font-weight: 600;
}
.calc-input{
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(15, 27, 51, .14);
  border-radius: 12px;
  padding: 12px 16px;
}
.calc-input b{ font-size: 26px; color: rgba(15, 27, 51, .45); font-weight: 600; }
.calc-input input{
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 600 26px/1.2 inherit;
  color: var(--navy, #0f1b33);
  font-variant-numeric: tabular-nums;
}
.calc-input:focus-within{ border-color: var(--coral, #ff654d); }

.calc-presets{ display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.calc-presets button{
  border: 1px solid rgba(15, 27, 51, .16);
  background: #fff;
  border-radius: 999px;
  padding: 7px 15px;
  font: 500 14px/1 inherit;
  color: var(--navy, #0f1b33);
  cursor: pointer;
}
.calc-presets button:hover{ border-color: var(--coral, #ff654d); color: var(--coral, #ff654d); }
.calc-presets button:focus-visible{ outline: 2px solid var(--coral, #ff654d); outline-offset: 2px; }

.calc-out{ margin: 0 0 16px; }
.calc-out > div{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 27, 51, .08);
}
.calc-out > div:last-child{ border-bottom: 0; }
.calc-out dt{ color: rgba(15, 27, 51, .66); font-size: 15px; }
.calc-out dd{
  margin: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--navy, #0f1b33);
  white-space: nowrap;
}
.calc-out .calc-total{ border-top: 1px solid rgba(15, 27, 51, .16); margin-top: 4px; }
.calc-out .calc-total dt{ color: var(--navy, #0f1b33); font-weight: 600; }
.calc-out .calc-total dd{ font-size: 20px; color: var(--coral, #ff654d); }

.calc-note{
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(15, 27, 51, .58);
}

@media (max-width: 560px){
  .calc-card{ padding: 20px 18px 18px; border-radius: 14px; }
  .calc-input input, .calc-input b{ font-size: 22px; }
  .calc-out > div{ flex-direction: column; gap: 2px; align-items: flex-start; }
}


/* ══ страница коридора ══ */
.cor-hero{
  background: var(--navy, #0f1b33);
  color: #fff;
  padding: 34px 0 64px;
  position: relative;
  overflow: hidden;
}
.cor-hero::after{
  content: "";
  position: absolute;
  right: -140px; top: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,101,77,.22), transparent 65%);
  pointer-events: none;
}
.cor-hero-grid{
  position: relative;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 940px){
  .cor-hero-grid{ grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
}
.cor-hero .breadcrumbs{ padding: 0; margin: 0 0 22px; }
.cor-hero .breadcrumbs ol{ padding: 0; }
.cor-hero .breadcrumbs a{ color: rgba(255,255,255,.6); }
.cor-hero .breadcrumbs a:hover{ color: #fff; }
.cor-hero .breadcrumbs li{ color: rgba(255,255,255,.85); }
.cor-hero .breadcrumbs li::after{ color: rgba(255,255,255,.35); }
.cor-pair{
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: .16em;
  color: var(--coral, #ff654d);
  margin: 0 0 14px;
  font-weight: 600;
}
.cor-hero h1{
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  margin: 0 0 16px;
  color: #fff;
  letter-spacing: -.02em;
}
.cor-lede{
  color: rgba(255,255,255,.74);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 26px;
  max-width: 48ch;
}

/* полоса доверия */
.cor-trust{ background: var(--cream, #f8f4f0); padding: 22px 0; }
.cor-trust ul{
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 720px){ .cor-trust ul{ grid-template-columns: repeat(3, 1fr); } }
.cor-trust li{ display: flex; flex-direction: column; gap: 3px; }
.cor-trust b{ font-size: 15px; color: var(--navy, #0f1b33); }
.cor-trust span{ font-size: 14px; color: rgba(15,27,51,.62); }

/* шаги */
.cor-steps{ padding: 62px 0 56px; }
.cor-steps h2, .cor-costs h2, .cor-cta h2{
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 10px;
  letter-spacing: -.015em;
}
.step-grid{
  list-style: none; margin: 26px 0 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: 1fr;
}
@media (min-width: 780px){ .step-grid{ grid-template-columns: repeat(3, 1fr); } }
.step-card{
  background: #fff;
  border: 1px solid rgba(15,27,51,.1);
  border-radius: 16px;
  padding: 24px 22px;
}
.step-num{
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--coral, #ff654d); color: #fff;
  font-weight: 700; font-size: 16px; margin-bottom: 14px;
}
.step-card h3{ font-size: 17px; margin: 0 0 8px; }
.step-card p{ margin: 0; font-size: 15px; color: rgba(15,27,51,.7); line-height: 1.55; }

/* стоимость */
.cor-costs{ background: var(--cream, #f8f4f0); padding: 62px 0; }
.cor-sub{ max-width: 66ch; color: rgba(15,27,51,.7); margin: 0 0 22px; }
.cor-costs .ref-table{ margin: 0; }
.cor-costs .ref-table h2{ display: none; }
.cor-costs table{ background: #fff; }
.cor-note{
  margin: 16px 0 0; font-size: 14px; color: rgba(15,27,51,.6);
  font-variant-numeric: tabular-nums;
}

/* способы и отправка */
.cor-methods{ padding: 62px 0 40px; }
.cor-two{ display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 860px){ .cor-two{ grid-template-columns: 1fr 1fr; gap: 56px; } }
.cor-two h2{ font-size: 22px; margin: 0 0 12px; }
.cor-two p{ color: rgba(15,27,51,.72); line-height: 1.6; }

/* нижний призыв */
.cor-cta{
  background: var(--navy, #0f1b33);
  color: #fff;
  padding: 58px 0;
  margin-top: 40px;
  text-align: center;
}
.cor-cta h2{ color: #fff; }
.cor-cta p{ color: rgba(255,255,255,.72); margin: 0 0 24px; }

/* калькулятор внутри тёмного героя */
.cor-hero .ref-calc{ margin: 0; }
.cor-hero .calc-card{
  background: #fff;
  border: 0;
  box-shadow: 0 24px 60px rgba(4,12,27,.34);
  max-width: none;
}
.cor-hero .ref-calc > h2{
  color: rgba(255,255,255,.82);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

/* ── курсы валют ─────────────────────────────────────────────────────────
   Верх страницы — одна тёмная карточка: слева курс, справа пересчёт.
   Раньше блоки были разной ширины и страница выглядела рваной: узкий
   калькулятор, таблица во всю ширину, снова узкий текст. Теперь ширина
   одна, а читаемость текста держится не обрезкой блока, а длиной строки. */
/* Только вертикальные отступы: боковые задаёт .container своим margin,
   и сокращённая запись margin их затирала — карточка вылезала из сетки
   и прижималась к левому краю экрана. */
.fx-head {
  /* Фон во всю ширину экрана, содержимое — по общей сетке сайта. Так же
     устроен верх страницы коридора: полоса от края до края, текст внутри
     в колонке. Раньше здесь была карточка со скруглениями, и рядом с
     полосами коридоров она выглядела чужой. */
  margin: 0 0 26px;
  padding: 34px 0 40px;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(255, 101, 77, .18) 0%, transparent 55%),
    var(--navy, #0f1b33);
  color: #fff;
}
.fx-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 28px;
  align-items: center;
}
.fx-head .breadcrumbs { padding: 0; margin: 0 0 18px; }
.fx-head .breadcrumbs ol { padding: 0; }
.fx-head .breadcrumbs a { color: #9aa7c4; }
.fx-head .breadcrumbs a:hover { color: #fff; }
.fx-head .breadcrumbs li { color: #dbe2f0; }
.fx-head .breadcrumbs li::after { color: #6b7ba0; }
.fx-head-text h1 {
  /* Заголовок скромнее числа: главное на странице курса — само число,
     а не строка над ним. Раньше они спорили размером. */
  color: rgba(255, 255, 255, .93);
  margin: 0 0 4px;
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.fx-quote {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0 3px;
}
.fx-num {
  font-size: clamp(2.6rem, 1.7rem + 3.6vw, 4.2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.fx-unit {
  font-size: clamp(1.05rem, .85rem + .6vw, 1.45rem);
  font-weight: 600;
  letter-spacing: .04em;
  color: #9aa7c4;
}
.fx-per {
  margin: 0 0 18px;
  font-size: 15px;
  /* Тинт от синевы фона, а не плоский серый: серое на цветной подложке
     всегда читается как незакрашенное место. */
  color: #9aa7c4;
}
.fx-move {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 18px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.fx-move b {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: .04em;
  opacity: .82;
}
.fx-move-up { background: rgba(74, 222, 158, .14); color: #6fe3a8; }
.fx-move-down { background: rgba(255, 101, 77, .18); color: #ff9d8d; }
.fx-move-flat { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); }
.fx-meta {
  /* Метками, а не строкой через точки: каждый факт читается отдельно. */
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fx-meta li {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(154, 167, 196, .28);
  background: rgba(154, 167, 196, .10);
  font-size: 13px;
  line-height: 1.35;
  color: #c3cde3;
}
/* ══ калькулятор пары ══
   Живёт прямо в тёмной полосе, без белой карточки вокруг. Обёртка заводила
   прямоугольник в прямоугольнике и отнимала у полей главное — вид поля,
   в которое можно писать. Теперь белое здесь ровно то, что редактируется. */
.fx-widget { color: #fff; }
.fx-widget-head {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #9aa7c4;
}
.fx-field {
  display: flex;
  /* Растягиваем левую ячейку на высоту строки: код встаёт вровень с верхом
     числа, флаг — вровень с низом. Так они совпадают по высоте сами, при
     любом размере шрифта и на любом экране. */
  align-items: stretch;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(11, 18, 32, .22),
    0 10px 24px -12px rgba(11, 18, 32, .45);
  transition: box-shadow .16s cubic-bezier(.16, 1, .3, 1);
}
.fx-field:focus-within {
  box-shadow:
    0 0 0 2px var(--coral, #ff654d),
    0 10px 24px -12px rgba(11, 18, 32, .45);
}
.fx-pick { flex: 0 0 auto; position: relative; }
.fx-cur {
  /* Валюта стоит перед суммой, как в банковской записи, и держит постоянную
     ширину — числа в обеих строках встают по одной вертикали. Внутри две
     половины: сверху код, снизу флаг. */
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding-right: 2px;
  border-radius: 6px;
  cursor: pointer;
  list-style: none;
  transition: background .16s cubic-bezier(.16, 1, .3, 1);
}
.fx-cur::-webkit-details-marker { display: none; }
.fx-cur:hover { background: #f2f0ee; }
.fx-cur-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 32px;
}
.fx-chev {
  flex: 0 0 auto;
  color: #8b93a4;
  transition: transform .16s cubic-bezier(.16, 1, .3, 1);
}
.fx-pick[open] .fx-chev { transform: rotate(180deg); }
.fx-pick[open] .fx-cur { background: #f2f0ee; }

/* Список валют. Открывается вниз, а на нижнем поле — вверх, чтобы не
   уезжать за край полосы. */
.fx-pick-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  left: -6px;
  width: 286px;
  max-width: calc(100vw - 56px);
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(11, 18, 32, .16),
    0 18px 40px -12px rgba(11, 18, 32, .45),
    0 40px 80px -32px rgba(11, 18, 32, .5);
}
/* Оба списка раскрываются вниз. Пробовал раскрывать нижний вверх, чтобы он
   не закрывал кнопку, — он уезжал за верхний край окна, потому что полоса
   начинается почти сразу под шапкой. */
.fx-pick-find {
  width: 100%;
  margin-bottom: 6px;
  padding: 9px 11px;
  border: 1px solid var(--line, #e8e4e0);
  border-radius: 8px;
  background: #fbfaf9;
  font: inherit;
  font-size: 14px;
  color: var(--ink, #101b31);
}
.fx-pick-find:focus {
  outline: none;
  border-color: var(--coral, #ff654d);
  background: #fff;
}
.fx-pick-list {
  max-height: 274px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.fx-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink, #101b31);
  text-decoration: none;
}
a.fx-opt:hover,
a.fx-opt:focus-visible { background: #f6f4f2; }
.fx-opt-flag { flex: 0 0 auto; display: block; width: 24px; }
.fx-opt-flag .fx-flag { width: 24px; height: 18px; }
.fx-opt b {
  flex: 0 0 auto;
  width: 3.4ch;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #46506a;
}
.fx-opt > span:last-child {
  flex: 1 1 auto;
  min-width: 0;
  color: #46506a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-opt.is-hidden { display: none; }
.fx-cur-code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: .02em;
  color: #6b7488;
  transition: color .16s cubic-bezier(.16, 1, .3, 1);
}
.fx-flag {
  /* У флагов в наборе разные пропорции: у американского 1,9:1, у индийского
     1,5:1. По своей высоте они вставали бы разными, и две строки поля не
     совпадали бы между собой. Даём общую рамку и вписываем в неё по краям —
     полотнище подрезается с боков, где у флага и так только продолжение
     полос или поля. */
  display: block;
  width: 30px;
  height: 22px;
  object-fit: cover;
  border-radius: 3px;
  /* Тонкая обводка вместо тени: у белых полотнищ иначе теряется край. */
  box-shadow: 0 0 0 1px rgba(11, 18, 32, .14);
}

.fx-field > input {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  font-size: clamp(32px, 6.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "zero" 1;
  color: var(--ink, #101b31);
  caret-color: var(--coral, #ff654d);
  field-sizing: content;
}
.fx-field > input:focus { outline: none; }
.fx-swap {
  /* Стоит в разрыве между полями и перекрывает его собой. */
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: -12px auto;
  border-radius: 999px;
  border: 1px solid #55628a;
  background: var(--navy, #0f1b33);
  color: #c3cde3;
  text-decoration: none;
  transition: color .16s cubic-bezier(.16, 1, .3, 1),
              border-color .16s cubic-bezier(.16, 1, .3, 1);
}
.fx-swap svg { display: block; }
.fx-swap:hover { color: #fff; border-color: #7f8db3; }
.fx-go {
  display: block;
  width: 100%;
  margin-top: 18px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
}
.fx-widget-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #9aa7c4;
}

/* График в такой же карточке, что и таблица: одна ширина, один вид. */
.fx-chart {
  margin: 0 0 20px;
  padding: 18px 20px 12px;
  border: 1px solid var(--line, #e8e4e0);
  border-radius: 14px;
  background: #fff;
}
.fx-chart svg { width: 100%; height: auto; display: block; }
.fx-line { fill: none; stroke: var(--coral, #ff654d); stroke-width: 2.5; }
.fx-area { fill: rgba(255, 101, 77, .10); }
.fx-chart figcaption {
  font-size: 13px; color: var(--muted, #657086); margin-top: 10px;
}

.src-list { margin: 0 0 12px; padding-left: 18px; font-size: 15px; color: #46506a; }
.src-list li { margin-bottom: 4px; }

@media (max-width: 860px) {
  .fx-head-grid { grid-template-columns: 1fr; gap: 22px; }
}

/* Единая ширина блоков внутри раздела курсов.
   Текстовые блоки справочника ограничены по длине строки — это правильно для
   чтения, но рядом с таблицей во всю ширину страница выглядит рваной.
   Здесь карточка занимает всю ширину, а читаемость держит колонка внутри. */
.fx-page .ref-faq .faq-item,
.fx-page .ref-source p,
.fx-page .ref-trust p { max-width: none; }
.fx-page .ref-source p,
.fx-page .ref-trust p { padding: 18px 22px; }
.fx-page .ref-source p > *,
.fx-page .ref-trust p > * { max-width: 78ch; }
.fx-page .src-list {
  max-width: none;
  padding: 16px 22px 16px 40px;
  border: 1px solid var(--line, #e8e4e0);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #fbfaf9;
  margin-bottom: 0;
}
.fx-page .ref-source p { border-radius: 0 0 10px 10px; }
.fx-page .ref-body h2,
.fx-page .ref-faq h2,
.fx-page .ref-source h2,
.fx-page .ref-related h2 { margin-top: 26px; }

/* ── график курса: оси, сетка, периоды ─────────────────────────────────── */
.fx-chart-box {
  border: 1px solid var(--line, #e8e4e0);
  border-radius: 14px;
  background: #fff;
  padding: 16px 20px 14px;
  margin-bottom: 20px;
}
.fx-periods {
  position: relative;
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #f4f1ee;
  border: 1px solid var(--line, #e8e4e0);
}
/* Индикатор едет под активной кнопкой. Позицию задаёт скрипт, скорость — здесь. */
.fx-thumb {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  border-radius: 999px;
  background: var(--navy, #0f1b33);
  box-shadow: 0 4px 12px rgba(15, 27, 51, .22);
  transform: translateX(0);
  transition: transform .5s var(--ease, cubic-bezier(.2, .75, .25, 1)),
              width .5s var(--ease, cubic-bezier(.2, .75, .25, 1));
  pointer-events: none;
}
.fx-period {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  color: var(--muted, #657086);
  font: inherit; font-size: 13px; font-weight: 600;
  letter-spacing: .04em;
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: color .28s var(--ease, ease);
}
.fx-period:hover { color: var(--ink, #101b31); }
.fx-period.is-on { color: #fff; }
/* Пока скрипт не разместил индикатор, активную кнопку красит она сама —
   иначе без скриптов не видно, какой период выбран. */
.fx-periods:not(.has-thumb) .fx-period.is-on { background: var(--navy, #0f1b33); }
.fx-periods.has-thumb .fx-period.is-on { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .fx-thumb { transition: none; }
}
.fx-chart { margin: 0; }
.fx-chart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 6px;
}
.fx-chart-label {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted, #657086);
}
.fx-change { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fx-change.up { color: var(--green, #22a06b); }
.fx-change.down { color: var(--coral-dark, #e84f38); }
.fx-change.flat { color: var(--muted, #657086); }
.fx-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.fx-grid { stroke: #eeeae6; stroke-width: 1; }
.fx-axis-y, .fx-axis-x {
  font-size: 11.5px; fill: #8b93a5;
  font-family: inherit; font-variant-numeric: tabular-nums;
}
.fx-dot { fill: var(--coral, #ff654d); stroke: #fff; stroke-width: 2; }
.fx-chart-note {
  margin: 10px 0 0; font-size: 12.5px; color: #8b93a5;
}

/* ── призыв на справочной странице ─────────────────────────────────────
   Справочные страницы приводят людей, которым мы ничего не предлагаем:
   посмотрел курс и ушёл. Этот блок связывает справку с услугой — и ведёт
   не «на главную», а на конкретный маршрут, если он у нас есть. */
/* Только вертикальные отступы: боковые задаёт .container.
   Сокращённая запись margin их стирает, и блок уезжает к краю. */
.fx-cta {
  /* Полоса во всю ширину, как верх страницы и как призыв на коридорах.
     Карточка со скруглениями посреди полос выглядела вставкой из другого
     макета — у страницы должен быть один ритм сверху донизу. */
  margin-top: 26px;
  margin-bottom: 26px;
  padding: 30px 0;
  border-top: 1px solid #ffd9d0;
  border-bottom: 1px solid #ffd9d0;
  background: linear-gradient(135deg, var(--coral-soft, #fff0eb) 0%, #fff 70%);
}
.fx-cta-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.fx-cta-eyebrow {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--coral-dark, #e84f38);
}
.fx-cta-box h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.25; }
.fx-cta-box p { margin: 0; max-width: 62ch; font-size: 15px; color: #46506a; }
.fx-cta-box .button { flex: 0 0 auto; }

/* Кнопка в шапке на телефоне.
   В узком меню она прячется под бургер, и справочная страница остаётся
   вообще без предложения — человек читает курс и уходит. Вытаскиваем её
   рядом с бургером; меню при этом работает как работало. */
@media (max-width: 860px) {
  .site-header .nav-wrap { position: relative; }
  .site-header .main-nav .nav-cta {
    position: fixed;
    /* Бургер стоит на 7px от верха и высотой 46 — кнопка обязана совпадать
       с ним и по высоте, и по линии, иначе шапка выглядит собранной криво. */
    top: 7px;
    height: 46px;
    /* У кнопки лендинга свой min-height в 50px — без сброса он побеждает
       и она остаётся выше бургера на четыре пикселя. */
    min-height: 46px;
    right: 68px;
    left: auto;
    /* Внутри меню кнопка тянется на всю его ширину. Вынимая её в шапку,
       ширину нужно вернуть по содержимому, иначе она накрывает логотип. */
    width: auto;
    max-width: calc(100vw - 200px);
    min-width: 0;
    margin: 0;
    z-index: 60;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13.5px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .fx-cta-box { padding: 20px; }
  .fx-cta-box .button { width: 100%; justify-content: center; }
}
@media (max-width: 380px) {
  /* На совсем узких экранах подпись сокращаем, иначе она наезжает на бургер. */
  .site-header .main-nav .nav-cta { font-size: 0; padding: 9px 13px; }
  .site-header .main-nav .nav-cta::after { content: "Sign up"; font-size: 13.5px; }
}

/* Таблица сумм на телефоне.
   Третья колонка — обратный пересчёт — на узком экране вызывала боковую
   прокрутку. Она дублирует то, что и так делает калькулятор наверху,
   поэтому на телефоне её убираем, а не заставляем человека возить таблицу
   пальцем вбок. */
@media (max-width: 620px) {
  .fx-page .ref-table th:nth-child(3),
  .fx-page .ref-table td:nth-child(3) { display: none; }
  .fx-page .table-wrap { overflow-x: visible; }
  .fx-page .ref-table { min-width: 0; width: 100%; }
}

/* ── таблицы на узком экране ────────────────────────────────────────────
   У таблиц справочника жёсткая минимальная ширина в 620 пикселей. На
   мониторе это держит колонки читаемыми, а на телефоне заставляет возить
   любую таблицу пальцем вбок — даже ту, где всего две колонки.
   На узком экране снимаем минимум и поджимаем поля: содержимое почти везде
   помещается само. Прокрутка остаётся как запасной вариант для широких
   таблиц вроде разбора стоимости перевода, но включается по факту, а не
   всегда. */
@media (max-width: 620px) {
  .table-wrap table { min-width: 0; font-size: 14px; }
  .table-wrap th,
  .table-wrap td { padding: 10px 10px; }
  .table-wrap th:first-child,
  .table-wrap td:first-child { padding-left: 12px; }
  .table-wrap th:last-child,
  .table-wrap td:last-child { padding-right: 12px; }
}

/* Таблица стоимости перевода — единственная на пять колонок, и на телефоне
   она не помещается даже поджатой. Последняя колонка («доля от суммы») —
   производная: её легко посчитать из общей стоимости, и ради неё возить
   таблицу вбок не стоит. */
@media (max-width: 620px) {
  .cor-costs .table-wrap th:nth-child(5),
  .cor-costs .table-wrap td:nth-child(5) { display: none; }
}

/* Таблица отделений: код, название, адрес. Адрес — самая длинная колонка,
   из-за неё таблица не влезает даже поджатой. На телефоне прячем её: код
   и название отделения — это то, ради чего страницу открывают, а полный
   адрес там всё равно читается плохо. */
@media (max-width: 620px) {
  .ref-table .table-wrap th:nth-child(3),
  .ref-table .table-wrap td:nth-child(3) { display: none; }
  .ref-table .table-wrap td:first-child {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
  }
}

/* ── показатели банка под тёмным блоком ─────────────────────────────────
   Их четыре, а полоса доверия на странице коридора свёрстана под три —
   четвёртый переносился на новую строку и висел один. Плюс цифры стояли
   на голом фоне, без всякой рамки, и читались как случайный текст.
   Здесь: своя сетка на четыре и карточки, чтобы каждый показатель
   выглядел показателем. */
.cor-facts { padding: 22px 0; background: var(--cream, #f8f4f0); }
.cor-facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cor-facts li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line, #e8e4e0);
  border-radius: 12px;
}
.cor-facts b {
  font-size: 21px; line-height: 1.15; color: var(--ink, #101b31);
  font-variant-numeric: tabular-nums;
}
.cor-facts span {
  font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted, #657086);
}
@media (min-width: 720px) {
  .cor-facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
}

/* Карточка расчёта в тёмном блоке занимала не всю свою колонку, и справа
   оставалось пустое поле шире, чем отступ слева, — блок казался сдвинутым. */
.cor-hero-grid > .ref-calc,
.cor-hero-grid > .ref-calc > .calc-card { width: 100%; }

/* ══ то, что рисует сам браузер ══ */
::selection {
  background: rgba(255, 101, 77, .22);
  color: var(--ink, #101b31);
}
.fx-head ::selection {
  background: rgba(255, 101, 77, .34);
  color: #fff;
}
.fx-widget input { caret-color: var(--coral, #ff654d); }
.fx-page a:focus-visible,
.fx-page button:focus-visible,
.fx-page input:focus-visible {
  outline: 2px solid var(--coral, #ff654d);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ══ поля экрана на телефоне ══
   Общий отступ сайта — 14 пикселей с каждой стороны. Для страницы, где
   слева стоят крупные числа и метки, этого мало: содержимое лепится к
   краям. В разделе курсов расширяем поля, не трогая остальной сайт. */
@media (max-width: 760px) {
  .fx-page .container { width: calc(100% - 44px); }
}
@media (max-width: 420px) {
  .fx-page .container { width: calc(100% - 40px); }
}
