.site-header {
  position: relative;
  z-index: 50;
  padding: 12px 0 18px;
  background: #f6f4ef;
}

.site-header .container {
  width: min(1380px, calc(100% - 40px));
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 0 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark,
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark {
  min-width: 64px;
  min-height: 64px;
  padding: 10px 14px;
  border-radius: 20px;
  background: #f6f4ef;
}

.brand-logo img,
.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 72px;
  max-width: 248px;
  mix-blend-mode: multiply;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.custom-logo-link img {
  width: auto;
  height: auto;
  max-height: 72px;
  mix-blend-mode: multiply;
}

.brand-logo-image img {
  max-width: 248px;
  max-height: 72px;
}

.brand-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text--image-logo {
  justify-content: center;
}

.logo-text {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
}

.brand-tagline {
  display: block;
  margin-top: 4px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-width: 0;
}

.header-meta-links {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  color: var(--primary-dark);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-badge-icon {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.08);
  flex-shrink: 0;
}

.header-topline-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
  flex-shrink: 0;
}

.header-link-icon svg {
  width: 100%;
  height: 100%;
}

.header-divider {
  width: 100%;
  height: 1px;
  background: rgba(203, 213, 225, 0.9);
}

.header-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-nav .menu,
.site-nav .menu ul,
.site-nav .nav-menu,
.site-nav div.menu > ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav div.menu {
  width: 100%;
}

.site-nav .menu,
.site-nav .nav-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
}

.site-nav .menu li,
.site-nav .nav-menu li {
  margin: 0;
  list-style: none;
}

.site-nav .menu a,
.site-nav .nav-menu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: var(--primary-dark);
  font-size: 0.89rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.site-nav .menu a::before,
.site-nav .nav-menu a::before {
  content: "";
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.88;
}

.site-nav .menu li:nth-child(1) > a::before,
.site-nav .nav-menu li:nth-child(1) > a::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 10.5 12 4l8.5 6.5'/><path d='M6.5 9.8V20h11V9.8'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M3.5 10.5 12 4l8.5 6.5'/><path d='M6.5 9.8V20h11V9.8'/></svg>") center / contain no-repeat;
}

.site-nav .menu li:nth-child(2) > a::before,
.site-nav .nav-menu li:nth-child(2) > a::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='12' rx='2.5'/><path d='M8 9h8M8 13h5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='12' rx='2.5'/><path d='M8 9h8M8 13h5'/></svg>") center / contain no-repeat;
}

.site-nav .menu li:nth-child(3) > a::before,
.site-nav .nav-menu li:nth-child(3) > a::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='7'/><path d='M12 5v14M5 12h14'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='7'/><path d='M12 5v14M5 12h14'/></svg>") center / contain no-repeat;
}

.site-nav .menu li:nth-child(4) > a::before,
.site-nav .nav-menu li:nth-child(4) > a::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.5'/><path d='M5.5 19c1.9-3 4-4.5 6.5-4.5S16.6 16 18.5 19'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='3.5'/><path d='M5.5 19c1.9-3 4-4.5 6.5-4.5S16.6 16 18.5 19'/></svg>") center / contain no-repeat;
}

.site-nav .menu li:nth-child(5) > a::before,
.site-nav .nav-menu li:nth-child(5) > a::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='6' width='17' height='12' rx='2.5'/><path d='M5.5 8l6.5 5 6.5-5'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='6' width='17' height='12' rx='2.5'/><path d='M5.5 8l6.5 5 6.5-5'/></svg>") center / contain no-repeat;
}

.site-nav .menu a[href*="/blog"]::before,
.site-nav .nav-menu a[href*="/blog"]::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M6 4.5h12v15H6z'/><path d='M9 9h6M9 12.5h6M9 16h4'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M6 4.5h12v15H6z'/><path d='M9 9h6M9 12.5h6M9 16h4'/></svg>") center / contain no-repeat;
}

.site-nav .menu a[href*="/live-support"]::before,
.site-nav .nav-menu a[href*="/live-support"]::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M7 11.5v-1a5 5 0 0 1 10 0v1'/><rect x='5' y='11' width='3.5' height='6' rx='1.5'/><rect x='15.5' y='11' width='3.5' height='6' rx='1.5'/><path d='M8.5 18h7'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><path d='M7 11.5v-1a5 5 0 0 1 10 0v1'/><rect x='5' y='11' width='3.5' height='6' rx='1.5'/><rect x='15.5' y='11' width='3.5' height='6' rx='1.5'/><path d='M8.5 18h7'/></svg>") center / contain no-repeat;
}

.site-nav .menu a:hover,
.site-nav .menu a:focus,
.site-nav .nav-menu a:hover,
.site-nav .nav-menu a:focus,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 18px;
}

.nav-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid rgba(30, 41, 59, 0.08);
  border-radius: 16px;
  color: #fffdf8;
  text-decoration: none;
  background: linear-gradient(135deg, #1f2b3d, #0f172a);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.nav-secondary-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  flex: 0 0 32px;
}

.nav-secondary-btn__icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.nav-secondary-btn__copy {
  display: grid;
  gap: 2px;
}

.nav-secondary-btn__copy strong,
.nav-secondary-btn__copy small {
  display: block;
}

.nav-secondary-btn__copy strong {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
}

.nav-secondary-btn__copy small {
  color: rgba(226, 232, 240, 0.74);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav-secondary-btn:hover,
.nav-secondary-btn:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    padding: 10px 0 14px;
  }

  .header-inner {
    position: relative;
    gap: 10px;
    padding-top: 0;
  }

  .site-header .container {
    width: min(1380px, calc(100% - 28px));
  }

  .header-top {
    align-items: center;
    padding-right: 60px;
  }

  .header-meta {
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    position: absolute;
    top: 6px;
    right: 0;
    align-self: auto;
  }

  .header-nav-wrap {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 12px 0 4px;
  }

  .menu-open .header-nav-wrap {
    display: flex;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .site-nav .menu,
  .site-nav .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .site-nav .menu a,
  .site-nav .nav-menu a {
    min-height: 38px;
    justify-content: center;
    letter-spacing: 0.18em;
    text-align: center;
  }

  .header-actions {
    width: 100%;
    padding-left: 0;
    justify-content: center;
  }

  .nav-secondary-btn {
    justify-content: center;
  }

}

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

  .brand-link {
    gap: 10px;
  }

  .brand-logo img,
  .custom-logo,
  .custom-logo-link img {
    max-height: 56px;
    max-width: 198px;
  }

  .brand-logo-image img {
    max-width: 198px;
  }

  .site-nav .menu a,
  .site-nav .nav-menu a {
    gap: 6px;
    letter-spacing: 0.18em;
  }

  .site-nav .menu a::before,
  .site-nav .nav-menu a::before {
    width: 18px;
    height: 18px;
  }

  .logo-text {
    font-size: 1rem;
  }

  .brand-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }

  .nav-secondary-btn {
    min-height: 42px;
    padding: 7px 12px;
    border-radius: 14px;
    justify-content: center;
  }

  .nav-secondary-btn__icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .nav-secondary-btn__copy strong {
    font-size: 0.8rem;
  }

  .nav-secondary-btn__copy small {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
}
