:root {
  color-scheme: dark;
  --green: #78be20;
  --black: #000;
  --ink: #1d1d1e;
  --white: #f7f7f2;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  font-family: "Courier New", monospace;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.landing {
  position: relative;
  width: min(100%, 430px);
  margin: 0 auto;
  background: var(--ink);
  animation: page-enter 420ms ease-out both;
}

.design {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11377.08 / 31908.74;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  position: absolute;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 110ms ease-out;
}

.hotspot--menu {
  top: 30.417%;
  left: 4.426%;
  width: 91.163%;
  height: 13.267%;
}

.hotspot--loyalty {
  top: 44.679%;
  left: 4.426%;
  width: 91.163%;
  height: 9.950%;
}

.hotspot--2gis {
  top: 55.624%;
  left: 4.426%;
  width: 44.186%;
  height: 15.423%;
}

.hotspot--yandex {
  top: 55.624%;
  left: 51.403%;
  width: 44.186%;
  height: 15.423%;
}

.hotspot--tips {
  top: 72.042%;
  left: 4.426%;
  width: 91.163%;
  height: 9.950%;
}

.hotspot--telegram {
  top: 82.987%;
  left: 4.426%;
  width: 44.186%;
  height: 15.423%;
}

.hotspot--survey {
  top: 82.987%;
  left: 51.403%;
  width: 44.186%;
  height: 15.423%;
}

.hotspot:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

.hotspot:not([aria-disabled="true"]):active {
  background: rgba(120, 190, 32, 0.1);
}

.tips-dialog__close:focus-visible,
.tips-dialog__tables button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.tips-dialog {
  width: min(calc(100% - 32px), 398px);
  max-width: none;
  margin: auto;
  padding: 18px;
  border: 5px solid var(--green);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
}

.tips-dialog::backdrop {
  background: rgba(0, 0, 0, 0.88);
}

.tips-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tips-dialog__eyebrow {
  color: var(--green);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.tips-dialog h2 {
  margin: 5px 0 18px;
  color: var(--green);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.tips-dialog__close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0 0 4px;
  border: 1px solid #555;
  border-radius: 0;
  background: #171717;
  color: var(--white);
  font: 300 34px/1 "Courier New", monospace;
}

.tips-dialog__tables {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.tips-dialog__tables button {
  aspect-ratio: 1;
  border: 2px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font: 700 19px/1 "Courier New", monospace;
  cursor: pointer;
  touch-action: manipulation;
}

.tips-dialog__tables button:active {
  background: var(--green);
  color: var(--black);
}

.tips-dialog__note {
  margin: 16px 0 0;
  color: #b8b8b8;
  font-size: 11px;
  line-height: 1.45;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.menu-dialog {
  width: min(100%, 760px);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: #080808;
  color: var(--white);
  overscroll-behavior: contain;
}

.menu-dialog[open] {
  animation: menu-enter 180ms ease-out both;
}

.menu-dialog::backdrop {
  background: rgba(0, 0, 0, 0.94);
}

.menu-toolbar {
  position: sticky;
  z-index: 5;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: calc(68px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0;
  border-bottom: 3px solid var(--green);
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
}

.menu-toolbar h2 {
  margin: 0;
  color: var(--green);
  font-size: 29px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.menu-toolbar__actions {
  display: flex;
  gap: 8px;
}

.menu-pdf-link,
.menu-close {
  display: inline-flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #444;
  border-radius: 0;
  background: #171717;
  color: var(--white);
  font: 700 14px/1 "Courier New", monospace;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 100ms ease-out,
    background-color 100ms ease-out,
    color 100ms ease-out;
}

.menu-pdf-link:active,
.menu-close:active {
  transform: scale(0.96);
  background: var(--green);
  color: var(--black);
}

.menu-close {
  padding: 0 0 4px;
  font-size: 36px;
  font-weight: 300;
}

.menu-pages {
  display: grid;
  gap: 12px;
  padding: 12px 0 max(24px, env(safe-area-inset-bottom));
}

.menu-pages img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.noscript-menu {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: var(--green);
  text-align: center;
}

.noscript-menu a {
  color: var(--black);
  font-weight: 800;
}

@keyframes menu-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing,
  .menu-dialog[open] {
    animation: none;
  }

  .hotspot,
  .menu-pdf-link,
  .menu-close {
    transition: none;
  }
}
