/* Canonical global top navigation. Loaded after page stylesheets. */
:root {
  --global-nav-ink: #11110f;
  --global-nav-muted: #6c6962;
  --global-nav-line: rgba(17, 17, 15, 0.14);
  --global-nav-paper: #fffefa;
  --global-nav-dark: #11110f;
  --global-nav-orange: #ffb20e;
}

body.menu-open {
  overflow: hidden;
}

.topbar,
.mega-menu {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.topbar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 0 52px;
  background: rgba(255, 254, 250, 0.48);
  border-bottom: 1px solid var(--global-nav-line);
  backdrop-filter: blur(22px);
}

.topbar__left,
.topbar__right,
.topnav {
  display: flex;
  align-items: center;
}

.topbar__left {
  gap: 30px;
}

.topbar__right {
  margin-left: auto;
  justify-content: flex-end;
  gap: 20px;
}

.topnav {
  gap: 24px;
  color: var(--global-nav-muted);
}

.topbar a,
.menu-button {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 28px;
  font-weight: 600;
  font-synthesis: none;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

.topbar a:hover,
.topnav a.active {
  color: var(--global-nav-ink);
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--global-nav-dark);
}

.brand-mark img {
  width: 25px;
  height: 25px;
  display: block;
  object-fit: contain;
}

.menu-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button__arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.topbar__phone {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--global-nav-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.topbar__cta {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--global-nav-dark);
  color: #fff !important;
}

.language-switcher {
  position: relative;
}

.language-switcher__button {
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(17, 17, 15, 0.12);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.58);
  color: var(--global-nav-ink);
  font: inherit;
  font-size: 13px;
  line-height: 1;
  font-weight: 650;
  cursor: pointer;
}

.language-switcher__flag {
  font-size: 16px;
  line-height: 1;
}

.language-switcher__menu {
  position: absolute;
  z-index: 55;
  top: calc(100% + 10px);
  right: 0;
  width: 158px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 15, 0.12);
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 18px 50px rgba(17, 17, 15, 0.16);
  backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.language-switcher.is-open .language-switcher__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-switcher__menu button {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--global-nav-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-switcher__menu button:hover,
.language-switcher__menu button.is-active {
  background: var(--global-nav-orange);
}

.language-switcher__menu span {
  font-size: 17px;
}

.language-switcher__menu strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mega-menu {
  position: fixed;
  z-index: 35;
  top: 72px;
  left: 52px;
  right: 52px;
  padding: 0;
  color: var(--global-nav-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 320px;
  overflow: hidden;
  padding: 0 clamp(26px, 4vw, 72px) 0 102px;
  border: 1px solid var(--global-nav-line);
  border-radius: 0 0 18px 18px;
  background: rgba(255, 254, 250, 0.48);
  box-shadow: 0 28px 80px rgba(17, 17, 15, 0.18);
  backdrop-filter: blur(22px);
}

.mega-menu__content {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
}

.mega-menu__column {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 0 30px;
}

.mega-menu__column .eyebrow {
  position: relative;
  width: fit-content;
  margin-bottom: 8px;
  padding: 0 0 8px;
  color: rgba(17, 17, 15, 0.42);
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.2;
  font-weight: 820;
}

.mega-menu__column .eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--global-nav-orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.mega-menu__column:hover .eyebrow::after,
.mega-menu__column:focus-within .eyebrow::after,
.mega-menu__column.is-active .eyebrow::after {
  transform: scaleX(1);
}

.mega-menu__column a,
.mega-menu__coming,
.mega-menu__social-link {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  margin-left: -12px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: 1.32;
  font-weight: 650;
}

.mega-menu__column a {
  color: var(--global-nav-ink);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.mega-menu__column a:hover,
.mega-menu__column a.is-active,
.mega-menu__social-link:hover,
.mega-menu__social-link:focus-visible {
  background: var(--global-nav-orange);
  color: var(--global-nav-ink);
}

.mega-menu__coming {
  gap: 10px;
  color: rgba(17, 17, 15, 0.42);
  cursor: default;
}

.mega-menu__coming em {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--global-nav-ink);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.mega-menu__column--social {
  position: relative;
}

.mega-menu__social-link {
  position: static;
  gap: 0;
  color: var(--global-nav-ink);
  cursor: default;
  outline: none;
}

.social-qr {
  position: absolute;
  z-index: 4;
  top: 135px;
  right: -10px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17, 17, 15, 0.14);
  border-radius: 10px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: 0 18px 42px rgba(17, 17, 15, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(6px, -50%) scale(0.98);
  transition: opacity 220ms ease, transform 260ms cubic-bezier(0.19, 1, 0.22, 1);
}

.mega-menu__social-link:hover .social-qr,
.mega-menu__social-link:focus-within .social-qr {
  opacity: 1;
  transform: translate(0, -50%) scale(1);
}

.qr-placeholder {
  width: 86px;
  height: 86px;
  display: block;
  background: #fff url("../assets/qrsample.png") center / 112% 112% no-repeat;
}

@media (min-width: 1440px) {
  .social-qr {
    left: var(--social-qr-left, auto);
    right: var(--social-qr-right, -10px);
  }
}

@media (max-width: 1100px) {
  .topnav,
  .topbar__phone {
    display: none;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 62px;
    gap: 28px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-mark img {
    width: 23px;
    height: 23px;
  }

  .topbar__right {
    gap: 6px;
  }

  .language-switcher__button {
    height: 34px;
    gap: 5px;
    padding: 0 10px;
    font-size: 12px;
  }

  .topbar__cta {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .mega-menu {
    top: 62px;
    left: 16px;
    right: 16px;
  }

  .mega-menu__grid {
    max-height: calc(100vh - 90px);
    min-height: 0;
    overflow: auto;
    padding: 0 24px;
  }

  .mega-menu__content {
    grid-template-columns: 1fr;
  }

  .mega-menu__column {
    min-height: 0;
    padding: 22px 0;
  }

  .mega-menu__column a,
  .mega-menu__coming,
  .mega-menu__social-link {
    font-size: 16px;
    line-height: 1.28;
  }
}
