.header {
  padding: 30px 0;
  background: #0000007d;
  backdrop-filter: blur(30px);
}

.header .inside {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_logo img {
  width: 327px;
  display: block;
}

.header nav a {
  transition: all 0.3s ease 0s;
  display: block;
  position: relative;
  height: 54px;
  line-height: 54px;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  border-radius: 27px;
  padding: 0 25px;
  min-width: 190px;
  text-align: center;
}

.header nav a:after,
.header nav a:before {
  position: absolute;
  content: "";
  transition: all 0.3s ease 0s;
  pointer-events: none;
  border-radius: inherit;
  inset: 0px;
}

.header nav a:hover:after,
.header nav li.current_page_item a:after,
.header nav li.current-menu-item a:after {
  backdrop-filter: url(#glassmorphism-nav) blur(1px);
  -webkit-backdrop-filter: url(#glassmorphism-nav) blur(1px);
  z-index: -2;
}

.header nav a:hover:before,
.header nav li.current_page_item a:before,
.header nav li.current-menu-item a:before {
  padding: 1px;
  background: linear-gradient(
    to bottom right,
    #fff 0%,
    #ffffff00 46%,
    #ffffff00 50%,
    #fff 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.header nav a:hover,
.header nav li.current_page_item a {
  transition: all 0.3s ease 0s;
  color: #fdc200;
}

.header nav {
  display: flex;
  align-items: center;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 5px;
}

.header nav ul {
  gap: 3px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .header_controls {
  align-items: center;
  display: flex;
  gap: 16px;
  margin-bottom: 4px;
}

.header_actions-list {
  align-items: center;
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_actions-list li {
  line-height: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_action {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  color: #f8cd04;
  display: flex;
  height: 38px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 38px;
}

.header_action::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: url(#glassmorphism-apple-camiicode) blur(6px) saturate(1.25);
  -webkit-backdrop-filter: url(#glassmorphism-apple-camiicode) blur(6px)
    saturate(1.25);
}

.header_action svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 16px;
  height: 16px;
  color: currentColor;
}

.header_action:hover {
  color: #fdc200;
}

.header_contact.button {
  height: 46px;
  padding: 4px 4px 4px 20px;
  gap: 15px;
  border-radius: 23px;
  background-color: rgba(255, 255, 255, 0.2);
}

.header_contact.button .button-text {
  color: #fff;
  font-size: 13px;
  padding-top: 0px;
}

.header_contact.button .button-circle {
  background-color: #f8cd04;
  height: 38px;
  width: 38px;
}

.header_contact.button .button-circle svg {
  width: 13px;
  height: 13px;
  color: #000;
}

.header .toggler {
  border-radius: 50%;
}

.header .toggler svg {
  display: block;
}

.header .toggler .burger__close {
  display: none;
}

.header .toggler.opened .burger__icon {
  display: none;
}

.header .toggler.opened .burger__close {
  display: block;
  color: #fff;
  width: 44px;
  height: 44px;
}

.toggler.opened {
  background-color: transparent;
  box-shadow: none;
}

.toggler.opened::before,
.toggler.opened::after {
  content: none;
}

.toggler {
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 10001;
}

.burger {
}

.burger svg {
  color: #f8cd04;
}

.mobile-navigation {
  display: none;
}

header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100% - 24px);
  z-index: 1000;
  padding: 12px 0 !important;
  border-radius: 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(248, 205, 4, 0.16);
  transform: translate(12px, 12px);
  opacity: 1;
  overflow: hidden;
  pointer-events: auto;
  isolation: isolate;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

header.sticky::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px) saturate(1.25);
  -webkit-backdrop-filter: blur(6px) saturate(1.25);
  backdrop-filter: url(#glassmorphism-apple-camiicode) blur(6px) saturate(1.25);
  -webkit-backdrop-filter: url(#glassmorphism-apple-camiicode) blur(6px)
    saturate(1.25);
  content: "";
}

header.sticky .inside {
  position: relative;
  z-index: 1;
}

@media screen and (max-width: 1200px) {
  .header .content {
    grid-template-columns: auto auto;
  }

  .header {
    padding: 20px 0;
  }

  .header_logo img {
    width: 200px;
  }

  .header nav,
  .lang-switcher--dropdown {
    display: none;
  }

  .header .header_controls {
    gap: 24px;
  }

  .header_actions-list {
    gap: 10px;
  }

  .toggler {
    display: flex;
  }

  .primary-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
  }

  .mobile-navigation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #070707;
    z-index: 900;
    padding: 36px 20px;
    top: -110vh;
    display: block;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
  }

  .mobile-navigation .inner {
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .mobile-navigation .inner > div {
    width: 100%;
    margin-top: 50px;
  }

  .mobile-navigation .inner .email,
  .mobile-navigation .inner .phone {
    margin-bottom: 20px;
  }

  .mobile-navigation.opened {
    top: 0;
    -webkit-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
  }

  .mobile-navigation .header-bar {
    margin-bottom: 20px;
  }

  .mobile-navigation .nav-links {
    margin-bottom: 30px;
  }

  .mobile-navigation .nav-links ul li a {
    color: #d4d4d8;
    text-decoration: none;
    display: block;
    font-size: 20px;
    padding: 12px 0;
  }

  .mobile-navigation .nav-links ul li.current_page_item a {
    color: #ffcc00;
  }

  .lang-switcher--mobile .lang-item a {
    font-size: 15px;
    padding: 10px 9px;
    font-weight: 400;
  }

  .lang-switcher--mobile .current-lang a {
    color: #fff;
    transform: scale(1.3);
  }
}

/* ============================================================
   # LANGUAGE SWITCHER
   ============================================================ */

/* ---- Desktop dropdown trigger ---- */

.lang-switcher--dropdown {
  position: relative;
}

.lang-switcher__trigger {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  border: none;
}

.lang-switcher__trigger span {
  position: relative;
  z-index: 1;
}

/* ---- Dropdown panel ---- */

.lang-switcher__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 72px;
  padding: 6px;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 200;
}

.lang-switcher--dropdown.is-open .lang-switcher__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__panel .lang-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher__panel .lang-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  border-radius: 7px;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.lang-switcher__panel .lang-item a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.lang-switcher__panel .current-lang a {
  color: #f4c533;
  font-weight: 500;
}

/* ---- Mobile variant (flat list inside burger menu) ---- */

.lang-switcher--mobile {
  display: flex;
  gap: 0;
  justify-content: center;
}

.lang-switcher--mobile .lang-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lang-switcher--mobile .lang-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.15s ease;
}

.lang-switcher--mobile .lang-item a:hover {
  color: rgba(255, 255, 255, 0.7);
}

.lang-switcher--mobile .current-lang a {
  color: #f8cc05;
}

/* ============================================================ */

@media (max-width: 576px) {
  .header {
    padding: 30px 0;
  }

  .header_actions {
    display: none;
  }

  .header .content {
    gap: 120px;
  }

  .header_logo img {
    width: 184px;
  }

  .toggler {
    width: 58px;
    height: 58px;
  }

  .header .toggler svg {
    display: block;
    width: 27px;
    height: 27px;
  }

  .mobile-navigation .nav-links {
    margin-top: 108px;
  }

  .mobile-navigation .nav-links ul li a {
    font-size: 31px;
    padding: 8px 0;
    text-transform: uppercase;
    text-align: left;
  }

  .header_contact.button {
    display: none;
  }
}
