.site-header,
header.site-header,
header[role="banner"] {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.site-header .container,
header.site-header .container,
header[role="banner"] .container {
  width: min(100% - 48px, 1600px);
  margin-inline: auto;
}

.header-shell {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 90px;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-logo .custom-logo-link,
.header-logo .wp-block-site-logo a,
.header-logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-logo .wp-block-site-logo img,
.header-logo img {
  width: auto;
  max-height: 56px;
}

.header-logo .wp-block-site-title,
.header-logo .site-title {
  margin: 0;
  line-height: 1;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
}

.header-logo .wp-block-site-title a,
.header-logo .site-title a {
  color: #6c4cff;
  text-decoration: none;
}

.header-nav {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-nav .wp-block-navigation__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.header-nav .wp-block-navigation-item__content {
  position: relative;
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.25s ease;
}

.header-nav .wp-block-navigation-item__content:hover {
  color: #6c4cff;
}

.header-nav .current-menu-item > .wp-block-navigation-item__content,
.header-nav .current_page_item > .wp-block-navigation-item__content,
.header-nav .wp-block-navigation-item.current-menu-item > a,
.header-nav .wp-block-navigation-item.current_page_item > a {
  color: #6c4cff;
}

.header-nav .current-menu-item > .wp-block-navigation-item__content::after,
.header-nav .current_page_item > .wp-block-navigation-item__content::after,
.header-nav .wp-block-navigation-item.current-menu-item > a::after,
.header-nav .wp-block-navigation-item.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 4px;
  background: #6c4cff;
}

.header-menu-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.header-menu-button {
  position: relative;
  width: 90px;
  height: 90px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: center;
  color: #ffffff;
}

/* Letters */
.header-menu-button .letter {
  position: absolute;
  font-size: 14px;
  line-height: 1;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.header-menu-button .e {
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
}

.header-menu-button .m {
  top: 50%;
  left: 24%;
  transform: translateY(-50%);
}

.header-menu-button .n {
  top: 50%;
  right: 24%;
  transform: translateY(-50%);
}

.header-menu-button .u {
  bottom: 18%;
  left: 50%;
  transform: translateX(-50%);
}

/* Dots */
.header-menu-button .dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #6c4cff;
  transition: opacity 0.3s ease;
}

.header-menu-button .dot-top {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.header-menu-button .dot-bottom {
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.header-menu-button .dot-left {
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.header-menu-button .dot-right {
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
}

.header-menu-button .dot-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.header-menu-button::before,
.header-menu-button::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 42px;
  height: 2px;
  background: #6c4cff;
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.3s ease;
}

.header-menu-button::before {
  top: 16px;
}

.header-menu-button::after {
  bottom: 16px;
}

.header-menu-button .menu-text {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 14px;
  letter-spacing: 2px;
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

.header-menu-button:hover .dot,
.header-menu-button:hover .letter {
  opacity: 0;
}

.header-menu-button:hover .menu-text {
  opacity: 1;
}

.header-menu-button:hover::before,
.header-menu-button:hover::after {
  transform: translateX(-50%) scaleX(1);
}

@media (max-width: 1200px) {
  .header-nav .wp-block-navigation__container {
    gap: 24px;
  }

  .header-nav .wp-block-navigation-item__content {
    font-size: 16px;
  }
}

@media (max-width: 991px) {
  .site-header .container,
  header.site-header .container,
  header[role="banner"] .container {
    width: min(100% - 28px, 1600px);
  }

  .header-shell {
    grid-template-columns: 1fr auto;
    min-height: 84px;
  }

  .header-nav {
    display: none;
  }

  .header-logo .wp-block-site-title,
  .header-logo .site-title {
    font-size: clamp(22px, 7vw, 34px);
  }

  .header-menu-button {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 767px) {
  .header-shell {
    min-height: 76px;
    gap: 16px;
  }

  .header-logo .wp-block-site-logo img,
  .header-logo img {
    max-height: 42px;
  }

  .header-logo .wp-block-site-title,
  .header-logo .site-title {
    font-size: clamp(20px, 7vw, 28px);
  }

  .header-menu-button {
    width: 72px;
    height: 72px;
  }

  .header-menu-button .letter,
  .header-menu-button .menu-text {
    font-size: 12px;
  }

  .header-menu-button .dot {
    width: 7px;
    height: 7px;
  }
}


html.is-light-theme .header-menu-button,
html[data-theme="light"] .header-menu-button {
  color: #111111;
}

html.is-light-theme .header-menu-button .letter,
html[data-theme="light"] .header-menu-button .letter,
html.is-light-theme .header-menu-button .menu-text,
html[data-theme="light"] .header-menu-button .menu-text {
  color: #111111;
}

html.is-light-theme .header-menu-button .dot,
html[data-theme="light"] .header-menu-button .dot,
html.is-light-theme .header-menu-button::before,
html.is-light-theme .header-menu-button::after,
html[data-theme="light"] .header-menu-button::before,
html[data-theme="light"] .header-menu-button::after {
  background: #6c4cff;
}