/* ============================================================
   Плашка «Технические работы» — maintenance banner
   Внедряется на все страницы k-energo-70.ru через after_request
   ============================================================ */

/* --- Полоса-плашка сразу под шапкой --- */
.mb-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 8px 16px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  color: #7c2d12;
  background: #ffedd5;
  border-bottom: 1px solid #fed7aa;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  text-align: center;
  z-index: 500;
}
.mb-banner:hover {
  background: #ffedd0;
}
.mb-banner__icon {
  font-size: 14px;
  flex-shrink: 0;
}
.mb-banner__text {
  flex: 0 1 auto;
}

/* --- Медленное «мигание» плашки --- */
.mb-banner.mb-blink {
  animation: mb-blink 3.2s ease-in-out infinite;
}
@keyframes mb-blink {
  0%, 60% { opacity: 1; }
  70%, 88% { opacity: 0.55; }
  100% { opacity: 1; }
}

/* --- Панель-раскрытие прямо под плашкой (текст о работах) --- */
.mb-banner-panel {
  display: none;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
  padding: 14px 24px 20px;
  z-index: 500;
}
.mb-banner-panel.mb-open {
  display: block;
}
.mb-banner-panel__title {
  font-weight: 600;
  font-size: 14px;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.mb-banner-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mb-banner-panel__item {
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 13px;
  color: #333;
}
.mb-banner-panel__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}
.mb-banner-panel__empty {
  font-size: 13px;
  color: #6b7280;
  font-style: italic;
}

/* --- Тумблер плашки в ☰-меню --- */
.mb-burger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  cursor: pointer;
  white-space: nowrap;
  color: #333;
  font-size: 14px;
}
.mb-burger-item:hover {
  background: #f3f4f6;
}
.mb-switch-track {
  width: 36px;
  height: 20px;
  background: #d1d5db;
  border-radius: 10px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.mb-switch-track.active {
  background: #4f6ef7;
}
.mb-switch-knob {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.mb-switch-track.active .mb-switch-knob {
  left: 18px;
}