/* Рацион и корзина: кликабельный прототип. Один акцент (зелень) только на главной кнопке и текущем выборе, томатный только для скидок. */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body { background: #D9D0BD; font-family: var(--f-text); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico.sm { width: 15px; height: 15px; } .ico.lg { width: 26px; height: 26px; }

/* ---------- оболочка страницы ---------- */
.shell { height: 100%; display: flex; align-items: center; justify-content: center; gap: 64px; padding: 24px; }
.panel { width: 290px; flex: none; display: flex; flex-direction: column; gap: 18px; }
.panel .eyebrow-p { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #5A5046; }
.panel h2 { font: 700 26px/1.12 var(--f-head); letter-spacing: -.02em; }
.panel p { font-size: 13.5px; line-height: 1.45; color: #4A4137; font-weight: 600; }
.seg { display: inline-flex; padding: 4px; border-radius: 16px; background: rgba(29, 26, 22, .1); position: relative; }
.seg button { position: relative; z-index: 1; height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 800; color: #3E362E; white-space: nowrap; }
.seg button.on { color: #fff; }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: 6px; }
.jump button { height: 32px; padding: 0 11px; border-radius: 16px; background: rgba(255, 252, 246, .65); font-size: 12.5px; font-weight: 700; color: var(--ink); }
.jump button:hover { background: var(--card); }
.panel .note { font-size: 12px; color: #5A5046; font-weight: 600; }

.phone { position: relative; padding: 11px; background: #1D1A16; border-radius: 56px; box-shadow: 0 34px 70px -30px rgba(40, 28, 10, .6), inset 0 0 0 2px #35302a; flex: none; }
.device { position: relative; width: 390px; height: 844px; background: var(--bg); border-radius: 45px; overflow: hidden; overflow: clip; isolation: isolate; transform: translateZ(0); }
.device::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .38  0 0 0 0 .25  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- статус-бар и шапка Telegram ---------- */
.statusbar { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 8px 30px 0 34px; font-size: 15px; font-weight: 800; }
.statusbar .isl { position: absolute; top: 11px; left: 50%; width: 104px; height: 28px; margin-left: -52px; border-radius: 20px; background: #0B0A09; }
.statusbar .sys { display: flex; align-items: center; gap: 6px; }
.statusbar .sys i { display: block; background: var(--ink); border-radius: 2px; }
.mini-seg { display: none; }
.tg { position: absolute; z-index: 20; top: 46px; left: 0; right: 0; height: 52px; display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; background: var(--bg); }
.tg .hb { width: 44px; height: 44px; margin-left: 8px; display: grid; place-items: center; border-radius: 50%; }
.tg .hb.r { margin: 0 8px 0 0; justify-self: end; }
.tg .t { text-align: center; line-height: 1.15; }
.tg .t small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2-bg); }
.tg .t b { font-size: 15.5px; font-weight: 800; }
.tg .hb .swap-ico { position: relative; width: 22px; height: 22px; }
.tg .hb .swap-ico svg { position: absolute; inset: 1px; }

.stage { position: absolute; z-index: 1; top: 98px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.view { position: absolute; inset: 0; will-change: transform, opacity; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 6px 20px 28px; scrollbar-width: none; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { display: none; }
.view.tabbed .scroll { padding-bottom: 176px; }
.view.tabbed .cta-wrap { bottom: 86px; }
.view.plain .scroll { padding-bottom: 110px; }
.view.plain .cta-wrap { padding-bottom: 34px; }
.cta-wrap { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 20px 12px; background: var(--bg); border-top: 1px solid var(--line); z-index: 3; }
.cta { width: 100%; height: 56px; border-radius: 18px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 16.5px; letter-spacing: .005em; box-shadow: 0 14px 22px -14px rgba(47, 107, 71, .95); transition: transform .12s; }
.cta:active { transform: scale(.985); }
.cta .ico { width: 21px; height: 21px; stroke-width: 1.8; }
.cta.ghost { background: var(--sand); color: var(--ink); box-shadow: none; }
.cta.sm { height: 48px; font-size: 15px; border-radius: 16px; }
.link { font-size: 13.5px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------- нижнее меню ---------- */
.tabbar { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; height: 86px; padding: 8px 8px 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; box-shadow: 0 -10px 24px -18px rgba(70, 50, 20, .5); transform: translateY(0); }
.tab { height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-2-bg); font-size: 11px; font-weight: 800; position: relative; }
.tab .ti { position: relative; width: 26px; height: 26px; display: grid; place-items: center; }
.tab .ti .ico { width: 24px; height: 24px; }
.tab.on { color: var(--accent); }
.tab.on::before { content: ""; position: absolute; top: -4px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: var(--accent); }
.badge { position: absolute; top: -6px; left: 14px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 800; line-height: 1; background: var(--ink); color: #fff; border: 2px solid var(--card); white-space: nowrap; }
.badge.sale { background: var(--sale); }
.badge.trial { background: var(--sand); color: var(--ink); left: 12px; }
.badge:empty { display: none; }
.homebar { position: absolute; z-index: 11; left: 50%; bottom: 8px; width: 128px; height: 5px; margin-left: -64px; border-radius: 3px; background: var(--ink); opacity: .85; pointer-events: none; }

/* ---------- общие блоки ---------- */
h1.h { font: 700 21px/1.2 var(--f-head); letter-spacing: -.01em; margin-top: 10px; }
.sub { margin-top: 6px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2-bg); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.eyebrow { margin: 14px 2px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2-bg); }
.tile { width: 62px; height: 62px; border-radius: 14px; background: var(--tint, var(--tint-straw)); display: grid; place-items: center; overflow: hidden; flex: none; }
.tile img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; display: block; }
.tile img.grey { filter: brightness(1.07) contrast(1.02); }
.tag { position: relative; display: inline-block; padding: 5px 8px 5px 15px; background: var(--sale); color: #fff; font-size: 12.5px; font-weight: 800; line-height: 1; border-radius: 3px 7px 7px 3px; clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%); white-space: nowrap; }
.tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 4.5px; height: 4.5px; margin-top: -2.25px; border-radius: 50%; background: var(--card); }
.tag.xs { font-size: 11px; padding: 4px 7px 4px 13px; clip-path: polygon(8px 0, 100% 0, 100% 100%, 8px 100%, 0 50%); }
.tag.xs::before { left: 6px; width: 4px; height: 4px; margin-top: -2px; }
.chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: nowrap; }
.chip { height: 38px; padding: 0 16px; border-radius: 19px; background: var(--sand); color: var(--ink); display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .2s, color .2s; }
.chip.on { background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 8px 14px -9px rgba(47, 107, 71, .9); }

/* ---------- меню ---------- */
.addr { display: flex; align-items: center; gap: 8px; height: 36px; font-weight: 800; font-size: 14px; }
.addr .ico.sm { color: var(--ink); } .addr .grow { flex: 1; }
.addr .ico.chev { color: var(--ink-2-bg); }
.days { position: relative; margin-top: 10px; display: flex; gap: 2px; padding: 4px; background: var(--sand); border-radius: 20px; }
.days .hl { position: absolute; z-index: 0; top: 4px; left: 4px; height: 46px; border-radius: 16px; background: var(--accent); box-shadow: 0 8px 14px -9px rgba(47, 107, 71, .9); }
.day { position: relative; z-index: 1; flex: 1; height: 46px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); transition: color .25s; }
.day small { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--ink-2-bg); transition: color .25s; }
.day b { font: 700 14px/1 var(--f-head); }
.day.on { color: #fff; } .day.on small { color: #E4F0E8; }
.goal { margin-top: 12px; padding: 12px 16px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.ring { position: relative; width: 96px; height: 96px; }
.ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring .mid { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring .mid b { font: 700 18px/1 var(--f-head); letter-spacing: -.02em; }
.ring .mid span { margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--ink-2); line-height: 1.1; }
.meters { display: flex; flex-direction: column; gap: 12px; }
.meter .row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; }
.meter .row span { font-weight: 600; color: var(--ink-2); }
.meter .row b { font-weight: 800; white-space: nowrap; }
.bar { margin-top: 6px; height: 8px; border-radius: 4px; background: #ECE4D3; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink); transform-origin: left center; }
.bar.g i { background: var(--accent); }
.plaque { margin-top: 10px; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 14px; height: 48px; text-align: left; background: var(--sand); border-radius: 16px; font-size: 13.5px; font-weight: 800; }
.plaque .ico { color: var(--ink); } .plaque .grow { flex: 1; }
.plaque .tag { margin-left: 2px; }
.meals { display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.meal { display: grid; grid-template-columns: 62px 1fr 18px; gap: 13px; align-items: center; padding: 8px 12px 8px 8px; width: 100%; text-align: left; position: relative; }
.meal .kind { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.meal .name { margin-top: 2px; font-size: 15px; font-weight: 800; line-height: 1.2; }
.meal .meta { margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.meal .meta b { color: var(--ink); font-weight: 800; }
.meal .meta { flex-wrap: wrap; row-gap: 4px; } .meal .meta > span { white-space: nowrap; }   /* «Р 709 · К 645 ккал» не рвётся посреди, метка скидки уходит на строку ниже */
.meal .ico { color: var(--ink-2); }
.meal .new { position: absolute; top: 8px; right: 36px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--sand); padding: 3px 7px; border-radius: 8px; }

/* ---------- скидки ---------- */
.items { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; position: relative; }
.item { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; padding: 9px 12px 9px 9px; }
.item .tile { width: 78px; height: 78px; border-radius: 15px; }
.item .tile img { padding: 5px; }
.chain { font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.item .nm { margin-top: 2px; font-size: 13.5px; font-weight: 800; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prices { margin-top: 5px; display: flex; align-items: center; gap: 8px; }
.now { font: 700 16px/1 var(--f-head); letter-spacing: -.02em; white-space: nowrap; }
.old { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-decoration: line-through; text-decoration-thickness: 1.3px; white-space: nowrap; }
.prices .tag { margin-left: auto; }
.prot { margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.prot b { font-weight: 800; color: #5C5247; }
.addm { height: 26px; padding: 0 10px; border-radius: 13px; border: 1.5px solid var(--ink); font-size: 12px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: background .2s, color .2s; }
.addm .ico { width: 13px; height: 13px; stroke-width: 2.2; }
.addm.in { background: var(--ink); color: #fff; }
.lockwrap { position: relative; margin-top: 10px; }
.blurred { filter: blur(6px); pointer-events: none; user-select: none; display: flex; flex-direction: column; gap: 9px; opacity: .9; }
.lockcard { position: absolute; left: 6px; right: 6px; top: 50%; transform: translateY(-50%); padding: 16px 16px 14px; text-align: center; background: var(--card); border-radius: 22px; box-shadow: 0 24px 40px -20px rgba(40, 28, 10, .6), 0 0 0 1px var(--line); z-index: 2; }
.lockcard .lk { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.lockcard h3 { font: 700 15.5px/1.25 var(--f-head); letter-spacing: -.01em; }
.lockcard p { margin-top: 5px; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.lockcard .cta { margin-top: 12px; }
.banner { margin-top: 12px; display: flex; gap: 10px; align-items: center; padding: 11px 14px; background: var(--sand); border-radius: 16px; font-size: 13px; font-weight: 700; line-height: 1.3; }

/* ---------- где дешевле ---------- */
.chainrow { display: grid; grid-template-columns: 46px minmax(0, 1fr) 20px; gap: 10px; align-items: center; padding: 11px 14px 11px 11px; width: 100%; text-align: left; position: relative; border: 2px solid transparent; transition: border-color .2s; }
.chainrow.on { border-color: var(--accent); }
.mark { width: 46px; height: 46px; border-radius: 14px; background: var(--sand); display: grid; place-items: center; font: 700 14px/1 var(--f-head); letter-spacing: -.02em; }
.chainrow .top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.chainrow .nm { font-weight: 800; font-size: 15.5px; white-space: nowrap; }
.chainrow .sum { font: 700 16px/1 var(--f-head); letter-spacing: -.02em; white-space: nowrap; }
.chainrow .eta { margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.cbar { margin-top: 8px; height: 6px; border-radius: 3px; background: #ECE4D3; overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transform-origin: left; }
.best { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--ink); color: #fff; letter-spacing: .02em; }
.chainrow .note { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.chainrow.locked .sum { filter: none; }
.chainrow .lk { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: var(--ink); }
.list-g { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }

/* ---------- состав ---------- */
.row { display: grid; grid-template-columns: 50px 1fr auto; gap: 12px; align-items: center; padding: 7px 14px 7px 7px; }
.row .tile { width: 50px; height: 50px; border-radius: 12px; }
.row .tile img { padding: 3px; }
.row .nm { font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.row .q { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.row .pr { font: 700 14px/1 var(--f-head); letter-spacing: -.02em; white-space: nowrap; }
.row .swp { margin-top: 4px; display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--sand); padding: 3px 8px; border-radius: 9px; }
.row .swp .ico { width: 12px; height: 12px; }
.total { margin-top: 12px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.total b { font: 700 20px/1 var(--f-head); letter-spacing: -.02em; }
.total small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }

/* ---------- сборка ---------- */
.asm-top { text-align: center; padding-top: 4px; }
.asm-top .big { font: 700 38px/1.1 var(--f-head); letter-spacing: -.03em; margin-top: 8px; }
.asm-top .st { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-2-bg); min-height: 20px; }
.asm-prog { margin: 14px 6px 0; height: 8px; border-radius: 4px; background: #E3DACA; overflow: hidden; }
.asm-prog i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); border-radius: 4px; }
.grid4 { margin-top: 16px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.gt { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.gt .tile { width: 100%; height: 100%; border-radius: 16px; }
.gt .ok { position: absolute; right: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; transform: scale(0); }
.gt .ok .ico { width: 12px; height: 12px; stroke-width: 2.6; }
.fly { position: absolute; z-index: 30; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; pointer-events: none; box-shadow: 0 14px 20px -10px rgba(40, 28, 10, .5); }
.fly .tile { width: 100%; height: 100%; border-radius: 16px; }

/* ---------- готово ---------- */
.done { text-align: center; padding-top: 22px; }
.done .okc { width: 104px; height: 104px; margin: 0 auto; }
.done h2 { margin-top: 18px; font: 700 24px/1.2 var(--f-head); letter-spacing: -.02em; }
.done p { margin-top: 8px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink-2-bg); }
.sumcard { margin-top: 20px; padding: 6px 16px; text-align: left; }
.sumcard .r { display: flex; justify-content: space-between; align-items: baseline; padding: 11px 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.sumcard .r + .r { border-top: 1px dashed var(--line); }
.sumcard .r b { color: var(--ink); font-weight: 800; font-size: 15px; }

/* ---------- я ---------- */
.prow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 11px 14px 11px 12px; width: 100%; text-align: left; }
.prow + .prow { border-top: 1px dashed var(--line); }
.prow .ic { width: 40px; height: 40px; border-radius: 13px; background: var(--sand); display: grid; place-items: center; }
.prow .l { font-size: 12px; font-weight: 700; color: var(--ink-2); } .prow .v { margin-top: 1px; font-size: 14.5px; font-weight: 800; }
.step { display: inline-flex; align-items: center; gap: 4px; background: var(--sand); border-radius: 14px; padding: 3px; }
.step button { width: 30px; height: 30px; border-radius: 11px; background: var(--card); display: grid; place-items: center; }
.step span { min-width: 22px; text-align: center; font-weight: 800; font-size: 14px; }
.tariff { margin-top: 12px; padding: 16px; }
.tariff h3 { font: 700 16px/1.2 var(--f-head); letter-spacing: -.01em; }
.tariff.pro { border: 2px solid var(--accent); }
.ul { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.ul li .ico { width: 17px; height: 17px; margin-top: 1px; stroke-width: 2.2; }
.foot { margin-top: 12px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2-bg); }

/* ---------- старт ---------- */
.prog { display: flex; gap: 6px; margin-top: 6px; }
.prog i { flex: 1; height: 4px; border-radius: 2px; background: #DCD2BF; position: relative; overflow: hidden; }
.prog i b { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.stepbody { position: relative; margin-top: 16px; min-height: 380px; }
.fld { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; font-weight: 800; font-size: 15.5px; }
.sugs { margin-top: 10px; padding: 4px 4px; }
.sug { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px 10px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.sug small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.sug.on { background: var(--sand); }
.opt { width: 100%; display: grid; grid-template-columns: 1fr 24px; gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border: 2px solid transparent; transition: border-color .2s; }
.opt.on { border-color: var(--accent); }
.opt b { display: block; font-size: 16px; font-weight: 800; } .opt span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.opt .rd { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #CFC5B1; display: grid; place-items: center; color: #fff; transition: all .2s; }
.opt.on .rd { background: var(--accent); border-color: var(--accent); }
.opt .rd .ico { width: 14px; height: 14px; stroke-width: 3; opacity: 0; } .opt.on .rd .ico { opacity: 1; }
.rng { width: 100%; margin-top: 10px; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 4px; background: #E3DACA; outline: none; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .35); cursor: grab; }
.bigv { font: 700 30px/1.1 var(--f-head); letter-spacing: -.03em; }

/* ---------- шторки ---------- */
.scrim { position: absolute; z-index: 40; inset: 0; background: rgba(29, 26, 22, .42); opacity: 0; pointer-events: none; }
.scrim.on { pointer-events: auto; }
.sheet { position: absolute; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 88%; display: flex; flex-direction: column; background: var(--card); border-radius: 30px 30px 0 0; box-shadow: 0 -20px 40px -20px rgba(40, 28, 10, .5); will-change: transform; visibility: hidden; }
.sheet::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 120px; background: var(--card); }
.sheet .grab { padding: 10px 0 6px; display: grid; place-items: center; touch-action: none; cursor: grab; flex: none; }
.sheet .grab i { width: 40px; height: 5px; border-radius: 3px; background: #D5CAB6; }
.sheet .sbody { overflow-y: auto; padding: 4px 20px 30px; scrollbar-width: none; }
.sheet .sbody::-webkit-scrollbar { display: none; }
.sheet .xbtn { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; z-index: 2; }
.hero { height: 188px; border-radius: 24px; background: var(--tint); display: grid; place-items: center; overflow: hidden; margin-top: 6px; }
.hero img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 12px; }
.sk { margin-top: 14px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.sh1 { font: 700 20px/1.2 var(--f-head); letter-spacing: -.015em; margin-top: 4px; }
.macros { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.macros div { background: var(--sand); border-radius: 14px; padding: 10px 6px 9px; text-align: center; }
.macros b { display: block; font: 700 16px/1 var(--f-head); letter-spacing: -.02em; }
.macros span { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; color: var(--ink-2-bg); }
.sh2 { margin-top: 18px; font: 700 14px/1.2 var(--f-head); }
.ings { margin-top: 8px; background: var(--bg); border-radius: 18px; padding: 4px 14px; }
.ing { display: flex; align-items: center; gap: 8px; padding: 10px 0; font-size: 13.5px; font-weight: 700; }
.ing + .ing { border-top: 1px dashed var(--line); }
.ing .g { flex: 1; } .ing small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.ing .p { font-weight: 800; white-space: nowrap; }
.hint { margin-top: 10px; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: var(--sand); font-size: 12.5px; font-weight: 700; line-height: 1.3; text-align: left; width: 100%; }
.car { margin: 8px -20px 0; padding: 4px 20px 6px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.car::-webkit-scrollbar { display: none; }
.alt { flex: none; width: 146px; scroll-snap-align: start; padding: 8px; text-align: left; background: var(--bg); border-radius: 18px; }
.alt .tile { width: 100%; height: 96px; border-radius: 13px; }
.alt .an { margin-top: 8px; font-size: 13px; font-weight: 800; line-height: 1.2; min-height: 31px; }
.alt .am { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--ink-2); display: flex; justify-content: space-between; }
.alt .am b { color: var(--ink); }
.alt:active { transform: scale(.98); }
.pheader { text-align: center; padding-top: 8px; }
.pheader .pk { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--sand); display: grid; place-items: center; }
.pheader h3 { font: 700 21px/1.2 var(--f-head); letter-spacing: -.02em; }
.pheader p { margin-top: 8px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink-2-bg); }
.pfree { margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg); font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.pfree b { color: var(--ink); font-weight: 800; }

/* ---------- пересборка ---------- */
.overlay { position: absolute; z-index: 15; top: 98px; left: 0; right: 0; bottom: 0; background: var(--bg); visibility: hidden; padding: 18px 20px 0; }
.overlay .st { text-align: center; }
.overlay h2 { font: 700 22px/1.2 var(--f-head); letter-spacing: -.02em; }
.overlay .st p { margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2-bg); }
.swaps { margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.sw { display: grid; grid-template-columns: 44px 1fr 44px; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; position: relative; overflow: hidden; }
.sw .tile { width: 44px; height: 44px; border-radius: 11px; }
.sw .tile img { padding: 3px; }
.sw .mid { min-width: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.sw .mid b { display: block; color: var(--ink); font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw .mid s { text-decoration-thickness: 1.2px; }
.sw .newt { position: relative; }
.sw .save { position: absolute; right: 56px; top: 50%; margin-top: -10px; }
.result { margin-top: 18px; text-align: center; }
.result .rb { font: 700 46px/1 var(--f-head); letter-spacing: -.04em; }
.result .rs { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: var(--ink-2-bg); }
.ofoot { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px 30px; background: var(--bg); border-top: 1px solid var(--line); }

.toast { position: absolute; z-index: 60; left: 20px; right: 20px; bottom: 166px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3; text-align: center; opacity: 0; pointer-events: none; transform: translateY(12px); }
.toast.act { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; pointer-events: auto; }
.toast .tact { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; font-weight: 800; font-size: 13.5px; font-family: inherit; cursor: pointer; }
.toast .tact:active { background: rgba(255, 255, 255, .3); }

/* ---------- телефон: вся страница ---------- */
@media (max-width: 900px) { .panel { display: none; } .shell { padding: 0; } }
@media (max-width: 520px), (max-height: 700px) and (max-width: 900px) {
  html, body { background: var(--bg); }
  .shell { display: block; padding: 0; }
  .phone { padding: 0; background: none; box-shadow: none; border-radius: 0; width: 100%; height: 100%; }
  .device { width: 100vw; height: 100dvh; border-radius: 0; }
  .statusbar { height: 40px; padding: 6px 12px 0; justify-content: center; }
  .statusbar .isl, .statusbar .sys, .statusbar .tm { display: none; }
  .mini-seg { display: inline-flex; padding: 3px; }
  .mini-seg button { height: 28px; padding: 0 12px; font-size: 12px; }
  .mini-seg .pill { top: 3px; bottom: 3px; left: 3px; }
  .tg { top: 40px; } .stage { top: 92px; }
  .homebar { display: none; }
}
@media (max-width: 520px) { .tabbar { height: 78px; } .view.tabbed .cta-wrap { bottom: 78px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ================= v2: «Сегодня / Неделя», шторки вкладки «Я», подписка без пробы ================= */
.onb-host { position: absolute; inset: 0; }
.vt { position: relative; display: flex; margin-top: 8px; padding: 4px; background: var(--sand); border-radius: 16px; }
.vt .pl { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: var(--card); box-shadow: 0 2px 8px -3px rgba(70, 50, 20, .45); }
.vt button { position: relative; z-index: 1; flex: 1; height: 38px; border-radius: 12px; font-weight: 800; font-size: 14px; color: var(--ink-2-bg); transition: color .2s; }
.vt button.on { color: var(--ink); }
.goal.nk { grid-template-columns: 92px minmax(0, 1fr); }
.goal .kb b { display: block; font: 700 32px/1 var(--f-head); letter-spacing: -.03em; }
.goal .kb span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink-2); line-height: 1.2; }
.goal .nkt { font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.goal.nk .link { margin: 4px 0 10px; display: inline-block; }
.meal .bdg, .nxt .bdg { display: inline-flex; margin-top: 5px; padding: 3px 8px; border-radius: 9px; background: var(--sand); font-size: 11.5px; font-weight: 800; color: var(--ink); }
.meal.skp { opacity: .55; } .meal.skp .name { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.meal.eat .tile { opacity: .6; }
.meal .new.ask { background: var(--ink); color: #fff; }
.nxt { margin-top: 12px; padding: 10px; display: block; width: 100%; text-align: left; }
.nxt .tile { width: 100%; height: 148px; border-radius: 16px; }
.nxt .tile img { padding: 10px; }
.nxt .nk { margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.nxt .nn { margin-top: 3px; font: 700 18px/1.2 var(--f-head); letter-spacing: -.015em; }
.nxt .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.nxt .meta b { color: var(--ink); } .nxt .meta .bdg { margin-top: 0; }
.rem { margin-top: 10px; display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 12px 12px 12px 14px; }
.rem .rt-t b { display: block; font-size: 14px; font-weight: 800; } .rem .rt-t span { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink-2); }
.pill-btn { height: 38px; padding: 0 16px; border-radius: 19px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13.5px; white-space: nowrap; transition: background .2s, color .2s; }
.pill-btn.gh { background: var(--sand); color: var(--ink); }
.topup { margin-top: 10px; padding: 14px 14px 14px; }
.tu-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 800; padding-bottom: 6px; }
.tu-h span { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.tu-r { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13.5px; font-weight: 700; }
.tu-r + .tu-r, .tu-h + .tu-r { border-top: 1px dashed var(--line); }
.tu-r small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.bq { margin-top: 10px; padding: 12px 14px 14px; overflow: hidden; }
.bq-h { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; }
.bq-h .tile { width: 54px; height: 54px; }
.bq b { font-size: 14.5px; font-weight: 800; } .bq p { margin-top: 3px; font-size: 13px; line-height: 1.35; font-weight: 600; color: var(--ink-2); }
.bq small { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.bq-b { display: flex; gap: 8px; margin-top: 12px; } .bq-b button { flex: 1; height: 42px; border-radius: 14px; }

/* шторка блюда */
.sheet .hero { height: 168px; }
.dbd { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.sheet .bdg { display: inline-flex; padding: 4px 10px; border-radius: 10px; background: var(--sand); font-size: 12px; font-weight: 800; }
.rts { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rt { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 10px 4px 9px; border-radius: 14px; background: var(--bg); font-size: 12px; font-weight: 800; line-height: 1.15; text-align: center; transition: background .2s, color .2s; }
.rt.on { background: var(--ink); color: #fff; }
.rts.two { grid-template-columns: repeat(2, 1fr); }
.rt .heart { width: 20px; height: 20px; fill: none; stroke: var(--ink-2-bg); stroke-width: 2; }
.rt.on .heart { fill: var(--sale); stroke: var(--sale); }
.rrow { grid-template-columns: 50px 1fr auto; }
.rrow .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rback { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--sand); font-size: 12.5px; font-weight: 800; color: var(--ink); }
.rmeal { margin-top: 10px; overflow-x: auto; scrollbar-width: none; } .rmeal::-webkit-scrollbar { display: none; }
.rmeal .chip { height: 34px; padding: 0 13px; font-size: 13px; }
.skp-r { margin-top: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.skp-r button { height: 42px; border-radius: 14px; background: var(--bg); font-weight: 800; font-size: 13px; }

/* подписка */
.nets { margin-top: 14px; padding: 12px 14px 12px; background: var(--bg); border-radius: 18px; }
.nets .lb2 { font-size: 12px; font-weight: 800; color: var(--ink-2); }
.nets .rw { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.ncp { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 4px; border-radius: 14px; background: var(--card); font-size: 13px; font-weight: 800; }
.ncp i { width: 26px; height: 26px; border-radius: 9px; background: var(--sand); display: grid; place-items: center; font: 700 10.5px var(--f-head); font-style: normal; }
.nets .nt { margin-top: 9px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.pbig { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.pbig b { font: 700 32px/1 var(--f-head); letter-spacing: -.03em; } .pbig span { font-size: 14px; font-weight: 800; color: var(--ink-2-bg); }
.terms { margin-top: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-2-bg); }

/* профиль */
.prow > div { min-width: 0; }
.prow .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* блоки выбора во вкладке «Я» (чипы, плитки, ползунки) */
.p-lab { margin-top: 14px; font-size: 12px; font-weight: 800; color: var(--ink-2); }
.p-lab2 { margin: 18px 2px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2-bg); }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.p-ch { height: 38px; padding: 0 14px; border-radius: 19px; background: var(--sand); color: var(--ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: background .2s, color .2s; }
.p-ch.on { background: var(--accent); color: var(--on-accent); font-weight: 800; }
.p-ch.p-ban.on { background: var(--ink); color: #fff; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.p-ch .ico { width: 14px; height: 14px; }
/* четыре набора белка (Ем всё, Без свинины, Вегетарианец, Веган) не помещались в строку 390 px и «Веган» оставался один: сетка 2 на 2, «Свой набор» на всю ширину */
.p-chips.p-diets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-diets .p-ch { justify-content: center; padding: 0 10px; white-space: nowrap; }
.p-diets .p-ch:nth-child(n+5) { grid-column: 1 / -1; }
.p-pc { margin-top: 12px; padding: 14px 14px 12px; }
.p-pch { display: flex; align-items: center; gap: 10px; }
.p-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font: 700 14px var(--f-head); flex: none; }
.p-nm { flex: 1; min-width: 0; height: 38px; border: 0; border-bottom: 1.5px dashed var(--line); background: none; font: 800 16px var(--f-text); color: var(--ink); outline: none; }
.p-nm:focus { border-bottom-color: var(--ink); }
.p-rm { width: 30px; height: 30px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.p-calcb { margin-top: 12px; width: 100%; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 14px; background: var(--bg); font-weight: 800; font-size: 13.5px; text-align: left; }
.p-calcb span { flex: 1; } .p-cv { transition: transform .25s; } .p-calcb.open .p-cv { transform: rotate(180deg); }
.p-calc { overflow: hidden; }
.p-ci { padding-top: 6px; }
.p-cr { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; font-weight: 800; font-size: 14px; }
.p-cr + .p-cr { border-top: 1px dashed var(--line); }
.p-cr .step span { min-width: 66px; }
.p-cres { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--sand); font-size: 13px; font-weight: 700; line-height: 1.35; }
.p-addp { margin-top: 12px; width: 100%; height: 50px; border-radius: 18px; border: 1.5px dashed #BFB39C; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 14.5px; }
.p-srch { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; }
.p-srch input, .p-fld input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 700 15px var(--f-text); color: var(--ink); }
.p-srch input::placeholder, .p-fld input::placeholder { color: var(--ink-2); font-weight: 600; }
.p-gh { height: 48px; border-radius: 16px; background: var(--sand); font-weight: 800; font-size: 14px; }
.p-tc { margin-top: 12px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--ink-2-bg); }
.p-tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.p-tt { position: relative; text-align: center; }
.p-tp { position: relative; display: block; border-radius: 18px; transition: box-shadow .2s; }
.p-tt .tile { width: 100%; height: auto; aspect-ratio: 1; border-radius: 18px; transition: opacity .25s, filter .25s; }
.p-tt .tile img { padding: 8px; }
.p-tb { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); color: #fff; }
.p-tb .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.p-tt.yes .p-tb, .p-tt.no .p-tb, .p-tt.lock .p-tb { transform: scale(1); }
.p-tt.yes .p-tb { background: var(--accent); } .p-tt.no .p-tb, .p-tt.lock .p-tb { background: var(--ink); }
.p-tt.yes .p-tp { box-shadow: 0 0 0 3px var(--accent); }
.p-tt.no .tile { filter: grayscale(1); opacity: .5; }
.p-tt.lock { pointer-events: none; } .p-tt.lock .tile { filter: grayscale(1); opacity: .35; }
.p-tn { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; }
.p-nv { margin-top: 4px; padding: 6px 12px; }
.p-nvr { display: grid; grid-template-columns: 46px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 13.5px; font-weight: 800; }
.p-nvr + .p-nvr { border-top: 1px dashed var(--line); }
.famlink { width: 100%; height: 46px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: 600 13px var(--f-text); text-overflow: ellipsis; }   /* ссылка-приглашение: выделяется и копируется руками, если буфер недоступен */
.p-nvr .tile { width: 46px; height: 46px; border-radius: 12px; }
.p-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.p-tl { position: relative; height: 54px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 2px solid transparent; font-size: 13.5px; text-align: left; transition: border-color .2s; }
.p-tl .ico { width: 26px; height: 26px; } .p-tl b { font-weight: 800; flex: 1; font-size: 13px; line-height: 1.1; }
.p-tl.on { border-color: var(--accent); }
.p-ck { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); flex: none; }
.p-ck .ico { width: 11px; height: 11px; stroke-width: 3; }
.p-tl.on .p-ck { transform: scale(1); }
.p-vol { overflow: hidden; } .p-vi { padding-bottom: 2px; }
.p-mins { margin-top: 0; padding: 14px 16px 16px; }
.p-mr { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: 14px; }
.p-mr b { font: 700 17px var(--f-head); letter-spacing: -.02em; }
.p-bc { padding: 16px; }
.p-fld { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 54px; }
.p-sugs { margin-top: 10px; padding: 4px; }
.p-sug { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 11px 10px; border-radius: 14px; font-weight: 700; font-size: 14px; }
.p-sug small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-top: 1px; }
.p-sug.on { background: var(--sand); }
.p-shops { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-2-bg); }
.p-shops span { flex-basis: 100%; margin-top: 4px; }
.p-mk { width: 30px; height: 30px; border-radius: 10px; background: var(--sand); display: grid; place-items: center; font: 700 11px var(--f-head); font-style: normal; color: var(--ink); }
button:disabled { cursor: default; }
.tile, .hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.opt b { color: var(--ink); }
.p-rm[hidden] { display: none; }
.p-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-tl { padding: 0 8px 0 10px; gap: 8px; min-width: 0; }
.p-tl b { font-size: 12.5px; min-width: 0; }
.p-ck { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border: 2px solid var(--bg); }
.tile img.full, .hero img.full { mix-blend-mode: normal; object-fit: cover; padding: 0; filter: none; }
.tile img.bright, .hero img.bright { filter: brightness(1.14) contrast(1.02); }
.prow .v { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.25; }
.p-tt .tile .ico.big { width: 46%; height: 46%; stroke-width: 1.5; color: var(--ink); }


/* ================= живое приложение: загрузка, ошибка, фото блюд, шаги рецепта ================= */
.ld { min-height: 60%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 60px 24px 0; }
.ld p { font-size: 14px; font-weight: 700; color: var(--ink-2-bg); line-height: 1.4; }
.ld h3 { font: 700 18px/1.25 var(--f-head); letter-spacing: -.01em; }
.ld .lk { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.ld .cta { width: auto; padding: 0 28px; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--sand); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tile img.photo, .hero img.photo, .alt img.photo { object-fit: cover; mix-blend-mode: normal; padding: 0 !important; }
.steps { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.steps li::marker { font-weight: 800; color: var(--ink-2); }
html.in-tg .tg { display: none; }
html.in-tg .stage { top: 40px; }
html.in-tg .statusbar { height: 40px; }

/* названия блюд: в карточке до трёх строк, дальше многоточие */
.meal > div { min-width: 0; }
.meal .name, .nxt .nn { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.row .nm, .alt .an, .bq b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.sh1 { overflow-wrap: anywhere; }
.meal .bdg { display: block; width: fit-content; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nxt .meta { flex-wrap: wrap; }
.meter .be { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--ink-2-bg); }
.meter .be:empty { display: none; }
.meter.over .bar i { background: var(--sale); }
.meter.over .row b, .meter.over .be { color: var(--sale); }
.meter.over .bar { background: #F3DCD3; }

/* скелетоны долгих экранов */
.sk { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.sk-h, .sk-c { border-radius: 14px; background: linear-gradient(100deg, var(--sand) 30%, #F4EEE0 50%, var(--sand) 70%); background-size: 240% 100%; animation: shimmer 1.4s linear infinite; }
.sk-h { height: 26px; width: 58%; border-radius: 9px; }
.sk-c { height: 78px; border-radius: var(--r); }
.sk-cap { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--ink-2-bg); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .sk-h, .sk-c { animation: none; } }

/* предупреждения движка над неделей: warn: томатная полоса */
.warns { margin-top: 12px; padding: 4px 0; display: flex; flex-direction: column; }
.warns .wr { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; padding: 9px 14px; font-size: 13px; line-height: 1.38; font-weight: 700; color: var(--ink); }
.warns .wr + .wr { border-top: 1px solid var(--line); }
.warns .wr svg { margin-top: 1px; color: var(--ink-2-bg); }
.warns .wr.warn { background: rgba(190, 79, 56, .10); box-shadow: inset 4px 0 0 var(--sale); color: #7B2F1F; }
.warns .wr.warn svg { color: var(--sale); }
.warns .wr:first-child { border-radius: 14px 14px 0 0; } .warns .wr:last-child { border-radius: 0 0 14px 14px; } .warns .wr:only-child { border-radius: 14px; }

/* прогресс сборки корзины на экране «Готово» */
.done .asm-prog { margin: 14px auto 6px; width: 70%; }
.done .asm-prog i { transition: transform .9s linear; background: var(--accent); }
.cta:disabled { opacity: .7; }

/* вне Telegram на телефоне: без нарисованной шапки Telegram */
@media (max-width: 520px), (max-height: 700px) and (max-width: 900px) {
  html:not(.in-tg) .tg .t small { display: none; }
  html:not(.in-tg) .tg .hb.r { visibility: hidden; }
  html:not(.in-tg) #hbL[data-back=""] { visibility: hidden; }
}
.warns .wr.more { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; font-size: 12.5px; font-weight: 800; color: var(--accent); cursor: pointer; }

/* ---------- значки сетей: круглая плашка, логотип на белом ---------- */
.cm { display: inline-block; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); overflow: hidden; vertical-align: middle; box-shadow: 0 1px 0 rgba(29, 26, 22, .04); }
.cm img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm.lg { width: 44px; height: 44px; } .cm.md { width: 32px; height: 32px; } .cm.sm { width: 26px; height: 26px; } .cm.xs { width: 18px; height: 18px; }
.cm.center { display: block; margin: 0 auto 2px; width: 52px; height: 52px; }
.cmh { display: flex; align-items: center; gap: 10px; }
.cmh span { min-width: 0; }
.cms { display: flex; gap: 5px; margin-top: 6px; }
.chain .cm { margin-right: 1px; }
.ncp .cm { margin: 0; }
.p-shops { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.p-shops > span { flex-basis: 100%; margin-top: 4px; }
.done .shopn { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- переключатель тарифа только для тестов ---------- */
html:not(.show-seg) .mini-seg { display: none; }
html:not(.show-seg) .statusbar { pointer-events: none; }
@media (max-width: 520px), (max-height: 700px) and (max-width: 900px) {
  html:not(.show-seg):not(.in-tg) .statusbar { height: 10px; }
  html:not(.show-seg):not(.in-tg) .tg { top: 10px; }
  html:not(.show-seg):not(.in-tg) .stage { top: 62px; }
  html.in-tg:not(.show-seg) .statusbar { display: none; }
  html.in-tg:not(.show-seg) .stage { top: 6px; }
}

/* ---------- шапка, пустые состояния, загрузка ---------- */
:root { color-scheme: light; }
.tg .t b { display: inline-flex; align-items: center; gap: 8px; }
.tg .ava { width: 24px; height: 24px; border-radius: 50%; display: block; }
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 34px 26px 12px; }
.empty .eimg { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--shadow); margin-bottom: 6px; }
.empty h3 { font: 700 17px/1.25 var(--f-head); letter-spacing: -.01em; }
.empty p { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--ink-2-bg); max-width: 270px; }
.ld.boot { gap: 14px; }
.ld .bimg { width: 96px; height: 96px; border-radius: 28px; box-shadow: var(--shadow); animation: bob 1.8s ease-in-out infinite; }
.ld .dots { display: flex; gap: 6px; }
.ld .dots b { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: .25; animation: dot 1.2s ease-in-out infinite; }
.ld .dots b:nth-child(2) { animation-delay: .2s; } .ld .dots b:nth-child(3) { animation-delay: .4s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes dot { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ld .bimg, .ld .dots b { animation: none; } }

/* замены и нехватки в корзине сети */
.warns.miss { margin: 12px 0 10px; }
.subs { display: flex; flex-direction: column; gap: 9px; margin: 12px 0 10px; }
.subc { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.subc .st { font-size: 14px; line-height: 1.35; font-weight: 700; }
.subc .st i { font-style: normal; color: var(--ink-2-bg); padding: 0 2px; }
.subc small { font-size: 12px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.35; }
.subc .sb { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.subc .sb button { min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 13px; font-weight: 800; }
.subc .sbk { background: var(--sand); color: var(--ink); }
.subc .sbb { background: var(--accent); color: var(--on-accent); }
.subc .sk2 { margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--accent); }
.total small.inc { color: var(--ink-2-bg); font-weight: 700; }
.ing .gap { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 800; color: var(--ink-2-bg); }
.ing .gap svg { width: 14px; height: 14px; }
.ing .gap.miss { color: var(--sale); }
.ing.opt .g { color: var(--ink-2-bg); }
.ing .wish { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--ink-2-bg); background: var(--sand); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }

/* общий рацион: строка по людям под кольцом */
.fam { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2-bg); }
.fam b { color: var(--ink); font-weight: 800; }
.fam i { font-style: normal; color: var(--line); }

/* значки сетей: фиксированный круг, без сжатия и искажения */
.cm { flex: 0 0 auto; aspect-ratio: 1 / 1; min-width: 18px; }
.cm img { object-fit: contain; background: #fff; }
.cms { flex-wrap: nowrap; }
.cms .cm, .p-shops .cm { width: 28px; height: 28px; min-width: 28px; flex: 0 0 28px; }

/* «Где покупаешь?»: плитки сетей */
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 14px; }
.ct { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; background: var(--card); border: 2px solid transparent; font-size: 13px; font-weight: 800; box-shadow: var(--shadow); transition: border-color .2s, background .2s; }
.ct.on { border-color: var(--accent); background: #F1F6EE; }
.ct em { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 9px; background: var(--accent); color: var(--on-accent); font-style: normal; font-size: 11px; font-weight: 800; white-space: nowrap; }
.ct.on.main, .ob-ct.on.main { border-color: var(--accent); background: #E3EEE1; }
.ct.on.sec, .ob-ct.on.sec { border-color: #B4CDBB; background: #F7FAF5; }
.ct .ord, .ob-ct .ord { position: absolute; top: 7px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sand); color: var(--ink-2-bg); font-style: normal; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.mainb { display: inline-block; margin-left: 0; padding: 2px 8px; border-radius: 9px; background: var(--sand); color: var(--ink-2-bg); font-size: 11px; font-weight: 800; vertical-align: 2px; }
.p-note { margin: 8px 2px 0; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--ink-2-bg); }

/* постоянные блюда */
.p-habs { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.p-hab { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--sand); font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.p-hab small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2-bg); }
.p-hx { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.p-hadd { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.p-hform { padding: 10px 12px 12px; border-radius: 14px; background: var(--bg); }
.p-hres { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; max-height: 190px; overflow: auto; }
.p-hr { text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: 13.5px; font-weight: 700; }
.bdg.hab { background: var(--accent); color: var(--on-accent); }

/* единая строка по людям и кнопка пересборки */
#rebuild { width: 100%; }

/* меню упрощено под низкий бюджет (Роман 12.11: «подсветил бы, что из-за низкого бюджета выбран более простой рацион») */
.bmode { margin-top: 12px; width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: rgba(190, 79, 56, .10); box-shadow: inset 4px 0 0 var(--sale); border: 0; font: inherit; color: #7B2F1F; cursor: pointer; }
.bmode b { font-size: 14px; font-weight: 800; }
.bmode span { font-size: 13px; line-height: 1.38; font-weight: 600; }

.dlg { position: absolute; z-index: 70; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(29, 26, 22, .5); }
.dlg-c { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; padding: 22px 20px 18px; border-radius: 24px; background: var(--paper, #FFFCF5); box-shadow: 0 24px 60px rgba(29, 26, 22, .35); text-align: center; }
.dlg-c h3 { margin: 0; font-size: 19px; font-weight: 800; }
.dlg-c p { margin: 0 0 6px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink-2-bg); }
.dlg-c .cta { height: 50px; margin: 0; }
.bm-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bm-a .cta { width: auto; height: 42px; padding: 0 16px; font-size: 14px; }
.bm-a .p-gh { width: auto; height: 42px; padding: 0 14px; }
.bmode { cursor: default; }
@media (max-width: 380px) { .goal { gap: 12px; grid-template-columns: 84px minmax(0, 1fr); } .meter .row { font-size: 12.5px; } .meter .row b { white-space: normal; text-align: right; } }
.chainrow .mainl { margin-top: 3px; font-size: 11.5px; font-weight: 800; color: var(--accent); }

.tag.xs.deal { background: var(--sale); color: #fff; }
.dealc { margin-top: 12px; padding: 12px 14px 6px; border-radius: 20px; background: linear-gradient(135deg, #FBEEE6, var(--card)); box-shadow: var(--shadow), inset 0 0 0 1px rgba(190, 79, 56, .18); }
.dl-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.dl-h b { font-size: 15px; font-weight: 800; }
.dl-h span { font-size: 12.5px; font-weight: 800; color: var(--sale); }
.dl { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed rgba(190, 79, 56, .25); }
.dl .tile { width: 52px; height: 52px; border-radius: 14px; overflow: hidden; }
.dl-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dl-t > b { font-size: 14px; font-weight: 800; line-height: 1.25; }
.dl-p b { font-size: 14px; font-weight: 800; color: var(--sale); }
.dl-p s, .was, .it-p s { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2-bg); text-decoration: line-through; }
.dl-t small, .it-t small { font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ink-2-bg); }
.dteaser { margin-top: 12px; width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 10px; align-items: center; padding: 11px 14px; text-align: left; font-size: 13px; line-height: 1.35; font-weight: 700; background: var(--sand); }
.dealrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; }
.it-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .it-t b { font-size: 14px; font-weight: 800; }
.it-p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; } .it-p b { font-size: 14px; font-weight: 800; color: var(--sale); }
.was { margin-right: 6px; }
.chainrow .eta:empty { display: none; }
.meter .row b, .bigv, .chainrow .sum { white-space: nowrap; }
.bmode { gap: 2px; padding: 10px 14px; }
.bmode b { font-size: 13.5px; } .bmode span { font-size: 12.5px; line-height: 1.3; }
.bm-a { flex-wrap: nowrap; margin-top: 6px; gap: 8px; }
.bm-a .cta, .bm-a .p-gh { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 17px; flex: 0 1 auto; white-space: nowrap; }
@media (max-width: 380px) { .meter .row b { white-space: nowrap; } }
.ct .cap, .ob-ct .cap { margin-top: -3px; font-size: 11px; font-weight: 700; color: var(--ink-2-bg); line-height: 1.1; }
.cnoa { margin: 0 0 10px; padding: 0 4px; font-size: 13px; line-height: 1.35; font-weight: 700; text-align: center; color: var(--ink-2-bg); }

/* ---------- товары: фото сети, шторка товара, варианты, любимые, сверх меню (2026-11-12) ---------- */
.tile.pt { background: #fff; border: 1px solid var(--line); }
.tile.pt img { mix-blend-mode: normal; object-fit: contain; padding: 4px; }
.row .tile.pt img, .item .tile.pt img { padding: 3px; }
.tile.ph { background: var(--sand); border-color: transparent; }
.tile.ph b { font: 700 22px/1 var(--f-head); color: var(--ink-2-bg); letter-spacing: -.02em; }
.tile.big { width: 100%; height: 100%; border-radius: 22px; }
.tile.big.ph b { font-size: 64px; }
.tile.big img { padding: 10px; }
.heart { width: 15px; height: 15px; fill: var(--sale); stroke: none; vertical-align: -2px; flex: none; }
.row .pr { display: inline-flex; align-items: center; gap: 5px; }
.item .chain .heart { margin-left: auto; }
.row .ours { margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.25; }
.row .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row[role=button], .item[role=button], .popt { cursor: pointer; }
.row[role=button]:active, .item[role=button]:active { transform: scale(.985); }
.ihero { height: 220px; margin-top: 6px; }
.ik { margin-top: 14px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; color: var(--ink-2-bg); letter-spacing: .02em; }
.ik .fav-l { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--sale); }
.isub { margin: 5px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.35; }
.iprice { margin-top: 12px; display: flex; align-items: baseline; gap: 10px; }
.isub.itr { margin-top: 8px; font-weight: 800; }
.isub.itr.dn { color: var(--accent); } .isub.itr.up { color: var(--sale); }   /* история цен: дешевле зелёным, дороже красным */
.iprice b { font: 700 28px/1 var(--f-head); letter-spacing: -.025em; }
.iprice s { font-size: 15px; font-weight: 600; color: var(--ink-2-bg); }
.iact { margin-top: 18px; display: grid; gap: 10px; }
.iact a.cta { text-decoration: none; }
.iback { height: 36px; padding: 0 14px 0 10px; font-size: 13px; width: auto; border-radius: 12px; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; }
.iback::before { content: "\2039"; font-size: 20px; line-height: 1; margin-top: -2px; }
.popts { margin-top: 14px; display: grid; gap: 9px; }
.popt { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px 8px 8px; width: 100%; text-align: left; border: 2px solid transparent; }
.popt .tile { width: 50px; height: 50px; border-radius: 12px; }
.popt .tile img { padding: 3px; }
.popt-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.popt-t small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2-bg); }
.popt-b { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.popt-b:empty { display: none; }
.popt-b .tag.ok { background: var(--accent); }
.popt-b .tag:not(.ok) { background: var(--ink-2-bg); }
.popt-p { display: inline-flex; align-items: center; gap: 5px; }
.popt-p b { font: 700 14.5px/1 var(--f-head); letter-spacing: -.02em; white-space: nowrap; }
.ild { padding: 30px 0; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--ink-2-bg); }
.ispin { display: block; width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%; border: 3px solid var(--sand); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.xq { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; }
.xq .xadd { height: 32px; padding: 0 14px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 800; }
.xq button:not(.xadd) { width: 32px; height: 32px; border-radius: 11px; background: var(--sand); display: grid; place-items: center; }
.xq button:not(.xadd) .ico { width: 16px; height: 16px; }
.xq b { min-width: 28px; text-align: center; font: 700 15px/1 var(--f-head); }
.xrow .xq { margin-top: 5px; }
.myentry { width: 100%; margin-top: 12px; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; text-align: left; }
.myentry .ic { width: 40px; height: 40px; border-radius: 13px; background: var(--sand); display: grid; place-items: center; }
.myentry b { font-size: 14.5px; font-weight: 800; }
.myentry small { display: block; margin-top: 1px; font-size: 12px; font-weight: 600; color: var(--ink-2-bg); }
.myrow .pr { gap: 6px; }
.iprice small { font-size: 12.5px; font-weight: 700; color: var(--ink-2-bg); margin-left: auto; white-space: nowrap; }
.idesc { font-size: 13px; line-height: 1.4; }
.iact .xq { margin: 0; display: flex; justify-content: center; gap: 10px; }
.iact .xq .xadd { width: 100%; height: 50px; border-radius: 16px; font-size: 15.5px; }
.iact .xq button:not(.xadd) { width: 50px; height: 50px; border-radius: 16px; }
.iact .xq b { min-width: 60px; font-size: 20px; }

/* ---------- любимые, варианты в шторке, каталог «Товары» (2026-11-12) ---------- */
.srch { margin-top: 14px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.srch .ico { width: 18px; height: 18px; color: var(--ink-2-bg); flex: none; }
.srch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: 600 15px/1 var(--f-body, inherit); color: var(--ink); outline: none; }
#cats { margin-top: 10px; }
.row .q .heart { vertical-align: -2px; margin-right: 2px; }
.alts { margin: 8px -20px 0; padding: 2px 20px 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.alts::-webkit-scrollbar { display: none; }
.acard { flex: none; width: 128px; scroll-snap-align: start; text-align: left; padding: 8px; border-radius: 16px; background: var(--card); border: 2px solid transparent; box-shadow: 0 6px 14px -10px rgba(60, 45, 20, .55); display: flex; flex-direction: column; gap: 4px; position: relative; }
.acard.on { border-color: var(--accent); }
.acard .tile { width: 100%; height: 84px; border-radius: 11px; }
.acard b { font-size: 12.5px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 30px; }
.acard .ap { font: 700 15px/1 var(--f-head); letter-spacing: -.02em; }
.acard small { font-size: 11.5px; font-weight: 600; color: var(--ink-2-bg); }
.acard .ab { position: absolute; top: 12px; left: 12px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 3px 7px; border-radius: 8px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; gap: 3px; }
.acard .ab.fv { background: #fff; color: var(--sale); }
.acard .ab .heart { width: 11px; height: 11px; }
.apick { margin-top: 8px; padding: 12px; display: grid; gap: 8px; border: 2px solid var(--accent); }
.apick .apt b { display: block; font-size: 14px; font-weight: 800; line-height: 1.25; }
.apick .apt span { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--ink-2-bg); }
.otabs { margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.favs { margin-top: 8px; display: grid; gap: 7px; }
.fvr { display: grid; grid-template-columns: 26px minmax(0, 1fr) 34px 34px 34px; gap: 6px; align-items: center; padding: 6px 6px 6px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.fvr .rk { width: 24px; height: 24px; border-radius: 50%; background: var(--sale); color: #fff; font: 800 12.5px/24px var(--f-head); text-align: center; }
.fvr .ft b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; font-weight: 800; line-height: 1.2; }
.fvr .ft small { font-size: 11px; font-weight: 600; color: var(--ink-2-bg); }
.fvr button { width: 34px; height: 34px; border-radius: 11px; background: var(--sand); display: grid; place-items: center; }
.fvr button:disabled { opacity: .35; }
.fvr button .ico { width: 15px; height: 15px; }
.fvr button[data-fo=up] .ico { transform: rotate(-90deg); }
.fvr button[data-fo=down] .ico { transform: rotate(90deg); }
.hbtn { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; flex: none; }
.hbtn .heart { width: 19px; height: 19px; fill: none; stroke: var(--ink-2-bg); stroke-width: 2; }
.hbtn.on { background: #F7DDD5; }
.hbtn.on .heart { fill: var(--sale); stroke: var(--sale); }
.popt-p { gap: 8px; }
.popt-b .tag.fv { background: var(--sale); }
.popt { align-items: center; }
.iback.xx::before { content: none; } .iback.xx { padding: 0 14px; }

/* ===== визуал, итерация 1 (12.11 ночь): один акцент, шторка вариантов ===== */
/* «В корзину» у акций и в списках: тихая кнопка, зелень остаётся у главного действия экрана */
.xq .xadd { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .12s ease, background-color .15s ease; }
.xq .xadd::before { content: "+"; font: 700 17px/1 var(--f-head); color: var(--accent); margin-top: -1px; }
.xq .xadd:active { transform: scale(.96); background: var(--sand); }
.xq:has(b) { padding: 2px; border-radius: 13px; background: var(--tint-sage); }
.xq:has(b) b { color: var(--accent); }
.xq:has(b) button:not(.xadd) { background: var(--card); }
.xq b { animation: xq-pop .28s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes xq-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
/* в шторке товара это главное действие: зелёная */
.iact .xq .xadd { background: var(--accent); color: var(--on-accent); box-shadow: none; justify-content: center; }
.iact .xq .xadd::before { color: var(--on-accent); }
.iact .xq:has(b) { background: none; padding: 0; }

/* шторка вариантов: без второго «Закрыть» (крестик уже есть), фото крупнее, метки плашками, а не ценниками */
.iback.xx { display: none; }
.iback.xx + .sh1 { margin-top: 2px !important; padding-right: 48px; }
.popt { grid-template-columns: 62px minmax(0, 1fr) auto; padding: 10px 12px 10px 10px; transition: transform .12s ease; }
.popt:active { transform: scale(.985); }
.popt .tile { width: 62px; height: 62px; border-radius: 14px; }
.popt-t b { font-size: 14px; }
.popt-p b { font-size: 16px; }
.popt-b .tag { clip-path: none; border-radius: 7px; padding: 4px 8px; font-size: 11px; }
.popt-b .tag::before { content: none; }
.popt-b .tag.ok { background: var(--tint-sage); color: var(--accent); }
.popt-b .tag:not(.ok) { background: var(--sand); color: var(--ink); }
.popt-b .tag.fv { background: #F7DDD5; color: #9A3B28; }

/* появление строк списков */
@media (prefers-reduced-motion: no-preference) {
  .popts .popt { animation: rise .32s cubic-bezier(.2, .8, .2, 1) both; }
  .popts .popt:nth-child(2) { animation-delay: .03s; } .popts .popt:nth-child(3) { animation-delay: .06s; }
  .popts .popt:nth-child(4) { animation-delay: .09s; } .popts .popt:nth-child(5) { animation-delay: .12s; }
  .popts .popt:nth-child(n+6) { animation-delay: .15s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .xq b { animation: none; } }

/* ===== визуал, итерация 2: фото товаров без серого квадрата, скелетоны по форме карточек, спокойный «Нет в сети» ===== */
/* у фото сетей фон #F1F1F1: лёгкая яркость доводит его до белого плитки, товар становится сочнее */
.tile.pt img:not(.photo):not(.full) { filter: brightness(1.05) contrast(1.035) saturate(1.06); }
/* скелетон повторяет карточку: плитка фото и две строки, блик бежит только по ним */
.sk-c { position: relative; height: 84px; background: var(--card); box-shadow: var(--shadow); animation: none; }
.sk-c::before, .sk-c::after { content: ""; position: absolute; background: linear-gradient(100deg, var(--sand) 30%, #F6F0E3 50%, var(--sand) 70%); background-size: 240% 100%; animation: shimmer 1.4s linear infinite; }
.sk-c::before { left: 12px; top: 12px; width: 60px; height: 60px; border-radius: 14px; }
.sk-c::after { left: 86px; right: 22%; top: 21px; height: 42px;
  -webkit-mask: linear-gradient(#000 0 0) 0 0 / 100% 13px no-repeat, linear-gradient(#000 0 0) 0 27px / 58% 11px no-repeat;
          mask: linear-gradient(#000 0 0) 0 0 / 100% 13px no-repeat, linear-gradient(#000 0 0) 0 27px / 58% 11px no-repeat; }
.sk-c:nth-child(odd)::after { right: 34%; }
.sk-c:nth-child(3n)::after { right: 14%; }
@media (prefers-reduced-motion: reduce) { .sk-c::before, .sk-c::after { animation: none; } }
/* «Нет в сети»: одна карточка с томатной кромкой, а не три красные плашки */
.warns.miss { background: var(--card); box-shadow: inset 3px 0 0 var(--sale), var(--shadow); }
.warns.miss .wr.warn { background: none; box-shadow: none; color: var(--ink); font-weight: 650; }
.warns.miss .wr.warn + .wr.warn { border-top: 1px dashed var(--line); }

/* ===== визуал, итерация 3: отклик на нажатие везде, вкладка и сердце оживают, видимый фокус ===== */
/* у карточек transform без transition: их появление ведёт GSAP, переход бы с ним спорил */
.chip, .p-gh, .hbtn, .tab .ti { transition: transform .14s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease; }
.chip:active, .p-gh:active { transform: scale(.95); }
.hbtn:active { transform: scale(.86); }
.tab:active .ti { transform: scale(.88); }
.card[role=button]:active, .myrow:active { transform: scale(.985); }
:where(button, [role=button], a, input):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .tab.on .ti { animation: tab-pop .38s cubic-bezier(.3, 1.5, .5, 1); }
  .tab.on::before { animation: tab-line .32s cubic-bezier(.2, .8, .2, 1); }
  .hbtn.on .heart { animation: heart-pop .42s cubic-bezier(.3, 1.6, .5, 1); }
  .chip.on { animation: chip-on .26s ease-out; }
}
@keyframes tab-pop { 0% { transform: scale(.82) translateY(2px); } 60% { transform: scale(1.08) translateY(-1px); } 100% { transform: none; } }
@keyframes tab-line { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes heart-pop { 0% { transform: scale(.6); } 55% { transform: scale(1.22); } 100% { transform: none; } }
@keyframes chip-on { from { transform: scale(.94); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .chip, .p-gh, .hbtn, .tab .ti { transition: none; } }

/* ===== визуал, итерация 4: «Где дешевле» — полосы цены тише, выбранная сеть зелёная ===== */
.cbar { height: 5px; }
.cbar i { background: #A99E90; }
.chainrow.on .cbar i { background: var(--accent); }
.chainrow .best { background: var(--tint-sage); color: var(--accent); }

/* ===== визуал, итерация 5: замены в корзине без второй зелёной кнопки ===== */
.subc .sbb { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.subc .sb button { transition: transform .12s ease; }
.subc .sb button:active { transform: scale(.96); }
/* шаги рецепта: крупно, номер в кружке - читать с плиты, на расстоянии вытянутой руки */
.steps { list-style: none; padding-left: 0; counter-reset: st; gap: 12px; font-size: 15px; line-height: 1.45; }
.steps li { counter-increment: st; position: relative; padding-left: 38px; min-height: 26px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--ink); font: 700 12px/26px var(--f-head); text-align: center; }
/* очистка поиска: свой крестик в цвет темы вместо синего системного */
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-right: -2px; border-radius: 50%; cursor: pointer;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23625850' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ===== визуал, итерация 6: фото блюд крупнее - еда продаёт меню ===== */
.meal { grid-template-columns: 80px minmax(0, 1fr) 18px; gap: 14px; }
.meal .tile { width: 80px; height: 80px; border-radius: 17px; }
@media (max-width: 360px) { .meal { grid-template-columns: 68px minmax(0, 1fr) 18px; gap: 12px; } .meal .tile { width: 68px; height: 68px; } }

/* ux: кружок «Съели» в строке блюда и итог недели */
.meal.ck { grid-template-columns: 80px minmax(0, 1fr) 36px; }   /* колонка фото = ширине фото (80), иначе текст наезжает на картинку */
@media (max-width: 360px) { .meal.ck { grid-template-columns: 68px minmax(0, 1fr) 36px; } }
.meal .tile { flex: 0 0 80px; min-width: 0; max-width: 100%; justify-self: start; }
@media (max-width: 360px) { .meal .tile { flex-basis: 68px; } }
.eatb { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--card); }
.meal .eatb .ico { color: transparent; transition: color .2s; }
.eatb.on { background: var(--accent); border-color: var(--accent); }
.meal .eatb.on .ico { color: var(--on-accent, #fff); }
.wsum { margin-top: 12px; padding: 6px 16px; }
.wsum .ws-r { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); }
.wsum .ws-r:last-child { border-bottom: 0; } .wsum .ws-r b { color: var(--ink); font-weight: 800; }

/* ===== «Купил» и «Есть дома» в списке корзины (13.11): круглая отметка слева, купленное серое и внизу, блок «Есть дома» свёрнут ===== */
.buyp { margin: 12px 0 2px; }
.buyp b { display: block; font: 700 13.5px/1.2 var(--f-head); }
.buyp i { display: block; margin-top: 8px; height: 6px; border-radius: 3px; background: var(--sand); overflow: hidden; }
.buyp u { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--accent); transform-origin: left center; transition: transform .35s cubic-bezier(.3, 1, .4, 1); }
.row.hasc { grid-template-columns: 40px 50px minmax(0, 1fr) auto; gap: 8px; padding-left: 3px; }
.row .chk, .row .chk0 { width: 40px; height: 44px; display: grid; place-items: center; }
.row .chk i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; transition: background-color .2s, border-color .2s, transform .15s; }
.row .chk .ico { width: 15px; height: 15px; stroke-width: 2.4; color: transparent; transition: color .2s; }
.row .chk:active i { transform: scale(.9); }
.row.done .chk i { background: var(--accent); border-color: var(--accent); }
.row.done .chk .ico { color: var(--on-accent); }
.row.done { box-shadow: none; background: transparent; }
.row.done .tile { filter: grayscale(1); opacity: .6; }
.row.done .nm, .row.done .q, .row.done .ours, .row.done .pr { color: var(--ink-2-bg); text-decoration: line-through; text-decoration-thickness: 1px; }
.row.done .nm { font-weight: 700; }
.hmb1 { margin-top: 5px; min-height: 30px; padding: 0 11px; border-radius: 10px; background: var(--sand); color: var(--ink); font-size: 12px; font-weight: 800; transition: transform .12s ease, background-color .15s ease; }
.hmb1:active { transform: scale(.96); background: var(--line); }
.hmbox { margin-top: 16px; padding: 4px 14px; }
.hmh { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 8px; text-align: left; font: 700 14px/1.2 var(--f-head); }
.hmh span { flex: 1; }
.hmh small { font: 700 12px/1 var(--f-text); color: var(--ink-2-bg); background: var(--sand); border-radius: 9px; padding: 4px 8px; }
.hmh .ico { transition: transform .2s; }
.hmbox.open .hmh .ico { transform: rotate(180deg); }
.hmbox .hml { display: none; padding-bottom: 8px; }
.hmbox.open .hml { display: block; }
.hmr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.hmr b { display: block; font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.hmr small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ink-2-bg); }
.hmx { flex: none; min-height: 34px; padding: 0 12px; border-radius: 11px; background: var(--sand); font-size: 12.5px; font-weight: 800; }
.hmx:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { .buyp u, .row .chk i, .hmh .ico { transition: none; } }

/* не люблю: опасное действие в карточке товара и подпись в списке профиля */
.p-gh.warn { color: var(--sale); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.p-nvr .nvs { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; color: var(--ink-2); }

/* источник рецепта: аккуратная кнопка под шагами */
.srcbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0 4px; min-height: 48px; padding: 0 18px; border-radius: 16px; background: var(--sand); color: var(--ink); font-weight: 800; font-size: 14.5px; text-decoration: none; box-shadow: inset 0 0 0 1.5px var(--line); transition: transform .14s ease, background-color .18s ease; }
.srcbtn:active { transform: scale(.97); background: var(--line); }
.srcbtn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srcbtn .ico { width: 18px; height: 18px; flex: none; stroke-width: 2.1; }

/* порции в рецепте: «На 2 человека · 1 день» и переключатели людей и дней */
.pbar { margin-top: 12px; padding: 12px 14px 12px; border-radius: 18px; background: var(--sand); }
.pbar .pbt { display: flex; flex-direction: column; gap: 2px; }
.pbar .pbt b { font-size: 16px; font-weight: 800; }
.pbar .pbt small { font-size: 12.5px; font-weight: 700; color: var(--ink-2-bg); }
.pbar .pbc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.stp { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; background: var(--card); border-radius: 14px; padding: 3px; }
.stp button { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--ink); }
.stp button:active:not(:disabled) { background: var(--sand); }
.stp button:disabled { opacity: .3; }
.stp > div { text-align: center; line-height: 1.1; min-width: 0; }
.stp > div b { display: block; font-size: 18px; font-weight: 800; }
.stp > div small { font-size: 11.5px; font-weight: 700; color: var(--ink-2-bg); }
.pbar .pbr { margin-top: 8px; font-size: 13px; font-weight: 800; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.ings.pbusy, .steps.pbusy { opacity: .45; transition: opacity .15s; }

/* белок на выбор: пресеты и у каждого вида «Люблю / Ем / Не ем» */
.p-prot { margin-top: 10px; padding: 4px 12px; }
.p-pr { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; }
.p-pr + .p-pr { border-top: 1px dashed var(--line); }
.p-pn { font-size: 14.5px; font-weight: 800; min-width: 0; }
.p-pseg { display: inline-flex; padding: 3px; border-radius: 15px; background: var(--sand); gap: 2px; }
.p-pseg button { height: 30px; padding: 0 11px; border-radius: 12px; font-size: 12.5px; font-weight: 800; color: var(--ink-2-bg); white-space: nowrap; transition: background .2s, color .2s; }
.p-pseg button.on.love { background: var(--accent); color: var(--on-accent); }
.p-pseg button.on.eat { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.p-pseg button.on.no { background: var(--ink); color: #fff; }
@media (max-width: 360px) { .p-pseg button { padding: 0 8px; font-size: 12px; } }
/* «Все товары»: серая карточка (нет в магазинах пользователя) и список «Где есть и почём» */
.grow.gr { opacity: .6; }
.grow.gr .tile img { filter: grayscale(1); }
.igr { color: var(--ink-2, #8a6a2a); font-weight: 600; }
.offs { display: grid; gap: 6px; margin: 6px 0 2px; }
.off { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line); color: inherit; text-decoration: none; }
.off span { flex: 1; min-width: 0; }
.off small { display: block; opacity: .65; font-size: 12px; }
.off b { font-variant-numeric: tabular-nums; }
.off.gr { opacity: .55; }

/* «Товары», карточка товара, шторка вариантов: единая система кнопок и значков (13.11).
   Главная кнопка одна (зелёная), сердечко всегда справа (у названия или у цены), «не люблю» тихо в «Ещё» без красного. */
.gtabs { display: flex; gap: 2px; padding: 4px; margin-top: 16px; border-radius: 16px; background: var(--sand); }
.gtabs button { flex: 1; min-width: 0; height: 44px; padding: 0 8px; border-radius: 12px; font-size: 14px; font-weight: 800; color: var(--ink-2-bg); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.gtabs button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(60, 45, 20, .18); }
.gtabs i { font-style: normal; font-size: 12px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(29, 26, 22, .08); line-height: 20px; }
.gtabs i:empty { display: none; }
@media (max-width: 360px) { .gtabs button { font-size: 13px; gap: 4px; } }
/* одно сердечко везде: кнопка 44 px; включённое с номером приоритета рядом; та же метка .fmark в строках и списках */
.hbtn { width: 44px; height: 44px; border-radius: 22px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.hbtn.on:has(b) { width: auto; min-width: 44px; padding: 0 12px 0 10px; }
.hbtn b, .fmark b { font: 800 13px/1 var(--f-head); color: #9A3B28; }
.fmark { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 7px; border-radius: 12px; background: #F7DDD5; flex: none; }
.fmark .heart { width: 13px; height: 13px; fill: var(--sale); stroke: none; }
.fmark b { font-size: 12px; }
.ihead { display: flex; align-items: flex-start; gap: 12px; margin-top: 4px; }
.ihead .sh1 { flex: 1; min-width: 0; margin-top: 2px; }
.ihead .hbtn { height: 48px; min-width: 48px; border-radius: 24px; }
.ihead .hbtn .heart { width: 22px; height: 22px; }
.ihead .hbtn b { font-size: 15px; }
.ifv { color: #9A3B28; font-weight: 700; }
.ik .ilink { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0; text-decoration: none; }
.ik .ilink .ico { width: 14px; height: 14px; stroke-width: 2; color: var(--ink-2-bg); }
.iact { margin-top: 20px; }
.imore { margin-top: 14px; display: flex; flex-direction: column; align-items: center; }
.iact .cta .ico { width: 18px; height: 18px; }
.imore-b { height: 44px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2-bg); font-size: 14px; font-weight: 700; }
.imore-b .ico { width: 18px; height: 18px; }
.imore-b[aria-expanded=true] { background: var(--sand); color: var(--ink); }
.imenu { width: 100%; margin-top: 8px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.imenu[hidden] { display: none; }
.imi { width: 100%; min-height: 48px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; text-align: left; color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.imi + .imi { border-top: 1px solid var(--line); }
.imi .ico { color: var(--ink-2-bg); }
.imi:active { background: var(--sand); }
.tlink { height: 44px; color: var(--ink-2-bg); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.acard { width: 150px; }
.acard b { -webkit-line-clamp: 3; min-height: 45px; }
.acard .ap { display: flex; align-items: center; gap: 6px; }
.acard .fmark b { display: inline; min-height: 0; -webkit-line-clamp: unset; overflow: visible; font: 800 12px/1 var(--f-head); }
.acard .ach { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 7px; background: var(--tint-sage); color: var(--accent); white-space: nowrap; }
.fvr { display: flex; align-items: center; gap: 10px; padding: 8px 4px 8px 10px; }
.fvr .ft { flex: 1; min-width: 0; }
.fvr .ft b { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 13.5px; line-height: 1.25; }
.fvr .ft small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); }
.fvr .tile { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.fvr .tile img { padding: 2px; }
.fvr button { width: 44px; height: 44px; border-radius: 14px; background: transparent; color: var(--ink-2-bg); flex: none; }
.fvr button:not(:disabled):active { background: var(--sand); }
.fvr .fo-ord { display: none; flex: none; }
.ord .fvr .fo-ord { display: inline-flex; }
.ord .fvr .fo-rm { display: none; }
.fvr.gr .ft b, .fvr.gr .tile { opacity: .55; }
.ordb { height: 44px; padding: 0 4px; margin-top: 2px; color: var(--ink-2-bg); font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.ord .ordb { color: var(--accent); }
.fgh2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.fgh2 .sh2 { margin: 0; }
.favwrap .favs { margin-top: 4px; }
.fsum { margin: 14px 2px 0; font-size: 13px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.35; }
.ocap { margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.35; }
.popt-t b { -webkit-line-clamp: 3; }
.iback { height: 44px; }
.sheet .xbtn { width: 44px; height: 44px; top: 10px; right: 10px; }
.fgrp { margin-top: 14px; padding: 14px 12px 8px 14px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.fgh { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.fgh > div { flex: 1; min-width: 0; }
.fgh b { display: block; font: 700 16px/1.2 var(--f-head); letter-spacing: -.01em; }
.fgh small { display: block; margin-top: 3px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.fgo { height: 44px; padding: 0 8px 0 14px; border-radius: 18px; background: var(--sand); font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; gap: 2px; flex: none; }
.fgrp .favs { margin-top: 0; gap: 0; }
.fgrp .fvr { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding-left: 0; }
#pfav .empty, #pdis .p-tc { margin-top: 10px; }
#pdis .p-lab2 { display: none; }
#pdis .p-nv { margin-top: 16px; }
.grow.gr { opacity: 1; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.grow.gr .nm, .grow.gr .pr { color: var(--ink-2-bg); }
.grow.gr .q { color: var(--ink-2-bg); font-weight: 700; }
.grow.gr .tile { opacity: .75; }
.off > .cm { flex: none; }
.off small { opacity: 1; color: var(--ink-2); }
.off.gr { opacity: 1; background: transparent; }
.off.gr span, .off.gr b { color: var(--ink); }
.off.gr small { color: var(--ink-2-bg); }

/* «Товары», круг 3 (13.11): закреплённая шапка шторки, ровная карусель, причина серой карточки, одинаковые плитки фото */
/* шапка шторки: прилипает к самому верху (top -4px гасит padding шторки, иначе над шапкой щель, где видны обрывки), справа место под крестик, варианты уезжают под неё */
.sheet .shead { position: sticky; top: -4px; z-index: 1; margin: 0 -20px; padding: 2px 64px 8px 20px; background: var(--card); display: flex; flex-direction: row; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px -10px rgba(40, 28, 10, .38); }
.sheet .shead .iback { margin-top: 0; height: 40px; flex: none; }
.sheet .shead .sh1 { margin: 0 !important; padding-right: 0; flex: 1; min-width: 0; font-size: 17px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet .shead.ishd { min-height: 44px; padding: 0 64px 0 20px; border-bottom: 0; box-shadow: none; }
.sheet .shead.ishd + .ihero { margin-top: 0; }
.sheet.scr .shead.ishd { border-bottom: 1px solid var(--line); box-shadow: 0 8px 12px -10px rgba(40, 28, 10, .38); }
/* карусель вариантов: «300 ₽/кг · дешевле» одной строкой, слово «дешевле» зелёным текстом без плашки */
.acard .am small .ach { display: inline; align-self: auto; padding: 0; border-radius: 0; background: none; color: var(--accent); font: inherit; font-weight: 800; }
/* шторка стоит на дробной высоте (бывает .28 px): под краем прокрутки в строке пикселей над полосой шапки проглядывал низ букв; полоса-накладка шириной 6 px по границе её закрывает */
.sheet:has(.shead) .grab { position: relative; z-index: 1; }
.sheet:has(.shead) .grab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 6px; background: var(--card); pointer-events: none; }
/* крестик один на все состояния карточки (с кнопкой «назад» и без, вверху и прокручено): песочный круг 44 px в углу шторки, внутри той же полосы шапки 44 px; полоса при прокрутке получает границу, текст уходит под неё */
/* строка «Показываю магазины из твоего профиля» и «Изменить» справа */
.ocap { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ocap span { flex: 1; min-width: 0; }
.ocap .tlink { flex: none; height: 40px; padding: 0 2px; color: var(--ink); font-size: 13px; }
/* карусель «Другие варианты»: одна высота, название в 2 строки, цена и сердечко на одной линии внизу */
.alts { align-items: stretch; }
/* круг 4: карточка 160 px (третья выглядывает на 30 px), паддинг 6, название до 3 строк, характеристики и «Дешевле за кг» под названием */
.acard { width: 160px; padding: 6px; gap: 4px; cursor: pointer; transition: transform .12s ease; }
.acard:active { transform: scale(.985); }
.acard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acard .at { position: relative; }
.acard .tile { width: 100%; height: 88px; border-radius: 13px; }
.acard .tile img { padding: 6px; }
.acard > b { font-size: 12.5px; font-weight: 800; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 45px; margin-top: 2px; overflow-wrap: anywhere; }
.acard .am { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.acard .am small { font-size: 11.5px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.25; }
.acard .am .ach { position: static; }
.acard .ap { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 40px; }
.acard .ap em { font: 700 15.5px/1 var(--f-head); font-style: normal; letter-spacing: -.02em; white-space: nowrap; }
.acard .hbtn { width: 40px; height: 40px; border-radius: 20px; }
.acard .hbtn.on:has(b) { width: auto; min-width: 40px; padding: 0 10px 0 8px; }
.acard .hbtn .heart { width: 18px; height: 18px; }
.acard .hbtn b { display: inline; min-height: 0; margin: 0; -webkit-line-clamp: unset; overflow: visible; font: 800 12.5px/1 var(--f-head); }
/* серая карточка: причина, что будет дальше, и одна понятная кнопка */
.igrb { margin: 12px 0 2px; padding: 12px 14px; border-radius: 16px; background: var(--sand); }
.igrb b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.25; }
.igrb p { margin: 4px 0 0; font-size: 13px; font-weight: 600; color: var(--ink-2-bg); line-height: 1.35; }
.igrb .cta { margin-top: 10px; background: var(--card); }
.igrb .cta .ico { width: 16px; height: 16px; }
/* сердечко в строке любимых: та же круглая кнопка, что везде */
.fvr .hbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 22px; }
.fvr .hbtn .heart { width: 18px; height: 18px; }
.fvr .hbtn.on:has(b) { min-width: 60px; }
/* фото товаров: белая подложка, тонкая рамка, товар целиком (contain), один размер плитки во всех списках «Товаров» и шторки */
#pall .row, #pfav .row { grid-template-columns: 56px minmax(0, 1fr) auto; }
#pall .row .tile, #pfav .tile, .popt .tile, .fvr .tile { width: 56px; height: 56px; border-radius: 13px; }
#pall .row .tile img, #pfav .tile img, .popt .tile img, .fvr .tile img { padding: 4px; }
.popt { grid-template-columns: 56px minmax(0, 1fr) auto; }
#pall .tile.pt, #pfav .tile.pt, .sheet .tile.pt { background: #fff; border: 1px solid var(--line); }
#pall .tile.pt img, #pfav .tile.pt img, .sheet .tile.pt img { object-fit: contain; mix-blend-mode: normal; }
#pall .tile.ph, #pfav .tile.ph, .sheet .tile.ph { background: var(--sand); border-color: var(--line); }

/* «Товары», круг 4 (13.11): шире текст в списке вариантов, «за кг» не рвётся, большое фото целиком */
/* цена над сердечком в правой колонке: название получает ~200 px вместо ~145 */
.popt { gap: 10px; padding: 8px 8px 8px 8px; }
.popt-p { flex-direction: column; align-items: flex-end; gap: 2px; }
.popt-t b { font-size: 14px; line-height: 1.22; overflow-wrap: anywhere; }
.popt-t small { line-height: 1.3; }
.ppk { white-space: nowrap; }
/* большая плитка карточки товара: упаковка целиком в любом состоянии (серая, любимая, без фото) */
.ihero { height: 200px; }
.ihero .tile.big { width: 100%; height: 100%; }
.ihero .tile.big img { object-fit: contain; object-position: center; padding: 10px; mix-blend-mode: normal; }
