.page-switcher {
  position: fixed;
  top: 50%;
  left: 20px;
  z-index: 1100;
  width: 168px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(240, 238, 234, 0.72));
  box-shadow:
    0 20px 48px rgba(15, 18, 24, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transform: translateY(-50%);
  color: rgba(18, 20, 24, 0.82);
  font-family: "Space Grotesk", "Futura", "Avenir Next", "Noto Sans SC", sans-serif;
}

.page-switcher,
.page-switcher * {
  cursor: auto;
}

.page-switcher__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 2px 6px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(18, 20, 24, 0.09);
}

.page-switcher__mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #17191d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.page-switcher__title {
  overflow: hidden;
  color: rgba(18, 20, 24, 0.72);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.45px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-switcher__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-switcher__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(18, 20, 24, 0.62);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.2px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.page-switcher__link:hover {
  border-color: rgba(18, 20, 24, 0.08);
  background: rgba(255, 255, 255, 0.65);
  color: rgba(18, 20, 24, 0.9);
  transform: translateX(2px);
}

.page-switcher__link:focus-visible {
  outline: 2px solid rgba(255, 138, 44, 0.85);
  outline-offset: 2px;
}

.page-switcher__link[aria-current="page"] {
  border-color: rgba(18, 20, 24, 0.08);
  background: rgba(20, 22, 26, 0.9);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 18, 24, 0.18);
}

.page-switcher__icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: rgba(18, 20, 24, 0.07);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.15px;
}

.page-switcher__link[aria-current="page"] .page-switcher__icon {
  background: rgba(255, 255, 255, 0.15);
}

@media (max-width: 780px) {
  .page-switcher {
    top: auto;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    padding: 8px;
    border-radius: 18px;
    transform: none;
  }

  .page-switcher__brand {
    display: none;
  }

  .page-switcher__links {
    flex-direction: row;
    gap: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .page-switcher__links::-webkit-scrollbar {
    display: none;
  }

  .page-switcher__link {
    min-width: 42px;
    min-height: 42px;
    padding: 5px 9px;
    justify-content: center;
  }

  .page-switcher__link:hover {
    transform: translateY(-1px);
  }

  .page-switcher__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-switcher__link {
    transition: none;
  }
}
