/* ===== ШАПКА MPM v2.0 ===== */

/* Общая обёртка шапки */
.mpm-header-bar {
  background: #111;
  border-bottom: 2px solid #f5a623;
}

/* --- Строка телефонов --- */
.mpm-phones-row {
  background: #000;
  padding: 7px 16px;
}
.mpm-phones-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.mpm-phones-label {
  font-size: 12px;
  color: #b0b0b0;
  margin-right: 8px;
  white-space: nowrap;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}
.mpm-phones-list {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 4px 14px;
}
.mpm-phone {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  gap: 5px;
  color: #ddd;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
  transition: color 0.2s;
}
.mpm-phone:hover { color: #f5a623; text-decoration: none; }
.mpm-phone:visited { color: #ddd; }
.mpm-phone:hover:visited { color: #f5a623; }
.mpm-phone-icon { font-size: 14px; color: #f5a623; }
.mpm-phone-free { color: #5cb85c; }
.mpm-phone-free:visited { color: #5cb85c; }
.mpm-phone-free:hover { color: #f5a623 !important; }
.mpm-phone-badge {
  background: #1a4a1a;
  color: #5cb85c;
  font-size: 10px;
  font-weight: 400;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #2a6a2a;
}
.mpm-email { color: #aaa !important; font-weight: 400 !important; }
.mpm-email:visited { color: #aaa !important; }
.mpm-worktime { color: #bbb !important; font-weight: 600 !important; font-size: 12px !important; }
.mpm-worktime:visited { color: #bbb !important; }

/* --- Облака --- */
.mpm-clouds-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 6px;
  -ms-flex-pack: justify;
  justify-content: space-between;
}
.mpm-cloud {
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  gap: 6px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 6px 10px;
  color: #ccc !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  text-align: center;
}
.mpm-cloud:hover {
  background: #f5a623 !important;
  border-color: #f5a623 !important;
  color: #111 !important;
  text-decoration: none !important;
}
.mpm-cloud:visited { color: #ccc !important; }
.mpm-cloud-icon { color: #f5a623; font-size: 8px; }
.mpm-cloud:hover .mpm-cloud-icon { color: #111; }

/* ===== НАВИГАЦИЯ + STICKY + ВЫПАДАЮЩЕЕ МЕНЮ ===== */

.mpm-nav-wrap {
  background: #1a1a1a;
  border-top: 2px solid #f5a623;
  position: relative;
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.mpm-nav-wrap.mpm-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.mpm-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
}

/* Меню */
.mpm-nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex: 1;
  flex: 1;
}
.mpm-nav-item {
  position: relative;
}
.mpm-nav-link {
  display: block;
  padding: 12px 14px;
  color: #ccc !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.mpm-nav-link:visited { color: #ccc !important; }
.mpm-nav-link:hover { color: #f5a623 !important; text-decoration: none !important; }
.mpm-nav-arrow { font-size: 9px; opacity: 0.7; }

/* Выпадающее меню */
.mpm-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e1e1e;
  border: 1px solid #333;
  border-top: 2px solid #f5a623;
  border-radius: 0 0 6px 6px;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 240px;
  z-index: 2000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  -webkit-columns: 2;
  -moz-columns: 2;
  columns: 2;
  -webkit-column-gap: 0;
  -moz-column-gap: 0;
  column-gap: 0;
}
.mpm-has-dropdown:hover .mpm-dropdown { display: block; }
.mpm-dropdown li { -webkit-column-break-inside: avoid; page-break-inside: avoid; break-inside: avoid; }
.mpm-dropdown a {
  display: block;
  padding: 6px 16px;
  color: #bbb !important;
  text-decoration: none !important;
  font-size: 12px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.mpm-dropdown a:visited { color: #bbb !important; }
.mpm-dropdown a:hover { background: #2a2a2a; color: #f5a623 !important; text-decoration: none !important; }
.mpm-dropdown-head {
  padding: 8px 16px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5a623;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}
.mpm-dropdown-divider {
  height: 1px;
  background: #333;
  margin: 4px 0;
}

/* Контакты в sticky (скрыты по умолчанию) */
.mpm-nav-contacts {
  display: none;
  -ms-flex-align: center;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding: 8px 0;
  flex-shrink: 0;
}
.mpm-sticky .mpm-nav-contacts { display: -ms-flexbox; display: flex; }

.mpm-nav-phone {
  color: #5cb85c !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
}
.mpm-nav-phone:visited { color: #5cb85c !important; }
.mpm-nav-phone:hover { color: #f5a623 !important; }

.mpm-nav-email {
  color: #aaa !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 400;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  white-space: nowrap;
}
.mpm-nav-email:visited { color: #aaa !important; }
.mpm-nav-email:hover { color: #f5a623 !important; }

/* Иконки */
.mpm-nav-icons {
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  margin-left: 12px;
  padding: 8px 0;
}
.mpm-nav-icons a { opacity: 0.85; transition: opacity 0.2s; filter: brightness(1.4); }
.mpm-nav-icons a:hover { opacity: 1; filter: brightness(2); }

/* Отступ под sticky чтобы контент не прыгал */
body.mpm-has-sticky .mpm-nav-placeholder { display: block; }
.mpm-nav-placeholder { display: none; }

/* Убираем лишние отступы снизу контентного блока */
.cont { padding-bottom: 0 !important; }
.centerblock { padding-bottom: 0 !important; }
.root { padding-bottom: 0 !important; }
.cl.end { margin: 0 !important; padding: 0 !important; height: 0 !important; }
