/* MIR74 — страница «Погода в Челябинске на 10 дней».
   Палитра и типографика совпадают с остальными сервисами сайта. */

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

.m74-wp-static h1 {
  margin-bottom: 14px;
}

/* ---------- карточка «сейчас» ---------- */

.m74-wp-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fafd);
  box-shadow: 0 1px 0 rgba(6, 28, 68, .03);
}

.m74-wp-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.m74-wp-hero-ico {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fffdf2, #fdefc6);
  box-shadow: inset 0 0 0 1px #efe0b6;
  color: #dd9700;
}

.m74-wp-hero-ico svg {
  width: 42px;
  height: 42px;
}

.m74-wp-hero[data-wx="partly"] .m74-wp-hero-ico {
  background: radial-gradient(circle at 34% 28%, #fdfeff, #e9f2fb);
  box-shadow: inset 0 0 0 1px #d9e6f2;
  color: #d89215;
}

.m74-wp-hero[data-wx="cloudy"] .m74-wp-hero-ico {
  background: radial-gradient(circle at 34% 28%, #fbfcfe, #e7edf4);
  box-shadow: inset 0 0 0 1px #d7e0ea;
  color: #5f7690;
}

.m74-wp-hero[data-wx="rain"] .m74-wp-hero-ico {
  background: radial-gradient(circle at 34% 28%, #f8fcff, #dbecfb);
  box-shadow: inset 0 0 0 1px #c8e0f5;
  color: #2f6fb5;
}

.m74-wp-hero[data-wx="snow"] .m74-wp-hero-ico {
  background: radial-gradient(circle at 34% 28%, #fdfeff, #e6f1fb);
  box-shadow: inset 0 0 0 1px #d3e6f6;
  color: #4a7fbe;
}

.m74-wp-hero[data-wx="fog"] .m74-wp-hero-ico {
  background: radial-gradient(circle at 34% 28%, #fbfcfd, #e9eef2);
  box-shadow: inset 0 0 0 1px #d8e0e6;
  color: #7c8b9c;
}

.m74-wp-hero[data-wx="storm"] .m74-wp-hero-ico {
  background: radial-gradient(circle at 34% 28%, #fbf8ff, #eee6fb);
  box-shadow: inset 0 0 0 1px #ddd0f3;
  color: #7448bb;
}

.m74-wp-hero-temp {
  font-size: 52px;
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  color: #061c44;
  font-variant-numeric: tabular-nums;
}

.m74-wp-hero[data-temp="cool"] .m74-wp-hero-temp { color: #235d9e; }
.m74-wp-hero[data-temp="cold"] .m74-wp-hero-temp { color: #10457f; }
.m74-wp-hero[data-temp="warm"] .m74-wp-hero-temp { color: #b4531a; }

.m74-wp-hero-state {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 17px;
  font-weight: 650;
  color: #061c44;
  min-width: 0;
}

.m74-wp-hero-state em {
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  color: #637a9e;
  white-space: nowrap;
}

.m74-wp-hero-state .m74-wp-hero-range {
  color: #263d5b;
  font-weight: 600;
}

.m74-wp-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 320px;
  max-width: 470px;
}

.m74-wp-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.m74-wp-facts span {
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a97a8;
}

.m74-wp-facts b {
  font-size: 14px;
  font-weight: 700;
  color: #263d5b;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ---------- переключатель и таблица ---------- */

.m74-wp-tabs {
  position: relative;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

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

.m74-wp-tabbar {
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  background: #fbfcfe;
}

.m74-wp-tabbar label {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  color: #4a5f7d;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, color .15s;
}

.m74-wp-tabbar label:hover {
  background: #eef3fa;
  color: #061c44;
}

#m74wp3:checked ~ .m74-wp-tabbar label[for="m74wp3"],
#m74wp7:checked ~ .m74-wp-tabbar label[for="m74wp7"],
#m74wp10:checked ~ .m74-wp-tabbar label[for="m74wp10"] {
  background: #061c44;
  color: #fff;
}

#m74wp3:focus-visible ~ .m74-wp-tabbar label[for="m74wp3"],
#m74wp7:focus-visible ~ .m74-wp-tabbar label[for="m74wp7"],
#m74wp10:focus-visible ~ .m74-wp-tabbar label[for="m74wp10"] {
  outline: 2px solid #0864ff;
  outline-offset: 2px;
}

#m74wp3:checked ~ .m74-wp-days tbody tr:nth-child(n+4) { display: none; }
#m74wp7:checked ~ .m74-wp-days tbody tr:nth-child(n+8) { display: none; }

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

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

.m74-wp-days tbody th,
.m74-wp-days tbody td {
  padding: 11px 12px;
  border-top: 1px solid #eef2f7;
  vertical-align: middle;
}

.m74-wp-days tbody th {
  text-align: left;
  font-weight: 400;
}

.m74-wp-days tbody th b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #061c44;
}

.m74-wp-days tbody th i {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: #8a97a8;
  white-space: nowrap;
}

.m74-wp-days tbody tr:hover {
  background: #f8fbff;
}

.m74-wp-days tbody tr.is-today {
  background: #f4f8ff;
}

.m74-wp-days tbody tr.is-today th b::after {
  content: "";
}

.m74-wp-wx {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.m74-wp-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #fdfeff, #e9f2fb);
  box-shadow: inset 0 0 0 1px #dde7f2;
  color: #5f7690;
}

.m74-wp-ico svg {
  width: 19px;
  height: 19px;
}

.m74-wp-ico[data-wx="clear"] { color: #dd9700; background: radial-gradient(circle at 34% 28%, #fffdf2, #fdefc6); box-shadow: inset 0 0 0 1px #efe0b6; }
.m74-wp-ico[data-wx="partly"] { color: #d89215; }
.m74-wp-ico[data-wx="rain"] { color: #2f6fb5; background: radial-gradient(circle at 34% 28%, #f8fcff, #dbecfb); box-shadow: inset 0 0 0 1px #c8e0f5; }
.m74-wp-ico[data-wx="snow"] { color: #4a7fbe; background: radial-gradient(circle at 34% 28%, #fdfeff, #e6f1fb); box-shadow: inset 0 0 0 1px #d3e6f6; }
.m74-wp-ico[data-wx="fog"] { color: #7c8b9c; background: radial-gradient(circle at 34% 28%, #fbfcfd, #e9eef2); box-shadow: inset 0 0 0 1px #d8e0e6; }
.m74-wp-ico[data-wx="storm"] { color: #7448bb; background: radial-gradient(circle at 34% 28%, #fbf8ff, #eee6fb); box-shadow: inset 0 0 0 1px #ddd0f3; }

.m74-wp-wx-label {
  font-size: 13px;
  color: #4a5f7d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m74-wp-tday {
  font-size: 15px;
  font-weight: 750;
  color: #061c44;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.m74-wp-tnight {
  font-size: 14px;
  font-weight: 600;
  color: #637a9e;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.m74-wp-precip,
.m74-wp-wind,
.m74-wp-press {
  font-size: 13px;
  color: #4a5f7d;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

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

.m74-wp-chart {
  margin: 0;
  padding: 16px 18px 10px;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  background: #fff;
}

.m74-wp-chart figcaption {
  font-size: 14px;
  font-weight: 700;
  color: #061c44;
  margin-bottom: 10px;
}

.m74-wp-chart figcaption span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 500;
  color: #8a97a8;
}

.m74-wp-chart svg {
  display: block;
  width: 100%;
  height: 210px;
}

.m74-wp-tline {
  fill: none;
  stroke: #2f6fb5;
  stroke-width: 2.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.m74-wp-feel {
  fill: none;
  stroke: #9db4cf;
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
}

.m74-wp-grid {
  stroke: #eef2f7;
  stroke-width: 1;
}

.m74-wp-axis {
  font-size: 11px;
  fill: #8a97a8;
  text-anchor: middle;
}

.m74-wp-axis-t {
  font-size: 11.5px;
  font-weight: 700;
  fill: #4a5f7d;
}

.m74-wp-bar {
  fill: rgba(47, 111, 181, .35);
}

/* ---------- «как одеться» ---------- */

.m74-wp-advice {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid #2f6fb5;
  border-radius: 0 10px 10px 0;
  background: #f4f8ff;
  font-size: 14px;
  line-height: 1.5;
  color: #263d5b;
}

.m74-wp-advice b {
  color: #061c44;
}

/* ---------- города ---------- */

.m74-wp-cities h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  color: #061c44;
}

.m74-wp-cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}

.m74-wp-city {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name ico" "temp temp" "range range";
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #e6edf6;
  border-radius: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.m74-wp-city:hover {
  border-color: #c7d9ef;
  box-shadow: 0 4px 14px rgba(6, 28, 68, .07);
  text-decoration: none;
}

.m74-wp-city-name {
  grid-area: name;
  font-size: 13px;
  font-weight: 650;
  color: #061c44;
  align-self: center;
}

.m74-wp-city-ico {
  grid-area: ico;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f7fd;
  color: #5f7690;
}

.m74-wp-city-ico svg {
  width: 18px;
  height: 18px;
}

.m74-wp-city-t {
  grid-area: temp;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: #061c44;
  font-variant-numeric: tabular-nums;
}

.m74-wp-city-range {
  grid-area: range;
  font-size: 11.5px;
  color: #637a9e;
  font-variant-numeric: tabular-nums;
}

/* ---------- подпись и мелочи ---------- */

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

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

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

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

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

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

.m74-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- анимация иконок ---------- */

@keyframes m74wp-spin { to { transform: rotate(360deg); } }
@keyframes m74wp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.2px); } }
@keyframes m74wp-drop { 0% { opacity: 0; transform: translateY(-1.5px); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(2.6px); } }

.m74-wp-rays { transform-origin: 12px 12px; animation: m74wp-spin 46s linear infinite; }
.m74-wp-cloud { animation: m74wp-bob 6s ease-in-out infinite; }
.m74-wp-drops path { animation: m74wp-drop 1.8s linear infinite; }
.m74-wp-drops path:nth-child(2) { animation-delay: .4s; }
.m74-wp-drops path:nth-child(3) { animation-delay: .85s; }

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

@media (max-width: 900px) {
  .m74-wp-hero { gap: 14px; padding: 16px; }
  .m74-wp-hero-temp { font-size: 44px; }
  .m74-wp-facts { max-width: none; }
}

@media (max-width: 767px) {
  .m74-wp-days { font-size: 13px; }
  .m74-wp-days thead th { padding: 8px 8px; }
  .m74-wp-days tbody th,
  .m74-wp-days tbody td { padding: 9px 8px; }
  .m74-wp-press { display: none; }
  .m74-wp-days thead th:nth-child(7) { display: none; }
  .m74-wp-hero-ico { width: 56px; height: 56px; }
  .m74-wp-hero-ico svg { width: 34px; height: 34px; }
  .m74-wp-chart { padding: 12px 12px 6px; }
  .m74-wp-chart svg { height: 180px; }
}

@media (max-width: 560px) {
  .m74-wp-hero-main { gap: 12px; }
  .m74-wp-hero-temp { font-size: 38px; }
  .m74-wp-hero-state { font-size: 15px; }
  .m74-wp-hero-state em { font-size: 12px; }
  .m74-wp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .m74-wp-wind { display: none; }
  .m74-wp-days thead th:nth-child(6) { display: none; }
  .m74-wp-wx-label { display: none; }
  .m74-wp-tabbar { padding: 8px 8px; gap: 2px; }
  .m74-wp-tabbar label { padding: 6px 10px; font-size: 12px; }
  .m74-wp-cities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m74-wp-city-t { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .m74-wp-rays,
  .m74-wp-cloud,
  .m74-wp-drops path { animation: none; }
}
