/* =========================================================================
   CLEOPATRA — Industrial / Berghain-inspired
   No gradients. No glow. No emoji. No art-deco.
   Concrete, grid, brutalist typography. Red as a strike.
   ========================================================================= */

:root {
  --bg:        #0a0a0a;
  --surface:   #141414;
  --concrete:  #1d1d1d;
  --ash:       #2a2a2a;
  --line:      #2e2e2e;
  --line-2:    #4a4a4a;
  --ink:       #e8e6df;       /* основной текст */
  --mute:      #8a8780;       /* вторичный */
  --bone:      #b8b5ab;       /* третичный */
  --red:       #e63946;       /* акцент-удар */
  --red-deep:  #c1121f;

  --f-sans:    "Space Grotesk", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "Courier New", monospace;

  --maxw:      1320px;
  --pad:       clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--red); color: var(--ink); }

/* ================= NAV ================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 16px var(--pad);
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.nav__brand:hover { color: var(--ink); }
.nav__mark {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--red);
}
.nav__name {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
}

.nav__links {
  display: flex; gap: 32px;
  justify-self: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav__links a {
  color: var(--bone);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  display: flex; gap: 10px;
  justify-self: end;
}

.nav__burger {
  display: none;
  background: transparent; border: 0;
  width: 32px; height: 32px;
  padding: 6px;
}
.nav__burger span {
  display: block; height: 1.5px; background: var(--ink);
  margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}

.btn--solid {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-weight: 600;
}
.btn--solid:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn--big {
  padding: 16px 28px;
  font-size: 13px;
}
.btn--block { display: flex; width: 100%; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: calc(100dvh - 73px);
  padding: var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background-color: var(--bg);
}

/* Фото фасада — отдельным слоем в нижней части hero */
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70%;
  background-image:
    linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(10,10,10,.55) 25%, rgba(10,10,10,.55) 70%, rgba(10,10,10,.92) 100%),
    url("/static/img/hero-building.jpg");
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Вертикальные полосы как у промо-афиш */
.hero__bars {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
  opacity: .2;
}
.hero__bars span { border-right: 1px solid var(--line); }
.hero__bars span:last-child { border-right: 0; }

.hero__top, .hero__bottom { position: relative; z-index: 2; }

.hero__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--bone);
  text-transform: uppercase;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
}
.hero__tag .dot {
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: blink 1.6s steps(2) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.3; }
}

.hero__title {
  position: relative; z-index: 2;
  text-align: center;
  align-self: center;
}
.hero__title h1 {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(56px, 14vw, 220px);
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0;
  color: var(--ink);
}
.hero__slogan {
  margin-top: 22px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 18px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}
.hero__sub {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .35em;
  color: var(--mute);
  text-transform: uppercase;
}

.hero__bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.hero__cell {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--line);
}
.hero__cell:last-child { border-right: 0; }
.hero__cell-k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--mute);
  text-transform: uppercase;
}
.hero__cell-v {
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero__cell--cta {
  justify-content: center;
  align-items: stretch;
  padding: 14px 18px;
}
.hero__cell--cta .btn { width: 100%; }

/* ================= SECTIONS ================= */
.section {
  padding: clamp(60px, 8vw, 120px) var(--pad);
  border-bottom: 1px solid var(--line);
  max-width: 100%;
}

.section__head {
  margin-bottom: clamp(40px, 6vw, 72px);
  max-width: var(--maxw);
}

.section__num {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--red);
}

.section__title {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0;
  color: var(--ink);
  max-width: 18ch;
}

.section__note {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mute);
}

/* ================= HALLS ================= */
.halls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: var(--maxw);
  border: 1px solid var(--line);
  border-right: 0;
  border-bottom: 0;
}

.hall {
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  transition: background .2s;
}
.hall:hover { background: var(--surface); }
.hall--accent { background: var(--surface); }
.hall--accent:hover { background: var(--concrete); }

.hall__head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hall__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.hall__name {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -.02em;
  line-height: 1;
  margin: 0 0 6px;
  color: var(--ink);
}
.hall__sub {
  font-size: 14px;
  color: var(--bone);
}

.hall__body { flex: 1; }
.hall__desc {
  color: var(--bone);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.hall__rows {
  display: flex; flex-direction: column;
  margin-bottom: 22px;
}
.hall__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.hall__row:last-child { border-bottom: 0; }
.hall__row span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--mute);
  text-transform: uppercase;
}
.hall__row b {
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
}
.hall__row--hot b { color: var(--red); }

.hall__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex; flex-direction: column;
  gap: 8px;
}
.hall__features li {
  font-size: 14px;
  color: var(--bone);
  padding-left: 18px;
  position: relative;
}
.hall__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--red);
}

.hall__cta {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 0;
  margin-top: auto;
  border-top: 1px solid var(--line-2);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  transition: color .2s;
}
.hall__cta span { color: var(--red); font-size: 16px; }
.hall__cta:hover { color: var(--red); }

/* ================= MENU ================= */
.section--menu { padding-bottom: 0; }

.menu {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: var(--maxw);
  border: 1px solid var(--line);
}

.menu__tabs {
  border-right: 1px solid var(--line);
  background: var(--surface);
  max-height: 70vh;
  overflow-y: auto;
}

.menu__tab {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  text-align: left;
  font-family: var(--f-sans);
  transition: background .12s, color .12s;
}
.menu__tab:hover { background: var(--concrete); color: var(--ink); }
.menu__tab.is-active {
  background: var(--bg);
  color: var(--ink);
  border-left: 3px solid var(--red);
  padding-left: 15px;
}
.menu__tab-num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--red);
  letter-spacing: .08em;
}
.menu__tab-name {
  font-weight: 500;
  font-size: 14px;
}
.menu__tab-count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: .04em;
}

.menu__panels {
  background: var(--bg);
  padding: 32px 36px;
  min-height: 70vh;
}
.menu__panel { display: none; }
.menu__panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
  align-items: start;
}
.menu__list {
  display: contents; /* пусть дочерние блюда сами лягут по сетке */
}

.dish {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.dish__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: baseline;
}
.dish__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.dish__dots {
  height: 1px;
  background-image: radial-gradient(circle, var(--line-2) 0.5px, transparent 1px);
  background-size: 6px 1px;
  background-position: 0 50%;
  background-repeat: repeat-x;
  margin-bottom: 4px;
}
.dish__price {
  text-align: right;
  display: flex; flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}
.dish__rub {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.dish__try {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: .04em;
}
.dish__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--mute);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.dish__vol {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--bone);
  letter-spacing: .04em;
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

/* ================= BOOK ================= */
.section--book { background: var(--surface); }
.book {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  max-width: var(--maxw);
}

.book__lead {
  font-size: 18px;
  color: var(--bone);
  line-height: 1.55;
  margin: 0 0 28px;
}
.book__contacts { display: flex; flex-direction: column; gap: 10px; }
.book__contact {
  display: flex; flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  transition: border-color .15s, background .15s;
}
.book__contact:hover { border-color: var(--red); background: var(--concrete); }
.book__contact span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--red);
  text-transform: uppercase;
}
.book__contact b {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}

.book__form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.book__success {
  padding: 14px 16px;
  background: var(--concrete);
  border-left: 3px solid var(--red);
  color: var(--ink);
  font-size: 14px;
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--mute);
  text-transform: uppercase;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-2);
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 60px; }

.book__legal {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--mute);
  text-align: center;
  text-transform: uppercase;
}

/* ================= CONTACTS ================= */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  max-width: var(--maxw);
  border: 1px solid var(--line);
}

.contacts__info {
  display: flex; flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.contacts__row {
  display: flex; flex-direction: column;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.contacts__row span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contacts__row b {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
}
.contacts__row small {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--mute);
}
.contacts__info .btn { margin-top: 22px; }

.contacts__map {
  min-height: 460px;
  background: var(--ash);
}
.contacts__map iframe {
  width: 100%; height: 100%; min-height: 460px;
  border: 0;
  filter: grayscale(1) invert(1) hue-rotate(180deg) contrast(.85) brightness(.95);
}

/* ================= FOOTER ================= */
.footer {
  padding: 56px var(--pad) 24px;
  background: var(--bg);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  max-width: var(--maxw);
}
.footer__col { font-size: 14px; color: var(--bone); }
.footer__logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .18em;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer__meta { font-family: var(--f-mono); font-size: 11px; letter-spacing: .15em; color: var(--mute); text-transform: uppercase; }
.footer__h {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer__col a { display: block; margin-bottom: 4px; }
.footer__muted { color: var(--mute); font-family: var(--f-mono); font-size: 12px; }
.footer__base {
  max-width: var(--maxw);
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .15em;
  color: var(--mute);
  text-transform: uppercase;
}

/* ================= FAB ================= */
.fab-wa {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: #25d366;
  color: #0a0a0a;
  border: 2px solid var(--bg);
  transition: background .15s, transform .15s;
}
.fab-wa:hover { background: #128c7e; color: #fff; transform: translateY(-2px); }
.fab-wa svg { width: 28px; height: 28px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .menu { grid-template-columns: 1fr; }
  .menu__tabs {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .menu__tab {
    flex: 0 0 auto;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    scroll-snap-align: start;
    padding: 12px 16px;
  }
  .menu__tab.is-active {
    border-left: 0;
    border-bottom: 3px solid var(--red);
    padding-left: 16px;
  }
  .menu__panels { padding: 24px 28px; min-height: 0; }
  .menu__panel.is-active { grid-template-columns: 1fr; gap: 0; }

  .halls { grid-template-columns: 1fr; }
  .hall { border-right: 0; }

  .book { grid-template-columns: 1fr; gap: 32px; }
  .contacts { grid-template-columns: 1fr; }
  .contacts__info { border-right: 0; border-bottom: 1px solid var(--line); }
  .contacts__map { min-height: 360px; }
  .contacts__map iframe { min-height: 360px; }
}

@media (max-width: 720px) {
  .nav { grid-template-columns: auto 1fr auto; padding: 14px 18px; gap: 12px; }
  .nav__links {
    display: none;
    justify-self: stretch;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 0;
    padding: 16px 0 4px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .nav.is-open { display: grid; grid-template-rows: auto auto; }
  .nav.is-open .nav__links {
    display: flex;
    grid-column: 1 / -1;
  }
  .nav.is-open .nav__links a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav__cta .btn--ghost { display: none; }
  .nav__cta .btn { padding: 9px 14px; font-size: 11px; }
  .nav__burger { display: block; }

  .hero {
    gap: 24px;
    padding: 24px 18px;
    min-height: calc(100dvh - 65px);
  }
  .hero::before {
    background-image:
      linear-gradient(180deg, rgba(10,10,10,1) 0%, rgba(10,10,10,.55) 25%, rgba(10,10,10,.55) 70%, rgba(10,10,10,.92) 100%),
      url("/static/img/hero-building-mobile.jpg");
  }
  .hero__title h1 { font-size: clamp(48px, 16vw, 96px); }
  .hero__top { flex-direction: column; gap: 10px; align-items: flex-start; }
  .hero__bottom { grid-template-columns: repeat(2, 1fr); }
  .hero__cell { padding: 14px 16px; }
  .hero__cell:nth-child(2) { border-right: 0; }
  .hero__cell:nth-child(1), .hero__cell:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hero__cell--cta { grid-column: 1 / -1; border-right: 0; }
  .hero__cell-v { font-size: 24px; }

  .section { padding: 56px 18px; }
  .section__title { font-size: clamp(28px, 8vw, 40px); }

  .hall { padding: 24px 20px; }
  .hall__name { font-size: 26px; }

  .menu__panels { padding: 18px; }
  .dish__top { grid-template-columns: 1fr; gap: 4px; }
  .dish__dots { display: none; }
  .dish__price { flex-direction: row; gap: 12px; align-items: baseline; text-align: left; }
  .dish__try { font-size: 11px; }

  .book__form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; }

  .contacts__info { padding: 24px 20px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__base { flex-direction: column; gap: 6px; align-items: flex-start; }

  .fab-wa { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
