/* Canonical shared header overrides for legacy marketing pages. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  width: 100%;
  height: auto;
  min-height: 112px;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(22px, 3vw, 48px);
  border-bottom: 2px solid rgba(159, 116, 226, 0.34);
  background: rgba(8, 4, 24, 0.94);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header a {
  text-decoration: none;
}

.site-header .brand {
  display: flex;
  min-width: 285px;
  align-items: center;
  gap: 12px;
  color: #f8f6ff;
}

.site-header .brand img {
  width: 62px;
  height: 62px;
  padding: 5px;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.25);
}

.site-header .brand > span {
  display: flex;
  flex-direction: column;
  line-height: normal;
  white-space: nowrap;
}

.site-header .brand strong {
  color: #f8f6ff;
  font-family: var(--font-display, "Baloo 2", system-ui, sans-serif);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.025em;
}

.site-header .brand em {
  margin-top: 5px;
  color: #fff;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.075em;
}

.site-header .brand small {
  margin-top: 3px;
  color: #f0d060;
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.12em;
}

.site-header .desktop-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-family: var(--font-display, "Baloo 2", system-ui, sans-serif);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.site-header .desktop-nav > a,
.site-header .nav-dropdown > summary {
  display: block;
  padding: 15px clamp(12px, 1vw, 19px);
  color: rgba(245, 244, 255, 0.94);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.site-header .desktop-nav > a + a,
.site-header .desktop-nav > a + .nav-dropdown,
.site-header .desktop-nav > .nav-dropdown + a,
.site-header .desktop-nav > .nav-dropdown + .nav-dropdown {
  border-left: 1px solid rgba(245, 244, 255, 0.18);
}

.site-header .desktop-nav > a:hover,
.site-header .desktop-nav > a.active,
.site-header .nav-dropdown > summary:hover,
.site-header .nav-dropdown.active > summary,
.site-header .dropdown-panel a.active {
  color: #f0d060;
}

.site-header .nav-dropdown {
  position: relative;
  top: auto;
  left: auto;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  visibility: visible;
  opacity: 1;
  background: transparent;
  box-shadow: none;
  transform: none;
  pointer-events: auto;
  transition: none;
  z-index: auto;
}

.site-header .nav-dropdown::before {
  content: none;
}

.site-header .nav-dropdown > summary::-webkit-details-marker,
.site-header .mobile-menu > summary::-webkit-details-marker {
  display: none;
}

.site-header .nav-dropdown > summary::after {
  content: "⌄";
  margin-left: 6px;
}

.site-header .dropdown-panel {
  position: absolute;
  top: 50px;
  left: 50%;
  display: grid;
  width: 235px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(159, 116, 226, 0.35);
  border-radius: 16px;
  visibility: visible;
  opacity: 1;
  background: rgba(20, 7, 54, 0.98);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: 50;
}

.site-header .dropdown-panel a {
  display: block;
  padding: 10px 13px;
  border-radius: 10px;
  color: rgba(245, 244, 255, 0.94);
  font-size: 14px;
  font-weight: 700;
}

.site-header .dropdown-panel a:hover,
.site-header .dropdown-panel a:focus-visible {
  color: #f0d060;
  background: rgba(101, 42, 212, 0.16);
}

.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.site-header .primary-button,
.site-header .ghost-button,
.site-header .icon-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-display, "Baloo 2", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-header .primary-button {
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  background: linear-gradient(135deg, #7b42e8, #652ad4);
  box-shadow: 0 12px 28px rgba(101, 42, 212, 0.3);
}

.site-header .ghost-button {
  padding: 0 24px;
  border: 1px solid rgba(159, 116, 226, 0.35);
  color: #fff;
  background: rgba(13, 4, 40, 0.7);
}

.site-header .icon-button {
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #24103e;
  background: #f0d060;
  box-shadow: 0 8px 20px rgba(242, 212, 107, 0.22);
}

.site-header .primary-button:hover,
.site-header .ghost-button:hover,
.site-header .icon-button:hover {
  transform: translateY(-2px);
}

.site-header .phone-button {
  font-size: 21px;
  line-height: 1;
}

.site-header .phone-button span {
  transform: translateY(-1px);
}

.site-header .compact-action {
  min-height: 46px;
  padding-inline: 16px;
}

.site-header .mobile-menu {
  position: relative;
  display: none;
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.site-header .mobile-menu > summary {
  padding: 12px 19px;
  border: 1px solid rgba(159, 116, 226, 0.35);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display, "Baloo 2", system-ui, sans-serif);
  font-size: 16px;
  font-weight: 900;
}

.site-header .mobile-panel {
  position: absolute;
  top: 50px;
  right: 0;
  display: grid;
  width: min(330px, calc(100vw - 30px));
  max-height: 70vh;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(159, 116, 226, 0.35);
  border-radius: 18px;
  background: #140736;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  z-index: 60;
}

.site-header .mobile-panel a {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1780px) {
  .site-header {
    gap: 14px;
    min-height: 102px;
    padding-inline: 18px;
  }

  .site-header .brand {
    min-width: 220px;
  }

  .site-header .brand img {
    width: 62px;
    height: 62px;
  }

  .site-header .brand strong {
    font-size: 17px;
  }

  .site-header .brand em {
    font-size: 7px;
  }

  .site-header .brand small {
    font-size: 8px;
  }

  .site-header .desktop-nav {
    gap: 0;
    font-size: 14px;
  }

  .site-header .desktop-nav > a,
  .site-header .nav-dropdown > summary {
    padding: 13px 10px;
  }

  .site-header .header-actions {
    gap: 6px;
  }

  .site-header .compact-action {
    min-height: 46px;
    padding-inline: 12px;
    font-size: 10px;
  }

  .site-header .icon-button {
    width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 1420px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 18px;
    padding-block: 12px 10px;
  }

  .site-header .desktop-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    border-top: 1px solid rgba(245, 244, 255, 0.12);
  }

  .site-header .desktop-nav > a,
  .site-header .nav-dropdown > summary {
    padding: 12px clamp(13px, 1.35vw, 20px);
    font-size: 15px;
  }

  .site-header .header-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .site-header .desktop-nav,
  .site-header .header-actions {
    display: none;
  }

  .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-block: 12px;
  }

  .site-header .mobile-menu {
    display: block;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 78px;
  }

  .site-header .brand {
    min-width: 0;
  }

  .site-header .brand img {
    width: 52px;
    height: 52px;
  }

  .site-header .brand strong {
    font-size: 14px;
  }

  .site-header .brand em {
    display: none;
  }

  .site-header .brand small {
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .site-header {
    gap: 8px;
    padding-inline: 12px;
  }

  .site-header .brand img {
    width: 46px;
    height: 46px;
  }

  .site-header .brand strong {
    font-size: 13px;
  }

  .site-header .brand small {
    font-size: 7px;
  }

  .site-header .mobile-menu > summary {
    padding: 10px 15px;
    font-size: 14px;
  }
}
