.head {
  width: 100%;
  display: flex;
  justify-content: center;
}
.nav1 {
  height: 96px;
  width: 75%;
  max-width: 1200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center; /* выравнивание по вертикали */
}

.headLeft {
  padding: 24px 0px;
  height: 48px;
  display: flex;
  align-items: center;
}
.headCenter {
  padding: 24px 0px;
  height: 48px;
  display: flex;
  align-items: center;
}
.icon {
  height: 60px;
}
.headRight {
  padding: 24px 0px;
  height: 48px;
  display: flex;
  align-items: center;
}
.headRightContact {
  color: #111111;
  font-size: 16px; /* размер шрифта ссылок */
  font-weight: 200;
  margin-right: 20px; /* промежутки */
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
}
.navMenu {
  display: none;
}
.headRightContact1 {
  color: #111111;
  font-size: 16px; /* размер шрифта ссылок */
  font-weight: 200;
  margin-right: 20px; /* промежутки */
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
}
.navMenu li {
  list-style-type: none;
}
.headRightContact1:hover {
  transition: opacity 0.5s ease; /* плавная анимация opacity */
  opacity: 0.8;
}
.headRightContact:hover {
  transition: opacity 0.5s ease; /* плавная анимация opacity */
  opacity: 0.8;
}
.menuToggle {
  display: none; /* по умолчанию скрыта, показываем только на мобильных */
  width: 36px;
  height: 30px;
  padding: 0;
  margin-left: 8px;
  border: none;
  background: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menuToggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #111111;
  border-radius: 999px;
  transition:
    opacity 0.5s,
    transform 0.5s;
}
.head.open .span1 {
  transform: translateY(9px) rotate(-45deg);
}
.head.open .span2 {
  opacity: 0;
}
.head.open .span3 {
  transform: translateY(-9px) rotate(45deg);
}
.section2 {
  width: 100%; /* занимает всю ширину родителя */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 0 12px;
}
.rating {
  width: 76%;
  max-width: 1200px;
  height: 55px;
  padding-bottom: 3px;
}
.section2MessengerIcons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0 auto;
}
.messengerIconLink {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #27ae60;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.messengerIconLink:hover {
  transform: translateY(-2px);
  filter: brightness(0.9);
}
.messengerIconLinkMax {
  background: #27ae60;
}
.maxIconImage {
  width: 22px;
  height: 22px;
  object-fit: cover;
}
.head.open + main .section2MessengerIcons {
  display: none;
}
.ratingFrame {
  height: 50px;
  width: 100%;
  border: none;
}
@media (max-width: 1359px) {
  .nav1 {
    width: 65%;
  }
  .rating {
    width: 66%;
  }
  .icon {
    height: 45px;
  }
}
@media (max-width: 959px) {
  .nav1 {
    width: 75%;
    max-width: 100%;
    padding: 0 16px;
  }
  .rating {
    width: 76%;
  }
  .section2 {
    gap: 10px;
  }

  .headLeft {
    display: none;
  }

  .headRightContact {
    display: none;
  }

  .headCenter {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 0;
  }

  .headRight {
    display: none;
  }

  .headCenter .icon {
    height: 45px; /* уменьшаем логотип на мобильных */
  }

  .menuToggle {
    display: flex; /* показываем кнопку-бургер */
  }
  .navMenu {
    display: block;
    position: absolute;
    left: -65%;
    top: 96px;
    background-color: white;
    width: 65%;
    height: 100vh;
    z-index: 2;
    transition: transform 0.5s;
  }
  .burgerMenu {
    padding: 30px 20px 200px 20px;
  }
  .burgerMenu li {
    padding-bottom: 30px;
    padding-left: 50px;
  }
  .burgerMessengerIcons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 30px;
    padding-left: 50px;
    flex-wrap: wrap;
  }
  .head.open .navMenu {
    transform: translateX(100%);
  }
  .head.open a,
  .head.open button,
  .head.open + main a,
  .head.open + main button,
  .head.open + main [class*="button"],
  .head.open + footer a,
  .head.open + footer button,
  .head.open + footer [class*="button"] {
    transition: none !important;
  }
  .head.open a:hover,
  .head.open button:hover,
  .head.open + main a:hover,
  .head.open + main button:hover,
  .head.open + main [class*="button"]:hover,
  .head.open + footer a:hover,
  .head.open + footer button:hover,
  .head.open + footer [class*="button"]:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
  }

  .section2MessengerIcons .messengerIconLink,
  .section2MessengerIcons .messengerIconLink:hover {
    transform: none;
    filter: none;
    transition: none;
  }
}
@media (max-width: 639px) {
  .navMenu {
    width: 100%;
    left: -100%;
  }
  .burgerMenu li {
    padding-bottom: 30px;
    padding-left: 0px;
  }
  .burgerMessengerIcons {
    padding-left: 0px;
    gap: 10px;
  }
  .burgerMenu ul {
    padding-left: 25px;
  }
  .nav1 {
    width: 95%;
    max-width: 100%;
    padding: 0 16px;
  }
  .rating {
    width: 95%;
  }
  .section2MessengerIcons {
    gap: 10px;
  }
  .messengerIconLink {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .maxIconImage {
    width: 20px;
    height: 20px;
  }

  .headLeft {
    display: none; /* скрываем левое меню с текстовыми ссылками */
  }

  .headRightContact {
    display: none; /* скрываем текстовые ссылки справа */
  }

  .headCenter {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 0;
  }

  .headCenter .icon {
    height: 45px; /* уменьшаем логотип на мобильных */
  }

  .menuToggle {
    display: flex; /* показываем кнопку-бургер */
  }
}
