:root {
  --public-brand-red: #ff1212;
  --public-bg: #ece9eb;
  --public-text: #141414;
  --public-serif: "Didot", "Bodoni MT", "Bodoni 72", "Times New Roman", serif;
}

.site-menu-shell {
  position: fixed;
  top: 16px;
  left: 14px;
  right: 14px;
  z-index: 1200;
  pointer-events: none;
}

.site-menu-toggle {
  position: absolute;
  top: -2px;
  right: 0;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--public-brand-red);
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  pointer-events: auto;
  z-index: 2;
}

.site-menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: #ffffff;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.site-menu-shell.is-open .site-menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-menu-shell.is-open .site-menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-menu-shell.is-open .site-menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-menu-panel {
  position: absolute;
  top: -2px;
  right: 0;
  width: 52px;
  height: 52px;
  padding: 62px 10px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--public-brand-red);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.14);
  opacity: 1;
  transform: scale(1);
  transform-origin: top right;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  transition: width 0.26s ease, height 0.26s ease, border-radius 0.26s ease;
}

.site-menu-shell.is-open .site-menu-panel {
  width: min(390px, calc(100vw - 128px));
  height: min(336px, calc(100vh - 110px));
  padding: 42px 32px 32px;
  border-radius: 38px;
  pointer-events: auto;
}

.site-menu-shell.is-open .site-menu-panel::after {
  content: "";
  position: absolute;
  left: 72px;
  bottom: -46px;
  width: 44px;
  height: 48px;
  border-radius: 0 0 18px 18px;
  background: var(--public-brand-red);
}

.site-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu-link {
  display: block;
  padding: 0;
  margin: 8px 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.94);
  text-decoration: none;
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 500;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.site-menu-shell.is-open .site-menu-link {
  opacity: 1;
  transform: translateY(0);
}

.site-menu-link:hover,
.site-menu-link:focus-visible,
.site-menu-link.is-active {
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 8px;
  outline: none;
}

.site-menu-shell.is-open .site-menu-toggle {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  background: transparent;
  box-shadow: none;
}

.site-menu-shell.is-open .site-menu-toggle span {
  width: 32px;
  height: 2px;
  margin: 6px auto;
}

@media (max-width: 1024px) {
  .site-menu-shell.is-open .site-menu-panel {
    width: min(360px, calc(100vw - 32px));
    height: min(320px, calc(100vh - 32px));
    padding: 40px 26px 28px;
    border-radius: 32px;
  }

  .site-menu-shell.is-open .site-menu-panel::after {
    left: 52px;
    bottom: -40px;
    width: 38px;
    height: 40px;
  }
}

@media (max-width: 760px) {
  .site-menu-shell.is-open .site-menu-panel {
    width: calc(100vw - 20px);
    height: min(300px, calc(100vh - 24px));
    padding: 36px 24px 20px;
    border-radius: 28px;
  }

  .site-menu-shell.is-open .site-menu-panel::after {
    left: 40px;
    bottom: -32px;
    width: 32px;
    height: 34px;
    border-radius: 0 0 14px 14px;
  }

  .site-menu-link {
    font-size: clamp(18px, 7.2vw, 28px);
    margin: 6px 0;
  }
}
