/* EIWA · bar page (bar.html, js/pages/bar.js, js/ui/bar-list.js, js/ui/age-gate.js).
   Builds on menu.css (page grid, rail, .menu-sec headings): a printed bar card — names left, the composition or
   region under them, the volume in small caps, the price right, hairline rows. The one pink is the page's 酒. */

/* ---------- page head: 酒 Бар, the card's own line, the delivery note ---------- */
.bar-head {
  grid-column: 1 / -1;
  display: grid; gap: .875rem; justify-items: start;
  padding-block: clamp(1.75rem, 3vw, 2.5rem) clamp(2rem, 4vw, 3.5rem);
}
.bar-head__title {
  display: flex; align-items: baseline; gap: .4em;
  font-size: clamp(2.75rem, 5.4vw, 5rem);
  font-weight: 300;
  line-height: 1;
}
.bar-head__title:focus { outline: none; }
.bar-head__jp { font-size: .42em; letter-spacing: 0; }
.bar-head__intro { max-width: 24em; font-size: clamp(1.25rem, 1.9vw, 1.75rem); font-weight: 300; line-height: 1.3; }
.bar-head__note { font-size: .9375rem; color: var(--mute); }

/* until «Да, мне есть 18» only the head shows, softly out of focus under the gate */
.js .page--bar.is-gated .bar-head { filter: blur(.375rem); opacity: .55; }
.js .page--bar.is-gated .bar-content { min-height: 60vh; min-height: 60svh; } /* the gate sits over the page, not the footer */
@media (prefers-reduced-motion: no-preference) {
  .bar-head { transition: filter var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
}
.bar-nojs { padding: 1rem 1.125rem; border-left: 1px solid var(--ink); background: rgba(255, 255, 255, .6); }

/* ---------- the card ---------- */
.bar-content { padding-bottom: clamp(2rem, 5vw, 5rem); }
/* the groups flow in two columns where there is room, like the printed card */
.bar-sec__groups { columns: 2 22rem; column-gap: clamp(2rem, 4.4vw, 4.5rem); }
.bar-group { break-inside: avoid; padding-bottom: clamp(1.75rem, 3vw, 2.5rem); }
.bar-group__title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding-bottom: .5rem;
  font-size: .9375rem; font-weight: 600; line-height: 1.3;
  color: var(--ink);
}
.bar-group__price { font-weight: 400; font-variant-numeric: tabular-nums; }
.bar-group__list { margin: 0; padding: 0; }

.bar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  column-gap: 1rem;
  padding: .625rem 0 .6875rem;
  border-top: 1px solid var(--line);
}
.bar-item__main { display: grid; gap: .125rem; min-width: 0; }
.bar-item__name { font-size: 1.0625rem; line-height: 1.35; }
.bar-item__note { font-size: .9375rem; line-height: 1.4; color: var(--ink-2); }
.bar-item__vol { font-size: .8125rem; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-item__price { min-width: 4.5em; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* names only (classic cocktails at one price): two short columns */
.bar-group__list--plain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }

.bar-sec__note {
  max-width: 30em;
  margin-top: .25rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line-strong);
  font-size: 1rem; line-height: 1.45;
  color: var(--ink-2);
}

@media (max-width: 599px) {
  /* phones: name and note on the left, the price on the right with its volume under it */
  .bar-item { grid-template-columns: minmax(0, 1fr) auto; }
  .bar-item__main { grid-column: 1; grid-row: 1 / span 2; }
  .bar-item__price { grid-column: 2; grid-row: 1; min-width: 0; }
  .bar-item__vol { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
}

/* ---------- 18+ gate (a centred kalka window, js/ui/age-gate.js) ---------- */
.age-gate .panel__sheet { width: min(28rem, calc(100vw - 2 * var(--gutter))); }
.age-gate .panel__koi { display: none; }
.age-gate__body { padding-top: 1.5rem; }
.age-gate__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.age-gate__yes { min-height: 3.25rem; padding-inline: 1.75rem; }
.age-gate__no { font-size: 1rem; }
.age-gate__legal { margin-top: 1.75rem; font-size: .8125rem; line-height: 1.4; color: var(--mute); }
