.mayak-shell-header,
.mayak-shell-header * {
  box-sizing: border-box;
}

body > .mayak-shell-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #35404e;
  background: rgba(251, 249, 245, .96);
  border: 0;
  border-bottom: 1px solid #e5e2da;
  box-shadow: none;
  backdrop-filter: none;
}

.mayak-shell-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mayak-shell-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #202a38;
  text-decoration: none;
}

.mayak-shell-logo svg {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
}

.mayak-shell-logo b {
  display: block;
  margin: 0;
  padding: 0;
  color: #202a38;
  font: 700 17px/1.15 'PT Serif', Georgia, serif;
}

.mayak-shell-logo small {
  display: block;
  margin-top: 2px;
  color: #77808c;
  font: 400 10.5px/1.3 'Inter', Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.mayak-shell-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.mayak-shell-nav a {
  color: #35404e;
  font: 500 13.5px/1 'Inter', Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.mayak-shell-nav a:hover {
  color: #4a7a5c;
}

.mayak-shell-nav .mayak-shell-manifest {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  color: #4a7a5c;
  background: rgba(74, 122, 92, .06);
  border: 1px solid rgba(74, 122, 92, .28);
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: background .2s ease, border-color .2s ease;
}

.mayak-shell-nav .mayak-shell-manifest:hover {
  color: #4a7a5c;
  background: rgba(74, 122, 92, .11);
  border-color: rgba(74, 122, 92, .45);
}

.mayak-shell-star {
  flex: none;
  font-size: 12px;
  line-height: 1;
}

.mayak-return-row {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 22px 36px 0;
}

.mayak-return-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #202a38;
  background: rgba(251, 249, 245, .88);
  border: 1px solid rgba(74, 122, 92, .34);
  border-radius: 50%;
  text-decoration: none;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.mayak-return-button:hover {
  color: #4a7a5c;
  background: #fff;
  border-color: rgba(74, 122, 92, .62);
  transform: translateX(-2px);
}

.mayak-return-button:focus-visible {
  outline: 3px solid rgba(74, 122, 92, .22);
  outline-offset: 3px;
}

.mayak-return-button svg {
  width: 20px;
  height: 20px;
  display: block;
  overflow: visible;
}

.mayak-context-nav {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 36px 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.mayak-context-nav a {
  color: #66717e;
  font: 500 13px/1.35 'Inter', Arial, sans-serif;
  text-decoration: none;
}

.mayak-context-nav a:hover {
  color: #4a7a5c;
}

@media (max-width: 520px) {
  .mayak-shell-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .mayak-shell-logo small {
    display: none;
  }

  .mayak-shell-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .mayak-shell-nav .mayak-shell-manifest {
    padding: 9px 14px;
    font-size: 14.5px;
  }

  .mayak-return-row {
    padding-top: 16px;
  }

  .mayak-return-button {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .mayak-shell-inner,
  .mayak-return-row,
  .mayak-context-nav {
    padding-left: 18px;
    padding-right: 18px;
  }
}
