/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */

:root {
  --bg:         #0f0d0a;
  --bg-2:       #161310;
  --cream:      #f5efe4;
  --cream-dim:  #a89880;
  --gold:       #c8974a;
  --gold-light: #e8b96a;
  --border:     rgba(200,151,74,0.2);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --max-w: 1200px;
  --pad:   clamp(24px, 5vw, 80px);
}


/* ============================================================
   СБРОС И БАЗА
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }


/* ============================================================
   НАВИГАЦИЯ (с переключателем языка внутри)
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(15,13,10,0.96) 0%, transparent 100%);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  flex-shrink: 0; /* логотип не сжимается */
}

/* Ссылки навигации — центр */
.nav-links {
  display: flex;
  gap: 36px;
  flex: 1;                  /* занимают всё доступное место */
  justify-content: center;  /* ссылки по центру */
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--cream); }

/* Переключатель языка — правый край */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0; /* не сжимается */
}

.lang-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  background: none;
  border: none;
  color: var(--cream-dim);
  cursor: pointer;
  transition: color 0.3s;
  padding: 0;
}

.lang-btn.active { color: var(--gold); }
.lang-btn:hover  { color: var(--cream); }

.lang-div {
  font-size: 11px;
  color: var(--border);
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--pad) 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 40%, rgba(120,70,20,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(80,40,10,0.3) 0%, transparent 60%),
    var(--bg);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  color: var(--cream-dim);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 52px;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  background-color: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
  transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 16px 36px;
  background: none;
  color: var(--cream);
  border: 1px solid var(--border);
  transition: border-color 0.3s, color 0.3s;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1);   }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}


/* ============================================================
   ПОЯВЛЕНИЕ СЕКЦИЙ ПРИ СКРОЛЛЕ
   ============================================================ */

.about, .menu, .gallery, .visit {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about.visible, .menu.visible, .gallery.visible, .visit.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}


/* ============================================================
   ABOUT
   ============================================================ */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 120px var(--pad);
}

.about-text p:last-child {
  margin-top: 24px;
  color: var(--cream-dim);
  max-width: 440px;
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-left: 60px;
  border-left: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
}


/* ============================================================
   MENU
   ============================================================ */

.menu {
  background-color: var(--bg-2);
  padding: 120px var(--pad);
}

.menu-header {
  max-width: var(--max-w);
  margin: 0 auto 60px;
}

.menu-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border);
  border: 1px solid var(--border);
}

.menu-card {
  position: relative;
  background-color: var(--bg-2);
  padding: 36px 32px;
  transition: background-color 0.3s;
}

.menu-card:hover {
  background-color: rgba(200,151,74,0.06);
}

.menu-card.featured {
  background-color: rgba(200,151,74,0.08);
}

.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.menu-icon  { font-size: 28px; }

.menu-price {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
}

.menu-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.menu-desc {
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.6;
}

.menu-badge {
  display: inline-block;
  margin-top: 16px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  color: var(--gold);
}


/* ============================================================
   GALLERY / VIBE — с реальными фото
   ============================================================ */

.gallery {
  padding: 120px var(--pad);
  max-width: var(--max-w);
  margin: 0 auto;
}

.gallery-header {
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 12px;
}

/* Каждая ячейка — контейнер для фото */
.gallery-cell {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

/* Фото занимает всю ячейку */
.gallery-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* фото заполняет ячейку без искажений */
  transition: transform 0.5s ease;
}

/* Тёмный градиент поверх фото — чтобы был виден текст */
.gallery-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,5,0.75) 0%, transparent 50%);
  pointer-events: none;
}

/* Зум при наведении */
.gallery-cell:hover img {
  transform: scale(1.05);
}

/* Тег поверх градиента */
.gallery-tag {
  position: relative;
  z-index: 1;            /* выше псевдоэлемента ::after */
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

/* Большие ячейки на 2 колонки */
.c1 { grid-column: 1 / 3; }
.c4 { grid-column: 3 / 5; }


/* ============================================================
   VISIT
   ============================================================ */

.visit {
  background-color: var(--bg-2);
  padding: 120px var(--pad);
}

.visit-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.visit-info h2 {
  margin-bottom: 48px;
}

.visit-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.visit-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.visit-icon { font-size: 20px; margin-top: 2px; }

.visit-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.visit-value {
  font-size: 16px;
  color: var(--cream-dim);
}

.visit-map {
  aspect-ratio: 1;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(200,151,74,0.03) 20px,
    rgba(200,151,74,0.03) 21px
  );
}

.map-placeholder { text-align: center; }

.map-dot {
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 12px;
  box-shadow: 0 0 0 6px rgba(200,151,74,0.2), 0 0 0 12px rgba(200,151,74,0.1);
}

.map-placeholder p {
  font-size: 13px;
  color: var(--cream-dim);
  letter-spacing: 0.05em;
}


/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px var(--pad) 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 36px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--cream-dim);
}

.footer-credit { text-align: right; }

.footer-credit p:first-child {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 4px;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--cream-dim);
  letter-spacing: 0.1em;
}


/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 900px) {

  /* На планшете прячем ссылки меню */
  .nav-links { display: none; }

  .about {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stats {
    flex-direction: row;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 40px;
  }

  .menu-grid { grid-template-columns: 1fr 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 200px);
  }

  .c1 { grid-column: 1 / 3; }
  .c4 { grid-column: 1 / 3; }

  .visit-inner { grid-template-columns: 1fr; }

  .footer-credit { text-align: left; }
}

@media (max-width: 600px) {

  .menu-grid { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }

  .btn-primary,
  .btn-ghost { text-align: center; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 200px);
  }

  .c1, .c4 { grid-column: 1; }
}