.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(16, 24, 39, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav {
  width: min(1320px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand img {
  display: block;
  height: 32px;
  width: auto;
}

.brand .logo-dark {
  max-width: 232px;
}

.brand .logo-light {
  max-width: 232px;
}

.brand .logo-light {
  display: none;
}

.brand .logo-dark {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
  color: #4c596b;
  font-size: 14px;
}

.nav-links a {
  transition: color .2s ease;
}

.nav-links > a,
.nav-item,
.nav-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 76px;
}

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  transition: color .2s ease;
}

.nav-item:hover .nav-trigger,
.nav-item:focus-within .nav-trigger,
.nav-links a:hover,
.nav-links a.active {
  color: var(--brand);
}

.nav-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition: transform .2s ease;
  opacity: .72;
}

.nav-item:hover .nav-trigger::after,
.nav-item:focus-within .nav-trigger::after,
.nav-item.is-open .nav-trigger::after {
  transform: rotate(225deg) translateY(-1px);
}

.mega-menu {
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: min(1280px, calc(100vw - 80px));
  padding: 26px 30px 22px;
  border: 1px solid rgba(16, 24, 39, .08);
  border-radius: 0 0 18px 18px;
  background: rgba(255, 255, 255, .84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 28px 60px rgba(10, 26, 56, .14);
  transform: translateX(-50%) translateY(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu,
.nav-item.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 34px;
}

.mega-col h3,
.solution-group h3 {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 24, 39, .1);
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.mega-list {
  display: grid;
  gap: 12px;
}

.mega-link {
  display: block;
  color: #445167;
  font-size: 15px;
  line-height: 1.5;
  transition: color .2s ease, transform .2s ease;
}

.mega-link:hover {
  color: var(--brand);
  transform: translateX(2px);
}

.mega-footer {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(16, 24, 39, .08);
  text-align: center;
}

.mega-footer a {
  color: #22324a;
  font-size: 15px;
  font-weight: 700;
}

.solution-menu {
  padding: 0;
  overflow: hidden;
}

.solution-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 360px;
}

.solution-tabs {
  background: rgba(241, 245, 249, .72);
  border-right: 1px solid rgba(16, 24, 39, .08);
  padding: 12px 0;
}

.solution-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 28px;
  border: 0;
  background: transparent;
  color: #1f2937;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.solution-tab::after {
  content: "›";
  font-size: 18px;
  opacity: .55;
}

.solution-tab.is-active {
  background: rgba(255, 255, 255, .72);
  color: var(--brand);
}

.solution-panels {
  padding: 28px 36px 22px;
  background: rgba(255, 255, 255, .3);
}

.solution-panel {
  display: none;
}

.solution-panel.is-active {
  display: block;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.nav-cta {
  min-height: 40px;
  margin-left: 6px;
  padding: 0 22px;
}

.site-footer .wrap {
  width: min(1320px, calc(100% - 40px));
}

.site-footer .footer-grid {
  grid-template-columns: 1.15fr .78fr 1.55fr .92fr;
  gap: 40px;
  align-items: flex-start;
}

.site-footer .footer-brand img {
  height: 28px;
}

.site-footer .footer-office .footer-list li,
.site-footer .footer-contact .footer-list li {
  font-size: 15px;
}

.site-footer .footer-office .footer-list li {
  white-space: nowrap;
}

.site-footer .footer-contact .footer-list {
  gap: 12px;
}

.site-footer .footer-qr {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 44px rgba(10, 26, 56, .14);
    color: #4c596b;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .site-footer .wrap {
    width: min(100% - 40px, 1320px);
  }

  .site-footer .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .site-footer .footer-office .footer-list li {
    white-space: normal;
  }

  .nav-links > a,
  .nav-item {
    height: auto;
  }

  .nav-links > a,
  .nav-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid rgba(16, 24, 39, .08);
  }

  .nav-links > a:last-child {
    border-bottom: 0;
  }

  .mega-menu {
    position: static;
    width: 100%;
    margin: 0 0 14px;
    padding: 16px 0 0;
    border: 0;
    border-top: 1px solid rgba(16, 24, 39, .08);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }

  .nav-item.is-open .mega-menu {
    display: block;
  }

  .mega-grid,
  .solution-grid,
  .solution-shell {
    grid-template-columns: 1fr;
  }

  .solution-tabs {
    display: flex;
    padding: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(16, 24, 39, .08);
  }

  .solution-tab {
    padding: 16px 18px;
  }

  .solution-panels {
    padding: 18px 0 0;
  }
}
