/* ===== Стили для табов в мегаменю (левое выравнивание) ===== */
.mega-tabs-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 25px;
  gap: 10px;
}

.mega-tab-button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
  background-image:
    radial-gradient(circle at 16% 48%, rgba(80, 150, 225, 0.14), transparent 22%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.07), transparent 16%),
    radial-gradient(circle at 82% 48%, rgba(70, 145, 225, 0.12), transparent 20%),
    linear-gradient(135deg, rgba(31,42,50,0.2) 0%, rgba(37,54,63,0.2) 18%, rgba(50,80,102,0.2) 36%, rgba(34,50,61,0.2) 52%, rgba(45,76,98,0.2) 72%, rgba(31,44,54,0.2) 100%);
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.6);
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.2s ease;
}

.mega-tab-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.04) 18%,
      rgba(255, 255, 255, 0.09) 34%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(80, 155, 240, 0.10) 62%,
      transparent 82%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04), transparent 38%);
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.mega-tab-button:hover {
  background-color: #e0e0e0;
  color: #333;
}

.mega-tab-button:hover::before {
  opacity: 0.8;
}

.mega-tab-button.active {
  background-color: #4a4a4a;
  background-image:
    radial-gradient(circle at 16% 48%, rgba(80, 150, 225, 0.2), transparent 22%),
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), transparent 16%),
    radial-gradient(circle at 82% 48%, rgba(70, 145, 225, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(31,42,50,0.3) 0%, rgba(37,54,63,0.3) 18%, rgba(50,80,102,0.3) 36%, rgba(34,50,61,0.3) 52%, rgba(45,76,98,0.3) 72%, rgba(31,44,54,0.3) 100%);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.mega-tab-button.active::before {
  opacity: 0.5;
}

.mega-tab-button.active:hover {
  background-color: #3a3a3a;
  color: #fff;
}

.mega-tab-button.active:hover::before {
  opacity: 0.7;
}

.mega-tab-button:active {
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 0 rgba(0,0,0,0.1);
  transition: box-shadow 0.1s ease;
}

.mega-tab-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  pointer-events: none;
  transition: none;
}

.mega-tab-button.shimmer::after {
  animation: shimmer 0.8s ease-out;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.mega-tab-content {
  display: none;
}

.mega-tab-content.active {
  display: block;
}

.mega-categories-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.mega-category-column {
  flex: 1;
  min-width: 160px;
}

.mega-category-column a {
  display: block;
  padding: 6px 0;
  color: #444;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.mega-category-column a:hover {
  color: #e62e6b;
  text-decoration: underline;
}

/* ===== Мобильный контакт-центр ===== */
.mob-nav__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  text-align: left;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: 1.4;
  position: relative;
}

.mob-nav__contact:hover {
  background-color: rgba(0, 0, 0, 0.04);
}

.mob-nav__contact svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #555;
}

/* Надпись "Контакт-центр" — белая */
.mob-nav__contact strong {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.mob-nav__contact .today {
  font-size: 13px;
}

/* ===== Всплывающее расписание ===== */
.mob-nav__schedule {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 18px 20px;
  z-index: 1100;
  min-width: 260px;
  border: 1px solid rgba(0,0,0,0.08);
}

.mob-nav__schedule.active {
  display: block;
}

/* Крестик закрытия — без фона и без изменения цвета */
.mob-nav__schedule-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

.mob-nav__schedule-close:hover,
.mob-nav__schedule-close:focus,
.mob-nav__schedule-close:active {
  background: transparent;
  color: #666;
  outline: none;
}

.mob-nav__schedule-close::before,
.mob-nav__schedule-close::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 1.5px;
  background-color: currentColor;
  border-radius: 1px;
}

.mob-nav__schedule-close::before {
  transform: rotate(45deg);
}

.mob-nav__schedule-close::after {
  transform: rotate(-45deg);
}

.mob-schedule-content {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
}

/* Цвета дня */
.mob-nav__contact .today {
  color: #2e7d32;
  font-weight: 500;
}

.mob-nav__contact .today-dayoff {
  color: #ff5252;  /* светло-красный */
  font-weight: 500;
}

/* ===== Стили для нижней мобильной панели ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 12px 12px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06), 0 0 0 0.5px rgba(0, 0, 0, 0.02);
  border-top: 0.5px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  transform: translateY(0);
}

.bottom-nav.hidden-nav {
  transform: translateY(100%);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  gap: 6px;
  padding: 6px 0 4px;
  border-radius: 8px;
  transition: transform 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  -webkit-tap-highlight-color: transparent;
  color: #8e9aaf;
}

.nav-item:focus,
.nav-item:active {
  color: #8e9aaf;
  outline: none;
}

.nav-item:hover {
  color: #2d6aef;
  background-color: transparent;
}

.nav-item:active {
  transform: scale(0.96);
}

.nav-item svg {
  width: 28px;
  height: 28px;
  display: block;
  transition: transform 0.2s ease;
  fill: currentColor;
  stroke: none;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: currentColor;
}

@media (max-width: 360px) {
  .nav-item svg {
    width: 24px;
    height: 24px;
  }

  .nav-label {
    font-size: 10px;
  }

  .bottom-nav {
    padding: 6px 8px 10px;
  }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .bottom-nav {
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (hover: hover) {
  .nav-item:hover {
    background-color: transparent;
  }
}

/* Показывать панель только на мобильных */
@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}