/* MIR74 — страница «Курс валют в Челябинске». */

.m74-cp {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 26px;
  color: #263d5b;
}

/* ---------- карточки валют ---------- */

.m74-cp-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.m74-cp-card {
  padding: 16px 18px 14px;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.m74-cp-card header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.m74-cp-badge {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #2f6fb5, #1d4d84);
  flex: 0 0 auto;
}

.m74-cp-card[data-cur="EUR"] .m74-cp-badge {
  background: linear-gradient(145deg, #3f7fbf, #16406d);
}

.m74-cp-card[data-cur="CNY"] .m74-cp-badge {
  background: linear-gradient(145deg, #b8443a, #83251d);
}

.m74-cp-name {
  font-size: 14px;
  font-weight: 700;
  color: #061c44;
}

.m74-cp-code {
  margin-left: auto;
  font-size: 10.5px;
  letter-spacing: .06em;
  color: #8a97a8;
  text-transform: uppercase;
}

.m74-cp-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: #061c44;
  font-variant-numeric: tabular-nums;
}

.m74-cp-value span {
  margin-left: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #8a97a8;
}

.m74-cp-delta {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #637a9e;
}

.m74-cp-delta i {
  font-style: normal;
  font-size: 11px;
}

.m74-cp-delta.is-up { color: #1c7a48; }
.m74-cp-delta.is-down { color: #ba3029; }

.m74-cp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.m74-cp-chips span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5fa;
  font-size: 11.5px;
  color: #4a5f7d;
}

.m74-cp-chips b {
  font-weight: 700;
}

.m74-cp-chips b.is-up { color: #1c7a48; }
.m74-cp-chips b.is-down { color: #ba3029; }

.m74-cp-range {
  margin-top: 8px;
  font-size: 11.5px;
  color: #8a97a8;
  font-variant-numeric: tabular-nums;
}

/* ---------- график ---------- */

.m74-cp-chart {
  position: relative;
  padding: 14px 18px 10px;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: #fff;
}

.m74-cp-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.m74-cp-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.m74-cp-chart-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
  color: #061c44;
}

.m74-cp-switch {
  display: flex;
  gap: 4px;
}

.m74-cp-switch label {
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4a5f7d;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, color .15s;
}

.m74-cp-switch label:hover {
  background: #eef3fa;
  color: #061c44;
}

#m74cp-cur-USD:checked ~ .m74-cp-chart-head label[for="m74cp-cur-USD"],
#m74cp-cur-EUR:checked ~ .m74-cp-chart-head label[for="m74cp-cur-EUR"],
#m74cp-cur-CNY:checked ~ .m74-cp-chart-head label[for="m74cp-cur-CNY"] {
  background: #061c44;
  color: #fff;
}

#m74cp-cur-USD:focus-visible ~ .m74-cp-chart-head label[for="m74cp-cur-USD"],
#m74cp-cur-EUR:focus-visible ~ .m74-cp-chart-head label[for="m74cp-cur-EUR"],
#m74cp-cur-CNY:focus-visible ~ .m74-cp-chart-head label[for="m74cp-cur-CNY"] {
  outline: 2px solid #0864ff;
  outline-offset: 2px;
}

.m74-cp-panel {
  display: none;
}

#m74cp-cur-USD:checked ~ .m74-cp-panel[data-cur="USD"],
#m74cp-cur-EUR:checked ~ .m74-cp-panel[data-cur="EUR"],
#m74cp-cur-CNY:checked ~ .m74-cp-panel[data-cur="CNY"] {
  display: block;
}

.m74-cp-panel svg {
  display: block;
  width: 100%;
  height: 240px;
}

.m74-cp-grid {
  stroke: #eff3f8;
  stroke-width: 1;
}

.m74-cp-ytick {
  font-size: 10.5px;
  fill: #97a4b4;
  text-anchor: end;
  font-variant-numeric: tabular-nums;
}

.m74-cp-xtick {
  font-size: 10.5px;
  fill: #97a4b4;
  text-anchor: middle;
}

.m74-cp-line {
  fill: none;
  stroke: #2f6fb5;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.m74-cp-dot {
  fill: #2f6fb5;
  stroke: #fff;
  stroke-width: 1.6;
}

.m74-cp-last {
  font-size: 11.5px;
  font-weight: 700;
  fill: #061c44;
  text-anchor: end;
}

/* ---------- конвертер ---------- */

.m74-cp-conv {
  padding: 14px 18px 16px;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfe);
}

.m74-cp-conv h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 750;
  color: #061c44;
}

.m74-cp-conv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.m74-cp-conv input,
.m74-cp-conv select {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d6e2ef;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: #061c44;
}

.m74-cp-conv input {
  width: 130px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.m74-cp-conv select {
  min-width: 150px;
}

.m74-cp-conv input:focus,
.m74-cp-conv select:focus {
  outline: 2px solid #0864ff;
  outline-offset: 1px;
}

.m74-cp-conv-eq {
  font-size: 15px;
  color: #8a97a8;
}

.m74-cp-conv output {
  font-size: 26px;
  font-weight: 800;
  color: #061c44;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.m74-cp-conv-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #637a9e;
}

/* ---------- банки ---------- */

.m74-cp-banks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.m74-cp-banks h2,
.m74-cp-other h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: #061c44;
}

.m74-cp-banks-src {
  font-size: 11.5px;
  color: #8a97a8;
}

.m74-cp-best {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.m74-cp-best-item {
  padding: 12px 14px;
  border: 1px solid #d9ecdf;
  border-radius: 12px;
  background: #f4fbf6;
}

.m74-cp-best-item span {
  display: block;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6d8a78;
}

.m74-cp-best-item b {
  display: block;
  margin: 2px 0;
  font-size: 22px;
  font-weight: 800;
  color: #145c36;
  font-variant-numeric: tabular-nums;
}

.m74-cp-best-item i {
  font-style: normal;
  font-size: 12px;
  color: #4a5f7d;
}

.m74-cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.m74-cp-table thead th {
  padding: 8px 10px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8a97a8;
  text-align: left;
  white-space: nowrap;
}

.m74-cp-table tbody th,
.m74-cp-table tbody td {
  padding: 10px;
  border-top: 1px solid #eef2f7;
  text-align: left;
  vertical-align: middle;
}

.m74-cp-table tbody th {
  font-weight: 650;
  color: #061c44;
}

.m74-cp-table tbody th i {
  font-style: normal;
  font-size: 11px;
  color: #8a97a8;
}

.m74-cp-table tbody td {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.m74-cp-table td.is-best {
  font-weight: 800;
  color: #145c36;
  background: #f4fbf6;
  border-radius: 8px;
}

.m74-cp-addr {
  color: #637a9e;
  font-size: 12.5px;
  white-space: normal;
}

.m74-cp-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #8a97a8;
}

.m74-cp-other {
  padding: 14px 18px 8px;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: #fff;
}

.m74-cp-other h2 {
  margin-bottom: 6px;
  font-size: 17px;
}

.m74-cp-credit {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #8a97a8;
}

.m74-cp-empty {
  padding: 18px;
  border: 1px dashed #cfdcea;
  border-radius: 12px;
  color: #637a9e;
}

.m74-cp-crumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 12px;
  color: #8a97a8;
}

.m74-cp-crumbs a {
  color: #4a5f7d;
  text-decoration: none;
}

.m74-cp-crumbs a:hover {
  color: #061c44;
  text-decoration: underline;
}

.m74-cp-lead {
  margin: 0 0 16px;
  max-width: 780px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #4a5f7d;
}

/* ---------- адаптив ---------- */

@media (max-width: 980px) {
  .m74-cp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m74-cp-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .m74-cp-cards { grid-template-columns: 1fr; }
  .m74-cp-card:last-child { grid-column: auto; }
  .m74-cp-value { font-size: 28px; }
  .m74-cp-panel svg { height: 200px; }
  .m74-cp-best { grid-template-columns: 1fr; }
  .m74-cp-table { font-size: 13px; }
  .m74-cp-table thead th,
  .m74-cp-table tbody th,
  .m74-cp-table tbody td { padding: 8px 6px; }
  .m74-cp-addr { font-size: 11.5px; }
  .m74-cp-chart-head { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .m74-cp-conv input { width: 100px; }
  .m74-cp-conv select { min-width: 120px; }
  .m74-cp-conv output { font-size: 22px; }
  .m74-cp-table thead th:last-child,
  .m74-cp-table tbody td:last-child { display: none; }
  .m74-cp-value { font-size: 26px; }
  .m74-cp-panel svg { height: 180px; }
}
