header {
  padding: 8px 28px;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.h-location {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--colorFC);
  font-size: 12px;
  line-height: normal;
}
.h-location[class*=icon-]::before {
  font-size: 18px;
}

.site-logo {
  display: flex;
  align-items: center;
  width: 120px;
  height: 74px;
}

.h-contacts {
  display: flex;
  align-items: center;
  gap: 25px;
}

.contact {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--colorFC);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.12s linear;
}
.contact[class*=icon-]::before {
  font-size: 15px;
}
.contact:hover {
  color: var(--accentColor);
  transition: color 0.12s linear;
}

.burger {
  display: none;
}

@media screen and (max-width: 1023px) {
  header {
    padding: 8px 28px;
    position: fixed;
    z-index: 1000;
    background: var(--bgColor);
    width: 100%;
    border-radius: 0 0 20px 20px;
  }
  nav.main-menu {
    position: fixed;
    right: -100%;
    top: 0;
    height: 100%;
    z-index: 999;
    border-radius: 0;
    width: 100%;
    max-width: 375px;
    padding: 106px 28px 80px 28px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in;
  }
  nav.main-menu.opened {
    right: 0%;
    opacity: 1;
    visibility: visible;
    transition: all 0.2s ease-out;
  }
  nav.main-menu ul {
    flex-direction: column;
    align-items: flex-end;
  }
  .site-logo {
    order: -1;
    width: 82px;
    height: 52px;
    flex-shrink: 0;
  }
  .h-contacts {
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
    margin: 0 30px 0 auto;
  }
  .h-location {
    display: none;
  }
  .burger {
    position: relative;
    display: block;
    padding: 0;
    width: 32px;
    height: 24px;
    outline: none;
    background: transparent;
  }
  .burger span {
    position: absolute;
    display: block;
    width: 100%;
    height: 4px;
    background: var(--colorFC);
    border-radius: 20px;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    transition: all 0.12s ease;
    overflow: hidden;
  }
  .burger::after, .burger::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 4px;
    background: var(--colorFC);
    left: 0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.12s ease;
  }
  .burger::before {
    top: 0;
  }
  .burger::after {
    bottom: 0;
  }
  .burger.opened::before {
    top: auto;
    transform: translate(0, -50%) rotate(-45deg);
    transition: all 0.12s ease;
  }
  .burger.opened::after {
    bottom: auto;
    transform: translate(0, -50%) rotate(45deg);
    transition: all 0.12s ease;
  }
  .burger.opened span {
    left: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.12s ease;
  }
}
@media screen and (max-width: 480px) {
  .h-contacts .icon-mail {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 166px;
  }
}