/* Общая раскладка для всех вариантов. Цвета и шрифты — в style.css варианта (токены ниже — запасные). */
:root {
  --dark: #140e0b; --dark-2: #1f1612; --on-dark: #efe6da; --on-dark-muted: #b3a493;
  --light: #f4ede6; --light-2: #ebe2d8; --ink: #22160f; --ink-muted: #6b5a4c;
  --accent: #f2b33d; --accent-ink: #1a110b; --metal: #c8a253;
  --line-light: rgba(34, 22, 15, .14); --line-dark: rgba(239, 230, 218, .14);
  --wa: #1f9d55;
  --font-display: Georgia, serif; --font: system-ui, sans-serif;
  --display-weight: 800; --display-tracking: -0.02em;
  --fs-body: 1.0625rem; --fs-small: .9rem;
  --fs-h1: clamp(2.6rem, 1.3rem + 5.2vw, 6rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.8vw, 3.6rem);
  --fs-big: clamp(2.4rem, 1.2rem + 5vw, 6.2rem);
  --radius: 16px; --wrap: 1200px;
  --gap: clamp(1rem, .6rem + 1.5vw, 2rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--light); color: var(--ink); font: 400 var(--fs-body)/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.04; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.small { font-size: var(--fs-small); }
.muted { opacity: .75; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

/* Панель сравнения вариантов (только для превью) */
.variant-bar {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50;
  padding: .55rem 1rem; border-radius: 999px; background: rgba(20, 16, 14, .88); color: #f3eadf; backdrop-filter: blur(10px);
  font-size: .8rem; white-space: nowrap; max-width: calc(100vw - 32px); overflow-x: auto; box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.variant-bar a { color: #f3eadf; opacity: .7; }
.variant-bar a[aria-current="true"] { opacity: 1; font-weight: 600; text-decoration-color: #f2b33d; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: 600 1rem var(--font); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { min-height: 42px; padding: 0 1.1rem; font-size: var(--fs-small); }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Шапка */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; color: var(--on-dark); transition: background-color .35s, transform .35s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
.site-header.scrolled { background: color-mix(in srgb, var(--dark) 90%, transparent); backdrop-filter: blur(14px); }
.site-header.hide { transform: translateY(-110%); }
.header-row { display: flex; align-items: center; gap: var(--gap); min-height: 76px; }
.logo { margin-right: auto; }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; font-weight: 500; opacity: .85; }
.nav a:hover { opacity: 1; }
.langs { display: flex; gap: .15rem; }
.langs a { padding: .3rem .5rem; border-radius: 8px; font-weight: 600; font-size: .8rem; text-decoration: none; opacity: .65; }
.langs a[aria-current="true"] { opacity: 1; background: color-mix(in srgb, var(--on-dark) 14%, transparent); }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 560px) { .header-row .btn-small { display: none; } .logo img { height: 38px; } }

/* ---------- Первый экран: длинный, с липкой сценой ---------- */
.hero { position: relative; height: 270vh; background: var(--dark); color: var(--on-dark); --p: 0; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; touch-action: pan-y; }
.hero-content {
  position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center;
  pointer-events: none; opacity: calc(1 - var(--p) * 2.6); transform: translateY(calc(var(--p) * -140px));
}
.hero-content > * { max-width: min(12ch, 52vw); }
.hero-content .lead, .hero-content .actions, .hero-content .status { max-width: 40ch; pointer-events: auto; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); opacity: .82; }
.status { display: inline-flex; align-items: center; gap: .55rem; font-weight: 500; font-size: var(--fs-small); opacity: .85; }
.status:empty { display: none; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; }
.status[data-open="true"]::before { background: #5fd38a; opacity: 1; box-shadow: 0 0 0 4px rgba(95, 211, 138, .2); }
.scroll-hint {
  position: absolute; z-index: 3; left: 50%; bottom: 1.5rem; transform: translateX(-50%); margin: 0; font-size: .8rem; opacity: calc(.7 - var(--p) * 4);
  padding-top: 1.6rem; background: linear-gradient(currentColor, currentColor) center top / 1px 1.2rem no-repeat;
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 50% { background-position: center .4rem; } }
/* Факты на светлом фоне после дыма */
.hero-facts {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; justify-content: center; color: var(--ink);
  opacity: clamp(0, calc((var(--p) - .8) * 6), 1); transform: translateY(calc((1 - var(--p)) * 60px)); pointer-events: none;
}
.facts-label { font-size: var(--fs-small); color: var(--ink-muted); margin: 0 0 .5rem; }
.facts-title { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); font-size: var(--fs-big); line-height: 1; margin: 0 0 clamp(2rem, 5vw, 4rem); text-wrap: balance; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem var(--gap); margin: 0; }
.facts div { border-top: 1px solid var(--line-light); padding-top: 1rem; }
.facts dt { font-size: var(--fs-small); color: var(--ink-muted); }
.facts dd { margin: .25rem 0 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); line-height: 1.15; }
/* Без WebGL: переход делает CSS */
.hero:not(.has-3d) .hero-sticky::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, var(--light) 40%, color-mix(in srgb, var(--light) 0%, transparent));
  background-size: 100% 250%; background-position: 0 calc((1 - var(--p)) * 100%);
  opacity: clamp(0, calc((var(--p) - .1) * 1.5), 1);
}
@media (max-width: 860px) {
  .hero-content { justify-content: flex-start; padding-top: 6.5rem; }
  .hero-content > * { max-width: 15ch; }
  .hero .actions { flex-wrap: nowrap; margin-top: 1.4rem; }
  .hero .actions .btn { padding: 0 1.05rem; font-size: .95rem; min-height: 48px; }
  .hero .lead { font-size: 1.02rem; }
}

/* ---------- Секции ---------- */
.section { position: relative; padding-block: var(--section-y); }
.tone-dark, .menu-section, .booking, .site-footer { background: var(--dark); color: var(--on-dark); }
.intro .big { font-size: var(--fs-big); max-width: 14ch; margin-bottom: clamp(2rem, 4vw, 4rem); }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--gap); }
.points p { margin: 0; opacity: .78; max-width: 34ch; }

/* Меню */
.menu-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; }
.menu-head p { max-width: 44ch; margin: 0; opacity: .75; }
.menu-tabs {
  position: sticky; top: 0; z-index: 5; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
  margin: 2rem calc(50% - 50vw) 2.5rem; padding: .75rem max(1rem, calc(50vw - var(--wrap) / 2)); background: inherit;
  transition: top .35s var(--ease);
}
body.header-shown .menu-tabs { top: 76px; }
.menu-tabs::-webkit-scrollbar { display: none; }
.menu-tabs button {
  flex: none; min-height: 44px; padding: 0 1.15rem; border-radius: 999px; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent);
  background: transparent; color: inherit; font: 500 var(--fs-small) var(--font); cursor: pointer;
}
.menu-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.menu-list { list-style: none; padding: 0; margin: 0; columns: 2 340px; column-gap: 4rem; min-height: 30vh; }
.menu-list.swap { animation: menuIn .45s var(--ease); }
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } }
.menu-group { break-after: avoid; font-family: var(--font-display); font-size: 1.4rem; margin: 2.2rem 0 .4rem; color: var(--metal); }
.menu-group:first-child { margin-top: 0; }
.menu-item { break-inside: avoid; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 0 .75rem; padding: .7rem 0; }
.menu-item::after { content: ""; grid-column: 2; grid-row: 1; border-bottom: 1px dotted currentColor; opacity: .3; transform: translateY(-.3em); }
.menu-name { grid-column: 1; grid-row: 1; font-weight: 500; }
.menu-price { grid-column: 3; grid-row: 1; font-weight: 700; color: var(--metal); white-space: nowrap; font-variant-numeric: tabular-nums; }
.menu-desc { grid-column: 1 / -1; font-size: var(--fs-small); opacity: .65; line-height: 1.45; margin-top: .15rem; }

/* Зал */
.venue-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 900px) { .venue-grid { grid-template-columns: 1fr 1.25fr; } }
.venue-list { list-style: none; padding: 0; margin: 0; }
.venue-list li { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); padding: .85rem 0; border-bottom: 1px solid var(--line-light); }
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; align-items: start; }
.ph { margin: 0; display: grid; place-items: end start; padding: 1rem; border-radius: var(--radius); aspect-ratio: 4 / 5; font-size: var(--fs-small); overflow: hidden; position: relative; }
.ph-1 { grid-row: span 2; aspect-ratio: 3 / 5; }
.ph-3 { aspect-ratio: 1; }
.ph span { position: relative; padding: .3rem .6rem; border-radius: 6px; background: rgba(0,0,0,.35); color: #fff; }

/* Отзывы */
.reviews-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; }
.rating a { font-family: var(--font-display); font-size: 1.3rem; text-decoration: none; }
.reviews { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 2rem 0 1rem; }
.review { margin: 0; padding: 1.75rem; border-radius: var(--radius); }
.review p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; margin: 0 0 1rem; }
.review footer { font-size: var(--fs-small); opacity: .7; }

/* Бронь */
.order-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 900px) { .order-grid { grid-template-columns: 1fr 1.3fr; } }
.order-grid > * { min-width: 0; }
.order-grid > div > p { max-width: 38ch; opacity: .8; }
.order-form { display: grid; gap: 1rem; padding: clamp(1.25rem, 1rem + 2vw, 2.25rem); border-radius: calc(var(--radius) + 6px); }
.order-form label { display: grid; gap: .4rem; font-weight: 500; font-size: var(--fs-small); }
.order-form input, .order-form select, .order-form textarea {
  width: 100%; min-width: 0; min-height: 50px; padding: .65rem .9rem; border-radius: 10px; font: 400 1rem var(--font);
  border: 1px solid color-mix(in srgb, currentColor 25%, transparent); background: color-mix(in srgb, currentColor 6%, transparent); color: inherit;
}
.order-form input:focus, .order-form select:focus, .order-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.order-form [aria-invalid="true"] { border-color: #e2554a; }
.row-3 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr 1fr; }
.row-3 > * { min-width: 0; }
@media (max-width: 520px) { .row-3 { grid-template-columns: 1fr 1fr; } .row-3 label:last-child { grid-column: 1 / -1; } }
.form-error { color: #e2554a; margin: 0; }
.form-note { margin: 0; }

/* Контакты */
.contacts-grid { display: grid; gap: var(--gap); align-items: stretch; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 1fr 1.2fr; } }
.contacts { display: grid; grid-template-columns: max-content 1fr; gap: .9rem 1.75rem; margin: 0; }
.contacts dt { opacity: .65; }
.contacts dd { margin: 0; font-weight: 500; }
@media (max-width: 560px) { .contacts { grid-template-columns: 1fr; gap: .15rem; } .contacts dd { margin-bottom: .8rem; } }
.map-card { position: relative; display: grid; place-items: center; min-height: 300px; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.map-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: relative; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translate(6px, -14px); background: var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 25%, transparent); }
.map-label { position: absolute; bottom: 1.25rem; left: 1.25rem; font-weight: 600; padding: .5rem .9rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }

/* Подвал */
.site-footer { padding-block: 4rem 6rem; font-size: var(--fs-small); }
.footer-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 2rem; }
.footer-mark { width: min(70vw, 320px); }
.site-footer p { margin: 0 0 .3rem; opacity: .75; }

/* Бегущая строка */
.marquee { overflow: hidden; white-space: nowrap; padding-block: 1rem; }
.marquee-track { display: inline-flex; gap: 3rem; padding-right: 3rem; animation: marquee 40s linear infinite; }
.marquee-track span { display: inline-flex; gap: .6rem; align-items: baseline; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Параллакс */
[data-speed] { will-change: transform; transform: translate3d(0, var(--py, 0px), 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-speed] { transform: none !important; }
}
