/* Biani — вітрина. Палітра взята з теми choiceqr: #132213 / #152B14 / #163315, акцент #d6ca37, Montserrat. */
:root {
  --bg: #132213;
  --surface: #152b14;
  --surface-2: #1b3a1a;
  --line: rgba(255, 255, 255, .08);
  --text: #f8f8f8;
  --muted: #a3ad9f;
  --dim: #828282;
  --accent: #d6ca37;
  --accent-ink: #1a1a08;
  --danger: #ff7a6b;
  --radius: 18px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --gutter: 16px;
  --maxw: 1240px;
  --nav-top: 60px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
[hidden] { display: none !important; }

.bg-image {
  position: absolute; inset: 0 0 auto; height: 720px; z-index: -1;
  background-size: cover; background-position: center top; opacity: .55;
  -webkit-mask-image: linear-gradient(#000 30%, transparent);
  mask-image: linear-gradient(#000 30%, transparent);
}

/* Верхня панель */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: var(--nav-top); padding: 0 var(--gutter);
  background: rgba(19, 34, 19, .72);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); text-decoration: none;
}
.icon-btn:hover { background: rgba(255, 255, 255, .09); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700;
}
.cart-btn-sum:empty { display: none; }
.badge-count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-size: 11px; font-weight: 800; display: grid; place-items: center;
}

/* Hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 28px var(--gutter) 8px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 26px; min-height: 300px;
  display: grid; align-items: end; background: var(--surface) center/cover no-repeat;
  box-shadow: var(--shadow);
}
.hero-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,34,19,0) 35%, rgba(19,34,19,.92)); }
.hero-inner { position: relative; z-index: 1; padding: 22px; display: grid; gap: 14px; }
/* Логотип уже є на обкладинці — заголовок лишаємо для SEO і скрінрідерів */
.hero-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero-card { grid-template-columns: minmax(0, 1fr); }
.hero-desc { color: #dfe6da; max-width: 640px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: rgba(19, 34, 19, .7); border: 1px solid var(--line); font-size: 13px; font-weight: 500;
  backdrop-filter: blur(6px); text-decoration: none;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6bd46b; box-shadow: 0 0 0 3px rgba(107, 212, 107, .2); }
.dot.closed { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 122, 107, .2); }

.promo {
  max-width: var(--maxw); margin: 12px auto 0; padding: 0 var(--gutter);
}
.promo > div {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(214, 202, 55, .18), rgba(214, 202, 55, .04)); border: 1px solid rgba(214, 202, 55, .35);
  color: #f3eba0; font-weight: 600; font-size: 14px;
}

/* Навігація меню */
.menu-nav {
  position: sticky; top: var(--nav-top); z-index: 20;
  max-width: var(--maxw); margin: 18px auto 0; padding: 10px var(--gutter) 0;
  background: linear-gradient(var(--bg) 85%, rgba(19, 34, 19, 0));
}
.sections-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.sections-tabs::-webkit-scrollbar, .cats::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cats-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.cats { flex: 1; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-link {
  flex: none; padding: 10px 12px 12px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.cat-link.active { color: var(--text); border-color: var(--accent); }
.search-toggle { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; }
.search-row { padding: 10px 0; }
.search-row input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); padding: 0 14px; font: inherit; outline: none;
}
.search-row input:focus { border-color: var(--accent); }

.section-note { max-width: var(--maxw); margin: 12px auto 0; padding: 0 var(--gutter); color: var(--muted); font-size: 14px; }
.section-note div { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); }

/* Меню */
.menu { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.cat-block { padding-top: 26px; scroll-margin-top: calc(var(--nav-top) + 120px); }
.cat-block h2 { font-size: 22px; font-weight: 800; }
.cat-desc { margin: 6px 0 0; color: var(--muted); font-size: 14px; white-space: pre-line; max-width: 760px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); text-align: left; padding: 0; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); border-color: rgba(214, 202, 55, .35); box-shadow: var(--shadow); }
.card.off { opacity: .55; }
.ph { position: relative; aspect-ratio: 4 / 3;background: var(--surface-2); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, opacity .3s; opacity: 0; }
.ph img.ok { opacity: 1; }
.card:hover .ph img { transform: scale(1.04); }
.ph.empty { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #234a22, var(--surface-2)); }
.ph.empty img { width: 38%; height: auto; opacity: .22; object-fit: contain; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card-name { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { color: var(--dim); font-size: 12px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.price { font-weight: 800; color: var(--accent); font-size: 15px; white-space: nowrap; }
.price s { color: var(--dim); font-weight: 500; font-size: 12px; margin-left: 4px; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.bdg { padding: 4px 8px; border-radius: 8px; font-size: 11px; font-weight: 700; background: rgba(19, 34, 19, .82); backdrop-filter: blur(4px); }
.bdg-chef { background: var(--accent); color: var(--accent-ink); }
.bdg-hit { background: #ff9447; color: #2a1200; }
.bdg-new { background: #57c7ff; color: #00263a; }
.bdg-spicy { background: #ff5b4a; color: #fff; }
.bdg-veg { background: #6bd46b; color: #072c07; }
.bdg-off { background: rgba(0, 0, 0, .75); color: #fff; }

.add {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--accent); color: var(--accent-ink); font-size: 22px; font-weight: 600; line-height: 1;
}
.add:active { transform: scale(.92); }
.stepper { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 999px; height: 36px; }
.stepper button { width: 34px; height: 36px; border: 0; background: none; color: inherit; font-size: 20px; font-weight: 700; }
.stepper span { min-width: 18px; text-align: center; font-weight: 800; font-size: 14px; }
.stepper.lg { height: 50px; } .stepper.lg button { width: 48px; height: 50px; } .stepper.lg span { min-width: 26px; font-size: 16px; }

.empty-state { text-align: center; color: var(--muted); padding: 60px 0; }

/* Галерея і футер */
.gallery-block { max-width: var(--maxw); margin: 0 auto; padding: 24px var(--gutter) 10px; }
.gallery-block h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.gallery { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.gallery img { flex: none; width: 260px; height: 320px; object-fit: cover; border-radius: 16px; scroll-snap-align: start; }

.footer { max-width: var(--maxw); margin: 30px auto 0; padding: 30px var(--gutter) 120px; border-top: 1px solid var(--line); display: grid; gap: 26px; }
@media (min-width: 860px) { .footer { grid-template-columns: 1.1fr 1fr 1.3fr; } }
.footer h3 { font-size: 15px; margin-bottom: 10px; color: var(--accent); }
.footer p { margin: 4px 0; color: #d9dfd5; }
.footer .hours { display: grid; grid-template-columns: auto 1fr; gap: 3px 16px; font-size: 14px; color: #d9dfd5; }
.footer .hours .today { color: var(--accent); font-weight: 700; }
.footer .links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.map { width: 100%; height: 220px; border: 0; border-radius: 16px; filter: invert(.9) hue-rotate(180deg) saturate(.6); }
.copy { grid-column: 1 / -1; color: var(--dim); font-size: 12px; }

/* Плаваючий кошик (мобільний) */
.cart-bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 25;
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: 18px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  animation: rise .25s ease;
}
.cart-bar b { margin-left: auto; }
.cart-bar-count { display: grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px; background: rgba(0, 0, 0, .14); font-size: 14px; }
@media (min-width: 900px) { .cart-bar { left: auto; width: 360px; } }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* Модальні вікна */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(5, 12, 5, .6); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; z-index: 50; background: var(--bg); color: var(--text); box-shadow: var(--shadow);
  left: 0; right: 0; bottom: 0; max-height: 92vh; border-radius: 24px 24px 0 0; overflow: auto;
  animation: up .28s cubic-bezier(.2, .9, .3, 1); overscroll-behavior: contain;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 900px) {
  .dish-sheet { left: 50%; top: 50%; bottom: auto; right: auto; width: 880px; max-height: 88vh; transform: translate(-50%, -50%); border-radius: 26px; animation: pop .22s ease; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -47%); } }
  .drawer { left: auto; top: 0; width: 440px; max-height: none; height: 100%; border-radius: 0; animation: slide .26s cubic-bezier(.2, .9, .3, 1); display: flex; flex-direction: column; }
  @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
}

.dish-wrap { display: grid; }
@media (min-width: 900px) { .dish-wrap { grid-template-columns: 1fr 1fr; } }
.dish-photo { position: relative; aspect-ratio: 4 / 3;background: var(--surface-2); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-photo.empty { display: grid; place-items: center; }
.dish-photo.empty img { width: 30%; height: auto; opacity: .25; }
.dish-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(19, 34, 19, .75); backdrop-filter: blur(6px); }
.dish-info { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.dish-info h2 { font-size: 22px; font-weight: 800; }
.dish-info .desc { color: #d9dfd5; white-space: pre-line; margin: 0; }
.dish-info .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.dish-info .badges { position: static; }
.dish-actions { margin-top: auto; display: flex; gap: 12px; align-items: center; padding-top: 10px; position: sticky; bottom: 0; background: var(--bg); padding-bottom: 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 14px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn.wide { flex: 1; }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.handle { width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .25); margin: 10px auto 0; }
@media (min-width: 900px) { .handle { display: none; } }

/* Кошик / оформлення */
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.drawer-head h2 { flex: 1; font-size: 18px; }
.drawer-body { padding: 16px; flex: 1; overflow: auto; }
.drawer-foot { position: sticky; bottom: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-foot:empty { display: none; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line img, .line .noimg { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.line-name { font-weight: 600; font-size: 14px; }
.line-price { color: var(--muted); font-size: 13px; }
.line .stepper { height: 32px; } .line .stepper button { width: 30px; height: 32px; font-size: 18px; }
.progress { padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--muted); }
.progress .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin-top: 8px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width .3s; }
.upsell h3 { font-size: 15px; margin: 18px 0 10px; }
.upsell-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.mini { flex: none; width: 128px; background: var(--surface); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); text-align: left; padding: 0; position: relative; }
.mini img, .mini .noimg { width: 100%; aspect-ratio: 1.2; object-fit: cover; background: var(--surface-2); }
.mini div { padding: 8px; font-size: 12px; font-weight: 600; line-height: 1.25; height: 48px; overflow: hidden; }
.mini .add { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; font-size: 18px; }
.mini b { display: block; padding: 0 8px 8px; color: var(--accent); font-size: 13px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.sum-row.total { color: var(--text); font-size: 17px; font-weight: 800; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface); margin-bottom: 16px; }
.seg button { height: 42px; border: 0; border-radius: 10px; background: none; font-weight: 700; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; outline: none;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field.err input, .field.err select { border-color: var(--danger); }
.field .hint { font-size: 12px; color: var(--dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-list { display: grid; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.radio input { accent-color: var(--accent); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--accent); }
.persons { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.persons .stepper { background: var(--surface-2); color: var(--text); }
.form-error { padding: 12px 14px; border-radius: 12px; background: rgba(255, 122, 107, .12); border: 1px solid rgba(255, 122, 107, .4); color: #ffc2b9; font-size: 14px; }
.notice { padding: 12px 14px; border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.success { text-align: center; padding: 40px 10px; display: grid; gap: 14px; justify-items: center; }
.success .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; animation: pop2 .4s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop2 { from { transform: scale(.4); opacity: 0; } }
.success h3 { font-size: 22px; }
.success p { color: var(--muted); margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: .25s;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 719px) {
  .hero-card { min-height: 260px; }
  .hero-inner { padding: 16px; gap: 10px; }
  .hero-desc { font-size: 13px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; font-size: 12px; padding: 6px 10px; }
}
.section-note small { display: block; margin-top: 4px; color: var(--dim); }
.field.err input:focus, .field.err select:focus { border-color: var(--danger); }
@media (min-width: 720px) {
  .hero-card { min-height: 380px; }
  .hero-inner { padding: 34px; }
}
/* Кнопка броні в шапці */
.book-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(214, 202, 55, .5); background: rgba(214, 202, 55, .1); color: var(--accent); font-weight: 700;
}
.book-btn:hover { background: rgba(214, 202, 55, .2); }
@media (max-width: 480px) { .book-btn span { display: none; } .book-btn { width: 40px; padding: 0; justify-content: center; } }
.chip-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; cursor: pointer; }
button.chip { cursor: pointer; font: inherit; font-size: 13px; color: inherit; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Афіша */
.events-block { max-width: var(--maxw); margin: 22px auto 0; padding: 0 var(--gutter); }
.events-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.events-head h2 { font-size: 22px; font-weight: 800; }
.events-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.events { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.ev {
  flex: none; width: 250px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .18s, border-color .18s;
}
.ev:hover { transform: translateY(-2px); border-color: rgba(214, 202, 55, .35); }
.ev-ph { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); }
.ev-ph img, .ev-ph video { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; padding-left: 4px; background: rgba(19, 34, 19, .7); backdrop-filter: blur(6px);
  color: var(--accent); font-size: 18px; pointer-events: none; transition: opacity .3s;
}
.ev-ph.playing .ev-play { opacity: 0; }
.dish-photo video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.ev-ph.empty { display: grid; place-items: center; background: radial-gradient(circle at 30% 20%, #234a22, var(--surface-2)); }
.ev-ph.empty img { width: 40%; height: auto; opacity: .3; }
.ev-date {
  position: absolute; top: 10px; left: 10px; display: grid; justify-items: center; min-width: 54px; padding: 6px 8px; border-radius: 12px;
  background: rgba(19, 34, 19, .85); backdrop-filter: blur(6px); line-height: 1.1;
}
.ev-date b { font-size: 22px; color: var(--accent); } .ev-date span { font-size: 12px; font-weight: 600; } .ev-date i { font-style: normal; font-size: 11px; color: var(--muted); }
.bdg-live { position: absolute; top: 10px; right: 10px; background: #ff5b4a; color: #fff; }
.ev-body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.ev-body h3 { font-size: 16px; font-weight: 800; }
.ev-meta { color: var(--muted); font-size: 12.5px; }
.ev-price { color: var(--accent); font-weight: 700; font-size: 13px; }
.ev-body .btn { margin-top: 6px; }
.btn.sm { height: 40px; font-size: 14px; padding: 0 14px; border-radius: 12px; }
.btn.tg { background: #2aabee; color: #fff; }
.ev-photo { aspect-ratio: 4 / 5; }
@media (min-width: 900px) { .ev-photo { aspect-ratio: auto; min-height: 100%; } }

/* Форма броні */
.loc-list { display: grid; gap: 8px; }
.loc { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 2px; }
.loc b { font-size: 14px; } .loc span { font-size: 12px; color: var(--muted); }
.loc.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.date-row { display: flex; flex-wrap: wrap; gap: 6px; }
.date-other { padding: 4px 6px 4px 10px; }
.date-other input { background: none; border: 0; color: inherit; font: inherit; font-size: 13px; width: 130px; color-scheme: dark; }
.date-other.on input { color: var(--accent-ink); color-scheme: light; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 6px; }
.slot { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.slot.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.bk-event { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; background: linear-gradient(90deg, rgba(214, 202, 55, .18), rgba(214, 202, 55, .04)); border: 1px solid rgba(214, 202, 55, .35); }
.bk-event span { color: var(--muted); font-size: 13px; }
.field .hint a { color: var(--accent); }
.success .link, .bk-card .link { color: var(--accent); font-weight: 600; text-decoration: none; }

/* Сторінка броні */
.bk-page { max-width: 560px; margin: 0 auto; padding: 30px var(--gutter) 60px; }
.bk-card { background: rgba(21, 43, 20, .92); border: 1px solid var(--line); border-radius: 24px; padding: 28px 22px; display: grid; gap: 14px; justify-items: center; text-align: center; box-shadow: var(--shadow); }
.bk-card h1 { font-size: 22px; font-weight: 800; }
.bk-icon { font-size: 44px; line-height: 1; }
.bk-summary { width: 100%; display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.bk-summary.old b { text-decoration: line-through; color: var(--muted); }
.bk-summary.alt { border-color: var(--accent); }
.bk-summary span { color: var(--muted); font-size: 13px; }
.bk-summary .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.bk-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(214, 202, 55, .1); width: 100%; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.bk-actions .btn { flex: 1; min-width: 140px; }
.btn.small { height: 40px; font-size: 13px; }
.muted { color: var(--muted); margin: 0; } .small { font-size: 13px; }

/* Відстеження замовлення */
.track-steps { list-style: none; margin: 6px 0; padding: 0; width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.track-steps li { display: grid; justify-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); position: relative; text-align: center; }
.track-steps li i { width: 16px; height: 16px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line); z-index: 1; }
.track-steps li::before { content: ''; position: absolute; top: 7px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.track-steps li:first-child::before { display: none; }
.track-steps li.done { color: var(--muted); }
.track-steps li.done i { background: var(--accent); border-color: var(--accent); }
.track-steps li.done::before, .track-steps li.now::before { background: var(--accent); }
.track-steps li.now { color: var(--text); font-weight: 700; }
.track-steps li.now i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(214, 202, 55, .25); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(214, 202, 55, .08); } }
.track-items { text-align: left; font-size: 14px; }
.track-items div { display: flex; justify-content: space-between; gap: 10px; }
.track-items .total { font-weight: 800; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
