.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  width: 100%;
  height: var(--header-height);
  padding: 0 clamp(32px, 4.6vw, 66px);
  color: #ffffff;
  transition: background 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: #33404d;
  background: #e5e5e5;
  box-shadow: 0 8px 24px rgba(10, 35, 64, 0.08);
}

.site-header__logo {
  width: 98px;
  flex: 0 0 auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 2.8vw, 48px);
  width: 100%;
}

.site-header__nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: var(--header-height);
}

.site-header__nav-link {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 16px;
  letter-spacing: 0;
  opacity: 0.9;
  cursor: pointer;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-header__nav-link::after {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.site-header__nav-item:hover .site-header__nav-link,
.site-header__nav-item.is-active .site-header__nav-link {
  color: var(--gold);
  opacity: 1;
}

.site-header__nav-item:hover .site-header__nav-link::after,
.site-header__nav-item.is-active .site-header__nav-link::after {
  transform: scaleX(1);
}

.site-header__submenu {
  position: absolute;
  top: calc(var(--header-height) - 6px);
  left: 50%;
  min-width: 170px;
  padding: 12px;
  background: rgba(229, 229, 229, 0.96);
  box-shadow: 0 16px 36px rgba(9, 29, 54, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.site-header__nav-item:hover .site-header__submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.site-header__submenu-link {
  display: block;
  width: 100%;
  border: 0;
  padding: 10px 12px;
  color: #33404d;
  background: transparent;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-header__submenu-link:hover,
.site-header__submenu-link.is-active {
  color: var(--blue-mid);
  background: rgba(255, 255, 255, 0.72);
}

.site-header__menu,
.site-header__mobile-panel {
  display: none;
}

@media (max-width: 767px) {
  .site-header {
    padding: 0 20px;
    color: #ffffff;
    background: transparent;
    box-shadow: none;
  }

  .site-header.is-scrolled,
  .site-header.is-open {
    color: #263442;
    background: #e5e5e5;
    box-shadow: 0 8px 24px rgba(10, 35, 64, 0.08);
  }

  .site-header.is-open {
    transition: none;
  }

  .site-header__logo {
    width: 69px;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .site-header__menu img {
    width: 21px;
  }

  .site-header__mobile-panel {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: block;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 36px rgba(10, 35, 64, 0.14);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), padding 0.28s ease, opacity 0.24s ease, visibility 0s linear 0.38s;
  }

  .site-header__mobile-panel.is-open {
    max-height: calc(100vh - var(--header-height));
    padding: 8px 20px 22px;
    overflow: auto;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition: max-height 0.38s cubic-bezier(0.22, 1, 0.36, 1), padding 0.28s ease, opacity 0.24s ease, visibility 0s;
  }

  @supports (height: 100dvh) {
    .site-header__mobile-panel.is-open {
      max-height: calc(100dvh - var(--header-height));
    }
  }

  .site-header__mobile-link {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-bottom: 1px solid #edf0f3;
    padding: 0;
    color: #2a3540;
    background: transparent;
    font-size: 15px;
    text-align: left;
  }

  .site-header__mobile-link.is-active {
    color: var(--blue-mid);
  }

  .site-header__mobile-submenu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 0 14px;
  }

.site-header__mobile-child {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid #dde5eb;
    color: #617080;
    background: transparent;
    font-size: 12px;
  }

  .site-header__mobile-child.is-active {
    color: var(--blue-mid);
    border-color: var(--blue-mid);
    background: #f3f8fc;
  }
}
