:root {
  --bg: #F3EFE7;
  --card: #E8E0D0;
  --primary: #1E4A6E;
  --gold: #C9A227;
  --text: #221F1B;
  --text-muted: #8A8477;
  --border: rgba(30, 74, 110, 0.18);
  --max-w: 560px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0 auto;
  max-width: var(--max-w);
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-w);
  height: 100%;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(243,239,231,0.12), rgba(243,239,231,0.3) 45%, rgba(243,239,231,0.5) 100%),
    url("images/bg-aura.jpg");
  background-size: cover;
  background-position: center top;
}

.top {
  position: relative;
  z-index: 10;
  padding: 26px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.top-panel {
  background: rgba(243, 239, 231, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 22px;
  padding: 22px 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 34px rgba(10, 14, 20, 0.22);
}

.logo {
  max-width: 220px;
  height: auto;
}

.lang-tabs {
  display: flex;
  gap: 6px;
  background: var(--card);
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--border);
  max-width: calc(100vw - 64px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lang-tabs::-webkit-scrollbar {
  display: none;
}

.lang-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--sans);
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-tab .flag {
  font-size: 17px;
  line-height: 1;
}

.lang-tab .code {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

.pages {
  padding: 18px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-page {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(10, 14, 20, 0.18);
  cursor: zoom-in;
  display: block;
}

.foot {
  text-align: center;
  margin: 0 14px 20px;
  padding: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(243, 239, 231, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 15, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 100;
  padding: 20px;
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}
.lightbox-counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 101;
  display: none;
}

.swipe-hint {
  position: absolute;
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.swipe-hint.visible {
  opacity: 1;
  pointer-events: auto;
  animation: swipe-hint-bounce 1.3s ease-in-out infinite;
}
@keyframes swipe-hint-bounce {
  0%, 100% { transform: translateX(-50%); }
  50% { transform: translateX(-38%); }
}
