/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  background-color: #FFFFFF;
  color: #1F2937;
  scroll-behavior: smooth;
}
a { text-decoration: none; }
ul { list-style: none; }

/* Fixed Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background-color: #000000; /* Черный блок сверху */
  color: #FFFFFF;
  z-index: 2000;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 1px;
}
.menu a {
  color: #FFFFFF;
  margin-left: 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s;
  text-transform: uppercase;
}
.menu a:hover {
  color: #2563EB; /* Синий при наведении */
}

/* Hero Section with Parallax */
.hero {
  position: relative;
  height: 100vh;
  /* Замени URL ниже на реальное фото олимпиады */
  background-image: url('kazakhstan.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Эффект, когда фото остается на месте */
}
.hero-overlay {
  background: rgba(0, 0, 0, 0.5); /* Затемнение фото */
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  color: #FFFFFF;
  padding: 0 1rem;
}
.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: #2563EB; /* Синий цвет кнопок */
  color: #FFFFFF;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: transform 0.2s, background-color 0.2s;
  text-transform: uppercase;
}
.btn:hover {
  background-color: #1D4ED8;
  transform: translateY(-3px);
}
.btn-secondary {
  color: #2563EB;
  font-weight: 600;
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
table th, table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}
table th { font-weight: 600; background-color: #F3F4F6; }


/* Content Area */
.content-section {
  position: relative;
  background-color: #FFFFFF;
  z-index: 10;
  padding: 4rem 0;
}
.container-white {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.card {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #4B5563;
}
.section-title {
  font-size: 2rem;
  color: #111827;
  margin-bottom: 1.5rem;
  border-left: 5px solid #2563EB;
  padding-left: 1rem;
}
.schedule-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #F3F4F6;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .menu { display: none; } /* Для мобильных стоит добавить "бургер", но пока скрыто для чистоты */
  .hero-content h1 { font-size: 2rem; }
  .top-nav { height: 60px; }
}

/* Стили для логотипа в верхней панели */
.nav-logo {
  height: 45px; /* Высота логотипа в меню, чтобы он не распирал панель */
  width: auto;
  display: block;
  transition: opacity 0.3s;
}

.nav-logo:hover {
  opacity: 0.8;
}

/* Стили для логотипа в центре главного экрана */
.hero-logo {
  width: 180px; /* Размер основного логотипа перед заголовком */
  height: auto;
  margin-bottom: 1.5rem;
  /* Можно добавить небольшую тень, чтобы логотип лучше читался на фото */
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

/* Немного подправим отступ заголовка, если логотип кажется слишком близко */
.hero-content h1 {
  margin-top: 0;
}

/* --- Footer Styles --- */
.site-footer {
  background-color: #000000; /* Черный фон */
  color: #FFFFFF;
  padding: 3rem 0;
  margin-top: auto; /* Помогает прижимать футер книзу на коротких страницах */
  border-top: 3px solid #2563EB; /* Синяя акцентная полоса сверху */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 45px;
  width: auto;
  margin-right: 15px;
}

.footer-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.footer-right {
  display: flex;
  gap: 2rem;
}

.footer-right a {
  color: #FFFFFF;
  font-weight: 600;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-right a:hover {
  color: #2563EB; /* Синий при наведении */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .footer-left {
    flex-direction: column;
    gap: 10px;
  }
  .footer-logo-img {
    margin-right: 0;
  }
  .footer-right {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Стили для кнопки бургера (по умолчанию скрыта) */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: 0.3s;
}

/* Мобильная адаптация (до 768px) */
@media (max-width: 768px) {
  /* 1. Кнопка бургера */
  .menu-toggle {
    display: flex !important;
    z-index: 10001; /* Выше чем меню */
    padding: 10px;
  }

  /* 2. Полноэкранное мобильное меню */
  .menu {
    display: flex !important;
    position: fixed;
    top: 0; /* Начинаем с самого верха, чтобы закрыть все дырки */
    left: -100%;
    width: 100%;
    height: 100vh; /* На весь экран */
    background-color: #000000;
    flex-direction: column;
    justify-content: center; /* Центрируем по вертикали */
    align-items: center;    /* Центрируем по горизонтали */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    padding: 0;
    margin: 0;
  }

  /* Показываем меню */
  .menu.active {
    left: 0;
  }

  /* 3. Стили ссылок в мобильном меню */
  .menu a {
    margin: 1rem 0 !important;
    font-size: 1.5rem !important; /* Крупный, читабельный шрифт */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    width: 80%; /* Чтобы текст не прижимался к краям */
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Тонкая линия разделения */
    padding-bottom: 10px;
    margin-left: 0 !important; /* Убираем левый отступ, который был в десктопной версии */
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .menu a:hover {
    color: #2563EB;
  }

  /* Убираем зазор у Hero секции на телефонах */
  .hero-content h1 {
    font-size: 2rem;
    padding: 0 1rem;
  }
}


/* ==================== AEO 2026 TEAM SECTION ==================== */
.team-section {
  margin: 2.5rem 0;
  width: 100%;
}

/* Главная карточка Капитана (Горизонтальная, серый фон, прямоугольные края) */
.captain-card {
  display: flex;
  align-items: center;
  background-color: #f3f4f6; /* Светло-серый фон */
  border: 1px solid #d1d5db;
  border-left: 5px solid #2563eb; /* Акцентная синяя полоска слева */
  border-radius: 0 !important; /* Прямоугольные ровные края */
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.captain-card:hover {
  transform: translateY(-4px); /* Анимация при наведении */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.captain-photo-wrapper {
  flex-shrink: 0;
}

.captain-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%; /* Фото в кружке */
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.captain-info {
  display: flex;
  flex-direction: column;
}

.captain-badge {
  display: inline-block;
  align-self: flex-start;
  background-color: #2563eb;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  border-radius: 0;
}

.captain-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.4rem;
}

.captain-desc {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

/* Сетка из 10 участников (Ровно 5 в ряд) */
.members-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 5 колонок в ряд */
  gap: 10px; /* Отступ между карточками */
  width: 100%;
}

.member-card {
  min-width: 0; /* Гарантирует, что текст не ломает сетку */
  background-color: #f3f4f6; /* Светло-серый фон */
  border: 1px solid #e5e7eb;
  border-radius: 0 !important; /* Прямоугольные ровные края */
  padding: 1rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Анимация движения при наведении */
.member-card:hover {
  transform: translateY(-5px);
  border-color: #2563eb;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.member-photo {
  width: 70px;
  height: 70px;
  border-radius: 50%; /* Фото в кружке */
  object-fit: cover;
  border: 2px solid #ffffff;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.member-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.2rem;
  line-height: 1.2;
  word-break: break-word;
}

.member-role {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.2;
  word-break: break-word;
}

/* Адаптивность для планшетов (3 в ряд) и телефонов (2 в ряд) */
@media (max-width: 768px) {
  .members-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

@media (max-width: 500px) {
  .captain-card {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }

  .captain-badge {
    align-self: center;
  }

  .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

