:root {
  --graphite-950: #0b0b0c;
  --graphite-900: #131315;
  --graphite-800: #1c1c1f;
  --graphite-700: #29292d;
  --graphite-600: #3a3a3f;
  --gold: #c9a15a;
  --gold-bright: #e6c179;
  --cream: #f2ede3;
  --muted: #9a978f;
  --red-occupied: #b5493f;
  --green-free: #4c8c62;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --radius: 2px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--graphite-950);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--cream);
}

section { padding: 96px 0; border-top: 1px solid var(--graphite-700); }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

/* ---------- Icon system (replaces emoji everywhere) ---------- */
svg.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.15em;
  fill: none;
  flex-shrink: 0;
}

/* ---------- Nav ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: linear-gradient(to bottom, rgba(11,11,12,0.9), transparent);
  backdrop-filter: blur(2px);
}
.site-nav .brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-nav .brand svg.icon { font-size: 1.15rem; }
.site-nav .call-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 8px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.site-nav .call-btn:hover { background: var(--gold); color: var(--graphite-950); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-top: none;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(11,11,12,0.35), rgba(11,11,12,0.85) 88%),
    radial-gradient(ellipse at 50% 30%, #232326 0%, #0b0b0c 75%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; padding: 0 24px; }
.hero-content .eyebrow { letter-spacing: 0.35em; }
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--gold-bright);
  line-height: 1.05;
}
.hero-content .tagline {
  margin: 22px auto 8px;
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--cream);
  font-style: italic;
  font-family: var(--font-display);
}
.hero-content .features {
  margin: 18px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}
.hero-cta {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 15px 34px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: var(--graphite-950); }
.btn-gold:hover { background: var(--gold-bright); box-shadow: 0 6px 20px rgba(201,161,90,0.25); }
.btn-outline { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-outline:hover { background: rgba(201,161,90,0.12); }

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  animation: bob 2.2s ease-in-out infinite;
}
.scroll-hint svg.icon { font-size: 1.1rem; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .7; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* ---------- Booking ---------- */
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .booking-grid { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--graphite-800);
  border: 1px solid var(--graphite-600);
  color: var(--cream);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row { display: flex; gap: 16px; }
.form-row .form-field { flex: 1; }
textarea { resize: vertical; min-height: 80px; }

@keyframes fieldPulse {
  0% { box-shadow: 0 0 0 0 rgba(201,161,90,0.55); border-color: var(--gold); }
  70% { box-shadow: 0 0 0 8px rgba(201,161,90,0); border-color: var(--gold); }
  100% { box-shadow: 0 0 0 0 rgba(201,161,90,0); }
}
.field-pulse { animation: fieldPulse 0.9s ease-out 2; }

.selected-table-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--graphite-800);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 18px;
}

/* ---------- Phone verification ---------- */
.phone-verify-row { display: flex; gap: 10px; }
.phone-verify-row input { flex: 1; }
.btn-verify {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, opacity .2s;
}
.btn-verify:hover:not(:disabled) { background: rgba(201,161,90,0.12); }
.btn-verify:disabled { opacity: 0.5; cursor: default; border-color: var(--graphite-600); color: var(--muted); }

.code-row { display: flex; gap: 10px; margin-top: 10px; }
.code-row input {
  width: 120px; flex-shrink: 0; letter-spacing: 0.3em; text-align: center;
  background: var(--graphite-800); border: 1px solid var(--graphite-600); color: var(--cream);
  padding: 12px 10px; border-radius: var(--radius); font-size: 1rem;
}
.code-row input:focus { outline: none; border-color: var(--gold); }

.phone-verify-msg { font-size: 0.82rem; margin-top: 8px; min-height: 0; display: none; }
.phone-verify-msg.show { display: block; }
.phone-verify-msg.error { color: #f0a89f; }
.phone-verify-msg.success { color: #9fe0b3; }
.phone-verify-msg.info { color: var(--muted); }

.phone-verified-badge {
  display: inline-flex; align-items: center; gap: 7px;
  color: #9fe0b3; background: rgba(76,140,98,0.12);
  border: 1px solid var(--green-free);
  padding: 6px 12px; border-radius: var(--radius);
  font-size: 0.82rem; margin-top: 8px;
}

.vkid-container:empty { display: none; }
.vkid-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin: 14px 0 10px;
}
.vkid-divider::before, .vkid-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--graphite-600);
}

/* ---------- Table map ---------- */
.hall-map-wrap { text-align: center; }
.hall-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 14px;
}
.hall-hint svg.icon { color: var(--gold); font-size: 1rem; }

.hall-map-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

.hall-map-overlay {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 24px;
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(1.5px);
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px dashed rgba(230,193,121,0.5);
}
.hall-map-overlay svg.icon { font-size: 2rem; color: var(--gold-bright); }
.hall-map-overlay.show { display: flex; }
@keyframes overlayShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.hall-map-overlay.shake { animation: overlayShake 0.4s ease; }

.hall-legend {
  display: flex; gap: 20px; justify-content: center;
  margin-top: 16px; font-size: 0.82rem; color: var(--muted);
}
.hall-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--green-free); }
.dot-occupied { background: var(--red-occupied); }
.dot-selected { background: var(--gold); }

/* Схема зала — форма (диван+стол+диван), сгенерированная hallmap.js */
#hall-map { display: block; background: #efe8db; }

.table-shape { cursor: pointer; }
.table-shape:focus { outline: none; }
.table-shape:focus .status-ring { stroke-width: 6; }

.table-shape .status-ring {
  fill-opacity: 0.16;
  stroke-width: 4;
  transition: fill .18s, stroke .18s;
}
.table-shape.free .status-ring { fill: var(--green-free); stroke: var(--green-free); }
.table-shape.occupied .status-ring { fill: var(--red-occupied); stroke: var(--red-occupied); }
.table-shape.selected .status-ring {
  fill: var(--gold-bright); stroke: var(--gold-bright); fill-opacity: 0.22; stroke-width: 5;
  filter: drop-shadow(0 0 8px rgba(230,193,121,0.55));
}

.table-shape .cushion {
  fill: #f4efe6;
  stroke: #d9cfba;
  stroke-width: 2;
  transition: filter .18s, opacity .18s;
}
.table-shape:hover:not(.occupied) .cushion { filter: brightness(1.04); }
.table-shape.occupied .cushion { opacity: 0.55; filter: grayscale(0.35); }
.table-shape.selected .cushion { fill: #fbeed2; stroke: var(--gold); }

.table-shape .table-top {
  fill: #4a3529;
  stroke: #2b1f18;
  stroke-width: 1.5;
  transition: filter .18s;
}
.table-shape.occupied .table-top { filter: grayscale(0.4) brightness(0.8); }
.table-shape.selected .table-top { stroke: var(--gold-bright); }

.table-shape .table-num {
  fill: #f2ede3;
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1, "case" 1;
  pointer-events: none;
}
.table-shape.occupied .table-num { fill: #cfc7ba; }

.table-shape .status-dot {
  stroke: rgba(0,0,0,0.25);
  stroke-width: 1.5;
  pointer-events: none;
}
.table-shape.free .status-dot { fill: var(--green-free); }
.table-shape.occupied .status-dot { fill: var(--red-occupied); }
.table-shape.selected .status-dot { fill: var(--gold-bright); }

.table-shape.occupied { cursor: not-allowed; }
.table-shape.occupied .hit-area { cursor: not-allowed; }

.dancefloor-label {
  fill: #6b5c47;
  font-family: var(--font-body);
  font-size: 68px;
  font-weight: 800;
  letter-spacing: 10px;
}
.disco-ball { fill: #cfd6da; stroke: #9aa4ab; stroke-width: 2; }
.disco-line { stroke: #9aa4ab; stroke-width: 2; }

.plant .plant-pot { fill: #7a5232; }
.plant .plant-shadow { fill: rgba(0,0,0,0.12); }
.plant .plant-leaf { fill: #5c7a4a; }
.plant .plant-leaf-mid { fill: #6d8d59; }

.booking-msg {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.booking-msg.show { display: block; }
.booking-msg.success { background: rgba(76,140,98,0.15); border: 1px solid var(--green-free); color: #bfe6cb; }
.booking-msg.error { background: rgba(181,73,63,0.15); border: 1px solid var(--red-occupied); color: #f0c3bf; }

/* ---------- Gallery ---------- */
.gallery-tabs {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 32px;
}
.gallery-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--graphite-600);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  transition: border-color .2s, color .2s;
}
.gallery-tab svg.icon { font-size: 1rem; }
.gallery-tab.active,
.gallery-tab:hover { border-color: var(--gold); color: var(--gold-bright); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid figure {
  margin: 0; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4/5; background: var(--graphite-800);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform .4s; }
.gallery-grid img:hover { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; background: rgba(6,6,7,0.94);
  display: none; align-items: center; justify-content: center; z-index: 200;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 90vw; border: 1px solid var(--graphite-600); }
.lightbox .close-btn {
  position: absolute; top: 24px; right: 32px;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 1.4rem; color: var(--gold-bright); cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid var(--graphite-600);
}

/* ---------- Menu ---------- */
.menu-tabs {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px;
}
.menu-page { display: none; text-align: center; }
.menu-page.active { display: block; }
.menu-page img { margin: 0 auto; max-height: 900px; border: 1px solid var(--graphite-700); }

/* ---------- Why us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 780px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  position: relative;
  overflow: hidden;
  text-align: left;
  padding: 34px 26px 30px;
  border: 1px solid var(--graphite-700);
  border-radius: 6px;
  background: linear-gradient(165deg, var(--graphite-900) 0%, var(--graphite-800) 100%);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-num {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--graphite-700);
  line-height: 1;
  transition: color .25s ease;
}
.feature-card:hover .feature-num { color: var(--graphite-600); }
.feature-card > div.icon {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(201,161,90,0.12);
  border: 1px solid rgba(201,161,90,0.35);
  color: var(--gold-bright);
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background .25s ease, transform .25s ease;
}
.feature-card:hover > div.icon { background: var(--gold); color: var(--graphite-950); transform: scale(1.06); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  border: 1px solid var(--graphite-700);
  padding: 24px;
  border-radius: var(--radius);
}
.review-card .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review-card p { margin: 0 0 10px; font-style: italic; color: var(--cream); }
.review-card .author { color: var(--muted); font-size: 0.85rem; }
.review-form-toggle { text-align: center; }
.review-form { max-width: 480px; margin: 24px auto 0; display: none; }
.review-form.open { display: block; }
.star-select { display: flex; gap: 8px; font-size: 1.6rem; }
.star-select span { cursor: pointer; color: var(--graphite-600); display: inline-flex; }
.star-select span svg.icon { width: 1em; height: 1em; }
.star-select span.active { color: var(--gold); }

/* ---------- Contacts ---------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 780px) { .contacts-grid { grid-template-columns: 1fr; } }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-line .ic {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(201,161,90,0.12);
  color: var(--gold-bright); font-size: 1.05rem;
}
.contact-line .label { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.contact-actions a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  border: 1px solid var(--graphite-600);
  transition: background .2s;
}
.contact-actions a.whatsapp { border-color: #4c8c62; color: #9fe0b3; }
.contact-actions a.whatsapp:hover { background: rgba(76,140,98,0.12); }
.contact-actions a.vk { border-color: #5a8bc9; color: #a8c8f0; }
.contact-actions a.vk:hover { background: rgba(90,139,201,0.12); }
.contact-actions a.telegram { border-color: #5aa8c9; color: #a8dcf0; }
.contact-actions a.telegram:hover { background: rgba(90,168,201,0.12); }
.contact-actions a.route { border-color: var(--gold); color: var(--gold-bright); }
.contact-actions a.route:hover { background: rgba(201,161,90,0.12); }
.map-embed {
  width: 100%; aspect-ratio: 4/3; border: 1px solid var(--graphite-700);
  overflow: hidden; border-radius: var(--radius); background: var(--graphite-800);
}
.map-embed iframe { width: 100%; height: 100%; display: block; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--graphite-700);
}
footer a { color: var(--muted); text-decoration: underline; }

/* Sticky call button (mobile) */
.floating-call {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--graphite-950);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .site-nav { padding: 14px 16px; }
  .site-nav .brand { font-size: 1.15rem; }
  .site-nav .call-btn span { display: none; }
  .site-nav .call-btn { padding: 9px 12px; }

  section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .section-head { margin-bottom: 36px; }

  .hero-content .features { font-size: 0.8rem; line-height: 1.7; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; text-align: center; }

  .form-row { flex-direction: column; gap: 0; }
  .phone-verify-row { flex-direction: column; align-items: stretch; }
  .code-row { flex-direction: column; }
  .code-row input { width: 100%; }

  .hall-legend { flex-wrap: wrap; gap: 12px; }
  .hall-map-overlay { font-size: 0.85rem; padding: 16px; }

  .gallery-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .menu-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .menu-tab { flex-shrink: 0; }

  .contact-actions a { flex: 1 1 calc(50% - 6px); justify-content: center; text-align: center; }

  .floating-call { width: 50px; height: 50px; font-size: 1.2rem; bottom: 14px; right: 14px; }
}
