* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth; /* Плавный скроллинг для всей страницы */
}

.scroll-link {
  cursor: pointer; /* Добавим стиль для ссылки */
}

body {
  font-family: "Orbitron";
  font-family: "Fira Sans", sans-serif;
  background-color: #e2e2e2;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Обеспечивает, чтобы хедер был сверху */
  width: 100%;
  background-color: #e2e2e2; /* Можно изменить фон, если требуется */
}

.header {
  display: flex;
  justify-content: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.header-width {
  width: 78.9%;
  min-width: 1010px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header-width-icons {
  display: flex;
  align-items: center;
  min-width: 376px;
  width: 100%;
}

.header-width-icons-social {
  padding-left: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.header-width-icons-social-non-padding {
  padding-left: 0;
}

.header-width-icons-social:hover {
  opacity: 0.7;
}

.header-width-icons-social-non-padding-burger {
  padding-left: 0;
}

.header-width-icons-social-burger:hover {
  opacity: 0.7;
}

.header-width-icons-phone {
  padding-left: 13%;
  font-weight: 400;
  font-size: 20px;
  text-align: right;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.header-width-icons-phone:hover {
  opacity: 0.7;
}

.header-width-burger {
  display: flex;
  align-items: center;
  min-width: 284px;
  width: 100%;
  justify-content: flex-end;
}

.header-width-consult-text {
  padding-right: 19%;
  font-weight: 400;
  font-size: 20px;
  color: #444;
  cursor: pointer;
  transition: all 0.3s;
}

.header-width-consult-text:hover {
  opacity: 0.7;
}

.header-width-consult-burger {
  cursor: pointer;
  transition: all 0.3s;
}

.header-width-consult-burger:hover {
  opacity: 0.7;
}

.menu a:hover {
  color: #666;
}

.menu-item-link {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 25px;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-align: right;
  color: #444;
  cursor: pointer;
  transition: all 0.3s;
}

.menu-item-link:hover {
  opacity: 0.7;
}

.menu-item-link-mob {
  display: none;
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.menu-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-top: 80%;
  gap: 25px;
}

.header-width-icons-phone-menu {
  font-family: "Fira Sans", sans-serif;
  font-weight: 400;
  font-size: 25px;
  text-align: right;
  color: #444;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.header-width-icons-phone-menu:hover {
  opacity: 0.7;
}

/* Меню изначально скрыто за правой границей экрана */
.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 376px;
  height: 100%;
  background: #fff; /* Белый фон */
  border-radius: 20px 0 0 20px; /* Закругление углов слева */
  padding: 31px 60px 0px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  transform: translateX(100%); /* Скрыть меню за правой границей */
  transition: transform 0.3s ease-in-out; /* Плавная анимация выезда */
  align-items: flex-end;
}

/* Активное состояние панели: меню в области видимости */
.menu-overlay.active .menu-panel {
  transform: translateX(0); /* Показывает меню */
}

/* Затемнение экрана */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Затемнение */
  z-index: 1000;
  display: flex;
  justify-content: flex-end; /* Контент внутри располагается справа */
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Когда меню активно */
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-overlay-clous {
  cursor: pointer;
  transition: all 0.3s;
}

.menu-overlay-clous:hover {
  opacity: 0.7;
}

.header-width-burger-logo {
  display: none;
}

.header-width-icons-social-burger {
  padding-left: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.header-width-icons-social-burger:hover {
  opacity: 0.7;
}

.header-width-consult-text-mob {
  display: none;
}

.header-width-logo-mogramma {
  width: 250px;
}

@media (max-width: 1280px) {
  .header {
    display: flex;
    justify-content: center;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .header-width-burger-logo {
    display: block;
    min-width: 150px;
    width: 100px;
  }

  .header-width-icons-social {
    display: none;
  }

  .header-width-icons-phone {
    display: none;
  }

  .header-width-consult-text {
    display: none;
  }

  .header-width-icons {
    display: none;
  }

  .header-width {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0px;
  }

  .header-width-burger {
    display: flex;
    min-width: 0px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 214px;
    height: 100%;
    background: #fff;
    border-radius: 20px 0 0 20px;
    padding: 30px 24px 0px 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    align-items: flex-end;
  }

  .menu-overlay-clous {
    width: 21px;
  }

  .menu-item-link {
    font-weight: 400;
    font-size: 15px;
  }

  .header-width-icons-phone-menu {
    font-weight: 400;
    font-size: 15px;
  }

  .menu-bottom {
    padding-top: 50%;
  }

  .header-width-icons-social-burger {
    width: 21px;
    padding-left: 10px;
  }

  .header-width-icons-social-non-padding-burger {
    padding-left: 0px;
  }

  .menu-bottom {
    gap: 17px;
  }

  .menu-item-link-pc {
    display: none;
  }

  .menu-item-link-mob {
    display: block;
  }

  .header-width-consult-text-mob {
    display: block;
    font-family: "MicraDi", sans-serif;
    font-weight: 500;
    font-size: 10px;
    text-align: right;
  }

  .header-width-mogramma {
    display: none;
  }
}
