/* Основной хедер */
.landing-header {
  display: flex;
  align-items: center;
  color: black;
  padding: 15px 40px;
  font-family: "Montserrat", sans-serif;
  width: 100%;
  position: relative;
  gap: 20px;
  margin-bottom: 2%;
}

/* Логотип */
.logo {
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.2;
  display: flex;
  margin-right: 1.2rem;
  flex-direction: column;
  justify-content: center;
}
.logo img {
  width: 13rem;
}

/* Стили для десктопа */
@media (min-width: 1025px) {
  .logo {
    flex-direction: column;
  }
}

/* Стили для мобильных устройств */
@media (max-width: 1024px) {
  .logo {
    flex-direction: row;
    gap: 0.5rem; /* Добавлен пробел между словами */
  }
    .logo img {
  width: 10rem;
}
}

/* Бургер-иконка (справа) */
.burger-menu-icon {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  cursor: pointer;
  margin-left: auto; /* Прижимает иконку вправо */
}

.burger-line {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background-color: #02369c;
}

/* Бургер-меню (на всю страницу, центрированное содержимое) */
.burger-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 11000;
  padding: 20px;
  overflow-y: auto;
}

/* Крестик для закрытия бургер-меню */
.burger-close-icon {
  position: absolute;
  top: 40px;
  right: 10px;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.close-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: black;
  left: 0;
}

.close-line.first {
  transform: rotate(45deg);
}

.close-line.second {
  transform: rotate(-45deg);
}

.burger-menu.active {
  display: flex;
  justify-content: center; /* Центрирование по горизонтали */
  align-items: center; /* Центрирование по вертикали */
}

.burger-menu-content {
  display: flex;
  flex-direction: column;
  height: auto;
  max-width: 500px; /* Максимальная ширина для содержимого */
  width: 100%;
  text-align: center; /* Центрирование текста */
}

.burger-auth-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.city-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.burger-nav-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.burger-nav-link {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.burger-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  justify-content: center;
}
.burger-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.burger-footer-link {
  text-decoration: none;
  color: #777a8d;
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.desktop-only {
  display: block !important;
}

.burger-menu-icon {
  display: none;
}
.mobile-icons {
  display: none;
}
/* Адаптивность для средних экранов (например, планшеты) */
@media (max-width: 1200px) {
  .nav-link {
    padding: 0 6px;
  }
}

/* Адаптивность для малых экранов */
@media (max-width: 992px) {
  .nav-link {
    padding: 0 4px;
    font-size: 0.85rem;
  }
}

/* Адаптивность для мобильных устройств (экраны ≤ 1024px) */
@media (max-width: 1024px) {
  .landing-header {
    justify-content: space-between;
    padding: 10px;
  }
  .auth-block {
    display: none !important;
  }
  .desktop-only {
    display: none !important;
  }

  .mobile-icons {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }

  .burger-menu-icon {
    display: flex !important;
  }
}

.nav-links-container {
  justify-content: center;
  width: 100%;
  flex-grow: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 5px;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.8rem, 1vw, 1rem);
  white-space: nowrap;
  text-align: center;
  padding: 0 10px;
  min-width: 0;
}

.nav-icons {
  display: flex;
  margin: auto;
  gap: 10px;
  align-items: center;
}

.nav-icon-1 {
  width: 2rem;
}

.nav-icon-2 {
  width: 1.7rem;
}

.nav-icon-profile {
  width: 2rem;
  display: block;
}

.auth-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.auth-link {
  color: black;
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw, 1rem);
  padding: 5px 5px;
  white-space: nowrap;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.auth-separator {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  color: black;
  font-weight: 500;
}

.city {
  font-size: clamp(0.8rem, 1vw, 0.9rem);
  white-space: nowrap;
  font-weight: 500;
  margin: 0;
}

.auth-link-container {
  display: flex;
  align-items: center;
  margin-top: 20px;
}
