/* Общие стили для шапки */
.header-fixed {
  width: 100%;
  position: fixed;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: auto; */
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc((100% - (5 * 18%)) / 4);
}

.header-block {
  display: flex;
  flex-direction: row;
  align-items: center;
}



/* Стили для логотипа */
.header-logo {
  width: 100px;
  height: auto;
}

.header-logo img {
  max-width: 100%;
  height: auto;
}

/* Стили для информационных блоков */
.header-info {
  flex: 1;
  padding: 0 15px;
  font-size: 14px;
  line-height: 1.4;
}

.header-info-title {
  font-weight: bold;
  color: #b50847;
  margin-bottom: 5px;
}

.header-info-content {
  color: #333;
}

/* Стили для телефона */
.header-phone {
  font-size: 16px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.header-phone:hover {
  color: #4eb3ca;
}

/* Стили для кнопки записи */
.header-button-container {
  /* background-color: #b50847; */
  /* color: #b50847 !important; */
  border: 1px solid #b50847;
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  display: inline-block;
}


.header-button-container a {
  color: #b50847 !important;
}


/* .header-button:hover {
      background-color: #940738;
    } */

/* Стили для меню */
.nav-container {
  background-color: #395e88;
  width: 100%;
}

.nav-menu {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

/* Мобильная навигация */
.mobile-menu-toggle {
  display: none;
  background: #395e88;
  border: none;
  font-size: 14px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  border-radius: 10px;
  padding: 10px 24px;
  /* border: 1px solid #395e88; */
}

/* Медиа-запросы для адаптивности */
@media (max-width: 960px) {

  .header-container {
    padding: 0 20px;
  }

  .header-row {
    flex-wrap: wrap;
  }

  .header-info.work-hours,
  .header-info.address,
  .icon-address,
  .header-button-container {
    display: none;
  }


  .header-logo {
    width: 100px;
  }

  .mobile-menu-toggle {
    display: block;


  }

  .nav-container {
    display: none;
  }

  .nav-container.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 10;
  }

  .nav-menu {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .header-row {
    justify-content: space-between;
  }



  .header-logo,
  .header-phone-container,
  .header-button-container {
    flex: 0 0 auto;
  }
}

@media (max-width: 540px) {

  .time-icon,
  .phone-icon {
    display: none;
  }

  .header-logo {
    width: 70px;
  }

  .header-phone {
    font-size: 14px;
  }
}

/* Стили для мобильного меню */
.mobile-menu-container {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.mobile-menu-container.active {
  right: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Шапка мобильного меню */
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f8f8f8;
}

.mobile-logo {
  width: 70px;
}

.mobile-logo img {
  max-width: 100%;
  height: auto;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
}

/* Содержимое мобильного меню */
.mobile-menu-content {
  padding: 15px;
}

/* Стили для навигации в мобильном меню */
.mobilenav-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.mobilenav-menu li {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.mobilenav-menu li a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-size: 16px;
}

.mobilenav-menu li a:hover {
  background-color: #f8f8f8;
}

/* Выпадающее подменю */
.mobilenav-menu .sub-menu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #f8f8f8;
}

.mobilenav-menu .sub-menu li {
  border-bottom: none;
  border-top: 1px solid #eaeaea;
}

.mobilenav-menu .sub-menu li a {
  padding-left: 30px;
  font-size: 14px;
}

/* Кнопка раскрытия подменю */
.dropdown-toggle {
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 47px;
  background: none;
  border: none;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  z-index: 2;
}

.dropdown-toggle::after {
  content: '+';
  display: block;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active::after {
  transform: rotate(45deg);
}

/* Информационные блоки в мобильном меню */
.mobile-info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.mobile-info-icon {
  min-width: 30px;
  margin-right: 15px;
}

.mobile-info-icon svg {
  width: auto;
  height: 22px;
}

.mobile-info-text {
  flex: 1;
}

.mobile-info-title {
  font-weight: bold;
  font-size: 12px;
  color: #b50847;
  margin-bottom: 3px;
}

.mobile-info-content {
  font-size: 14px;
  color: #333;
}

.mobile-phone {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

/* Кнопка записи на прием в мобильном меню */
.mobile-button-wrapper {
  margin-top: 20px;
  text-align: center;
}

.mobile-button {
  display: inline-block;
  background-color: #b50847;
  color: white !important;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s;
  width: 100%;
  text-align: center;
}

.mobile-button:hover {
  background-color: #940738;
}

/* Стили для гармонизации с вашей измененной шапкой */
@media (max-width: 960px) {
  .mobile-menu-toggle {
    background: #395e88;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border-radius: 10px;
    padding: 10px 24px;
  }

  .burger-icon {
    display: inline-block;
  }
}

@media (max-width: 540px) {
  .mobile-logo {
    width: 70px;
  }
}