.edem-header-wrapper {
  background-color: #232732;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.edem-header-wrapper::after {
  content: "";
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.edem-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  position: relative;
  z-index: 10;
}

/* Логотип — крупный, слева */
.edem-header-logo-link {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.edem-header-logo-img {
  height: auto;
  max-height: 130px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* Меню — по центру */
.edem-header-nav {
  /* Убираем absolute — теперь центрируем через flex */
  position: static;
  text-align: center;
  flex-grow: 1;             /* занимает свободное место, чтобы вытолкнуть соцсети вправо */
  margin: 0;
  padding: 0;
}

.edem-header-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;  /* центрирование пунктов меню */
  align-items: center;
  gap: 32px;               /* воздух между пунктами */
  flex-wrap: wrap;         /* на узких экранах переносятся */
}

.edem-header-nav-item {
  display: inline-block;
}

.edem-header-nav-link {
  color: #ffffff!important;
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.edem-header-nav-link:hover {
  color: #ff6600;
  opacity: 1;
}

/* Соцсети — справа, компактные */
.edem-header-social {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-shrink: 0;
  z-index: 3;
}

.edem-header-social-link {
  display: block;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.edem-header-social-link:hover {
  opacity: 1;
}

.edem-header-social-icon {
  display: block;
  height: 20px;
  width: auto;
  vertical-align: middle;
}

@media (max-width: 992px) {
  .edem-header-container {
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    padding: 14px 15px;
    justify-content: flex-start;
  }

  .edem-header-logo-img {
    max-height: 100px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
  }

  /* На планшете меню тоже по центру, но в одну строку или с переносом */
  .edem-header-nav {
    position: static;
    text-align: center;
    flex-grow: 0;
    margin: 0;
  }

  .edem-header-nav-list {
    gap: 24px;
    justify-content: center;
  }

  .edem-header-nav-link {
    font-size: 15px;
  }

  .edem-header-social {
    justify-content: center;
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  /* На мобильном меню скрыто — у тебя уже есть своё мобильное меню */
  .edem-header-nav {
    display: none;
  }

  .edem-header-logo-img {
    max-height: 80px;
  }

  .edem-header-social {
    justify-content: center;
    gap: 16px;
  }

  .edem-header-social-icon {
    height: 22px;
  }
}