/* Global site UI. Outside the 1920×1080 stage. Does not scale with the deck. */
.site-ui-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  font-family: "Liberation Sans", "Nimbus Sans", sans-serif;
}
.site-ui-layer .site-burger,
.site-ui-layer .ozon-link {
  pointer-events: auto;
  font: inherit;
  color: inherit;
}
.site-burger {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(18, 21, 26, 0.82);
  color: #f3efe6;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.site-burger:hover,
.site-ui-layer.is-open .site-burger { background: rgba(18, 21, 26, 0.96); }
.site-burger:focus-visible,
#lab a:focus-visible,
.ozon-link:focus-visible {
  outline: 2px solid #f3efe6;
  outline-offset: 3px;
}
.site-bars { display: flex; flex-direction: column; gap: 5px; width: 16px; }
.site-bars i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
}
html.motion .site-bars i { transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), opacity 160ms linear; }
.site-ui-layer.is-open .site-bars i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.site-ui-layer.is-open .site-bars i:nth-child(2) { opacity: 0; }
.site-ui-layer.is-open .site-bars i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

#lab {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(8, 9, 11, 0);
  opacity: 0;
  pointer-events: none;
}
html.motion #lab { transition: background 280ms ease, opacity 220ms ease; }
.site-ui-layer.is-open #lab {
  background: rgba(8, 9, 11, 0.46);
  opacity: 1;
  pointer-events: auto;
}
.site-panel {
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: #14161a;
  color: #f4efe6;
  padding: 96px 48px 48px;
  transform: translateX(100%);
}
#lab a { pointer-events: none; }
.site-ui-layer.is-open #lab,
.site-ui-layer.is-open #lab a { pointer-events: auto; }
html.motion .site-panel { transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.site-ui-layer.is-open .site-panel { transform: none; }
.site-kicker {
  margin: 0 0 28px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7b1a6;
}
.site-panel a {
  display: block;
  padding: 12px 0;
  border-top: 1px solid rgba(244, 239, 230, 0.12);
  color: #f4efe6;
  text-decoration: none;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.site-panel a:last-child { border-bottom: 1px solid rgba(244, 239, 230, 0.12); }
.site-panel a[aria-current="page"] { color: #d7b07a; }
.site-panel a:hover { color: #ffffff; }

.ozon-link {
  position: absolute;
  left: 20px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(18, 21, 26, 0.82);
  color: #f3efe6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  text-decoration: none;
}
.ozon-link:hover { background: rgba(18, 21, 26, 0.96); }

@media (prefers-reduced-motion: reduce) {
  html.motion .site-bars i,
  html.motion #lab,
  html.motion .site-panel { transition: none; }
  .site-panel { transform: none; }
}

/* Catalogue only: same paper, ink and hairline as the page. */
body[data-variant="lab"] main .ozon-link {
  position: static;
  display: inline-block;
  margin-top: 56px;
}
body[data-variant="lab"] .site-burger,
body[data-variant="lab"] .ozon-link {
  background: #fbfaf6;
  color: #1c1915;
  border-color: rgba(28, 25, 21, 0.16);
}
body[data-variant="lab"] .site-burger:hover,
body[data-variant="lab"] .site-ui-layer.is-open .site-burger,
body[data-variant="lab"] .ozon-link:hover {
  background: #efece4;
}
body[data-variant="lab"] .site-burger:focus-visible,
body[data-variant="lab"] .ozon-link:focus-visible {
  outline-color: #1c1915;
}
