.bokov-burger-module {
  --bokov-menu-accent: #ff4a1c;
  --bokov-menu-ink: #090909;
  --bokov-menu-radius: 8px;
  --bokov-menu-font: "Manrope", system-ui, sans-serif;
  color: var(--bokov-menu-ink);
  font-family: var(--bokov-menu-font);
}

.bokov-burger-module,
.bokov-burger-module * {
  box-sizing: border-box;
}

.bokov-burger-module [hidden] {
  display: none !important;
}

body.bokov-menu-open {
  overflow: hidden;
}

.bokov-burger-module button,
.bokov-burger-module a {
  -webkit-tap-highlight-color: transparent;
}

.bokov-burger-module button {
  font: inherit;
}

.site-top {
  padding-right: calc(66px + env(safe-area-inset-right));
}

.bokov-menu-toggle {
  position: fixed;
  top: max(6px, calc(env(safe-area-inset-top) + 6px));
  right: max(12px, calc((100vw - 720px) / 2 + 16px));
  z-index: 70;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(9, 9, 9, 0.12);
  border-radius: var(--bokov-menu-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(239, 237, 231, 0.72)),
    rgba(248, 246, 240, 0.82);
  box-shadow:
    0 14px 32px rgba(9, 9, 9, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.bokov-menu-toggle span {
  position: absolute;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.78);
  transition:
    background 220ms ease,
    transform 280ms cubic-bezier(0.2, 0.72, 0.18, 1),
    width 220ms ease;
}

.bokov-menu-toggle span:first-child {
  transform: translateY(-4px);
}

.bokov-menu-toggle span:last-child {
  width: 12px;
  transform: translate(2.5px, 4px);
}

body.bokov-menu-open .bokov-menu-toggle {
  border-color: rgba(255, 74, 28, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 246, 240, 0.84)),
    rgba(255, 255, 255, 0.76);
}

body.bokov-menu-open .bokov-menu-toggle span {
  width: 17px;
  background: var(--bokov-menu-accent);
}

body.bokov-menu-open .bokov-menu-toggle span:first-child {
  transform: rotate(45deg);
}

body.bokov-menu-open .bokov-menu-toggle span:last-child {
  transform: rotate(-45deg);
}

.bokov-site-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.bokov-site-menu-scrim {
  position: absolute;
  inset: 0;
  border: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.04), rgba(9, 9, 9, 0.1) 44%, rgba(9, 9, 9, 0.22));
  padding: 0;
  opacity: 0;
  backdrop-filter: blur(0);
  cursor: pointer;
  transition:
    opacity 280ms ease,
    backdrop-filter 280ms ease;
}

.bokov-rotor-menu {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform: translateX(104%);
  transition: transform 520ms cubic-bezier(0.2, 0.72, 0.18, 1);
  will-change: transform;
}

.bokov-rotor-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  overflow: visible;
  color: #fffaf0;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: contain;
  touch-action: none;
}

.bokov-rotor-stage::before {
  position: absolute;
  top: 50%;
  right: -386px;
  width: 590px;
  height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    radial-gradient(circle at 25% 50%, rgba(255, 74, 28, 0.14), transparent 26%),
    linear-gradient(90deg, rgba(27, 27, 27, 0.5), rgba(12, 12, 12, 0.9) 46%, rgba(9, 9, 9, 0.98)),
    rgba(9, 9, 9, 0.88);
  box-shadow:
    -24px 0 62px rgba(9, 9, 9, 0.28),
    inset 1px 0 0 rgba(255, 255, 255, 0.08),
    inset 0 0 54px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(18px) saturate(0.86);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
}

.bokov-rotor-ring {
  position: absolute;
  top: 50%;
  right: -386px;
  width: 590px;
  height: 590px;
  border: 1px solid rgba(255, 250, 240, 0.14);
  border-radius: 50%;
  opacity: 0.82;
  pointer-events: none;
  transform: translateY(-50%) rotate(var(--rotor-angle, 0deg));
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.18, 1);
}

.bokov-rotor-stage.is-dragging .bokov-rotor-ring {
  transition-duration: 120ms;
}

.bokov-rotor-ring::after {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: repeating-conic-gradient(
    from -20deg,
    rgba(255, 250, 240, 0.18) 0deg,
    rgba(255, 250, 240, 0.18) 0.45deg,
    transparent 0.45deg,
    transparent 9deg
  );
  content: "";
  mask: radial-gradient(circle, transparent 61%, #000 61.5%, #000 62.5%, transparent 63%);
}

.bokov-rotor-ring-two {
  right: -328px;
  width: 470px;
  height: 470px;
  opacity: 0.56;
}

.bokov-rotor-focus {
  position: absolute;
  top: 50%;
  right: 24px;
  z-index: 4;
  width: clamp(28px, 9vw, 38px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 74, 28, 0.06), rgba(255, 74, 28, 0.92));
  box-shadow: 0 0 24px rgba(255, 74, 28, 0.24);
  pointer-events: none;
}

.bokov-rotor-focus::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bokov-menu-accent);
  box-shadow: 0 0 22px rgba(255, 74, 28, 0.5);
  content: "";
  transform: translate(50%, -50%);
}

.bokov-rotor-list {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.bokov-rotor-item {
  position: absolute;
  top: 50%;
  right: 18px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(280px, calc(100vw - 48px));
  min-height: 54px;
  border: 0;
  border-radius: var(--bokov-menu-radius);
  color: rgba(255, 250, 240, 0.54);
  padding: 0 50px 0 26px;
  opacity: var(--item-opacity, 0);
  outline: none;
  isolation: isolate;
  pointer-events: none;
  text-decoration: none;
  transform:
    translate3d(var(--item-x, 0), calc(-50% + var(--item-y, 0px)), 0)
    scale(var(--item-scale, 1));
  transition:
    color 240ms ease,
    opacity 240ms ease,
    transform 420ms cubic-bezier(0.2, 0.72, 0.18, 1);
  will-change: transform, opacity;
}

.bokov-rotor-stage.is-dragging .bokov-rotor-item {
  transition:
    color 180ms ease,
    opacity 150ms ease,
    transform 120ms cubic-bezier(0.22, 0.76, 0.18, 1);
}

.bokov-rotor-item::before {
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  border: 1px solid rgba(255, 74, 28, 0);
  border-radius: var(--bokov-menu-radius);
  background:
    linear-gradient(90deg, rgba(255, 74, 28, 0), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0);
  box-shadow: none;
  content: "";
  opacity: 0;
  transform: scaleX(0.9);
  transform-origin: right center;
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.2, 0.72, 0.18, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.bokov-rotor-number {
  color: rgba(255, 74, 28, 0.62);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
}

.bokov-rotor-label {
  overflow: visible;
  color: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    font-size 280ms cubic-bezier(0.2, 0.72, 0.18, 1),
    text-shadow 220ms ease;
}

.bokov-rotor-item.is-focus,
.bokov-rotor-item.is-preview {
  color: #fffaf0;
}

.bokov-rotor-item.is-active {
  pointer-events: auto;
}

.bokov-rotor-stage.is-dragging .bokov-rotor-item {
  pointer-events: none;
}

.bokov-rotor-item.is-focus::before,
.bokov-rotor-item.is-preview::before,
.bokov-rotor-item:focus-visible::before {
  border-color: rgba(255, 74, 28, 0.3);
  background:
    linear-gradient(90deg, rgba(255, 74, 28, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  opacity: 1;
  transform: scaleX(1);
}

.bokov-rotor-item.is-focus .bokov-rotor-label,
.bokov-rotor-item.is-preview .bokov-rotor-label,
.bokov-rotor-item:focus-visible .bokov-rotor-label {
  font-size: clamp(15px, 4.6vw, 17px);
}

.bokov-rotor-item.is-focus .bokov-rotor-number {
  color: var(--bokov-menu-accent);
}

.bokov-site-menu.is-open {
  pointer-events: auto;
}

.bokov-site-menu.is-open .bokov-site-menu-scrim {
  opacity: 1;
  backdrop-filter: blur(5px);
}

.bokov-site-menu.is-open .bokov-rotor-menu {
  transform: translateX(0);
}

@media (max-width: 430px) {
  .site-top {
    padding-right: calc(58px + env(safe-area-inset-right));
  }

  .bokov-menu-toggle {
    right: max(12px, env(safe-area-inset-right));
  }
}

@media (min-width: 900px) {
  .bokov-menu-toggle {
    right: calc((100vw - 640px) / 2 + 16px);
  }
}
