ul {
  margin-top: 20px !important;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 100px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
}

header.sticky {
  background: var(--accent-background);
  border-bottom: solid 0.2rem var(--border-color);
  padding: 10px 100px;
  font-family: "e-UkraineHead-Bold", sans-serif;
  font-size: 0.8rem;
}

header .header-image {
  display: inline-block;
  height: 2rem;
  padding-right: 1rem;
}

@media (max-width: 300px) {
  header .header-image {
    display: none;
  }
}

header .inside-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1080px;
}

header .logo {
  color: var(--background);
  font-size: 1.4em;
  text-decoration: none;
  display: flex;
  align-items: center;
  max-width: 50%;
  margin: 0 !important;
}

header .navigation {
  position: relative;
  display: flex;
}

header .navigation li {
  list-style: none;
  margin-left: 30px;
  text-align: center;
}

header .navigation li a {
  text-decoration: none;
  color: #fff;
  font-weight: 300;
}

header.sticky .navigation li a {
  color: var(--background);
}

header .navigation li a:hover {
  color: var(--background);
}

.burger-menu {
  display: none;
}

.burger-icon {
  cursor: pointer;
  padding: 0 10px;
}

@media (max-width: 750px) {
  .burger-menu {
    display: block;
  }
  
  .priority {
    z-index: 3;
  }
  
  .navigation {
      z-index: 2;
  }
  
  .nav__links {
    display: none;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 60px; /* Регулируйте отступ в зависимости от вашего дизайна */
    right: 0;
    width: 100%;
  }

  .nav__links.active {
    display: flex;
    gap: 1rem;
    list-style: none;
    box-sizing: border-box;
    margin: 0 0 0 0;
    color: var(--background);
  }

  .nav__links li {
    padding: 1em;
    margin-left: 4.5em;
  }

  p {
    margin-bottom: 1rem;
  }
  
  header .logo {
    max-width: calc(90% - 40px);
  }
}

@media (max-width: 991px) {
  header,
  header.sticky {
    padding: 10px 20px;
  }

  header .navigation {
    display: none;
  }

  header .navigation.active {
    width: 100%;
    height: 100%;
    position: fixed;
    padding-top: 100px !important;
    left: 0;
    top: 0;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    background: var(--accent-background);
    padding: 0;
  }

  header .navigation li {
    margin-left: 0;
    padding-top: 20px;
  }

  header .navigation li a {
    font-size: 2em;
  }

  .menuToggle {
    position: relative;
    height: 40px;
    width: 40px;
    background: url(/images/icons/menu.svg);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
  }

  .menuToggle.active {
    background: url(/images/icons/close.svg);
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
  }

  .sticky .line {
    height: 1px;
    background: var(--background);
    width: 75%;
    margin: 0 auto;
    margin-top: 20px;
  }
}
  
@media (max-height: 500px) {
  .navigation.active .line {
      display: none;
  }
}

@media (max-width: 400px) {
    header .navigation li a, header .logo {
    font-size: 0.9em;
  }
  
  .menuToggle {
    background-size: 20px;
    background-position: right;
  }
}