:root {
  --header-height: 84px;
  --primary-color: #008bc4;
  --header-logo-safe-width: clamp(230px, 31vw, 410px);
  --header-logo-click-width: 330px;
  --header-side-pad: clamp(0.75rem, 2.2vw, 1.4rem);
}

.header {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 60;
  width: 100%;
  min-height: var(--header-height);
  background-color: var(--primary-color);
  background-image: url("../../images/logo/total-inox-fejlec-logo.svg");
  background-size: auto 100%;
  background-position: left center;
  background-repeat: no-repeat;
  animation: header-enter 680ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
}

.header_wrapper {
  box-sizing: border-box;
  width: min(1280px, 100%);
  margin: 0 auto;
  min-height: var(--header-height);
  padding: 0 var(--header-side-pad);
  display: grid;
  grid-template-columns: minmax(var(--header-logo-safe-width), 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.header_logo-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: var(--header-logo-click-width);
  height: 100%;
  border-radius: 0.35rem;
}

.header_logo-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.navigation-bar {
  display: flex;
  align-items: center;
  justify-self: end;
  height: 100%;
}

.navigation-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: clamp(0.4rem, 0.9vw, 0.75rem);
}

.navigation-bar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(6rem, 7.5vw, 8.1rem);
  padding: 0.54rem clamp(0.7rem, 1.25vw, 1.05rem);
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(0.8rem, 0.26vw + 0.72rem, 0.92rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.012em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  opacity: 0;
  transform: translateY(-16px) scale(0.94);
  animation: header-link-enter 620ms cubic-bezier(0.2, 0.84, 0.22, 1) forwards;
  animation-delay: calc(180ms + (var(--header-link-index, 0) * 90ms));
}

.navigation-menu-item:nth-child(1) .navigation-bar-link {
  --header-link-index: 0;
}

.navigation-menu-item:nth-child(2) .navigation-bar-link {
  --header-link-index: 1;
}

.navigation-menu-item:nth-child(3) .navigation-bar-link {
  --header-link-index: 2;
}

.navigation-menu-item:nth-child(4) .navigation-bar-link {
  --header-link-index: 3;
}

.navigation-bar-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  border-color: #fff;
}

.navigation-bar-link:active {
  background-color: rgba(255, 255, 255, 0.22);
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.navigation-bar-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.header_menu-toggle {
  display: none;
  grid-column: 2;
  justify-self: end;
  align-self: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  transform: translateY(-12px) scale(0.92);
  animation: header-toggle-enter 600ms cubic-bezier(0.2, 0.84, 0.22, 1) forwards;
  animation-delay: 220ms;
}

.header_menu-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.header_menu-icon,
.header_menu-icon::before,
.header_menu-icon::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.header_menu-icon {
  position: relative;
  top: 0;
}

.header_menu-icon::before {
  position: absolute;
  top: -0.35rem;
}

.header_menu-icon::after {
  position: absolute;
  top: 0.35rem;
}

.header.is-menu-open .header_menu-icon {
  background: transparent;
}

.header.is-menu-open .header_menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header.is-menu-open .header_menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@keyframes header-enter {
  0% {
    opacity: 0;
    transform: translateY(-22px);
    filter: saturate(90%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: saturate(100%);
  }
}

@keyframes header-link-enter {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.94);
    filter: blur(1.2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes header-toggle-enter {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes mobile-menu-enter {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobile-menu-link-enter {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  :root {
    --header-logo-safe-width: clamp(185px, 26vw, 300px);
  }

  .navigation-bar-link {
    min-width: 0;
    padding: 0.5rem 0.72rem;
    font-size: 0.8rem;
    letter-spacing: 0.01em;
  }
}

@media (max-width: 820px) {
  :root {
    --header-logo-safe-width: clamp(180px, 62vw, 330px);
  }

  .header {
    background-size: auto 92%;
  }

  .header_wrapper {
    grid-template-columns: minmax(var(--header-logo-safe-width), 1fr) auto;
    gap: 0.5rem;
  }

  .header_menu-toggle {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.65rem;
  }

  .navigation-bar {
    display: none;
    position: absolute;
    top: calc(100% + 0.01rem);
    right: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    padding: 0 var(--header-side-pad) 0.58rem;
    background: var(--primary-color);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: none;
    height: auto;
  }

  .navigation-menu {
    width: min(1280px, 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.12rem 0;
    margin-top: 0;
    margin-inline: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .navigation-menu-item + .navigation-menu-item {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }

  .header.is-menu-open .navigation-bar {
    display: block;
    animation: mobile-menu-enter 220ms cubic-bezier(0.22, 0.8, 0.2, 1) both;
  }

  .header.is-menu-open .navigation-menu {
    display: flex;
  }

  .header.is-menu-open .navigation-menu-item {
    opacity: 0;
    animation: mobile-menu-link-enter 180ms ease forwards;
  }

  .header.is-menu-open .navigation-menu-item:nth-child(1) {
    animation-delay: 55ms;
  }

  .header.is-menu-open .navigation-menu-item:nth-child(2) {
    animation-delay: 90ms;
  }

  .header.is-menu-open .navigation-menu-item:nth-child(3) {
    animation-delay: 125ms;
  }

  .header.is-menu-open .navigation-menu-item:nth-child(4) {
    animation-delay: 160ms;
  }

  .navigation-bar-link {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    min-height: 2.55rem;
    padding: 0.46rem 0.2rem;
    border-radius: 0.4rem;
    border: 0;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    opacity: 1;
    transform: none;
    animation: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  }

  .navigation-bar-link:hover,
  .navigation-bar-link:active {
    transform: none;
    border-color: transparent;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
  }

  .navigation-bar-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.92);
    outline-offset: 2px;
  }
}

@media (max-width: 640px) {
  .header_logo-link {
    display: none;
  }
}

@media (min-width: 1301px) {
  .navigation-bar {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header,
  .navigation-bar-link,
  .header_menu-toggle {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .navigation-bar,
  .navigation-menu-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}