:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Arial,sans-serif;color:#404040;background:white;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button{font:inherit;color:inherit;border:0;cursor:pointer}button:focus-visible{outline:2px solid #ff426d;outline-offset:3px}.app{width:100%;max-width:492px;margin:0 auto;background:#fff;min-height:100vh}.status{height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 15px 0 26px;color:#000;font-size:15px;font-weight:600;letter-spacing:-.165px}.signals{display:flex;align-items:center;gap:5px}.signals>img:first-child{width:17.1px;height:10.7px}.signals>img:nth-child(2){width:15.4px;height:11.057px}.battery{width:24.5px;height:11.5px;position:relative}.battery img{position:absolute;inset:0}.battery i{position:absolute;left:2px;top:1.9px;width:18px;height:7.667px;background:#000;border-radius:1.6px}header{height:44px;padding:6px 12px;position:relative;display:flex;align-items:center}.back{display:grid;place-items:center;width:48px;height:32px;border-radius:40px;background:#f2f2f2}.back img{width:16px;height:16px}h1{font-size:16px;line-height:19px;letter-spacing:.25px;text-align:center;position:absolute;left:70px;right:70px;pointer-events:none;margin:0;font-weight:700}nav{display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;padding:8px 12px 16px;min-height:128px}nav button{height:32px;padding:0 12px;border-radius:20px;background:#f2f2f2;font-size:13px;line-height:18px;font-weight:600;color:#595959;letter-spacing:-.14px;white-space:nowrap}nav button.active{background:#ffebef;color:#e73c64}nav .more{display:flex;align-items:center;gap:6px}nav .more img{width:10px;height:12px}.promo{height:58px;margin:0 12px;display:flex;align-items:center;gap:8px;position:relative}.promo:before,.promo:after{content:"";height:1px;background:#eee;position:absolute;left:0;right:0}.promo:before{top:0}.promo:after{bottom:0}.progress{position:relative;flex:none;width:40px;height:40px;overflow:hidden;border-radius:50%}.numbers{position:absolute;left:5px;top:12px;display:flex;flex-direction:column;width:17px;text-align:center;font-size:11px;line-height:13px;color:#595959;font-weight:600}.numbers b{font-size:13px;line-height:15px}.numbers span{opacity:.6}.blur{position:absolute;left:-4px;width:48px;height:28px}.blur.top{top:-4px}.blur.bottom{top:16px;transform:scaleY(-1)}.ring{position:absolute;inset:0;width:40px;height:40px}.percent{position:absolute;left:21.5px;top:12px;font-size:13px;line-height:15px}#offer{font-size:11px;line-height:13px;letter-spacing:-.11px;font-weight:600;color:#595959;margin:0;width:145px}.selection{margin-left:auto;display:flex;width:120px;height:40px;padding:0;background:none;align-items:flex-start;flex:none}.slot{width:38px;height:38px;border:1px dashed #d2d2d2;border-radius:8px;flex:none;background:white;position:relative;overflow:hidden;margin-right:-18px}.slot:last-child{margin-right:0}.slot img{width:100%;height:100%;object-fit:cover}section{padding-top:14px;margin-bottom:28px;scroll-margin-top:12px}section h2{height:44px;display:flex;align-items:center;font-size:21px;line-height:24px;letter-spacing:.4px;margin:0 12px 12px;font-weight:700}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 9px;margin:0 12px}.card{min-width:0;position:relative}.photo{position:relative;aspect-ratio:1;border-radius:18px;overflow:hidden;background:#f2f2f2}.photo>.product-image{width:100%;height:100%;object-fit:cover;display:block}.photo.crop>.product-image{position:absolute;top:-27.96%;left:-2.14%;width:104.28%;height:225.67%;object-fit:fill}.photo.crop:after{content:"";position:absolute;inset:5.02% 1.6% 88.21% 95.54%;background:#f2f2f2}.like{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:white}.like img{width:12px;height:12px}.like[aria-pressed=true]{background:#ff426d}.like[aria-pressed=true] img{filter:brightness(0) invert(1)}.title{font-size:11px;line-height:13px;letter-spacing:-.11px;color:#595959;font-weight:600;margin:5px 0 2px;min-height:26px}.meta{display:flex;gap:4px;align-items:center;font-size:11px;line-height:13px;letter-spacing:-.11px;font-weight:600;color:#a6a6a6}.meta img{width:2px;height:2px}.meta .vegan{color:#00b749}.purchase{margin-top:5px;height:32px;display:inline-flex;align-items:center;gap:8px;padding:6px 8px 6px 12px;border-radius:40px;background:#ffebef;font-size:13px;line-height:18px;font-weight:600;letter-spacing:-.14px}.purchase img{width:16px;height:16px}.purchase s{color:#595959;opacity:.3;margin-right:-4px}.counter{height:32px;margin-top:5px;display:inline-flex;align-items:center;gap:12px;background:#ffebef;border-radius:40px;font-size:13px;font-weight:600}.counter button{height:32px;min-width:30px;border-radius:50%;background:transparent;color:#ff426d;font-size:23px}.empty{padding:20px 12px;font-size:14px;color:#a6a6a6}dialog{border:0;border-radius:24px;padding:20px;width:calc(100% - 32px);max-width:460px;color:#404040;max-height:80vh}dialog::backdrop{background:#0005}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-size:21px}.dialog-heading button{border-radius:50%;width:32px;height:32px;font-size:24px}.basket-row{display:flex;align-items:center;gap:12px;margin:12px 0;font-size:13px}.basket-row img{width:50px;height:50px;object-fit:cover;border-radius:12px}.basket-row span{flex:1}.basket-row button{padding:8px;border-radius:12px;background:#ffebef}.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);max-width:90%;background:#404040;color:white;font-size:13px;padding:12px 18px;border-radius:20px;opacity:0;pointer-events:none;transition:opacity .15s}.toast.visible{opacity:1}@media(min-width:430px){.title{min-height:13px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Layout dimensions from the supplied 750 × 5646 reference (2× export). */
.promo{height:56px}#catalog{padding-top:16px;padding-bottom:27px}section{padding-top:0;margin-bottom:32px}section:last-child{margin-bottom:32px}.details{height:46px;padding-top:5px}.title{margin:0 0 2px;min-height:0}.controls{height:37px;padding-top:5px}.purchase,.counter{margin-top:0}.card{display:flex;flex-direction:column}.photo{flex:none}.purchase{gap:8px}nav button[data-category="Завтраки"]{width:85px}nav button[data-category="Супы"]{width:60px}nav button[data-category="Второе"]{width:71px}nav button[data-category="Салаты"]{width:74px}nav button[data-category="Роллы"]{width:67px}nav button[data-category="Азиатский стритфуд"]{width:159px}nav button[data-category="Выпечка"]{width:81px}nav button[data-category="Десерты"]{width:82px}nav button[data-category="Закуски"]{width:78px}nav .more{width:86px}

/* Added-product state from the supplied reference. */
#catalog{padding-top:24px}.photo-count{display:none}.selected .photo-count{display:grid;position:absolute;inset:0;place-items:center;background:rgba(0,0,0,.23);color:#fff;font-size:30px;line-height:36px;font-weight:600;z-index:1}.like{z-index:2}.counter{background:#ff2d64;color:#fff;gap:0;padding:0 4px;height:32px}.counter>span{font-size:13px;line-height:18px;min-width:39px;text-align:center}.counter button{color:#fff;width:28px;min-width:28px;font-size:28px;font-weight:400;padding:0;line-height:28px}.counter button[data-change="1"]{color:rgba(255,255,255,.3)}.progress:after{content:"";position:absolute;inset:0;border-radius:50%;background:conic-gradient(#ff2d64 0deg var(--progress,0deg),transparent var(--progress,0deg) 360deg);mask:radial-gradient(farthest-side,transparent calc(100% - 2px),#000 0);pointer-events:none}.slot:has(img){border:0;background:#f2f2f2}.slot img{border-radius:8px}.selection .slot{z-index:1}.selection .slot:has(img){z-index:2}

/* Keep the leftmost slot in front of every following slot. */
.selection{isolation:isolate}.selection .slot:nth-child(1){z-index:5}.selection .slot:nth-child(2){z-index:4}.selection .slot:nth-child(3){z-index:3}.selection .slot:nth-child(4){z-index:2}.selection .slot:nth-child(5){z-index:1;background:transparent}

/* Checkout control is present only for a 2–5 item combo. */
.combo-action{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:492px;height:90px;padding:0 12px 34px;display:flex;align-items:center;justify-content:center;gap:8px;z-index:20;border-radius:0;background:#ff2d64;color:#fff;font-size:18px;line-height:24px;font-weight:600;letter-spacing:.2px}.combo-action[hidden]{display:none}.combo-action s{opacity:.55}.combo-plus{font-size:40px;font-weight:200;line-height:32px;display:inline-block;margin-left:2px}.has-combo-action{padding-bottom:90px}

.progress.has-discount .numbers:before{content:'0';position:absolute;top:-13px;width:17px;opacity:.6}.progress.has-discount[data-previous='15'] .numbers:before{content:'15'}

/* Motion follows the supplied reference clip: shade in, numeral rises, control crossfades. */
.photo-count,.selected .photo-count{display:grid;position:absolute;inset:0;place-items:center;background:rgba(0,0,0,.36);color:#fff;font-size:30px;line-height:36px;font-weight:600;z-index:1;opacity:0;pointer-events:none;transition:opacity 240ms cubic-bezier(.2,.75,.25,1)}.selected .photo-count{opacity:1}.count-value{display:block}.controls{position:relative}.control-outgoing{position:absolute!important;top:5px;left:0;pointer-events:none;z-index:2}.controls>.purchase,.controls>.counter{overflow:hidden;white-space:nowrap;flex-shrink:0}.controls>.purchase>*{flex-shrink:0}.controls>.counter>*{flex-shrink:0}
@media(prefers-reduced-motion:reduce){.photo-count{transition:none}}

/* The in-flow promotion becomes a floating pill as it reaches the pinned filters. */
.status{position:sticky;top:0;z-index:40;background:#fff}header{position:sticky;top:44px;z-index:40;background:#fff}.nav-anchor{height:128px}.promo-anchor{height:56px}nav.compact{position:fixed;left:50%;top:88px;transform:translateX(-50%);width:100%;max-width:492px;min-height:48px;height:48px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;background:#fff;z-index:40;padding:8px 12px}nav.compact::-webkit-scrollbar{display:none}nav.compact button{flex-shrink:0}.promo.floating{position:fixed;top:144px;left:50%;transform:translateX(-50%);width:calc(100% - 37px);max-width:455px;height:48px;margin:0;padding:4px 8px;border-radius:28px;background:#fff;box-shadow:0 4px 20px #0000001f,0 1px 4px #0000000a;z-index:35;gap:8px}.promo.floating:before,.promo.floating:after{display:none}.promo.floating .progress{flex:none}.promo.floating #offer{width:auto;flex:1;min-width:0;font-size:10px;line-height:12px}.promo.floating .selection{width:120px}section{scroll-margin-top:204px}

/* Let the original promo leave beneath the header before revealing both pinned rows. */
nav.compact{animation:compact-arrive 240ms cubic-bezier(.2,.75,.25,1)}nav.compact button.active{background:#404040;color:#fff}@keyframes compact-arrive{from{opacity:0;transform:translateX(-50%) translateY(-8px)}to{opacity:1;transform:translateX(-50%) translateY(0)}}@media(prefers-reduced-motion:reduce){nav.compact{animation:none}}

/* Added-state controls: 16 px glyphs, 8 px spacing, intrinsic price width. */
.counter{padding:0 8px;gap:8px;height:32px;border-radius:40px;background:#ff2d64}.counter>span{min-width:0;font-size:13px;line-height:18px;letter-spacing:.2px;padding:0 1px;font-weight:600}.counter button{position:relative;display:block;flex:none;width:16px;min-width:16px;height:32px;padding:0;border-radius:0;font-size:0;line-height:0;color:#fff}.counter button:before,.counter button[data-change="1"]:after{content:"";position:absolute;left:0;top:calc(50% - .75px);width:16px;height:1.5px;background:currentColor;border-radius:2px}.counter button[data-change="1"]:after{transform:rotate(90deg)}.counter button[data-change="1"]{color:rgba(255,255,255,.3)}

/* Continuous clockwise arc and vertically rolling discount values. */
.progress:after{display:none}.progress .numbers{top:12px;left:5px;width:19px;display:block;z-index:1}.progress .numbers:before{display:none!important}.percentage-reel{display:flex;flex-direction:column;align-items:center;transition:transform 360ms cubic-bezier(.2,.75,.25,1);will-change:transform}.percentage-reel b{display:block;flex:none;height:15px;min-height:15px;width:19px;font-size:11px;line-height:15px;font-weight:600;opacity:.6;transition:opacity 280ms ease,font-size 280ms ease}.percentage-reel b.current{font-size:13px;font-weight:700;opacity:1}.progress .blur{z-index:2;pointer-events:none}.progress .ring{z-index:3;pointer-events:none}.progress .percent{z-index:4}.progress-arc{position:absolute;inset:0;width:40px;height:40px;z-index:5;pointer-events:none;overflow:visible}.progress-arc circle{fill:none;stroke:#ff2d64;stroke-width:2;stroke-dasharray:100;stroke-dashoffset:100;transform:rotate(-90deg);transform-origin:20px 20px;transition:stroke-dashoffset 420ms cubic-bezier(.2,.75,.25,1)}@media(prefers-reduced-motion:reduce){.percentage-reel,.percentage-reel b,.progress-arc circle{transition:none}}

nav.compact{animation-duration:380ms}

/* Expanded categories stay neutral; selection is visible only in the pinned row. */
nav:not(.compact) button.active{background:#f2f2f2;color:#595959}

/* Figma typography: SF Pro on Apple platforms, with a consistently rendered
   variable-font substitute on platforms where SF Pro is unavailable. */
@font-face {
  font-family: "Combo Inter";
  src: url("assets/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Combo Inter", sans-serif;
  font-optical-sizing: auto;
  font-kerning: normal;
}
/* Figma's SF Pro Variable uses weight 590 for product labels and quantities. */
.title, .meta { font-weight: 590; }

nav.compact{touch-action:pan-x;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;cursor:grab}nav.compact,nav.compact button{user-select:none;-webkit-user-select:none}nav.compact.dragging,nav.compact.dragging button{cursor:grabbing}nav.compact button{touch-action:pan-x}

nav.compact button{transition:background-color 180ms ease,color 180ms ease}@media(prefers-reduced-motion:reduce){nav.compact button{transition:none}}

/* Pinned sorting control and the bottom sorting sheet. */
nav .sort-trigger{display:none}nav.compact .sort-trigger{display:flex;align-items:center;justify-content:center;position:sticky;left:12px;z-index:3;width:32px;min-width:32px;height:32px;padding:0;background:#f2f2f2;border-radius:50%;box-shadow:-12px 0 0 0 #fff,6px 0 0 0 #fff;cursor:pointer;touch-action:manipulation}nav.compact .sort-trigger.sorted{color:#ff2d64}nav.compact .sort-trigger svg{flex:none}
.sort-sheet{position:fixed;inset:auto auto 0 50%;transform:translate(-50%,0);margin:0;width:100%;max-width:492px;max-height:80vh;height:270px;padding:16px 16px max(34px,env(safe-area-inset-bottom));border:0;border-radius:32px 32px 0 0;background:#fff;color:#404040;overflow:auto}.sort-sheet::backdrop{background:rgba(0,0,0,.48);animation:sort-dim 220ms ease}.sort-grip{position:fixed;top:8px;left:50%;transform:translateX(-50%);width:36px;height:4px;background:#e0e0e0;border-radius:4px}.sort-sheet h2{text-align:center;font-size:16px;line-height:20px;margin:16px 0 18px;font-weight:700}.sort-option{display:flex;justify-content:space-between;align-items:center;width:100%;text-align:left;background:none;padding:14px 0;min-height:76px;border-radius:0}.sort-option+ .sort-option{border-top:1px solid #f2f2f2}.sort-option strong{display:block;font-size:16px;line-height:20px;font-weight:600}.sort-option small{display:block;margin-top:3px;font-size:13px;line-height:18px;color:#a6a6a6}.sort-option i{position:relative;display:block;width:24px;height:24px;border-radius:50%;background:#f2f2f2;flex:none;margin-left:12px}.sort-option[aria-checked=true] i{background:#ff2d64}.sort-option[aria-checked=true] i:after{content:'';position:absolute;width:5px;height:10px;border:solid #fff;border-width:0 2px 2px 0;left:9px;top:5px;transform:rotate(40deg)}@keyframes sort-dim{from{background:rgba(0,0,0,0)}to{background:rgba(0,0,0,.48)}}@media(prefers-reduced-motion:reduce){.sort-sheet::backdrop{animation:none}}
nav.compact .sort-trigger{left:0}
