[data-sf-template] .bh { background: var(--sf-color-surface-default); }
/* На узких экранах и рядом с боковой корзиной получение занимает отдельную строку. */
[data-sf-template] .bh-main { max-width: 1320px; margin: 0 auto; box-sizing: border-box; display: grid; align-items: center; gap: var(--sf-space-sm) var(--sf-space-sm);
  grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: 'menu brand account cart' 'recv recv recv recv';
  padding: var(--sf-space-sm) max(16px, var(--sf-frame-gutter, 16px), calc((100% - var(--sf-frame-width, 1320px)) / 2)) var(--sf-space-lg); }
[data-sf-template] .bh-icon.bh-menu { grid-area: menu; background: transparent; margin-left: -12px; }
[data-sf-template] .bh-brand { grid-area: brand; justify-self: center; min-width: 0; font-family: var(--sf-font-heading); font-weight: 700; font-size: 18px;
  color: var(--sf-color-brand-default); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-sf-template] .bh-brand img { display: block; width: 120px; height: 32px; max-width: 100%; object-fit: contain; }
[data-sf-template] .bh-icon { width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-sunken);
  color: var(--sf-color-text-primary); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font: inherit; }
@media (hover: hover) and (pointer: fine) { [data-sf-template] .bh-icon.bh-menu:hover { background: var(--sf-color-surface-sunken); } }

[data-sf-template] .bh-account { grid-area: account; position: relative; min-width: 52px; height: 48px; padding: 0 2px; border: 0; background: transparent;
  color: var(--sf-color-text-primary); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font: inherit; cursor: pointer; }
[data-sf-template] .bh-account-icon { width: 38px; height: 38px; border-radius: 50%; background: var(--sf-color-surface-sunken); display: inline-flex; align-items: center; justify-content: center; }
[data-sf-template] .bh-points { position: absolute; left: 50%; bottom: -2px; transform: translateX(-50%); height: 20px; display: inline-flex; align-items: center; gap: 3px;
  padding: 0 7px 0 4px; border-radius: var(--sf-radius-pill); border: 2px solid var(--sf-color-surface-default); background: var(--sf-color-signal-warning);
  color: var(--sf-color-text-inverse); font-size: 12px; font-weight: 800; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-sf-template] .bh-coin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sf-color-text-inverse); box-sizing: border-box; }
[data-sf-template] .bh-account-label { display: none; font-weight: 600; }

[data-sf-template] .bh-recv { grid-area: recv; min-width: 0; border-radius: var(--sf-radius-lg); background: var(--sf-color-surface-raised); border: 1px solid var(--sf-color-line-default); overflow: hidden; }
[data-sf-template] .bh-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 6px; padding: 4px; border-radius: var(--sf-radius-md); background: var(--sf-color-surface-sunken); }
[data-sf-template] .bh-seg button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px; border: 0;
  border-radius: var(--sf-radius-sm); background: transparent; color: var(--sf-color-text-muted); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
[data-sf-template] .bh-seg button.is-on { background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary); font-weight: 700; box-shadow: var(--sf-shadow-sm); }
[data-sf-template] .bh-addr { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 14px 12px; border: 0; background: transparent; text-align: left;
  color: var(--sf-color-text-primary); font: inherit; cursor: pointer; }
[data-sf-template] .bh-addr > svg { flex: none; color: var(--sf-color-text-muted); }
[data-sf-template] .bh-addr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
/* Телефон: адрес в две строки — в одну обрезались дом и квартира («Екатеринбург, проспект Ленина,…») и название точки. */
[data-sf-template] .bh-addr-text b { font-size: 17px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
[data-sf-template] .bh-addr-text span { font-size: 14px; color: var(--sf-color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-sf-template] .bh-icon:focus-visible, [data-sf-template] .bh-seg button:focus-visible, [data-sf-template] .bh-addr:focus-visible,
[data-sf-template] .bh-account:focus-visible, [data-sf-template] .bh-brand:focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }

[data-sf-template] .bh-entry { grid-area: cart; display: flex; align-items: center; min-width: 0; }
[data-sf-template] .bh-cart { white-space: nowrap; display: inline-flex; gap: var(--sf-space-sm); align-items: center; min-height: 44px; padding: 0 var(--sf-space-lg);
  border: 0; border-radius: var(--sf-radius-pill); background: var(--sf-color-brand-default); color: var(--sf-color-text-inverse); font: inherit; font-weight: 700; cursor: pointer; }
[data-sf-template] .bh-cart b { min-width: 22px; height: 22px; border-radius: var(--sf-radius-pill); display: inline-grid; place-items: center;
  background: var(--sf-color-surface-raised); color: var(--sf-color-brand-active); font-size: 0.8em; }
[data-sf-template] .bh-cart:focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }
@media (max-width: 899px) { [data-sf-template] .bh-entry.is-desktop { display: none; } [data-sf-template] .bh-entry.is-phone { justify-self: end; } }
@media (min-width: 900px) {
  [data-sf-template] .bh { border-bottom: 1px solid var(--sf-color-line-default); background: var(--sf-color-surface-raised); }
  [data-sf-template] .bh-main { grid-template-columns: 44px auto minmax(0, max-content) minmax(0, 1fr) auto auto; grid-template-areas: 'menu brand recv . cart account';
    gap: var(--sf-space-xl); padding: var(--sf-space-md) max(24px, var(--sf-frame-gutter, 24px), calc((100% - var(--sf-frame-width, 1320px)) / 2)); }
  [data-sf-template] .bh-brand { font-size: 22px; justify-self: start; }
  [data-sf-template] .bh-brand img { object-position: left center; }
  [data-sf-template] .bh-recv { display: flex; align-items: center; background: var(--sf-color-surface-sunken); border: 0; overflow: visible; }
  [data-sf-template] .bh-seg { flex: none; width: 300px; margin: 4px; padding: 0; background: transparent; }
  [data-sf-template] .bh-seg button { min-height: 44px; }
  [data-sf-template] .bh-addr { width: auto; min-width: 0; max-width: 340px; padding: 6px 14px 6px 10px; }
  [data-sf-template] .bh-addr-text b { font-size: 16px; display: block; overflow: visible; }
  [data-sf-template] .bh-addr-text span { font-size: 13px; white-space: normal; overflow-wrap: anywhere; }
  [data-sf-template] .bh-entry.is-phone { display: none; }
}
@media (min-width: 900px) and (max-width: 1319px) {
  [data-sf-template] .bh-main { grid-template-columns: 44px minmax(0, 1fr) auto auto; grid-template-areas: 'menu brand cart account' 'recv recv recv recv';
    gap: var(--sf-space-sm) var(--sf-space-md); }
  [data-sf-template] .bh-seg { width: auto; }
  [data-sf-template] .bh-seg button { gap: 6px; font-size: 15px; }
  [data-sf-template] .bh-seg button svg { flex: none; }
  [data-sf-template] .bh-addr { flex: 1 1 auto; max-width: none; }
}

[data-sf-template] .bh-scrim { position: fixed; inset: 0; z-index: 1000; background: var(--sf-color-surface-scrim); display: flex; }
[data-sf-template] .bh-drawer { width: min(400px, 92vw); height: 100%; overflow-y: auto; outline: none; box-sizing: border-box; padding: var(--sf-space-lg);
  display: flex; flex-direction: column; gap: var(--sf-space-md); background: var(--sf-color-surface-default); color: var(--sf-color-text-primary); box-shadow: var(--sf-shadow-lg); }
[data-sf-template] .bh-dhead { display: flex; align-items: center; justify-content: space-between; }
[data-sf-template] .bh-dbrand { font-family: var(--sf-font-heading); font-weight: 700; font-size: 20px; }
[data-sf-template] .bh-muted { color: var(--sf-color-text-muted); font-size: 13.5px; }
[data-sf-template] .bh-guest { display: flex; flex-direction: column; gap: 6px; padding: var(--sf-space-lg); border-radius: var(--sf-radius-lg);
  background: var(--sf-color-text-primary); color: var(--sf-color-surface-default); }
[data-sf-template] .bh-guest.is-out { background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary); border: 1px solid var(--sf-color-line-default); gap: 8px; }
[data-sf-template] .bh-guest-hi { font-size: 14px; }
[data-sf-template] .bh-guest-points { font-family: var(--sf-font-heading); font-weight: 700; font-size: 26px; }
[data-sf-template] .bh-guest-level { font-size: 13px; }
[data-sf-template] .bh-guest-btn { align-self: flex-start; margin-top: 4px; padding: 8px 14px; border: 0; border-radius: var(--sf-radius-pill);
  background: var(--sf-color-brand-default); color: var(--sf-color-text-inverse); font: inherit; font-weight: 700; cursor: pointer; }
[data-sf-template] .bh-cta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 16px; border: 0; border-radius: var(--sf-radius-pill);
  background: var(--sf-color-brand-default); color: var(--sf-color-text-inverse); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
[data-sf-template] .bh-ghost { padding: 11px 16px; border: 0; border-radius: var(--sf-radius-pill); background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary);
  font: inherit; font-weight: 600; cursor: pointer; }
[data-sf-template] .bh-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 1px solid var(--sf-color-line-default);
  border-radius: var(--sf-radius-md); background: var(--sf-color-surface-raised); color: var(--sf-color-text-primary); font: inherit; text-align: left; cursor: pointer; }
[data-sf-template] .bh-venue { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--sf-radius-lg);
  background: color-mix(in srgb, var(--sf-color-brand-default) 12%, var(--sf-color-surface-raised)); }
[data-sf-template] .bh-open { color: var(--sf-color-signal-success); font-weight: 600; }
[data-sf-template] .bh-closed { color: var(--sf-color-signal-danger); font-weight: 600; }
[data-sf-template] .bh-addr-text span.bh-shut { color: var(--sf-color-signal-danger); font-weight: 600; }
/* Линии шапки = линии содержимого: поле берём у каркаса (--sf-frame-gutter), значок «≡» и круг профиля встают на его
   края — раньше на ПК было три левые линии: 24, 28 и 47 px (проверка вёрстки 16.11). */
/* Колонка содержимого у каркаса — не шире --sf-frame-width и по центру: шапка считает поле так же, своего предела ширины нет. */
[data-sf-template] header.bh .bh-main, [data-sf-template] header.bh .bh-top { max-width: none; }
[data-sf-template] .bh-account { margin-right: -15px; }
@media (min-width: 900px) { [data-sf-template] .bh-account { margin-right: -7px; } }
[data-sf-template] .bh-venue-acts { display: flex; gap: 8px; margin-top: 4px; }
[data-sf-template] .bh-venue-acts > * { flex: 1; }
[data-sf-template] .bh-list { display: flex; flex-direction: column; border-radius: var(--sf-radius-lg); background: var(--sf-color-surface-raised); border: 1px solid var(--sf-color-line-default); overflow: hidden; }
[data-sf-template] .bh-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 14px; border: 0; border-bottom: 1px solid var(--sf-color-line-default);
  background: transparent; color: var(--sf-color-text-primary); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
[data-sf-template] .bh-row:last-child { border-bottom: 0; }
@media (hover: hover) and (pointer: fine) { [data-sf-template] .bh-row:hover { background: var(--sf-color-surface-sunken); } }
[data-sf-template] .bh-row svg { color: var(--sf-color-text-muted); flex: none; }
[data-sf-template] .bh-row-label { min-width: 0; overflow-wrap: anywhere; }
[data-sf-template] .bh-row:focus-visible, [data-sf-template] .bh-cta:focus-visible, [data-sf-template] .bh-ghost:focus-visible,
[data-sf-template] .bh-tile:focus-visible, [data-sf-template] .bh-guest-btn:focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }
[data-sf-template] .bh-socials { display: flex; flex-direction: column; gap: 8px; }
[data-sf-template] .bh-social-list { display: flex; gap: 8px; flex-wrap: wrap; }
[data-sf-template] .bh-social { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--sf-radius-pill); font-weight: 600; font-size: 14px;
  background: var(--sf-color-surface-raised); border: 1px solid var(--sf-color-line-default); color: var(--sf-color-text-primary); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { [data-sf-template] .bh-social:hover { background: var(--sf-color-surface-sunken); } }
[data-sf-template] .bh-social:focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; }
[data-sf-template] .bh-social-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sf-color-brand-default); }
[data-sf-template] .bh-drawer > * { flex: none; }
[data-sf-template] .bh-drawer > .bh-foot { flex: 1 0 auto; display: flex; align-items: flex-end; }
[data-sf-template] .bh-dtitle { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
[data-sf-template] .bh-guest-level { display: flex; flex-direction: column; gap: 6px; }
[data-sf-template] .bh-level-bar { display: block; height: 5px; border-radius: var(--sf-radius-pill); overflow: hidden;
  background: color-mix(in srgb, var(--sf-color-surface-default) 25%, transparent); }
[data-sf-template] .bh-level-bar span { display: block; height: 100%; background: var(--sf-color-brand-default); }
[data-sf-template] .bh-foot { margin-top: auto; color: var(--sf-color-text-muted); font-size: 12.5px; }

/* Телефон (навык mobile-native, 16.11.2026): отклик на нажатие, подпись кнопки не выделяется долгим нажатием. */
[data-sf-template] :is(.bh-cta, .bh-ghost, .bh-guest-btn, .bh-cart, .bh-seg button, .bh-tile) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
[data-sf-template] :is(.bh-cta, .bh-ghost, .bh-guest-btn, .bh-cart, .bh-seg button, .bh-tile):active:not(:disabled) { transform: scale(.97); }
@media (prefers-reduced-motion: no-preference) {
  [data-sf-template] :is(.bh-cta, .bh-ghost, .bh-guest-btn, .bh-cart, .bh-seg button, .bh-tile) { transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
}
[data-sf-template] :is(button, a):is(.bh-row, .bh-addr):active:not(:disabled) { background: var(--sf-color-surface-sunken); }
/* Нажатие, проход 2 (16.11): отклик у всего, что нажимается; при prefers-reduced-motion переходов нет. */
[data-sf-template] :is(.bh-account, .bh-icon, .bh-search-btn, .bh-social):active:not(:disabled) { transform: scale(.97); }
[data-sf-template] :is(.bh-brand, .bh-top-phone):active { opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  [data-sf-template] :is(.bh-account, .bh-icon, .bh-search-btn, .bh-social) { transition: transform 120ms cubic-bezier(.23, 1, .32, 1); }
  [data-sf-template] :is(.bh-brand, .bh-top-phone) { transition: opacity 120ms cubic-bezier(.23, 1, .32, 1); }
}

/* Верхняя строка ПК (16.11, вариант A): тонкая, тот же фон, линия как у шапки, ссылки 14 px серым; «Акции» — brand.active
   (фирменный голубой на белом мелким текстом читается хуже), справа часы и телефон. На телефоне — только в «≡». */
[data-sf-template] .bh-top { display: none; }
@media (min-width: 900px) {
  [data-sf-template] .bh-top { max-width: 1320px; margin: 0 auto; box-sizing: border-box; min-height: 40px; padding: 0 max(24px, var(--sf-frame-gutter, 24px), calc((100% - var(--sf-frame-width, 1320px)) / 2));
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--sf-space-xl);
    border-bottom: 1px solid var(--sf-color-line-default); font-size: 14px; color: var(--sf-color-text-secondary); }
  [data-sf-template] .bh-top > :is(.bh-top-link, .bh-top-hours, .bh-top-phone) { flex: none; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}
[data-sf-template] .bh-top-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--sf-color-text-secondary); text-decoration: none; white-space: nowrap; }
[data-sf-template] .bh-top-link.is-promo { color: var(--sf-color-brand-active); font-weight: 600; }
[data-sf-template] .bh-top-pct { height: 20px; padding: 0 6px; border-radius: var(--sf-radius-sm); background: color-mix(in srgb, var(--sf-color-brand-default) 14%, var(--sf-color-surface-raised));
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; }
[data-sf-template] .bh-top-gap { flex: 1; }
[data-sf-template] .bh-top-hours { white-space: nowrap; }
[data-sf-template] .bh-top-phone { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--sf-color-text-primary); font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { [data-sf-template] :is(.bh-top-link, .bh-top-phone):hover { text-decoration: underline; text-underline-offset: 3px; } }
[data-sf-template] :is(.bh-top-link, .bh-top-phone):focus-visible { outline: 2px solid var(--sf-color-line-focus); outline-offset: 2px; border-radius: var(--sf-radius-sm); }
/* Зоны нажатия не меньше 44 px (честный замер 17.11, проверено попаданием). Логотип (32 px): поля по 6 px с таким же
   отрицательным отступом — вид и высота шапки те же; слой ::after здесь не годится, его обрезает overflow логотипа.
   Карточка адреса (42 px) стала 44 px высотой — слой за её краем обрезала бы рамка карточки. */
[data-sf-template] .bh-brand { padding: 6px 0; margin: -6px 0; }
[data-sf-template] .bh-addr { min-height: 44px; }
