.header-3 {
  position: relative;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: 22px 0 188px;
  overflow-x: hidden;
  overflow-y: visible;
}

.header-3::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 128px;
  background: #ffffff;
  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(0, 0, 0, 0.12);
}

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

.header-3__top {
  display: grid;
  grid-template-columns: 280px 1fr 220px;
  gap: 32px;
  align-items: start;
}

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

.header-3__meta {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1.2fr;
  gap: 30px;
}

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

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

.header-3__meta-link,
.header-3__meta-text {
  color: #e9ddbc;
  font-size: 22px;
  line-height: 1.45;
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

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

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

.header-3__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: #f9f6ed;
  text-decoration: none;
  font-family: var(--font-family-display);
  font-size: 19px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.25s ease;
}

.header-3__cta:hover {
  background: var(--color-primary-soft-dark);
  transform: translateY(-1px);
}

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

.header-3__social a {
  width: 28px;
  height: 28px;
  color: #f7f4ea;
}

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

.header-3__nav-wrap {
  margin-top: 18px;
  padding-top: 26px;
  border-top: 3px dotted rgba(233, 221, 188, 0.45);
}

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

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

.header-3__item {
  position: relative;
}

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

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

.header-3__submenu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 14px);
  left: 50%;
  min-width: 290px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #f7f2dc;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 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;
  bottom: 100%;
  height: 18px;
}

.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-strong);
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.header-3__submenu-link:hover {
  background: rgba(146, 175, 59, 0.1);
}

.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: #ffffff;
}

@media (max-width: 1180px) {
  .header-3__top {
    grid-template-columns: 220px 1fr;
  }

  .header-3__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .header-3__meta {
    grid-template-columns: 1fr 1fr;
  }

  .header-3__meta-item--location {
    grid-column: 1 / -1;
  }
}

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

  .header-3__top {
    grid-template-columns: 1fr;
  }

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

  .header-3__meta {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-3__actions {
    flex-direction: column;
    gap: 24px;
  }

  .header-3__toggle {
    display: block;
  }

  .header-3__menu {
    display: none;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    flex-direction: column;
    gap: 20px;
  }

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

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

  .header-3__item.is-open .header-3__submenu {
    display: block;
  }
}

@media (max-width: 767px) {
  .header-3__meta-label {
    font-size: 19px;
  }

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

  .header-3__cta {
    min-width: 0;
    width: 100%;
  }
}
