body.is-menu-open {
  overflow: hidden;
}

site-header,
.site-header-shell {
  position: relative;
  display: block;
  min-height: 327px;
}

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 1000;
  width: 0;
  height: 3px;
  background: var(--gold);
  pointer-events: none;
}

.site-header {
  position: relative;
  z-index: 50;
  border-top: 6px solid var(--gold);
  background: #fff;
}

.header-hero {
  position: relative;
  height: 265px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 24%, rgba(255, 255, 255, 0.22) 73%, rgba(0, 41, 87, 0.25)),
    url("../images/common/city-network.jpg") center 45% / cover no-repeat;
}

.header-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  /* background: url("../images/common/banner.jpg") center 45% / cover no-repeat; */
  mix-blend-mode: screen;
  opacity: 0.16;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-mark {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.brand-copy,
.brand-name,
.brand-name-en {
  display: block;
  min-width: 0;
}

.brand-name {
  color: var(--navy-950);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.03em;
}

.brand-name-en {
  margin-top: 8px;
  color: var(--muted);
  font: 700 12px/1.5 var(--font-en);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-slogan {
  max-width: 570px;
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  text-shadow: 0 2px 16px rgba(0, 26, 61, 0.3);
}

.desktop-nav {
  height: 56px;
  color: #fff;
  background: var(--navy-800);
  transition: box-shadow var(--normal) var(--ease);
}

.site-header.is-scrolled .desktop-nav {
  box-shadow: 0 7px 22px rgba(0, 26, 61, 0.18);
}

.nav-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  height: 100%;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-item + .nav-item::before {
  position: absolute;
  left: 0;
  width: 1px;
  height: 16px;
  content: "";
  background: rgba(255, 255, 255, 0.5);
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  height: 100%;
  padding-inline: 14px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.nav-item--has-submenu > .nav-link::before {
  order: 2;
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--fast) var(--ease);
}

.nav-link::after {
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 3px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--normal) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"],
.nav-link.is-current,
.nav-item:focus-within > .nav-link,
.nav-item:hover > .nav-link {
  color: #f6d47e;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after,
.nav-link.is-current::after,
.nav-item:focus-within > .nav-link::after,
.nav-item:hover > .nav-link::after {
  transform: scaleX(1);
}

.nav-item--has-submenu:focus-within > .nav-link::before,
.nav-item--has-submenu:hover > .nav-link::before {
  transform: translateY(2px) rotate(225deg);
}

.nav-submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 80;
  min-width: 176px;
  padding: 8px 0;
  color: var(--navy-950);
  background: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition:
    opacity var(--fast) ease,
    transform var(--normal) var(--ease),
    visibility var(--fast);
}

.nav-item:focus-within > .nav-submenu,
.nav-item:hover > .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-submenu a {
  display: block;
  padding: 9px 24px;
  color: var(--text);
  font-size: 13px;
  text-align: center;
  white-space: nowrap;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible,
.nav-submenu a[aria-current="page"] {
  color: var(--navy-950);
  background: #f3f7fb;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 8px;
  color: var(--navy-950);
  background: rgba(255, 255, 255, 0.72);
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  transition: transform var(--normal) var(--ease);
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-lines::before { top: -9px; }
.menu-toggle-lines::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 60;
  display: none;
  width: 100%;
  max-height: calc(100dvh - 142px);
  padding: 18px 0 24px;
  overflow-y: auto;
  color: #fff;
  background: var(--navy-800);
  border-bottom: 7px solid var(--gold);
  box-shadow: 0 18px 34px rgba(0, 26, 61, 0.26);
  opacity: 0;
  transform: translateY(-16px) scaleY(0.92);
  transform-origin: top;
  transition: opacity var(--normal) var(--ease), transform var(--normal) var(--ease), visibility var(--normal);
}

.mobile-menu.is-open {
  opacity: 1;
  transform: none;
}

.mobile-nav-list {
  display: grid;
  gap: 2px;
}

.mobile-nav-row {
  display: grid;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 10px 16px;
  color: inherit;
  background: transparent;
  font-size: 17px;
  text-align: center;
}

.mobile-nav-link[aria-current="page"],
.mobile-nav-link.is-current {
  color: #fff;
  background: #d09f24;
}

.mobile-submenu-trigger {
  position: relative;
}

.mobile-submenu-trigger::after {
  position: absolute;
  right: 20px;
  width: 8px;
  height: 8px;
  color: #fff;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--normal) var(--ease);
}

.mobile-submenu-trigger[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.mobile-submenu {
  display: grid;
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height var(--normal) var(--ease);
}

.mobile-submenu.is-open {
  max-height: 320px;
}

.mobile-submenu a {
  display: block;
  width: 100%;
  padding: 10px 20px;
  color: var(--navy-950);
  font-size: 14px;
  text-align: center;
}

.mobile-submenu a:hover,
.mobile-submenu a:focus-visible,
.mobile-submenu a[aria-current="page"] {
  color: #0c89ff;
}

@media (max-width: 1024px) {
  .brand-mark { width: 118px; height: 118px; }
  .brand-name { font-size: 18px; }
  .brand-name-en { font-size: 9px; }
  .header-slogan { max-width: 330px; font-size: 24px; }
  .nav-link { padding-inline: 8px; font-size: 13px; }
}

@media (max-width: 768px) {
  site-header,
  .site-header-shell { min-height: 142px; }
  .site-header { border-top-width: 5px; }
  .header-hero { height: 137px; }
  .brand { gap: 8px; max-width: calc(100% - 52px); }
  .brand-mark { width: 78px; height: 78px; }
  .brand-name { font-size: 14px; white-space: nowrap; }
  .brand-name-en { margin-top: 4px; font-size: 6px; letter-spacing: 0.03em; white-space: nowrap; }
  .header-slogan,
  .desktop-nav { display: none; }
  .menu-toggle { position: absolute; top: 16px; right: 0; z-index: 100; display: grid; place-items: center; flex: 0 0 auto; }
  .mobile-menu { display: block; visibility: hidden; }
  .mobile-menu.is-open { visibility: visible; }
}

@media (max-width: 480px) {
  .brand-mark { width: 68px; height: 68px; }
  .brand-name { font-size: 12px; letter-spacing: 0; }
  .brand-name-en { max-width: 208px; overflow: hidden; text-overflow: ellipsis; }
  .header-hero { background-position: 62% center; }
}
