.ms-site-header {
  position: relative;
  background: #1a5276;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.ms-desktop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ms-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ms-menu-item {
  position: relative;
}
.ms-menu-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.ms-menu-link i {
  margin-right: 8px;
  width: 20px;
  text-align: center;
}
.ms-menu-link:hover {
  background: #2e86c1;
  color: white;
}
.ms-menu-item.active .ms-menu-link {
  background: #2e86c1;
  color: white;
  pointer-events: none;
}
.ms-callback-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  margin-right: 20px;
}
.ms-callback-btn:hover {
  background: #219653;
}
.ms-mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #1a5276;
  color: white;
  padding: 10px 15px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}
.ms-mobile-header.sticky {
  transform: translateY(0);
}
.ms-mobile-header.hidden {
  transform: translateY(-100%);
}
.ms-mobile-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
  margin-left: auto;
}
.ms-mobile-toggle:hover {
  background: rgba(255,255,255,0.1);
}
.ms-mobile-toggle i {
  margin-right: 8px;
  font-size: 18px;
}
.ms-mobile-phone {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.ms-mobile-phone:hover {
  color: #aed6f1;
}
.ms-mobile-phone i {
  margin-right: 8px;
}
.ms-mobile-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f0f0f0;        /* светлый фон */
  border: none;
  font-size: 20px;
  color: #333;                 /* тёмный цвет для контраста */
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.ms-mobile-close:hover {
  background: #e74c3c;
  color: white;
}
.ms-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s;
}
.ms-mobile-panel {
  position: fixed;
  top: 40px;
  right: -100%;
  width: 280px;
  height: calc(100% - 40px);
  background: white;
  z-index: 999;
  overflow-y: auto;
  transition: right 0.3s ease;
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}
.ms-mobile-list {
  flex-grow: 1;
  padding: 60px 0 20px;
}
.ms-mobile-list .ms-menu-item {
  border-bottom: 1px solid #ecf0f1;
}
.ms-mobile-list .ms-menu-link {
  color: #2c3e50;
  padding: 15px 20px;
}
.ms-mobile-footer {
  background: #1a5276;
  padding: 20px;
  color: white;
  text-align: center;
  margin-top: auto;
}
.ms-footer-text {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 500;
}
.ms-footer-phone {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  display: block;
  transition: color 0.3s;
  margin-bottom: 10px;
}
.ms-footer-phone:hover {
  color: #aed6f1;
}
.ms-callback-mobile {
  width: 100%;
}
@media (max-width: 768px) {
  .ms-desktop-nav {
    display: none;
  }
  .ms-mobile-header {
    display: flex;
  }
  .ms-mobile-panel.active {
    right: 0;
  }
  .ms-mobile-overlay.active {
    display: block;
    opacity: 1;
  }
  body {
    padding-top: 60px;
  }
  .ms-mobile-panel .ms-menu-list {
    display: block;
    width: 100%;
  }
}