.p59u-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5eaf5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

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

.p59u-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.p59u-brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
  color: #111827;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.p59u-brand:hover,
.p59u-brand:focus-visible {
  color: #155eef;
}

.p59u-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.p59u-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.p59u-nav__item:hover,
.p59u-nav__item:focus-visible {
  background: #f4f7fb;
  color: #155eef;
}

.p59u-nav__item.is-active {
  background: #eef4ff;
  color: #155eef;
}

.p59u-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #155eef;
  border-radius: 8px;
  background: #155eef;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 18px rgba(21, 94, 239, 0.18);
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.p59u-header__cta:hover,
.p59u-header__cta:focus-visible {
  background: #0f4fd4;
  border-color: #0f4fd4;
  color: #ffffff;
}

@media (max-width: 1120px) {
  .p59u-header__inner {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }

  .p59u-brand,
  .p59u-header__cta {
    justify-self: center;
  }

  .p59u-nav {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding: 2px 0 4px;
    scrollbar-width: thin;
  }
}

@media (max-width: 520px) {
  .p59u-header__inner {
    width: min(100% - 24px, 1180px);
  }

  .p59u-brand {
    font-size: 15px;
  }

  .p59u-nav__item,
  .p59u-header__cta {
    font-size: 13px;
  }
}
