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

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e57c2 100%);
  min-height: 100vh;
  color: #fff;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* Навигация */
.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  transition: 0.2s;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  background: rgba(255,255,255,0.25);
}

h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.subtitle {
  text-align: center;
  opacity: 0.85;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Контролы */
.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

select, button {
  padding: 12px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: white;
  backdrop-filter: blur(10px);
  cursor: pointer;
  outline: none;
  transition: 0.2s;
}

select {
  min-width: 220px;
}

select option {
  background: #1e3c72;
  color: white;
}

button:hover, select:hover {
  background: rgba(255,255,255,0.25);
}

/* Текущая погода */
.current {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.current .temp {
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  margin: 10px 0;
}

.current .desc {
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 20px;
}

.details {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 1rem;
  opacity: 0.9;
}

/* Прогноз */
.forecast {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 15px;
}

.day {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px 12px;
  text-align: center;
  transition: transform 0.2s;
}

.day:hover {
  transform: translateY(-4px);
}

.day .date {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
}

.day .icon {
  font-size: 2rem;
  margin: 8px 0;
}

.day .temps {
  font-size: 1.1rem;
  font-weight: 500;
}

.day .temps span {
  opacity: 0.7;
  font-size: 0.95rem;
}

/* Текстовые страницы */
.content-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 30px 35px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.content-box h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.content-box p {
  margin-bottom: 15px;
  opacity: 0.92;
}

.content-box ul {
  margin: 15px 0 15px 25px;
  opacity: 0.92;
}

.content-box li {
  margin-bottom: 8px;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 60px 20px;
}

.error-page .code {
  font-size: 6rem;
  font-weight: 300;
  margin-bottom: 10px;
  opacity: 0.9;
}

.error-page p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.85;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: rgba(255,255,255,0.2);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  transition: 0.2s;
}

.btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Служебные */
.loading, .error {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
}

.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer a {
  color: #fff;
}
