/* =========================================================
   ТЕМЫ tut.menu (премиальные). Работает, только когда у заведения задан дизайн
   (html[data-design]). Типа Граф и старые пресеты этим файлом не затрагиваются.
   data-style — устройство страницы: carte | gallery | editorial | showcase | minimal | lounge
   ========================================================= */

/* ---------- Общее для всех тем ---------- */
html[data-design] body { background: var(--bg); color: var(--text); }
html[data-design] .topbar { background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: none; }
html[data-design] .topbar__brand, html[data-design] .topbar__name { color: var(--text); text-decoration: none; }
html[data-design] .topbar__name {
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: normal;
  text-transform: var(--display-case); letter-spacing: var(--display-track);
  font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw;
}
html[data-design] .section__title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  text-transform: var(--display-case); letter-spacing: var(--display-track);
}
html[data-design] .search input { background: transparent; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: var(--pill); }
html[data-design] .search input::placeholder { color: var(--muted); }
html[data-design] .overlay__panel { background: var(--panel); color: var(--text); }
html[data-design] .waiter, html[data-design] .waiter__foot { background: var(--bg); color: var(--text); }
html[data-design] .item__img, html[data-design] .cat__img { background: var(--surface); }
html[data-design] #sections[data-item-layout="grid"] .item-badge::before { background: var(--panel); }
html[data-design] .item__price { font-weight: 600; }
html[data-design] .menu-photo-note { opacity: .8; }

/* Кнопка «+»: тонкое кольцо вместо плашки */
html[data-design] .add-btn { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 45%, transparent); border-radius: 999px; }
html[data-design] .add-btn.is-in { background: var(--dark); color: var(--on-dark); box-shadow: none; }

/* Разделы меню — текстовые вкладки с линией под активной (без капсул) */
html[data-design] .pills { box-shadow: none; gap: 2px; }
html[data-design] .pills__ind { display: none; }
html[data-design] .pill::before { background: transparent !important; }
html[data-design] .pill { padding: 10px 12px; color: var(--muted); font-size: 15px; letter-spacing: .01em; }
html[data-design] .pill.is-active { color: var(--text); }
html[data-design] .pill.is-active > span { box-shadow: 0 2px 0 var(--text); padding-bottom: 5px; }

/* Кухня / Бар — спокойные плитки */
html[data-design] .cat { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
html[data-design] .cat.is-active { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }

/* Тёмные палитры */
html[data-design][data-mode="dark"] .pills { box-shadow: none; }

/* Приветствие — кнопки в цвет темы, название шрифтом темы */
html[data-design] .wbtn { border-radius: 999px; }
html[data-design] .wbtn--primary { background: var(--dark); color: var(--on-dark); border: 0; }
html[data-design] .welcome__name, html[data-design] .welcome__title {
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-case); letter-spacing: var(--display-track);
}
html[data-welcome-bg="color"] .welcome__bg { background: var(--dark); }
html[data-welcome-bg="color"] .welcome__img, html[data-welcome-bg="color"] .welcome__video { display: none; }


/* =========================================================
   1. КАРТА — как бумажное меню: без фото, название ..... цена
   ========================================================= */
html[data-style="carte"] .cats .cat__img { display: none; }
html[data-style="carte"] .cats .cat { padding: 14px 10px; text-align: center; }
html[data-style="carte"] .cats .cat__title { font-family: var(--font-display); font-size: 22px; font-weight: var(--display-weight); padding: 0; }
html[data-style="carte"] .section { padding-top: 46px; }
html[data-style="carte"] .section__title {
  display: flex; align-items: center; gap: 14px; justify-content: center; text-align: center;
  font-size: 34px; font-style: var(--display-style); line-height: 1.1;
}
html[data-style="carte"] .section__title::before, html[data-style="carte"] .section__title::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--text) 30%, transparent); }
html[data-style="carte"] .section__sub { text-align: center; }
html[data-style="carte"] .items { margin-top: 18px; }
html[data-style="carte"] #sections .item { grid-template-columns: 1fr; padding: 14px 0; border-bottom: 0; }
html[data-style="carte"] #sections .item__img { display: none; }
html[data-style="carte"] #sections .item__body { display: grid; grid-template-columns: 1fr auto 36px; column-gap: 10px; align-items: baseline; }
html[data-style="carte"] #sections .item-badges { grid-column: 1 / -1; position: static; }
html[data-style="carte"] #sections .item__title {
  grid-column: 1; display: flex; align-items: baseline; gap: 8px; margin: 0;
  font-family: var(--font-display); font-weight: var(--display-weight); font-size: 21px; line-height: 1.2;
}
html[data-style="carte"] #sections .item__title::after { content: ''; flex: 1; min-width: 16px; border-bottom: 1.5px dotted color-mix(in srgb, var(--text) 45%, transparent); transform: translateY(-5px); }
html[data-style="carte"] #sections .item__foot { display: contents; }
html[data-style="carte"] #sections .item__price { grid-column: 2; grid-row: 1; font-family: var(--font-display); font-size: 20px; font-weight: var(--display-weight); }
html[data-style="carte"] #sections .add-btn { grid-column: 3; grid-row: 1; min-width: 32px; width: 32px; height: 32px; align-self: center; }
html[data-style="carte"] #sections .item__desc { grid-column: 1 / 3; display: block; margin-top: 4px; font-size: 14.5px; font-style: italic; }
html[data-style="carte"] #sections .item__more { display: none; }
html[data-style="carte"] #sections .variants { grid-column: 1 / 3; }

/* =========================================================
   2. ГАЛЕРЕЯ — одно блюдо = одно большое фото, текст поверх
   ========================================================= */
html[data-style="gallery"] .section { padding-top: 40px; }
html[data-style="gallery"] .section__title { font-size: 40px; line-height: 1.05; }
html[data-style="gallery"] #sections .items { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
html[data-style="gallery"] #sections .item { position: relative; border-radius: var(--r-xl); overflow: hidden; }
html[data-style="gallery"] #sections .item__img { aspect-ratio: 1 / 1; border-radius: 0; }
html[data-style="gallery"] #sections .item__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 18px;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,0)); color: #fff;
}
html[data-style="gallery"] #sections .item__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; line-height: 1.1; margin: 0; }
html[data-style="gallery"] #sections .item__desc { display: -webkit-box; -webkit-line-clamp: 1; color: rgba(255,255,255,.8); font-size: 14.5px; margin-top: 6px; }
html[data-style="gallery"] #sections .item__more { display: none; }
html[data-style="gallery"] #sections .item__price { font-size: 18px; color: #fff; }
html[data-style="gallery"] #sections .add-btn { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.8); min-width: 44px; height: 44px; }

/* =========================================================
   3. ЖУРНАЛ — фото и текст чередуются, крупные заголовки
   ========================================================= */
html[data-style="editorial"] .section { padding-top: 48px; }
html[data-style="editorial"] .section__title { font-size: 46px; line-height: 1; font-style: var(--display-style); padding-bottom: 14px; border-bottom: 1px solid color-mix(in srgb, var(--text) 25%, transparent); }
html[data-style="editorial"] #sections .item { grid-template-columns: 46% 1fr; gap: 18px; padding: 22px 0; border-bottom: 0; align-items: center; }
html[data-style="editorial"] #sections .item:nth-child(even) { grid-template-columns: 1fr 46%; }
html[data-style="editorial"] #sections .item:nth-child(even) .item__img { order: 2; }
html[data-style="editorial"] #sections .item__img { aspect-ratio: 1 / 1; border-radius: var(--r-s); }
html[data-style="editorial"] #sections .item__title { font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style); font-size: 23px; line-height: 1.12; }
html[data-style="editorial"] #sections .item__desc { -webkit-line-clamp: 3; font-size: 14.5px; }
html[data-style="editorial"] #sections .item__more { display: none; }

/* =========================================================
   4. ВИТРИНА — каждый раздел листается вбок
   ========================================================= */
html[data-style="showcase"] .section { padding-top: 38px; }
html[data-style="showcase"] .section__title { font-size: 26px; }
html[data-style="showcase"] #sections .items {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  scroll-padding-inline: var(--pad); /* иначе iPhone прижимает первую карточку к краю экрана */
  margin: 16px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 6px;
}
html[data-style="showcase"] #sections .items::-webkit-scrollbar { display: none; }
html[data-style="showcase"] #sections .item { flex: 0 0 64%; scroll-snap-align: start; }
html[data-style="showcase"] #sections .item__img { aspect-ratio: 1 / 1; border-radius: var(--r-l); }
html[data-style="showcase"] #sections .item__title { font-size: 16px; margin-top: 12px; font-weight: 600; }
html[data-style="showcase"] #sections .item__more { display: none; }

/* =========================================================
   5. МИНИМАЛ — две колонки, тонкий шрифт, много воздуха
   ========================================================= */
html[data-style="minimal"] .section { padding-top: 46px; }
html[data-style="minimal"] .section__title { font-size: 36px; line-height: 1.05; }
html[data-style="minimal"] #sections .items { gap: 34px 16px; margin-top: 20px; }
html[data-style="minimal"] #sections .item__img { aspect-ratio: 1 / 1; border-radius: 2px; }
html[data-style="minimal"] #sections .item__title { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; line-height: 1.35; margin-top: 12px; }
html[data-style="minimal"] #sections .item__more { display: none; }
html[data-style="minimal"] #sections .item__price { font-weight: 400; font-size: 15px; }
html[data-style="minimal"] #sections .add-btn { min-width: 34px; width: 34px; height: 34px; }

/* =========================================================
   6. ЛАУНЖ — строки с круглыми фото справа, цена акцентом
   ========================================================= */
html[data-style="lounge"] .section { padding-top: 40px; }
html[data-style="lounge"] .section__title { font-size: 22px; text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 10px; }
html[data-style="lounge"] .section__title::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--dark); flex: none; }
html[data-style="lounge"] #sections .item { grid-template-columns: 1fr 92px; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
html[data-style="lounge"] #sections .item__img { order: 2; width: 92px; height: 92px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--dark); }
html[data-style="lounge"] #sections .item__title { font-size: 17px; font-weight: 600; }
html[data-style="lounge"] #sections .item__desc { font-size: 14px; }
html[data-style="lounge"] #sections .item__more { display: none; }
html[data-style="lounge"] #sections .item__price { color: var(--dark); font-size: 17px; }
html[data-style="lounge"] #sections .add-btn { min-width: 36px; height: 36px; }

/* Светлые палитры с тёмным акцентом: на фото приветствия кнопка светлая, иначе её не видно */
html[data-design][data-mode="light"] .wbtn--primary { background: var(--bg); color: var(--text); }

/* =========================================================
   ДЕМО tut.menu: плашка с таймером, напоминание, «Демо истекло»
   ========================================================= */
.demo-bar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 6px 10px 6px 14px; background: #1f4bff; color: #fff;
  font: 500 13.5px/1.25 'Onest', -apple-system, 'Segoe UI', sans-serif;
}
.demo-bar__t { flex: 1; }
.demo-bar__t b { font-weight: 700; white-space: nowrap; }
.demo-bar__btn { flex: none; padding: 8px 14px; border-radius: 999px; background: #fff; color: #1f4bff; font-weight: 700; text-decoration: none; }
html[data-demo] .topbar { top: 46px; }
html[data-demo] .search-bar { top: calc(46px + var(--header-h)); }
html[data-demo] .pills { top: calc(46px + var(--header-h) + var(--searchbar-h)); }
html[data-demo] .welcome { top: 46px; }
.demo-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; padding: 16px; background: rgba(0,0,0,.45); animation: demoIn .3s ease; }
@media (min-width: 600px) { .demo-pop { place-items: center; } }
.demo-pop__card { position: relative; width: min(420px, 100%); background: #fff; color: #111; border-radius: 24px; padding: 26px 22px 18px; font: 400 15.5px/1.45 'Onest', -apple-system, sans-serif; }
.demo-pop__big { font-size: 23px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 28px 10px 0; }
.demo-pop__x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; background: #f2f2ef; font-size: 22px; line-height: 1; color: #111; }
.demo-pop__later { display: block; width: 100%; margin-top: 8px; padding: 12px; font-weight: 600; color: #555; background: none; }
.demo-btn { display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 16px; border-radius: 999px; background: #1f4bff; color: #fff; font-weight: 700; text-decoration: none; }
.demo-dead { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: #f2f2ef; color: #111; font: 400 17px/1.5 'Onest', -apple-system, sans-serif; }
.demo-dead__card { max-width: 440px; }
.demo-dead__brand { font-weight: 800; font-size: 24px; letter-spacing: -.04em; margin-bottom: 28px; }
.demo-dead__brand span { color: #1f4bff; }
.demo-dead h1 { font-size: 34px; line-height: 1.05; letter-spacing: -.03em; margin-bottom: 14px; }
html.demo-is-dead body > *:not(.demo-dead) { visibility: hidden; }
@keyframes demoIn { from { opacity: 0; } to { opacity: 1; } }

/* «Классика» (основной дизайн) в конструкторе: без подчёркнутого названия; тёмные палитры — читаемая шапка и поиск */
html[data-style] .topbar__name, html[data-style] .topbar__brand { text-decoration: none; color: var(--text); }
html[data-style][data-mode="dark"] body { background: var(--bg); color: var(--text); }
html[data-style][data-mode="dark"] .topbar { background: color-mix(in srgb, var(--bg) 94%, transparent); }
html[data-style][data-mode="dark"] .search input { background: var(--surface); color: var(--text); border-color: transparent; }
html[data-style][data-mode="dark"] .overlay__panel { background: var(--surface); color: var(--text); }
html[data-style][data-mode="dark"] .pills { box-shadow: none; }
.demo-edit {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px;
  background: #111; color: #fff; font: 600 15px/1 'Onest', -apple-system, 'Segoe UI', sans-serif; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.demo-edit:active { transform: translateX(-50%) scale(.97); }

/* Кнопки на цвете акцента: текст цветом «на акценте» темы (золото → тёмный текст), а не всегда белый */
html[data-style] .order-btn, html[data-style] .cart__empty button { color: var(--on-dark); }
html[data-style] .cart__foot { background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 40%); }


/* =========================================================
   ВИДЫ ПРИВЕТСТВИЯ — html[data-welcome]. «classic» = как у Типа Граф (ничего не меняем).
   Атрибут ставит только TMThemes.apply, у Типа Граф его нет.
   ========================================================= */
html[data-welcome]:not([data-welcome="classic"]) .welcome__center.has-logo .welcome__name { display: block; }
html[data-welcome]:not([data-welcome="classic"]) .welcome__name {
  font-family: var(--font-display); font-weight: var(--display-weight); font-style: var(--display-style);
  text-transform: var(--display-case); letter-spacing: var(--display-track);
}

/* Аватар-логотип в круге (Таплинк, Сплит, Карточка) — тёмная подложка, логотипы обычно светлые */
html[data-welcome="taplink"] .welcome__logo,
html[data-welcome="split"] .welcome__logo,
html[data-welcome="card"] .welcome__logo {
  width: 112px; height: 112px; border-radius: 50%; object-fit: contain; padding: 18px;
  background: #151515; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
html[data-welcome="taplink"][data-mode="dark"] .welcome__logo,
html[data-welcome="split"][data-mode="dark"] .welcome__logo,
html[data-welcome="card"][data-mode="dark"] .welcome__logo { background: var(--surface-2); }

/* Светлые кнопки-ссылки (общие для Таплинк / Сплит / Карточка) */
html[data-welcome="taplink"] .welcome .wbtn,
html[data-welcome="split"] .welcome .wbtn,
html[data-welcome="card"] .welcome .wbtn {
  border: 0; border-radius: 16px; background: var(--surface); color: var(--text);
  font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
html[data-welcome="taplink"] .welcome .wbtn--primary,
html[data-welcome="split"] .welcome .wbtn--primary,
html[data-welcome="card"] .welcome .wbtn--primary { background: var(--dark); color: var(--on-dark); }
html[data-welcome="taplink"] .welcome .wbtn--text,
html[data-welcome="split"] .welcome .wbtn--text,
html[data-welcome="card"] .welcome .wbtn--text { background: none; color: var(--muted); }
html[data-welcome="taplink"] .welcome__hours,
html[data-welcome="split"] .welcome__hours,
html[data-welcome="card"] .welcome__hours { background: var(--surface); border-color: var(--line); color: var(--text); }
html[data-welcome="taplink"] .welcome__tagline,
html[data-welcome="split"] .welcome__tagline,
html[data-welcome="card"] .welcome__tagline { color: var(--muted); opacity: 1; letter-spacing: .04em; font-family: var(--font); font-size: 14px; text-transform: none; }

/* --- 2. ТАПЛИНК: однотонный фон, аватар, кнопки столбиком --- */
html[data-welcome="taplink"] .welcome { background: var(--bg); color: var(--text); }
html[data-welcome="taplink"] .welcome__bg { display: none; }
html[data-welcome="taplink"] .welcome__content { max-width: 460px; margin: 0 auto; }
html[data-welcome="taplink"] .welcome__center { flex: none; justify-content: flex-start; padding: 44px 24px 26px; }
html[data-welcome="taplink"] .welcome__name { margin-top: 18px; font-size: 26px; letter-spacing: .02em; }
html[data-welcome="taplink"] .welcome__center:not(.has-logo) .welcome__name { margin-top: 30px; font-size: 34px; }
html[data-welcome="taplink"] .welcome__tagline { margin-top: 6px; }
html[data-welcome="taplink"] .welcome__buttons { grid-template-columns: 1fr; gap: 10px; margin: 0; max-width: none; }
html[data-welcome="taplink"] .welcome .wbtn { min-height: 58px; }

/* --- 3. СПЛИТ: фото сверху, круглый логотип на стыке --- */
html[data-welcome="split"] .welcome { background: var(--bg); color: var(--text); }
html[data-welcome="split"] .welcome__bg {
  position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: 48vh;
  border-radius: 0 0 32px 32px; overflow: hidden;
}
html[data-welcome="split"] .welcome__overlay { background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 40%); }
html[data-welcome="split"] .welcome__langs { color: #fff; }
html[data-welcome="split"] .welcome__center { flex: none; justify-content: flex-start; padding: calc(48vh - 56px - 50px) 24px 24px; }
html[data-welcome="split"] .welcome__center .welcome__logo { border: 5px solid var(--bg); box-sizing: border-box; width: 120px; height: 120px; }
html[data-welcome="split"] .welcome__center:not(.has-logo) { padding-top: calc(48vh - 50px + 24px); }
html[data-welcome="split"] .welcome__name { margin-top: 14px; font-size: 28px; letter-spacing: .02em; }
html[data-welcome="split"] .welcome__tagline { margin-top: 6px; }
html[data-welcome="split"] .welcome__buttons { margin-top: auto; }

/* --- 4. КАРТОЧКА: фото фоном, снизу карточка с аватаром и кнопками --- */
html[data-welcome="card"] .welcome__overlay { background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.05) 50%, rgba(0,0,0,.35)); }
html[data-welcome="card"] .welcome__content { justify-content: flex-end; }
html[data-welcome="card"] .welcome__langs { margin-bottom: auto; }
html[data-welcome="card"] .welcome__center {
  flex: none; margin: 76px 14px 0; padding: 0 22px 18px; color: var(--text);
  background: var(--bg); border-radius: 30px 30px 0 0;
}
html[data-welcome="card"] .welcome__center .welcome__logo { margin-top: -56px; border: 5px solid var(--bg); box-sizing: border-box; width: 112px; height: 112px; }
html[data-welcome="card"] .welcome__center:not(.has-logo) { padding-top: 28px; }
html[data-welcome="card"] .welcome__name { margin-top: 12px; font-size: 26px; letter-spacing: .02em; }
html[data-welcome="card"] .welcome__tagline { margin-top: 4px; }
html[data-welcome="card"] .welcome__buttons {
  width: auto; margin: 0 14px calc(14px + var(--safe-b)); padding: 0 18px 20px;
  background: var(--bg); border-radius: 0 0 30px 30px; gap: 10px;
}

/* --- 5. ПОСТЕР: крупное название слева снизу, кнопки-строки со стрелками --- */
html[data-welcome="poster"] .welcome__overlay { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.55) 62%, rgba(0,0,0,.9) 100%); }
html[data-welcome="poster"] .welcome__langs { justify-content: flex-end; padding-right: 22px; }
html[data-welcome="poster"] .welcome__center { justify-content: flex-end; align-items: flex-start; text-align: left; padding: 40px 24px 26px; }
html[data-welcome="poster"] .welcome__logo { width: auto; height: 46px; max-width: 60%; margin-bottom: 18px; object-fit: contain; }
html[data-welcome="poster"] .welcome__name { font-size: clamp(46px, 14vw, 64px); line-height: .98; letter-spacing: -.01em; }
html[data-welcome="poster"] .welcome__tagline { margin-top: 14px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; }
html[data-welcome="poster"] .welcome__buttons { grid-template-columns: 1fr; gap: 0; max-width: none; }
html[data-welcome="poster"] .welcome .wbtn {
  justify-content: space-between; min-height: 56px; padding: 0 2px; border: 0; border-top: 1px solid rgba(255,255,255,.28);
  border-radius: 0; background: none; color: #fff; -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: var(--font); font-size: 16px; font-weight: 500; letter-spacing: 0;
}
html[data-welcome="poster"] .welcome .wbtn::after { content: '→'; font-size: 18px; opacity: .8; }
html[data-welcome="poster"] .welcome .wbtn--primary {
  min-height: 60px; padding: 0 22px; margin-bottom: 10px; border: 0; border-radius: 0;
  background: var(--dark); color: var(--on-dark); font-weight: 700; font-size: 17px;
}
html[data-welcome="poster"] .welcome .wbtn--primary + .wbtn { border-top: 0; }

/* --- 6. ТИПОГРАФИКА: без фото, огромное название на цвете бренда --- */
html[data-welcome="typo"] .welcome { background: var(--dark); color: var(--on-dark); }
html[data-welcome="typo"] .welcome__bg { display: none; }
html[data-welcome="typo"] .welcome__langs { justify-content: flex-start; padding-left: 24px; }
html[data-welcome="typo"] .welcome__center { align-items: flex-start; justify-content: flex-start; text-align: left; padding: 9vh 24px 24px; }
html[data-welcome="typo"] .welcome__logo { width: auto; height: 40px; max-width: 50%; object-fit: contain; margin-bottom: 7vh; }
html[data-welcome="typo"] .welcome__name { font-size: clamp(40px, 12vw, 76px); line-height: .95; letter-spacing: -.02em; overflow-wrap: break-word; }
html[data-welcome="typo"] .welcome__tagline { margin-top: 22px; font-family: var(--font); font-size: 17px; letter-spacing: 0; text-transform: none; opacity: .75; }
html[data-welcome="typo"] .welcome__hours { background: none; border-color: currentColor; color: inherit; opacity: .8; }
html[data-welcome="typo"] .welcome__buttons { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: none; }
html[data-welcome="typo"] .welcome .wbtn {
  min-height: 40px; padding: 0; border: 0; border-radius: 0; background: none; color: inherit;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: var(--font); font-size: 15px; font-weight: 500; letter-spacing: 0;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
html[data-welcome="typo"] .welcome .wbtn--primary {
  flex: 1 1 100%; min-height: 64px; margin-bottom: 10px; border-radius: 999px; text-decoration: none;
  background: var(--on-dark); color: var(--dark); font-size: 17px; font-weight: 700;
}

/* Низкие экраны (iPhone SE, браузеры с панелями): в «Сплите» фото ниже, чтобы кнопки помещались без прокрутки */
@media (max-height: 700px) {
  html[data-welcome="split"] .welcome__bg { height: 36vh; }
  html[data-welcome="split"] .welcome__center { padding-top: calc(36vh - 50px - 44px); padding-bottom: 14px; }
  html[data-welcome="split"] .welcome__center:not(.has-logo) { padding-top: calc(36vh + 16px); }
  html[data-welcome="split"] .welcome__center .welcome__logo { width: 96px; height: 96px; }
  html[data-welcome="split"] .welcome__name { margin-top: 10px; font-size: 24px; }
  html[data-welcome="taplink"] .welcome__center { padding-top: 24px; padding-bottom: 18px; }
  html[data-welcome="taplink"] .welcome .wbtn { min-height: 52px; }
}

/* Вид бренда (конструктор): только логотип / логотип + название под ним */
.welcome__center.brand-logo .welcome__name { display: none !important; }
.welcome__center.brand-both .welcome__name { display: block !important; margin-top: 14px; font-size: clamp(22px, 7vw, 30px); letter-spacing: .02em; line-height: 1.1; }
/* Шапка с названием: одинаковые поля слева и справа (под кнопку языка), название ровно по центру,
   длинное — с многоточием. Шапка только с логотипом (как у Типа Граф) не меняется. */
.topbar:has(.topbar__name) { grid-template-columns: 40px minmax(0, 1fr) 40px; column-gap: 10px; }
/* Кнопка языка — круглая, только флаг (по размеру как «назад»): названию остаётся вся середина */
.topbar:has(.topbar__name) .lang__btn { width: 36px; height: 36px; padding: 0; gap: 0; justify-content: center; border-radius: 50%; }
.topbar:has(.topbar__name) .lang__btn .lang__current, .topbar:has(.topbar__name) .lang__btn .lang__chev { display: none; }
.topbar:has(.topbar__name) .lang__btn .flag { width: 24px; height: 24px; margin: 0; }
.topbar:has(.topbar__name) > :last-child { justify-self: end; }
.topbar:has(.topbar__name) .topbar__brand { justify-self: center; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
html .topbar .topbar__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 18px; }
html .topbar .topbar__name--with-logo { font-size: 16px; }
.topbar:has(.topbar__name--with-logo) .topbar__logo { flex: none; height: 28px; }

/* Отсрочка оплаты: небольшая плашка внизу (гостям — без слов об оплате) */
.bill-note { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px;
  background: rgba(28, 28, 30, .9); color: #fff; font: 600 13px/1.35 var(--font, system-ui); box-shadow: 0 8px 24px rgba(0,0,0,.25);
  max-width: 560px; margin: 0 auto; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.bill-note span { flex: 1; }
.bill-note button { flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.15); color: #fff; font-size: 18px; line-height: 1; }
.bill-note--owner { background: #b3261e; }
.bill-note a { flex: none; background: #fff; color: #b3261e; padding: 8px 12px; border-radius: 10px; text-decoration: none; font-weight: 800; }
