.main-header {
  position: relative;
  width: 100%;
  min-height: 100px;
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  background-color: white;
  z-index: 10;
}

.header-ros-logo {
  width: 108px;
  height: 28px;
}

.header-menu {
  display: flex;
  align-items: center;
  gap: 56px;
}

.github-header-button {
  position: relative;
  overflow: hidden;
  width: 141px;
  height: 40px;
  align-items: center;
  background-color: white;
  border: 1px solid var(--primary-black);
  border-radius: 6px;
}

.github-header-button-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 7px 8px;
  gap: 12px;
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.github-header-button-initial {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.github-header-button-hover {
  opacity: 0;
  background-color: var(--alt-white);
  transform: translate3d(0, 25%, 0);
}

.github-header-button:hover .github-header-button-initial {
  opacity: 0;
  transform: translate3d(0, -25%, 0);
}

.github-header-button:hover .github-header-button-hover {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.github-button-text {
  width: 100%;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: var(--primary-black);
}

.header-github-icon {
  width: 26px;
  height: 26px;
  color: var(--primary-black);
}

.header-menu-link {
  position: relative;
  width: fit-content;
  font-size: 13px;
  font-weight: 600;
  line-height: 140%;
  letter-spacing: 0.05em;
  color: var(--primary-black);
}

.header-menu-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--primary-black);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.header-menu-link:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.header-button-wrapper {
  display: flex;
  align-items: center;
  gap: 0; 
}

.header-burger-button {
  position: relative;
  width: 32px;
  height: 32px;
  display: none;
}

.menu-icon__cheeckbox {
		display: block;
		width: 100%;
		height: 100%;
		position: relative;
		cursor: pointer;
		z-index: 2;
		-webkit-touch-callout: none;
		position: absolute;
		opacity: 0;
}

.header-burger-button-animation-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 21px;
  height: 10px;
}

.burger-button-span {
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-black);
  border-radius: 1px;
  transition: all 0.5s cubic-bezier(0.1, 0.82, 0.76, 0.965);

  &:first-of-type {
    top: 0px;
  }
  &:last-of-type {
    bottom: 0px;
  }
}
&.active,
.menu-icon__cheeckbox:checked + div {
  span {
    &:first-of-type {
      transform: rotate(45deg);
      top: 3px;
    }
    &:last-of-type {
      transform: rotate(-45deg);
      bottom: 3px;
    }
  }
}
&.active:hover span:first-of-type,
&.active:hover span:last-of-type,
&:hover .menu-icon__cheeckbox:checked + div span:first-of-type,
&:hover .menu-icon__cheeckbox:checked + div span:last-of-type {
  width: 20px;
}

@media (max-width: 1279px) {
  .main-header {
    min-height: 124px;
    max-width: none;
    padding: 0 30px;
  }

  .header-menu {
    gap: 16px;
  }

  .github-header-button {
    width: 141px;
    height: 40px;
    gap: 12px;
    align-items: center;
  }

  .github-button-text {
    font-size: 14px;
  }

  .header-github-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 820px) {
  .main-header {
    min-height: 64px;
    max-width: none;
    padding: 0 16px;
  }

  .header-menu {
    display: none;
  }

  .header-button-wrapper {
    gap: 12px;
  }

  .header-ros-logo {
    width: 72px;
    height: 18px;
  }

  .github-header-button {
    width: 124px;
    height: 32px;
    display: flex;
    gap: 12px;
    align-items: center;
  }

  .github-button-text {
    font-size: 12px;
  }

  .header-github-icon {
    width: 20px;
    height: 20px;
  }

  .header-burger-button {
    display: flex;
    flex-direction: column;
  }
}