/* ===== CSS Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: #2c3e50;
  background: #f5f7fa;
}

/* ===== Header ===== */
.site-header {
  background: #ffffff;
  padding: 1.5rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.logo:hover {
  color: #2980b9;
}

.lang-switch {
  background: #ecf0f1;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* ===== Page Container ===== */
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* ===== Hero Section ===== */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-radius: 16px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Catalog Section ===== */
.catalog {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}

.catalog h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #2c3e50;
  font-weight: 700;
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ===== Cards ===== */
.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.card-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
}

.card-type {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 600;
}

.card-location {
  font-size: 0.85rem;
  color: #95a5a6;
  margin-top: auto;
}

/* ===== Categories (фильтры) ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.category {
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.category.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.35);
}

.category.active h3,
.category.active p {
  color: #ffffff;
}

.category.active p {
  opacity: 0.9;
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.category h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.category p {
  color: #7f8c8d;
  font-size: 0.95rem;
}

.show-all {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.show-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* ===== Страница водоёма ===== */
.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.back-link:hover {
  color: #2980b9;
}

.water-body {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.type-badge {
  display: inline-block;
  background: #ecf0f1;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #7f8c8d;
}

.water-body .name {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 800;
}

.location {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 2rem;
  font-weight: 500;
}

/* ===== Секции страницы водоёма ===== */
.water-body section {
  margin-bottom: 2.5rem;
}

.water-body section:last-child {
  margin-bottom: 0;
}

.water-body h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.water-body p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #34495e;
  margin-bottom: 1rem;
}

/* ===== Факты ===== */
.facts ul {
  list-style: none;
  padding: 0;
}

.facts ul + ul {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #ecf0f1;
}

.facts li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #34495e;
}

.facts li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #3498db;
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1;
}

/* ===== Статистика ===== */
.stats dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
}

.stats dt {
  font-weight: 600;
  color: #7f8c8d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats dd {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c3e50;
  margin-top: 0.25rem;
}

/* ===== Тип водоёма ===== */
.type p {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3498db;
  background: #ecf0f1;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
}

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 2rem;
  color: #95a5a6;
  font-size: 0.9rem;
  margin-top: 3rem;
  border-top: 1px solid #ecf0f1;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .water-body {
    padding: 1.5rem;
  }

  .water-body .name {
    font-size: 1.75rem;
  }

  .stats dl {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}