body.is-resizing .header-nav {
  transition: none !important;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: radial-gradient(circle at 80% 0%, rgba(0, 120, 120, 0.16), transparent 32%), linear-gradient(135deg, #030d0f 0%, #051817 48%, #052522 100%);
  overflow: visible;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  height: 100%;
  background: url('../images/header-wave.svg') right center / cover no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 1;
}
.site-header__inner {
  position: relative;
  z-index: 5;
}

.header-nav .sub-menu {
  z-index: 9999;
}

.site-header__inner {
  position: relative;
  z-index: 5;
  min-height: 88px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo img,
.site-logo__image {
  display: block;

  width: auto;
  max-width: 220px;
  max-height: 56px;

  object-fit: contain;
}

@media (max-width: 980px) {
  .site-logo img,
  .site-logo__image {
    max-width: 180px;
    max-height: 48px;
  }
}

@media (max-width: 540px) {
  .site-logo img,
  .site-logo__image {
    max-width: 150px;
    max-height: 42px;
  }
}

.site-logo__body {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo__icon {
  margin-top: 3px;

  width: 44px;
  height: 44px;
  padding-bottom: 7px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--safe-accent);

  font-size: 42px;
  line-height: 0.99;

  flex-shrink: 0;
}
.site-logo__text {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.site-logo__tagline {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
}

.header-nav {
  position: relative;
  z-index: 20;

  justify-self: end;
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header-nav__group > ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav li {
  position: relative;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.header-nav a:not(.header-review-btn-mobile):not(.header-review-btn):hover {
  color: var(--safe-accent);
}
.header-nav .menu-item-has-children > a::after {
  content: '⌄';
  font-size: 13px;
  opacity: 0.8;
}

.header-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--safe-line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 39, 68, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    visibility 0.18s ease,
    transform 0.18s ease;

  z-index: 9999;
}

.header-nav li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-nav .sub-menu a {
  width: 100%;
  padding: 10px 12px;
  color: var(--safe-text);
  font-size: 13px;
  white-space: nowrap;
  border-radius: 10px;
}

.header-nav .sub-menu a:hover {
  background: #eef8f7;
  color: var(--safe-primary);
}

.header-review-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 26px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--safe-primary), var(--safe-accent));
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 150, 136, 0.24);
}

.header-review-btn:hover {
  transform: translateY(-2px);
}

.burger {
  display: none;
}

.header-review-btn {
  display: inline-flex;
}

.header-review-btn-mobile {
  display: none !important;
}
