
:root {
  --bg:         #FAF6EC;
  --navy:       #0B3A52;
  --navy-soft:  #16526F;
  --card:       #FFFFFF;
  --line:       #E5DFD0;
  --muted:      #6B7A80;
  --text:       #0B3B53;

  --amber:      #E8902A;
  --amber-bg:   #FBEBD7;
  --amber-text: #7A4612;

  --coral:      #E25B4F;
  --coral-bg:   #FBE4E1;
  --coral-text: #8A2E25;

  --teal:       #1C8C82;
  --teal-bg:    #E2F2EE;
  --teal-text:  #0E4F47;

  --sky:        #2E86C1;
  --sky-bg:     #E1EFF8;
  --sky-text:   #15486B;

  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  20px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 28px 2% 60px;
}

header {
  background-color: var(--navy);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 26px 40px;
  width: 90%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}

.headerH13 h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.headerH13 h3 {
  font-size: 14px;
  font-weight: 400;
  color: #BFD7E2;
  margin-top: 5px;
}

header > div:last-child {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.day,
.time {
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: var(--navy-soft);
  color: #fff;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
}

.day  { width: 150px; }
.time { width: 110px; }

.day:focus, .time:focus {
  border-color: rgba(255,255,255,0.5);
}

#btn {
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#btn:hover { background: #178079; }

main {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.data {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.data section {
  border-radius: var(--radius-md);
  padding: 28px 26px 22px;
  border: none;
}

.data section p:first-child {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.85;
}

.data section h2,
.data section .sectionData {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}

.data section p:last-child {
  font-size: 13px;
  opacity: 0.65;
  margin-top: 6px;
}

.data1 { background-color: var(--amber-bg); color: var(--amber-text); }
.data2 { background-color: var(--coral-bg); color: var(--coral-text); }
.data3 { background-color: var(--teal-bg);  color: var(--teal-text);  }
.data4 { background-color: var(--sky-bg);   color: var(--sky-text);   }

.stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stationsTemp,
.stationsWind {
  width: 100%;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  color: var(--text);
}

.stationsTemp h3,
.stationsWind h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 18px;
}

.stationsTemp div,
.stationsWind div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--line);
  border-top: none;
  height: auto;
  margin-bottom: 0;
  font-size: 15px;
}

.stationsTemp div:last-child,
.stationsWind div:last-child {
  border-bottom: none;
}

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

.stationsTemp div span:last-child,
.stationsWind div span:last-child {
  font-weight: 600;
  color: var(--navy);
}

.skeleton-line {
  background: linear-gradient(
    90deg,
    #e0e0e0 25%,
    #f0f0f0 50%,
    #e0e0e0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 6px;
  height: 16px;
  margin-bottom: 10px;
}

.skeleton-title { width: 60%; height: 20px; }
.skeleton-value { width: 40%; height: 32px; }
.skeleton-small { width: 50%; }
.skeleton-name-station {width: 40%; height: 20px;}
.skeleton-value-station { width: 30%; height: 15px;}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
  body { padding: 16px 12px 48px; }

  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
  }

  header > div:last-child {
    width: 100%;
  }

  .day  { flex: 1; width: auto; }
  .time { width: 100px; }

  #btn {
    padding: 0 16px;
    flex-shrink: 0;
  }

  .data {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .data section h2,
  .data section .sectionData {
    font-size: 22px;
  }

  .stations {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .stationsTemp,
  .stationsWind {
    padding: 16px 18px;
  }
}

@media (max-width: 420px) {
  .data { grid-template-columns: 1fr 1fr; gap: 10px; }

  .data section { padding: 14px 14px 12px; }

  .data section h2,
  .data section .sectionData { font-size: 20px; }
}