/* ========== ОБЩИЕ НАСТРОЙКИ ДЛЯ МОБИЛЬНОГО ========== */
@media (max-width: 900px) {
  * {
    box-sizing: border-box;
  }




  html, body {
    overflow: auto !important;
    height: 100%;
    overflow-x: hidden !important;
  }

  .map-box iframe {
    width: 90%;
    height: 300px;
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border: none;
    overflow-x: hidden;
    max-width: 100%;
  }
  /* Общий контейнер карты */
  

  /* --- Нижнее мобильное меню --- */
  .menu {
    position: fixed !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: calc(100vw - 24px);
    
    margin: 0 auto !important;
    padding: 15px;
    background: rgba(44, 44, 44, 0.94);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
    display: flex !important;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 2000;
    overflow: visible;
    list-style: none;
    gap: 0;
    transform: none !important;
  }

  .menu li {
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 0;
    display: flex !important;
    justify-content: center;
    align-items: center;
    min-width: 0;
  }

  .menu a {
    width: 40px;
    height: 40px;
    font-size: 28px;
    margin: 0 auto;
    display: flex !important;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: none;
    color: #bbb;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    outline: none;
    box-sizing: border-box;
  }

  .menu a img {
    width: 29px !important;
    height: 29px !important;
    object-fit: contain;
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  .menu a i {
    font-size: 28px;
    color: inherit;
    width: 38px;
    height: 38px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: color 0.2s, transform 0.2s;
  }

  .menu a.active,
  .menu a:hover {
    color: #fff !important;
    background: #55555544;
    transform: scale(1.14);
  }

  .menu a.active i,
  .menu a:hover i {
    color: #fff !important;
    transform: scale(1.09);
  }

  /* Отступы снизу под контент, чтобы он не прятался за меню */
  .pages, .page {
    padding-top: 50px;
    padding-bottom: 100px !important;
    box-sizing: border-box;
  }



  /* --- Горизонтальная прокрутка табов --- */
  .categories-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .categories-tabs .category-toggle {
    font-size: 0.7em !important;
    min-width: 76px;
    padding: 6px 7px;
  }

  .categories-tabs .category-toggle i {
    font-size: 10px;
    margin-right: 5px;
  }
}


/* Скрытие scrollbar в WebKit */
.categories-tabs::-webkit-scrollbar {
  display: none;
}

/* --- Стили таб-кнопок категорий --- */
.category-toggle {
  flex: 0 0 auto;
  min-width: 90px;
  font-size: 0.95em;
  padding: 7px 10px;
  border-radius: 6px;
  background: #444;
  color: #ffc107;
  font-weight: 500;
  border: none;
  outline: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  margin: 0;
}

.category-toggle.active {
  background: #ffc107;
  color: #222;
}

.category-toggle:active {
  background: #ffe082;
  color: #111;
}

.category-toggle i {
  font-size: 15px;
  margin-right: 6px;
}

/* --- Контент внутри категории --- */
.categories-content {
  min-height: 60px;
}

/* Список элементов в категории */
.category-list,
.category-list.active {
  column-count: 1 !important;
  margin-top: 3px;
  padding-left: 0;
  font-size: 0.98em;
  list-style: none;
  max-height: none;
  opacity: 1;
}

.category-list li {
  padding: 5px 0 2px 0;
  font-size: 0.98em;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.category-list .description {
  font-size: 0.92em;
  color: #d9d7c2;
  margin: 0 0 7px;
  font-style: normal;
}

/* ========== МАЛЕНЬКИЕ ЭКРАНЫ ========== */
@media (max-width: 480px) {
  .page .icon {
    font-size: 40px;
  }

  .page .title {
    font-size: 20px;
  }

  .page .hint {
    font-size: 11px;
  }

  .restaurant-menu {
    width: 100%;
    padding: 8px;
  }

  .category-toggle {
    font-size: 12px;
    padding: 6px 8px;
  }

  .social-item {
    width: 60px;
    height: 60px;
  }
}
