body {
  margin: 0;
  font-family: sans-serif;
  background: #003366;
  color: #fff;
}

.language-switcher {
  position: absolute;
  top: 20px;
  right: 40px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #005599;
  color: white;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #005599;
  min-width: 60px;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown-content a {
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #0077cc;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
}

.container {
  display: flex;
  height: 100vh;
  margin-bottom: 20px; /* Добавляем отступ между блоками */
}

.image-half {
  flex: 1;
  overflow: hidden;
  
}

.image-half img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 8px; /* Скругляем углы изображений */
  
}

.text-half {
  flex: 1;
  padding: 40px;
  background-color: #003366;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-section {
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-top: 80px; /* Альтернативный вариант — добавить отступ сверху */
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px; /* Скругляем углы изображений */


}

.container2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100vw; /* Ограничиваем максимальную ширину */
  box-sizing: border-box; /* Учитываем отступы и границы */
  padding: 10px;
  margin: 0 auto;
  margin-top: 80px; 
}

.text-half2 {
  flex: 1;
  padding-right: 10px; /* Уменьшаем отступ, чтобы все умещалось */
  color: white;
  box-sizing: border-box; /* Учитываем отступы и границы */
}

.image-section2 {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 10px; /* Добавляем отступы между картинками */
  box-sizing: border-box;
}

.image-section2 img {
  width: 48%; /* Уменьшаем ширину, чтобы картинки умещались */
  height: auto;
  object-fit: cover;
  box-sizing: border-box; /* Учитываем отступы и границы */
  border-radius: 8px; /* Скругляем углы изображений */
}


.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Создаем 4 столбца одинаковой ширины */
  gap: 15px; /* Отступы между ячейками */
  padding: 20px;
  justify-items: center; /* Выравнивание изображений по центру ячеек */
  margin-top: 80px; /* Альтернативный вариант — добавить отступ сверху */
}

.grid-item {
  width: 100%;
  height: 100%;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Обеспечиваем, чтобы изображение не искажалось и заполняло ячейку */
  border-radius: 8px; /* Скругляем углы изображений */
}

.unesco-container {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #002244;
  padding: 30px 40px;
  color: white;
  flex-wrap: wrap;
  justify-content: center;  /* по горизонтали */
}

.unesco-logo img {
  max-width: 200%;
  height: auto;
  margin-top: 80px; /* Альтернативный вариант — добавить отступ сверху */
}

.unesco-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.unesco-text p {
  margin: 0;
  line-height: 1.5;
}

.image-section3 {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 10px; /* Добавляем отступы между картинками */
  box-sizing: border-box;
  justify-content: center;  /* по горизонтали */
}

.image-section3 img {
  width: 90%; /* Уменьшаем ширину, чтобы картинки умещались */
  height: auto;
  object-fit: cover;
  box-sizing: border-box; /* Учитываем отступы и границы */
  border-radius: 8px; /* Скругляем углы изображений */
  
}

.image-section4 {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 10px; /* Добавляем отступы между картинками */
  box-sizing: border-box;
  justify-content: center;  /* по горизонтали */
}

.image-section4 img {
  width: 90%; /* Уменьшаем ширину, чтобы картинки умещались */
  height: auto;
  object-fit: cover;
  box-sizing: border-box; /* Учитываем отступы и границы */
  border-radius: 8px; /* Скругляем углы изображений */
  
}

.rus-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: #002244;
  padding: 30px 40px;
  color: white;
  flex-wrap: wrap;
}

.rus-logo img {
  max-width: 100%;
  height: auto;
  margin-top: 80px; /* Альтернативный вариант — добавить отступ сверху */
}

.rus-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.rus-text p {
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
  
}

.image-section5 {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 10px; /* Добавляем отступы между картинками */
  box-sizing: border-box;
  justify-content: center;  /* по горизонтали */
}

.image-section5 img {
  width: 90%; /* Уменьшаем ширину, чтобы картинки умещались */
  height: auto;
  object-fit: cover;
  box-sizing: border-box; /* Учитываем отступы и границы */
  border-radius: 8px; /* Скругляем углы изображений */
  
}

.uz-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background-color: #002244;
  padding: 30px 40px;
  color: white;
}

.uz-logo img {
  max-width: 100%;
  height: auto;
  margin-top: 80px; /* Альтернативный вариант — добавить отступ сверху */
}

.uz-text h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.uz-text p {
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
  
}

.image-section6 {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 10px; /* Добавляем отступы между картинками */
  box-sizing: border-box;
  justify-content: center;  /* по горизонтали */
}

.image-section6 img {
  width: 100%; /* Уменьшаем ширину, чтобы картинки умещались */
  height: auto;
  object-fit: cover;
  box-sizing: border-box; /* Учитываем отступы и границы */
  border-radius: 8px; /* Скругляем углы изображений */
  
}

@media (max-width: 768px) {
  .container, .container2 {
    flex-direction: column;
    height: auto;
  }

  .image-half img,
  .image-section img,
  .image-section3 img,
  .image-section4 img,
  .image-section5 img,
  .image-section6 img {
    width: 100%;
    height: auto;
  }

  .image-section2 img {
    width: 100%;
    height: auto;
  }
  
  .image-section {
    height: auto;
  }
  
  .image-section2 {
    flex-wrap: wrap;
  }

  .text-half, .text-half2 {
    padding: 20px;
    text-align: center;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 колонки вместо 4 */
  }

  .dropbtn {
    padding: 10px 16px;
    font-size: 16px;
  }

  .unesco-container,
  .rus-container,
  .uz-container {
    flex-direction: column;
    padding: 20px;
  }

  .unesco-logo img,
  .rus-logo img,
  .uz-logo img {
    margin-top: 20px;
    max-width: 100%;
  }
  button, .dropbtn, a {
    font-size: 18px;
    padding: 10px;
  }
}