/* navbar.css */

.button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* ====== Навбар ====== */
.navbar {
  background-color: #1a1a2e;
  color: #fff;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.navbar .logo {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 15px;
}

.navbar .logo a {
  color: #fff;
  text-decoration: none;
  font-size: 24px;
}

.navbar .menu {
  display: flex;
  justify-content: center;
  flex: 1;
  margin-left: 15px;
}

.navbar .menu a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
}

.navbar .icons a {
  color: #fff;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px;
}

.navbar .menu a:hover {
  text-decoration: underline;
}

.navbar .icons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
}

.navbar .icons .icon {
  color: #fff;
  text-decoration: none;
  margin-left: 20px;
}

/* ====== Медиа-запросы для навбара ====== */
@media (max-width: 1024px) {
  /* Сворачиваем меню в гамбургер-меню */
  .navbar .menu {
    display: none; /* Скрываем основное меню */
  }

  .navbar .menu.active {
    display: flex;
    flex-direction: column; /* Вертикальное расположение пунктов меню */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 10px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .navbar .menu.active a {
    padding: 10px 20px;
    display: block;
    text-align: center;
  }

  /* Добавляем кнопку гамбургера */
  .navbar .toggle-menu {
    display: block;
    cursor: pointer;
    color: white;
    font-size: 1.5rem;
  }

  /* Уменьшаем размер логотипа */
  .navbar .logo a {
    font-size: 1.2rem; /* Уменьшенный размер шрифта */
  }

  /* Уменьшаем размер ссылок "Вход" и "Регистрация" */
  .navbar .icons a {
    font-size: 0.9rem; /* Уменьшенный размер шрифта */
    padding-right: 10px;
  }
}

#authButtons > a {
  color: #fff;
  text-decoration-color: #fff;
  margin-left: 20px;
  padding-right: 10px;
}

#authButtons {
  padding-right: 20px;
}
@media (max-width: 768px) {
  .catalog-item {
    width: 45%;
  }

  .catalog-item img {
    height: 150px;
  }

  .about-container {
    flex-direction: column;
  }

  .about-text {
    padding-right: 0;
    margin-bottom: 20px;
  }

  #map {
    height: 250px;
    max-width: 320px;
  }

  /* Скрываем ссылку с логотипом-изображением */
  .navbar .img {
    display: none;
  }

  /* Уменьшаем шрифт заголовка логотипа */
  .navbar .logo a.text-2xl {
    font-size: 0.9rem;
  }

  /* Делаем панель иконок компактной */
  .navbar .icons {
    display: flex;

    overflow-x: auto;
    gap: 0px;
    font-size: 0.9em;
    padding: 5px 0;
  }

  .navbar {
    flex-shrink: 1;
  }
  .navbar .icons a,
  .navbar .icons button {
    white-space: nowrap;
    padding: 5px 8px;
    font-size: 0.5rem;
  }
  #authButtons {
    padding-right: 0px;
    padding-left: 0px;
  }
  #authButtons > a {
    padding-right: 0%;
    padding-left: 0%;
  }
}
