@font-face {
  font-family: "Akony";
  src: url("../fonts/AKONY.woff2") format("woff2");
}

@font-face {
  font-family: "Helvetica";
  src: url("../fonts/helvetica_regular.otf");
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  height: 100dvh;
  width: 100dvw;
  overflow: hidden;
  font-family: Akony, sans-serif;
}

#viewport {
  position: relative;

  height: 100dvh;
  width: 100dvw;

  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  will-change: transform;

  touch-action: none;
}

.screen {
  position: absolute;

  width: 100dvw;
  height: 100dvh;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 12px;
}

.home {
  left: 100dvw;
  top: 100dvh;

  touch-action: pan-x pan-y;
  user-select: none;
}

.about {
  left: 100dvw;
  top: 0;
}

.menu {
  left: 200dvw;
  top: 100dvh;
}

.booking {
  left: 0;
  top: 100dvh;
}

.gallery {
  left: 100dvw;
  top: 200dvh;
}

.home-content {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.home-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 88vw;
  text-align: center;
  /* Колонка «лого + подсказка» визуально выше геометрического центра — опускаем, чтобы лого было по центру экрана */
  transform: translateY(clamp(18px, 5.5dvh, 52px));
}

.home-swipe-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;

  max-width: 20em;
  padding: 0 0.75rem;
}

.home-swipe-hint-text {
  margin: 0;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);

  display: inline-block;
  animation: homeSwipeHintTextMove 4.8s ease-in-out infinite;
}

@keyframes homeSwipeHintTextMove {
  0% {
    transform: translate3d(-3px, 0, 0);
  }
  22% {
    transform: translate3d(3px, 0, 0);
  }
  24% {
    transform: translate3d(3px, 0, 0);
  }
  25% {
    transform: translate3d(3px, 0, 0);
  }
  47% {
    transform: translate3d(-3px, 0, 0);
  }
  49% {
    transform: translate3d(-3px, 0, 0);
  }
  50% {
    transform: translate3d(0, 3px, 0);
  }
  72% {
    transform: translate3d(0, -3px, 0);
  }
  74% {
    transform: translate3d(0, -3px, 0);
  }
  75% {
    transform: translate3d(0, -3px, 0);
  }
  97% {
    transform: translate3d(0, 3px, 0);
  }
  100% {
    transform: translate3d(0, 3px, 0);
  }
}

/* Жест свайпа: слева→направо, справа→налево, снизу→вверх, сверху→вниз */

.home-swipe-hint-motion {
  position: relative;

  width: clamp(2.75rem, 12vw, 3.25rem);
  height: clamp(2.75rem, 12vw, 3.25rem);

  flex-shrink: 0;
}

.home-swipe-hint-track {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;

  background: rgba(255, 255, 255, 0.03);
}

.home-swipe-hint-marker {
  position: absolute;
  left: 50%;
  top: 50%;

  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35);

  animation: homeSwipeHintDirections 4.8s ease-in-out infinite;
}

@keyframes homeSwipeHintDirections {
  /* слева направо */
  0% {
    transform: translate3d(-10px, 0, 0);
    opacity: 0.55;
  }
  5% {
    opacity: 1;
  }
  22% {
    transform: translate3d(10px, 0, 0);
    opacity: 1;
  }
  24% {
    transform: translate3d(10px, 0, 0);
    opacity: 0.55;
  }

  /* справа налево */
  25% {
    transform: translate3d(10px, 0, 0);
    opacity: 0.55;
  }
  30% {
    opacity: 1;
  }
  47% {
    transform: translate3d(-10px, 0, 0);
    opacity: 1;
  }
  49% {
    transform: translate3d(-10px, 0, 0);
    opacity: 0.55;
  }

  /* снизу вверх */
  50% {
    transform: translate3d(0, 10px, 0);
    opacity: 0.55;
  }
  55% {
    opacity: 1;
  }
  72% {
    transform: translate3d(0, -10px, 0);
    opacity: 1;
  }
  74% {
    transform: translate3d(0, -10px, 0);
    opacity: 0.55;
  }

  /* сверху вниз */
  75% {
    transform: translate3d(0, -10px, 0);
    opacity: 0.55;
  }
  80% {
    opacity: 1;
  }
  97% {
    transform: translate3d(0, 10px, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 10px, 0);
    opacity: 0.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-swipe-hint-text {
    animation: none;
    transform: none;
  }

  .home-swipe-hint-marker {
    animation: none;
    transform: translate3d(0, 0, 0);
    opacity: 0.85;
  }

  .booking-home-btn .booking-home-icon,
  .about-home-btn .about-home-icon,
  .menu-nav-home .menu-nav-home-icon,
  .gallery-nav-up .gallery-nav-up-icon {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .nav-hints .hint {
    animation: none;
    opacity: 1;
    text-shadow: none;
  }

  .menu-add,
  .menu-cat,
  .gallery-thumb {
    animation: none !important;
  }

  .gallery-thumb:active {
    transform: none;
  }
}

.nav-hints {
  position: absolute;
  inset: 0;

  pointer-events: none;
}

.hint {
  position: absolute;

  color: white;

  font-size: 1.45em;

  user-select: none;

  margin: 0;
  padding: 0.35em 0.5em;

  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  font-family: inherit;
  text-transform: inherit;
}

.hint:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.hint-left {
  left: 6vw;
  top: 50%;

  transform: translateY(-50%) rotate(180deg);

  writing-mode: vertical-rl;
}

.hint-right {
  right: 6vw;
  top: 50%;

  transform: translateY(-50%);

  writing-mode: vertical-rl;
}

.hint-top {
  top: 6dvh;
  left: 50%;

  transform: translateX(-50%);
}

.hint-bottom {
  bottom: 6dvh;
  left: 50%;

  transform: translateX(-50%);
}

/* Подсказка «можно нажать»: иконки навигации (бронь, о нас, меню, галерея) */
@keyframes mirai-invite-tap-icon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.booking-home-btn .booking-home-icon,
.about-home-btn .about-home-icon,
.menu-nav-home .menu-nav-home-icon,
.gallery-nav-up .gallery-nav-up-icon {
  transform-origin: center;
  animation: mirai-invite-tap-icon 2.35s ease-in-out infinite;
}

.booking-home-btn:hover .booking-home-icon,
.booking-home-btn:focus-visible .booking-home-icon,
.about-home-btn:hover .about-home-icon,
.about-home-btn:focus-visible .about-home-icon,
.menu-nav-home:hover .menu-nav-home-icon,
.menu-nav-home:focus-visible .menu-nav-home-icon,
.gallery-nav-up:hover .gallery-nav-up-icon,
.gallery-nav-up:focus-visible .gallery-nav-up-icon {
  animation-play-state: paused;
  opacity: 1;
  transform: scale(1.06);
}

.booking-home-btn:active .booking-home-icon,
.about-home-btn:active .about-home-icon,
.menu-nav-home:active .menu-nav-home-icon,
.gallery-nav-up:active .gallery-nav-up-icon {
  animation: none;
  opacity: 1;
  transform: scale(0.88);
}

/* Главная: подписи разделов по краям */
@keyframes mirai-invite-hint-label {
  0%, 100% {
    opacity: 0.72;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.22);
  }
}

.nav-hints .hint {
  pointer-events: auto;
  animation: mirai-invite-hint-label 2.85s ease-in-out infinite;
}

.nav-hints .hint:hover,
.nav-hints .hint:focus-visible {
  animation-play-state: paused;
  opacity: 1;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.28);
}

.nav-hints .hint:active {
  animation: none;
  opacity: 1;
}

/* Общее мягкое свечение для кнопок-CTA (см. menu.css) */
@keyframes mirai-invite-cta {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.08);
  }
}

/* LOGO */

.logo {
  max-width: 50vw;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;

  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0);
  }
}

.gallery {
  display: flex;
  flex-direction: column;

  width: 100dvw;
  height: 100dvh;

  overflow: hidden;
}

/* VPN / прокси: мягкое модальное предупреждение (см. assets/js/vpn-hint.js) */
.vpn-hint {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  pointer-events: auto;
}

.vpn-hint-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.vpn-hint-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 360px;
  padding: 24px 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 18, 20, 0.94);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.vpn-hint-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255, 180, 100, 0.95);
  background: rgba(255, 160, 80, 0.12);
  border: 1px solid rgba(255, 180, 100, 0.28);
}

.vpn-hint-title {
  margin: 0 0 12px;
  font-family: Akony, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.25;
}

.vpn-hint-text {
  margin: 0 0 20px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.vpn-hint-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vpn-hint-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.vpn-hint-btn:active {
  transform: scale(0.985);
}

.vpn-hint-btn-primary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
}

.vpn-hint-btn-primary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.vpn-hint-btn-quiet {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 12px;
}

.vpn-hint-btn-quiet:hover {
  color: rgba(255, 255, 255, 0.75);
  border-color: rgba(255, 255, 255, 0.16);
}