.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  transition: transform 0.26s ease, opacity 0.26s ease;
}

.site-header.nav-hidden {
  transform: translateY(-108%);
  opacity: 0;
}

.site-header .nav-inner {
  min-height: 78px;
  padding: 10px 0;
  gap: 18px;
}

.site-header .brand-logo {
  height: 68px;
}

.sh-desktop {
  margin-left: 4px;
  margin-right: auto;
}

.sh-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.sh-nav-list li {
  margin: 0;
}

.sh-nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  color: #223041;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}

.sh-nav-trigger::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 1.5px;
  background: rgba(15, 75, 143, 0.88);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.sh-nav-trigger:hover,
.sh-nav-trigger:focus-visible {
  color: #0f4b8f;
}

.sh-nav-trigger.is-active::after,
.sh-nav-trigger.is-open::after {
  transform: scaleX(1);
}

.sh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sh-action-link {
  position: relative;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 13px;
  font-weight: 500;
  color: #324154;
  text-decoration: none;
}

.sh-action-link::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 7px;
  height: 1.5px;
  background: rgba(15, 75, 143, 0.75);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.sh-action-link.is-active::after,
.sh-action-link:hover::after {
  transform: scaleX(1);
}

.sh-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 42px;
  padding: 0 10px;
  line-height: 1;
  font-weight: 500;
}

.site-header .btn.primary {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.sh-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.sh-mega.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sh-mega-shell {
  width: 100%;
  max-width: 1040px;
}

.sh-mega-panel {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  padding: 16px 18px;
  display: block;
  max-height: min(76vh, 620px);
  overflow: auto;
}

.sh-mega-list {
  min-width: 0;
}

.sh-col-heading {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5d6a7c;
  font-weight: 600;
}

.sh-link-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}

.sh-mega-link {
  display: block;
  padding: 8px 9px;
  border-radius: 8px;
  text-decoration: none;
  color: #1f2c3c;
}

.sh-mega-link:hover,
.sh-mega-link:focus-visible {
  background: rgba(15, 75, 143, 0.06);
}

.sh-link-title {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.sh-link-desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  color: #64748b;
  font-weight: 400;
  white-space: normal;
  overflow-wrap: anywhere;
}

.sh-mobile-panel {
  width: min(420px, 92vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 16px;
}

.sh-mobile-accordion {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-bottom: 16px;
}

.sh-acc-item {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 10px;
}

.sh-acc-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 6px 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  text-align: left;
  color: #1f2c3c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sh-acc-trigger::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: #64748b;
}

.sh-acc-trigger[aria-expanded="true"]::after {
  content: "−";
}

.sh-acc-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.sh-acc-list li {
  margin: 0;
}

.sh-acc-list a {
  display: block;
  padding: 7px 0;
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.sh-acc-list a:hover,
.sh-acc-list a:focus-visible {
  color: #0f4b8f;
}

.sh-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sh-mobile-actions .btn {
  min-height: 40px;
  border-radius: 10px;
}

@media (max-width: 1100px) {
  .site-header .brand-logo {
    height: 62px;
  }

  .sh-nav-trigger {
    padding: 0 8px;
    font-size: 12px;
  }

  .sh-action-link {
    padding: 0 6px;
  }
}

@media (max-width: 1200px) {
  .sh-action-link {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header .nav-inner {
    min-height: 72px;
    flex-wrap: nowrap;
  }

  .sh-desktop,
  .sh-mega,
  .sh-action-link,
  .sh-lang {
    display: none;
  }

  .site-header .nav-toggle {
    display: inline-flex;
  }

  .sh-actions {
    margin-left: auto;
  }

  .sh-actions .btn.primary {
    display: none;
  }
}
