.header-3 {
  position: relative;
  z-index: 10000;
  background: var(--color-nav-bg);
  color: var(--color-text-light);
  padding: 12px 0 92px;
  overflow: visible;
}

.header-3::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 72px;
  background: var(--color-white);
  clip-path: polygon(0 48%, 3% 58%, 7% 62%, 10% 55%, 14% 72%, 18% 66%, 23% 73%, 28% 72%, 33% 65%, 38% 69%, 42% 64%, 46% 65%, 51% 58%, 56% 51%, 61% 61%, 66% 42%, 72% 45%, 77% 45%, 82% 48%, 87% 58%, 92% 56%, 96% 51%, 100% 54%, 100% 100%, 0 100%);
  box-shadow: 0 -8px 16px rgba(var(--color-black-rgb), 0.12);
}

.header-3__inner {
  position: relative;
  z-index: 1;
}

.header-3__top {
  display: grid;
  grid-template-columns: 220px 1fr 190px;
  gap: 20px;
  align-items: start;
  max-width: 100%;
}

.header-3__brand img {
  width: 112px;
  display: block;
}

.header-3__meta {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 16px;
  max-width: 100%;
}

.header-3__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.header-3__meta-label {
  font-family: var(--font-family-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-3__meta-link,
.header-3__meta-text {
  color: var(--color-text-light);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  word-break: break-word;
}

.header-3__meta-text {
  text-decoration: none;
}

.header-3__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.header-3__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 156px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  text-decoration: none;
  font-family: var(--font-family-display);
  font-size: var(--font-size-small);
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.header-3__cta:hover {
  background: var(--color-accent);
  color: var(--color-cta-text);
  transform: translateY(-1px);
}

.header-3__social {
  display: flex;
  gap: 14px;
}

.header-3__social a {
  width: 22px;
  height: 22px;
  color: var(--color-text-light);
}

.header-3__social svg {
  width: 100%;
  height: 100%;
}

.header-3__nav-wrap {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 3px dotted color-mix(in srgb, var(--color-accent) 45%, transparent);
}

.header-3__nav {
  position: relative;
  z-index: 5;
}

.header-3__menu-panel {
  display: contents;
}

.header-3__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-3__drawer-extras {
  display: none;
}

.header-3__item {
  position: relative;
}

.header-3__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--color-text-light);
  text-decoration: none;
  font-family: var(--font-family-display);
  font-size: var(--font-size-small);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-3__caret {
  font-size: 13px;
  transform: translateY(-2px);
}

.header-3__submenu {
  position: absolute;
  z-index: 10001;
  top: 100%;
  left: 50%;
  min-width: 290px;
  margin: 0;
  padding: 14px 0;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  list-style: none;
  background: var(--color-white);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(var(--color-black-rgb), 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-3__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.header-3__item:hover .header-3__submenu,
.header-3__item.is-open .header-3__submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.header-3__submenu-link {
  display: block;
  padding: 12px 22px;
  color: var(--color-text-dark);
  font-family: var(--font-family-display);
  font-size: var(--font-size-small);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.header-3__submenu-link:hover {
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.header-3__toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.header-3__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: var(--color-white);
}

@media (max-width: 1180px) {
  .header-3 {
    padding-bottom: 92px;
  }

  .header-3__inner {
    position: relative;
  }

  .header-3__top {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 0;
  }

  .header-3__meta,
  .header-3__actions {
    display: none;
  }

  .header-3__brand {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .header-3__brand img {
    width: 112px;
  }

  .header-3__nav-wrap {
    position: absolute;
    z-index: 10001;
    top: 0;
    right: 0;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .header-3__nav {
    display: flex;
    justify-content: flex-end;
  }

  .header-3__toggle {
    display: block;
    width: 52px;
    height: 52px;
    margin-left: 0;
    border-radius: 999px;
    background: var(--color-white);
    box-shadow: 0 8px 20px rgba(var(--color-black-rgb), 0.18);
  }

  .header-3__toggle span {
    opacity: 1;
    background: var(--color-primary);
  }

  .header-3__menu-panel {
    position: fixed;
    z-index: 10002;
    top: 86px;
    right: 16px;
    width: min(360px, calc(100vw - 32px));
    display: none;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 24px 22px 22px;
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 20px 48px rgba(var(--color-text-dark-rgb), 0.34);
  }

  .header-3__menu-panel.is-open {
    display: block;
  }

  .header-3__menu {
    display: flex;
    margin-top: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .header-3__link {
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-text-dark);
  }

  .header-3__drawer-extras {
    display: block;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-dark);
  }

  .header-3__drawer-extras :is(.header-3__meta-link, .header-3__meta-text) {
    color: var(--color-text-dark);
  }

  .header-3__social--drawer a {
    color: var(--color-text-dark);
  }

  .header-3__drawer-meta {
    display: grid;
    gap: 14px;
  }

  .header-3__drawer-extras .header-3__meta-item {
    gap: 4px;
  }

  .header-3__cta--drawer {
    width: 100%;
    margin-top: 18px;
  }

  .header-3__social--drawer {
    margin-top: 18px;
  }

  .header-3__submenu {
    position: static;
    min-width: 0;
    margin-top: 14px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    max-height: none;
    overflow: visible;
  }

  .header-3__item.is-open .header-3__submenu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

@media (max-width: 767px) {
  .header-3 {
    padding-bottom: 92px;
  }

  .header-3__brand img {
    width: 112px;
  }

  .header-3__toggle {
    width: 48px;
    height: 48px;
  }

  .header-3__menu-panel {
    top: 78px;
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    padding: 20px 18px 18px;
  }

  .header-3__meta-label {
    font-size: 12px;
  }

  .header-3__meta-link,
  .header-3__meta-text {
    font-size: 12px;
  }

  .header-3__cta {
    min-width: 0;
    width: 100%;
    font-size: 13px;
  }
}
