/* ==========================================================================
   Green Lounge — меню («Ширма»)
   Всё меню видно сразу: десять створок, раскрывается одна.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #060E0A;
  --bg-2:      #0A1610;
  --ink:       #ECF3ED;
  --dim:       #8FA697;
  --faint:     #6B8175;
  --gold:      #E3A857;
  --gold-soft: #F2CE94;
  --leaf:      #4E8B62;
  --ember:     #C4382C;
  --hair:      rgba(233, 245, 235, .10);
  --hair-2:    rgba(233, 245, 235, .055);
  --surface:   rgba(233, 245, 235, .04);

  --wrap: 900px;
  --barh: 58px;
  --serif: 'Prata', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden; overflow-x: clip;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}

img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 18px; }

.skip {
  position: fixed; left: 0; top: 0; z-index: 100;
  background: var(--gold); color: #12200f;
  padding: 10px 16px; border-radius: 0 0 10px 0;
  transform: translateY(-120%); transition: transform .15s;
}
.skip:focus { transform: none; }

/* ── ШАПКА ────────────────────────────────────────────────────────────── */

.top { position: relative; isolation: isolate; overflow: hidden; }
.top__art { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.top__art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%;
  animation: artIn 1.4s cubic-bezier(.16,.84,.44,1) both;
}
@keyframes artIn { from { transform: scale(1.06); opacity: .35; } to { transform: none; opacity: 1; } }

.top__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(5,12,9,.52), rgba(5,12,9,.28) 32%, rgba(5,12,9,.92) 84%, var(--bg)),
    radial-gradient(85% 70% at 50% 34%, transparent, rgba(5,12,9,.5));
}
.top__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: max(34px, calc(env(safe-area-inset-top) + 26px)) 18px 26px;
  text-align: center;
}
.top__place {
  margin: 0 0 12px; display: flex; align-items: center; justify-content: center; gap: 10px;
  color: var(--gold-soft); font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
}
.top__table {
  border: 1px solid rgba(227,168,87,.5); border-radius: 999px;
  padding: 3px 11px; letter-spacing: .12em;
}
.top__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2rem, 9vw, 3.1rem); line-height: 1; margin: 0;
  text-shadow: 0 4px 30px rgba(0,0,0,.6);
}
.top__tagline {
  margin: 12px 0 0; color: var(--gold-soft);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
}
.top__hours { margin: 12px 0 0; font-size: 12.5px; color: rgba(236,243,237,.66); }

/* ── ПАНЕЛЬ: поиск, «развернуть всё», переход к «Вечеру» ──────────────── */

.bar {
  position: sticky; top: 0; z-index: 45;
  background: rgba(6, 14, 10, .9);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--hair-2);
  padding-top: env(safe-area-inset-top);
}
.bar__in {
  max-width: var(--wrap); margin-inline: auto;
  padding: 9px 18px; display: flex; gap: 8px; align-items: center;
  min-height: var(--barh);
}
.bar__field { position: relative; flex: 1 1 auto; min-width: 0; }
.bar__field svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--faint); pointer-events: none;
}
.bar input {
  width: 100%; height: 40px;
  background: var(--surface); border: 1px solid var(--hair);
  border-radius: 11px; color: var(--ink); font: inherit; font-size: 14.5px;
  padding: 0 32px 0 34px; outline: none;
}
.bar input::placeholder { color: var(--faint); }
.bar input:focus { border-color: rgba(227,168,87,.5); }
.bar__x {
  position: absolute; right: 6px; top: 50%; transform: translateY(-52%);
  width: 26px; height: 26px; color: var(--faint); font-size: 20px; line-height: 1;
}
.bar__all {
  flex: none; height: 40px; padding: 0 13px;
  border: 1px solid var(--hair); border-radius: 11px;
  font-size: 12.5px; color: var(--dim); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .16s, border-color .16s, background .16s;
}
.bar__all:hover { color: var(--gold-soft); border-color: rgba(227,168,87,.42); }
.bar__all[aria-pressed="true"] { color: var(--gold-soft); border-color: rgba(227,168,87,.45); background: rgba(227,168,87,.08); }


/* ── ШИРМА ────────────────────────────────────────────────────────────── */

.banner {
  margin: 16px 0 0; padding: 11px 14px;
  border: 1px solid rgba(227,168,87,.28); background: rgba(227,168,87,.07);
  border-radius: 12px; font-size: 13px; color: var(--gold-soft);
}
.banner--demo { border-color: rgba(78,139,98,.35); background: rgba(78,139,98,.09); color: #A9D3B4; }

.screen { padding: 14px 0 26px; display: grid; gap: 7px; }

/* Переход к калькулятору вечера */
.act {
  display: grid; grid-template-columns: 34px 1fr 18px;
  align-items: center; gap: 13px;
  padding: 13px 15px; border-radius: 14px;
  border: 1px solid rgba(227, 168, 87, .38);
  background: linear-gradient(105deg, rgba(227,168,87,.16), rgba(227,168,87,.05) 55%, rgba(227,168,87,.02));
  transition: border-color .18s, background .18s, transform .12s;
}
.act:hover { border-color: var(--gold); background: linear-gradient(105deg, rgba(227,168,87,.24), rgba(227,168,87,.07)); }
.act:active { transform: scale(.995); }
.act__ic { width: 34px; height: 34px; color: var(--gold); }
.act__ic svg { width: 100%; height: 100%; }
.act__t b {
  display: block; font-family: var(--serif); font-weight: 400;
  font-size: clamp(1rem, 4.2vw, 1.18rem); line-height: 1.2;
}
.act__t small { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.act__go { width: 18px; height: 18px; color: var(--gold); }

/* Разделитель двух частей меню */
.screen__h {
  margin: 12px 0 1px; padding-left: 2px;
  font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  display: flex; align-items: center; gap: 12px;
}
.screen__h::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, rgba(227,168,87,.4), transparent);
}
.screen__h:first-child { margin-top: 2px; }

.fold {
  position: relative; overflow: hidden;
  border: 1px solid var(--hair); border-radius: 14px;
  background: var(--bg-2);
  scroll-margin-top: calc(var(--barh) + 12px);
  transition: border-color .3s ease;
}
.fold[data-open="true"] { border-color: rgba(227, 168, 87, .34); }

.fold__art {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('/assets/leaves-hero-sm.jpg');
  background-size: var(--scale, 150%) auto;
  background-position: var(--pos, 50% 50%);
  opacity: .55;
  transition: opacity .35s ease;
}
.fold[data-open="true"] .fold__art { opacity: .3; }
.fold__tint {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(6,14,10,.9) 22%, rgba(6,14,10,.68) 62%, rgba(6,14,10,.82));
  transition: background .35s ease;
}
.fold[data-open="true"] .fold__tint {
  background: linear-gradient(180deg, rgba(6,14,10,.84) 0 64px, rgba(6,14,10,.94) 130px, rgba(8,18,12,.97));
}

.fold__head {
  position: relative; z-index: 2;
  width: 100%; display: grid;
  grid-template-columns: 24px 1fr auto 16px;
  align-items: center; gap: 11px;
  padding: 12px 15px; text-align: left;
}
.fold__ic {
  width: 24px; height: 24px;
  background-color: var(--gold);
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
  transition: background-color .3s;
}
.fold[data-open="true"] .fold__ic { background-color: var(--gold-soft); }
.fold__ic--none { visibility: hidden; }

.fold__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1rem, 4.2vw, 1.22rem); line-height: 1.15;
  text-shadow: 0 1px 10px rgba(4, 10, 7, .9);
  overflow-wrap: anywhere;
}
.fold__meta {
  font-size: 12px; color: var(--gold-soft); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 10px rgba(4, 10, 7, .9);
}
.fold__meta span { color: var(--faint); margin-right: 7px; }
.fold__chev { width: 16px; height: 16px; color: var(--faint); transition: transform .3s ease, color .3s; }
.fold[data-open="true"] .fold__chev { transform: rotate(180deg); color: var(--gold); }

.fold__body {
  position: relative; z-index: 2;
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .34s cubic-bezier(.22,.7,.3,1);
}
.fold[data-open="true"] .fold__body { grid-template-rows: 1fr; }
.fold__inner { overflow: hidden; }
.fold__list { padding: 0 16px 10px; }

/* ── ПОЗИЦИЯ ──────────────────────────────────────────────────────────── */

.i {
  display: grid; grid-template-columns: 1fr auto auto;
  align-items: center; gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--hair-2);
}
.i--photo { grid-template-columns: 44px 1fr auto auto; }
.i__ic {
  width: 44px; height: 44px; flex: none;
  background-color: rgba(242, 206, 148, .88);
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}
.i__img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover;
  border: 1px solid var(--hair); background: var(--surface);
}
.i__n { font-size: 15px; overflow-wrap: anywhere; min-width: 0; }
.i__n small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 1px; }

/* Подзаголовок группы внутри створки: Свинина / Курица / Рыба */
.i__group {
  margin: 16px 0 2px; padding-top: 12px;
  border-top: 1px solid var(--hair-2);
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.i__group:first-child { margin-top: 6px; padding-top: 0; border-top: 0; }
.i__group + .i { border-top: 0; }
.i__d { margin: 3px 0 0; font-size: 13px; color: var(--dim); max-width: 52ch; }
.i__badge {
  display: inline-block; margin-left: 7px; vertical-align: 1px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-soft); border: 1px solid rgba(227,168,87,.4);
  border-radius: 999px; padding: 1px 6px;
}
.i__p {
  font-size: 15.5px; font-weight: 600; color: var(--gold-soft);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.i__p i { font-style: normal; font-weight: 400; opacity: .55; margin-left: 3px; }
.i__p small { display: block; font-size: 11px; font-weight: 400; color: var(--faint); text-align: right; }

mark { background: rgba(227,168,87,.22); color: var(--gold-soft); border-radius: 3px; padding: 0 1px; }

/* счётчик */
.qty { display: flex; align-items: center; gap: 2px; }
.qty__b {
  width: 29px; height: 29px; flex: none; border-radius: 50%;
  border: 1px solid var(--hair); display: grid; place-items: center;
  font-size: 16px; line-height: 1;
  transition: border-color .16s, color .16s, opacity .16s, width .16s, transform .12s;
}
.qty__b:hover { border-color: rgba(227,168,87,.5); color: var(--gold-soft); }
.qty__b:active { transform: scale(.9); }
.qty__n {
  width: 0; overflow: hidden; text-align: center;
  font-size: 13.5px; font-weight: 600; color: var(--gold-soft);
  font-variant-numeric: tabular-nums; transition: width .16s;
}
.qty__m { width: 0; border-width: 0; opacity: 0; pointer-events: none; }
.qty.on .qty__m { width: 29px; border-width: 1px; opacity: 1; pointer-events: auto; }
.qty.on .qty__n { width: 23px; }
.qty.on .qty__p { border-color: rgba(227,168,87,.45); color: var(--gold-soft); }

/* ── СТВОРКА «ПРАВИЛА» ────────────────────────────────────────────────── */

.fold--rules { border-style: dashed; }
.fold--rules[data-open="true"] { border-style: solid; }
.fold--rules .fold__art { display: none; }
.fold--rules .fold__tint { background: var(--surface); }
.fold--rules .fold__ic { background-color: var(--ember); }

.rules__age { margin: 4px 0 14px; font-size: 14px; color: var(--dim); line-height: 1.55; }
.rules__age b { color: #E88A7D; font-weight: 600; margin-right: 7px; }
.rules__sub {
  margin: 0 0 9px; font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.rules__l { display: grid; gap: 9px; margin-bottom: 18px; }
.rules__l li { display: flex; gap: 9px; font-size: 14px; line-height: 1.5; }
.rules__l .leaf { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--leaf); }
.rules__g { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 13.5px; margin-bottom: 18px; }
.rules__g dt { color: var(--dim); }
.rules__g dd { margin: 0; color: var(--gold-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rule { padding: 11px 0; border-top: 1px solid var(--hair-2); }
.rule h4 { margin: 0 0 3px; font-size: 14px; font-weight: 600; }
.rule p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--dim); max-width: 62ch; }

/* ── ПОИСК ────────────────────────────────────────────────────────────── */

.hits { padding: 14px 0 30px; }
.hits__t { margin: 0 0 6px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.hits .i:first-child { border-top: 0; }
.empty { color: var(--dim); padding: 26px 0 40px; text-align: center; }

/* ── КОРЗИНА ──────────────────────────────────────────────────────────── */

.cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 46;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 44%, rgba(6,14,10,0));
  pointer-events: none;
}
.cart__btn {
  pointer-events: auto; width: 100%; max-width: 520px; margin-inline: auto;
  height: 52px; padding: 0 16px; border-radius: 15px;
  background: var(--gold); color: #12200f;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: background .16s, transform .12s;
}
.cart__btn:hover { background: var(--gold-soft); }
.cart__btn:active { transform: translateY(1px); }
.cart__n {
  flex: none; min-width: 26px; height: 26px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 999px;
  background: rgba(18,32,15,.22); font-size: 13px; font-variant-numeric: tabular-nums;
}
.cart__l { flex: 1; text-align: left; }
.cart__v { font-variant-numeric: tabular-nums; }
body.has-cart .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__bd {
  position: absolute; inset: 0; background: rgba(3,8,5,.62);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s;
}
.sheet.open .sheet__bd { opacity: 1; }
.sheet__p {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86svh; max-height: 86vh; max-width: 100vw;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-2); border-top: 1px solid var(--hair);
  border-radius: 22px 22px 0 0;
  padding: 8px 18px calc(16px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .22s cubic-bezier(.2,.7,.3,1);
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.sheet.open .sheet__p { transform: none; }
.sheet__grip { width: 38px; height: 4px; border-radius: 2px; background: var(--hair); margin: 2px auto 10px; }
.sheet__h { display: flex; align-items: center; justify-content: space-between; }
.sheet__t { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; margin: 0; }
.sheet__x { width: 34px; height: 34px; color: var(--faint); font-size: 26px; line-height: 1; }
.sheet__list { overflow-y: auto; overflow-x: hidden; margin-top: 10px; flex: 1; overscroll-behavior: contain; }
.line {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--hair-2);
}
.line:last-child { border-bottom: 0; }
.line__n { display: block; font-size: 15px; overflow-wrap: anywhere; }
.line__u { display: block; font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.line__s {
  min-width: 78px; text-align: right; font-size: 15px; font-weight: 600;
  color: var(--gold-soft); font-variant-numeric: tabular-nums;
}
.sheet__f { padding-top: 14px; border-top: 1px solid var(--hair); margin-top: 4px; }
.sheet__total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--dim); }
.sheet__total b { font-size: 22px; color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.sheet__note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.sheet__clear {
  margin-top: 14px; width: 100%; height: 44px;
  border: 1px solid var(--hair); border-radius: 12px; color: var(--dim); font-size: 14px;
  transition: color .16s, border-color .16s;
}
.sheet__clear:hover { color: #E88A7D; border-color: rgba(232,138,125,.4); }

/* ── ПОДВАЛ ───────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--hair); margin-top: 8px;
  padding-block: 34px calc(40px + env(safe-area-inset-bottom));
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(10,22,16,.92), rgba(6,14,10,1)),
    url('/assets/leaves-hero-sm.jpg') center/cover;
}
.foot__n { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 0; }
.foot__s { margin: 7px 0 0; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-soft); }
.foot__info {
  margin: 24px auto 0; max-width: 420px; display: grid;
  grid-template-columns: auto 1fr; gap: 8px 16px; text-align: left; font-size: 14px;
}
.foot__info dt { color: var(--faint); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding-top: 3px; }
.foot__info dd { margin: 0; }
.foot__links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.foot__links a {
  border: 1px solid var(--hair); border-radius: 999px; padding: 9px 18px; font-size: 13.5px;
  transition: border-color .16s, background .16s, color .16s;
}
.foot__links a:hover { border-color: rgba(227,168,87,.55); color: var(--gold-soft); background: rgba(227,168,87,.07); }
.foot__links a:first-child { background: var(--gold); border-color: var(--gold); color: #12200f; font-weight: 600; }
.foot__links a:first-child:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.foot__notice { margin: 24px 0 0; font-size: 12.5px; color: var(--dim); }
.foot__meta { margin: 8px 0 0; font-size: 11.5px; color: var(--faint); }

/* ── ШИРЕ ЭКРАНА ──────────────────────────────────────────────────────── */

@media (min-width: 780px) {
  .screen { grid-template-columns: 1fr 1fr; align-items: start; }
  .screen__h, .act { grid-column: 1 / -1; }
  .fold[data-open="true"] { grid-column: 1 / -1; }
  .fold[data-open="true"] .fold__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
  .fold--rules[data-open="true"] .fold__list { display: block; }
  .top__in { padding-block: 52px 32px; }
}

@media print {
  .bar, .cart, .sheet, .qty, .skip, .banner { display: none !important; }
  body { background: #fff; color: #000; }
  .fold__body { grid-template-rows: 1fr !important; }
  .fold__art, .fold__tint { display: none !important; }
  .i__p, .fold__name, .foot__n { color: #000; }
}

/* ── Режим встраивания в мини-апп Telegram (?embed=1) ────────────────────── */
html.embed .top,
html.embed .foot,
html.embed .skip { display: none; }
html.embed .bar { padding-top: 0; }
