/* Шрифты свои (@fontsource 5.3.0, OFL — fonts/OFL-*.txt): с телефона не ходим
   к Google. latin-ext нужен ради знака ₽ (U+20BD). */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/rubik-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/rubik-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/rubik-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/rubik-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/rubik-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/rubik-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/rubik-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/rubik-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/rubik-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/geologica-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/geologica-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/geologica-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/geologica-cyrillic-800-normal.woff2") format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/geologica-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geologica"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/geologica-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }


/* Токены — как у сайта «Из Морозилки» (shop/DESIGN.md, assets/app.css), 20.10. */
:root {
  --blue: #1b32de; --blue-press: #1526b0; --blue-soft: #eef1fd; --lime: #c9f227;
  --ink: #101724; --muted: #5a6a7d; --muted-dark: #b8c2cf; --red: #b3132b; --red-soft: #fcebee; --green: #1d7040;
  --white: #ffffff; --surface: #e7ebf0; --edge: #d7dde6; --photo: #f3f4f6; --line: #e7ebf0; --amber: #e08a00;
  --t-num: 40px; --t-h: 22px; --t-body: 17px; --t-small: 14px; --t-tag: 12px;
  --r-card: 22px; --r-pill: 999px; --r-thumb: 12px;
  --head: "Geologica", "Rubik", system-ui, sans-serif;
  --text: "Rubik", system-ui, sans-serif;
  --tabs-h: 58px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
/* Своё display у кнопок и блоков перебивает атрибут hidden — держим его силой. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text); font-size: var(--t-body); line-height: 1.35; color: var(--ink);
  background: var(--white); font-variant-numeric: tabular-nums;
}
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative;
  padding-bottom: calc(var(--tabs-h) + 24px + env(safe-area-inset-bottom)); }
#app.with-bar { padding-bottom: calc(var(--tabs-h) + 110px + env(safe-area-inset-bottom)); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
/* iPhone увеличивает страницу на поле мельче 16px и не возвращает. Ровно 16px. */
input, textarea, select { font-family: var(--text); font-size: 16px; color: var(--ink); }
.nw { white-space: nowrap; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.h { font-family: var(--head); font-weight: 700; font-size: var(--t-h); letter-spacing: -0.02em; line-height: 1.15; }
.num { font-family: var(--head); font-weight: 800; letter-spacing: -0.025em; line-height: 1; }
.small { font-size: var(--t-small); }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* Шапка: синяя снежинка + «Заморозка71» (как i-logo сайта), без плашки. */
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.brand .ic.logo { width: 30px; height: 30px; color: var(--blue); }

.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 16px 0; min-height: 60px; }
.top .pt { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; font-size: var(--t-small); color: var(--muted); text-align: left; line-height: 1.3; min-width: 0; }
/* Точка двумя строками от одного края: крупно (имя или адрес) и мелко серым. */
.top .pt-t { min-width: 0; }
.top .pt-t b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.top .pt-t .sub { display: block; }
.top .pt .ic { color: var(--blue); }
/* Выбор точки — второй строкой под логотипом: длинный адрес не жмёт шапку. */
.top { flex-wrap: wrap; row-gap: 4px; }
.top button.pt { min-height: 44px; justify-content: flex-start; }
.top button.pt > .ic:last-child { margin-left: auto; flex: none; }
.title { padding: 16px 16px 0; }

/* Кнопки-таблетки: главная синяя 48px, вторичная серая, выключенная #d7dde6.
   :hover пишем у каждого цвета отдельно: общий button:hover перебил бы цвет. */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-weight: 500; font-size: var(--t-body); text-align: center; }
.pill.blue { background: var(--blue); color: var(--white); }
.pill.blue:hover, .pill.blue:active { background: var(--blue-press); }
.pill.grey { background: var(--surface); color: var(--ink); }
.pill.grey:hover, .pill.grey:active { background: var(--edge); }
.pill.white { background: var(--white); color: var(--blue); }
.pill.white:hover, .pill.white:active { background: var(--blue-soft); }
.pill.red { background: var(--red); color: var(--white); }
.pill.red:hover { background: #8f0f22; }
.pill.off, .pill[disabled] { background: var(--edge); color: var(--muted); cursor: default; }
.pill.sm { min-height: 44px; padding: 0 16px; font-size: 16px; }
.pill.wide { width: 100%; }

/* Метки: «Акция» — лайм как бейдж скидки сайта, «Новинка» и «Набор» — плашкой. */
.tag { display: inline-block; font-size: var(--t-tag); font-weight: 700; line-height: 1; padding: 5px 8px; border-radius: var(--r-pill); }
.tag.sale { background: var(--lime); color: var(--ink); }
.tag.new { background: var(--blue); color: var(--white); }
.tag.set { background: var(--blue-soft); color: var(--blue); font-weight: 500; border-radius: 6px; }
/* Плашка «от 12 шт» сайта: #eef1fd, синий 12/500, радиус 6. */
.opts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.opt { display: inline-block; max-width: 100%; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--blue); background: var(--blue-soft); border-radius: 6px; padding: 3px 7px; }
.it .body > .opt { align-self: flex-start; margin-top: 6px; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: var(--t-small); color: var(--muted); }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2f9e55; }
.stock.low::before { background: var(--amber); }
.old { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 400; }

.stale { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 16px; padding: 12px 14px; margin: 12px 16px 0; font-size: var(--t-small); line-height: 1.35; }
.stale .ic { color: var(--muted); margin-top: 1px; }
.note-box { margin: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface); font-size: var(--t-small); }
.note-box.err { background: var(--red-soft); color: var(--red); }

/* Талон доставки на фото hero сайта, с тёмно-синим градиентом под текстом
   (как .car__card--hero). Фото и градиент — без inset: старый Chrome. */
.ticket { position: relative; margin: 16px 16px 0; background: #0b1240; color: var(--white); border-radius: var(--r-card); }
.ticket .bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; border-radius: var(--r-card); }
.ticket:not(.late):not(.shut)::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border-radius: var(--r-card); background: linear-gradient(180deg, rgba(13,34,120,.82) 0%, rgba(13,34,120,.55) 45%, rgba(13,34,120,.78) 100%); z-index: 1; }
.ticket .a, .ticket .b, .ticket .perf { position: relative; z-index: 2; }
.ticket .a { padding: 20px 20px 22px; }
.ticket .k { font-size: var(--t-small); color: #dfe4ff; display: flex; align-items: center; gap: 8px; }
.ticket .day { font-size: var(--t-num); margin-top: 10px; }
.ticket .perf { height: 0; border-top: 2px dashed rgba(255,255,255,.4); margin: 0 18px; }
.ticket .perf::before, .ticket .perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); }
.ticket .perf::before { left: -30px; } .ticket .perf::after { right: -30px; }
.ticket .b { padding: 18px 20px 20px; }
.ticket .till { display: flex; align-items: center; gap: 10px; }
.ticket .till b { font-weight: 600; }
.ticket .left { font-size: var(--t-small); color: #dfe4ff; margin: 4px 0 0 32px; }
.ticket .pill { width: 100%; margin-top: 16px; }
.ticket .alt { display: block; width: 100%; text-align: center; margin-top: 12px; min-height: 44px; font-size: var(--t-small); color: #dfe4ff; }
.ticket .note { line-height: 1.4; }
/* Просрочка: красный без фото — только здесь и в строке «Просрочено». */
.ticket.late { background: var(--red-soft); color: var(--ink); }
.ticket.late .k { color: var(--red); font-weight: 500; }
.ticket.late .day { color: var(--red); }
.ticket.late .perf { border-top-color: rgba(179,19,43,.3); }
.ticket.shut { background: var(--surface); color: var(--ink); }
.ticket.shut .k { color: var(--muted); }
.ticket.shut .perf { border-top-color: var(--edge); }

/* Лента «Акции» / «Новинки» — карточки 3:4 с фото, заголовок белым сверху. */
.feed { display: flex; gap: 12px; margin: 16px 16px 0; }
.feed-card { position: relative; flex: 0 0 calc(50% - 6px); height: 0; padding-bottom: calc(66.67% - 8px); border-radius: 14px; overflow: hidden; background: #0b1240; color: var(--white); text-align: left; }
.feed-card img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.feed-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 1; background: linear-gradient(180deg, rgba(13,34,120,.72) 0%, rgba(13,34,120,.45) 40%, rgba(13,34,120,0) 62%); }
.feed-card .t, .feed-card .n { position: absolute; left: 14px; right: 14px; z-index: 2; }
.feed-card .t { top: 14px; font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; line-height: 1.1; }
.feed-card .n { top: 40px; font-size: var(--t-small); color: #dfe4ff; }
.feed-card[data-only="promo"] .t { color: var(--lime); }

.money, .talk { margin: 28px 16px 0; }
.money .hd { display: flex; justify-content: space-between; align-items: baseline; }
.money .hd a { color: var(--blue); font-weight: 500; font-size: 16px; display: inline-flex; align-items: center; min-height: 44px; }
.money table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.money td { padding: 12px 0; border-bottom: 1px solid var(--line); }
.money td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.money td small { display: block; font-size: var(--t-small); color: var(--muted); font-weight: 400; }
.money .ok { color: var(--green); display: inline-flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* Тёмный блок «Как мы возим» — как «Как это работает» сайта. */
.terms { margin: 28px 16px 0; padding: 24px; border-radius: var(--r-card); background: var(--ink); color: var(--white); }
.terms dl { margin-top: 16px; display: flex; flex-direction: column; gap: 14px; }
.terms dt { font-size: 13px; color: var(--muted-dark); }
.terms dd { font-family: var(--head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; line-height: 1.25; margin-top: 2px; }
.terms .u { color: var(--lime); }

.talk .h { margin-bottom: 8px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.row .circ { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); flex: none; }
.row .circ.z { background: var(--lime); color: var(--ink); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; font-weight: 500; }
.row .t .small { display: block; }
.row > .ic { color: var(--muted); }

/* Товары. Поиск — таблетка #e7ebf0 без рамки, 48px. */
.search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; margin: 14px 16px 0; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.search input { border: 0; background: transparent; outline: none; width: 100%; height: 100%; }
.search input::placeholder { color: var(--muted); }
/* Фото товара — на #f3f4f6 (как у сайта), не на пастели папки. */
.ph { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted-dark); background: var(--photo); }
.ph img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.folders { display: flex; gap: 10px; overflow-x: auto; padding: 14px 16px 2px; scrollbar-width: none; }
.folders::-webkit-scrollbar { display: none; }
.fold { flex: none; width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: var(--t-small); line-height: 1.25; }
.fold .ph { width: 92px; height: 92px; border-radius: var(--r-thumb); }
.fold .ph img { padding: 8px; }
.fold .l { display: inline-block; max-width: 100%; padding: 4px 6px; border-radius: var(--r-pill); }
/* Длинное слово категории («Морепродукты») не влезает в 92px — перенос с дефисом. */
.fold .l { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.fold.on .l { background: var(--ink); color: var(--white); font-weight: 500; }
/* Плашка фильтра ленты: «Акции ×» — выбранный чип, тап снимает фильтр. */
.filter { display: flex; padding: 14px 16px 0; }
.filter .chip { display: inline-flex; align-items: center; gap: 6px; }
/* Чипы марок внутри категории — одной строкой, листаются пальцем. */
.filter.brands { gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter.brands::-webkit-scrollbar { display: none; }
.filter.brands .chip { flex: none; white-space: nowrap; }
.filter.brands .chip .n { color: var(--muted); }
.filter.brands .chip.on .n { color: inherit; opacity: .7; }
.usual { margin: 18px 16px 0; background: var(--photo); border-radius: var(--r-card); padding: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.usual .stack { display: flex; flex: none; }
.usual .stack .ph { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--photo); background: var(--white); }
.usual .stack .ph + .ph { margin-left: -14px; }
.usual .stack .ph img { padding: 4px; }
.usual .t { flex: 1; min-width: 0; }
.usual .t b { display: block; font-weight: 600; }
.usual .pill { flex-basis: 100%; }
.sec { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 16px 4px; }
.list { padding: 0 16px; }
/* Строка товара как у сайта: фото слева, справа название, плашка и
   кнопка-цена «+ 295 ₽» во всю ширину колонки. */
.it { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.it .ph { width: 96px; height: 96px; border-radius: var(--r-thumb); flex: none; }
.it .ph img { padding: 6px; }
.it .ph .tag { position: absolute; left: 6px; top: 6px; padding: 4px 6px; font-size: 12px; }
.it .body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.it .name { font-size: 16px; line-height: 1.3; font-weight: 500; }
.it .meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--t-small); color: var(--muted); }
.it .foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.it .price b, .line .price b { font-family: var(--text); font-weight: 700; font-size: 18px; display: inline-block; margin-right: 6px; line-height: 1.1; }
.it .price .small { display: block; margin-top: 2px; }
/* Кнопка-цена (.padd сайта): #e7ebf0, 44px, Rubik 700, нажатие — #d7dde6. */
.padd { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 16px; }
.padd .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.padd b { font-weight: 700; }
.padd .old { font-size: 13px; }
.padd:hover, .padd:active { background: var(--edge); }
/* Светлый счётчик «− N +» того же размера; под числом — цена. */
.step { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-weight: 500; font-size: 16px; }
.step button { width: 44px; height: 44px; flex: none; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.step button:hover, .step button:active { background: var(--edge); }
.step button[disabled] { opacity: .4; }
.step .mid { flex: 1; min-width: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.step input { width: 100%; max-width: 64px; height: 24px; border: 0; background: transparent; color: var(--ink); text-align: center; font-weight: 700; padding: 0; }
/* Ручной ввод: при фокусе — белое поле с синей обводкой, цена под числом
   прячется (иначе её закрывает ручка курсора Android). Отдельными правилами:
   старый Chrome без :focus-within теряет только последнее. */
.step input:focus { outline: none; height: 32px; border-radius: 8px; background: var(--white); box-shadow: 0 0 0 2px var(--blue); }
.step .mid:focus-within small { display: none; }
.step small { font-size: 12px; color: var(--muted); margin-top: 1px; }
.step .n { font-weight: 700; text-align: center; }
.empty { padding: 32px 16px; text-align: center; color: var(--muted); }

.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto; background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px 12px; display: flex; align-items: center; gap: 14px; z-index: 19; }
.cartbar .l { flex: 1; font-size: var(--t-small); min-width: 0; }
.cartbar .l b { font-weight: 600; }
.cartbar .min { font-size: var(--t-tag); margin-top: 4px; }
.bar { height: 6px; border-radius: 3px; background: var(--surface); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }
.cartbar .pill { min-height: 48px; padding: 0 18px; font-weight: 600; }

/* Корзина. Выбранный день и чип фильтра — тёмная таблетка (как сайт). */
.days { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 0; }
.chip { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); font-size: 16px; }
.chip:hover { background: var(--edge); }
.chip.on { background: var(--ink); color: var(--white); font-weight: 500; }
.chip.on:hover { background: #26303f; }
.lines { padding: 0 16px; }
/* Строка корзины как .crow сайта: фото 88, крестик в правом верхнем углу. */
.line { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .ph { width: 88px; height: 88px; border-radius: var(--r-thumb); flex: none; }
.line .ph img { padding: 8px; }
.line .t { flex: 1; min-width: 0; font-size: 16px; }
.line .nm { padding-right: 36px; font-weight: 500; line-height: 1.3; }
.line .t small { display: block; color: var(--muted); font-size: var(--t-small); margin-top: 2px; }
.line .t small.per .opt { margin-right: 4px; }
.line .row2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; min-width: 0; }
/* Счётчик сжимается 140→120px: сумма 99 999,99 ₽ на 360px не вылезает за экран. */
.line .row2 .step { flex: 1 1 auto; width: auto; min-width: 120px; max-width: 140px; }
.line .amt { flex: none; font-weight: 700; white-space: nowrap; }
.line .x { position: absolute; top: 6px; right: -10px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.line .x:hover { color: var(--ink); }
/* display:block — иначе label строчный и textarea шириной 100% вылезает за поля. */
.comment { display: block; margin: 16px 16px 0; }
.comment textarea { display: block; width: 100%; min-height: 76px; margin-top: 6px; border: 0; border-radius: 16px; padding: 12px 14px; resize: vertical; background: var(--surface); }
.comment textarea[disabled] { background: var(--photo); color: var(--muted); }
.sum { margin: 20px 16px 0; padding: 16px; border-radius: var(--r-card); background: var(--photo); }
.sum .tot { display: flex; justify-content: space-between; align-items: baseline; }
.sum .tot .num { font-size: 28px; }
.sum .pill { width: 100%; margin-top: 14px; }

/* Накладные */
.ord { margin: 0 16px; border-bottom: 1px solid var(--line); }
.ord summary { list-style: none; display: flex; gap: 12px; align-items: center; padding: 14px 0; cursor: pointer; }
.ord summary::-webkit-details-marker { display: none; }
.ord .t { flex: 1; min-width: 0; }
.ord .t b { display: block; font-weight: 500; }
.ord .amt { font-weight: 600; white-space: nowrap; }
.st { display: inline-block; margin-top: 4px; font-size: var(--t-tag); font-weight: 600; padding: 4px 8px 5px; border-radius: var(--r-pill); background: var(--surface); color: var(--muted); }
.st.ok { background: #e3f4ea; color: var(--green); }
.st.wait { background: var(--blue-soft); color: var(--blue); }
.st.agree { background: #fff1dc; color: #8a5300; }
.st.no { background: var(--red-soft); color: var(--red); }
.ord .rows { padding: 0 0 14px; font-size: var(--t-small); }
.ord .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ord .rows .c { color: var(--muted); }
.ord .pill { margin-top: 8px; }

/* Оплаты */
.pay-sum { margin: 16px 16px 0; padding: 18px 20px; border-radius: var(--r-card); background: var(--photo); }
.pay-sum .num { font-size: var(--t-num); margin-top: 6px; }
.pay-sum.late { background: var(--red-soft); }
.doc { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0 16px; }
.doc .t { flex: 1; min-width: 0; }
.doc .t b { display: block; font-weight: 500; font-size: 16px; }
.doc .amt { font-weight: 600; white-space: nowrap; }

/* Нижнее меню — 5 вкладок, 58px + safe-area; fixed без inset (старый Chrome). */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto; height: calc(var(--tabs-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--white); border-top: 1px solid var(--line); display: flex; z-index: 20; }
.tabs a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12px; line-height: 1.1; color: var(--muted); position: relative; white-space: nowrap; }
.tabs a.on { color: var(--blue); font-weight: 500; }
/* Бейдж корзины — лайм с тёмной цифрой, как у сайта. */
.tabs .badge { position: absolute; top: 4px; left: 50%; margin-left: 4px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; display: flex; align-items: center; justify-content: center; }

/* Выбор точки — лист снизу */
.sheet-shade { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(16,23,36,.45); z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto; background: var(--white); border-radius: var(--r-card) var(--r-card) 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.sheet .h { margin-bottom: 8px; }
.sheet .row.on .circ { background: var(--blue); color: var(--white); }

/* Карточка товара — лист снизу: фото на белом, цена крупно, плашка,
   название, единица и остаток, кнопка во всю ширину. */
[data-act="card"] { cursor: pointer; }
.it .per { margin-top: 4px; }
.stock.out::before { background: var(--muted); }
.sheet.card { max-height: 90vh; padding-top: 0; }
/* Крестик прилипает к верху листа: при длинном описании не уезжает. Сам
   в потоке (справа), фото поднимается под него отрицательным отступом. */
.card .close { position: sticky; top: 10px; z-index: 1; margin: 10px -6px -54px auto; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.card .close:hover { background: var(--edge); }
.ph.big { height: 300px; margin: 0 -16px 12px; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--white); }
.ph.big img { padding: 16px; }
.ph.big > .ic { width: 64px; height: 64px; }
.ph.big .tag { position: absolute; left: 16px; top: 16px; }
.card .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.card .price b { font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: -0.025em; line-height: 1.1; }
.card .price .old { font-size: 16px; }
.card .price span { font-size: var(--t-small); color: var(--muted); }
.card .h { margin-top: 10px; font-size: 20px; }
.card .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--t-small); color: var(--muted); }
.card #card-buy { margin-top: 16px; }
.card #card-buy:empty { display: none; }
/* В листе кнопка-цена — главная синяя, 48px во всю ширину. */
.card .padd { height: 48px; background: var(--blue); color: var(--white); font-size: var(--t-body); }
.card .padd .old { color: #c9d0ff; }
.card .padd:hover, .card .padd:active { background: var(--blue-press); }
.card .step { height: 48px; }
.card .step button { width: 48px; height: 48px; }
.card .facts { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: var(--t-small); line-height: 1.5; }
.card #card-desc { margin-top: 12px; }
.card .desc { white-space: pre-line; line-height: 1.45; }

/* Свои окошки вместо confirm/alert (js/ask.js — копия из Умника). */
.ask-shade { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(16,23,36,.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ask-box { width: 100%; max-width: 400px; background: var(--white); border-radius: var(--r-card); padding: 22px 20px 18px; }
.ask-text { font-size: var(--t-body); line-height: 1.4; white-space: pre-line; }
.ask-input { width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 14px; padding: 0 14px; background: var(--surface); }
.ask-buttons { display: flex; gap: 10px; margin-top: 18px; }
.ask-buttons button { flex: 1; min-height: 48px; border-radius: var(--r-pill); font-weight: 500; }
.ask-no { background: var(--surface); }
.ask-no:hover { background: var(--edge); }
.ask-yes { background: var(--blue); color: var(--white); }
.ask-yes:hover { background: var(--blue-press); }
.ask-yes.danger { background: var(--red); }
.ask-yes.danger:hover { background: #8f0f22; }

/* Вход по ссылке и «поставить на экран» */
.login { max-width: 480px; margin: 0 auto; padding: 48px 20px; text-align: center; }
.login .brand { justify-content: center; font-size: 28px; }
.login .brand .ic.logo { width: 40px; height: 40px; }
.login p { margin-top: 20px; }
.login .pill { margin-top: 24px; }
/* Баннер в две строки: значок и текст на всю ширину, кнопки — второй строкой. */
.install { margin: 16px 16px 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--blue-soft); font-size: var(--t-small); }
.install > .ic { color: var(--blue); }
.install .t { flex: 1 1 calc(100% - 40px); min-width: 0; }
.ticket .b .small { margin-top: 12px; }
.install .x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--muted); flex: none; margin-left: auto; }
.install .x:hover { color: var(--ink); }
.until { padding: 8px 16px 0; }
.cart-min { padding: 16px 16px 0; text-align: center; }
.cart-empty { padding: 8px 16px 0; }

/* Наборы 1С: фото вкусов листанием, выбор количества, состав. */
.kit-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 12px; border-radius: var(--r-card) var(--r-card) 0 0; scrollbar-width: none; }
.kit-photos::-webkit-scrollbar { display: none; }
.kit-photos .ph.big { flex: 0 0 100%; margin: 0; border-radius: 0; scroll-snap-align: start; }
.card .kit-buy { display: flex; align-items: center; gap: 8px; }
.card .kit-buy .step { width: 150px; flex: none; }
.card .kit-buy .pill { flex: 1; }
.kit-parts { list-style: none; margin: 4px 0 0; padding: 0; }
.kit-parts li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
/* Плитки «Акции»/«Новинки» в ряду категорий (goods.js, folders): фото ленты на всю плитку. */
.fold.sp .ph { background: #0b1240; overflow: hidden; }
.fold.sp .ph img { mix-blend-mode: normal; padding: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.fold.sp.promo:not(.on) .l { background: var(--lime); color: var(--ink); font-weight: 500; }
