.header-4 {
  background: #ffffff;
}

.header-4__topbar {
  background: #212228;
  color: #edf6f9;
}

.header-4__topbar-inner {
  display: grid;
  grid-template-columns: 250px 1fr;
  align-items: center;
  gap: 42px;
  min-height: 221px;
}

.header-4__social {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.header-4__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #8fd3d1;
  color: #212228;
}

.header-4__social svg {
  width: 28px;
  height: 28px;
}

.header-4__contact-list {
  display: grid;
  grid-template-columns: 1.15fr 1.5fr 0.85fr;
}

.header-4__contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 150px;
  padding: 18px 24px;
  font-family: var(--font-family-display);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
}

.header-4__contact-item + .header-4__contact-item {
  border-left: 2px solid #86c8c6;
}

.header-4__contact-item a,
.header-4__contact-item span:last-child {
  color: #edf6f9;
  text-decoration: none;
}

.header-4__contact-icon {
  flex: 0 0 auto;
  color: #8fd3d1;
}

.header-4__contact-icon svg {
  width: 44px;
  height: 44px;
}

.header-4__main {
  border-bottom: 2px solid #9fd8d7;
}

.header-4__main-inner {
  display: grid;
  grid-template-columns: 220px 1fr 320px;
  align-items: center;
  gap: 32px;
  min-height: 213px;
}

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

.header-4__brand img {
  width: 150px;
  display: block;
}

.header-4__nav {
  position: relative;
}

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

.header-4__item {
  position: relative;
}

.header-4__item + .header-4__item::before {
  content: "•";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  color: #8fd3d1;
  font-size: 17px;
  font-weight: 700;
}

.header-4__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: #30343c;
  text-decoration: none;
  font-family: var(--font-family-display);
  font-size: 21px;
  font-weight: 500;
  cursor: pointer;
}

.header-4__caret {
  font-size: 17px;
  line-height: 1;
}

.header-4__submenu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  left: 50%;
  min-width: 360px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid rgba(48, 52, 60, 0.12);
  box-shadow: 0 22px 40px rgba(22, 27, 37, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.header-4__submenu-link {
  display: block;
  padding: 14px 22px;
  color: #30343c;
  font-family: var(--font-family-display);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.header-4__submenu-link:hover {
  background: #eef8f8;
}

.header-4__cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 18px 26px 18px 22px;
  background: #117c86;
  color: #edf6f9;
  text-decoration: none;
  font-family: var(--font-family-display);
  font-size: 21px;
  font-weight: 500;
  box-shadow: 10px 10px 0 #b8dddd;
}

.header-4__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.header-4__cta-icon svg {
  width: 32px;
  height: 32px;
}

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

.header-4__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  margin: 6px auto;
  background: #30343c;
}

@media (max-width: 1380px) {
  .header-4__topbar-inner {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .header-4__main-inner {
    grid-template-columns: 180px 1fr;
  }

  .header-4__cta {
    grid-column: 1 / -1;
    justify-self: center;
  }
}

@media (max-width: 1080px) {
  .header-4__contact-list {
    grid-template-columns: 1fr;
  }

  .header-4__contact-item {
    min-height: 0;
    padding: 20px 0;
    font-size: 18px;
  }

  .header-4__contact-item + .header-4__contact-item {
    border-left: 0;
    border-top: 1px solid rgba(143, 211, 209, 0.35);
  }

  .header-4__main-inner {
    grid-template-columns: 180px 1fr;
    min-height: 160px;
  }

  .header-4__toggle {
    display: block;
  }

  .header-4__menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(360px, 100%);
    padding: 20px;
    border: 1px solid rgba(48, 52, 60, 0.12);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(22, 27, 37, 0.1);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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

  .header-4__item + .header-4__item::before {
    display: none;
  }

  .header-4__link {
    font-size: 19px;
  }

  .header-4__submenu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    width: 100%;
    box-shadow: none;
    border: 1px solid rgba(48, 52, 60, 0.08);
  }

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

@media (max-width: 767px) {
  .header-4__social {
    flex-wrap: wrap;
  }

  .header-4__social a {
    width: 52px;
    height: 52px;
  }

  .header-4__contact-item {
    font-size: 18px;
  }

  .header-4__contact-icon svg {
    width: 42px;
    height: 42px;
  }

  .header-4__main-inner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .header-4__brand {
    justify-content: center;
  }

  .header-4__brand img {
    width: 128px;
  }

  .header-4__cta {
    width: 100%;
    justify-content: center;
    font-size: 22px;
    box-shadow: 7px 7px 0 #b8dddd;
  }
}
