/* ===== Sidebar ===== */
.sidebarmob {
  position: fixed;
  top: 0;
  left: -270px;
  width: 270px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #ccc;
  overflow-y: auto;
  scrollbar-width: thin;
  z-index: 1000;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
}
.sidebarmob.open {
  left: 0;
}

/* Шапка сайдбара */
.sidebarmob .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #5686da;
  color: #fff;
  font-weight: 500;
}
.sidebarmob .top a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.sidebarmob .top .lang span {
  margin: 0 5px;
  cursor: pointer;
}
.sidebarmob .top .lang .active {
  font-weight: bold;
  text-decoration: underline;
}
.sidebarmob .close-btn {
  cursor: pointer;
  background: none;
  border: none;
}

/* Меню */
.sidebarmob .menu {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.sidebarmob .menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebarmob .menu li {
  padding: 12px 20px;
  font-size: 15px;
}
.sidebarmob .menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

/* Каталог */
.sidebarmob .catalog {
  flex: 1;
}
.sidebarmob .catalog nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebarmob .catalog nav li {
  font-size: 15px;
}
.sidebarmob .catalog nav li > a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 20px;
}
.sidebarmob .catalog nav li:hover > a {
  background: #faf1ed;
  transition: background 0.3s ease;
}
.sidebarmob .catalog nav a i {
  color: #5686da;
  font-size: 18px;
  width: 20px;
  text-align: center;
}

/* Подменю */
.sidebarmob .submenu {
  max-height: 0;
  overflow: hidden;
  padding-left: 20px;
  background: #f9f9f9;
  transition: max-height 0.3s ease;
}
.sidebarmob li.open > .submenu {
  max-height: 600px; /* запас для плавного раскрытия */
}
.sidebarmob .submenu li a {
  padding: 10px 20px;
  font-size: 14px;
  color: #444;
}
.sidebarmob .submenu li a:hover {
  background: #f1f1f1;
}




