.site-header--top,
.site-header--top *,
.site-footer--top,
.site-footer--top * {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 96px;
}

body {
  padding-top: 80px;
}

[id] {
  scroll-margin-top: 96px;
}

.site-header--top {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 80px;
  padding: 0 40px;
  background: #fff;
  border: 1px solid #e0e0e0;
  backdrop-filter: none;
}

.reading-progress {
  top: 80px;
}

.site-header--top a,
.site-footer--top a {
  color: inherit;
  text-decoration: none;
}

.site-header--top .site-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
}

.site-header--top .site-logo img {
  width: 51px;
  height: 40px;
  object-fit: cover;
}

.site-header--top .global-nav--top {
  position: static;
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  background: transparent;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: none;
}

.site-header--top .global-nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  list-style: none;
}

.site-header--top .global-nav__list li {
  border: 0;
}

.site-header--top .global-nav__list a {
  display: inline;
  height: auto;
  min-height: 0;
  padding: 0;
  color: #333;
  background: transparent;
  font-size: inherit;
  font-weight: inherit;
  transition: color 0.2s ease;
}

.site-header--top .global-nav__list a::after {
  content: none;
}

.site-header--top .global-nav--top a::after {
  content: none;
}

.site-header--top .global-nav__list a:hover,
.site-header--top .global-nav__list a:focus-visible {
  color: #00c4f3;
  background: transparent;
}

.site-header--top .header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header--top .header-actions__sub {
  color: #717171;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header--top .header-actions__sub:hover,
.site-header--top .header-actions__sub:focus-visible {
  color: #00c4f3;
}

.site-header--top .header-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  color: #fff;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: filter 0.2s ease;
}

.site-header--top .header-action:hover,
.site-header--top .header-action:focus-visible {
  filter: brightness(0.94);
}

.site-header--top .header-action img {
  width: 26px;
  height: 26px;
}

.site-header--top .header-action--blue {
  width: 200px;
  background: #00c4f3;
}

.site-header--top .header-action--pink {
  width: 130px;
  background: #ee86a1;
}

.site-header--top .mobile-nav-actions,
.site-header--top .menu-toggle {
  display: none;
}

.site-footer--top {
  min-height: 384px;
  padding: 60px;
  color: #fff;
  background: #152f4f;
}

.site-footer--top .site-footer__inner {
  width: min(100%, 1140px);
  margin: 0 auto;
}

.site-footer--top h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 24px;
}

.site-footer--top ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 32px;
  margin: 0 0 30px;
  padding: 0;
  font-size: 13px;
  line-height: 16px;
  list-style: none;
}

.site-footer--top a {
  color: #fff;
  opacity: 0.7;
}

.site-footer--top a:hover,
.site-footer--top a:focus-visible {
  opacity: 1;
}

.site-footer--top .site-footer__copyright {
  margin: 30px 0 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
  opacity: 0.4;
}

@media (max-width: 1199px) {
  .site-header--top {
    padding-inline: 24px;
  }

  .site-header--top .global-nav__list {
    gap: 20px;
  }

  .site-header--top .header-actions {
    gap: 12px;
  }

  .site-header--top .header-actions__sub {
    display: none;
  }

  .site-header--top .header-action--blue {
    width: 160px;
  }

  .site-header--top .header-action--pink {
    width: 116px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 88px;
  }

  body {
    padding-top: 72px;
  }

  [id] {
    scroll-margin-top: 88px;
  }

  .site-header--top {
    height: 72px;
    padding-inline: 20px;
  }

  .reading-progress {
    top: 72px;
  }

  .site-header--top .site-logo img {
    width: 46px;
    height: 36px;
  }

  .site-header--top .site-logo span {
    font-size: 16px;
  }

  .site-header--top .header-actions {
    display: none;
  }

  .site-header--top .menu-toggle {
    position: relative;
    z-index: 102;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #333;
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
  }

  .site-header--top .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    font-size: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .site-header--top .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header--top .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header--top .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header--top .global-nav--top {
    position: fixed;
    inset: 72px 0 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    width: auto;
    height: auto;
    padding: 32px 24px;
    overflow-y: auto;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header--top .global-nav--top.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .site-header--top .global-nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 16px;
  }

  .site-header--top .global-nav__list li {
    border: 0;
  }

  .site-header--top .global-nav__list a {
    display: block;
    min-height: 52px;
    padding: 14px 4px;
    border-bottom: 1px solid #e0e0e0;
  }

  .site-header--top .mobile-nav-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
  }

  .site-header--top .mobile-nav-actions__sub {
    min-height: 48px;
    padding: 12px;
    color: #717171;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
  }

  .site-header--top .mobile-nav-actions .header-action {
    width: 100%;
    min-height: 52px;
  }

  .site-footer--top {
    padding: 48px 24px;
  }

  .site-footer--top ul {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 36px;
  }

  .site-footer--top .site-footer__copyright {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-header--top {
    padding-inline: 16px;
  }

  .site-header--top .site-logo {
    gap: 8px;
  }

  .site-header--top .site-logo img {
    width: 41px;
    height: 32px;
  }

  .site-header--top .site-logo span {
    font-size: 15px;
  }
}

@media print {
  body {
    padding-top: 0;
  }
}
