header {
  position: fixed; /* Фиксированное позиционирование хедера */
  top: 0; /* Прикрепить хедер к верху окна просмотра */
  left: 0; /* Прикрепить хедер к левому краю окна просмотра */
  z-index: 100; /* Убедитесь, что хедер находится над всеми другими элементами */
  box-sizing: border-box;
  width: 100%;
  height: 12rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  background-color: #edecea;
  padding: 0 5.6%;
}

header .logo {
  width: 14.3rem;
  height: 11.8rem;
  position: relative;
  top: -1.5rem;
  left: -2rem;
  background-size: 100%;
  background-image: url("../assets/logo.svg");
  flex-shrink: 0;
}

header nav {
  flex-grow: 1;
  width: 100%; /* Ширина контейнера на всю доступную область */
}
header .main-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 1rem; /* Расстояние между пунктами меню */
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%; /* Ширина контейнера на всю доступную область */
}

header .menu-item {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2rem;
  color: #000000;
  white-space: nowrap;
  flex-shrink: 0;
}

header .main-navigation a {
  text-decoration: none;
  color: #000;
  font-size: 1.8rem;
}

header .main-navigation a:hover {
  text-decoration: underline;
}

header .dropdown {
  position: relative;
  display: inline-block;
}

header .dropdown .dropdown-name:hover {
  text-decoration: none; /* Убираем подчеркивание текста */
  cursor: default; /* Задаем стандартный курсор */
}

header .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -70%;
  background-color: white;
  min-width: 160px;
  z-index: 1;
  margin-top: 2rem;
  border: 1px solid #ff9bab;
}

header .dropdown-content li {
  width: 100%;
}
header .dropdown-content a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: black;
  font-size: 1.4rem;
  width: 100%;
  padding-left: 1rem;
}

header .dropdown-content a:hover {
  text-decoration: none;
  background-color: #ff9bab;
}

header .dropdown:hover .dropdown-content {
  display: block;
}

header .dropdown-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 2rem;
  height: 2rem;
  background-color: white;
  border: 1px solid #ff9bab;
  border-color: #ff9bab transparent transparent #ff9bab;
  z-index: -101;
}

header .dropdown-content::after {
  content: "";
  position: absolute;
  top: -2.5rem; /* Расстояние от верхней границы подменю */
  left: 0;
  width: 100%;
  height: 2.5rem; /* Высота невидимой области */
  z-index: 1; /* Убедитесь, что z-index выше, чем у выпадающего меню */
}

header .contact-info {
  /* margin: 0 6rem; */
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-left: 0rem;
  margin-right: 0rem;
}
header .contact-info .phone-number {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1b1b1b;
  font-family: Inter, "Source Sans Pro";
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  flex-shrink: 0;
}
header .contact-info .phone-number:hover {
  text-decoration: underline;
}
header .contact__social {
  width: 120%;
  display: flex;
  justify-content: space-around;
  margin-right: -10%;
}

header .contact__icon {
  width: 3rem;
  height: 3rem;
}

header .contact__icon img {
  width: 100%; /* Задайте ширину изображения равной ширине контейнера */
  height: 100%; /* Задайте высоту изображения равной высоте контейнера */
}

header .icon-instagram:hover img {
  content: url("../assets/icons/icon_instagram_hover.svg");
}
header .icon-telegram:hover img {
  content: url("../assets/icons/icon_telegram_hover.svg");
}
header .icon-email:hover img {
  content: url("../assets/icons/icon_email_hover.svg");
}
header .icon-tiktok:hover img {
  content: url("../assets/icons/icon_tiktok_hover.svg");
}

header .fullscreen-menu-buttons,
header .header-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

header .fullscreen-menu-buttons {
  display: none;
}

header .button {
  width: 20rem;
  height: 5rem;
  font-size: 1.8rem;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  flex-shrink: 0;
  cursor: pointer;
  text-decoration: none; /* Убирает подчеркивание текста */
}

header .apply-button {
  background-color: #ff9bab;
  border: none;
}

header .apply-button:hover {
  background-color: #f4667d;
}

header .pay-button {
  background-color: transparent;
  color: #000;
  border: 1px solid black;
}

header .pay-button:hover {
  background-color: #dee6e8;
}

header .icon-mastercard,
header .icon-visa {
  width: 2.5rem; /* или другой размер, который подходит */
  height: auto;
  vertical-align: middle;
}

header .icon-mastercard {
  margin-left: 1rem;
}

/* Стили для burger menu */
.burger-menu {
  display: none; /* Initially hidden */
  cursor: pointer;
  z-index: 200;
  position: relative;
  width: 5rem;
  height: 5rem;
  justify-content: center;
  align-items: center;
}

.burger-menu .burger-bar {
  width: 4rem;
  height: 3px;
  background-color: #5a808a;
  position: relative;
  transition: all 0.3s ease;
}

.burger-menu .burger-bar::before,
.burger-menu .burger-bar::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #5a808a;
  transition: all 0.3s ease;
}

.burger-menu .burger-bar::before {
  transform: translateY(-1.2rem);
}

.burger-menu .burger-bar::after {
  transform: translateY(1.2rem);
}

/* Стили для fullscreen menu */
.fullscreen-menu {
  display: none; /* Initially hidden */
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #edecea; /* Semi-transparent black */
  z-index: 101;
  align-items: center;
  justify-content: center;
  margin-top: 11rem;
}

.fullscreen-menu ul {
  list-style: none;
  text-align: center;
}

.fullscreen-menu ul li {
  padding: 2rem;
}

.fullscreen-menu ul li a {
  color: black;
  text-decoration: none;
  font-size: 3rem;
}

/* Стили для активного состояния (крестик) */
.burger-menu.open .burger-bar {
  background: transparent; /* Скрыть центральную полосу */
}

.burger-menu.open .burger-bar::before,
.burger-menu.open .burger-bar::after {
  top: 0; /* Обе полосы в центр */
}

.burger-menu.open .burger-bar::before {
  transform: rotate(45deg);
}

.burger-menu.open .burger-bar::after {
  transform: rotate(-45deg);
}

.fullscreen-menu.show {
  display: flex; /* Show the menu */
  flex-direction: column;
}

/* Стили для адаптивности */
@media screen and (max-width: 1200px) {
  header .fullscreen-menu-buttons,
  header .header-buttons {
    flex-direction: column;
  }

  header .button {
    height: 4rem;
  }
}

@media screen and (max-width: 768px) {
  header {
    height: 8rem;
  }

  .burger-menu {
    display: flex;
  }

  header .desktop-menu {
    display: none;
  }

  header .fullscreen-menu-buttons {
    display: flex;
    margin-bottom: 5rem;
    gap: 5rem;
  }

  header .header-buttons {
    display: none;
  }

  header .logo {
    width: 8rem;
    height: 8rem;
    background-position: -0rem 1.5rem;
  }

  header .contact-info .phone-number {
    font-size: 1.4rem;
    margin-bottom: 0.7rem;
  }

  .fullscreen-menu {
    margin-top: 8rem;
  }
}

@media screen and (max-width: 480px) {
  header {
    height: 6rem;
  }

  header .logo {
    width: 7rem;
    height: 8rem;
    background-position: 0rem 2rem;
  }

  header .contact__icon {
    width: 2rem;
    height: 2rem;
  }

  header .contact-info .phone-number {
    margin-bottom: 0.5rem;
  }

  .fullscreen-menu {
    margin-top: 6rem;
  }

  .burger-menu .burger-bar {
    width: 2.4rem;
  }

  .burger-menu .burger-bar::before {
    transform: translateY(-0.8rem);
  }

  .burger-menu .burger-bar::after {
    transform: translateY(0.8rem);
  }
}
