@charset "utf-8";

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(17, 98, 216, 0.08);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px rgba(6, 20, 40, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: 260px 1fr 96px;
  align-items: center;
  height: 100%;
}

.logo a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.logo span,
.mobile-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 34px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 900;
  background: var(--blue);
}

.logo em {
  color: var(--deep);
  font-style: normal;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.nav {
  justify-self: center;
  height: 100%;
}

.depth1 {
  display: flex;
  height: 100%;
}

.depth1 > li {
  position: relative;
  min-width: 150px;
}

.depth1 > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--deep);
  font-size: 1rem;
  font-weight: 800;
}

.depth2 {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 190px;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 18px 44px rgba(6, 20, 40, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: 0.22s ease;
}

.depth1 > li:hover .depth2,
.depth1 > li:focus-within .depth2,
.depth1 > li.is-open .depth2 {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.depth2 a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.depth2 a:hover,
.depth2 a:focus {
  color: var(--blue);
  background: var(--sky);
}

.menu-btn {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 76px;
  min-height: 48px;
  color: var(--deep);
  font-weight: 800;
}

.menu-btn i {
  position: relative;
  width: 26px;
  height: 18px;
}

.menu-btn i::before,
.menu-btn i::after {
  content: "";
  position: absolute;
  right: 0;
  width: 26px;
  height: 2px;
  background: currentColor;
  transition: 0.2s ease;
}

.menu-btn i::before {
  top: 3px;
}

.menu-btn i::after {
  bottom: 3px;
}

body.is-menu-open .menu-btn i::before {
  top: 8px;
  transform: rotate(45deg);
}

body.is-menu-open .menu-btn i::after {
  bottom: 8px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100dvh;
  padding: 0 var(--side) 40px;
  color: var(--white);
  background: var(--navy);
  visibility: hidden;
  transform: translateX(100%);
  transition: 0.3s ease;
}

body.is-menu-open .mobile-menu {
  visibility: visible;
  transform: translateX(0);
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.mobile-close {
  position: relative;
  width: 48px;
  height: 48px;
}

.mobile-close span {
  position: absolute;
  top: 23px;
  left: 12px;
  width: 24px;
  height: 2px;
  background: currentColor;
}

.mobile-close span:first-child {
  transform: rotate(45deg);
}

.mobile-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.mobile-group {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-group button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 850;
  text-align: left;
}

.mobile-group button::after {
  content: "+";
  margin-left: auto;
  font-weight: 500;
}

.mobile-group.is-open button::after {
  content: "-";
}

.mobile-group ul {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.24s ease;
}

.mobile-group.is-open ul {
  max-height: 230px;
}

.mobile-group a {
  display: flex;
  align-items: center;
  min-height: 38px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
}

.mobile-group li:last-child a {
  margin-bottom: 20px;
}

.menu-bg {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

body.is-menu-open .menu-bg {
  opacity: 1;
  visibility: visible;
}

#footer {
  background: var(--deep);
  color: var(--white);
}

.host-area {
  padding: 42px 0;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.host-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
}

.host-row + .host-row {
  border-top: 1px solid var(--line);
}

.host-row > span {
  color: var(--blue);
  font-weight: 900;
}

.host-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.host-logos em {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  background: #fbfdff;
}

.related-site {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.select-site {
  position: relative;
  width: min(360px, 100%);
  margin-left: auto;
}

.select-site button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  color: var(--white);
  font-weight: 800;
}

.select-site button::after {
  content: "+";
  font-size: 1.2rem;
}

.select-site.is-open button::after {
  content: "-";
}

.site-options {
  position: absolute;
  right: 0;
  bottom: 100%;
  width: 100%;
  padding: 12px;
  background: var(--white);
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
}

.select-site.is-open .site-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-options a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-info {
  padding: 48px 0 58px;
}

.footer-info .inner {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 36px;
  align-items: start;
}

.footer-logo {
  width: 76px;
  height: 44px;
}

.info-box {
  display: grid;
  gap: 8px;
}

.info-box strong {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.info-box p,
.info-box small {
  color: rgba(255, 255, 255, 0.68);
}

.info-box span {
  display: inline-block;
  min-width: 62px;
  color: var(--white);
  font-weight: 800;
}

.footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.footer-buttons a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 1279px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .footer-info .inner {
    grid-template-columns: 1fr;
  }

  .footer-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .logo span {
    width: 54px;
    height: 32px;
  }

  .logo em {
    font-size: 0.98rem;
  }

  .menu-btn {
    min-width: 48px;
  }

  .menu-btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .mobile-group button {
    min-height: 66px;
    font-size: 1.2rem;
  }

  .host-area {
    padding: 30px 0;
  }

  .host-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .host-logos em {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .select-site {
    margin-left: 0;
  }

  .footer-info {
    padding: 38px 0 46px;
  }
}

@media (max-width: 320px) {
  .logo em {
    display: none;
  }
}
