.subpage-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 16, 22, 0.94);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.subpage-header__inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 2rem));
  min-height: 76px;
  margin-inline: auto;
}

.subpage-brand {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 146px;
  color: #f7f9fc;
  text-decoration: none;
}

.subpage-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.subpage-brand__tm {
  position: absolute;
  top: -0.15em;
  right: -1.15em;
  color: #f7f9fc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.56rem;
  line-height: 1;
}

.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  justify-content: flex-end;
}

.subpage-nav a {
  position: relative;
  padding: 0.45rem 0.05rem;
  color: #e4edf1;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.subpage-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: #72aeea;
  content: '';
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 180ms ease, transform 180ms ease;
}

.subpage-nav a:hover {
  color: #fff;
}

.subpage-nav a[aria-current] {
  color: #fff;
}

.subpage-nav a[aria-current]::after {
  opacity: 1;
  transform: scaleX(1);
}

.subpage-header a:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid rgba(137, 196, 255, 0.95);
  outline-offset: 5px;
}

.site-footer {
  border-top: 1px solid rgba(152, 181, 211, 0.18);
  color: #aebdcd;
  background:
    radial-gradient(circle at 15% 0%, rgba(32, 89, 146, 0.13), transparent 32rem),
    #02070d;
}

.site-footer__inner,
.footer__bottom {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 4vw, 5rem);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(14rem, 1.25fr) repeat(5, minmax(9rem, 0.8fr));
  gap: clamp(2rem, 3.2vw, 4rem);
  padding-top: clamp(3.75rem, 7vw, 6.5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
}

.footer__brand-block p,
.footer__section p {
  margin: 1.15rem 0 0;
  color: #8fa0b2;
  font-size: 0.9rem;
  line-height: 1.65;
}

.footer__brand {
  position: relative;
  width: clamp(9.5rem, 12vw, 11.75rem);
}

.footer__brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer__brand > span {
  position: absolute;
  top: -0.15em;
  right: -1.15em;
  color: #f7f9fc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  line-height: 1;
}

.footer__section h2 {
  margin: 0 0 1.3rem;
  color: #8294a7;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer__section a,
.footer__bottom a,
.footer__bottom .back-to-top {
  color: #f7f9fc;
  text-decoration-color: rgba(114, 174, 234, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}

.footer__section > a {
  display: block;
  width: fit-content;
}

.footer__section > a + a {
  margin-top: 0.9rem;
}

.footer__section a:hover,
.footer__bottom a:hover,
.footer__bottom .back-to-top:hover {
  color: #72aeea;
  text-decoration-color: currentColor;
}

.footer__section address {
  font-style: normal;
  line-height: 1.7;
}

.footer__bottom {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(152, 181, 211, 0.15);
  color: #718296;
  font-size: 0.78rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a,
.footer__bottom .back-to-top {
  color: #aebdcd;
}

.back-to-top {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  border-radius: 0.2rem;
  outline: 3px solid rgba(137, 196, 255, 0.95);
  outline-offset: 5px;
}

@media (max-width: 1250px) {
  .site-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .subpage-header__inner {
    padding-block: 0.8rem;
  }

  .subpage-brand {
    width: 120px;
  }

  .subpage-nav {
    gap: 0.35rem 0.75rem;
  }

  .subpage-nav a {
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .footer__brand-block,
  .footer__section {
    max-width: 22rem;
  }

  .footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .subpage-header__inner {
    display: block;
  }

  .subpage-nav {
    justify-content: flex-start;
    margin-top: 0.75rem;
  }
}
