.site-header {
  --site-header-inner-height: clamp(58px, 5.7143vw, 80px);
  --site-header-solid-opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: rgba(255, 255, 255, var(--site-header-solid-opacity));
  box-shadow: 0 8px 26px rgba(24, 43, 73, calc(var(--site-header-solid-opacity) * 0.08));
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header::after {
  content: "";
  position: fixed;
  top: var(--site-header-inner-height);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background: rgba(16, 24, 38, 0.56);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), visibility var(--transition-base);
}

.site-header.is-open::after {
  opacity: 1;
  visibility: visible;
}

.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  min-height: 64px;
  padding-top: 0;
  padding-bottom: 0;
  color: #ffffff;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 clamp(220px, 21.4286vw, 300px);
  height: clamp(58px, 5.7143vw, 80px);
  min-width: 0;
}

.site-header__logo {
  display: block;
  height: clamp(32px, 3.4286vw, 48px);
  width: auto;
}

.site-header__brand-name {
  color: #ffffff;
  font-size: clamp(14px, 1.0714vw, 15px);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--transition-base);
}

.site-header__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex: 1;
  min-width: 0;
  height: clamp(58px, 5.7143vw, 80px);
  flex-wrap: nowrap;
}

.site-header__nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: clamp(58px, 5.7143vw, 80px);
  padding: 0 clamp(12px, 2vw, 28px);
  font-size: clamp(13px, 1vw, 14px);
  white-space: nowrap;
  transition: color var(--transition-base), opacity var(--transition-base);
}

.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 0;
  height: 2px;
  background: #ffffff;
  transform: translateX(-50%);
  transition: width var(--transition-base);
}

.site-header__nav a:hover,
.site-header__nav a.is-active {
  color: #ffffff;
}

.site-header__nav a:hover::after,
.site-header__nav a.is-active::after {
  width: 24px;
}

.site-header__panel {
  display: none;
}

.site-header__menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  margin-left: 12px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  border: 0;
  transition: background-color var(--transition-base);
}

.site-header__menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: #ffffff;
  transform-origin: center;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.site-header.is-solid .site-header__brand-name {
  color: #1f2933;
}

.site-header.is-solid .site-header__nav a {
  color: #2d3643;
}

.site-header.is-solid .site-header__nav a::after {
  background: #1876ef;
}

.site-header.is-solid .site-header__nav a:hover,
.site-header.is-solid .site-header__nav a.is-active {
  color: #1876ef;
}

.site-header.is-solid .site-header__menu {
  background: rgba(24, 118, 239, 0.06);
}

.site-header.is-solid .site-header__menu span {
  background: #1876ef;
}

@media (max-width: 1240px) {
  .site-header__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
  }

  .site-header__nav a {
    padding: 0 clamp(10px, 1.6vw, 20px);
  }

  .site-header__menu {
    display: inline-flex;
  }

  .site-header__menu span {
    width: 20px;
  }

  .site-header__panel {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 0 36px;
    max-height: 0;
    overflow: hidden;
    background: #ffffff;
    opacity: 0;
    transition: max-height 0.3s ease, opacity var(--transition-base);
  }

  .site-header.is-open .site-header__panel {
    max-height: 780px;
    opacity: 1;
  }

  .site-header__panel a {
    display: flex;
    align-items: center;
    min-height: 112px;
    padding: 0;
    border-bottom: 1px solid rgba(31, 41, 51, 0.08);
    color: #2b3442;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
  }

  .site-header__panel a:last-child {
    border-bottom: 0;
  }

  .site-header__panel a.is-active {
    color: #1876ef;
  }
}

@media (max-width: 767px) {
  .site-header {
    --site-header-inner-height: 56px;
  }

  .site-header__inner {
    min-height: 56px;
  }

  .site-header__brand {
    flex: 1;
    height: 56px;
  }

  .site-header__logo {
    height: 30px;
  }

  .site-header__brand-name {
    font-size: 13px;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
  }

  .site-header__panel a {
    min-height: 60px;
    padding: 0;
    font-size: 15px;
    font-weight: 600;
  }

  .site-header__panel {
    padding: 0 12px;
  }
}

@media (max-width: 980px) and (min-width: 768px) {
  .site-header__inner {
    min-height: 66px;
  }

  .site-header__brand {
    flex: 0 0 220px;
    height: 66px;
  }

  .site-header__logo {
    height: 34px;
  }

  .site-header__brand-name {
    font-size: 13px;
  }

  .site-header__nav {
    height: 66px;
  }

  .site-header__nav a {
    height: 66px;
    padding: 0 14px;
    font-size: 13px;
  }

  .site-header__nav a::after {
    bottom: 16px;
  }

  .site-header__panel a {
    min-height: 80px;
    font-size: 20px;
  }
}
