/* Республіка — сторінка меню. Палітра і шрифти — зі styles.css */
.page-menu { background: var(--mist); }
.hdr-book span { display: none; }
.hdr-book { padding: 0 12px; }
@media (min-width: 480px) { .hdr-book span { display: inline; } .hdr-book { padding: 0 18px; } }

.m-hero { background: radial-gradient(60% 90% at 90% 0%, rgba(255, 122, 182, .3), transparent 60%), radial-gradient(60% 90% at 0% 100%, rgba(107, 140, 255, .28), transparent 65%), var(--night); color: var(--on-dark); padding: clamp(24px, 5vw, 56px) max(5vw, 18px) clamp(28px, 4vw, 44px); }
.m-hero h1 { color: #fff; margin-bottom: .3em; }
.m-hero .lead { color: var(--on-dark-2); margin-bottom: 22px; }
.m-search { position: relative; display: flex; align-items: center; max-width: 620px; }
.m-search > .i { position: absolute; left: 18px; color: var(--on-dark-2); pointer-events: none; }
.m-search input { width: 100%; min-height: 56px; border-radius: 999px; border: 1px solid rgba(242, 238, 255, .2); background: rgba(242, 238, 255, .08); color: #fff; font: 500 16px var(--f-body); padding: 0 52px 0 50px; -webkit-appearance: none; appearance: none; }
.m-search input::placeholder { color: var(--on-dark-2); }
.m-search input:focus { outline: none; border-color: var(--rose); background: rgba(242, 238, 255, .12); }
.m-search input::-webkit-search-cancel-button { display: none; }
.m-clear { position: absolute; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--on-dark); display: grid; place-items: center; cursor: pointer; }

/* Доставка під пошуком */
.m-glovo { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(242, 238, 255, .08); border: 1px solid rgba(242, 238, 255, .18); color: var(--on-dark); font-weight: 700; font-size: 15px; text-decoration: none; }
.m-glovo:hover { border-color: var(--rose-hi); color: var(--rose-hi); }
.m-glovo .i { color: var(--rose-hi); }
.m-glovo .i-sm { width: 15px; height: 15px; opacity: .7; }

/* Розділи: плитки, що вміщаються без горизонтальної прокрутки на будь-якому екрані */
.m-secs { box-sizing: content-box; max-width: 1240px; margin: 0 auto; padding: 16px max(5vw, 14px) 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .m-secs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 22px; } }
.m-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--mist-2); background: var(--paper); color: var(--ink); font: 700 13.5px/1.2 var(--f-body); cursor: pointer; text-align: center; transition: background .15s, color .15s, border-color .15s; -webkit-tap-highlight-color: transparent; }
.m-tab:hover { border-color: #ffc4dd; }
.m-tab .i { width: 22px; height: 22px; color: #c2397c; }
.m-tab span { overflow-wrap: anywhere; }
.m-tab small { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
@media (min-width: 900px) { .m-tab { flex-direction: row; gap: 8px; min-height: 56px; font-size: 15px; padding: 8px 12px; } .m-tab small { background: var(--mist); border-radius: 999px; padding: 1px 7px; } }
.m-tab[aria-selected="true"] { background: var(--night); color: #fff; border-color: var(--night); }
.m-tab[aria-selected="true"] .i { color: var(--rose-hi); }
.m-tab[aria-selected="true"] small { color: var(--on-dark-2); background: rgba(242, 238, 255, .12); }

/* Липка панель: поточний розділ + підкатегорії в один рядок */
.m-bar { position: sticky; top: var(--hdr); z-index: 40; background: rgba(243, 240, 248, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--mist-2); }
.m-bar-in { box-sizing: content-box; max-width: 1240px; margin: 0 auto; padding: 8px max(5vw, 14px); display: flex; align-items: center; gap: 8px; }
.m-cur { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--night); color: #fff; font: 700 14px var(--f-body); cursor: pointer; max-width: 46vw; }
.m-cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-cur .i { width: 18px; height: 18px; flex: none; }
.m-cur .i-grid { color: var(--rose-hi); }
.m-cur .i-chev { transition: transform .2s; opacity: .8; }
.m-cur[aria-expanded="true"] .i-chev { transform: rotate(180deg); }
@media (max-width: 520px) { .m-cur span { display: none; } .m-cur { padding: 0 10px; } }
.m-chips-wrap { position: relative; flex: 1; min-width: 0; }
.m-chips-wrap::before, .m-chips-wrap::after { content: ""; position: absolute; top: 0; bottom: 0; width: 22px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .2s; }
.m-chips-wrap::before { left: 0; background: linear-gradient(90deg, rgba(243, 240, 248, 1), rgba(243, 240, 248, 0)); }
.m-chips-wrap::after { right: 0; background: linear-gradient(270deg, rgba(243, 240, 248, 1), rgba(243, 240, 248, 0)); }
.m-chips-wrap.fade-l::before, .m-chips-wrap.fade-r::after { opacity: 1; }
.scroller { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.scroller::-webkit-scrollbar { display: none; }
.scroller > * { flex: none; }
.m-chip { cursor: pointer; font-family: var(--f-body); display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; background: transparent; border: 1px solid transparent; }
.m-chip:hover { color: var(--ink); }
.m-chip.on { background: var(--rose-soft); color: #9c1f5e; border-color: #ffc4dd; }

/* Розкривний список усіх розділів і підкатегорій */
.m-sheet { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--mist-2); box-shadow: 0 30px 50px -30px rgba(18, 20, 46, .45); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.m-sheet-in { box-sizing: content-box; max-width: 1240px; margin: 0 auto; padding: 14px max(5vw, 14px) 18px; display: grid; gap: 14px; }
@media (min-width: 900px) { .m-sheet-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; } }
.m-sh-sec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 15px var(--f-body); letter-spacing: 0; }
.m-sh-sec h3 .i { width: 18px; height: 18px; color: #c2397c; }
.m-sh-sec h3 small { font-weight: 600; color: var(--ink-2); }
.m-sh-list { display: flex; flex-wrap: wrap; gap: 6px; }
.m-sh-list button { min-height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mist-2); background: var(--mist); color: var(--ink); font: 600 13.5px var(--f-body); cursor: pointer; }
.m-sh-list button:hover, .m-sh-list button.on { background: var(--rose-soft); border-color: #ffc4dd; color: #9c1f5e; }
.m-sh-empty { font-size: 13px; color: var(--ink-2); margin: 0; }

/* Вміст */
.m-body, .m-book { box-sizing: content-box; max-width: 1240px; }
.m-body { padding: 26px max(5vw, 16px) 20px; min-height: 50vh; }
.m-msg { color: var(--ink-2); font-weight: 600; margin: 8px 0 18px; }
.m-cat { margin-bottom: 40px; scroll-margin-top: 130px; }
.m-cat-title { display: flex; align-items: center; gap: 10px; font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 16px; }
.m-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .m-grid { gap: 14px; } }
@media (min-width: 1100px) { .m-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }

.m-card { background: var(--paper); border-radius: var(--r); box-shadow: 0 10px 30px -24px rgba(18, 20, 46, .5); border: 1px solid rgba(23, 22, 58, .05); overflow: hidden; display: flex; flex-direction: column; }
.m-photo { flex: none; width: 100%; aspect-ratio: 4 / 3; position: relative; display: grid; place-items: center; color: var(--rose-hi); background: var(--night); }
.m-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-photo .i { width: 30px; height: 30px; opacity: .8; }
.m-photo.ph-1 { background: radial-gradient(70% 90% at 80% 10%, #c4568f, transparent 60%), radial-gradient(70% 90% at 10% 100%, #4a5fd0, transparent 60%), var(--night); }
.m-photo.ph-2 { background: linear-gradient(160deg, #e0679f, #3b2a7a 75%); }
.m-photo.ph-3 { background: radial-gradient(60% 50% at 50% 30%, #6e7fd6, var(--night) 85%); }
.m-photo.ph-4 { background: linear-gradient(140deg, #8a3f7f, var(--night-3)); }
.m-photo.ph-5 { background: linear-gradient(200deg, #3d4bb0, #12142e); }
.m-photo.ph-6 { background: radial-gradient(90% 80% at 30% 30%, #ff7ab6, #5a3aa0 50%, var(--night-3)); }
.m-cbody { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.m-head { display: flex; flex-direction: column; gap: 2px; }
@media (min-width: 700px) { .m-cbody { padding: 16px 18px 18px; gap: 8px; } .m-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; } }
.m-name { font-family: var(--f-body); font-weight: 700; font-size: 15px; overflow-wrap: anywhere; line-height: 1.3; margin: 0; letter-spacing: 0; }
.m-price { flex: none; font-family: var(--f-display); font-weight: 500; font-size: 17px; color: #3d4bb0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-desc { font-size: 13px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.m-price { font-size: 15px; }
@media (min-width: 700px) { .m-name { font-size: 17px; } .m-price { font-size: 17px; } .m-desc { font-size: 14.5px; line-height: 1.5; } }
.m-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--mist); color: var(--ink-2); line-height: 1.3; }
.m-badge .i { width: 13px; height: 13px; }
.b-hit { background: var(--rose); color: var(--night-3); }
.b-new { background: #dfe6ff; color: #2b3a9e; }
.b-fire { background: #ffe5d6; color: #b2420f; }
.b-veg { background: #dcf3e6; color: #22704a; }
.b-spicy { background: #ffe0e0; color: #b3261e; }
.b-18 { background: var(--night); color: #fff; }
.bc-rose { background: var(--rose); color: var(--night-3); }
.bc-blue { background: #dfe6ff; color: #2b3a9e; }
.bc-orange { background: #ffe5d6; color: #b2420f; }
.bc-green { background: #dcf3e6; color: #22704a; }
.bc-red { background: #ffe0e0; color: #b3261e; }
.bc-violet { background: #ece2ff; color: #5b2fb0; }
.bc-gold { background: #fff1c9; color: #8a5a00; }
.bc-night { background: var(--night-2); color: #fff; }
.m-cat-title .b-18 { font-family: var(--f-body); font-size: 12px; }
.m-weight { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.m-vars { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 4px; }
.m-vars li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 5px 0; border-top: 1px dashed var(--mist-2); }
.m-vars b { font-family: var(--f-display); font-weight: 500; color: #3d4bb0; white-space: nowrap; }
.m-place { font-size: 12.5px; color: var(--ink-2); margin: 0; font-weight: 600; }
.m-empty { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.m-empty .i { width: 44px; height: 44px; color: #c2397c; margin-bottom: 10px; }

/* Бронювання внизу */
.m-book { padding: 10px max(5vw, 16px) 48px; }
.m-book .call-alt { grid-template-columns: 1fr; }
@media (min-width: 560px) { .m-book .call-alt { grid-template-columns: 1fr 1fr; } }
.m-legal { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); margin-top: 18px; }
.m-legal .badge18 { width: 40px; height: 40px; color: var(--ink); font-size: 13px; }
.ftr-slim { padding-top: 8px; }
.ftr-slim .legal { margin-top: 20px; }
.ftr-slim a { color: var(--on-dark); text-decoration: none; }

/* Ілюстрації алкоголю (art.js) */
.m-art { background: radial-gradient(80% 90% at 85% 0%, rgba(255, 122, 182, .28), transparent 60%), radial-gradient(80% 90% at 10% 100%, rgba(107, 140, 255, .3), transparent 65%), var(--night); }
.m-art svg.art { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
@media (min-width: 700px) { .has-art .m-photo { aspect-ratio: 16 / 8; } }
.m-art svg.art { inset: 2px; width: calc(100% - 4px); height: calc(100% - 4px); }
@media (min-width: 700px) { .m-art svg.art { inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); } }

/* Примітка до підкатегорії (кальяни: смак і бустери) */
.m-note { display: flex; gap: 12px; align-items: flex-start; margin: -4px 0 16px; padding: 14px 16px; border-radius: var(--r); background: linear-gradient(120deg, var(--rose-soft), #e3e9ff); border: 1px solid #ffd0e4; }
.m-note .i { flex: none; width: 24px; height: 24px; color: #c2397c; margin-top: 1px; }
.m-note p { margin: 0; font-size: 14.5px; line-height: 1.5; font-weight: 600; color: var(--ink); }
