/* Мини-приложение клиента (телефон). Стиль «Гостеприимство» по утверждённым макетам. */
body { background: #fff; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* Шапка: логотип строго по центру ширины, боковые кнопки не сдвигают его */
.head { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line-soft); height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 10px; }
.head .side { display: flex; align-items: center; }
.head .side.r { justify-content: flex-end; }
.head .side button, .head .side a { background: none; border: 0; padding: 10px 8px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-size: 17px; }
.head .side .icon { width: 26px; height: 26px; }
.head .back .icon { width: 24px; height: 24px; color: var(--ink); }
.head .logo { justify-self: center; height: 46px; width: auto; display: block; }
main { flex: 1; padding: 18px 18px 104px; }

.nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line-soft); z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.nav .in { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 10px; color: var(--ink); text-decoration: none; font-size: 13px; position: relative; }
.nav a .icon { width: 26px; height: 26px; }
.nav a.on { color: var(--red); font-weight: 700; }
.nav a.on .icon { fill: currentColor; fill-opacity: .12; }
.nav .badge { position: absolute; top: 4px; left: calc(50% + 6px); background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; min-width: 18px; text-align: center; border: 2px solid #fff; }

h1.page { font-size: 32px; letter-spacing: -.01em; margin: 2px 0 14px; }
.hello { color: var(--muted); font-size: 18px; margin: 2px 0 6px; }
.hero { border-radius: 22px; overflow: hidden; background: var(--red-soft); margin: 16px 0; aspect-ratio: 16/11; box-shadow: var(--shadow); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.next-order { padding: 16px 18px; margin-top: 14px; text-decoration: none; color: inherit; display: block; }
.next-order h3 { margin-bottom: 8px; font-family: var(--sans); font-size: 18px; }
.next-order .row .icon { color: var(--red); }

/* Поиск и разделы */
.search { position: relative; margin: 4px 0 12px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 22px; height: 22px; }
.search input { background: #f4f1ef; border-color: transparent; padding-left: 46px; border-radius: 16px; }
.search input:focus { background: #fff; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 18px 12px; margin: 0 -18px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; border: 0; background: #f1eeec; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 16px; color: var(--ink); }
.cats button.on { background: var(--red); color: #fff; box-shadow: 0 4px 12px rgba(150, 30, 12, .2); }

/* Карточки блюд в меню */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dish { overflow: hidden; display: flex; flex-direction: column; border-radius: 18px; }
.dish .ph { aspect-ratio: 4/3; background: #f4f1ef; display: block; position: relative; overflow: hidden; }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.dish .b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.dish .n { font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dish .s { font-size: 13.5px; color: var(--muted); }
.dish .s.warn { color: var(--warn); }
.dish .p { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 19px; white-space: nowrap; line-height: 1; }
.dish .p small { font-family: var(--sans); font-weight: 400; font-size: 13px; color: var(--muted); }
.dish .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tag { position: absolute; top: 8px; left: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* Количество: розовая «таблетка» с крупной цифрой */
.step { display: inline-flex; align-items: center; background: var(--red-soft); border-radius: 999px; height: 38px; flex: none; }
.step button { width: 32px; height: 38px; border: 0; background: none; color: #4a3f3b; font-size: 22px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.step b { min-width: 22px; text-align: center; font-family: var(--serif); font-size: 18px; color: var(--red); }
.step.lg { height: 50px; padding: 0 6px; }
.step.lg button { width: 42px; height: 50px; font-size: 26px; }
.step.lg b { min-width: 34px; font-size: 24px; }
.plus { width: 38px; height: 38px; border-radius: 50%; border: 1.6px solid var(--red); background: #fff; color: var(--red); font-size: 24px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; flex: none; text-decoration: none; padding: 0; }
.plus.count { background: var(--red); color: #fff; font-size: 15px; font-weight: 700; }

.cartbar { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 9; padding: 0 14px 10px; }
.cartbar a { max-width: 492px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; background: var(--red); color: #fff; padding: 15px 18px; border-radius: 18px; text-decoration: none; font-weight: 700; font-size: 17px; box-shadow: 0 10px 24px rgba(150, 30, 12, .3); }
.cartbar a span { display: inline-flex; align-items: center; gap: 10px; }

/* Страница блюда */
.dish-page .photo { margin: 0 0 16px; aspect-ratio: 4/3; background: #f4f1ef; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.dish-page .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-page h1 { font-size: 30px; line-height: 1.15; margin: 0; }
.dish-page .lead { color: var(--muted); font-size: 18px; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.pchip { display: inline-flex; align-items: center; gap: 8px; background: var(--red-soft); color: var(--ink); border-radius: 12px; padding: 8px 14px; font-size: 16px; }
.pchip .icon { color: var(--red); width: 22px; height: 22px; }
.pchip.warn { background: var(--warn-soft); }
.pchip.warn .icon { color: var(--warn); }
.compo { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0 4px; font-size: 16px; line-height: 1.45; color: #3b3431; }
.compo .icon { color: var(--red); width: 30px; height: 30px; flex: none; margin-top: 1px; }
.compo p { margin: 0; white-space: pre-line; }
.infobox { border: 1px solid var(--line-soft); border-radius: 16px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; font-size: 15px; color: #3b3431; background: #fcfbfa; }
.infobox .icon { color: var(--red); flex: none; }
.infobox.warn { background: var(--warn-soft); border-color: #f3e4bd; }
.infobox.warn .icon { color: var(--warn); }
.buyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 14px; }
.buyrow .price { font-family: var(--serif); color: var(--red); font-size: 32px; font-weight: 700; line-height: 1; white-space: nowrap; }
.buyrow .price small { font-family: var(--sans); color: var(--ink); font-size: 18px; font-weight: 400; }
.buyrow .per { color: var(--muted); font-size: 15px; margin-top: 6px; }
.opts { border-radius: 18px; overflow: hidden; margin-top: 8px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.opt + .opt { border-top: 1px solid var(--line-soft); }
.opt b { flex: 1; font-size: 16px; }
.opt .op { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 17px; }

/* Корзина */
.cline { display: flex; gap: 14px; padding: 12px; margin-bottom: 12px; position: relative; }
.cline .im { width: 104px; height: 104px; border-radius: 14px; object-fit: cover; background: #f4f1ef; flex: none; }
.cline .grow { flex: 1; }
.cline .sub.one { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cline .t { font-weight: 700; font-size: 17px; line-height: 1.2; padding-right: 30px; }
.cline .sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.cline .bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.cline .unit { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 18px; }
.cline .sum { font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 18px; text-align: right; margin-top: 6px; }
.cline .del { position: absolute; top: 10px; right: 8px; background: none; border: 0; color: var(--muted); padding: 6px; }
.cline .del .icon { width: 22px; height: 22px; }
.more-card { display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 12px; text-decoration: none; color: inherit; }
.more-card .ic { width: 64px; height: 64px; border-radius: 14px; background: var(--red-soft); color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.more-card .ic .icon { width: 34px; height: 34px; }
.more-card b { font-family: var(--serif); color: var(--red); font-size: 21px; display: block; }
.more-card span { font-size: 16px; color: var(--ink); }
.summary { overflow: hidden; margin: 6px 0 14px; padding: 0; }
.summary .hd { background: var(--red-soft); padding: 12px 16px; font-weight: 700; font-size: 17px; }
.summary .rw { display: flex; justify-content: space-between; padding: 12px 16px; font-size: 16px; }
.summary .rw + .rw { border-top: 1px solid var(--line-soft); }
.summary .rw b { font-size: 17px; }
.summary .nt { display: flex; gap: 8px; align-items: center; padding: 10px 16px 14px; color: #4a3f3b; font-size: 15px; border-top: 1px solid var(--line-soft); }
.summary .nt .icon { width: 20px; height: 20px; color: var(--red); }
.problems { margin: 6px 0 0; padding: 0; list-style: none; color: var(--red); font-size: 13.5px; }

.ways { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
.way { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 18px; background: #fff; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.way .radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #9b938f; flex: none; position: relative; }
.way.on { border-color: var(--red); background: var(--red-soft); }
.way.on .radio { border-color: var(--red); }
.way.on .radio::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: var(--red); }
.way .ic { color: var(--red); display: flex; }
.way .ic .icon { width: 34px; height: 34px; stroke-width: 1.5; }
.way b { display: block; font-size: 17px; }
.way span span { color: var(--muted); font-size: 14px; }

/* Оформление */
.pill { display: inline-flex; gap: 8px; align-items: center; background: var(--red); color: #fff; padding: 8px 16px; border-radius: 12px; font-weight: 700; margin: 12px 0 14px; }
.pill .icon { width: 22px; height: 22px; }
.box { padding: 14px 16px; display: flex; gap: 14px; align-items: center; margin: 10px 0; }
.box .icon { color: var(--red); }
.box .grow b { display: block; }
.link-btn { background: none; border: 0; color: var(--red); text-decoration: underline; padding: 4px; font-size: 15px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin: 10px 0; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; font-size: 16px; }
.toggle-row .plus-sign { margin-left: auto; color: var(--red); font-size: 24px; line-height: 1; }
.sum-box { background: var(--red-soft); border-radius: 16px; padding: 14px 16px; margin: 14px 0; }
.sum-box .row b { font-size: 18px; }
.sum-box .row .icon { color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { display: grid; grid-template-columns: 1fr; gap: 2px; }

/* Заказ */
.offer { border: 2px solid var(--red); border-radius: 20px; padding: 16px; text-align: center; margin: 12px 0; background: #fff; }
.offer .dow { font-weight: 700; font-size: 18px; display: inline-flex; gap: 8px; align-items: center; }
.offer .dow .icon { color: var(--red); }
.offer .time { font-family: var(--serif); color: var(--red); font-size: 46px; font-weight: 700; line-height: 1.1; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl td { padding: 7px 0; vertical-align: top; }
.tbl td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.tbl tr.total td { border-top: 1px solid var(--line); padding-top: 12px; font-family: var(--serif); color: var(--red); font-weight: 700; font-size: 24px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f4f1ef; border-radius: 14px; padding: 4px; margin: 10px 0 16px; }
.tabs button { border: 0; background: none; padding: 10px; border-radius: 11px; font-weight: 700; font-size: 16px; }
.tabs button.on { background: var(--red); color: #fff; }
.order-card { padding: 14px 16px; margin-bottom: 12px; display: block; color: inherit; text-decoration: none; }
.order-card .row { justify-content: space-between; }
.dev { max-width: 420px; margin: 40px auto; padding: 20px; text-align: center; }
.dev .btn { margin: 6px 0; }
.opts-title { margin: 22px 0 8px; }
.head .back span { font-size: 18px; }
.next-order .row { gap: 12px; }
/* В сетке меню степпер компактнее, чтобы цена и кнопки помещались на узком экране */
.dish .step { height: 34px; }
.dish .step button { width: 28px; height: 34px; font-size: 20px; }
.dish .step b { min-width: 18px; font-size: 17px; }
.dish .plus { width: 36px; height: 36px; font-size: 22px; }
.dish .foot { gap: 4px; }
@media (max-width: 370px) { .dish .p { font-size: 17px; } .dish .step button { width: 24px; } }
.dish-page .photo.none { aspect-ratio: auto; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; background: var(--red-soft); box-shadow: none; }
.dish-page .photo.none .icon { width: 48px; height: 48px; color: var(--red); stroke-width: 1.3; }
.dish .ph:empty::after, .dish .ph:not(:has(img))::after { content: ''; position: absolute; inset: 0; background: center / 44px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23961e0c' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M3 18h18M5 18a7 7 0 0114 0M12 8V6M10.5 6h3'/%3E%3C/svg%3E"); opacity: .5; }
.box .grow > span { display: block; }
.nowrap { white-space: nowrap; }
