.header-7 {
  position: relative;
  z-index: 80;
  background: var(--color-white);
  border-top: 4px solid var(--color-primary-dark);
}

.header-7__topbar {
  background: var(--color-background-dark);
  color: var(--color-white);
}

.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: var(--color-white);
  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: var(--color-surface-subtle);
  box-shadow: 0 12px 24px rgba(var(--color-text-dark-rgb), 0.14);
}

.header-7__main-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: 182px;
}

.header-7__brand {
  display: inline-flex;
  align-items: center;
}

.header-7__mobile-spacer {
  display: none;
}

.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: var(--color-text-dark);
  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: var(--color-text-dark);
}

.header-7__item.is-active .header-7__link span:first-child {
  border-bottom: 3px solid var(--color-accent);
}

.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: 100%;
  left: 50%;
  z-index: 20;
  display: flex;
  min-width: 320px;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 22px 36px rgba(var(--color-text-dark-rgb), 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.header-7__submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.header-7__submenu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--color-text-dark);
  font-family: var(--font-family-display);
  font-size: var(--font-size-body);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-7__submenu-link:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text-dark);
}

.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__menu-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--color-background-dark);
  color: var(--color-white);
  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__menu-cta:hover {
  background: var(--color-background-dark);
  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: var(--color-background-dark);
}

@media (max-width: 1180px) {
  .header-7__main-inner {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 14px;
    min-height: auto;
    padding: 18px 0 22px;
  }

  .header-7__mobile-spacer {
    display: block;
  }

  .header-7__brand {
    grid-column: 2;
    justify-self: center;
  }

  .header-7__brand img {
    width: 118px;
  }

  .header-7__nav {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: start;
    width: 100%;
  }

  .header-7__toggle {
    grid-column: 3;
    justify-self: end;
    display: block;
  }

  .header-7__menu {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: 8px;
    padding: 14px;
    border-radius: 24px;
    background: var(--color-white);
    box-shadow: 0 20px 40px rgba(var(--color-text-dark-rgb), 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: var(--font-size-body);
    padding: 14px 8px;
  }

  .header-7__item--services {
    display: block;
    width: 100%;
  }

  .header-7__submenu {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    width: 100%;
    margin-top: 0;
    padding: 6px 0 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    display: none;
    background: transparent;
  }

  .header-7__submenu::before {
    display: none;
  }

  .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;
    flex-direction: column;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .header-7__submenu-link {
    width: 100%;
    padding: 10px 8px;
    font-size: var(--font-size-body);
  }

  .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: var(--font-size-body);
  }
}

@media (max-width: 980px) {
  .header-7__topbar-inner {
    min-height: 48px;
  }

  .header-7__email span:last-child {
    display: none;
  }
}

@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;
  }
}
