.header-7 {
  position: relative;
  z-index: 80;
  background: #ffffff;
  border-top: 4px solid #34373c;
}

.header-7__topbar {
  background: #9bc9ea;
  color: #ffffff;
}

.header-7__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
}

.header-7__social,
.header-7__email {
  display: inline-flex;
  align-items: center;
}

.header-7__social {
  gap: 16px;
}

.header-7__social a,
.header-7__email {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-7__social a:hover,
.header-7__email:hover {
  opacity: 0.82;
}

.header-7__social a:hover {
  transform: translateY(-1px);
}

.header-7__social svg {
  width: 18px;
  height: 18px;
}

.header-7__email {
  gap: 14px;
  font-family: var(--font-family-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.header-7__email-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-7__email-icon svg {
  width: 23px;
  height: 23px;
}

.header-7__main {
  background: #edf9ff;
  box-shadow: 0 12px 24px rgba(54, 75, 95, 0.14);
}

.header-7__main-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  align-items: center;
  gap: 40px;
  min-height: 182px;
}

.header-7__brand {
  display: inline-flex;
  align-items: center;
}

.header-7__brand img {
  display: block;
  width: 142px;
}

.header-7__nav {
  position: relative;
}

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

.header-7__item {
  position: relative;
}

.header-7__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: #31353a;
  font-family: var(--font-family-display);
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.header-7__link:hover,
.header-7__item.is-active .header-7__link {
  color: #475869;
}

.header-7__item.is-active .header-7__link span:first-child {
  border-bottom: 3px solid #9bc9ea;
}

.header-7__item.is-active .header-7__link span:first-child,
.header-7__link span:first-child {
  padding-bottom: 8px;
}

.header-7__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.header-7__caret svg {
  width: 14px;
  height: 14px;
}

.header-7__submenu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 20;
  display: flex;
  min-width: 320px;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 22px 36px rgba(30, 42, 56, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-7__submenu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: #31353a;
  font-family: var(--font-family-display);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-7__submenu-link:hover {
  background: #edf9ff;
  color: #475869;
}

.header-7__item--services:hover .header-7__submenu,
.header-7__item--services:focus-within .header-7__submenu,
.header-7__item--services.is-open .header-7__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.header-7__item--services.is-open .header-7__caret,
.header-7__item--services:hover .header-7__caret,
.header-7__item--services:focus-within .header-7__caret {
  transform: rotate(180deg);
}

.header-7__cta,
.header-7__menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 34px;
  border-radius: 999px;
  background: #9bc9ea;
  color: #ffffff;
  font-family: var(--font-family-display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-7__cta {
  justify-self: end;
  width: min(100%, 304px);
}

.header-7__cta:hover,
.header-7__menu-cta:hover {
  background: #88bbe0;
  transform: translateY(-1px);
}

.header-7__toggle,
.header-7__item--mobile-cta {
  display: none;
}

.header-7__toggle {
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.header-7__toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: #31353a;
}

@media (max-width: 1180px) {
  .header-7__main-inner {
    grid-template-columns: 160px minmax(0, 1fr) 230px;
    gap: 24px;
  }

  .header-7__menu {
    gap: 24px;
  }

  .header-7__link {
    font-size: 18px;
  }

  .header-7__submenu {
    min-width: 290px;
  }
}

@media (max-width: 980px) {
  .header-7__topbar-inner {
    min-height: 48px;
  }

  .header-7__email span:last-child {
    display: none;
  }

  .header-7__main-inner {
    grid-template-columns: 1fr auto;
    min-height: 124px;
  }

  .header-7__brand img {
    width: 118px;
  }

  .header-7__toggle {
    display: block;
  }

  .header-7__cta {
    display: none;
  }

  .header-7__menu {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    left: auto;
    display: none;
    width: min(340px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(30, 42, 56, 0.18);
    text-align: left;
  }

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

  .header-7__item--mobile-cta {
    display: block;
    padding-top: 8px;
  }

  .header-7__link {
    width: 100%;
    justify-content: space-between;
    font-size: 17px;
    padding: 14px 8px;
  }

  .header-7__item--services {
    display: block;
  }

  .header-7__submenu {
    position: static;
    left: auto;
    min-width: 0;
    margin-top: 2px;
    padding: 8px 0 0 14px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    background: transparent;
  }

  .header-7__item--services:hover .header-7__submenu,
  .header-7__item--services:focus-within .header-7__submenu {
    display: none;
  }

  .header-7__item--services.is-open .header-7__submenu {
    display: flex;
  }

  .header-7__submenu-link {
    padding: 10px 8px;
    font-size: 16px;
  }

  .header-7__item.is-active .header-7__link span:first-child {
    border-bottom-width: 2px;
  }

  .header-7__menu-cta {
    width: 100%;
    min-height: 52px;
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .header-7__topbar-inner {
    gap: 16px;
  }

  .header-7__social {
    gap: 12px;
  }

  .header-7__main-inner {
    min-height: 108px;
  }

  .header-7__brand img {
    width: 102px;
  }
}
