/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.6);
  --dark: #000000;
  --dark-card: #111111;
  --font-main: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html {
  height: 100%;
  background: var(--dark);
  color: #fff;
  font-family: var(--font-main);
}

body {
  min-height: 100%;
  background: var(--dark);
  overflow: hidden;
}

a { text-decoration: none; color: inherit; }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}
#preloader.fade-out { opacity: 0; pointer-events: none; }

.preloader-logo {
  font-family: var(--font-main);
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  color: #fff;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInLogo 0.8s ease 0.2s forwards;
}
.preloader-logo img { height: 100px; width: auto; }
@keyframes fadeInLogo { to { opacity: 1; } }

.preloader-bar-wrap {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  border-radius: 1px;
  overflow: hidden;
}
.preloader-bar {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 1px;
  transition: width 0.4s ease;
}

/* ===== PAGE WRAPPER ===== */
#page-wrapper {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

/* ===== BACKGROUND (desktop) ===== */
#bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease;
}
.darker{
    position: absolute;
    background: rgba(0,0,0,0.3);
    width:100%;
    height: 100%;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.2rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: auto;
}

.header-logo {
  font-family: var(--font-main);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: #fff;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  white-space: nowrap;
}
.header-logo img { height: 36px; width: auto; }
.header-logo.visible {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}

/* ===== NAV ===== */
nav {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}

.nav-item {
  position: relative;
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: color 0.3s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-item:hover { color: #fff; }
.nav-item.active { color: #fff; }

.nav-link { text-decoration: none; }

/* Разделитель в навигации */
.nav-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.25);
  margin: 0 0.6rem;
}

/* Dropdown "Рестораны" */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.nav-dropdown-label::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1px solid rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.7);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  background: rgba(10,10,10,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius:0.5rem;
  padding: 0.4rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 150;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1rem;
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.nav-underline {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #fff;
  width: 0;
  transition: left 0.35s cubic-bezier(.4,0,.2,1), width 0.35s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

/* ===== PAGE CONTENT ===== */
.page {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.page.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* ===== PAGE HERO IMAGE ===== */
.page-hero { display: none; }

/* ===== HOME PAGE ===== */
#page-home {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-center {
  text-align: center;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-center-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-center-bg {
  background: rgba(0,0,0,0.5);
  padding: 2.5rem 3rem;
  border-radius: 4px;
}
.home-logo {
  font-family: var(--font-main);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  letter-spacing: 0.15em;
  color: #fff;
  margin-bottom: 0.5rem;
}
.home-logo img { width: 260px; max-width: 80vw; height: auto; }
.home-subtitle {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,1);
  margin-bottom: 0.4rem;
}
.home-address {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,1);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.home-phone {
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}
.home-phone a {
  color: #fff;
  transition: opacity 0.2s, border-color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
}
.home-phone a:hover {
  border-color: #fff;
}
.btn-book {
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  padding: 0.75rem 2.2rem;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  border-radius: 0.5rem;
}
.btn-book:hover {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.home-mobile-nav { display: none; }

/* ===== ABOUT PAGE ===== */
#page-about {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-content {
  max-width: 620px;
  margin: 0 auto;
  padding: 6rem 2.2rem 3rem;
  text-align: center;
}
.about-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.8rem;
}
.about-content p {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,1);
  margin-bottom: 1.2rem;
  text-align: left;
}
.about-text-block {
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ===== MENU PAGE ===== */
#page-menu {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.menu-content {
  width: 100%;
  max-width: 1100px;
  text-align: center;
  padding: 6rem 2rem 3rem;
  margin: 0 auto;
}
.menu-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.6rem;
}
.menu-text-block {
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.8rem;
}
.menu-tab {
  font-family: var(--font-main);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0.65rem 1.1rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.menu-tab:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.menu-tab.active {
  background: #fff;
  color: var(--dark);
  border-color: #fff;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.menu-card {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.menu-card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-3px);
}
.menu-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}
.menu-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.5s;
}
.menu-card:hover .menu-card-img img {
  opacity: 1;
  transform: scale(1.04);
}
.menu-card-body {
  padding: 0.8rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.menu-card-title {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.3;
}
.menu-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
}
.menu-card-weight {
  font-family: var(--font-main);
  font-size: 0.7rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
}
.menu-card-price {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
}
.menu-empty {
  font-family: var(--font-main);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  padding: 1.5rem 0;
}

/* ===== INTERIOR PAGE ===== */
#page-interior {
  overflow: hidden;
  touch-action: pan-x;
}
.interior-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.7s ease;
  z-index: 0;
}
.interior-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.7);
  border: none;
  color: #fff;
  border-radius: 100px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  font-size: 1.2rem;
  user-select: none;
}
.interior-arrow:hover { background: rgba(0,0,0,0.9); }
.interior-arrow.left { left: 1.2rem; }
.interior-arrow.right { right: 1.2rem; }

.interior-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.4rem;
}
.interior-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: background 0.3s;
}
.interior-dot.active { background: #fff; }

.interior-text-wrap {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 6rem 5rem 3rem;
  pointer-events: none;
}
.interior-text-block {
  max-width: 420px;
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: auto;
}
.interior-text-block h1 {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.2rem;
}
.interior-text-block p {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.95);
  margin-bottom: 0.8rem;
}
.interior-text-block p:last-child { margin-bottom: 0; }

/* ===== EVENTS PAGE ===== */
#page-events {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.events-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 2.2rem 4rem;
}
.events-text-block {
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.events-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}
.events-content h1:first-child { margin-top: 0; }
.events-text-block > h1:first-child { margin-top: 0; }
.events-content h2 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255,255,255,1);
  margin: 1.5rem 0 0.6rem;
  letter-spacing: 0.04em;
}
.events-content p {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,1);
  margin-bottom: 0.5rem;
}
.events-content ul {
  list-style: none;
  padding-left: 0.4rem;
  margin-bottom: 0.8rem;
}
.events-content ul li {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,1);
  padding-left: 0.7rem;
  position: relative;
}
.events-content ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.8);
  font-size: 1.2rem;
  line-height: 1.5;
}
.events-photos {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}
.events-photo {
  width: calc(33.33% - 0.54rem);
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 2px;
}
.events-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.3s, transform 0.3s;
  display: block;
}
.events-photo-clickable {
  cursor: pointer;
  position: relative;
}
.events-photo-clickable::after {
  content: '⤢';
  position: absolute;
  bottom: 0.4rem;
  right: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.events-photo-clickable:hover::after { opacity: 1; }
.events-photo-clickable:hover img { transform: scale(1.03); }
.events-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2rem 0;
}

/* ===== AFISHA PAGE ===== */
#page-afisha {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.afisha-content {
  padding: 6rem 2.2rem 4rem;
}
.afisha-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.8rem;
  text-align: center;
}
.afisha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.afisha-card {
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}
.afisha-card:hover {
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-3px);
}
.afisha-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.afisha-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  opacity: 1;
  transition: opacity 0.3s;
}
.afisha-card:hover .afisha-card-img img { opacity: 1; }
.afisha-card-body {
  padding: 0.9rem 1rem 1.1rem;
}
.afisha-card-date {
  font-family: var(--font-main);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.3rem;
}
.afisha-card-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 400;
  color: #fff;
}

/* ===== DRAWER (общие стили: Афиша и Блюдо) ===== */
#drawer-overlay,
#dish-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 300;
  pointer-events: none;
  display: none;
  transition: background 0.4s ease;
}
#drawer-overlay.open,
#dish-drawer-overlay.open {
  display: block;
  background: rgba(0,0,0,0.6);
  pointer-events: auto;
}

#drawer,
#dish-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: var(--dark);
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 301;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  -webkit-overflow-scrolling: touch;
}
#drawer.open,
#dish-drawer.open { transform: translateX(0); }

.drawer-close {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  padding: 1rem 1.2rem 0.4rem;
  background: var(--dark);
  z-index: 2;
  flex-shrink: 0;
}
.drawer-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  padding: 0.2rem;
}
.drawer-close-btn:hover { color: #fff; }
.drawer-body {
  padding: 0 1.8rem 2rem;
  flex: 1;
}
.drawer-img {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.04);
  margin-bottom: 1.3rem;
  overflow: hidden;
  border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.drawer-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.drawer-date {
  font-family: var(--font-main);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}
.drawer-title {
  font-family: var(--font-main);
  font-size: 1.3rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.drawer-text {
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
}

/* Dish drawer specifics */
.dish-drawer-img {
  aspect-ratio: 16/9;
  cursor: zoom-in;
  border-radius: 1rem;
}
.dish-drawer-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.dish-drawer-meta {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dish-weight {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
}
.dish-price {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
}
.dish-drawer-section {
  margin-bottom: 1.2rem;
}
.dish-drawer-label {
  font-family: var(--font-main);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.4rem;
}
.dish-drawer-text {
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
}

/* ===== LIGHTBOX ===== */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#lightbox-overlay.open {
  display: flex;
  pointer-events: auto;
}
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  z-index: 10;
}
.lightbox-close:hover { color: #fff; }
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  z-index: 10;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }
.lightbox-prev { left: 1.2rem; }
.lightbox-next { right: 1.2rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-main);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4);
}

/* ===== CONTACTS PAGE ===== */
#page-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}
.contacts-content {
  max-width: 620px;
  width: 100%;
  padding: 6rem 2.2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contacts-text-block{
  background: rgba(0,0,0,0.2);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.contacts-content h1 {
  font-family: var(--font-main);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.5rem;
}
.contacts-info { margin-bottom: 1.2rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 1.1rem;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-label {
  font-family: var(--font-main);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.15rem;
}
.contact-value {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,1);
}
.contact-value a { color: rgba(255,255,255,0.9); transition: color 0.2s; }
.contact-value a:hover { color: #fff; }

.contacts-route { margin-bottom: 1.2rem; }
.contacts-route h3 {
  font-family: var(--font-main);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.8rem;
}
.route-item {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.5rem;
}
.route-metro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  background: #fff;
  color: var(--dark);
  font-size: 0.52rem;
  font-weight: 600;
  border-radius: 50%;
  flex-shrink: 0;
  font-family: var(--font-main);
}
.route-text {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,1);
  line-height: 1.4;
}

.map-wrap {
  width: 100%;
  height: 260px;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  border-radius: 3px;
}
.map-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(0.4) brightness(0.85);
}

/* ===== MODAL ===== */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 400;
  pointer-events: none;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.35s ease;
}
#modal-overlay.open {
  display: flex;
  background: rgba(0,0,0,0.75);
  pointer-events: auto;
}
#modal {
  position: relative;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-y: auto;
  padding: 2rem 1.8rem 1.8rem;
  border-radius: 3px;
}
#modal h2 {
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.3rem;
  letter-spacing: 0.04em;
}
.modal-close {
  position: absolute;
  top: 0.7rem; right: 0.9rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.3rem;
  transition: color 0.2s;
}
.modal-close:hover { color: #fff; }

.form-group {
  margin-bottom: 0.9rem;
}
.form-group label {
  display: block;
  font-family: var(--font-main);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 300;
  background: transparent;
  color: #fff;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 0.55rem 0;
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
}
.form-group input::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group select:focus { border-color: rgba(255,255,255,0.7); }

.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.2rem 0;
}
.form-checkbox input[type="checkbox"] {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 0.1rem;
  accent-color: #fff;
  cursor: pointer;
}
.form-checkbox label {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.45);
  line-height: 1.5;
  cursor: pointer;
}
.form-checkbox label a {
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
}
.form-checkbox label a:hover { color: #fff; }
.btn-submit {
  width: 100%;
  font-family: var(--font-main);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dark);
  background: #fff;
  border: none;
  padding: 0.85rem;
  cursor: pointer;
  transition: background 0.3s;
  border-radius: 2px;
}
.btn-submit:hover { background: rgba(255,255,255,0.85); }

.form-error {
  text-align: center;
  padding: 0.8rem 0;
  font-family: var(--font-main);
  font-size: 0.88rem;
  color: #e25555;
  line-height: 1.6;
  display: none;
}

.form-success {
  text-align: center;
  padding: 0.8rem 0;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  display: none;
}
.form-success .check-icon {
  font-size: 2rem;
  color: #fff;
  display: block;
  margin-bottom: 0.6rem;
}

/* ===== SCROLLBAR ===== */
.page::-webkit-scrollbar,
#drawer::-webkit-scrollbar,
#dish-drawer::-webkit-scrollbar,
#modal::-webkit-scrollbar { width: 3px; }
.page::-webkit-scrollbar-track,
#drawer::-webkit-scrollbar-track,
#dish-drawer::-webkit-scrollbar-track,
#modal::-webkit-scrollbar-track { background: transparent; }
.page::-webkit-scrollbar-thumb,
#drawer::-webkit-scrollbar-thumb,
#dish-drawer::-webkit-scrollbar-thumb,
#modal::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* ===== DESKTOP RESPONSIVE ===== */
@media (min-width: 769px) {
  .burger-btn { display: none; }
  .mobile-nav-overlay { display: none !important; }
  .page-hero { display: none !important; }
  .home-mobile-nav { display: none !important; }

  .about-content,
  .menu-content,
  .events-content,
  .afisha-content,
  .contacts-content {
    padding-top: 7rem;
  }
}

/* ===== RESPONSIVE (tablet) ===== */
@media (max-width: 768px) {
    .home-mobile-nav-underline{
        width:100%;
        border:0;
        height:1px;
        margin:1rem 0;
        border-bottom:1px solid rgba(255,255,255,0.3);
    }
    #page-home {
        display: block;
        background: var(--dark);
        overflow-y: auto;
    }    
  #page-home .home-center {
     padding:0;
     justify-content: start;
  }
  
  .about-text-block,
  .events-text-block,
  .afisha-text-block,
  .contacts-text-block{
    padding: 2rem 0;
  }
  #page-wrapper{ top: 0; }

  .home-logo img{ width:140px; }
  header {
    padding: 0.9rem 1rem;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  }
  body.mobile-inner-page header { background: #000; }

  .header-logo { font-size: 0.9rem; }
  .header-logo img { height: 24px; }

  #drawer, #dish-drawer { width: 100%; }
  .events-photo { width: calc(50% - 0.4rem); }
  .form-row { grid-template-columns: 1fr; }
  .afisha-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .interior-arrow { width: 48px; height: 48px; font-size: 1rem; }
  .interior-arrow.left { left: 0.6rem; }
  .interior-arrow.right { right: 0.6rem; }
  .lightbox-arrow { width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }

  /* Меню на мобильном — 2 колонки */
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .menu-content {
    padding: 1.8rem 1rem 3rem;
  }
  .menu-text-block {
    padding: 1rem 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* ===== MOBILE BURGER ===== */
  .burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    z-index: 220;
    position: relative;
  }
  .burger-btn span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.35s ease, opacity 0.35s ease;
    transform-origin: center;
  }
  .burger-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  body.mobile-home-page .burger-btn { display: none; }

  #main-nav {
    position: fixed;
    top: 0; right: 0;
    width: 70vw;
    max-width: 280px;
    height: 100%;
    background: rgba(10, 10, 10, 0.98);
    border-left: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4.5rem 0 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.4,0,.2,1);
    z-index: 210;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #main-nav.mobile-open { transform: translateX(0); }
  .nav-underline { display: none; }

  #main-nav .nav-item {
    padding: 0.95rem 1.5rem;
    font-size: 0.72rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: block;
  }

  /* Разделитель и dropdown на мобильном */
  .nav-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 0.4rem 0;
  }
  .nav-dropdown { display: block; }
  .nav-dropdown-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .nav-dropdown-menu {
    position: static;
    min-width: auto;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 0.5rem;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-dropdown.open .nav-dropdown-menu {
    max-height: 200px;
  }
  .nav-dropdown-menu a {
    padding: 0.75rem 2.2rem;
    font-size: 0.62rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  /* Mobile home navigation */
  .home-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 0;
  }
  .home-mobile-nav-item {
    width: 100%;
    text-align: center;
    font-family: var(--font-main);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    padding: 0.95rem 1rem;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
  }
  .home-mobile-nav-item:last-child { border-bottom: none; }
  .home-mobile-nav-item:hover,
  .home-mobile-nav-item:active {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }

  #page-home .page-hero { display: none !important; }

  /* ===== Inner mobile pages ===== */
  body.mobile-inner-page #page-wrapper{ top: 56px; }

  #page-about,
  #page-menu,
  #page-events,
  #page-afisha,
  #page-contacts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--dark);
  }
    .page-hero {
        display: block;
        width: 100%;
        height: 55vw;
        min-height: 200px;
        max-height: 320px;
        background-size: cover;
        background-position: center;
        flex-shrink: 0;
    }
  .about-content,
  .menu-content,
  .events-content,
  .afisha-content,
  .contacts-content {
    padding-top: 1.8rem;
    background: var(--dark);
  }

  #page-interior { background: var(--dark); }
  .interior-text-wrap { display: none; }

  .about-content h1,
  .menu-content h1,
  .events-content h1,
  .afisha-content h1,
  .contacts-content h1 { color: #fff; }

  /* Dish drawer на мобилке — во весь экран */
  #dish-drawer { width: 100%; }
   /* ===== MOBILE HOME: full-screen photo bg + nav as main content ===== */
  #page-home {
    display: block;
    background: var(--dark);
    overflow-y: auto;
  }
  #page-home::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--home-mobile-bg, none);
    background-size: cover;
    background-position: center;
    z-index: 0;
  }
  #page-home::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.65) 100%);
    z-index: 0;
  }
  #page-home .home-center {
     position: relative;
     z-index: 2;
     min-height: 100vh;
     padding: 0;
     justify-content: start;
  }
  #page-home .home-center-inner {
    margin-top: 3rem;
  }
}
@media (max-width: 480px) {
  .events-photo { width: 100%; }
  .afisha-grid { grid-template-columns: 1fr; }
  /* На маленьких экранах оставляем 2 колонки для меню (как в ТЗ) */
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .menu-card-title { font-size: 0.8rem; }
  .menu-card-price { font-size: 0.82rem; }
}