/* Общая база прототипов: сброс, доступность, плейсхолдеры, форма и диалог (оформление — в вариантах) */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { text-wrap: balance; hyphens: manual; }
p { text-wrap: pretty; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: #fff; color: #000; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--focus, #ffd28a); outline-offset: 3px; }

/* Метки «будет заполнено» — видно, что это не текст сайта */
.ph {
  display: inline-block; padding: 0 .35em; border: 1px dashed currentColor; border-radius: 3px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .72em; font-weight: 400;
  letter-spacing: 0; text-transform: none; line-height: 1.5; vertical-align: .12em; opacity: .9; white-space: nowrap;
}

.icon { flex: none; }

/* Форма брони: раскладка, оформление — в вариантах */
.booking-form { display: grid; gap: 1rem 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .booking-form { grid-template-columns: 1fr 1fr; } }
.booking-form .field { display: grid; gap: .4rem; }
.booking-form .field--wide { grid-column: 1 / -1; }
.booking-form .consent { grid-template-columns: auto 1fr; align-items: start; gap: .75rem; }
.booking-form .consent input { width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; }
.booking-form .opt { opacity: .75; font-size: .85em; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-status { grid-column: 1 / -1; }
.booking-form [aria-invalid="true"] { outline: 2px solid var(--error, #ff8f8f); outline-offset: 1px; }

/* Галерея: просмотр фото */
.lightbox { padding: 0; border: 0; max-width: min(96vw, 1400px); max-height: 94vh; background: #000; color: #fff; }
.lightbox::backdrop { background: rgb(0 0 0 / .88); }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; object-fit: contain; }
.lightbox__cap { padding: .75rem 1rem; font-size: .9rem; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0;
  background: rgb(0 0 0 / .6); color: #fff; }
.lightbox__prev { left: .5rem; top: 45%; }
.lightbox__next { right: .5rem; top: 45%; }
.lightbox__close { right: .5rem; top: .5rem; }

/* Вкладки меню */
[role="tabpanel"]:focus-visible { outline-offset: 6px; }

/* Только интерфейс: подсказка у EN */
.en-note { position: fixed; z-index: 90; left: 50%; bottom: 5.5rem; transform: translateX(-50%); max-width: 22rem;
  padding: .75rem 1rem; background: #fff; color: #111; font: 14px/1.4 system-ui, sans-serif; box-shadow: 0 6px 30px rgb(0 0 0 / .35); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Реквизиты юрлица: раскрывающийся блок в контактах (цвета наследуются от варианта) */
.req { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 25%, transparent); }
.req summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; text-decoration: underline;
  text-underline-offset: .25em; text-decoration-thickness: 1px; }
.req__name { margin: .6rem 0 .4rem; font-weight: 600; }
.req__list { display: grid; gap: .25rem; margin: 0; font-size: .92rem; }
.req__list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; }
.req__list dt { opacity: .8; }
.req__list dd { margin: 0; overflow-wrap: anywhere; }

/* Шапка на телефоне: «Бебо» в названии ресторана не повторяем — рядом логотип */
@media (max-width: 479px) {
  .venue__brand { display: none; }
  .venue__name { white-space: nowrap; }
}
