.apecury-header-ready {
  padding-top: 104px;
}

.apecury-header-ready.apecury-header-overlay {
  padding-top: 0;
}

.apecury-unified-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1600;
  padding: 14px 0;
  transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}

.apecury-unified-header.is-scrolled {
  background: rgba(13, 38, 69, .97);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
}

.apecury-header-container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.apecury-header-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(13, 38, 69, .08);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(13, 38, 69, .12);
}

.apecury-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.apecury-header-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.apecury-header-logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.apecury-header-logo-name {
  color: #0D2645;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.05;
}

.apecury-header-logo-sub {
  color: rgba(13, 38, 69, .68);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.1;
}

.apecury-header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.apecury-header-nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.apecury-header-link,
.apecury-header-cta,
.apecury-header-mobile-link,
.apecury-header-mobile-cta,
.apecury-header-lang {
  text-decoration: none;
}

.apecury-header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  color: #0D2645;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}

.apecury-header-link:hover,
.apecury-header-link.is-active {
  background: rgba(13, 38, 69, .08);
}

.apecury-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2F9E44 0%, #2B8A3E 100%);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: .9rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(47, 158, 68, .22);
}

.apecury-header-cta svg,
.apecury-header-mobile-cta svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.apecury-header-menu-toggle,
.apecury-header-mobile-toggle {
  appearance: none;
  border: none;
  cursor: pointer;
}

.apecury-header-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(13, 38, 69, .06);
  color: #0D2645;
  transition: background .22s ease, transform .22s ease;
}

.apecury-header-menu-toggle:hover,
.apecury-header-menu-toggle:focus-visible,
.apecury-header-mobile-toggle:hover,
.apecury-header-mobile-toggle:focus-visible {
  background: rgba(13, 38, 69, .12);
  transform: translateY(-1px);
  outline: none;
}

.apecury-header-menu-toggle svg,
.apecury-header-mobile-toggle svg {
  width: 18px;
  height: 18px;
}

.apecury-header-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, -8px);
  width: min(430px, calc(100vw - 24px));
  max-height: min(72vh, 640px);
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(13, 38, 69, .12);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(13, 38, 69, .18);
  padding: 12px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 20;
}

.apecury-header-dropdown.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.apecury-header-dropdown h4 {
  color: #C9A232;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  margin: 4px 10px 10px;
  text-transform: uppercase;
}

.apecury-header-dropdown ul {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.apecury-header-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #0D2645;
  font-size: .92rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.apecury-header-dropdown a:hover {
  background: rgba(13, 38, 69, .06);
  transform: translateX(2px);
}

.apecury-header-dropdown small {
  color: rgba(13, 38, 69, .56);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.apecury-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apecury-header-langs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.apecury-header-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #0D2645;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: rgba(13, 38, 69, .05);
}

.apecury-header-lang.is-active {
  background: rgba(201, 162, 50, .18);
  color: #0D2645;
}

.apecury-header-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(13, 38, 69, .06);
  color: #0D2645;
}

.apecury-header-mobile-panel {
  display: none;
}

@media (max-width: 1100px) {
  .apecury-header-nav,
  .apecury-header-right {
    display: none;
  }

  .apecury-header-mobile-toggle {
    display: inline-flex;
  }

  .apecury-header-mobile-panel {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translate(-50%, -8px);
    width: min(420px, calc(100vw - 24px));
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(13, 38, 69, .12);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(13, 38, 69, .18);
    padding: 12px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    z-index: 20;
  }

  .apecury-header-mobile-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }

  .apecury-header-mobile-list {
    display: grid;
    gap: 6px;
  }

  .apecury-header-mobile-link,
  .apecury-header-mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: .92rem;
    font-weight: 700;
  }

  .apecury-header-mobile-link {
    color: #0D2645;
    background: rgba(13, 38, 69, .03);
  }

  .apecury-header-mobile-cta {
    justify-content: center;
    margin-top: 8px;
    background: linear-gradient(135deg, #2F9E44 0%, #2B8A3E 100%);
    color: #fff;
  }

  .apecury-header-mobile-langs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
  }
}

@media (max-width: 768px) {
  .apecury-header-ready {
    padding-top: 92px;
  }

  .apecury-header-ready.apecury-header-overlay {
    padding-top: 0;
  }

  .apecury-header-container {
    width: calc(100% - 24px);
  }

  .apecury-header-bar {
    padding: 10px 12px;
    border-radius: 22px;
  }

  .apecury-header-logo img {
    height: 38px;
  }

  .apecury-header-logo-sub {
    display: none;
  }
}
