html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  padding-top: 100px;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;

  width: auto;
  height: 100px;

  background-color: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  box-sizing: border-box;

  display: flex;
  align-items: center;

  z-index: 1000;

  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.main-header--scrolled {
  height: 60px;
  box-shadow: 0 2px 5px rgba(255, 108, 26, 0.2);
}

.main-header__container {
  position: relative;

  width: 100%;
  height: 100%;

  padding: 0 48px;
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-header__left {
  height: 100%;

  display: flex;
  align-items: center;
  gap: 48px;

  min-width: 0;
}

.main-header__right {
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-shrink: 0;
}

.main-header__logo {
  width: 120px;
  height: 100%;

  display: flex;
  align-items: center;

  flex-shrink: 0;

  text-decoration: none;
}

.main-header__logo img {
  max-width: 100%;
  height: 92px;
  width: auto;

  display: block;
  object-fit: contain;

  transition: height 0.3s ease, transform 0.3s ease;
}

.main-header--scrolled .main-header__logo img {
  height: 50px;
}

.main-header__logo img:hover {
  transform: scale(1.05);
}

.main-header__desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;

  flex-shrink: 0;
}

.main-header__nav-link {
  color: #ffffff;

  font-size: 16px;
  font-weight: 700;
  line-height: 1;

  text-decoration: none;
  white-space: nowrap;

  transition: color 0.3s ease, transform 0.3s ease;
}

.main-header__nav-link:hover {
  color: #ff6c1a;
  transform: scale(1.05);
}

.main-header__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.main-header__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-header__socials img {
  width: 24px;
  height: 24px;

  display: block;

  filter: invert(1);
  opacity: 0.85;

  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-header__socials img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.main-header__burger {
  display: none;

  width: 36px;
  height: 28px;

  padding: 0;
  border: none;
  background: transparent;

  cursor: pointer;
}

.main-header__burger span {
  display: block;

  width: 100%;
  height: 3px;

  margin-bottom: 7px;

  background-color: #ffffff;
  border-radius: 2px;

  transition: transform 0.3s ease, opacity 0.3s ease;
}

.main-header__burger span:last-child {
  margin-bottom: 0;
}

.main-header__burger--active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.main-header__burger--active span:nth-child(2) {
  opacity: 0;
}

.main-header__burger--active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.main-header__mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  width: 100%;

  display: none;
  flex-direction: column;
  align-items: center;
  gap: 22px;

  padding: 24px 16px 28px;

  background-color: #1e1e1e;
  border-bottom: 1px solid #2a2a2a;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);

  box-sizing: border-box;
}

.main-header__mobile-menu--active {
  display: flex;
}

.main-header__mobile-socials {
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .main-header__container {
    padding: 0 28px;
  }

  .main-header__left {
    gap: 32px;
  }

  .main-header__desktop-nav {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 84px;
  }

  .main-header {
    height: 84px;
  }

  .main-header--scrolled {
    height: 70px;
  }

  .main-header__container {
    padding: 0 18px;
  }

  .main-header__left {
    gap: 0;
  }

  .main-header__logo {
    width: 96px;
  }

  .main-header__logo img {
    height: 74px;
  }

  .main-header--scrolled .main-header__logo img {
    height: 58px;
  }

  .main-header__desktop-nav,
  .main-header__desktop-socials {
    display: none;
  }

  .main-header__burger {
    display: block;
  }

  .main-header__mobile-menu .main-header__nav-link {
    font-size: 18px;
  }
}

@media (max-width: 420px) {
  body {
    padding-top: 78px;
  }

  .main-header {
    height: 78px;
  }

  .main-header--scrolled {
    height: 64px;
  }

  .main-header__container {
    padding: 0 14px;
  }

  .main-header__logo {
    width: 86px;
  }

  .main-header__logo img {
    height: 66px;
  }

  .main-header--scrolled .main-header__logo img {
    height: 52px;
  }

  .main-header__burger {
    width: 34px;
    height: 26px;
  }

  .main-header__burger span {
    height: 3px;
    margin-bottom: 6px;
  }

  .main-header__burger--active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .main-header__burger--active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-header__socials img {
    width: 22px;
    height: 22px;
  }
}