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

.ownex-new-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e4edf6;
  box-shadow: 0 8px 28px rgba(11, 35, 66, 0.06);
}

.ownex-new-header__inner {
  width: min(1460px, calc(100% - 48px));
  min-height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(520px, 1fr) auto;
  align-items: center;
  gap: 34px;
}

.ownex-new-header__brand {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  color: #0b2342;
  text-decoration: none;
  line-height: 1;
}

.ownex-new-header__brand-main {
  font-family: "OWNEX-Avo-Bold-File", Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -0.055em;
}

.ownex-new-header__brand-main span {
  color: #1769e0;
}

.ownex-new-header__brand-sub {
  margin-top: 5px;
  padding-left: 2px;
  color: #1769e0;
  font-family: "OWNEX-Avo-Bold-File", Arial, sans-serif;
  font-size: 7px;
  font-weight: 400;
  letter-spacing: 0.31em;
}

.ownex-new-header__nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(24px, 2.4vw, 42px);
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ownex-new-header__item {
  position: relative;
  display: flex;
  align-items: center;
}

.ownex-new-header__link {
  min-height: auto;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #203a58;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  font-family: "OWNEX-Avo-Bold-File", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
}

.ownex-new-header__link:hover,
.ownex-new-header__link:focus-visible {
  color: #1769e0;
  background: transparent;
  box-shadow: none;
}

.ownex-new-header__caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid #7a8da2;
  border-bottom: 1.5px solid #7a8da2;
  transform: rotate(45deg);
}

.ownex-new-header__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: 230px;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 8px);
  background: #ffffff;
  border: 1px solid #dce7f2;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(11, 35, 66, 0.14);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.ownex-new-header__item:hover .ownex-new-header__dropdown,
.ownex-new-header__item:focus-within .ownex-new-header__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.ownex-new-header__dropdown a {
  display: block;
  padding: 10px 12px;
  color: #314760;
  border-radius: 9px;
  text-decoration: none;
  font-family: "OWNEX-Avo-Bold-File", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.ownex-new-header__dropdown a:hover,
.ownex-new-header__dropdown a:focus-visible {
  color: #1769e0;
  background: #f1f6ff;
}

.ownex-new-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ownex-new-header__search {
  width: 240px;
  height: 46px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #cfdeed;
  border-radius: 12px;
}

.ownex-new-header__search:focus-within {
  border-color: #1769e0;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

.ownex-new-header__search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid #0b2342;
  border-radius: 50%;
}

.ownex-new-header__search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  background: #0b2342;
  border-radius: 2px;
  transform: rotate(48deg);
}

.ownex-new-header__search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: #0b2342;
  background: transparent;
  border: 0;
  outline: 0;
  font-family: "OWNEX-Avo-Regular-File", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
}

.ownex-new-header__search input::placeholder {
  color: #8a98a8;
  opacity: 1;
}

.ownex-new-header__cta {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  background: #1769e0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(23, 105, 224, 0.18);
  text-decoration: none;
  white-space: nowrap;
  font-family: "OWNEX-Avo-Bold-File", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.ownex-new-header__cta:hover,
.ownex-new-header__cta:focus-visible {
  background: #0f56c5;
}

.ownex-new-header__mobile-button,
.ownex-new-header__mobile-panel {
  display: none;
}

@media (max-width: 1220px) {
  .ownex-new-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 24px;
  }

  .ownex-new-header__nav {
    gap: 22px;
  }

  .ownex-new-header__search {
    display: none;
  }
}

@media (max-width: 900px) {
  .ownex-new-header__inner {
    position: relative;
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }

  .ownex-new-header__brand-main {
    font-size: 26px;
  }

  .ownex-new-header__nav,
  .ownex-new-header__actions {
    display: none;
  }

  .ownex-new-header__mobile-button {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    background: #f3f7fd;
    border: 1px solid #dce7f2;
    border-radius: 12px;
    cursor: pointer;
  }

  .ownex-new-header__mobile-button span,
  .ownex-new-header__mobile-button::before,
  .ownex-new-header__mobile-button::after {
    content: "";
    width: 19px;
    height: 2px;
    display: block;
    background: #0b2342;
    border-radius: 2px;
  }

  .ownex-new-header__mobile-button {
    gap: 4px;
  }

  .ownex-new-header__mobile-panel {
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    padding: 18px 24px 24px;
    display: none;
    background: #ffffff;
    border-top: 1px solid #dce7f2;
    border-bottom: 1px solid #dce7f2;
    box-shadow: 0 18px 34px rgba(11, 35, 66, 0.12);
  }

  .ownex-new-header.is-open .ownex-new-header__mobile-panel {
    display: grid;
    gap: 6px;
  }

  .ownex-new-header__mobile-panel a {
    padding: 12px 4px;
    color: #203a58;
    text-decoration: none;
    font-family: "OWNEX-Avo-Bold-File", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
  }

  .ownex-new-header__mobile-panel .ownex-new-header__cta {
    margin-top: 10px;
    padding-inline: 20px;
    color: #ffffff;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .ownex-new-header__inner {
    width: calc(100% - 32px);
  }

  .ownex-new-header__mobile-panel {
    left: -16px;
    right: -16px;
    padding-inline: 16px;
  }
}
