/* ===== Общие стили ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #333;
  background-color: #faf7f2;
  line-height: 1.6;
}

/* ===== Шапка ===== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  background-color: #1f3b4d;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}

.nav a {
  color: #cfd8dc;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: #e8b84b;
}

/* ===== Баннер ===== */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #1f3b4d, #2e5a75);
  color: #fff;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: #cfd8dc;
}

/* ===== Лента истории ===== */
.timeline {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 20px;
}

.timeline-item {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  /* стили для появления при прокрутке (управляется из JS) */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.year {
  font-size: 32px;
  font-weight: bold;
  color: #e8b84b;
  min-width: 100px;
}

.content {
  background-color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.content img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  background-color: #dfe6e9; /* фон, пока нет картинки */
}

.content h2 {
  color: #1f3b4d;
  margin-bottom: 10px;
}

/* ===== Блок с цифрами ===== */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 60px 20px;
  background-color: #1f3b4d;
}

.stat {
  text-align: center;
  color: #fff;
}

.stat-number {
  display: block;
  font-size: 44px;
  font-weight: bold;
  color: #e8b84b;
}

.stat-label {
  font-size: 16px;
  color: #cfd8dc;
}

/* ===== Подвал ===== */
.footer {
  text-align: center;
  padding: 25px;
  background-color: #162a38;
  color: #90a4ae;
  font-size: 14px;
}

/* ===== Мобильная версия ===== */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .nav a {
    margin: 0 10px;
  }

  .timeline-item {
    flex-direction: column;
    gap: 10px;
  }

  .hero h1 {
    font-size: 30px;
  }
}
