.bi-weather {
  box-sizing: border-box;
  margin: 40px 0 0;
  padding: 22px;
  border: 1px solid #d8e2e8;
  border-radius: 16px;
  background: #f5f8fa;
  color: #173244;
  font-family: "Open Sans", Arial, sans-serif;
}

.bi-weather,
.bi-weather * {
  box-sizing: border-box;
}

.bi-weather__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.bi-weather h2 {
  margin: 0;
  color: #dd8500;
  font-family: Bitter, Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.bi-weather__yr-link {
  color: #0b638a;
  font-size: 14px;
  font-weight: 700;
}

.bi-weather__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.bi-weather__summary--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bi-weather__summary-item {
  display: flex;
  min-width: 0;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid #d8e2e8;
  border-radius: 10px;
  background: #ffffff;
}

.bi-weather__summary-copy,
.bi-weather__summary-copy strong,
.bi-weather__label {
  display: block;
}

.bi-weather__summary-copy {
  min-width: 0;
}

.bi-weather__summary-copy strong {
  margin-top: 2px;
  font-size: 17px;
  line-height: 1.25;
}

.bi-weather__current-icon {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.bi-weather__label {
  color: #586b76;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.bi-weather__metric-icon {
  display: block;
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bi-weather__metric-fill {
  fill: currentColor;
  stroke: none;
}

.bi-weather__metric-icon--temperature {
  color: #d86f1d;
}

.bi-weather__metric-icon--rain {
  color: #237bb2;
}

.bi-weather__metric-icon--wind {
  color: #55727f;
}

.bi-weather__metric-icon--gust {
  color: #985300;
}

.bi-weather__table-wrap {
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #d8e2e8;
  border-radius: 12px;
  background: #ffffff;
}

.bi-weather__table {
  width: 100%;
  min-width: 720px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  font-size: 14px;
}

.bi-weather__table th,
.bi-weather__table td {
  padding: 8px 11px;
  border: 0;
  border-bottom: 1px solid #e3eaee;
  text-align: left;
  white-space: nowrap;
}

.bi-weather__table thead th {
  background: #eef3f6;
  color: #586b76;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bi-weather__table tbody tr:last-child th,
.bi-weather__table tbody tr:last-child td {
  border-bottom: 0;
}

.bi-weather__table tbody th {
  color: #173244;
  font-weight: 800;
}

.bi-weather__column-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bi-weather__column-label .bi-weather__metric-icon {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
}

.bi-weather__hour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bi-weather__hour-icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
}

.bi-weather__note,
.bi-weather__source {
  color: #586b76;
  font-size: 13px;
}

.bi-weather__note {
  margin: 14px 0 0;
}

.bi-weather__source {
  margin: 7px 0 0;
}

.bi-weather__source a {
  color: #0b638a;
}

.bi-weather-error {
  margin: 32px 0;
  padding: 16px 18px;
  border-left: 4px solid #985300;
  background: #fff4e5;
  color: #173244;
}

@media (max-width: 950px) {
  .bi-weather__summary,
  .bi-weather__summary--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .bi-weather {
    margin-top: 32px;
    padding: 16px;
  }

  .bi-weather h2 {
    font-size: 22px;
  }

  .bi-weather__summary,
  .bi-weather__summary--three {
    grid-template-columns: 1fr;
  }

  .bi-weather__summary-item {
    min-height: 62px;
  }
}
