/* Модальное окно для просмотра изображений */
.image-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
  z-index: 1000;
}
.image-modal.show {
  opacity: 1;
  visibility: visible;
}
body {
  margin: 0; 
  padding-top: 70px; /* Отступ для фиксированного header */
  color: white; 
  background-color: #121212; 
  font-family: 'Unbounded', sans-serif;
}
p {
  font-family: "Manrope", sans-serif;
}

header {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 10px 30px;
  background-color: black; 
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 1000;
}
header .logo img {
  height: 40px; 
  margin-right: 10px; 

}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}
nav ul li {
  margin: 0 12px;
  display: flex;
  align-items: center;
}

nav ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
}

nav ul li a:hover {
  color: #007BFF;
}

nav .lang-btn {
  margin-left: 20px; 
  background-color: blue; 
  color: white; 
  border: none; 
  padding: 5px 10px; 
  cursor: pointer; 
  border-radius: 8px;
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.site-footer {
  background-color: #111;
  color: #aaa;
  padding: 40px 20px;
  text-align: center;
  font-family: 'Manrope', sans-serif;
  border-top: 1px solid #333;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.footer-logos {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logos img {
  height: 40px;
  filter: brightness(0.7);
  transition: filter 0.3s;
}

.footer-logos img:hover {
  filter: brightness(1);
}


/* === Phone === */
/* === Общие стили для мобильных === */
@media (max-width: 768px) {

    body {
        font-size: 16px; /* Уменьшаем шрифт для мобильных */
    }

    h2 {
        font-size: 2rem; /* Уменьшаем размер заголовков */
    }

    /* === Header === */
    nav ul {
        display: none; /* Прячем меню по умолчанию */
        flex-direction: column;
        gap: 10px;
        position: fixed;
        top: 70px; /* Позиционируем под фиксированным header */
        right: 0px;
        background-color: #121212;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 10px 20px;
        border-radius: 5px;
        z-index: 999;
    }
    
    nav ul.active {
        display: flex; /* Показываем меню, если оно активно */
    }
    
    #menu-toggle {
        display: block;
        position: absolute; /* Фиксируем кнопку в правом верхнем углу */
        top: 10px; /* Располагаем кнопку от верхней части экрана */
        right: 10px; /* Располагаем кнопку в 10px от правого края */
        font-size: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        color: white;
    }
    .logo {
      display: flex;
      flex-direction: row;
    }
    header .logo img {
      height: 40px;
    }
  }