/* CARVEX Eats — carvexeats.uz. CARVEX GO uslubi: siyoh-ko'k + yalpiz, Manrope. */
@font-face { font-family: "Manrope"; src: url("/eats/fonts/manrope-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/eats/fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/eats/fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --ink: #222F5B; --deep: #182247; --mint: #79DDC6; --mint-d: #2E9C7B;
  --text: #14161F; --soft: #5E6475; --bg: #fff; --tone: #F3F4F1; --line: #E4E5E0;
  --ok-bg: #E3F5EC; --ok: #1D7A52; --warn: #B4471F;
  --r-card: 24px; --r-pill: 999px;
  --wrap: 1320px; --gut: clamp(16px, 3vw, 32px);
  --shadow: 0 10px 30px rgba(20, 22, 31, .08);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "Manrope", system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }

/* ---------- sarlavha ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 12px var(--gut); display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo-mark { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; }
.logo-mark svg { width: 40px; height: 40px; fill: var(--mint); stroke: none; }
.logo-txt { font-weight: 800; font-size: 20px; letter-spacing: -.03em; color: var(--ink); }
.logo-txt b { color: var(--mint-d); }
.search { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--tone); border-radius: var(--r-pill); padding: 0 18px; height: 52px; }
.search svg { color: var(--soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 17px; height: 100%; }
.search:focus-within { box-shadow: 0 0 0 3px var(--mint); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: var(--r-pill); border: 0; background: var(--tone); font-weight: 600; white-space: nowrap; transition: background-color .15s; }
.pill:hover { background: #E8EAE5; }
.pill-addr { max-width: 280px; }
.pill-addr span { overflow: hidden; text-overflow: ellipsis; }
.pill-cart { background: var(--ink); color: #fff; }
.pill-cart:hover { background: var(--deep); }
.pill-cart span { background: var(--mint); color: var(--deep); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 13px; font-weight: 800; padding: 0 6px; }
.pill-login { background: var(--ink); color: #fff; }
.pill-login:hover { background: var(--deep); }

/* ---------- umumiy ---------- */
main { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 8px var(--gut) 72px; outline: 0; }
.sec { margin-top: 40px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.h-sec { font-size: clamp(24px, 1.6rem + .6vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.ghost-pill { border: 0; background: var(--tone); border-radius: var(--r-pill); padding: 8px 16px; font-weight: 600; font-size: 15px; text-decoration: none; }
.ghost-pill:hover { background: #E8EAE5; }
.muted { color: var(--soft); }
.empty { padding: 48px 20px; text-align: center; color: var(--soft); background: var(--tone); border-radius: var(--r-card); display: grid; justify-items: center; gap: 10px; grid-column: 1 / -1; }
.empty svg { width: 40px; height: 40px; color: var(--ink); }
.skeleton { border-radius: var(--r-card); background: linear-gradient(90deg, var(--tone) 0%, #fafaf8 50%, var(--tone) 100%); background-size: 200% 100%; animation: sh 1.3s infinite linear; aspect-ratio: 16 / 11; }
@keyframes sh { to { background-position: -200% 0; } }

/* ---------- hero ---------- */
.hero { position: relative; margin-top: 12px; border-radius: 36px; overflow: hidden; min-height: 440px; display: flex; align-items: center; background: var(--ink); isolation: isolate; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 12%; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(24, 34, 71, .94) 0%, rgba(24, 34, 71, .78) 38%, rgba(24, 34, 71, 0) 70%); }
.hero-in { padding: 48px clamp(24px, 4vw, 56px); color: #fff; max-width: 640px; display: grid; gap: 16px; }
.hero h1 { font-size: clamp(34px, 1.4rem + 2.6vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero p { font-size: clamp(16px, .9rem + .3vw, 19px); opacity: .9; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-cta .btn { width: auto; }
.hero-cta .btn-mint { max-width: 100%; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.btn-glass:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }

/* ---------- afzalliklar ---------- */
.promos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.promo { position: relative; overflow: hidden; border-radius: var(--r-card); padding: 24px 20px 24px 26px; min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.promo h2 { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.promo p { font-size: 15px; margin-top: 6px; color: var(--soft); max-width: 28ch; }
.promo img { width: 120px; height: 120px; flex: none; object-fit: contain; margin-right: -6px; }
.promo.pr1 { background: #E7F7F2; }
.promo.pr2 { background: #EEF0F7; }
.promo.pr3 { background: #F4F1EA; }

/* ---------- rasmli kategoriyalar ---------- */
.tiles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding: 2px; }
.tiles:empty { display: none; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 116px; border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 8px; }
.tile-img { width: 116px; height: 96px; border-radius: 22px; background: #fff center / 88% auto no-repeat; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.tile:hover .tile-img { transform: translateY(-2px); }
.tile[aria-pressed="true"] .tile-img { box-shadow: inset 0 0 0 3px var(--ink); }
.tile-t { font-weight: 700; font-size: 14px; line-height: 1.2; text-align: center; }

/* ---------- taomlar qatori ---------- */
.rail-dish { grid-auto-columns: calc((100% - 4 * 24px) / 5); }
.dish { display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: box-shadow .2s; }
.dish:hover { box-shadow: var(--shadow); }
.dish-img { aspect-ratio: 1 / .8; background: #fff center / contain no-repeat; margin: 8px 8px 0; display: grid; place-items: center; color: var(--soft); }
.dish-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dish-body h3 { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.dish-body .muted { font-size: 13px; }
.dish-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dish-foot .add { padding: 9px 12px; }

/* ---------- qanday ishlaydi / kuryer ---------- */
.how-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-list li { position: relative; background: var(--tone); border-radius: var(--r-card); padding: 24px; display: grid; gap: 6px; }
.how-list img { width: 88px; height: 88px; object-fit: contain; margin-bottom: 6px; }
.how-n { position: absolute; top: 20px; right: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-weight: 800; }
.how-list h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.how-list p { color: var(--soft); font-size: 15px; }
.cour { margin-top: 40px; background: var(--ink); color: #fff; border-radius: 32px; padding: 32px clamp(24px, 4vw, 48px); display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; }
.cour h2 { font-size: clamp(26px, 1.2rem + 1.2vw, 38px); font-weight: 800; letter-spacing: -.04em; }
.cour p { opacity: .85; margin: 8px 0 20px; max-width: 48ch; }
.cour .btn { width: auto; }
.cour img { width: 220px; height: 220px; object-fit: contain; flex: none; margin: -20px 0 -40px; }

/* ---------- kategoriya paneli ---------- */
.catbar { display: flex; align-items: center; gap: 6px; background: var(--tone); border-radius: 28px; padding: 6px; }
.catbar-scroll { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.catbar-scroll::-webkit-scrollbar { display: none; }
.chip { border: 0; background: none; border-radius: 22px; padding: 11px 18px; font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--text); }
.chip:hover { background: rgba(255, 255, 255, .7); }
.chip[aria-pressed="true"] { background: #fff; box-shadow: 0 2px 8px rgba(20, 22, 31, .08); }
.sort { position: relative; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-left: 1px solid var(--line); }
.sort svg { color: var(--soft); }
.sort select { appearance: none; border: 0; background: none; font: inherit; font-weight: 600; padding: 10px 4px; cursor: pointer; }

/* ---------- restoran kartochkalari ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 24px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-next { position: absolute; right: -20px; top: calc(50% - 44px); width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.rail-next:hover { background: var(--tone); }
.card { display: block; text-decoration: none; position: relative; }
.card-img { position: relative; aspect-ratio: 16 / 9.4; border-radius: var(--r-card); background: #fff center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .25s ease; }
.card:hover .card-img { transform: scale(1.015); }
.card-img.ph { display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--ink); background: linear-gradient(135deg, #E7F7F2, #F2EDE3); }
.card.closed .card-img { filter: grayscale(.85); }
.card .badge { position: absolute; left: 12px; bottom: 12px; background: rgba(20, 22, 31, .78); color: #fff; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 5px 10px; }
.fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20, 22, 31, .32); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; }
.fav:hover { background: rgba(20, 22, 31, .5); }
.fav svg { width: 22px; height: 22px; }
.fav[aria-pressed="true"] svg { fill: #fff; }
.card-body { padding: 10px 6px 0; }
.card-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-row h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-row .new { flex: none; font-size: 14px; font-weight: 700; color: var(--mint-d); }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--soft); margin-top: 2px; }
.card-meta svg { width: 16px; height: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 700; border-radius: 8px; padding: 3px 8px; }
.tag.dim { background: var(--tone); color: var(--soft); }

/* ---------- restoran sahifasi ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 12px; font-weight: 600; text-decoration: none; color: var(--soft); }
.back:hover { color: var(--text); }
.r-hero { position: relative; border-radius: 32px; overflow: hidden; min-height: 280px; background: #fff right 4% center / auto 88% no-repeat; border: 1px solid var(--line); display: flex; align-items: flex-end; }
.r-hero-in { position: relative; padding: 32px; color: var(--text); display: grid; gap: 10px; max-width: 62%; }
.r-hero h1 { font-size: clamp(32px, 1.6rem + 2vw, 52px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.r-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.r-facts span { background: var(--tone); border-radius: 12px; padding: 6px 12px; font-weight: 600; font-size: 15px; }
.r-addr { color: var(--soft); font-size: 15px; }
.r-layout > * { min-width: 0; }
.r-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 24px; }
.cat-nav { position: sticky; top: 77px; z-index: 5; background: #fff; padding: 10px 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.cat-nav .chip { background: var(--tone); }
.cat-nav .chip:hover { background: #E8EAE5; }
.r-layout section + section { margin-top: 32px; }
.r-layout .h-sec { margin-bottom: 14px; font-size: 26px; }
.items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.item:hover { box-shadow: var(--shadow); }
.item-img { aspect-ratio: 16 / 11; background: #fff center / contain no-repeat; margin: 8px 8px 0; display: grid; place-items: center; color: var(--soft); }
.item-img svg { width: 40px; height: 40px; }
.item-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-body h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.item-body p { font-size: 14px; color: var(--soft); line-height: 1.4; }
.item-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.add { border: 0; background: var(--tone); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.add:hover:not(:disabled) { background: var(--mint); }
.add:disabled { opacity: .5; cursor: not-allowed; }
.stepper { display: inline-flex; align-items: center; background: var(--ink); color: #fff; border-radius: 14px; }
.stepper button { border: 0; background: none; color: inherit; width: 38px; height: 40px; font-size: 20px; font-weight: 700; }
.stepper button:disabled { opacity: .4; }
.stepper span { min-width: 20px; text-align: center; font-weight: 800; }
.cart-side { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; display: grid; gap: 10px; }
.cart-side h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cart-line .nm { display: grid; font-weight: 600; font-size: 15px; }
.cart-line small { color: var(--soft); font-weight: 600; }
.cart-line .stepper { background: var(--tone); color: var(--text); }
.sum { display: flex; justify-content: space-between; gap: 12px; color: var(--soft); padding: 4px 0; }
.sum.total { color: var(--text); font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 18px; border: 0; background: var(--ink); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; width: 100%; transition: background-color .15s; }
.btn:hover:not(:disabled) { background: var(--deep); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-mint { background: var(--mint); color: var(--deep); }
.btn-mint:hover:not(:disabled) { background: #67D2B9; }
.btn-ghost { background: var(--tone); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: #E8EAE5; }
.cart-bar { display: none; }

/* ---------- rasmiylashtirish va holat ---------- */
.co { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.co h1 { font-size: clamp(28px, 1.4rem + 1.4vw, 40px); font-weight: 800; letter-spacing: -.04em; }
.panel { background: var(--tone); border-radius: var(--r-card); padding: 22px; display: grid; gap: 8px; }
.panel h2 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.chosen { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 14px; font-weight: 600; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.field input, .field textarea { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 13px 14px; min-width: 0; width: 100%; resize: vertical; }
.err { color: var(--warn); font-weight: 600; font-size: 15px; }
.track { max-width: 620px; margin: 24px auto 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.track h1 { font-size: clamp(26px, 1.3rem + 1.2vw, 36px); font-weight: 800; letter-spacing: -.035em; }
.track .panel, .track .btn { width: 100%; }
.ring { width: 96px; height: 96px; border-radius: 50%; background: var(--mint); color: var(--deep); display: grid; place-items: center; }
.ring svg { width: 44px; height: 44px; }
.ring.pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(121, 221, 198, .7); } 100% { box-shadow: 0 0 0 26px rgba(121, 221, 198, 0); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; text-align: left; }
.steps li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--tone); color: var(--soft); font-weight: 600; }
.steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.steps li.done { color: var(--text); }
.steps li.done::before { background: var(--mint-d); border-color: var(--mint-d); }

/* ---------- dialog ---------- */
dialog { border: 0; border-radius: 28px; padding: 24px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(20, 22, 31, .25); }
dialog::backdrop { background: rgba(20, 22, 31, .5); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dlg-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.dlg-x { border: 0; background: var(--tone); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
#dialog-body form, #dialog-body > div { display: grid; gap: 12px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; }
.addr-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.addr-results button { width: 100%; text-align: left; border: 0; background: var(--tone); border-radius: 14px; padding: 12px 14px; display: grid; font-weight: 600; }
.addr-results button:hover { background: #E8EAE5; }
.addr-results small { color: var(--soft); font-weight: 400; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- pastki qism ---------- */
.foot { background: var(--tone); }
.foot-in { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 48px var(--gut) 32px; display: grid; grid-template-columns: 260px minmax(0, 1fr) 260px; gap: 40px; }
.foot h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-bottom: 16px; }
.foot-app img { display: block; background: #fff; border-radius: 18px; padding: 8px; margin-bottom: 12px; }
.foot-app p { font-size: 14px; color: var(--soft); }
#foot-tags { columns: 3 140px; column-gap: 24px; }
#foot-tags a, .foot-links a { display: block; color: var(--soft); text-decoration: none; font-size: 15px; padding: 5px 0; break-inside: avoid; }
#foot-tags a:hover, .foot-links a:hover { color: var(--text); }
.foot-links { text-align: right; }
.foot-bottom { max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 18px var(--gut) 32px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); color: var(--soft); font-size: 14px; }
.help-fab { position: fixed; left: 20px; bottom: 20px; z-index: 30; width: 60px; height: 60px; border-radius: 50%; background: var(--mint); color: var(--deep); display: grid; place-items: center; box-shadow: var(--shadow); }
.help-fab svg { width: 28px; height: 28px; }
.help-fab:hover { background: #67D2B9; }


/* ---------- til / qo'shimchalar ---------- */
.lang { display: flex; background: var(--tone); border-radius: var(--r-pill); padding: 4px; flex: none; }
.lang button { border: 0; background: none; min-width: 42px; height: 44px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: var(--soft); }
.lang button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(20, 22, 31, .08); }
.pill-dark { background: var(--ink); color: #fff; height: 46px; }
.pill-dark:hover { background: var(--deep); }
.empty-cart { padding: 24px 12px; background: none; }
.empty-cart img { width: 96px; height: 96px; }
.r-desc { color: var(--soft); font-size: 16px; max-width: 52ch; }
.r-addr { display: flex; align-items: center; gap: 6px; }
.r-addr svg { width: 16px; height: 16px; }


/* ---------- filtrlar ---------- */
.f-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 22px; padding: 10px 16px; font-weight: 700; box-shadow: 0 2px 8px rgba(20, 22, 31, .06); }
.f-btn:hover { background: var(--mint); }
.f-badge { background: var(--ink); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; font-weight: 800; padding: 0 6px; }
dialog.sheet { width: min(620px, calc(100vw - 32px)); max-height: min(88vh, 860px); padding: 28px 28px 0; }
dialog.sheet .dlg-head h2 { font-size: 30px; }
.f-body { display: grid; gap: 14px; }
.f-body h3 { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin-top: 10px; }
.f-row { display: flex; flex-wrap: wrap; gap: 10px; }
.f-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 11px 16px; font-weight: 600; }
.f-chip svg { color: var(--mint-d); width: 18px; height: 18px; }
.f-chip:hover { background: var(--tone); }
.f-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-chip[aria-pressed="true"] svg { color: var(--mint); }
.f-seg { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--tone); border-radius: 18px; padding: 4px; }
.f-seg button { border: 0; background: none; border-radius: 14px; height: 46px; font-weight: 700; font-size: 16px; color: var(--soft); }
.f-seg button[aria-checked="true"] { background: var(--ink); color: #fff; }
.f-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px 10px; }
.f-cat { border: 0; background: none; padding: 0; display: grid; justify-items: center; gap: 8px; font-weight: 600; font-size: 14px; text-align: center; line-height: 1.2; }
.f-cat-img { width: 76px; height: 76px; border-radius: 50%; background: var(--tone) center / 78% auto no-repeat; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: var(--ink); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .15s; }
.f-cat[aria-pressed="true"] .f-cat-img { box-shadow: inset 0 0 0 3px var(--ink); background-color: #E7F7F2; }
.f-foot { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; background: #fff; padding: 16px 0 calc(20px + env(safe-area-inset-bottom)); margin-top: 8px; box-shadow: 0 -12px 16px -12px rgba(20, 22, 31, .12); }
@media (max-width: 700px) {
  dialog.sheet { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 28px 28px 0 0; max-height: 90vh; padding: 22px 18px 0; }
  .f-btn span:not(.f-badge) { display: none; }
}

/* ---------- moslashuv ---------- */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail-dish { grid-auto-columns: calc((100% - 3 * 24px) / 4); }
  .promo img { width: 96px; height: 96px; }
  .rail { grid-auto-columns: calc((100% - 2 * 24px) / 3); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .r-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .top-in { flex-wrap: wrap; }
  .search { order: 5; flex: 1 1 220px; height: 48px; }
  .pill-addr { margin-left: auto; }
  .promos { grid-template-columns: 1fr; }
  .promo { min-height: 0; }
  .hero { min-height: 0; align-items: flex-end; border-radius: 28px; }
  .hero::before { background: linear-gradient(180deg, rgba(24, 34, 71, .1) 0%, rgba(24, 34, 71, .55) 40%, rgba(24, 34, 71, .96) 75%); }
  .hero-img { object-position: 60% 30%; }
  .hero-in { padding: 160px 22px 24px; }
  .rail-dish { grid-auto-columns: 46%; }
  .how-list { grid-template-columns: 1fr; }
  .cour { flex-direction: column; align-items: flex-start; }
  .cour img { width: 160px; height: 160px; margin: 0 auto -32px; }
  .lang { order: 6; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .rail { grid-auto-columns: 72%; gap: 16px; }
  .rail-next { display: none; }
  .r-layout { grid-template-columns: 1fr; }
  .cart-side { display: none; }
  .cart-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s; }
  .cart-bar.show { transform: none; }
  .cart-bar .btn { justify-content: space-between; }
  .cat-nav { top: 121px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; }
  .foot-links { text-align: left; }
  .help-fab { bottom: 84px; }
}
@media (max-width: 560px) {
  .logo-txt { display: none; }
  .top-in { gap: 8px; }
  .pill { height: 44px; padding: 0 12px; gap: 6px; font-size: 15px; }
  .pill-addr { max-width: 128px; min-width: 0; flex: 0 1 auto; }
  .help-fab { left: auto; right: 16px; width: 52px; height: 52px; }
  .grid { grid-template-columns: 1fr; }
  .items { grid-template-columns: 1fr 1fr; gap: 12px; }
  .item-body { padding: 10px 12px 12px; }
  .item-foot { flex-direction: column; align-items: stretch; }
  .add { width: 100%; }
  .r-hero { min-height: 0; border-radius: 24px; flex-direction: column; align-items: stretch; background-position: center 16px; background-size: auto 150px; padding-top: 170px; }
  .r-hero-in { padding: 20px; max-width: none; }
  .sort { display: none; }
  .hero-cta .btn { width: 100%; }
  .lang button { min-width: 36px; height: 36px; }
  .tile { width: 92px; }
  .tile-img { width: 92px; height: 78px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
