/* Оформление anybankcredits.ru: белые карточки на светлом фоне, одна акцентная кнопка на экран, табличные цифры. Сначала телефон, остальное в @media */

:root {
  --accent: #1670ad;
  --accent-dark: #125a8c;
  --accent-soft: #eaf3fa;
  --brand: #2693c9;
  --green: #1e8e3e;
  --green-soft: #e6f4ea;
  --red: #d33a2c;
  --red-soft: #fcebe9;
  --amber: #b8690a;
  --amber-soft: #fff4e0;
  --text: #1a2330;
  --muted: #66727f;
  --line: #e2e7ed;
  --bg: #f5f7fa;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 16px;
}

body {
  font: 16px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

.cont {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

h1 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

h2 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 32px 0 12px;
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 20px 0 8px;
}

p {
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.up {
  color: var(--green);
}

.down {
  color: var(--red);
}

.num,
.value,
.kpi_value,
table td.num {
  font-variant-numeric: tabular-nums;
}

/* Кнопки, поля, чипы */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  color: var(--accent);
}

.btn.secondary:hover {
  background: var(--accent-soft);
}

.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.input,
input[type="text"],
input[type="search"],
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #c3ccd6;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

input[type="text"]:focus,
input[type="search"]:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.chips a,
.chips span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chips a.active,
.chips span.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
}

.badge.warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.badge.bad {
  background: var(--red-soft);
  color: var(--red);
}

.badge.ok {
  background: var(--green-soft);
  color: var(--green);
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

/* Шапка: логотип и поиск, меню прокруткой, тонкая строка курсов */

.site_header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.site_header .top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.brand {
  flex: none;
}

.brand img {
  display: block;
  height: 40px;
  width: auto;
}

.site_search {
  display: flex;
  flex: 1;
  min-width: 0;
}

.site_search input {
  border-radius: 8px 0 0 8px;
  border-right: 0;
  min-height: 40px;
}

.site_search button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.site_nav .cont {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site_nav .cont::-webkit-scrollbar {
  display: none;
}

.site_nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 10px 12px;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.site_nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.site_nav a:hover {
  color: var(--accent);
}

.ticker {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.ticker .cont {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 6px;
  padding-bottom: 6px;
  font-size: 13px;
}

.ticker .cont::-webkit-scrollbar {
  display: none;
}

.ticker_item {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.ticker_item .code {
  color: var(--muted);
}

.ticker_item .value {
  font-weight: 600;
}

/* Заголовок страницы: крошки, H1, строка источника */

.page_head {
  padding: 16px 0 4px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb li + li::before {
  content: "›";
  margin-right: 8px;
}

.breadcrumb .active {
  color: var(--text);
}

.page_meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 12px;
}

.block {
  padding: 8px 0 32px;
}

.block.soft {
  background: var(--bg);
  padding: 24px 0;
}

/* Главное число и карточки показателей */

.rate_now {
  margin: 8px 0 16px;
  line-height: 1.2;
}

.rate_now strong {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rate_now .up,
.rate_now .down {
  font-size: 18px;
  font-weight: 600;
}

.rate_now .muted {
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.rate_cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.rate_card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

a.rate_card:hover {
  border-color: var(--accent);
}

.rate_card .code {
  font-size: 13px;
  color: var(--muted);
}

.rate_card .value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.rate_card .delta {
  font-size: 14px;
  font-weight: 600;
}

.rate_card .delta:empty::before {
  content: "без изменений";
  color: var(--muted);
  font-weight: 400;
}

.rate_card .name {
  font-size: 13px;
  color: var(--muted);
}

/* Инструмент: конвертер и калькулятор */

.tool {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 0 0 20px;
}

.convert_form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
  margin: 0;
}

.convert_form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.convert_form input[type="text"] {
  font-size: 18px;
  font-weight: 600;
}

.convert_form .pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: end;
}

.convert_form .swap {
  min-height: 44px;
  width: 44px;
  border: 1px solid #c3ccd6;
  border-radius: 8px;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.convert_form input[type="submit"],
.calc_form input[type="submit"] {
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.convert_form input[type="submit"]:hover,
.calc_form input[type="submit"]:hover {
  background: var(--accent-dark);
}

.calc_layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 24px;
}

.calc_form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  align-content: start;
}

.calc_form .field.wide,
.calc_form .submit {
  grid-column: 1 / -1;
}

.calc_form label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 4px;
}

.calc_form input[type="text"] {
  font-size: 17px;
  font-weight: 600;
}

.calc_form .presets {
  grid-column: 1 / -1;
  margin: 0;
}

.calc_result {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.calc_result .rate_now {
  margin-top: 0;
}

.breakdown {
  list-style: none;
  margin: 0 0 8px;
}

.breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.breakdown li span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* График: SVG-линия с периодами */

.chart_box {
  margin: 0 0 20px;
}

.chart_box .tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 8px;
}

.chart_box .tabs button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}

.chart_box .tabs button.active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.chart_box .panel[hidden] {
  display: none;
}

.chart {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.chart .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
}

.chart .area {
  fill: var(--accent-soft);
}

.chart .grid {
  stroke: var(--line);
  stroke-width: 1;
}

.chart text {
  font-size: 11px;
  fill: var(--muted);
}

.chart_note {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

/* Таблицы */

.table_wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table.rates {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

table.rates th,
table.rates td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

table.rates tbody tr:last-child td {
  border-bottom: 0;
}

table.rates th {
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  background: var(--bg);
  white-space: nowrap;
}

table.rates .num {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

table.rates .code {
  font-weight: 600;
  white-space: nowrap;
}

table.rates .name {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}

table.rates th:first-child,
table.rates td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
}

table.rates th:first-child {
  background: var(--bg);
}

table.rates tr.best td {
  background: var(--green-soft);
}

table.rates tr.today td {
  font-weight: 600;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 16px;
}

.stats .card {
  padding: 12px 14px;
}

.stats .card .code {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.stats .card .row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 3px 0;
}

.stats .card .row span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Суммы в обе стороны */

.amounts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 20px;
}

.amounts .table_wrap {
  margin: 0;
}

.neighbours {
  margin: 0 0 16px;
}

/* «Что дальше» */

.next {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 16px;
  margin: 24px 0;
}

.next h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.next ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.next li a {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.next li a:hover {
  border-color: var(--accent);
}

.next li a strong {
  display: block;
  color: var(--accent);
  font-weight: 600;
}

.next li a span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* Вопросы и ответы, свёрнутые списки */

.faq details,
.fold {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary,
.fold summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.faq summary::-webkit-details-marker,
.fold summary::-webkit-details-marker {
  display: none;
}

.faq summary::after,
.fold summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  flex: none;
}

.faq details[open] summary::after,
.fold[open] summary::after {
  content: "−";
}

.faq summary h3 {
  margin: 0;
  font-size: 16px;
}

.faq details p {
  margin: 0 0 12px;
  color: var(--text);
}

.fold {
  border-bottom: 1px solid var(--line);
  margin: 0 0 20px;
}

/* Поиск, алфавит, списки организаций */

.search_form {
  display: flex;
  margin: 0 0 16px;
}

.search_form input {
  border-radius: 8px 0 0 8px;
  border-right: 0;
}

.search_form button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 16px;
}

.alphabet a {
  min-width: 34px;
  padding: 5px 6px;
  text-align: center;
  text-decoration: none;
  background: var(--bg);
  border-radius: 6px;
  font-weight: 500;
}

h2.letter {
  color: var(--muted);
  font-size: 15px;
  margin: 20px 0 6px;
}

.org_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 20px;
}

.org {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
}

.org:hover {
  border-color: var(--accent);
}

.org img {
  height: 32px;
  width: auto;
  max-width: 110px;
  flex: none;
}

.org strong {
  display: block;
  font-weight: 600;
}

.org span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.entity_head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  margin: 0 0 12px;
}

.logo {
  display: block;
  max-width: 200px;
  height: 40px;
  width: auto;
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 0 0 8px;
}

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.jump a {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--text);
}

.jump a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.requisites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

.requisite {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.requisite .label {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}

.requisite .value {
  font-size: 18px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.requisite .copy {
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.details {
  margin: 0 0 20px;
}

.details dt {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}

.details dd {
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.pairs {
  list-style: none;
  margin: 0 0 20px;
}

.pairs li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.pairs .name {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.links a {
  display: inline-block;
  margin: 0 12px 8px 0;
}

.links a.active {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.review {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.review .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 14px;
  margin: 0 0 6px;
}

.review .score {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--green-soft);
  color: var(--green);
}

.review .score.bad {
  background: var(--red-soft);
  color: var(--red);
}

.review p:last-child {
  margin: 0;
}

.pager {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
}

.source {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 0;
}

/* Статьи */

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.byline .check {
  color: var(--green);
  font-weight: 600;
}

.lead {
  max-width: 740px;
  font-size: 18px;
  line-height: 1.5;
}

.toc {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 20px;
  max-width: 740px;
}

.toc strong {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
}

.toc ol {
  margin: 0 0 0 20px;
  font-size: 15px;
}

.article {
  max-width: 740px;
  font-size: 17px;
}

.article h2 {
  margin-top: 28px;
}

.article h3 {
  font-size: 18px;
  margin: 20px 0 8px;
}

.article ul,
.article ol {
  margin: 0 0 16px 22px;
}

.article li {
  margin: 0 0 4px;
}

.article table {
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
  width: 100%;
}

.article th,
.article td {
  padding: 8px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article th {
  background: var(--bg);
}

.faq {
  max-width: 740px;
}

.sources {
  margin: 0 0 16px 22px;
  font-size: 14px;
  max-width: 740px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 20px;
}

.cards a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}

.cards a:hover {
  border-color: var(--accent);
}

.cards a strong {
  display: block;
  font-weight: 600;
  margin: 0 0 4px;
}

.cards a span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

.cards a .tag {
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 4px;
}

/* Главная */

.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 20px 0 24px;
}

.hero h1 {
  margin: 0 0 4px;
}

.hero .page_meta {
  margin: 0 0 16px;
}

.hero_form {
  margin: 0;
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 8px;
}

.tile {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
}

.tile:hover {
  border-color: var(--accent);
}

.tile strong {
  display: block;
  color: var(--accent);
  margin: 0 0 4px;
}

.tile span {
  font-size: 14px;
  color: var(--muted);
}

.two_col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Подвал */

.site_footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
  color: var(--muted);
}

.site_footer .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 0 20px;
}

.site_footer .brand_col {
  grid-column: 1 / -1;
}

.site_footer .col a {
  display: block;
  margin: 0 0 6px;
  color: var(--text);
  text-decoration: none;
}

.site_footer .col a:hover {
  color: var(--accent);
}

.site_footer .title {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.site_footer .fine {
  font-size: 12px;
  margin: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  .site_header .top {
    gap: 20px;
    padding: 12px 16px;
  }

  .site_search {
    flex: 0 1 360px;
    margin-left: auto;
  }

  .ticker .cont {
    font-size: 14px;
    gap: 24px;
  }

  .rate_now strong {
    font-size: 40px;
  }

  .rate_cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .convert_form {
    grid-template-columns: 1fr 2fr auto;
  }

  .convert_form.simple {
    grid-template-columns: 1fr auto;
  }

  .convert_form input[type="submit"] {
    width: auto;
  }

  .calc_layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .amounts {
    grid-template-columns: 1fr 1fr;
  }

  .next ul {
    grid-template-columns: repeat(3, 1fr);
  }

  .org_grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .requisites {
    grid-template-columns: repeat(3, 1fr);
  }

  .details {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 24px;
    align-items: baseline;
  }

  .details dt {
    margin: 0;
  }

  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .two_col {
    grid-template-columns: 2fr 1fr;
  }

  table.rates {
    font-size: 16px;
  }

  table.rates .name {
    display: inline;
    margin-left: 8px;
  }

  .site_footer .cols {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .site_footer .brand_col {
    grid-column: auto;
  }
}

@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .org_grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
